ablok-components 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(Xe,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(Xe=typeof globalThis<"u"?globalThis:Xe||self,s(Xe.AblokComponents={},Xe.Vue))})(this,(function(Xe,s){"use strict";function sT(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const zh=sT(s),aT={class:"icon",preserveAspectRatio:"xMaxYMin"},lT=["xlink:href"],cT=s.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("i",{class:s.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(s.openBlock(),s.createElementBlock("svg",aT,[s.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,lT)]))],2))}}),uT={class:"loading-spinner d-block"},dT=s.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("span",uT,[n[0]||(n[0]=s.createElementVNode("span",{class:"loading-spinner__animation"},[s.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[s.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[s.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1)),s.renderSlot(e.$slots,"default")]))}}),fT=["src","alt"],hT=s.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},ready:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},emitPending:{type:Boolean,default:!0}},emits:["update:ready","update:pending"],setup(t,{emit:e}){const n=t,r=e,A=s.useTemplateRef("image"),i=s.ref(!1);function o(){i.value=!0,A.value?.addEventListener("transitionend",a,{once:!0})}function a(){r("update:ready",!0),n.emitPending&&r("update:pending",!1)}return s.onBeforeMount(()=>{n.emitPending&&r("update:pending",!0)}),(l,u)=>{const d=s.resolveComponent("loading-spinner");return t.src?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!i.value?(s.openBlock(),s.createBlock(d,{key:0})):s.createCommentVNode("",!0),s.createElementVNode("img",{ref_key:"image",ref:A,class:s.normalizeClass(["",{"opacity-0":t.animate&&!i.value,"opacity-1":!t.animate||i.value}]),src:t.src,alt:t.alt,onLoad:o},null,42,fT)],2)):s.createCommentVNode("",!0)}}}),pT=["innerHTML"],mT=s.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,n=s.computed(()=>e.tag||"p");return(r,A)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),{class:s.normalizeClass(["headline",`${t.size} headline--${t.size}${t.className||""}`])},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"default",{},()=>[s.createElementVNode("span",{class:"headline__text",innerHTML:t.text},null,8,pT)])]),_:3},8,["class"]))}});const{entries:dB,setPrototypeOf:fB,isFrozen:gT,getPrototypeOf:vT,getOwnPropertyDescriptor:wT}=Object;let{freeze:ar,seal:qr,create:Wh}=Object,{apply:Gh,construct:Yh}=typeof Reflect<"u"&&Reflect;ar||(ar=function(e){return e}),qr||(qr=function(e){return e}),Gh||(Gh=function(e,n){for(var r=arguments.length,A=new Array(r>2?r-2:0),i=2;i<r;i++)A[i-2]=arguments[i];return e.apply(n,A)}),Yh||(Yh=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A<n;A++)r[A-1]=arguments[A];return new e(...r)});const Wc=cr(Array.prototype.forEach),BT=cr(Array.prototype.lastIndexOf),hB=cr(Array.prototype.pop),nl=cr(Array.prototype.push),yT=cr(Array.prototype.splice),Gc=cr(String.prototype.toLowerCase),qh=cr(String.prototype.toString),Xh=cr(String.prototype.match),rl=cr(String.prototype.replace),CT=cr(String.prototype.indexOf),bT=cr(String.prototype.trim),BA=cr(Object.prototype.hasOwnProperty),lr=cr(RegExp.prototype.test),Al=ET(TypeError);function cr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A<n;A++)r[A-1]=arguments[A];return Gh(t,e,r)}}function ET(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Yh(t,n)}}function dt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gc;fB&&fB(t,null);let r=e.length;for(;r--;){let A=e[r];if(typeof A=="string"){const i=n(A);i!==A&&(gT(e)||(e[r]=i),A=i)}t[A]=!0}return t}function kT(t){for(let e=0;e<t.length;e++)BA(t,e)||(t[e]=null);return t}function zA(t){const e=Wh(null);for(const[n,r]of dB(t))BA(t,n)&&(Array.isArray(r)?e[n]=kT(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=zA(r):e[n]=r);return e}function il(t,e){for(;t!==null;){const r=wT(t,e);if(r){if(r.get)return cr(r.get);if(typeof r.value=="function")return cr(r.value)}t=vT(t)}function n(){return null}return n}const pB=ar(["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","search","section","select","shadow","slot","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"]),Jh=ar(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jh=ar(["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"]),ST=ar(["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"]),Zh=ar(["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"]),xT=ar(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mB=ar(["#text"]),gB=ar(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Vh=ar(["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","mask-type","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"]),vB=ar(["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"]),Yc=ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FT=qr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),QT=qr(/<%[\w\W]*|[\w\W]*%>/gm),TT=qr(/\$\{[\w\W]*/gm),MT=qr(/^data-[\-\w.\u00B7-\uFFFF]+$/),IT=qr(/^aria-[\-\w]+$/),wB=qr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),UT=qr(/^(?:\w+script|data):/i),_T=qr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),BB=qr(/^html$/i),DT=qr(/^[a-z][.\w]*(-[.\w]+)+$/i);var yB=Object.freeze({__proto__:null,ARIA_ATTR:IT,ATTR_WHITESPACE:_T,CUSTOM_ELEMENT:DT,DATA_ATTR:MT,DOCTYPE_NAME:BB,ERB_EXPR:QT,IS_ALLOWED_URI:wB,IS_SCRIPT_OR_DATA:UT,MUSTACHE_EXPR:FT,TMPLIT_EXPR:TT});const ol={element:1,text:3,progressingInstruction:7,comment:8,document:9},OT=function(){return typeof window>"u"?null:window},NT=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const A="data-tt-policy-suffix";n&&n.hasAttribute(A)&&(r=n.getAttribute(A));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},CB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bB(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OT();const e=Re=>bB(Re);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==ol.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,A=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:m}=t,v=l.prototype,B=il(v,"cloneNode"),y=il(v,"remove"),w=il(v,"nextSibling"),C=il(v,"childNodes"),S=il(v,"parentNode");if(typeof o=="function"){const Re=n.createElement("template");Re.content&&Re.content.ownerDocument&&(n=Re.content.ownerDocument)}let Q,_="";const{implementation:D,createNodeIterator:I,createDocumentFragment:$,getElementsByTagName:Y}=n,{importNode:de}=r;let ge=CB();e.isSupported=typeof dB=="function"&&typeof S=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:we,TMPLIT_EXPR:te,DATA_ATTR:V,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:T,CUSTOM_ELEMENT:P}=yB;let{IS_ALLOWED_URI:F}=yB,E=null;const W=dt({},[...pB,...Jh,...jh,...Zh,...mB]);let ne=null;const X=dt({},[...gB,...Vh,...vB,...Yc]);let re=Object.seal(Wh(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}})),ie=null,pe=null;const le=Object.seal(Wh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,G=!0,ee=!1,K=!0,N=!1,R=!0,J=!1,z=!1,ce=!1,k=!1,U=!1,O=!1,se=!0,j=!1;const be="user-content-";let Be=!0,ae=!1,he={},xe=null;const Pe=dt({},["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 ot=null;const $e=dt({},["audio","video","img","source","image","track"]);let ht=null;const wt=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Et="http://www.w3.org/1998/Math/MathML",En="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let Kt=Yt,OA=!1,pi=null;const ze=dt({},[Et,En,Yt],qh);let gn=dt({},["mi","mo","mn","ms","mtext"]),Tn=dt({},["annotation-xml"]);const mi=dt({},["title","style","font","a","script"]);let wr=null;const Ho=["application/xhtml+xml","text/html"],Us="text/html";let nn=null,NA=null;const Fc=n.createElement("form"),Ra=function(oe){return oe instanceof RegExp||oe instanceof Function},_s=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(NA&&NA===oe)){if((!oe||typeof oe!="object")&&(oe={}),oe=zA(oe),wr=Ho.indexOf(oe.PARSER_MEDIA_TYPE)===-1?Us:oe.PARSER_MEDIA_TYPE,nn=wr==="application/xhtml+xml"?qh:Gc,E=BA(oe,"ALLOWED_TAGS")?dt({},oe.ALLOWED_TAGS,nn):W,ne=BA(oe,"ALLOWED_ATTR")?dt({},oe.ALLOWED_ATTR,nn):X,pi=BA(oe,"ALLOWED_NAMESPACES")?dt({},oe.ALLOWED_NAMESPACES,qh):ze,ht=BA(oe,"ADD_URI_SAFE_ATTR")?dt(zA(wt),oe.ADD_URI_SAFE_ATTR,nn):wt,ot=BA(oe,"ADD_DATA_URI_TAGS")?dt(zA($e),oe.ADD_DATA_URI_TAGS,nn):$e,xe=BA(oe,"FORBID_CONTENTS")?dt({},oe.FORBID_CONTENTS,nn):Pe,ie=BA(oe,"FORBID_TAGS")?dt({},oe.FORBID_TAGS,nn):zA({}),pe=BA(oe,"FORBID_ATTR")?dt({},oe.FORBID_ATTR,nn):zA({}),he=BA(oe,"USE_PROFILES")?oe.USE_PROFILES:!1,Ce=oe.ALLOW_ARIA_ATTR!==!1,G=oe.ALLOW_DATA_ATTR!==!1,ee=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,K=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=oe.SAFE_FOR_TEMPLATES||!1,R=oe.SAFE_FOR_XML!==!1,J=oe.WHOLE_DOCUMENT||!1,k=oe.RETURN_DOM||!1,U=oe.RETURN_DOM_FRAGMENT||!1,O=oe.RETURN_TRUSTED_TYPE||!1,ce=oe.FORCE_BODY||!1,se=oe.SANITIZE_DOM!==!1,j=oe.SANITIZE_NAMED_PROPS||!1,Be=oe.KEEP_CONTENT!==!1,ae=oe.IN_PLACE||!1,F=oe.ALLOWED_URI_REGEXP||wB,Kt=oe.NAMESPACE||Yt,gn=oe.MATHML_TEXT_INTEGRATION_POINTS||gn,Tn=oe.HTML_INTEGRATION_POINTS||Tn,re=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&Ra(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&Ra(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),N&&(G=!1),U&&(k=!0),he&&(E=dt({},mB),ne=[],he.html===!0&&(dt(E,pB),dt(ne,gB)),he.svg===!0&&(dt(E,Jh),dt(ne,Vh),dt(ne,Yc)),he.svgFilters===!0&&(dt(E,jh),dt(ne,Vh),dt(ne,Yc)),he.mathMl===!0&&(dt(E,Zh),dt(ne,vB),dt(ne,Yc))),oe.ADD_TAGS&&(typeof oe.ADD_TAGS=="function"?le.tagCheck=oe.ADD_TAGS:(E===W&&(E=zA(E)),dt(E,oe.ADD_TAGS,nn))),oe.ADD_ATTR&&(typeof oe.ADD_ATTR=="function"?le.attributeCheck=oe.ADD_ATTR:(ne===X&&(ne=zA(ne)),dt(ne,oe.ADD_ATTR,nn))),oe.ADD_URI_SAFE_ATTR&&dt(ht,oe.ADD_URI_SAFE_ATTR,nn),oe.FORBID_CONTENTS&&(xe===Pe&&(xe=zA(xe)),dt(xe,oe.FORBID_CONTENTS,nn)),oe.ADD_FORBID_CONTENTS&&(xe===Pe&&(xe=zA(xe)),dt(xe,oe.ADD_FORBID_CONTENTS,nn)),Be&&(E["#text"]=!0),J&&dt(E,["html","head","body"]),E.table&&(dt(E,["tbody"]),delete ie.tbody),oe.TRUSTED_TYPES_POLICY){if(typeof oe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Al('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Al('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=oe.TRUSTED_TYPES_POLICY,_=Q.createHTML("")}else Q===void 0&&(Q=NT(m,A)),Q!==null&&typeof _=="string"&&(_=Q.createHTML(""));ar&&ar(oe),NA=oe}},Po=dt({},[...Jh,...jh,...ST]),Ha=dt({},[...Zh,...xT]),Ds=function(oe){let Te=S(oe);(!Te||!Te.tagName)&&(Te={namespaceURI:Kt,tagName:"template"});const He=Gc(oe.tagName),zt=Gc(Te.tagName);return pi[oe.namespaceURI]?oe.namespaceURI===En?Te.namespaceURI===Yt?He==="svg":Te.namespaceURI===Et?He==="svg"&&(zt==="annotation-xml"||gn[zt]):!!Po[He]:oe.namespaceURI===Et?Te.namespaceURI===Yt?He==="math":Te.namespaceURI===En?He==="math"&&Tn[zt]:!!Ha[He]:oe.namespaceURI===Yt?Te.namespaceURI===En&&!Tn[zt]||Te.namespaceURI===Et&&!gn[zt]?!1:!Ha[He]&&(mi[He]||!Po[He]):!!(wr==="application/xhtml+xml"&&pi[oe.namespaceURI]):!1},Fr=function(oe){nl(e.removed,{element:oe});try{S(oe).removeChild(oe)}catch{y(oe)}},LA=function(oe,Te){try{nl(e.removed,{attribute:Te.getAttributeNode(oe),from:Te})}catch{nl(e.removed,{attribute:null,from:Te})}if(Te.removeAttribute(oe),oe==="is")if(k||U)try{Fr(Te)}catch{}else try{Te.setAttribute(oe,"")}catch{}},ve=function(oe){let Te=null,He=null;if(ce)oe="<remove></remove>"+oe;else{const ln=Xh(oe,/^[\r\n\t ]+/);He=ln&&ln[0]}wr==="application/xhtml+xml"&&Kt===Yt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");const zt=Q?Q.createHTML(oe):oe;if(Kt===Yt)try{Te=new p().parseFromString(zt,wr)}catch{}if(!Te||!Te.documentElement){Te=D.createDocument(Kt,"template",null);try{Te.documentElement.innerHTML=OA?_:zt}catch{}}const vn=Te.body||Te.documentElement;return oe&&He&&vn.insertBefore(n.createTextNode(He),vn.childNodes[0]||null),Kt===Yt?Y.call(Te,J?"html":"body")[0]:J?Te.documentElement:vn},Ie=function(oe){return I.call(oe.ownerDocument||oe,oe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},We=function(oe){return oe instanceof h&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof d)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},At=function(oe){return typeof a=="function"&&oe instanceof a};function bt(Re,oe,Te){Wc(Re,He=>{He.call(e,oe,Te,NA)})}const Pr=function(oe){let Te=null;if(bt(ge.beforeSanitizeElements,oe,null),We(oe))return Fr(oe),!0;const He=nn(oe.nodeName);if(bt(ge.uponSanitizeElement,oe,{tagName:He,allowedTags:E}),R&&oe.hasChildNodes()&&!At(oe.firstElementChild)&&lr(/<[/\w!]/g,oe.innerHTML)&&lr(/<[/\w!]/g,oe.textContent)||oe.nodeType===ol.progressingInstruction||R&&oe.nodeType===ol.comment&&lr(/<[/\w]/g,oe.data))return Fr(oe),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(He))&&(!E[He]||ie[He])){if(!ie[He]&&gi(He)&&(re.tagNameCheck instanceof RegExp&&lr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He)))return!1;if(Be&&!xe[He]){const zt=S(oe)||oe.parentNode,vn=C(oe)||oe.childNodes;if(vn&&zt){const ln=vn.length;for(let ir=ln-1;ir>=0;--ir){const RA=B(vn[ir],!0);RA.__removalCount=(oe.__removalCount||0)+1,zt.insertBefore(RA,w(oe))}}}return Fr(oe),!0}return oe instanceof l&&!Ds(oe)||(He==="noscript"||He==="noembed"||He==="noframes")&&lr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Fr(oe),!0):(N&&oe.nodeType===ol.text&&(Te=oe.textContent,Wc([me,we,te],zt=>{Te=rl(Te,zt," ")}),oe.textContent!==Te&&(nl(e.removed,{element:oe.cloneNode()}),oe.textContent=Te)),bt(ge.afterSanitizeElements,oe,null),!1)},uA=function(oe,Te,He){if(se&&(Te==="id"||Te==="name")&&(He in n||He in Fc))return!1;if(!(G&&!pe[Te]&&lr(V,Te))){if(!(Ce&&lr(q,Te))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(Te,oe))){if(!ne[Te]||pe[Te]){if(!(gi(oe)&&(re.tagNameCheck instanceof RegExp&&lr(re.tagNameCheck,oe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(oe))&&(re.attributeNameCheck instanceof RegExp&&lr(re.attributeNameCheck,Te)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Te,oe))||Te==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&lr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He))))return!1}else if(!ht[Te]){if(!lr(F,rl(He,T,""))){if(!((Te==="src"||Te==="xlink:href"||Te==="href")&&oe!=="script"&&CT(He,"data:")===0&&ot[oe])){if(!(ee&&!lr(x,rl(He,T,"")))){if(He)return!1}}}}}}}return!0},gi=function(oe){return oe!=="annotation-xml"&&Xh(oe,P)},Ki=function(oe){bt(ge.beforeSanitizeAttributes,oe,null);const{attributes:Te}=oe;if(!Te||We(oe))return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let zt=Te.length;for(;zt--;){const vn=Te[zt],{name:ln,namespaceURI:ir,value:RA}=vn,Wi=nn(ln),Pa=RA;let kn=ln==="value"?Pa:bT(Pa);if(He.attrName=Wi,He.attrValue=kn,He.keepAttr=!0,He.forceKeepAttr=void 0,bt(ge.uponSanitizeAttribute,oe,He),kn=He.attrValue,j&&(Wi==="id"||Wi==="name")&&(LA(ln,oe),kn=be+kn),R&&lr(/((--!?|])>)|<\/(style|title|textarea)/i,kn)){LA(ln,oe);continue}if(Wi==="attributename"&&Xh(kn,"href")){LA(ln,oe);continue}if(He.forceKeepAttr)continue;if(!He.keepAttr){LA(ln,oe);continue}if(!K&&lr(/\/>/i,kn)){LA(ln,oe);continue}N&&Wc([me,we,te],rh=>{kn=rl(kn,rh," ")});const nh=nn(oe.nodeName);if(!uA(nh,Wi,kn)){LA(ln,oe);continue}if(Q&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ir)switch(m.getAttributeType(nh,Wi)){case"TrustedHTML":{kn=Q.createHTML(kn);break}case"TrustedScriptURL":{kn=Q.createScriptURL(kn);break}}if(kn!==Pa)try{ir?oe.setAttributeNS(ir,ln,kn):oe.setAttribute(ln,kn),We(oe)?Fr(oe):hB(e.removed)}catch{LA(ln,oe)}}bt(ge.afterSanitizeAttributes,oe,null)},zi=function Re(oe){let Te=null;const He=Ie(oe);for(bt(ge.beforeSanitizeShadowDOM,oe,null);Te=He.nextNode();)bt(ge.uponSanitizeShadowNode,Te,null),Pr(Te),Ki(Te),Te.content instanceof i&&Re(Te.content);bt(ge.afterSanitizeShadowDOM,oe,null)};return e.sanitize=function(Re){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null,He=null,zt=null,vn=null;if(OA=!Re,OA&&(Re="<!-->"),typeof Re!="string"&&!At(Re))if(typeof Re.toString=="function"){if(Re=Re.toString(),typeof Re!="string")throw Al("dirty is not a string, aborting")}else throw Al("toString is not a function");if(!e.isSupported)return Re;if(z||_s(oe),e.removed=[],typeof Re=="string"&&(ae=!1),ae){if(Re.nodeName){const RA=nn(Re.nodeName);if(!E[RA]||ie[RA])throw Al("root node is forbidden and cannot be sanitized in-place")}}else if(Re instanceof a)Te=ve("<!---->"),He=Te.ownerDocument.importNode(Re,!0),He.nodeType===ol.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?Te=He:Te.appendChild(He);else{if(!k&&!N&&!J&&Re.indexOf("<")===-1)return Q&&O?Q.createHTML(Re):Re;if(Te=ve(Re),!Te)return k?null:O?_:""}Te&&ce&&Fr(Te.firstChild);const ln=Ie(ae?Re:Te);for(;zt=ln.nextNode();)Pr(zt),Ki(zt),zt.content instanceof i&&zi(zt.content);if(ae)return Re;if(k){if(U)for(vn=$.call(Te.ownerDocument);Te.firstChild;)vn.appendChild(Te.firstChild);else vn=Te;return(ne.shadowroot||ne.shadowrootmode)&&(vn=de.call(r,vn,!0)),vn}let ir=J?Te.outerHTML:Te.innerHTML;return J&&E["!doctype"]&&Te.ownerDocument&&Te.ownerDocument.doctype&&Te.ownerDocument.doctype.name&&lr(BB,Te.ownerDocument.doctype.name)&&(ir="<!DOCTYPE "+Te.ownerDocument.doctype.name+`>
|
|
2
|
-
`+ir),N&&Wc([me,we,te],RA=>{ir=rl(ir,RA," ")}),Q&&O?Q.createHTML(ir):ir},e.setConfig=function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_s(Re),z=!0},e.clearConfig=function(){NA=null,z=!1},e.isValidAttribute=function(Re,oe,Te){NA||_s({});const He=nn(Re),zt=nn(oe);return uA(He,zt,Te)},e.addHook=function(Re,oe){typeof oe=="function"&&nl(ge[Re],oe)},e.removeHook=function(Re,oe){if(oe!==void 0){const Te=BT(ge[Re],oe);return Te===-1?void 0:yT(ge[Re],Te,1)[0]}return hB(ge[Re])},e.removeHooks=function(Re){ge[Re]=[]},e.removeAllHooks=function(){ge=CB()},e}var EB=bB();function qc(t){return s.computed(()=>{const e=typeof t=="function"?t():typeof t=="string"?t:t.value;return EB.sanitize(e,{ALLOWED_TAGS:["b","i","em","strong","u","span","p","br","a","ul","ol","li","h1","h2","h3","h4","h5","h6","article","div","label"],ALLOWED_ATTR:["class","id","href","target","rel","title","data-countdown"],ALLOW_DATA_ATTR:!0})})}function Ur(t){return EB.sanitize(t,{ALLOWED_TAGS:["b","i","em","strong","u","span","p","br","a","ul","ol","li","h1","h2","h3","h4","h5","h6","article","div","label"],ALLOWED_ATTR:["class","id","href","target","rel","title","data-countdown"],ALLOW_DATA_ATTR:!0})}const LT=["innerHTML"],RT=s.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){const e=t;return qc(()=>e.text||""),(n,r)=>(s.openBlock(),s.createElementBlock("p",{class:s.normalizeClass(["base-paragraph",`${t.size||""} ${t.className||""}`]),innerHTML:t.text},null,10,LT))}});function Ct(){return Math.random().toString(16).slice(2)}async function Xc(t){return await new Promise(e=>{let n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(t)})}function HT(t){const e=atob(t.split(",")[1]),n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let A=0;A<e.length;A++)r[A]=e.charCodeAt(A);return new Blob([n],{type:"image/png"})}function PT(t){return{"image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","application/pdf":"pdf","video/mp4":"mp4","video/webm":"webm","video/ogg":"ogg"}[t]||"bin"}async function kB(t,e,n){const r=PT(n),i=e.includes(".")?e:`${e}.${r}`;return fetch(t).then(function(o){return o.arrayBuffer()}).then(function(o){return new File([o],i,{type:n})})}async function $T(t){return await new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=A=>n(A),r.src=t})}function SB(t,e,n,r="image/png",A){const i=document.createElement("canvas");i.width=e,i.height=n;const o=i.getContext("2d");return o?(o.drawImage(t,0,0,e,n),i.toDataURL(r,A)):t.src}async function KT(t,e,n){const r=await Xc(t),A=await $T(r),i=A.naturalWidth,o=A.naturalHeight;if(!i||i<=e)return t;const a=Math.round(e),l=o/i,u=Math.round(a*l),d=SB(A,a,u,t.type||"image/png",n);return await kB(d,t.name,t.type||"image/png")}function xB(t){return!t||typeof t!="string"?"":t.replace(/\0/g,"").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/on\w+\s*=\s*[^\s>]*/gi,"").replace(/javascript:/gi,"").replace(/data:text\/html/gi,"").replace(/(\b(SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC|EXECUTE|UNION|DECLARE)\b)/gi,"").trim()}const zT={class:"accordion-item"},WT=["id"],GT=["data-bs-target","aria-controls"],YT={class:"flex-grow-1"},qT=["id","aria-labelledby","data-bs-parent"],XT=["innerHTML"],JT=s.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Ct()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""},noPadding:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=qc(()=>n.body);function i(){r("update:modelValue",!n.modelValue)}return(o,a)=>(s.openBlock(),s.createElementBlock("div",zT,[s.createElementVNode("div",{class:"accordion-header",id:`heading-${t.id}`},[s.createElementVNode("button",{class:s.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:i},[s.renderSlot(o.$slots,"toggle",{},()=>[s.createElementVNode("span",YT,s.toDisplayString(t.title),1)])],10,GT)],8,WT),s.createElementVNode("div",{class:s.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[s.createElementVNode("div",{class:s.normalizeClass(["accordion-body",t.noPadding?"p-0":""])},[s.renderSlot(o.$slots,"body",{},()=>[s.createElementVNode("article",{innerHTML:s.unref(A)},null,8,XT)])],2)],10,qT)]))}}),jT=(t,e)=>{const n=t.__vccOpts||t;for(const[r,A]of e)n[r]=A;return n},ZT={},VT={class:"accordion"};function eM(t,e){return s.openBlock(),s.createElementBlock("div",VT,[s.renderSlot(t.$slots,"default")])}const tM=jT(ZT,[["render",eM]]),nM=["type","disabled"],rM=s.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,n=s.computed(()=>e.caption&&!e.circle);return(r,A)=>{const i=s.resolveComponent("loading-spinner"),o=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("button",{type:t.type,disabled:t.disabled,class:s.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"btn-lg":t.size==="large","btn-sm":t.size==="small"}])},[t.pending?s.renderSlot(r.$slots,"pending-icon",{key:0},()=>[s.createVNode(i)]):s.createCommentVNode("",!0),s.renderSlot(r.$slots,"default",{},()=>[t.icon?(s.openBlock(),s.createBlock(o,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):s.createCommentVNode("",!0),n.value?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},s.toDisplayString(t.caption),3)):s.createCommentVNode("",!0)])],10,nM)}}}),AM={class:"input-group input__input-group"},iM=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],oM=["for","innerHTML"],sM={key:0,class:"input__error alert alert-danger mt-3"},aM=s.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},min:{type:Number},max:{type:Number},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},validate:{type:Boolean,default:!1},valid:{type:Boolean,default:!0},sanitize:{type:Boolean,default:!0}},emits:["update:modelValue","update:valid"],setup(t,{emit:e}){const n=t,r=e,A=s.useTemplateRef("input"),i=s.ref(n.valid),o=s.ref(),a=s.computed(()=>Ur(`${n.label}${n.required?" *":""}`)),l=s.computed({get(){return n.modelValue},set(h){h=n.type==="number"?n.max&&Number(h)>n.max?n.max:n.min!==void 0&&Number(h)<n.min?n.min:Number(h):h,n.sanitize&&typeof h=="string"&&!["checkbox","radio","number","date","datetime-local","time","month","week","email","tel","url"].includes(n.type)&&(h=xB(h)),r("update:modelValue",h)}}),u=s.computed(()=>{if(n.type==="number"){const{min:h,max:p}=n;return{...h!==void 0?{min:h}:{},...p!==void 0?{max:p}:{}}}return{}});function d(){n.validate&&A.value&&(i.value=A.value.checkValidity(),i.value?o.value=void 0:o.value=A.value.validationMessage,r("update:valid",i.value))}return s.watch(()=>n.modelValue,()=>{i.value===!1&&d()}),s.onMounted(()=>{let h=p=>{l.value=typeof p.detail=="string"||typeof p.detail=="number"?`${p.detail}`:""};A.value?.addEventListener("focusin",p=>{window.addEventListener("update-focussed-input",h)}),A.value?.addEventListener("focusout",p=>{window.removeEventListener("update-focussed-input",h)}),d()}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input",`input--${t.type}${i.value?"":" input--invalid"}`])},[s.createElementVNode("div",AM,[s.renderSlot(h.$slots,"input-prepend",{slotScope:"props"}),s.withDirectives(s.createElementVNode("input",s.mergeProps({ref_key:"input",ref:A,"onUpdate:modelValue":p[0]||(p[0]=m=>l.value=m),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength},u.value,{"true-value":t.trueValue,"false-value":t.falseValue,class:["form-control",{"form-check-input":t.type==="checkbox"}],"aria-label":t.label,role:t.role,autocomplete:t.autocomplete,onChange:d}),null,16,iM),[[s.vModelDynamic,l.value]]),s.renderSlot(h.$slots,"input-append",{slotScope:"props"})]),s.renderSlot(h.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id,class:s.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:a.value},null,10,oM)):s.createCommentVNode("",!0)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[!i.value&&o.value?(s.openBlock(),s.createElementBlock("div",sM,s.toDisplayString(o.value),1)):s.createCommentVNode("",!0)]),_:1})],2))}}),lM={class:"input input--textarea"},cM=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],uM=["for","innerHTML"],dM=s.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1},sanitize:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){n.sanitize&&typeof i=="string"&&(i=xB(i)),r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",lM,[s.renderSlot(i.$slots,"input-prepend"),s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:s.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,cM),[[s.vModelText,A.value]]),s.renderSlot(i.$slots,"input-append"),s.renderSlot(i.$slots,"label",{},()=>[s.createElementVNode("label",{for:t.id,class:s.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,uM)])]))}}),fM={class:"form-check input input--checkbox"},hM=["value","id","name","required","disabled","true-value","false-value"],pM=["for","innerHTML"],mM=s.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue||n.checked},set(i){r("update:checked",i),r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",fM,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,hM),[[s.vModelCheckbox,A.value]]),s.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:s.unref(Ur)(t.label||"")},null,8,pM)]))}}),gM={class:"input-group input__input-group"},vM=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],wM=["for","innerHTML"],BM=s.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){const i=n.modelValue&&new Date(`${n.modelValue}Z`),o=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return o&&o.replace("Z","")},set(i){const o=i&&new Date(i);i=o&&o.toISOString(),r("update:modelValue",i&&i.replace("Z",""))}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input",`input--${t.type}`])},[s.createElementVNode("div",gM,[s.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,vM),[[s.vModelText,A.value]]),s.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),s.renderSlot(i.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:s.unref(Ur)(`${t.label}${t.required?" *":""}`)},null,8,wM)):s.createCommentVNode("",!0)])],2))}}),yM=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CM=Object.prototype.toString,bM=t=>CM.call(t)==="[object Object]",Jc=()=>{};function ep(t){return Array.isArray(t)?t:[t]}function EM(t,e,n){return s.watch(t,e,{...n,immediate:!0})}const FB=yM?window:void 0;function _r(t){var e;const n=s.toValue(t);return(e=n?.$el)!==null&&e!==void 0?e:n}function Ws(...t){const e=(r,A,i,o)=>(r.addEventListener(A,i,o),()=>r.removeEventListener(A,i,o)),n=s.computed(()=>{const r=ep(s.toValue(t[0])).filter(A=>A!=null);return r.every(A=>typeof A!="string")?r:void 0});return EM(()=>{var r,A;return[(r=(A=n.value)===null||A===void 0?void 0:A.map(i=>_r(i)))!==null&&r!==void 0?r:[FB].filter(i=>i!=null),ep(s.toValue(n.value?t[1]:t[0])),ep(s.unref(n.value?t[2]:t[1])),s.toValue(n.value?t[3]:t[2])]},([r,A,i,o],a,l)=>{if(!r?.length||!A?.length||!i?.length)return;const u=bM(o)?{...o}:o,d=r.flatMap(h=>A.flatMap(p=>i.map(m=>e(h,p,m,u))));l(()=>{d.forEach(h=>h())})},{flush:"post"})}function kM(t,e,n={}){const{window:r=FB,ignore:A=[],capture:i=!0,detectIframe:o=!1,controls:a=!1}=n;if(!r)return a?{stop:Jc,cancel:Jc,trigger:Jc}:Jc;let l=!0;const u=y=>s.toValue(A).some(w=>{if(typeof w=="string")return Array.from(r.document.querySelectorAll(w)).some(C=>C===y.target||y.composedPath().includes(C));{const C=_r(w);return C&&(y.target===C||y.composedPath().includes(C))}});function d(y){const w=s.toValue(y);return w&&w.$.subTree.shapeFlag===16}function h(y,w){const C=s.toValue(y),S=C.$.subTree&&C.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(Q=>Q.el===w.target||w.composedPath().includes(Q.el))}const p=y=>{const w=_r(t);if(y.target!=null&&!(!(w instanceof Element)&&d(t)&&h(t,y))&&!(!w||w===y.target||y.composedPath().includes(w))){if("detail"in y&&y.detail===0&&(l=!u(y)),!l){l=!0;return}e(y)}};let m=!1;const v=[Ws(r,"click",y=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(y))},{passive:!0,capture:i}),Ws(r,"pointerdown",y=>{const w=_r(t);l=!u(y)&&!!(w&&!y.composedPath().includes(w))},{passive:!0}),o&&Ws(r,"blur",y=>{setTimeout(()=>{var w;const C=_r(t);((w=r.document.activeElement)===null||w===void 0?void 0:w.tagName)==="IFRAME"&&!C?.contains(r.document.activeElement)&&e(y)},0)},{passive:!0})].filter(Boolean),B=()=>v.forEach(y=>y());return a?{stop:B,cancel:()=>{l=!1},trigger:y=>{l=!0,p(y),l=!1}}:B}function SM(t,e={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:A,onSwipeStart:i,passive:o=!0}=e,a=s.reactive({x:0,y:0}),l=s.reactive({x:0,y:0}),u=s.computed(()=>a.x-l.x),d=s.computed(()=>a.y-l.y),{max:h,abs:p}=Math,m=s.computed(()=>h(p(u.value),p(d.value))>=n),v=s.shallowRef(!1),B=s.computed(()=>m.value?p(u.value)>p(d.value)?u.value>0?"left":"right":d.value>0?"up":"down":"none"),y=I=>[I.touches[0].clientX,I.touches[0].clientY],w=(I,$)=>{a.x=I,a.y=$},C=(I,$)=>{l.x=I,l.y=$},S={passive:o,capture:!o},Q=I=>{v.value&&A?.(I,B.value),v.value=!1},_=[Ws(t,"touchstart",I=>{if(I.touches.length!==1)return;const[$,Y]=y(I);w($,Y),C($,Y),i?.(I)},S),Ws(t,"touchmove",I=>{if(I.touches.length!==1)return;const[$,Y]=y(I);C($,Y),S.capture&&!S.passive&&Math.abs(u.value)>Math.abs(d.value)&&I.preventDefault(),!v.value&&m.value&&(v.value=!0),v.value&&r?.(I)},S),Ws(t,["touchend","touchcancel"],Q,S)];return{isSwiping:v,direction:B,coordsStart:a,coordsEnd:l,lengthX:u,lengthY:d,stop:()=>_.forEach(I=>I())}}const Gs=Math.min,jo=Math.max,jc=Math.round,Zc=Math.floor,WA=t=>({x:t,y:t}),xM={left:"right",right:"left",bottom:"top",top:"bottom"},FM={start:"end",end:"start"};function tp(t,e,n){return jo(t,Gs(e,n))}function sl(t,e){return typeof t=="function"?t(e):t}function Zo(t){return t.split("-")[0]}function al(t){return t.split("-")[1]}function QB(t){return t==="x"?"y":"x"}function np(t){return t==="y"?"height":"width"}const QM=new Set(["top","bottom"]);function to(t){return QM.has(Zo(t))?"y":"x"}function rp(t){return QB(to(t))}function TM(t,e,n){n===void 0&&(n=!1);const r=al(t),A=rp(t),i=np(A);let o=A==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Vc(o)),[o,Vc(o)]}function MM(t){const e=Vc(t);return[Ap(t),e,Ap(e)]}function Ap(t){return t.replace(/start|end/g,e=>FM[e])}const TB=["left","right"],MB=["right","left"],IM=["top","bottom"],UM=["bottom","top"];function _M(t,e,n){switch(t){case"top":case"bottom":return n?e?MB:TB:e?TB:MB;case"left":case"right":return e?IM:UM;default:return[]}}function DM(t,e,n,r){const A=al(t);let i=_M(Zo(t),n==="start",r);return A&&(i=i.map(o=>o+"-"+A),e&&(i=i.concat(i.map(Ap)))),i}function Vc(t){return t.replace(/left|right|bottom|top/g,e=>xM[e])}function OM(t){return{top:0,right:0,bottom:0,left:0,...t}}function IB(t){return typeof t!="number"?OM(t):{top:t,right:t,bottom:t,left:t}}function eu(t){const{x:e,y:n,width:r,height:A}=t;return{width:r,height:A,top:n,left:e,right:e+r,bottom:n+A,x:e,y:n}}function UB(t,e,n){let{reference:r,floating:A}=t;const i=to(e),o=rp(e),a=np(o),l=Zo(e),u=i==="y",d=r.x+r.width/2-A.width/2,h=r.y+r.height/2-A.height/2,p=r[a]/2-A[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-A.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-A.width,y:h};break;default:m={x:r.x,y:r.y}}switch(al(e)){case"start":m[o]-=p*(n&&u?-1:1);break;case"end":m[o]+=p*(n&&u?-1:1);break}return m}async function NM(t,e){var n;e===void 0&&(e={});const{x:r,y:A,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=sl(e,t),v=IB(m),y=a[p?h==="floating"?"reference":"floating":h],w=eu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),C=h==="floating"?{x:r,y:A,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),Q=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},_=eu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(w.top-_.top+v.top)/Q.y,bottom:(_.bottom-w.bottom+v.bottom)/Q.y,left:(w.left-_.left+v.left)/Q.x,right:(_.right-w.right+v.right)/Q.x}}const LM=async(t,e,n)=>{const{placement:r="bottom",strategy:A="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:A}),{x:d,y:h}=UB(u,r,l),p=r,m={},v=0;for(let y=0;y<a.length;y++){var B;const{name:w,fn:C}=a[y],{x:S,y:Q,data:_,reset:D}=await C({x:d,y:h,initialPlacement:r,placement:p,strategy:A,middlewareData:m,rects:u,platform:{...o,detectOverflow:(B=o.detectOverflow)!=null?B:NM},elements:{reference:t,floating:e}});d=S??d,h=Q??h,m={...m,[w]:{...m[w],..._}},D&&v<=50&&(v++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(u=D.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:A}):D.rects),{x:d,y:h}=UB(u,p,l)),y=-1)}return{x:d,y:h,placement:p,strategy:A,middlewareData:m}},RM=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:A,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:d=0}=sl(t,e)||{};if(u==null)return{};const h=IB(d),p={x:n,y:r},m=rp(A),v=np(m),B=await o.getDimensions(u),y=m==="y",w=y?"top":"left",C=y?"bottom":"right",S=y?"clientHeight":"clientWidth",Q=i.reference[v]+i.reference[m]-p[m]-i.floating[v],_=p[m]-i.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let I=D?D[S]:0;(!I||!await(o.isElement==null?void 0:o.isElement(D)))&&(I=a.floating[S]||i.floating[v]);const $=Q/2-_/2,Y=I/2-B[v]/2-1,de=Gs(h[w],Y),ge=Gs(h[C],Y),me=de,we=I-B[v]-ge,te=I/2-B[v]/2+$,V=tp(me,te,we),q=!l.arrow&&al(A)!=null&&te!==V&&i.reference[v]/2-(te<me?de:ge)-B[v]/2<0,x=q?te<me?te-me:te-we:0;return{[m]:p[m]+x,data:{[m]:V,centerOffset:te-V-x,...q&&{alignmentOffset:x}},reset:q}}}),HM=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:A,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:B=!0,...y}=sl(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=Zo(A),C=to(a),S=Zo(a)===a,Q=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=p||(S||!B?[Vc(a)]:MM(a)),D=v!=="none";!p&&D&&_.push(...DM(a,B,v,Q));const I=[a,..._],$=await l.detectOverflow(e,y),Y=[];let de=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&Y.push($[w]),h){const te=TM(A,o,Q);Y.push($[te[0]],$[te[1]])}if(de=[...de,{placement:A,overflows:Y}],!Y.every(te=>te<=0)){var ge,me;const te=(((ge=i.flip)==null?void 0:ge.index)||0)+1,V=I[te];if(V&&(!(h==="alignment"?C!==to(V):!1)||de.every(T=>to(T.placement)===C?T.overflows[0]>0:!0)))return{data:{index:te,overflows:de},reset:{placement:V}};let q=(me=de.filter(x=>x.overflows[0]<=0).sort((x,T)=>x.overflows[1]-T.overflows[1])[0])==null?void 0:me.placement;if(!q)switch(m){case"bestFit":{var we;const x=(we=de.filter(T=>{if(D){const P=to(T.placement);return P===C||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,F)=>P+F,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:we[0];x&&(q=x);break}case"initialPlacement":q=a;break}if(A!==q)return{reset:{placement:q}}}return{}}}},PM=new Set(["left","top"]);async function $M(t,e){const{placement:n,platform:r,elements:A}=t,i=await(r.isRTL==null?void 0:r.isRTL(A.floating)),o=Zo(n),a=al(n),l=to(n)==="y",u=PM.has(o)?-1:1,d=i&&l?-1:1,h=sl(e,t);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),l?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const KM=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:A,y:i,placement:o,middlewareData:a}=e,l=await $M(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:A+l.x,y:i+l.y,data:{...l,placement:o}}}}},zM=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:A,platform:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x:C,y:S}=w;return{x:C,y:S}}},...u}=sl(t,e),d={x:n,y:r},h=await i.detectOverflow(e,u),p=to(Zo(A)),m=QB(p);let v=d[m],B=d[p];if(o){const w=m==="y"?"top":"left",C=m==="y"?"bottom":"right",S=v+h[w],Q=v-h[C];v=tp(S,v,Q)}if(a){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",S=B+h[w],Q=B-h[C];B=tp(S,B,Q)}const y=l.fn({...e,[m]:v,[p]:B});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[m]:o,[p]:a}}}}}};function tu(){return typeof window<"u"}function Vo(t){return ip(t)?(t.nodeName||"").toLowerCase():"#document"}function Dr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function GA(t){var e;return(e=(ip(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ip(t){return tu()?t instanceof Node||t instanceof Dr(t).Node:!1}function yA(t){return tu()?t instanceof Element||t instanceof Dr(t).Element:!1}function YA(t){return tu()?t instanceof HTMLElement||t instanceof Dr(t).HTMLElement:!1}function _B(t){return!tu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Dr(t).ShadowRoot}const WM=new Set(["inline","contents"]);function ll(t){const{overflow:e,overflowX:n,overflowY:r,display:A}=CA(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!WM.has(A)}const GM=new Set(["table","td","th"]);function YM(t){return GM.has(Vo(t))}const qM=[":popover-open",":modal"];function nu(t){return qM.some(e=>{try{return t.matches(e)}catch{return!1}})}const XM=["transform","translate","scale","rotate","perspective"],JM=["transform","translate","scale","rotate","perspective","filter"],jM=["paint","layout","strict","content"];function op(t){const e=sp(),n=yA(t)?CA(t):t;return XM.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||JM.some(r=>(n.willChange||"").includes(r))||jM.some(r=>(n.contain||"").includes(r))}function ZM(t){let e=no(t);for(;YA(e)&&!Ys(e);){if(op(e))return e;if(nu(e))return null;e=no(e)}return null}function sp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VM=new Set(["html","body","#document"]);function Ys(t){return VM.has(Vo(t))}function CA(t){return Dr(t).getComputedStyle(t)}function ru(t){return yA(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function no(t){if(Vo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_B(t)&&t.host||GA(t);return _B(e)?e.host:e}function DB(t){const e=no(t);return Ys(e)?t.ownerDocument?t.ownerDocument.body:t.body:YA(e)&&ll(e)?e:DB(e)}function cl(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const A=DB(t),i=A===((r=t.ownerDocument)==null?void 0:r.body),o=Dr(A);if(i){const a=ap(o);return e.concat(o,o.visualViewport||[],ll(A)?A:[],a&&n?cl(a):[])}return e.concat(A,cl(A,[],n))}function ap(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function OB(t){const e=CA(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const A=YA(t),i=A?t.offsetWidth:n,o=A?t.offsetHeight:r,a=jc(n)!==i||jc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function lp(t){return yA(t)?t:t.contextElement}function qs(t){const e=lp(t);if(!YA(e))return WA(1);const n=e.getBoundingClientRect(),{width:r,height:A,$:i}=OB(e);let o=(i?jc(n.width):n.width)/r,a=(i?jc(n.height):n.height)/A;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eI=WA(0);function NB(t){const e=Dr(t);return!sp()||!e.visualViewport?eI:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function tI(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Dr(t)?!1:e}function es(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const A=t.getBoundingClientRect(),i=lp(t);let o=WA(1);e&&(r?yA(r)&&(o=qs(r)):o=qs(t));const a=tI(i,n,r)?NB(i):WA(0);let l=(A.left+a.x)/o.x,u=(A.top+a.y)/o.y,d=A.width/o.x,h=A.height/o.y;if(i){const p=Dr(i),m=r&&yA(r)?Dr(r):r;let v=p,B=ap(v);for(;B&&r&&m!==v;){const y=qs(B),w=B.getBoundingClientRect(),C=CA(B),S=w.left+(B.clientLeft+parseFloat(C.paddingLeft))*y.x,Q=w.top+(B.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,h*=y.y,l+=S,u+=Q,v=Dr(B),B=ap(v)}}return eu({width:d,height:h,x:l,y:u})}function Au(t,e){const n=ru(t).scrollLeft;return e?e.left+n:es(GA(t)).left+n}function LB(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Au(t,n),A=n.top+e.scrollTop;return{x:r,y:A}}function nI(t){let{elements:e,rect:n,offsetParent:r,strategy:A}=t;const i=A==="fixed",o=GA(r),a=e?nu(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=WA(1);const d=WA(0),h=YA(r);if((h||!h&&!i)&&((Vo(r)!=="body"||ll(o))&&(l=ru(r)),YA(r))){const m=es(r);u=qs(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=o&&!h&&!i?LB(o,l):WA(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function rI(t){return Array.from(t.getClientRects())}function AI(t){const e=GA(t),n=ru(t),r=t.ownerDocument.body,A=jo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=jo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Au(t);const a=-n.scrollTop;return CA(r).direction==="rtl"&&(o+=jo(e.clientWidth,r.clientWidth)-A),{width:A,height:i,x:o,y:a}}const RB=25;function iI(t,e){const n=Dr(t),r=GA(t),A=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(A){i=A.width,o=A.height;const d=sp();(!d||d&&e==="fixed")&&(a=A.offsetLeft,l=A.offsetTop)}const u=Au(r);if(u<=0){const d=r.ownerDocument,h=d.body,p=getComputedStyle(h),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-h.clientWidth-m);v<=RB&&(i-=v)}else u<=RB&&(i+=u);return{width:i,height:o,x:a,y:l}}const oI=new Set(["absolute","fixed"]);function sI(t,e){const n=es(t,!0,e==="fixed"),r=n.top+t.clientTop,A=n.left+t.clientLeft,i=YA(t)?qs(t):WA(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=A*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function HB(t,e,n){let r;if(e==="viewport")r=iI(t,n);else if(e==="document")r=AI(GA(t));else if(yA(e))r=sI(e,n);else{const A=NB(t);r={x:e.x-A.x,y:e.y-A.y,width:e.width,height:e.height}}return eu(r)}function PB(t,e){const n=no(t);return n===e||!yA(n)||Ys(n)?!1:CA(n).position==="fixed"||PB(n,e)}function aI(t,e){const n=e.get(t);if(n)return n;let r=cl(t,[],!1).filter(a=>yA(a)&&Vo(a)!=="body"),A=null;const i=CA(t).position==="fixed";let o=i?no(t):t;for(;yA(o)&&!Ys(o);){const a=CA(o),l=op(o);!l&&a.position==="fixed"&&(A=null),(i?!l&&!A:!l&&a.position==="static"&&!!A&&oI.has(A.position)||ll(o)&&!l&&PB(t,o))?r=r.filter(d=>d!==o):A=a,o=no(o)}return e.set(t,r),r}function lI(t){let{element:e,boundary:n,rootBoundary:r,strategy:A}=t;const o=[...n==="clippingAncestors"?nu(e)?[]:aI(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const h=HB(e,d,A);return u.top=jo(h.top,u.top),u.right=Gs(h.right,u.right),u.bottom=Gs(h.bottom,u.bottom),u.left=jo(h.left,u.left),u},HB(e,a,A));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cI(t){const{width:e,height:n}=OB(t);return{width:e,height:n}}function uI(t,e,n){const r=YA(e),A=GA(e),i=n==="fixed",o=es(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=WA(0);function u(){l.x=Au(A)}if(r||!r&&!i)if((Vo(e)!=="body"||ll(A))&&(a=ru(e)),r){const m=es(e,!0,i,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else A&&u();i&&!r&&A&&u();const d=A&&!r&&!i?LB(A,a):WA(0),h=o.left+a.scrollLeft-l.x-d.x,p=o.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:o.width,height:o.height}}function cp(t){return CA(t).position==="static"}function $B(t,e){if(!YA(t)||CA(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return GA(t)===n&&(n=n.ownerDocument.body),n}function KB(t,e){const n=Dr(t);if(nu(t))return n;if(!YA(t)){let A=no(t);for(;A&&!Ys(A);){if(yA(A)&&!cp(A))return A;A=no(A)}return n}let r=$B(t,e);for(;r&&YM(r)&&cp(r);)r=$B(r,e);return r&&Ys(r)&&cp(r)&&!op(r)?n:r||ZM(t)||n}const dI=async function(t){const e=this.getOffsetParent||KB,n=this.getDimensions,r=await n(t.floating);return{reference:uI(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fI(t){return CA(t).direction==="rtl"}const hI={convertOffsetParentRelativeRectToViewportRelativeRect:nI,getDocumentElement:GA,getClippingRect:lI,getOffsetParent:KB,getElementRects:dI,getClientRects:rI,getDimensions:cI,getScale:qs,isElement:yA,isRTL:fI};function zB(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function pI(t,e){let n=null,r;const A=GA(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:p,height:m}=u;if(a||e(),!p||!m)return;const v=Zc(h),B=Zc(A.clientWidth-(d+p)),y=Zc(A.clientHeight-(h+m)),w=Zc(d),S={rootMargin:-v+"px "+-B+"px "+-y+"px "+-w+"px",threshold:jo(0,Gs(1,l))||1};let Q=!0;function _(D){const I=D[0].intersectionRatio;if(I!==l){if(!Q)return o();I?o(!1,I):r=setTimeout(()=>{o(!1,1e-7)},1e3)}I===1&&!zB(u,t.getBoundingClientRect())&&o(),Q=!1}try{n=new IntersectionObserver(_,{...S,root:A.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(t)}return o(!0),i}function mI(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:A=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=lp(t),d=A||i?[...u?cl(u):[],...cl(e)]:[];d.forEach(w=>{A&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=u&&a?pI(u,n):null;let p=-1,m=null;o&&(m=new ResizeObserver(w=>{let[C]=w;C&&C.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(e)})),n()}),u&&!l&&m.observe(u),m.observe(e));let v,B=l?es(t):null;l&&y();function y(){const w=es(t);B&&!zB(B,w)&&n(),B=w,v=requestAnimationFrame(y)}return n(),()=>{var w;d.forEach(C=>{A&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(w=m)==null||w.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const gI=KM,vI=zM,wI=HM,BI=RM,yI=(t,e,n)=>{const r=new Map,A={platform:hI,...n},i={...A.platform,_c:r};return LM(t,e,{...A,platform:i})};function CI(t){return t!=null&&typeof t=="object"&&"$el"in t}function up(t){if(CI(t)){const e=t.$el;return ip(e)&&Vo(e)==="#comment"?null:e}return t}function Xs(t){return typeof t=="function"?t():s.unref(t)}function bI(t){return{name:"arrow",options:t,fn(e){const n=up(Xs(t.element));return n==null?{}:BI({element:n,padding:t.padding}).fn(e)}}}function WB(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function GB(t,e){const n=WB(t);return Math.round(e*n)/n}function EI(t,e,n){n===void 0&&(n={});const r=n.whileElementsMounted,A=s.computed(()=>{var I;return(I=Xs(n.open))!=null?I:!0}),i=s.computed(()=>Xs(n.middleware)),o=s.computed(()=>{var I;return(I=Xs(n.placement))!=null?I:"bottom"}),a=s.computed(()=>{var I;return(I=Xs(n.strategy))!=null?I:"absolute"}),l=s.computed(()=>{var I;return(I=Xs(n.transform))!=null?I:!0}),u=s.computed(()=>up(t.value)),d=s.computed(()=>up(e.value)),h=s.ref(0),p=s.ref(0),m=s.ref(a.value),v=s.ref(o.value),B=s.shallowRef({}),y=s.ref(!1),w=s.computed(()=>{const I={position:m.value,left:"0",top:"0"};if(!d.value)return I;const $=GB(d.value,h.value),Y=GB(d.value,p.value);return l.value?{...I,transform:"translate("+$+"px, "+Y+"px)",...WB(d.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:$+"px",top:Y+"px"}});let C;function S(){if(u.value==null||d.value==null)return;const I=A.value;yI(u.value,d.value,{middleware:i.value,placement:o.value,strategy:a.value}).then($=>{h.value=$.x,p.value=$.y,m.value=$.strategy,v.value=$.placement,B.value=$.middlewareData,y.value=I!==!1})}function Q(){typeof C=="function"&&(C(),C=void 0)}function _(){if(Q(),r===void 0){S();return}if(u.value!=null&&d.value!=null){C=r(u.value,d.value,S);return}}function D(){A.value||(y.value=!1)}return s.watch([i,o,a,A],S,{flush:"sync"}),s.watch([u,d],_,{flush:"sync"}),s.watch(A,D,{flush:"sync"}),s.getCurrentScope()&&s.onScopeDispose(Q),{x:s.shallowReadonly(h),y:s.shallowReadonly(p),strategy:s.shallowReadonly(m),placement:s.shallowReadonly(v),middlewareData:s.shallowReadonly(B),isPositioned:s.shallowReadonly(y),floatingStyles:w,update:S}}const YB=6048e5,kI=864e5,SI=6e4,xI=36e5,FI=1e3,qB=Symbol.for("constructDateFrom");function _t(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&qB in t?t[qB](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ve(t,e){return _t(e||t,t)}function Xr(t,e,n){const r=Ve(t,n?.in);return isNaN(e)?_t(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function bA(t,e,n){const r=Ve(t,n?.in);if(isNaN(e))return _t(t,NaN);if(!e)return r;const A=r.getDate(),i=_t(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const o=i.getDate();return A>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),A),r)}function XB(t,e,n){const{years:r=0,months:A=0,weeks:i=0,days:o=0,hours:a=0,minutes:l=0,seconds:u=0}=e,d=Ve(t,n?.in),h=A||r?bA(d,A+r*12):d,p=o||i?Xr(h,o+i*7):h,m=l+a*60,B=(u+m*60)*1e3;return _t(t,+p+B)}let QI={};function ts(){return QI}function Jr(t,e){const n=ts(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,A=Ve(t,e?.in),i=A.getDay(),o=(i<r?7:0)+i-r;return A.setDate(A.getDate()-o),A.setHours(0,0,0,0),A}function Js(t,e){return Jr(t,{...e,weekStartsOn:1})}function JB(t,e){const n=Ve(t,e?.in),r=n.getFullYear(),A=_t(n,0);A.setFullYear(r+1,0,4),A.setHours(0,0,0,0);const i=Js(A),o=_t(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=Js(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function iu(t){const e=Ve(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function ul(t,...e){const n=_t.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function jB(t,e){const n=Ve(t,e?.in);return n.setHours(0,0,0,0),n}function ZB(t,e,n){const[r,A]=ul(n?.in,t,e),i=jB(r),o=jB(A),a=+i-iu(i),l=+o-iu(o);return Math.round((a-l)/kI)}function TI(t,e){const n=JB(t,e),r=_t(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Js(r)}function MI(t,e,n){return bA(t,e*3,n)}function dp(t,e,n){return bA(t,e*12,n)}function VB(t,e){const n=+Ve(t)-+Ve(e);return n<0?-1:n>0?1:n}function e0(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function dl(t){return!(!e0(t)&&typeof t!="number"||isNaN(+Ve(t)))}function t0(t,e){const n=Ve(t,e?.in);return Math.trunc(n.getMonth()/3)+1}function II(t,e,n){const[r,A]=ul(n?.in,t,e);return r.getFullYear()-A.getFullYear()}function UI(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function _I(t,e,n){const[r,A]=ul(n?.in,t,e),i=VB(r,A),o=Math.abs(II(r,A));r.setFullYear(1584),A.setFullYear(1584);const a=VB(r,A)===-i,l=i*(o-+a);return l===0?0:l}function n0(t,e){const[n,r]=ul(t,e.start,e.end);return{start:n,end:r}}function fp(t,e){const{start:n,end:r}=n0(e?.in,t);let A=+n>+r;const i=A?+n:+r,o=A?r:n;o.setHours(0,0,0,0);let a=1;const l=[];for(;+o<=i;)l.push(_t(n,o)),o.setDate(o.getDate()+a),o.setHours(0,0,0,0);return A?l.reverse():l}function ns(t,e){const n=Ve(t,e?.in),r=n.getMonth(),A=r-r%3;return n.setMonth(A,1),n.setHours(0,0,0,0),n}function DI(t,e){const{start:n,end:r}=n0(e?.in,t);let A=+n>+r;const i=A?+ns(n):+ns(r);let o=ns(A?r:n),a=1;const l=[];for(;+o<=i;)l.push(_t(n,o)),o=MI(o,a);return A?l.reverse():l}function OI(t,e){const n=Ve(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function r0(t,e){const n=Ve(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function js(t,e){const n=Ve(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hp(t,e){const n=ts(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,A=Ve(t,e?.in),i=A.getDay(),o=(i<r?-7:0)+6-(i-r);return A.setDate(A.getDate()+o),A.setHours(23,59,59,999),A}function A0(t,e){const n=Ve(t,e?.in),r=n.getMonth(),A=r-r%3+3;return n.setMonth(A,0),n.setHours(23,59,59,999),n}const NI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},LI=(t,e,n)=>{let r;const A=NI[t];return typeof A=="string"?r=A:e===1?r=A.one:r=A.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function yi(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const RI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},HI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$I={date:yi({formats:RI,defaultWidth:"full"}),time:yi({formats:HI,defaultWidth:"full"}),dateTime:yi({formats:PI,defaultWidth:"full"})},KI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zI=(t,e,n,r)=>KI[t];function ur(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let A;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;A=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;A=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return A[i]}}const WI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},GI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},XI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},JI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jI={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ur({values:WI,defaultWidth:"wide"}),quarter:ur({values:GI,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ur({values:YI,defaultWidth:"wide"}),day:ur({values:qI,defaultWidth:"wide"}),dayPeriod:ur({values:XI,defaultWidth:"wide",formattingValues:JI,defaultFormattingWidth:"wide"})};function dr(t){return(e,n={})=>{const r=n.width,A=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(A);if(!i)return null;const o=i[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?VI(a,h=>h.test(o)):ZI(a,h=>h.test(o));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(o.length);return{value:u,rest:d}}}function ZI(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function VI(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function pp(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const A=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(A.length);return{value:o,rest:a}}}const eU=/^(\d+)(th|st|nd|rd)?/i,tU=/\d+/i,nU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rU={any:[/^b/i,/^(a|c)/i]},AU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iU={any:[/1/i,/2/i,/3/i,/4/i]},oU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dU={ordinalNumber:pp({matchPattern:eU,parsePattern:tU,valueCallback:t=>parseInt(t,10)}),era:dr({matchPatterns:nU,defaultMatchWidth:"wide",parsePatterns:rU,defaultParseWidth:"any"}),quarter:dr({matchPatterns:AU,defaultMatchWidth:"wide",parsePatterns:iU,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dr({matchPatterns:oU,defaultMatchWidth:"wide",parsePatterns:sU,defaultParseWidth:"any"}),day:dr({matchPatterns:aU,defaultMatchWidth:"wide",parsePatterns:lU,defaultParseWidth:"any"}),dayPeriod:dr({matchPatterns:cU,defaultMatchWidth:"any",parsePatterns:uU,defaultParseWidth:"any"})},ou={code:"en-US",formatDistance:LI,formatLong:$I,formatRelative:zI,localize:jI,match:dU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fU(t,e){const n=Ve(t,e?.in);return ZB(n,js(n))+1}function mp(t,e){const n=Ve(t,e?.in),r=+Js(n)-+TI(n);return Math.round(r/YB)+1}function gp(t,e){const n=Ve(t,e?.in),r=n.getFullYear(),A=ts(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??A.firstWeekContainsDate??A.locale?.options?.firstWeekContainsDate??1,o=_t(e?.in||t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=Jr(o,e),l=_t(e?.in||t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Jr(l,e);return+n>=+a?r+1:+n>=+u?r:r-1}function hU(t,e){const n=ts(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,A=gp(t,e),i=_t(e?.in||t,0);return i.setFullYear(A,0,r),i.setHours(0,0,0,0),Jr(i,e)}function vp(t,e){const n=Ve(t,e?.in),r=+Jr(n,e)-+hU(n,e);return Math.round(r/YB)+1}function Dt(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const ro={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Dt(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Dt(n+1,2)},d(t,e){return Dt(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Dt(t.getHours()%12||12,e.length)},H(t,e){return Dt(t.getHours(),e.length)},m(t,e){return Dt(t.getMinutes(),e.length)},s(t,e){return Dt(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),A=Math.trunc(r*Math.pow(10,n-3));return Dt(A,e.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},i0={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),A=r>0?r:1-r;return n.ordinalNumber(A,{unit:"year"})}return ro.y(t,e)},Y:function(t,e,n,r){const A=gp(t,r),i=A>0?A:1-A;if(e==="YY"){const o=i%100;return Dt(o,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Dt(i,e.length)},R:function(t,e){const n=JB(t);return Dt(n,e.length)},u:function(t,e){const n=t.getFullYear();return Dt(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Dt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Dt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return ro.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Dt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const A=vp(t,r);return e==="wo"?n.ordinalNumber(A,{unit:"week"}):Dt(A,e.length)},I:function(t,e,n){const r=mp(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Dt(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):ro.d(t,e)},D:function(t,e,n){const r=fU(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Dt(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const A=t.getDay(),i=(A-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Dt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(A,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(A,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(A,{width:"short",context:"formatting"});default:return n.day(A,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const A=t.getDay(),i=(A-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Dt(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(A,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(A,{width:"narrow",context:"standalone"});case"cccccc":return n.day(A,{width:"short",context:"standalone"});default:return n.day(A,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),A=r===0?7:r;switch(e){case"i":return String(A);case"ii":return Dt(A,e.length);case"io":return n.ordinalNumber(A,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const A=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(A,{width:"narrow",context:"formatting"});default:return n.dayPeriod(A,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let A;switch(r===12?A=Zs.noon:r===0?A=Zs.midnight:A=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(A,{width:"narrow",context:"formatting"});default:return n.dayPeriod(A,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let A;switch(r>=17?A=Zs.evening:r>=12?A=Zs.afternoon:r>=4?A=Zs.morning:A=Zs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(A,{width:"narrow",context:"formatting"});default:return n.dayPeriod(A,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ro.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):ro.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Dt(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Dt(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):ro.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):ro.s(t,e)},S:function(t,e){return ro.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return s0(r);case"XXXX":case"XX":return rs(r);default:return rs(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return s0(r);case"xxxx":case"xx":return rs(r);default:return rs(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+o0(r,":");default:return"GMT"+rs(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+o0(r,":");default:return"GMT"+rs(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Dt(r,e.length)},T:function(t,e,n){return Dt(+t,e.length)}};function o0(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),A=Math.trunc(r/60),i=r%60;return i===0?n+String(A):n+String(A)+e+Dt(i,2)}function s0(t,e){return t%60===0?(t>0?"-":"+")+Dt(Math.abs(t)/60,2):rs(t,e)}function rs(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),A=Dt(Math.trunc(r/60),2),i=Dt(r%60,2);return n+A+e+i}const a0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},l0=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},wp={p:l0,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],A=n[2];if(!A)return a0(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",a0(r,e)).replace("{{time}}",l0(A,e))}},pU=/^D+$/,mU=/^Y+$/,gU=["D","DD","YY","YYYY"];function c0(t){return pU.test(t)}function u0(t){return mU.test(t)}function Bp(t,e,n){const r=vU(t,e,n);if(console.warn(r),gU.includes(t))throw new RangeError(r)}function vU(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const wU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yU=/^'([^]*?)'?$/,CU=/''/g,bU=/[a-zA-Z]/;function jr(t,e,n){const r=ts(),A=n?.locale??r.locale??ou,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Ve(t,n?.in);if(!dl(a))throw new RangeError("Invalid time value");let l=e.match(BU).map(d=>{const h=d[0];if(h==="p"||h==="P"){const p=wp[h];return p(d,A.formatLong)}return d}).join("").match(wU).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const h=d[0];if(h==="'")return{isToken:!1,value:EU(d)};if(i0[h])return{isToken:!0,value:d};if(h.match(bU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:d}});A.localize.preprocessor&&(l=A.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:A};return l.map(d=>{if(!d.isToken)return d.value;const h=d.value;(!n?.useAdditionalWeekYearTokens&&u0(h)||!n?.useAdditionalDayOfYearTokens&&c0(h))&&Bp(h,e,String(t));const p=i0[h[0]];return p(a,h,A.localize,u)}).join("")}function EU(t){const e=t.match(yU);return e?e[1].replace(CU,"'"):t}function kU(t,e){return Ve(t,e?.in).getDay()}function SU(t,e){const n=Ve(t,e?.in),r=n.getFullYear(),A=n.getMonth(),i=_t(n,0);return i.setFullYear(r,A+1,0),i.setHours(0,0,0,0),i.getDate()}function xU(){return Object.assign({},ts())}function qA(t,e){return Ve(t,e?.in).getHours()}function FU(t,e){const n=Ve(t,e?.in).getDay();return n===0?7:n}function Ci(t,e){return Ve(t,e?.in).getMinutes()}function gt(t,e){return Ve(t,e?.in).getMonth()}function Ao(t){return Ve(t).getSeconds()}function tt(t,e){return Ve(t,e?.in).getFullYear()}function XA(t,e){return+Ve(t)>+Ve(e)}function bi(t,e){return+Ve(t)<+Ve(e)}function Vs(t,e){return+Ve(t)==+Ve(e)}function QU(t,e){const n=TU(e)?new e(0):_t(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function TU(t){return typeof t=="function"&&t.prototype?.constructor===t}const MU=10;class d0{subPriority=0;validate(e,n){return!0}}class IU extends d0{constructor(e,n,r,A,i){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=A,i&&(this.subPriority=i)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class UU extends d0{priority=MU;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>_t(n,r))}set(e,n){return n.timestampIsSet?e:_t(e,QU(e,this.context))}}let Qt=class{run(e,n,r,A){const i=this.parse(e,n,r,A);return i?{setter:new IU(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,n,r){return!0}};class _U extends Qt{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const un={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},JA={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dn(t,e){return t&&{value:e(t.value),rest:t.rest}}function Vt(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jA(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,A=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(A*xI+i*SI+o*FI),rest:e.slice(n[0].length)}}function f0(t){return Vt(un.anyDigitsSigned,t)}function An(t,e){switch(t){case 1:return Vt(un.singleDigit,e);case 2:return Vt(un.twoDigits,e);case 3:return Vt(un.threeDigits,e);case 4:return Vt(un.fourDigits,e);default:return Vt(new RegExp("^\\d{1,"+t+"}"),e)}}function su(t,e){switch(t){case 1:return Vt(un.singleDigitSigned,e);case 2:return Vt(un.twoDigitsSigned,e);case 3:return Vt(un.threeDigitsSigned,e);case 4:return Vt(un.fourDigitsSigned,e);default:return Vt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function yp(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function h0(t,e){const n=e>0,r=n?e:1-e;let A;if(r<=50)A=t||100;else{const i=r+50,o=Math.trunc(i/100)*100,a=t>=i%100;A=t+o-(a?100:0)}return n?A:1-A}function p0(t){return t%400===0||t%4===0&&t%100!==0}class DU extends Qt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const A=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return dn(An(4,e),A);case"yo":return dn(r.ordinalNumber(e,{unit:"year"}),A);default:return dn(An(n.length,e),A)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const A=e.getFullYear();if(r.isTwoDigitYear){const o=h0(r.year,A);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class OU extends Qt{priority=130;parse(e,n,r){const A=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return dn(An(4,e),A);case"Yo":return dn(r.ordinalNumber(e,{unit:"year"}),A);default:return dn(An(n.length,e),A)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,A){const i=gp(e,A);if(r.isTwoDigitYear){const a=h0(r.year,i);return e.setFullYear(a,0,A.firstWeekContainsDate),e.setHours(0,0,0,0),Jr(e,A)}const o=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(o,0,A.firstWeekContainsDate),e.setHours(0,0,0,0),Jr(e,A)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class NU extends Qt{priority=130;parse(e,n){return su(n==="R"?4:n.length,e)}set(e,n,r){const A=_t(e,0);return A.setFullYear(r,0,4),A.setHours(0,0,0,0),Js(A)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class LU extends Qt{priority=130;parse(e,n){return su(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class RU extends Qt{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return An(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class HU extends Qt{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return An(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class PU extends Qt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const A=i=>i-1;switch(n){case"M":return dn(Vt(un.month,e),A);case"MM":return dn(An(2,e),A);case"Mo":return dn(r.ordinalNumber(e,{unit:"month"}),A);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class $U extends Qt{priority=110;parse(e,n,r){const A=i=>i-1;switch(n){case"L":return dn(Vt(un.month,e),A);case"LL":return dn(An(2,e),A);case"Lo":return dn(r.ordinalNumber(e,{unit:"month"}),A);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function KU(t,e,n){const r=Ve(t,n?.in),A=vp(r,n)-e;return r.setDate(r.getDate()-A*7),Ve(r,n?.in)}class zU extends Qt{priority=100;parse(e,n,r){switch(n){case"w":return Vt(un.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,A){return Jr(KU(e,r,A),A)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function WU(t,e,n){const r=Ve(t,n?.in),A=mp(r,n)-e;return r.setDate(r.getDate()-A*7),r}class GU extends Qt{priority=100;parse(e,n,r){switch(n){case"I":return Vt(un.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Js(WU(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const YU=[31,28,31,30,31,30,31,31,30,31,30,31],qU=[31,29,31,30,31,30,31,31,30,31,30,31];class XU extends Qt{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return Vt(un.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return An(n.length,e)}}validate(e,n){const r=e.getFullYear(),A=p0(r),i=e.getMonth();return A?n>=1&&n<=qU[i]:n>=1&&n<=YU[i]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class JU extends Qt{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return Vt(un.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return An(n.length,e)}}validate(e,n){const r=e.getFullYear();return p0(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Cp(t,e,n){const r=ts(),A=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ve(t,n?.in),o=i.getDay(),l=(e%7+7)%7,u=7-A,d=e<0||e>6?e-(o+u)%7:(l+u)%7-(o+u)%7;return Xr(i,d,n)}class jU extends Qt{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,A){return e=Cp(e,r,A),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class ZU extends Qt{priority=90;parse(e,n,r,A){const i=o=>{const a=Math.floor((o-1)/7)*7;return(o+A.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return dn(An(n.length,e),i);case"eo":return dn(r.ordinalNumber(e,{unit:"day"}),i);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,A){return e=Cp(e,r,A),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class VU extends Qt{priority=90;parse(e,n,r,A){const i=o=>{const a=Math.floor((o-1)/7)*7;return(o+A.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return dn(An(n.length,e),i);case"co":return dn(r.ordinalNumber(e,{unit:"day"}),i);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,A){return e=Cp(e,r,A),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function e_(t,e,n){const r=Ve(t,n?.in),A=FU(r,n),i=e-A;return Xr(r,i,n)}class t_ extends Qt{priority=90;parse(e,n,r){const A=i=>i===0?7:i;switch(n){case"i":case"ii":return An(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return dn(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),A);case"iiiii":return dn(r.day(e,{width:"narrow",context:"formatting"}),A);case"iiiiii":return dn(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),A);default:return dn(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),A)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=e_(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class n_ extends Qt{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(yp(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class r_ extends Qt{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(yp(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class A_ extends Qt{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(yp(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class i_ extends Qt{priority=70;parse(e,n,r){switch(n){case"h":return Vt(un.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const A=e.getHours()>=12;return A&&r<12?e.setHours(r+12,0,0,0):!A&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class o_ extends Qt{priority=70;parse(e,n,r){switch(n){case"H":return Vt(un.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class s_ extends Qt{priority=70;parse(e,n,r){switch(n){case"K":return Vt(un.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class a_ extends Qt{priority=70;parse(e,n,r){switch(n){case"k":return Vt(un.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const A=r<=24?r%24:r;return e.setHours(A,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class l_ extends Qt{priority=60;parse(e,n,r){switch(n){case"m":return Vt(un.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class c_ extends Qt{priority=50;parse(e,n,r){switch(n){case"s":return Vt(un.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class u_ extends Qt{priority=30;parse(e,n){const r=A=>Math.trunc(A*Math.pow(10,-n.length+3));return dn(An(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class d_ extends Qt{priority=10;parse(e,n){switch(n){case"X":return jA(JA.basicOptionalMinutes,e);case"XX":return jA(JA.basic,e);case"XXXX":return jA(JA.basicOptionalSeconds,e);case"XXXXX":return jA(JA.extendedOptionalSeconds,e);default:return jA(JA.extended,e)}}set(e,n,r){return n.timestampIsSet?e:_t(e,e.getTime()-iu(e)-r)}incompatibleTokens=["t","T","x"]}class f_ extends Qt{priority=10;parse(e,n){switch(n){case"x":return jA(JA.basicOptionalMinutes,e);case"xx":return jA(JA.basic,e);case"xxxx":return jA(JA.basicOptionalSeconds,e);case"xxxxx":return jA(JA.extendedOptionalSeconds,e);default:return jA(JA.extended,e)}}set(e,n,r){return n.timestampIsSet?e:_t(e,e.getTime()-iu(e)-r)}incompatibleTokens=["t","T","X"]}class h_ extends Qt{priority=40;parse(e){return f0(e)}set(e,n,r){return[_t(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class p_ extends Qt{priority=20;parse(e){return f0(e)}set(e,n,r){return[_t(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const m_={G:new _U,y:new DU,Y:new OU,R:new NU,u:new LU,Q:new RU,q:new HU,M:new PU,L:new $U,w:new zU,I:new GU,d:new XU,D:new JU,E:new jU,e:new ZU,c:new VU,i:new t_,a:new n_,b:new r_,B:new A_,h:new i_,H:new o_,K:new s_,k:new a_,m:new l_,s:new c_,S:new u_,X:new d_,x:new f_,t:new h_,T:new p_},g_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w_=/^'([^]*?)'?$/,B_=/''/g,y_=/\S/,C_=/[a-zA-Z]/;function bp(t,e,n,r){const A=()=>_t(r?.in||n,NaN),i=xU(),o=r?.locale??i.locale??ou,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return t?A():Ve(n,r?.in);const u={firstWeekContainsDate:a,weekStartsOn:l,locale:o},d=[new UU(r?.in,n)],h=e.match(v_).map(y=>{const w=y[0];if(w in wp){const C=wp[w];return C(y,o.formatLong)}return y}).join("").match(g_),p=[];for(let y of h){!r?.useAdditionalWeekYearTokens&&u0(y)&&Bp(y,e,t),!r?.useAdditionalDayOfYearTokens&&c0(y)&&Bp(y,e,t);const w=y[0],C=m_[w];if(C){const{incompatibleTokens:S}=C;if(Array.isArray(S)){const _=p.find(D=>S.includes(D.token)||D.token===w);if(_)throw new RangeError(`The format string mustn't contain \`${_.fullToken}\` and \`${y}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${y}\` and any other token at the same time`);p.push({token:w,fullToken:y});const Q=C.run(t,y,o.match,u);if(!Q)return A();d.push(Q.setter),t=Q.rest}else{if(w.match(C_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");if(y==="''"?y="'":w==="'"&&(y=b_(y)),t.indexOf(y)===0)t=t.slice(y.length);else return A()}}if(t.length>0&&y_.test(t))return A();const m=d.map(y=>y.priority).sort((y,w)=>w-y).filter((y,w,C)=>C.indexOf(y)===w).map(y=>d.filter(w=>w.priority===y).sort((w,C)=>C.subPriority-w.subPriority)).map(y=>y[0]);let v=Ve(n,r?.in);if(isNaN(+v))return A();const B={};for(const y of m){if(!y.validate(v,u))return A();const w=y.set(v,B,u);Array.isArray(w)?(v=w[0],Object.assign(B,w[1])):v=w}return v}function b_(t){return t.match(w_)[1].replace(B_,"'")}function m0(t,e,n){const[r,A]=ul(n?.in,t,e);return+ns(r)==+ns(A)}function g0(t,e,n){return Xr(t,-e,n)}function E_(t,e){const n=e?.nearestTo??1;if(n<1||n>30)return _t(t,NaN);const r=Ve(t,e?.in),A=r.getSeconds()/60,i=r.getMilliseconds()/1e3/60,o=r.getMinutes()+A+i,a=e?.roundingMethod??"round",u=UI(a)(o/n)*n;return r.setMinutes(u,0,0),r}function v0(t,e,n){const r=Ve(t,n?.in),A=r.getFullYear(),i=r.getDate(),o=_t(t,0);o.setFullYear(A,e,15),o.setHours(0,0,0,0);const a=SU(o);return r.setMonth(e,Math.min(i,a)),r}function ft(t,e,n){let r=Ve(t,n?.in);return isNaN(+r)?_t(t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=v0(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function k_(t,e,n){const r=Ve(t,n?.in);return r.setMilliseconds(e),r}function S_(t,e,n){const r=Ve(t,n?.in);return r.setSeconds(e),r}function EA(t,e,n){const r=Ve(t,n?.in);return isNaN(+r)?_t(t,NaN):(r.setFullYear(e),r)}function ea(t,e,n){return bA(t,-e,n)}function x_(t,e,n){const{years:r=0,months:A=0,weeks:i=0,days:o=0,hours:a=0,minutes:l=0,seconds:u=0}=e,d=ea(t,A+r*12,n),h=g0(d,o+i*7,n),p=l+a*60,v=(u+p*60)*1e3;return _t(t,+h-v)}function w0(t,e,n){return dp(t,-e,n)}function F_(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}const Q_={},fl={};function As(t,e){try{const r=(Q_[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return r in fl?fl[r]:B0(r,r.split(":"))}catch{if(t in fl)return fl[t];const n=t?.match(T_);return n?B0(t,n.slice(1)):NaN}}const T_=/([+-]\d\d):?(\d\d)?/;function B0(t,e){const n=+(e[0]||0),r=+(e[1]||0),A=+(e[2]||0)/60;return fl[t]=n*60+r>0?n*60+r+A:n*60-r-A}class ZA extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(As(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),C0(this),Ep(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new ZA(...n,e):new ZA(Date.now(),e)}withTimeZone(e){return new ZA(+this,e)}getTimezoneOffset(){const e=-As(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Ep(this),+this}[Symbol.for("constructDateFrom")](e){return new ZA(+new Date(e),this.timeZone)}}const y0=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!y0.test(t))return;const e=t.replace(y0,"$1UTC");ZA.prototype[e]&&(t.startsWith("get")?ZA.prototype[t]=function(){return this.internal[e]()}:(ZA.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),M_(this),+this},ZA.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),Ep(this),+this}))});function Ep(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-As(t.timeZone,t)*60))}function M_(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),C0(t)}function C0(t){const e=As(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),r=new Date(+t);r.setUTCHours(r.getUTCHours()-1);const A=-new Date(+t).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),o=A-i,a=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();o&&a&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+o);const l=A-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const u=new Date(+t);u.setUTCSeconds(0);const d=A>0?u.getSeconds():(u.getSeconds()-60)%60,h=Math.round(-(As(t.timeZone,t)*60))%60;(h||d)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+h),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+h+d));const p=As(t.timeZone,t),m=p>0?Math.floor(p):Math.ceil(p),B=-new Date(+t).getTimezoneOffset()-m,y=m!==n,w=B-l;if(y&&w){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+w);const C=As(t.timeZone,t),S=C>0?Math.floor(C):Math.ceil(C),Q=m-S;Q&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+Q),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+Q))}}class ta extends ZA{static tz(e,...n){return n.length?new ta(...n,e):new ta(Date.now(),e)}toISOString(){const[e,n,r]=this.tzComponents(),A=`${e}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+A}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,n,r,A]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${n} ${A}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[n,r,A]=this.tzComponents();return`${e} GMT${n}${r}${A} (${F_(this.timeZone,this)})`}toLocaleString(e,n){return Date.prototype.toLocaleString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(e,n){return Date.prototype.toLocaleDateString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(e,n){return Date.prototype.toLocaleTimeString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),n=e>0?"-":"+",r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),A=String(Math.abs(e)%60).padStart(2,"0");return[n,r,A]}withTimeZone(e){return new ta(+this,e)}[Symbol.for("constructDateFrom")](e){return new ta(+new Date(e),this.timeZone)}}function hl(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),s.h("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.h("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.h("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function I_(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),s.h("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function b0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function E0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function k0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),s.h("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function S0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function x0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const F0=Symbol("ContextKey"),U_=(t,e)=>{const{setTimeModelValue:n}=Sn(),r=SD(t),A=s.ref(null),i=s.reactive({menuFocused:!1,shiftKeyInMenu:!1,isInputFocused:!1,isTextInputDate:!1,arrowNavigationLevel:0}),o=r.getDate(new Date),a=s.ref(""),l=s.ref([{month:gt(o),year:tt(o)}]),u=s.reactive({hours:0,minutes:0,seconds:0});n(u,null,o,r.range.value.enabled);const d=s.computed({get:()=>A.value,set:B=>{A.value=B}}),h=s.computed(()=>B=>l.value[B]?l.value[B].month:0),p=s.computed(()=>B=>l.value[B]?l.value[B].year:0),m=(B,y)=>{i[B]=y},v=()=>{n(u,d.value,o,r.range.value.enabled)};s.provide(F0,{rootProps:t,defaults:r,modelValue:d,state:s.readonly(i),rootEmit:e,calendars:l,month:h,year:p,time:u,today:o,inputValue:a,setState:m,updateTime:v,getDate:r.getDate})},pt=()=>{const t=s.inject(F0);if(!t)throw new Error("Can't use context");return t};var kA=(t=>(t.month="month",t.year="year",t))(kA||{}),is=(t=>(t.header="header",t.calendar="calendar",t.timePicker="timePicker",t))(is||{}),fr=(t=>(t.month="month",t.year="year",t.calendar="calendar",t.time="time",t.minutes="minutes",t.hours="hours",t.seconds="seconds",t))(fr||{});const __=["timestamp","date","iso"];var SA=(t=>(t.up="up",t.down="down",t.left="left",t.right="right",t))(SA||{}),Nt=(t=>(t.arrowUp="ArrowUp",t.arrowDown="ArrowDown",t.arrowLeft="ArrowLeft",t.arrowRight="ArrowRight",t.enter="Enter",t.space=" ",t.esc="Escape",t.tab="Tab",t.home="Home",t.end="End",t.pageUp="PageUp",t.pageDown="PageDown",t))(Nt||{}),na=(t=>(t.MONTH_AND_YEAR="MM-yyyy",t.YEAR="yyyy",t.DATE="dd-MM-yyyy",t))(na||{}),Q0=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(Q0||{});const D_=()=>{const{rootProps:t,state:e}=pt(),n=s.computed(()=>e.arrowNavigationLevel),r=s.ref(-1),A=s.ref(-1);s.watch(n,(C,S)=>{w(C===0&&S>0)});const i=s.ref([]),o=s.ref(new Map),a=()=>{const C=Array.from(document.querySelectorAll(`[data-dp-action-element="${n.value}"]`)),S=new Map,Q=new Map;for(const _ of C){const D=_.getBoundingClientRect(),I=D.top,$=D.left;S.has(I)||S.set(I,[]),S.get(I).push(_),Q.set(_,{row:I,col:$})}i.value=Array.from(S.entries()).sort((_,D)=>_[0]-D[0]).map(([_,D])=>l(D,Q)),o.value=Q},l=(C,S)=>C.sort((Q,_)=>{const D=S.get(Q),I=S.get(_);return D.col-I.col}),u=(C,S)=>{n.value===0&&(r.value=C,A.value=S)},d=C=>{if(![Nt.arrowUp,Nt.arrowDown,Nt.arrowLeft,Nt.arrowRight].includes(C.key))return;a(),C.preventDefault();const S=document.activeElement;if(!S?.hasAttribute("data-dp-action-element"))return;let Q=-1,_=-1;for(let D=0;D<i.value.length;D++){const I=i.value[D].indexOf(S);if(I!==-1){Q=D,_=I;break}}if(Q!==-1)switch(C.key){case Nt.arrowLeft:return h(Q,_);case Nt.arrowRight:return p(Q,_);case Nt.arrowUp:return m(Q,_);case Nt.arrowDown:return v(Q,_);default:return}},h=(C,S)=>{if(S>0){const Q=i.value[C][S-1];u(C,S-1),Q&&Q.focus()}},p=(C,S)=>{if(S<i.value[C].length-1){const Q=i.value[C][S+1];u(C,S+1),Q&&Q.focus()}},m=(C,S)=>{if(C>0){const Q=i.value[C-1],_=Math.min(S,Q.length-1),D=Q[_];u(C-1,_),D&&D.focus()}},v=(C,S)=>{if(C<i.value.length-1){const Q=i.value[C+1],_=Math.min(S,Q.length-1),D=Q[_];u(C+1,_),D&&D.focus()}},B=()=>{s.nextTick().then(()=>{a();const C=i.value[r.value]?.[A.value];C&&y(C)})},y=C=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.focus({preventScroll:!0})})})},w=C=>{if(C)return B();const S=document.querySelector(`[data-dp-element-active="${n.value}"]`);if(S&&!C)y(S);else{const Q=document.querySelector(`[data-dp-action-element="${n.value}"]`);Q&&y(Q)}};s.onMounted(()=>{t.arrowNavigation&&(w(!1),document.addEventListener("keydown",d))}),s.onUnmounted(()=>{t.arrowNavigation&&document.removeEventListener("keydown",d)})},O_=()=>{const{checkPartialRangeValue:t,checkRangeEnabled:e,isValidDate:n}=Zr(),{convertType:r,errorMapper:A}=Sn(),{getDate:i,rootEmit:o,state:a,rootProps:l,inputValue:u,defaults:{textInput:d,range:h,multiDates:p,timeConfig:m,formats:v},modelValue:B,updateTime:y}=pt(),{setTime:w,getWeekFromDate:C}=jn(),{formatSelectedDate:S,formatForTextInput:Q}=io();s.watch(B,(G,ee)=>{o("internal-model-change",B.value),JSON.stringify(ee??{})!==JSON.stringify(G??{})&&y()},{deep:!0}),s.watch(h,(G,ee)=>{G.enabled!==ee.enabled&&(B.value=null)}),s.watch(()=>v.value.input,()=>{W()});const _=G=>G?l.modelType?X(G):{hours:qA(G),minutes:Ci(G),seconds:m.value.enableSeconds?Ao(G):0}:null,D=G=>l.modelType?X(G):{month:gt(G),year:tt(G)},I=G=>Array.isArray(G)?p.value.enabled?G.map(ee=>$(ee,EA(i(),ee))):e(()=>[EA(i(),G[0]),G[1]?EA(i(),G[1]):t(h.value.partialRange)],h.value.enabled):EA(i(),+G),$=(G,ee)=>(typeof G=="string"||typeof G=="number")&&l.modelType?ne(G):ee,Y=G=>Array.isArray(G)?[$(G[0],w(G[0])),$(G[1],w(G[1]))]:$(G,w(G)),de=G=>{const ee=ft(i(),{date:1});return Array.isArray(G)?p.value.enabled?G.map(K=>$(K,ft(ee,{month:+K.month,year:+K.year}))):e(()=>[$(G[0],ft(ee,{month:+G[0].month,year:+G[0].year})),$(G[1],G[1]?ft(ee,{month:+G[1].month,year:+G[1].year}):t(h.value.partialRange))],h.value.enabled):$(G,ft(ee,{month:+G.month,year:+G.year}))},ge=G=>{if(Array.isArray(G))return G.map(ee=>ne(ee));throw new Error(A.dateArr("multi-dates"))},me=G=>{if(Array.isArray(G)&&h.value.enabled){const ee=G[0],K=G[1];return[i(Array.isArray(ee)?ee[0]:null),Array.isArray(K)&&K.length?i(K[0]):null]}return i(G[0])},we=G=>l.modelAuto?Array.isArray(G)?[ne(G[0]),ne(G[1])]:l.autoApply?[ne(G)]:[ne(G),null]:Array.isArray(G)?e(()=>G[1]?[ne(G[0]),G[1]?ne(G[1]):t(h.value.partialRange)]:[ne(G[0])],h.value.enabled):ne(G),te=()=>{Array.isArray(B.value)&&h.value.enabled&&B.value.length===1&&B.value.push(t(h.value.partialRange))},V=()=>{const G=B.value;return[X(G[0]),G[1]?X(G[1]):t(h.value.partialRange)]},q=()=>Array.isArray(B.value)?B.value[1]?V():X(r(B.value[0])):[],x=()=>(B.value||[]).map(G=>X(G)),T=(G=!1)=>(G||te(),l.modelAuto?q():p.value.enabled?x():Array.isArray(B.value)?e(()=>V(),h.value.enabled):X(r(B.value))),P=G=>!G||Array.isArray(G)&&!G.length?null:l.timePicker?Y(r(G)):l.monthPicker?de(r(G)):l.yearPicker?I(r(G)):p.value.enabled?ge(r(G)):l.weekPicker?me(r(G)):we(r(G)),F=G=>{if(a.isTextInputDate)return;const ee=P(G);n(r(ee))?(B.value=r(ee),W()):(B.value=null,u.value="")},E=()=>B.value?p.value.enabled?B.value.map(G=>S(G)).join("; "):d.value.enabled?Q():S(B.value):"",W=()=>{u.value=E()},ne=G=>l.modelType?__.includes(l.modelType)?i(G):l.modelType==="format"&&typeof v.value.input=="string"?bp(G,v.value.input,i(),{locale:l.locale}):bp(G,l.modelType,i(),{locale:l.locale}):i(G),X=G=>G?l.modelType?l.modelType==="timestamp"?+G:l.modelType==="iso"?G.toISOString():l.modelType==="format"&&typeof v.value.input=="string"?S(G):S(G,l.modelType):G:null,re=G=>{o("update:model-value",G)},ie=G=>Array.isArray(B.value)?p.value.enabled?B.value.map(ee=>G(ee)):[G(B.value[0]),B.value[1]?G(B.value[1]):null]:G(r(B.value)),pe=()=>{if(Array.isArray(B.value)){const G=C(B.value[0],l.weekStart),ee=B.value[1]?C(B.value[1],l.weekStart):[];return[G.map(K=>i(K)),ee.map(K=>i(K))]}return C(B.value,l.weekStart).map(G=>i(G))},le=G=>re(r(ie(G))),Ce=()=>o("update:model-value",pe());return{checkBeforeEmit:()=>B.value?h.value.enabled?h.value.partialRange?B.value.length>=1:B.value.length===2:!!B.value:!1,parseExternalModelValue:F,formatInputValue:W,emitModelValue:()=>(W(),l.monthPicker?le(D):l.timePicker?le(_):l.yearPicker?le(tt):l.weekPicker?Ce():re(T()))}},pl=()=>{const{defaults:{transitions:t}}=pt(),e=s.computed(()=>r=>t.value?r?t.value.open:t.value.close:""),n=s.computed(()=>r=>t.value?r?t.value.menuAppearTop:t.value.menuAppearBottom:"");return{transitionName:e,showTransition:!!t.value,menuTransition:n}},ml=t=>{const{today:e,time:n,modelValue:r,defaults:{range:A}}=pt(),{setTimeModelValue:i}=Sn();s.watch(A,(o,a)=>{o.enabled!==a.enabled&&i(n,r.value,e,A.value.enabled)},{deep:!0}),s.watch(r,(o,a)=>{t&&JSON.stringify(o??{})!==JSON.stringify(a??{})&&t()},{deep:!0})},Zr=()=>{const{defaults:{safeDates:t,range:e,multiDates:n,filters:r,timeConfig:A},rootProps:i,getDate:o}=pt(),{getMapKeyType:a,getMapDate:l,errorMapper:u,convertType:d}=Sn(),{isDateBefore:h,isDateAfter:p,isDateEqual:m,resetDate:v,getDaysInBetween:B,setTimeValue:y,getTimeObj:w,setTime:C}=jn(),S=N=>t.value.disabledDates?typeof t.value.disabledDates=="function"?t.value.disabledDates(o(N)):!!l(N,t.value.disabledDates):!1,Q=N=>t.value.maxDate?i.yearPicker?tt(N)>tt(t.value.maxDate):p(N,t.value.maxDate):!1,_=N=>t.value.minDate?i.yearPicker?tt(N)<tt(t.value.minDate):h(N,t.value.minDate):!1,D=N=>{if(!N)return!1;const R=Q(N),J=_(N),z=S(N),ce=r.value.months.map(j=>+j).includes(gt(N)),k=r.value.weekDays?.length?r.value.weekDays.some(j=>+j===kU(N)):!1,U=ge(N),O=tt(N),se=O<+i.yearRange[0]||O>+i.yearRange[1];return!(R||J||z||ce||se||k||U)},I=(N,R)=>h(...Ce(t.value.minDate,N,R))||m(...Ce(t.value.minDate,N,R)),$=(N,R)=>p(...Ce(t.value.maxDate,N,R))||m(...Ce(t.value.maxDate,N,R)),Y=(N,R,J)=>{let z=!1;return t.value.maxDate&&J&&$(N,R)&&(z=!0),t.value.minDate&&!J&&I(N,R)&&(z=!0),z},de=(N,R,J,z)=>{let ce=!1;return z&&(t.value.minDate||t.value.maxDate)?t.value.minDate&&t.value.maxDate?ce=Y(N,R,J):(t.value.minDate&&I(N,R)||t.value.maxDate&&$(N,R))&&(ce=!0):ce=!0,ce},ge=N=>Array.isArray(t.value.allowedDates)&&!t.value.allowedDates.length?!0:t.value.allowedDates?!l(N,t.value.allowedDates,a(i.monthPicker,i.yearPicker)):!1,me=N=>!D(N),we=N=>e.value.noDisabledRange?!fp({start:N[0],end:N[1]}).some(R=>me(R)):!0,te=N=>{if(N){const R=tt(N);return R>=+i.yearRange[0]&&R<=i.yearRange[1]}return!0},V=(N,R)=>!!(Array.isArray(N)&&N[R]&&(e.value.maxRange||e.value.minRange)&&te(N[R])),q=(N,R,J=0)=>{if(V(R,J)&&te(N)){const z=ZB(N,R[J]),ce=B(R[J],N),k=ce.length===1?0:ce.filter(O=>me(O)).length,U=Math.abs(z)-(e.value.minMaxRawRange?0:k);if(e.value.minRange&&e.value.maxRange)return U>=+e.value.minRange&&U<=+e.value.maxRange;if(e.value.minRange)return U>=+e.value.minRange;if(e.value.maxRange)return U<=+e.value.maxRange}return!0},x=()=>!A.value.enableTimePicker||i.monthPicker||i.yearPicker||A.value.ignoreTimeValidation,T=N=>Array.isArray(N)?[N[0]?y(N[0]):null,N[1]?y(N[1]):null]:y(N),P=(N,R,J)=>R?N.find(z=>+z.hours===qA(R)&&z.minutes==="*"?!0:+z.minutes===Ci(R)&&+z.hours===qA(R))&&J:!1,F=(N,R,J)=>{const[z,ce]=N,[k,U]=R;return!P(z,k,J)&&!P(ce,U,J)&&J},E=(N,R)=>{const J=Array.isArray(R)?R:[R];return Array.isArray(i.disabledTimes)?Array.isArray(i.disabledTimes[0])?F(i.disabledTimes,J,N):!J.some(z=>P(i.disabledTimes,z,N)):N},W=(N,R)=>{const J=Array.isArray(R)?[w(R[0]),R[1]?w(R[1]):void 0]:w(R),z=!i.disabledTimes(J);return N&&z},ne=(N,R)=>i.disabledTimes?Array.isArray(i.disabledTimes)?E(R,N):W(R,N):R,X=N=>{let R=!0;if(!N||x())return!0;const J=!t.value.minDate&&!t.value.maxDate?T(N):N;return(i.maxTime||t.value.maxDate)&&(R=ee(i.maxTime,t.value.maxDate,"max",d(J),R)),(i.minTime||t.value.minDate)&&(R=ee(i.minTime,t.value.minDate,"min",d(J),R)),ne(N,R)},re=N=>{if(!i.monthPicker)return!0;let R=!0;const J=o(v(N));if(t.value.minDate&&t.value.maxDate){const z=o(v(t.value.minDate)),ce=o(v(t.value.maxDate));return p(J,z)&&h(J,ce)||m(J,z)||m(J,ce)}if(t.value.minDate){const z=o(v(t.value.minDate));R=p(J,z)||m(J,z)}if(t.value.maxDate){const z=o(v(t.value.maxDate));R=h(J,z)||m(J,z)}return R},ie=s.computed(()=>N=>!A.value.enableTimePicker||A.value.ignoreTimeValidation?!0:X(N)),pe=s.computed(()=>N=>i.monthPicker?Array.isArray(N)&&(e.value.enabled||n.value.enabled)?!N.filter(R=>!re(R)).length:re(N):!0),le=(N,R,J)=>{if(!R||J&&!t.value.maxDate||!J&&!t.value.minDate)return!1;const z=J?bA(N,1):ea(N,1),ce=[gt(z),tt(z)];return J?!$(...ce):!I(...ce)},Ce=(N,R,J)=>[ft(o(N),{date:1}),ft(o(),{month:R,year:J,date:1})],G=(N,R,J,z)=>{if(!N)return!0;if(z){const ce=J==="max"?bi(N,R):XA(N,R),k={seconds:0,milliseconds:0};return ce||Vs(ft(N,k),ft(R,k))}return J==="max"?N.getTime()<=R.getTime():N.getTime()>=R.getTime()},ee=(N,R,J,z,ce)=>{if(Array.isArray(z)){const U=K(N,z[0],R),O=K(N,z[1],R);return G(z[0],U,J,!!R)&&G(z[1],O,J,!!R)&&ce}const k=K(N,z,R);return G(z,k,J,!!R)&&ce},K=(N,R,J)=>N?C(N,R):o(J??R);return{isDisabled:me,validateDate:D,validateMonthYearInRange:de,isDateRangeAllowed:we,checkMinMaxRange:q,isValidTime:X,validateMonthYear:le,validateMinDate:I,validateMaxDate:$,isValidDate:N=>Array.isArray(N)?dl(N[0])&&(N[1]?dl(N[1]):!0):N?dl(N):!1,checkPartialRangeValue:N=>{if(N)return null;throw new Error(u.prop("partial-range"))},checkRangeEnabled:(N,R)=>{if(R)return N();throw new Error(u.prop("range"))},checkMinMaxValue:(N,R,J)=>{const z=J!=null,ce=R!=null;if(!z&&!ce)return!1;const k=+J,U=+R;return z&&ce?+N>k||+N<U:z?+N>k:ce?+N<U:!1},isTimeValid:ie,isMonthValid:pe}},N_=t=>{const{rootEmit:e,rootProps:n,defaults:{timeConfig:r,flow:A}}=pt(),i=s.ref(0),o=s.reactive({[is.timePicker]:!r.value.enableTimePicker||n.timePicker||n.monthPicker,[is.calendar]:!1,[is.header]:!1}),a=s.computed(()=>n.monthPicker||n.timePicker),l=m=>{if(A.value?.steps?.length){if(!m&&a.value)return p();o[m]=!0,Object.keys(o).filter(v=>!o[v]).length||p()}},u=()=>{A.value?.steps?.length&&i.value!==-1&&(i.value+=1,e("flow-step",i.value),p()),A.value?.steps?.length===i.value&&s.nextTick().then(()=>d())},d=()=>{i.value=-1},h=(m,v,...B)=>{A.value?.steps[i.value]===m&&t.value&&t.value[v]?.(...B)},p=(m=0)=>{m&&(i.value+=m),h(fr.month,"toggleMonthPicker",!0),h(fr.year,"toggleYearPicker",!0),h(fr.calendar,"toggleTimePicker",!1,!0),h(fr.time,"toggleTimePicker",!0,!0);const v=A.value?.steps[i.value];(v===fr.hours||v===fr.minutes||v===fr.seconds)&&h(v,"toggleTimePicker",!0,!0,v)};return{childMount:l,updateFlowStep:u,resetFlow:d,handleFlow:p,flowStep:i}};function kp(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}function gl(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let A;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;A=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;A=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return A[i]}}function vl(t){return(e,n={})=>{const r=n.width,A=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(A);if(!i)return null;const o=i[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?R_(a,h=>h.test(o)):L_(a,h=>h.test(o));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(o.length);return{value:u,rest:d}}}function L_(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function R_(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function H_(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const A=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(A.length);return{value:o,rest:a}}}const P_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$_=(t,e,n)=>{let r;const A=P_[t];return typeof A=="string"?r=A:e===1?r=A.one:r=A.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},K_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(t,e,n,r)=>K_[t],W_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Y_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},q_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},j_=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Z_={ordinalNumber:j_,era:gl({values:W_,defaultWidth:"wide"}),quarter:gl({values:G_,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gl({values:Y_,defaultWidth:"wide"}),day:gl({values:q_,defaultWidth:"wide"}),dayPeriod:gl({values:X_,defaultWidth:"wide",formattingValues:J_,defaultFormattingWidth:"wide"})},V_=/^(\d+)(th|st|nd|rd)?/i,eD=/\d+/i,tD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nD={any:[/^b/i,/^(a|c)/i]},rD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AD={any:[/1/i,/2/i,/3/i,/4/i]},iD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},aD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uD={ordinalNumber:H_({matchPattern:V_,parsePattern:eD,valueCallback:t=>parseInt(t,10)}),era:vl({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),quarter:vl({matchPatterns:rD,defaultMatchWidth:"wide",parsePatterns:AD,defaultParseWidth:"any",valueCallback:t=>t+1}),month:vl({matchPatterns:iD,defaultMatchWidth:"wide",parsePatterns:oD,defaultParseWidth:"any"}),day:vl({matchPatterns:sD,defaultMatchWidth:"wide",parsePatterns:aD,defaultParseWidth:"any"}),dayPeriod:vl({matchPatterns:lD,defaultMatchWidth:"any",parsePatterns:cD,defaultParseWidth:"any"})},dD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pD={date:kp({formats:dD,defaultWidth:"full"}),time:kp({formats:fD,defaultWidth:"full"}),dateTime:kp({formats:hD,defaultWidth:"full"})},mD={code:"en-US",formatDistance:$_,formatLong:pD,formatRelative:z_,localize:Z_,match:uD,options:{weekStartsOn:0,firstWeekContainsDate:1}},T0={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1,autoSwitchStartEnd:!0},gD={allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,escClose:!0,spaceConfirm:!0,monthChangeOnArrows:!0,monthChangeOnScroll:!0},M0={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0,format:void 0,maskFormat:void 0,applyOnBlur:!1,separators:void 0},vD={dates:[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}},wD={showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,selectBtnLabel:"Select",cancelBtnLabel:"Cancel",nowBtnLabel:"Now",nowBtnRound:void 0},BD={toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`},I0={menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},yD={weekDays:[],months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},CD={month:"LLL",year:"yyyy",weekDay:"EEEEEE",quarter:"MMMM",day:"d",input:void 0,preview:void 0},bD={enableTimePicker:!0,ignoreTimeValidation:!1,enableSeconds:!1,enableMinutes:!0,is24:!0,noHoursOverlay:!1,noMinutesOverlay:!1,noSecondsOverlay:!1,hoursGridIncrement:1,minutesGridIncrement:5,secondsGridIncrement:5,hoursIncrement:1,minutesIncrement:1,secondsIncrement:1,timePickerInline:!1,startTime:void 0},ED={flowStep:0,menuWrapRef:null,collapse:!1},kD={weekStart:Q0.Monday,yearRange:()=>[1900,2100],ui:()=>({}),locale:()=>mD,dark:!1,transitions:!0,hideNavigation:()=>[],vertical:!1,hideMonthYearSelect:!1,disableYearSelect:!1,autoApply:!1,disabledDates:()=>[],hideOffsetDates:!1,noToday:!1,markers:()=>[],presetDates:()=>[],preventMinMaxNavigation:!1,reverseYears:!1,weekPicker:!1,arrowNavigation:!1,monthPicker:!1,yearPicker:!1,quarterPicker:!1,timePicker:!1,modelAuto:!1,multiDates:!1,range:!1,inline:!1,sixWeeks:!1,focusStartDate:!1,yearFirst:!1,loading:!1,centered:!1},U0={name:void 0,required:!1,autocomplete:"off",state:void 0,clearable:!0,alwaysClearable:!1,hideInputIcon:!1,id:void 0,inputmode:"none"},au={type:"local",hideOnOffsetDates:!1,label:"W"},SD=t=>{const{getMapKey:e,getMapKeyType:n,getTimeObjFromCurrent:r}=Sn();function A(x,T){let P;return t.timezone?P=new ta(x??new Date,t.timezone):P=x?new Date(x):new Date,T?ft(P,{hours:0,minutes:0,seconds:0,milliseconds:0}):P}const i=()=>{const x=we.value.enableSeconds?":ss":"",T=we.value.enableMinutes?":mm":"";return we.value.is24?`HH${T}${x}`:`hh${T}${x} aa`},o=()=>t.monthPicker?"MM/yyyy":t.timePicker?i():t.weekPicker?`${D.value?.type==="iso"?"II":"ww"}-RR`:t.yearPicker?"yyyy":t.quarterPicker?"QQQ/yyyy":we.value.enableTimePicker?`MM/dd/yyyy, ${i()}`:"MM/dd/yyyy",a=x=>r(A(),x,we.value.enableSeconds),l=()=>Y.value.enabled?we.value.startTime&&Array.isArray(we.value.startTime)?[a(we.value.startTime[0]),a(we.value.startTime[1])]:null:we.value.startTime&&!Array.isArray(we.value.startTime)?a(we.value.startTime):null,u=x=>x?typeof x=="boolean"?x?2:0:Math.max(+x,2):0,d=x=>{const T=n(t.monthPicker,t.yearPicker);return new Map(x.map(P=>{const F=A(P,h.value);return[e(F,T),F]}))},h=s.computed(()=>t.monthPicker||t.yearPicker||t.quarterPicker),p=s.computed(()=>{const x=typeof t.multiCalendars=="object"&&t.multiCalendars,T={static:!0,solo:!1};if(!t.multiCalendars)return{...T,count:u(!1)};const P=x?t.multiCalendars:{},F=x?P.count??!0:t.multiCalendars,E=u(F);return Object.assign(T,P,{count:E})}),m=s.computed(()=>l()),v=s.computed(()=>({...BD,...t.ariaLabels})),B=s.computed(()=>({...yD,...t.filters})),y=s.computed(()=>typeof t.transitions=="boolean"?t.transitions?I0:!1:{...I0,...t.transitions}),w=s.computed(()=>({...wD,...t.actionRow})),C=s.computed(()=>typeof t.textInput=="object"?{...M0,...t.textInput,format:typeof t.textInput.format=="string"?t.textInput.format:ge.value.input,pattern:t.textInput.format??ge.value.input,enabled:!0}:{...M0,format:ge.value.input,pattern:ge.value.input,enabled:t.textInput}),S=s.computed(()=>{const x={input:!1};return typeof t.inline=="object"?{...x,...t.inline,enabled:!0}:{enabled:t.inline,...x}}),Q=s.computed(()=>({...gD,...t.config})),_=s.computed(()=>typeof t.highlight=="function"?t.highlight:{...vD,...t.highlight}),D=s.computed(()=>typeof t.weekNumbers=="object"?{type:t.weekNumbers?.type??au.type,hideOnOffsetDates:t.weekNumbers?.hideOnOffsetDates??au.hideOnOffsetDates,label:t.weekNumbers.label??au.label}:t.weekNumbers?au:void 0),I=s.computed(()=>typeof t.multiDates=="boolean"?{enabled:t.multiDates,dragSelect:!0,limit:null}:{enabled:!!t.multiDates,limit:t.multiDates?.limit?+t.multiDates.limit:null,dragSelect:t.multiDates?.dragSelect??!0}),$=s.computed(()=>({minDate:t.minDate?A(t.minDate):null,maxDate:t.maxDate?A(t.maxDate):null,disabledDates:Array.isArray(t.disabledDates)?d(t.disabledDates):t.disabledDates,allowedDates:Array.isArray(t.allowedDates)?d(t.allowedDates):null,highlight:typeof _.value=="object"&&Array.isArray(_.value.dates)?d(_.value.dates):_.value,markers:t.markers?.length?new Map(t.markers.map(x=>{const T=A(x.date);return[e(T,na.DATE),x]})):null})),Y=s.computed(()=>typeof t.range=="object"?{enabled:!0,...T0,...t.range}:{enabled:t.range,...T0}),de=s.computed(()=>({...Object.fromEntries(Object.keys(t.ui).map(x=>{const T=x,P=t.ui[T];if(T==="dayClass")return[T,t.ui[T]];const F=typeof t.ui[T]=="string"?{[P]:!0}:Object.fromEntries(P.map(E=>[E,!0]));return[x,F]}))})),ge=s.computed(()=>({...CD,...t.formats,input:t.formats?.input??o(),preview:t.formats?.preview??o()})),me=s.computed(()=>{if(t.teleport)return typeof t.teleport=="string"?t.teleport:typeof t.teleport=="boolean"?"body":t.teleport}),we=s.computed(()=>({...bD,...t.timeConfig})),te=s.computed(()=>{if(t.flow)return{steps:[],partial:!1,...t.flow}}),V=s.computed(()=>{const x=C.value.enabled?"text":"none";return t.inputAttrs?{...U0,inputmode:x,...t.inputAttrs}:{...U0,inputmode:x}}),q=s.computed(()=>({offset:t.floating?.offset??10,arrow:t.floating?.arrow??!0,strategy:t.floating?.strategy??void 0,placement:t.floating?.placement??void 0,flip:t.floating?.flip??!0,shift:t.floating?.shift??!0}));return{transitions:y,multiCalendars:p,startTime:m,ariaLabels:v,filters:B,actionRow:w,textInput:C,inline:S,config:Q,highlight:_,weekNumbers:D,range:Y,safeDates:$,multiDates:I,ui:de,formats:ge,teleport:me,timeConfig:we,flow:te,inputAttrs:V,floatingConfig:q,getDate:A}},Sn=()=>{const t=(C,S)=>jr(C,S??na.DATE),e=(C,S)=>C?na.MONTH_AND_YEAR:S?na.YEAR:na.DATE,n=(C,S,Q)=>S.get(t(C,Q)),r=C=>C,A=C=>C===0?C:!C||Number.isNaN(+C)?null:+C,i=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", "),o=(C,S)=>{let Q=[...document.querySelectorAll(i())];Q=Q.filter(D=>!C.contains(D)||"datepicker-instance"in D.dataset);const _=Q.indexOf(C);if(_>=0&&(S?_-1>=0:_+1<=Q.length))return Q[_+(S?-1:1)]},a=C=>String(C).padStart(2,"0"),l=(C,S)=>C?.querySelector(`[data-dp-element="${S}"]`),u=(C,S,Q=!1)=>{C&&S.allowStopPropagation&&(Q&&C.stopImmediatePropagation(),C.stopPropagation())},d=(C,S,Q=!1,_)=>{if(C.key===Nt.enter||C.key===Nt.space)return Q&&C.preventDefault(),S();if(_)return _(C)},h=(C,S)=>{S.allowStopPropagation&&C.stopPropagation(),S.allowPreventDefault&&C.preventDefault()},p=C=>{if(C)return[...C.querySelectorAll("input, button, select, textarea, a[href]")][0]},m=()=>"ontouchstart"in globalThis||navigator.maxTouchPoints>0,v=C=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][C],B=C=>{const S=[],Q=_=>_.filter(D=>!!D);for(let _=0;_<C.length;_+=3){const D=[C[_],C[_+1],C[_+2]];S.push(Q(D))}return S},y={prop:C=>`"${C}" prop must be enabled!`,dateArr:C=>`You need to use array as "model-value" binding in order to support "${C}"`},w=(C,S,Q,_,D)=>{const I={hours:qA,minutes:Ci,seconds:Ao};if(!S)return _?[I[C](Q),I[C](Q)]:I[C](Q);if(Array.isArray(S)&&_){const $=S[0]??Q,Y=S[1];return[I[C]($),Y?I[C](Y):D[C][1]??I[C](Q)]}return Array.isArray(S)&&!_?I[C](S[S.length-1]??Q):I[C](S)};return{getMapKey:t,getMapKeyType:e,getMapDate:n,convertType:r,getNumVal:A,findNextFocusableElement:o,padZero:a,getElWithin:l,checkStopPropagation:u,checkKeyDown:d,handleEventPropagation:h,findFocusableEl:p,isTouchDevice:m,hoursToAmPmHours:v,getGroupedList:B,setTimeModelValue:(C,S,Q,_)=>{C.hours=w("hours",S,Q,_,C),C.minutes=w("minutes",S,Q,_,C),C.seconds=w("seconds",S,Q,_,C)},getTimeObjFromCurrent:(C,S,Q)=>{const _={hours:qA(C),minutes:Ci(C),seconds:Q?Ao(C):0};return Object.assign(_,S)},errorMapper:y}},jn=()=>{const{getDate:t}=pt(),{getMapDate:e,getGroupedList:n}=Sn(),r=(w,C)=>{if(!w)return t();const S=t(w),Q=ft(S,{hours:0,minutes:0,seconds:0,milliseconds:0});return C?OI(Q):Q},A=(w,C)=>{const S=t(C);return ft(S,{hours:+(w.hours??qA(S)),minutes:+(w.minutes??Ci(S)),seconds:+(w.seconds??Ao(S)),milliseconds:0})},i=(w,C)=>{const S=Jr(w,{weekStartsOn:+C}),Q=hp(w,{weekStartsOn:+C});return[S,Q]},o=(w,C)=>!w||!C?!1:bi(r(w),r(C)),a=(w,C)=>!w||!C?!1:Vs(r(w),r(C)),l=(w,C)=>!w||!C?!1:XA(r(w),r(C)),u=(w,C,S)=>w?.[0]&&w?.[1]?l(S,w[0])&&o(S,w[1]):w?.[0]&&C?l(S,w[0])&&o(S,C)||o(S,w[0])&&l(S,C):!1,d=(w,C)=>{const S=l(w,C)?C:w,Q=l(C,w)?C:w;return fp({start:S,end:Q})},h=w=>`dp-${jr(w,"yyyy-MM-dd")}`,p=w=>r(ft(t(w),{date:1})),m=(w,C)=>{if(C){const S=tt(t(C));if(S>w)return 12;if(S===w)return gt(t(C))}},v=(w,C)=>{if(C){const S=tt(t(C));return S<w?-1:S===w?gt(t(C)):void 0}},B=w=>{if(w)return tt(t(w))},y=w=>({hours:qA(w),minutes:Ci(w),seconds:Ao(w)});return{resetDateTime:r,groupListAndMap:(w,C)=>n(w).map(S=>S.map(Q=>{const{active:_,disabled:D,isBetween:I,highlighted:$}=C(Q);return{...Q,active:_,disabled:D,className:{dp__overlay_cell_active:_,dp__overlay_cell:!_,dp__overlay_cell_disabled:D,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:D&&_,dp__cell_in_between:I,"dp--highlighted":$}}})),setTime:A,getWeekFromDate:i,isDateAfter:l,isDateBefore:o,isDateBetween:u,isDateEqual:a,getDaysInBetween:d,getCellId:h,resetDate:p,getMinMonth:m,getMaxMonth:v,getYearFromDate:B,getTimeObj:y,setTimeValue:w=>ft(t(),y(w)),sanitizeTime:(w,C,S)=>C&&(S||S===0)?Object.fromEntries(["hours","minutes","seconds"].map(Q=>Q===C?[Q,S]:[Q,Number.isNaN(+w[Q])?void 0:+w[Q]])):{hours:Number.isNaN(+w.hours)?void 0:+w.hours,minutes:Number.isNaN(+w.minutes)?void 0:+w.minutes,seconds:Number.isNaN(+(w.seconds??""))?void 0:+w.seconds},getBeforeAndAfterInRange:(w,C)=>{const S=g0(r(C),w),Q=Xr(r(C),w);return{before:S,after:Q}},isModelAuto:w=>Array.isArray(w)?!!w[0]&&!!w[1]:!1,matchDate:(w,C)=>w?C?C instanceof Map?!!e(w,C):C(t(w)):!1:!0,checkHighlightMonth:(w,C,S)=>typeof w=="function"?w({month:C,year:S}):w.months.some(Q=>Q.month===C&&Q.year===S),checkHighlightYear:(w,C)=>typeof w=="function"?w(C):w.years.includes(C)}},lu=()=>{const{defaults:{config:t}}=pt(),e=s.ref(0);s.onMounted(()=>{n(),globalThis.addEventListener("resize",n,{passive:!0})}),s.onUnmounted(()=>{globalThis.removeEventListener("resize",n)});const n=()=>{e.value=globalThis.document.documentElement.clientWidth};return{isMobile:s.computed(()=>e.value<=t.value.mobileBreakpoint?!0:void 0)}},io=()=>{const{getDate:t,state:e,modelValue:n,rootProps:r,defaults:{formats:A,textInput:i}}=pt(),o=v=>jr(EA(t(),v),A.value.year,{locale:r.locale}),a=v=>jr(v0(t(),v),A.value.month,{locale:r.locale}),l=v=>jr(v,A.value.weekDay,{locale:r.locale}),u=v=>jr(v,A.value.quarter,{locale:r.locale}),d=(v,B)=>[v,B].map(y=>u(y)).join("-"),h=v=>jr(v,A.value.day,{locale:r.locale}),p=(v,B,y)=>{const w=y?A.value.preview:A.value.input;if(!v)return"";if(typeof w=="function")return w(v);const C=B??w,S={locale:r.locale};return Array.isArray(v)?`${jr(v[0],C,S)}${r.modelAuto&&!v[1]?"":i.value.rangeSeparator}${v[1]?jr(v[1],C,S):""}`:jr(v,C,S)},m=()=>{const v=B=>jr(B,i.value.format);return Array.isArray(n.value)?`${v(n.value[0])} ${i.value.rangeSeparator} ${n.value[1]?v(n.value[1]):""}`:""};return{formatYear:o,formatMonth:a,formatWeekDay:l,formatQuarter:u,formatSelectedDate:p,formatForTextInput:()=>e.isInputFocused&&n.value?Array.isArray(n.value)?m():jr(n.value,i.value.format):p(n.value),formatPreview:v=>p(v,void 0,!0),formatQuarterText:d,formatDay:h}},cu=()=>{const{rootProps:t}=pt(),{formatYear:e,formatMonth:n}=io();return{getMonths:()=>[0,1,2,3,4,5,6,7,8,9,10,11].map(r=>({text:n(r),value:r})),getYears:()=>{const r=[];for(let A=+t.yearRange[0];A<=+t.yearRange[1];A++)r.push({value:+A,text:e(A)});return t.reverseYears?r.reverse():r},isOutOfYearRange:r=>r<+t.yearRange[0]||r>+t.yearRange[1]}},xD=t=>({openMenu:()=>t.value?.openMenu(),closeMenu:()=>t.value?.closeMenu(),selectDate:()=>t.value?.selectDate(),clearValue:()=>t.value?.clearValue(),formatInputValue:()=>t.value?.formatInputValue(),updateInternalModelValue:e=>t.value?.updateInternalModelValue(e),setMonthYear:(e,n)=>t.value?.setMonthYear(e,n),parseModel:()=>t.value?.parseModel(),switchView:(e,n)=>t.value?.switchView(e,n),handleFlow:()=>t.value?.handleFlow(),toggleMenu:()=>t.value?.toggleMenu(),dpMenuRef:()=>t.value?.dpMenuRef(),dpWrapMenuRef:()=>t.value?.dpWrapMenuRef(),inputRef:()=>t.value?.inputRef()}),ra=()=>({boolHtmlAttribute:t=>t?!0:void 0}),FD=()=>{const{getDate:t,rootProps:e,defaults:{textInput:n,startTime:r,timeConfig:A}}=pt(),{getTimeObjFromCurrent:i}=Sn(),o=s.ref(!1),a=s.computed(()=>Array.isArray(r.value)?r.value[0]:r.value??i(t(),{},A.value.enableSeconds)),l=(d,h)=>{const p=/[^a-zA-Z]+/g,m=/\D+/g,v=h.split(m),B=d.split(p),y=d.match(p)||[],w=h.match(m)||[];let C="";for(let S=0;S<v.length&&S<B.length;S++){S>0&&w[S-1]&&(C+=y[S-1]||w[S-1]);const Q=v[S]?.length;C+=B[S]?.slice(0,Q)}return C},u=(d,h,p)=>{const m=bp(d,l(h,d),t(),{locale:e.locale});return dl(m)&&e0(m)?p||o.value?m:ft(m,{hours:+a.value.hours,minutes:+a.value.minutes,seconds:+(a.value.seconds??0),milliseconds:0}):null};return{textPasted:o,parseFreeInput:(d,h)=>{if(typeof n.value.pattern=="string")return u(d,n.value.pattern,h);if(Array.isArray(n.value.pattern)){let p=null;for(const m of n.value.pattern)if(p=u(d,m,h),p)break;return p}return typeof n.value.pattern=="function"?n.value.pattern(d):null},applyMaxValues:(d,h)=>{const p={MM:12,DD:31,hh:23,mm:59,ss:59};let m="",v=0;for(let B=0;B<h.length;B++){const y=h[B],w=y.length,C=d.slice(v,v+w);if(!C)break;if(C.length<w)m+=C;else{let S=Number.parseInt(C,10);p[y]&&S>p[y]&&(S=p[y]),m+=S.toString().padStart(w,"0").slice(0,w)}v+=w}return m},createMaskedValue:(d,h)=>{const p=/(YYYY|MM|DD|hh|mm|ss)/g,m=[...h.matchAll(p)].map(C=>C[0]),v=h.replace(p,"|").split("|").filter(Boolean),B=m.map(C=>C.length);let y="",w=0;for(let C=0;C<m.length;C++){const S=B[C],Q=d.slice(w,w+S);if(!Q)break;y+=Q,Q.length===S&&v[C]&&(y+=v[C]),w+=S}return y}}};var xA=(t=>(t.Input="input",t.DatePicker="date-picker",t.Calendar="calendar",t.DatePickerHeader="date-picker-header",t.Menu="menu",t.ActionRow="action-row",t.TimePicker="time-picker",t.TimeInput="time-input",t.PassTrough="pass-trough",t.MonthPicker="month-picker",t.YearMode="year-mode",t.QuarterPicker="quarter-picker",t.YearPicker="year-picker",t))(xA||{});const Aa=["time-input","time-picker","pass-trough"],_0=[{name:"trigger",use:["input"]},{name:"input-icon",use:["input"]},{name:"clear-icon",use:["input"]},{name:"dp-input",use:["input"]},{name:"clock-icon",use:["time-picker","time-input","pass-trough"]},{name:"arrow-left",use:["date-picker-header","pass-trough","year-mode"]},{name:"arrow-right",use:["date-picker-header","pass-trough","year-mode"]},{name:"arrow-up",use:["time-picker","time-input","date-picker-header","pass-trough"]},{name:"arrow-down",use:["time-picker","time-input","date-picker-header","pass-trough"]},{name:"calendar-icon",use:["date-picker-header","time-picker","pass-trough","year-mode"]},{name:"day",use:["calendar","pass-trough"]},{name:"month-overlay-value",use:["date-picker-header","pass-trough","month-picker"]},{name:"year-overlay-value",use:["date-picker-header","pass-trough","year-mode","year-picker"]},{name:"year-overlay",use:["date-picker-header","pass-trough"]},{name:"month-overlay",use:["date-picker-header","pass-trough"]},{name:"month-overlay-header",use:["date-picker-header","pass-trough"]},{name:"year-overlay-header",use:["date-picker-header","pass-trough"]},{name:"hours-overlay-value",use:Aa},{name:"hours-overlay-header",use:Aa},{name:"minutes-overlay-value",use:Aa},{name:"minutes-overlay-header",use:Aa},{name:"seconds-overlay-value",use:Aa},{name:"seconds-overlay-header",use:Aa},{name:"hours",use:["time-input","time-picker","pass-trough"]},{name:"minutes",use:["time-input","time-picker","pass-trough"]},{name:"seconds",use:["time-input","time-picker","pass-trough"]},{name:"month",use:["date-picker-header","time-picker","pass-trough"]},{name:"year",use:["date-picker-header","time-picker","pass-trough","year-mode"]},{name:"action-buttons",use:["action-row"]},{name:"action-preview",use:["action-row"]},{name:"calendar-header",use:["calendar","pass-trough"]},{name:"marker-tooltip",use:["calendar","pass-trough"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["time-picker","time-picker","pass-trough"]},{name:"am-pm-button",use:["time-picker","time-input","pass-trough"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["date-picker-header","pass-trough","month-picker","year-picker"]},{name:"time-picker",use:["date-picker","pass-trough"]},{name:"action-row",use:["action-row"]},{name:"marker",use:["calendar","pass-trough"]},{name:"quarter",use:["quarter-picker","pass-trough"]},{name:"top-extra",use:["date-picker-header","pass-trough","month-picker","quarter-picker","year-picker"]},{name:"tp-inline-arrow-up",use:["date-picker","time-input","time-picker","pass-trough"]},{name:"tp-inline-arrow-down",use:["date-picker","time-input","time-picker","pass-trough"]},{name:"arrow",use:["menu"]},{name:"menu-header",use:["menu"]}],VA=(t,e)=>_0.filter(n=>t[n.name]&&n.use.includes(e)).map(n=>n.name),D0=(t,e)=>_0.map(n=>n.name).concat(e?.filter(n=>n.slot).map(n=>n.slot)??[]).filter(n=>!!t[n]),QD={key:1,class:"dp__input_wrap"},TD=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],MD={key:1,class:"dp--clear-btn"},ID=["aria-label"],UD=s.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1}},emits:["clear","open","set-input-date","close","select-date","set-empty-date","toggle","focus","blur","real-blur"],setup(t,{expose:e,emit:n}){const r=n,A=t,{rootEmit:i,inputValue:o,rootProps:a,defaults:{textInput:l,ariaLabels:u,inline:d,config:h,range:p,multiDates:m,ui:v,inputAttrs:B}}=pt(),{checkMinMaxRange:y,isValidDate:w}=Zr(),{parseFreeInput:C,textPasted:S,createMaskedValue:Q,applyMaxValues:_}=FD(),{checkKeyDown:D,checkStopPropagation:I}=Sn(),{boolHtmlAttribute:$}=ra(),Y=s.useTemplateRef("dp-input"),de=s.ref(null),ge=s.ref(!1),me=s.computed(()=>({dp__pointer:!a.disabled&&!a.readonly&&!l.value.enabled,dp__disabled:a.disabled,dp__input_readonly:!l.value.enabled,dp__input:!0,dp__input_not_clearable:!B.value.clearable,dp__input_icon_pad:!B.value.hideInputIcon,dp__input_valid:typeof B.value.state=="boolean"?B.value.state:!1,dp__input_invalid:typeof B.value.state=="boolean"?!B.value.state:!1,dp__input_focus:ge.value||A.isMenuOpen,dp__input_reg:!l.value.enabled,...v.value.input})),we=()=>{r("set-input-date",null),B&&a.autoApply&&(r("set-empty-date"),de.value=null)},te=G=>{if(l.value.separators?.length){const ee=new RegExp(l.value.separators.map(K=>K.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"));return G.split(ee)}return G.split(l.value.rangeSeparator)},V=G=>{const[ee,K]=te(G);if(ee){const N=C(ee.trim(),o.value),R=K?C(K.trim(),o.value):void 0;if(XA(N,R))return;const J=N&&R?[N,R]:[N];y(R,J,0)&&(de.value=N?J:null)}},q=()=>{S.value=!0},x=G=>{if(p.value.enabled)V(G);else if(m.value.enabled){const ee=G.split(";");de.value=ee.map(K=>C(K.trim())).filter(K=>!!K)}else de.value=C(G,o.value)},T=G=>{const ee=typeof G=="string"?G:G.target?.value,K=l?.value?.maskFormat;let N=ee;if(typeof K=="string"){const R=/(YYYY|MM|DD|hh|mm|ss)/g,J=[...K.matchAll(R)].map(k=>k[0]),z=ee.replace(/\D/g,""),ce=_(z,J);N=Q(ce,K)}N===""?we():(l.value.openMenu&&!A.isMenuOpen&&r("open"),x(N),r("set-input-date",de.value)),S.value=!1,o.value=N,i("text-input",G,de.value)},P=G=>{l.value.enabled?(x(G.target.value),l.value.enterSubmit&&w(de.value)&&o.value!==""?(r("set-input-date",de.value,!0),de.value=null):l.value.enterSubmit&&o.value===""&&(de.value=null,r("clear"))):W(G)},F=(G,ee)=>{l.value.enabled&&l.value.tabSubmit&&!ee&&x(G.target.value),l.value.tabSubmit&&w(de.value)&&o.value!==""?(r("set-input-date",de.value,!0,!0),de.value=null):l.value.tabSubmit&&o.value===""&&(de.value=null,r("clear"))},E=()=>{ge.value=!0,r("focus"),s.nextTick().then(()=>{l.value.enabled&&l.value.selectOnFocus&&Y.value?.select()})},W=G=>{if(I(G,h.value,!0),l.value.enabled&&l.value.openMenu&&!d.value.input){if(l.value.openMenu==="open"&&!A.isMenuOpen)return r("open");if(l.value.openMenu==="toggle")return r("toggle")}else l.value.enabled||r("toggle")},ne=()=>{r("real-blur"),ge.value=!1,(!A.isMenuOpen||d.value.enabled&&d.value.input)&&r("blur"),(a.autoApply&&l.value.enabled&&de.value&&!A.isMenuOpen||l.value.applyOnBlur)&&(r("set-input-date",de.value),r("select-date"),de.value=null)},X=G=>{I(G,h.value,!0),r("clear")},re=()=>{r("close")},ie=G=>{if(G.key==="Tab"&&F(G),G.key==="Enter"&&P(G),G.key==="Escape"&&l.value.escClose&&re(),!l.value.enabled){if(G.code==="Tab")return;G.preventDefault()}},pe=()=>{Y.value?.focus({preventScroll:!0})},le=G=>{de.value=G},Ce=G=>{G.key===Nt.tab&&F(G,!0)};return e({focusInput:pe,setParsedDate:le}),(G,ee)=>(s.openBlock(),s.createElementBlock("div",{onClick:W},[!G.$slots["dp-input"]&&!s.unref(d).enabled?s.renderSlot(G.$slots,"trigger",{key:0}):s.createCommentVNode("",!0),!G.$slots.trigger&&(!s.unref(d).enabled||s.unref(d).input)?(s.openBlock(),s.createElementBlock("div",QD,[!G.$slots.trigger&&(!s.unref(d).enabled||s.unref(d).enabled&&s.unref(d).input)?s.renderSlot(G.$slots,"dp-input",{key:0,value:s.unref(o),isMenuOpen:t.isMenuOpen,onInput:T,onEnter:P,onTab:F,onClear:X,onBlur:ne,onKeypress:ie,onPaste:q,onFocus:E,openMenu:()=>G.$emit("open"),closeMenu:()=>G.$emit("close"),toggleMenu:()=>G.$emit("toggle")},()=>[s.createElementVNode("input",{id:s.unref(B).id,ref:"dp-input","data-test-id":"dp-input",name:s.unref(B).name,class:s.normalizeClass(me.value),inputmode:s.unref(B).inputmode,placeholder:s.unref(a).placeholder,disabled:s.unref($)(s.unref(a).disabled),readonly:s.unref($)(s.unref(a).readonly),required:s.unref($)(s.unref(B).required),value:s.unref(o),autocomplete:s.unref(B).autocomplete,"aria-label":s.unref(u).input,"aria-disabled":s.unref(a).disabled||void 0,"aria-invalid":s.unref(B).state===!1?!0:void 0,onInput:T,onBlur:ne,onFocus:E,onKeypress:ie,onKeydown:ee[0]||(ee[0]=K=>ie(K)),onPaste:q,onInvalid:ee[1]||(ee[1]=K=>s.unref(i)("invalid",K))},null,42,TD)]):s.createCommentVNode("",!0),s.createElementVNode("div",{onClick:ee[4]||(ee[4]=K=>r("toggle"))},[G.$slots["input-icon"]&&!s.unref(B).hideInputIcon?(s.openBlock(),s.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:ee[2]||(ee[2]=K=>r("toggle"))},[s.renderSlot(G.$slots,"input-icon")])):s.createCommentVNode("",!0),!G.$slots["input-icon"]&&!s.unref(B).hideInputIcon&&!G.$slots["dp-input"]?(s.openBlock(),s.createBlock(s.unref(hl),{key:1,"aria-label":s.unref(u)?.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:ee[3]||(ee[3]=K=>r("toggle"))},null,8,["aria-label"])):s.createCommentVNode("",!0)]),G.$slots["clear-icon"]&&(s.unref(B).alwaysClearable||s.unref(o)&&s.unref(B).clearable&&!s.unref(a).disabled&&!s.unref(a).readonly)?(s.openBlock(),s.createElementBlock("span",MD,[s.renderSlot(G.$slots,"clear-icon",{clear:X})])):s.createCommentVNode("",!0),!G.$slots["clear-icon"]&&(s.unref(B).alwaysClearable||s.unref(B).clearable&&s.unref(o)&&!s.unref(a).disabled&&!s.unref(a).readonly)?(s.openBlock(),s.createElementBlock("button",{key:2,"aria-label":s.unref(u)?.clearInput,class:"dp--clear-btn",type:"button","data-test-id":"clear-input-value-btn",onKeydown:ee[5]||(ee[5]=K=>s.unref(D)(K,()=>X(K),!0,Ce)),onClick:ee[6]||(ee[6]=s.withModifiers(K=>X(K),["prevent"]))},[s.createVNode(s.unref(I_),{class:"dp__input_icons"})],40,ID)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))}}),_D={ref:"action-row",class:"dp__action_row"},DD=["title"],OD={ref:"action-buttons-container",class:"dp__action_buttons","data-dp-element":"action-row"},ND=["disabled"],LD=s.defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{default:0}},emits:["close-picker","select-date","select-now"],setup(t,{emit:e}){const n=e,r=t,{rootEmit:A,rootProps:i,modelValue:o,defaults:{actionRow:a,multiCalendars:l,inline:u,range:d,multiDates:h,formats:p}}=pt(),{isTimeValid:m,isMonthValid:v}=Zr(),{formatPreview:B}=io(),{checkKeyDown:y,convertType:w}=Sn(),{boolHtmlAttribute:C}=ra(),S=s.useTemplateRef("action-buttons-container"),Q=s.useTemplateRef("action-row"),_=s.ref(!1),D=s.ref({});s.onMounted(()=>{I(),globalThis.addEventListener("resize",I)}),s.onUnmounted(()=>{globalThis.removeEventListener("resize",I)});const I=()=>{_.value=!1,setTimeout(()=>{const q=S.value?.getBoundingClientRect(),x=Q.value?.getBoundingClientRect();q&&x&&(D.value.maxWidth=`${x.width-q.width-20}px`),_.value=!0},0)},$=s.computed(()=>d.value.enabled&&!d.value.partialRange&&o.value?o.value.length===2:!0),Y=s.computed(()=>!m.value(o.value)||!v.value(o.value)||!$.value),de=()=>{const q=p.value.preview;return i.timePicker||i.monthPicker,q(w(o.value))},ge=()=>{const q=o.value;return l.value.count>0?`${B(q[0])} - ${B(q[1])}`:[B(q[0]),B(q[1])]},me=s.computed(()=>!o.value||!r.menuMount?"":typeof p.value.preview=="string"?Array.isArray(o.value)?o.value.length===2&&o.value[1]?ge():h.value.enabled?o.value.map(q=>`${B(q)}`):i.modelAuto?`${B(o.value[0])}`:`${B(o.value[0])} -`:B(o.value):de()),we=()=>h.value.enabled?"; ":" - ",te=s.computed(()=>Array.isArray(me.value)?me.value.join(we()):me.value),V=()=>{m.value(o.value)&&v.value(o.value)&&$.value?n("select-date"):A("invalid-select")};return(q,x)=>(s.openBlock(),s.createElementBlock("div",_D,[q.$slots["action-row"]?s.renderSlot(q.$slots,"action-row",s.normalizeProps(s.mergeProps({key:0},{modelValue:s.unref(o),disabled:Y.value,selectDate:()=>q.$emit("select-date"),closePicker:()=>q.$emit("close-picker")}))):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(a).showPreview?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__selection_preview",title:te.value||void 0,style:s.normalizeStyle(D.value)},[q.$slots["action-preview"]&&_.value?s.renderSlot(q.$slots,"action-preview",{key:0,value:s.unref(o),formatValue:te.value}):s.createCommentVNode("",!0),!q.$slots["action-preview"]&&_.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(te.value),1)],64)):s.createCommentVNode("",!0)],12,DD)):s.createCommentVNode("",!0),s.createElementVNode("div",OD,[q.$slots["action-buttons"]?s.renderSlot(q.$slots,"action-buttons",{key:0,value:s.unref(o),selectDate:V,selectionDisabled:Y.value}):s.createCommentVNode("",!0),q.$slots["action-buttons"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!s.unref(u).enabled&&s.unref(a).showCancel?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"cancel-btn",type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_cancel",onClick:x[0]||(x[0]=T=>q.$emit("close-picker")),onKeydown:x[1]||(x[1]=T=>s.unref(y)(T,()=>q.$emit("close-picker")))},s.toDisplayString(s.unref(a).cancelBtnLabel),545)):s.createCommentVNode("",!0),s.unref(a).showNow?(s.openBlock(),s.createElementBlock("button",{key:1,type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_cancel",onClick:x[2]||(x[2]=T=>q.$emit("select-now")),onKeydown:x[3]||(x[3]=T=>s.unref(y)(T,()=>q.$emit("select-now")))},s.toDisplayString(s.unref(a).nowBtnLabel),33)):s.createCommentVNode("",!0),s.unref(a).showSelect?(s.openBlock(),s.createElementBlock("button",{key:2,ref:"select-btn",type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_select",disabled:s.unref(C)(Y.value),"data-test-id":"select-button",onKeydown:x[4]||(x[4]=T=>s.unref(y)(T,()=>V())),onClick:V},s.toDisplayString(s.unref(a).selectBtnLabel),41,ND)):s.createCommentVNode("",!0)],64))],512)],64))],512))}}),uu=()=>{const{rootProps:t,defaults:{multiCalendars:e}}=pt(),n=s.computed(()=>i=>t.hideNavigation?.includes(i)),r=s.computed(()=>i=>e.value.count?e.value.solo?!0:i===0:!0),A=s.computed(()=>i=>e.value.count?e.value.solo?!0:i===e.value.count-1:!0);return{hideNavigationButtons:n,showLeftIcon:r,showRightIcon:A}},RD=["role","aria-label","tabindex"],HD={class:"dp__selection_grid_header"},PD=["aria-selected","aria-disabled","data-dp-action-element","data-dp-element-active","data-test-id","onClick","onKeydown","onMouseover"],$D=["aria-label","data-dp-action-element"],wl=s.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},useRelative:{type:Boolean},height:{},overlayLabel:{},isLast:{type:Boolean},level:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(t,{emit:e}){const n=e,r=t,{setState:A,defaults:{ariaLabels:i,config:o}}=pt(),{hideNavigationButtons:a}=uu(),{handleEventPropagation:l,checkKeyDown:u}=Sn(),d=s.useTemplateRef("toggle-button"),h=s.useTemplateRef("overlay-container"),p=s.useTemplateRef("grid-wrap"),m=s.ref(!1),v=s.ref(null),B=s.ref(),y=s.ref(0);s.onBeforeUpdate(()=>{v.value=null}),s.onMounted(async()=>{await s.nextTick(),D(),A("arrowNavigationLevel",r.level??1)}),s.onUnmounted(()=>{A("arrowNavigationLevel",(r.level??1)-1)});const w=s.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!r.useRelative,"dp--overlay-relative":r.useRelative})),C=s.computed(()=>r.useRelative?{height:`${r.height}px`,width:"var(--dp-menu-min-width)"}:void 0),S=s.computed(()=>({dp__overlay_col:!0})),Q=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:r.isLast})),_=s.computed(()=>({dp__overlay_container:!0,dp__container_flex:r.items?.length<=6,dp__container_block:r.items?.length>6}));s.watch(()=>r.items,()=>D(!1),{deep:!0});const D=(we=!0)=>{s.nextTick().then(()=>{const te=document.querySelector(`[data-dp-element-active="${r.level??1}"]`),V=_r(p),q=_r(d),x=_r(h),T=q?q.getBoundingClientRect().height:0;V&&(V.getBoundingClientRect().height?y.value=V.getBoundingClientRect().height-T:y.value=o.value.modeHeight-T),te&&x&&we&&(x.scrollTop=te.offsetTop-x.offsetTop-(y.value/2-te.getBoundingClientRect().height)-T)})},I=we=>{we.disabled||n("selected",we.value)},$=()=>{n("toggle"),n("reset-flow")},Y=we=>{o.value.escClose&&($(),l(we,o.value))},de=we=>{B.value=we,n("hover-value",we)},ge=we=>{if(we.key===Nt.esc)return Y(we)},me=we=>{if(we.key===Nt.enter)return $()};return(we,te)=>(s.openBlock(),s.createElementBlock("div",{ref:"grid-wrap",class:s.normalizeClass(w.value),style:s.normalizeStyle(C.value),role:t.useRelative?void 0:"dialog","aria-label":t.overlayLabel,tabindex:t.useRelative?void 0:"0",onKeydown:ge,onClick:te[0]||(te[0]=s.withModifiers(()=>{},["prevent"]))},[s.createElementVNode("div",{ref:"overlay-container",class:s.normalizeClass(_.value),style:s.normalizeStyle({"--dp-overlay-height":`${y.value}px`}),role:"grid"},[s.createElementVNode("div",HD,[s.renderSlot(we.$slots,"header")]),s.renderSlot(we.$slots,"overlay",{},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(V,q)=>(s.openBlock(),s.createElementBlock("div",{key:q,class:s.normalizeClass(["dp__overlay_row",{dp__flex_row:t.items.length>=3}]),role:"row"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V,x=>(s.openBlock(),s.createElementBlock("div",{key:x.value,role:"gridcell",class:s.normalizeClass(S.value),"aria-selected":x.active||void 0,"aria-disabled":x.disabled||void 0,"data-dp-action-element":t.level??1,"data-dp-element-active":x.active?t.level??1:void 0,tabindex:"0","data-test-id":x.text,onClick:s.withModifiers(T=>I(x),["prevent"]),onKeydown:T=>s.unref(u)(T,()=>I(x),!0),onMouseover:T=>de(x.value)},[s.createElementVNode("div",{class:s.normalizeClass(x.className)},[s.renderSlot(we.$slots,"item",{item:x},()=>[s.createTextVNode(s.toDisplayString(x.text),1)])],2)],42,PD))),128))],2))),128))])],6),we.$slots["button-icon"]?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref:"toggle-button",type:"button","aria-label":s.unref(i)?.toggleOverlay,class:s.normalizeClass(Q.value),tabindex:"0","data-dp-action-element":t.level??1,onClick:$,onKeydown:me},[s.renderSlot(we.$slots,"button-icon")],42,$D)),[[s.vShow,!s.unref(a)(t.type)]]):s.createCommentVNode("",!0)],46,RD))}}),KD=["data-dp-mobile"],du=s.defineComponent({__name:"InstanceWrap",props:{stretch:{type:Boolean},collapse:{type:Boolean}},setup(t){const{defaults:{multiCalendars:e}}=pt(),{isMobile:n}=lu(),r=s.computed(()=>e.value.count>0?[...new Array(e.value.count).keys()]:[0]);return(A,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({dp__menu_inner:!t.stretch,"dp--menu--inner-stretched":t.stretch,dp__flex_display:s.unref(e).count>0,"dp--flex-display-collapsed":t.collapse}),"data-dp-mobile":s.unref(n)},[s.renderSlot(A.$slots,"default",{instances:r.value,wrapClass:{dp__instance_calendar:s.unref(e).count>0}})],10,KD))}}),zD=["data-dp-element","aria-label","aria-disabled"],Bl=s.defineComponent({__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(t,{emit:e}){const{checkKeyDown:n}=Sn(),r=e;return(A,i)=>(s.openBlock(),s.createElementBlock("button",{ref:"arrow-btn",type:"button","data-dp-element":t.elName,"data-dp-action-element":"0",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":t.ariaLabel,"aria-disabled":t.disabled||void 0,onClick:i[0]||(i[0]=o=>r("activate")),onKeydown:i[1]||(i[1]=o=>s.unref(n)(o,()=>r("activate"),!0))},[s.createElementVNode("span",{class:s.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:t.disabled}])},[s.renderSlot(A.$slots,"default")],2)],40,zD))}}),WD=["aria-label","data-test-id"],O0=s.defineComponent({__name:"YearModePicker",props:{items:{},instance:{},year:{},showYearPicker:{type:Boolean,default:!1},isDisabled:{}},emits:["handle-year","year-select","toggle-year-picker"],setup(t,{emit:e}){const n=e,r=t,{showRightIcon:A,showLeftIcon:i}=uu(),{rootProps:o,defaults:{config:a,ariaLabels:l,ui:u}}=pt(),{showTransition:d,transitionName:h}=pl(),{formatYear:p}=io(),{boolHtmlAttribute:m}=ra(),v=s.ref(!1),B=s.computed(()=>p(r.year)),y=(S=!1,Q)=>{v.value=!v.value,n("toggle-year-picker",{flow:S,show:Q})},w=S=>{v.value=!1,n("year-select",S)},C=(S=!1)=>{n("handle-year",S)};return(S,Q)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",{class:s.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":v.value}])},[s.unref(i)(t.instance)?(s.openBlock(),s.createBlock(Bl,{key:0,ref:"mpPrevIconRef","aria-label":s.unref(l)?.prevYear,disabled:s.unref(m)(t.isDisabled(!1)),class:s.normalizeClass(s.unref(u)?.navBtnPrev),onActivate:Q[0]||(Q[0]=_=>C(!1))},{default:s.withCtx(()=>[S.$slots["arrow-left"]?s.renderSlot(S.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),S.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(b0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0),s.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${t.year}-${s.unref(l)?.openYearsOverlay}`,"data-test-id":`year-mode-btn-${t.instance}`,"data-dp-action-element":"0",onClick:Q[1]||(Q[1]=()=>y(!1)),onKeydown:Q[2]||(Q[2]=s.withKeys(s.withModifiers(()=>y(!1),["prevent"]),["enter"]))},[S.$slots.year?s.renderSlot(S.$slots,"year",{key:0,text:B.value,value:t.year}):s.createCommentVNode("",!0),S.$slots.year?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(t.year),1)],64))],40,WD),s.unref(A)(t.instance)?(s.openBlock(),s.createBlock(Bl,{key:1,ref:"mpNextIconRef","aria-label":s.unref(l)?.nextYear,disabled:s.unref(m)(t.isDisabled(!0)),class:s.normalizeClass(s.unref(u)?.navBtnNext),onActivate:Q[3]||(Q[3]=_=>C(!0))},{default:s.withCtx(()=>[S.$slots["arrow-right"]?s.renderSlot(S.$slots,"arrow-right",{key:0}):s.createCommentVNode("",!0),S.$slots["arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(E0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0)],2),s.createVNode(s.Transition,{name:s.unref(h)(t.showYearPicker),css:s.unref(d)},{default:s.withCtx(()=>[t.showYearPicker?(s.openBlock(),s.createBlock(wl,{key:0,items:t.items,config:s.unref(a),"is-last":s.unref(o).autoApply&&!s.unref(a).keepActionRow,"overlay-label":s.unref(l)?.yearPicker?.(!0),type:"year",onToggle:y,onSelected:Q[4]||(Q[4]=_=>w(_))},s.createSlots({"button-icon":s.withCtx(()=>[S.$slots["calendar-icon"]?s.renderSlot(S.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),S.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(hl),{key:1}))]),_:2},[S.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:_})=>[s.renderSlot(S.$slots,"year-overlay-value",{text:_.text,value:_.value})]),key:"0"}:void 0]),1032,["items","config","is-last","overlay-label"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),N0=t=>{const{getDate:e,rootEmit:n,state:r,month:A,year:i,modelValue:o,calendars:a,rootProps:l,defaults:{multiCalendars:u,range:d,safeDates:h,filters:p,highlight:m}}=pt(),{resetDate:v,getYearFromDate:B,checkHighlightYear:y,groupListAndMap:w}=jn(),{getYears:C}=cu(),{validateMonthYear:S,checkMinMaxValue:Q}=Zr(),_=s.ref([!1]),D=s.computed(()=>C()),I=s.computed(()=>(F,E)=>{const W=ft(v(e()),{month:A.value(F),year:i.value(F)}),ne=E?r0(W):js(W);return S(ne,l.preventMinMaxNavigation,E)}),$=()=>Array.isArray(o.value)&&u.value.solo&&o.value[1],Y=()=>{for(let F=0;F<u.value.count;F++)if(F===0)a.value[F]=a.value[0];else if(F===u.value.count-1&&$())a.value[F]={month:gt(o.value[1]),year:tt(o.value[1])};else{const E=ft(e(),a.value[F-1]);a.value[F]={month:gt(E),year:tt(dp(E,1))}}},de=F=>{if(!F)return Y();const E=ft(e(),a.value[F]);return a.value[0].year=tt(w0(E,u.value.count-1)),Y()},ge=(F,E)=>{const W=_I(E,F);return d.value.showLastInRange&&W>1?E:F},me=F=>l.focusStartDate||u.value.solo?F[0]:F[1]?ge(F[0],F[1]):F[0],we=()=>{if(o.value){const F=Array.isArray(o.value)?me(o.value):o.value;a.value[0]={month:gt(F),year:tt(F)}}},te=()=>{we(),u.value.count&&Y()};s.watch(o,(F,E)=>{r.isTextInputDate&&JSON.stringify(F??{})!==JSON.stringify(E??{})&&te()}),s.onMounted(()=>{te()});const V=(F,E)=>{a.value[E].year=F,n("update-month-year",{instance:E,year:F,month:a.value[E].month}),u.value.count&&!u.value.solo&&de(E)},q=s.computed(()=>F=>w(D.value,E=>{const W=i.value(F)===E.value,ne=Q(E.value,B(h.value.minDate),B(h.value.maxDate))||p.value.years?.includes(i.value(F)),X=y(m.value,E.value);return{active:W,disabled:ne,highlighted:X}})),x=(F,E)=>{V(F,E),P(E)},T=(F,E=!1)=>{if(!I.value(F,E)){const W=E?i.value(F)+1:i.value(F)-1;V(W,F)}},P=(F,E=!1,W)=>{E||t("reset-flow"),W===void 0?_.value[F]=!_.value[F]:_.value[F]=W,_.value[F]?n("overlay-toggle",{open:!0,overlay:fr.year}):n("overlay-toggle",{open:!1,overlay:fr.year})};return{isDisabled:I,groupedYears:q,showYearPicker:_,selectYear:V,setStartDate:()=>{l.startDate&&(o.value&&l.focusStartDate||!o.value)&&V(tt(e(l.startDate)),0)},toggleYearPicker:P,handleYearSelect:x,handleYear:T}},fu=()=>{const{isDateAfter:t,isDateBefore:e,isDateEqual:n}=jn(),{getDate:r,rootEmit:A,rootProps:i,modelValue:o,defaults:{range:a}}=pt();return{getRangeWithFixedDate:l=>Array.isArray(o.value)&&(o.value.length===2||o.value.length===1&&a.value.partialRange)?a.value.fixedStart&&(t(l,o.value[0])||n(l,o.value[0]))?[o.value[0],l]:a.value.fixedEnd&&(e(l,o.value[1])||n(l,o.value[1]))?[l,o.value[1]]:(A("invalid-fixed-range",l),o.value):[],setPresetDate:l=>{Array.isArray(l.value)&&l.value.length<=2&&a.value.enabled?o.value=l.value.map(u=>r(u)):Array.isArray(l.value)||(o.value=r(l.value))},checkRangeAutoApply:(l,u,d)=>{a&&(l[0]&&l[1]&&i.autoApply&&u("auto-apply",d),l[0]&&!l[1]&&(i.modelAuto||a.value.partialRange)&&i.autoApply&&u("auto-apply",d))},setMonthOrYearRange:l=>{let u=o.value?o.value.slice():[];return u.length===2&&u[1]!==null&&(u=[]),u.length?(e(l,u[0])?u.unshift(l):u[1]=l,A("range-end",l)):(u=[l],A("range-start",l)),u},handleMultiDatesSelect:(l,u)=>{if(o.value&&Array.isArray(o.value))if(o.value.some(d=>n(l,d))){const d=o.value.filter(h=>!n(h,l));o.value=d.length?d:null}else(u&&+u>o.value.length||!u)&&o.value.push(l);else o.value=[l]}}},GD=(t,e)=>{const{getDate:n,rootEmit:r,state:A,calendars:i,year:o,modelValue:a,rootProps:l,defaults:{range:u,highlight:d,safeDates:h,filters:p,multiDates:m}}=pt();ml(()=>{A.isTextInputDate&&x(tt(n(l.startDate)),0)});const{checkMinMaxRange:v,checkMinMaxValue:B}=Zr(),{isDateBetween:y,resetDateTime:w,resetDate:C,getMinMonth:S,getMaxMonth:Q,checkHighlightMonth:_,groupListAndMap:D}=jn(),{checkRangeAutoApply:I,getRangeWithFixedDate:$,handleMultiDatesSelect:Y,setMonthOrYearRange:de,setPresetDate:ge}=fu(),{padZero:me}=Sn(),{getMonths:we,isOutOfYearRange:te}=cu(),V=s.computed(()=>we()),q=s.ref(null),{selectYear:x,groupedYears:T,showYearPicker:P,toggleYearPicker:F,handleYearSelect:E,handleYear:W,isDisabled:ne,setStartDate:X}=N0(e);s.onMounted(()=>{X()});const re=j=>j?{month:gt(j),year:tt(j)}:{month:null,year:null},ie=()=>a.value?Array.isArray(a.value)?a.value.map(j=>re(j)):re(a.value):re(),pe=(j,be)=>{const Be=i.value[j],ae=ie();return Array.isArray(ae)?ae.some(he=>he.year===Be?.year&&he.month===be):Be?.year===ae.year&&be===ae.month},le=(j,be,Be)=>{const ae=ie();return Array.isArray(ae)?o.value(be)===ae[Be]?.year&&j===ae[Be]?.month:!1},Ce=(j,be)=>{if(u.value.enabled){const Be=ie();if(Array.isArray(a.value)&&Array.isArray(Be)){const ae=le(j,be,0)||le(j,be,1),he=ft(C(n()),{month:j,year:o.value(be)});return y(a.value,q.value,he)&&!ae}return!1}return!1},G=s.computed(()=>j=>D(V.value,be=>{const Be=pe(j,be.value),ae=B(be.value,S(o.value(j),h.value.minDate),Q(o.value(j),h.value.maxDate))||O(h.value.disabledDates,o.value(j),be.value)||p.value.months?.includes(be.value)||!se(h.value.allowedDates,o.value(j),be.value)||te(o.value(j)),he=Ce(be.value,j),xe=_(d.value,be.value,o.value(j));return{active:Be,disabled:ae,isBetween:he,highlighted:xe}})),ee=(j,be)=>ft(C(n()),{month:j,year:o.value(be)}),K=(j,be)=>{const Be=a.value?a.value:C(n());a.value=ft(Be,{month:j,year:o.value(be)}),e("auto-apply"),e("update-flow-step")},N=(j,be)=>{const Be=ee(j,be);u.value.fixedEnd||u.value.fixedStart?a.value=$(Be):a.value?v(Be,a.value)&&(a.value=de(ee(j,be))):a.value=[ee(j,be)],s.nextTick().then(()=>{I(a.value,e,a.value.length<2)})},R=(j,be)=>{Y(ee(j,be),m.value.limit),e("auto-apply",!0)},J=(j,be)=>(i.value[be].month=j,ce(be,i.value[be].year,j),m.value.enabled?R(j,be):u.value.enabled?N(j,be):K(j,be)),z=(j,be)=>{x(j,be),ce(be,j,null)},ce=(j,be,Be)=>{let ae=Be;if(!ae&&ae!==0){const he=ie();ae=Array.isArray(he)?he[j].month:he.month}r("update-month-year",{instance:j,year:be,month:ae})},k=(j,be)=>{q.value=ee(j,be)},U=j=>{ge({value:j}),e("auto-apply")},O=(j,be,Be)=>{if(j instanceof Map){const ae=`${me(Be+1)}-${be}`;return j.size?j.has(ae):!1}return typeof j=="function"?j(w(ft(n(),{month:Be,year:be}),!0)):!1},se=(j,be,Be)=>{if(j instanceof Map){const ae=`${me(Be+1)}-${be}`;return j.size?j.has(ae):!0}return!0};return{groupedMonths:G,groupedYears:T,year:o,isDisabled:ne,showYearPicker:P,modelValue:a,toggleYearPicker:F,handleYearSelect:E,handleYear:W,presetDate:U,setHoverDate:k,selectMonth:J,selectYear:z,getModelMonthYear:ie}},YD=s.defineComponent({__name:"MonthPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply","update-flow-step","mount"],setup(t,{expose:e,emit:n}){const r=n,A=t,i=s.useSlots(),{rootProps:o,defaults:{config:a}}=pt(),l=VA(i,xA.YearMode);s.onMounted(()=>{r("mount")});const{groupedMonths:u,groupedYears:d,year:h,isDisabled:p,showYearPicker:m,modelValue:v,presetDate:B,setHoverDate:y,selectMonth:w,selectYear:C,toggleYearPicker:S,handleYearSelect:Q,handleYear:_,getModelMonthYear:D}=GD(A,r);return e({getSidebarProps:()=>({modelValue:v,year:h,getModelMonthYear:D,selectMonth:w,selectYear:C,handleYear:_}),presetDate:B,toggleYearPicker:I=>S(0,I)}),(I,$)=>(s.openBlock(),s.createBlock(du,{collapse:t.collapse,stretch:""},{default:s.withCtx(({instances:Y,wrapClass:de})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Y,ge=>(s.openBlock(),s.createElementBlock("div",{key:ge,class:s.normalizeClass(de)},[I.$slots["top-extra"]?s.renderSlot(I.$slots,"top-extra",{key:0,value:s.unref(v)}):s.createCommentVNode("",!0),s.renderSlot(I.$slots,"month-year",s.mergeProps({ref_for:!0},{year:s.unref(h),months:s.unref(u)(ge),years:s.unref(d)(ge),selectMonth:s.unref(w),selectYear:s.unref(C),instance:ge}),()=>[s.createVNode(wl,{items:s.unref(u)(ge),"is-last":s.unref(o).autoApply&&!s.unref(a).keepActionRow,height:s.unref(a).modeHeight,"no-overlay-focus":!!(t.noOverlayFocus||s.unref(o).textInput),"use-relative":"",level:0,type:"month",onSelected:me=>s.unref(w)(me,ge),onHoverValue:me=>s.unref(y)(me,ge)},s.createSlots({header:s.withCtx(()=>[s.createVNode(O0,{items:s.unref(d)(ge),instance:ge,"show-year-picker":s.unref(m)[ge],year:s.unref(h)(ge),"is-disabled":me=>s.unref(p)(ge,me),onHandleYear:me=>s.unref(_)(ge,me),onYearSelect:me=>s.unref(Q)(me,ge),onToggleYearPicker:me=>s.unref(S)(ge,me?.flow,me?.show)},s.createSlots({_:2},[s.renderList(s.unref(l),(me,we)=>({name:me,fn:s.withCtx(te=>[s.renderSlot(I.$slots,me,s.mergeProps({ref_for:!0},te))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[I.$slots["month-overlay-value"]?{name:"item",fn:s.withCtx(({item:me})=>[s.renderSlot(I.$slots,"month-overlay-value",{text:me.text,value:me.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","onSelected","onHoverValue"])])],2))),128))]),_:3},8,["collapse"]))}}),qD=(t,e)=>{const{rootEmit:n,getDate:r,state:A,modelValue:i,rootProps:o,defaults:{highlight:a,multiDates:l,filters:u,range:d,safeDates:h}}=pt(),{getYears:p}=cu(),{isDateBetween:m,resetDate:v,resetDateTime:B,getYearFromDate:y,checkHighlightYear:w,groupListAndMap:C}=jn(),{checkRangeAutoApply:S,setMonthOrYearRange:Q}=fu(),{checkMinMaxValue:_,checkMinMaxRange:D}=Zr();ml(()=>{A.isTextInputDate&&($.value=tt(r(o.startDate)))});const I=s.ref(null),$=s.ref();s.onMounted(()=>{o.startDate&&(i.value&&o.focusStartDate||!i.value)&&($.value=tt(r(o.startDate)))});const Y=V=>Array.isArray(i.value)?i.value.some(q=>tt(q)===V):i.value?tt(i.value)===V:!1,de=V=>d.value.enabled&&Array.isArray(i.value)?m(i.value,I.value,te(V)):!1,ge=V=>h.value.allowedDates?.size?h.value.allowedDates.has(`${V}`):!0,me=V=>h.value.disabledDates instanceof Map?h.value.disabledDates.size?h.value.disabledDates.has(`${V}`):!1:typeof h.value.disabledDates=="function"?h.value.disabledDates(EA(B(js(r())),V)):!0,we=s.computed(()=>C(p(),V=>{const q=Y(V.value),x=_(V.value,y(h.value.minDate),y(h.value.maxDate))||u.value.years.includes(V.value)||!ge(V.value)||me(V.value),T=de(V.value)&&!q,P=w(a.value,V.value);return{active:q,disabled:x,isBetween:T,highlighted:P}})),te=V=>EA(v(js(r())),V);return{groupedYears:we,focusYear:$,setHoverValue:V=>{I.value=EA(v(r()),V)},selectYear:V=>{if(n("update-month-year",{instance:0,year:V,month:Number.NaN}),l.value.enabled)return i.value?Array.isArray(i.value)&&((i.value?.map(q=>tt(q))).includes(V)?i.value=i.value.filter(q=>tt(q)!==V):i.value.push(EA(B(r()),V))):i.value=[EA(B(js(r())),V)],e("auto-apply",!0);d.value.enabled?D(te(V),i.value)&&(i.value=Q(te(V)),s.nextTick().then(()=>{S(i.value,e,i.value.length<2)})):(i.value=te(V),e("auto-apply"))}}},XD=s.defineComponent({__name:"YearPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(t,{expose:e,emit:n}){const r=n,A=t,{modelValue:i,defaults:{config:o},rootProps:a}=pt(),{groupedYears:l,focusYear:u,selectYear:d,setHoverValue:h}=qD(A,r);return e({getSidebarProps:()=>({modelValue:i,selectYear:d})}),(p,m)=>(s.openBlock(),s.createElementBlock("div",null,[p.$slots["top-extra"]?s.renderSlot(p.$slots,"top-extra",{key:0,value:s.unref(i)}):s.createCommentVNode("",!0),p.$slots["month-year"]?s.renderSlot(p.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{years:s.unref(l),selectYear:s.unref(d)}))):(s.openBlock(),s.createBlock(wl,{key:2,items:s.unref(l),"is-last":s.unref(a).autoApply&&!s.unref(o).keepActionRow,height:s.unref(o).modeHeight,"no-overlay-focus":!!(t.noOverlayFocus||s.unref(a).textInput),"focus-value":s.unref(u),type:"year","use-relative":"",onSelected:s.unref(d),onHoverValue:s.unref(h)},s.createSlots({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:v})=>[s.renderSlot(p.$slots,"year-overlay-value",{text:v.text,value:v.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),JD={key:0,class:"dp__time_input"},jD=["data-compact","data-collapsed"],ZD=["data-test-id","aria-label","data-dp-action-element","onKeydown","onClick","onMousedown"],VD=["aria-label","disabled","data-dp-action-element","data-test-id","onKeydown","onClick"],eO=["data-test-id","aria-label","data-dp-action-element","onKeydown","onClick","onMousedown"],tO={key:0},nO=["aria-label","data-dp-action-element","data-compact"],rO=s.defineComponent({__name:"TimeInput",props:{hours:{},minutes:{},seconds:{},order:{},closeTimePickerBtn:{},disabledTimesConfig:{},validateTime:{}},emits:["update:hours","update:minutes","update:seconds","overlay-opened","overlay-closed","set-hours","set-minutes","reset-flow","mounted"],setup(t,{expose:e,emit:n}){const r=n,A=t,{getDate:i,rootEmit:o,rootProps:a,defaults:{ariaLabels:l,filters:u,config:d,range:h,multiCalendars:p,timeConfig:m}}=pt(),{checkKeyDown:v,hoursToAmPmHours:B}=Sn(),{boolHtmlAttribute:y}=ra(),{sanitizeTime:w,groupListAndMap:C}=jn(),{transitionName:S,showTransition:Q}=pl(),_=s.reactive({hours:!1,minutes:!1,seconds:!1}),D=s.ref("AM"),I=s.ref(null),$=s.ref(),Y=s.ref(!1);s.onMounted(()=>{r("mounted")});const de=O=>ft(i(),{hours:O.hours,minutes:O.minutes,seconds:m.value.enableSeconds?O.seconds:0,milliseconds:0}),ge=s.computed(()=>a.timePicker||m.value.timePickerInline?0:1),me=s.computed(()=>O=>re(O,A[O])||te(O,A[O])),we=s.computed(()=>({hours:A.hours,minutes:A.minutes,seconds:A.seconds})),te=(O,se)=>h.value.enabled&&!h.value.disableTimeRangeValidation?!A.validateTime(O,se):!1,V=(O,se)=>{if(h.value.enabled&&!h.value.disableTimeRangeValidation){const j=se?+m.value[`${O}Increment`]:-+m.value[`${O}Increment`],be=A[O]+j;return!A.validateTime(O,be)}return!1},q=s.computed(()=>O=>!G(+A[O]+ +m.value[`${O}Increment`],O)||V(O,!0)),x=s.computed(()=>O=>!G(+A[O]-+m.value[`${O}Increment`],O)||V(O,!1)),T=(O,se)=>XB(ft(i(),O),se),P=(O,se)=>x_(ft(i(),O),se),F=s.computed(()=>({dp__time_col:!0,dp__time_col_block:!m.value.timePickerInline,dp__time_col_reg_block:!m.value.enableSeconds&&m.value.is24&&!m.value.timePickerInline,dp__time_col_reg_inline:!m.value.enableSeconds&&m.value.is24&&m.value.timePickerInline,dp__time_col_reg_with_button:!m.value.enableSeconds&&!m.value.is24,dp__time_col_sec:m.value.enableSeconds&&m.value.is24,dp__time_col_sec_with_button:m.value.enableSeconds&&!m.value.is24})),E=s.computed(()=>m.value.timePickerInline&&h.value.enabled&&!p.value.count),W=s.computed(()=>{const O=[{type:"hours"}];return m.value.enableMinutes&&O.push({type:"",separator:!0},{type:"minutes"}),m.value.enableSeconds&&O.push({type:"",separator:!0},{type:"seconds"}),O}),ne=s.computed(()=>W.value.filter(O=>!O.separator)),X=s.computed(()=>O=>{if(O==="hours"){const se=z(+A.hours);return{text:se<10?`0${se}`:`${se}`,value:se}}return{text:A[O]<10?`0${A[O]}`:`${A[O]}`,value:A[O]}}),re=(O,se)=>{if(!A.disabledTimesConfig)return!1;const j=A.disabledTimesConfig(A.order,O==="hours"?se:void 0);return j[O]?!!j[O]?.includes(se):!0},ie=(O,se)=>se!=="hours"||D.value==="AM"?O:O+12,pe=O=>{const se=m.value.is24?24:12,j=O==="hours"?se:60,be=+m.value[`${O}GridIncrement`],Be=O==="hours"&&!m.value.is24?be:0,ae=[];for(let he=Be;he<j;he+=be)ae.push({value:m.value.is24?he:ie(he,O),text:he<10?`0${he}`:`${he}`});return O==="hours"&&!m.value.is24&&ae.unshift({value:D.value==="PM"?12:0,text:"12"}),C(ae,he=>({active:!1,disabled:u.value.times[O].includes(he.value)||!G(he.value,O)||re(O,he.value)||te(O,he.value)}))},le=O=>O>=0?O:59,Ce=O=>O>=0?O:23,G=(O,se)=>{const j=a.minTime?de(w(a.minTime)):null,be=a.maxTime?de(w(a.maxTime)):null,Be=de(w(we.value,se,se==="minutes"||se==="seconds"?le(O):Ce(O)));return j&&be?(bi(Be,be)||Vs(Be,be))&&(XA(Be,j)||Vs(Be,j)):j?XA(Be,j)||Vs(Be,j):be?bi(Be,be)||Vs(Be,be):!0},ee=O=>m.value[`no${O[0].toUpperCase()+O.slice(1)}Overlay`],K=O=>{ee(O)||(_[O]=!_[O],_[O]?(Y.value=!0,r("overlay-opened",O)):(Y.value=!1,r("overlay-closed",O)))},N=O=>O==="hours"?qA:O==="minutes"?Ci:Ao,R=()=>{$.value&&clearTimeout($.value)},J=(O,se=!0,j)=>{const be=se?T:P,Be=se?+m.value[`${O}Increment`]:-+m.value[`${O}Increment`];G(+A[O]+Be,O)&&r(`update:${O}`,N(O)(be({[O]:+A[O]},{[O]:+m.value[`${O}Increment`]}))),!j?.keyboard&&d.value.timeArrowHoldThreshold&&($.value=setTimeout(()=>{J(O,se)},d.value.timeArrowHoldThreshold))},z=O=>m.value.is24?O:(O>=12?D.value="PM":D.value="AM",B(O)),ce=()=>{D.value==="PM"?(D.value="AM",r("update:hours",A.hours-12)):(D.value="PM",r("update:hours",A.hours+12)),o("am-pm-change",D.value)},k=O=>{_[O]=!0},U=(O,se)=>(K(O),r(`update:${O}`,se));return e({openChildCmp:k}),(O,se)=>s.unref(a).disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",JD,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(W.value,(j,be)=>(s.openBlock(),s.createElementBlock("div",{key:be,class:s.normalizeClass(F.value),"data-compact":E.value&&!s.unref(m).enableSeconds,"data-collapsed":E.value&&s.unref(m).enableSeconds},[j.separator?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Y.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(":")],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!s.unref(m).timePickerInline,dp__inc_dec_button_inline:s.unref(m).timePickerInline,dp__tp_inline_btn_top:s.unref(m).timePickerInline,dp__inc_dec_button_disabled:q.value(j.type),"dp--hidden-el":Y.value}),"data-test-id":`${j.type}-time-inc-btn-${A.order}`,"aria-label":s.unref(l)?.incrementValue(j.type),tabindex:"0","data-dp-action-element":ge.value,onKeydown:Be=>s.unref(v)(Be,()=>J(j.type,!0,{keyboard:!0}),!0),onClick:Be=>s.unref(d).timeArrowHoldThreshold?void 0:J(j.type,!0),onMousedown:Be=>s.unref(d).timeArrowHoldThreshold?J(j.type,!0):void 0,onMouseup:R},[s.unref(m).timePickerInline?s.renderSlot(O.$slots,"tp-inline-arrow-up",{key:1},()=>[se[2]||(se[2]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),se[3]||(se[3]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))]):s.renderSlot(O.$slots,"arrow-up",{key:0},()=>[s.createVNode(s.unref(S0))])],42,ZD),s.createElementVNode("button",{type:"button","aria-label":`${X.value(j.type).text}-${s.unref(l)?.openTpOverlay(j.type)}`,class:s.normalizeClass({dp__time_display:!0,dp__time_display_block:!s.unref(m).timePickerInline,dp__time_display_inline:s.unref(m).timePickerInline,"dp--time-invalid":me.value(j.type),"dp--time-overlay-btn":!me.value(j.type),"dp--hidden-el":Y.value}),disabled:s.unref(y)(ee(j.type)),tabindex:"0","data-dp-action-element":ge.value,"data-test-id":`${j.type}-toggle-overlay-btn-${A.order}`,onKeydown:Be=>s.unref(v)(Be,()=>K(j.type),!0),onClick:Be=>K(j.type)},[s.renderSlot(O.$slots,j.type,{text:X.value(j.type).text,value:X.value(j.type).value},()=>[s.createTextVNode(s.toDisplayString(X.value(j.type).text),1)])],42,VD),s.createElementVNode("button",{type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!s.unref(m).timePickerInline,dp__inc_dec_button_inline:s.unref(m).timePickerInline,dp__tp_inline_btn_bottom:s.unref(m).timePickerInline,dp__inc_dec_button_disabled:x.value(j.type),"dp--hidden-el":Y.value}),"data-test-id":`${j.type}-time-dec-btn-${A.order}`,"aria-label":s.unref(l)?.decrementValue(j.type),tabindex:"0","data-dp-action-element":ge.value,onKeydown:Be=>s.unref(v)(Be,()=>J(j.type,!1,{keyboard:!0}),!0),onClick:Be=>s.unref(d).timeArrowHoldThreshold?void 0:J(j.type,!1),onMousedown:Be=>s.unref(d).timeArrowHoldThreshold?J(j.type,!1):void 0,onMouseup:R},[s.unref(m).timePickerInline?s.renderSlot(O.$slots,"tp-inline-arrow-down",{key:1},()=>[se[4]||(se[4]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),se[5]||(se[5]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))]):s.renderSlot(O.$slots,"arrow-down",{key:0},()=>[s.createVNode(s.unref(x0))])],42,eO)],64))],10,jD))),128)),s.unref(m).is24?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",tO,[s.renderSlot(O.$slots,"am-pm-button",{toggle:ce,value:D.value},()=>[s.createElementVNode("button",{ref_key:"amPmButton",ref:I,type:"button",class:"dp__pm_am_button",role:"button","aria-label":s.unref(l)?.amPmButton,tabindex:"0","data-dp-action-element":ge.value,"data-compact":E.value,onClick:ce,onKeydown:se[0]||(se[0]=j=>s.unref(v)(j,()=>ce(),!0))},s.toDisplayString(D.value),41,nO)])])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(ne.value,(j,be)=>(s.openBlock(),s.createBlock(s.Transition,{key:be,name:s.unref(S)(_[j.type]),css:s.unref(Q)},{default:s.withCtx(()=>[_[j.type]?(s.openBlock(),s.createBlock(wl,{key:0,items:pe(j.type),"is-last":s.unref(a).autoApply&&!s.unref(d).keepActionRow,type:j.type,"aria-labels":s.unref(l),level:s.unref(m).timePickerInline||s.unref(a).timePicker?1:2,"overlay-label":s.unref(l).timeOverlay?.(j.type),onSelected:Be=>U(j.type,Be),onToggle:Be=>K(j.type),onResetFlow:se[1]||(se[1]=Be=>O.$emit("reset-flow"))},s.createSlots({"button-icon":s.withCtx(()=>[s.renderSlot(O.$slots,"clock-icon",{},()=>[O.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(m).timePickerInline?s.unref(hl):s.unref(k0)),{key:0}))])]),_:2},[O.$slots[`${j.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:Be})=>[s.renderSlot(O.$slots,`${j.type}-overlay-value`,{text:Be.text,value:Be.value})]),key:"0"}:void 0,O.$slots[`${j.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(O.$slots,`${j.type}-overlay-header`,{toggle:()=>K(j.type)})]),key:"1"}:void 0]),1032,["items","is-last","type","aria-labels","level","overlay-label","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}),AO=["data-dp-mobile"],iO=["aria-label","tabindex"],oO=["role","aria-label","tabindex"],sO=["aria-label"],L0=s.defineComponent({__name:"TimePicker",props:{hours:{},minutes:{},seconds:{},disabledTimesConfig:{type:[Function,null]},noOverlayFocus:{type:Boolean},validateTime:{type:Function}},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow"],setup(t,{expose:e,emit:n}){const r=n,A=t,{rootEmit:i,setState:o,modelValue:a,rootProps:l,defaults:{ariaLabels:u,textInput:d,config:h,range:p,timeConfig:m}}=pt(),{isModelAuto:v}=jn(),{checkKeyDown:B,findFocusableEl:y}=Sn(),{transitionName:w,showTransition:C}=pl(),{hideNavigationButtons:S}=uu(),{isMobile:Q}=lu(),_=s.useSlots(),D=s.useTemplateRef("overlay"),I=s.useTemplateRef("close-tp-btn"),$=s.useTemplateRef("tp-input"),Y=s.ref(!1);s.onMounted(()=>{r("mount")});const de=s.computed(()=>p.value.enabled&&l.modelAuto?v(a.value):!0),ge=s.ref(!1),me=X=>({hours:Array.isArray(A.hours)?A.hours[X]:A.hours,minutes:Array.isArray(A.minutes)?A.minutes[X]:A.minutes,seconds:Array.isArray(A.seconds)?A.seconds[X]:A.seconds}),we=s.computed(()=>{const X=[];if(p.value.enabled)for(let re=0;re<2;re++)X.push(me(re));else X.push(me(0));return X}),te=(X,re=!1,ie="")=>{re||r("reset-flow"),ge.value=X,o("arrowNavigationLevel",X?1:0),i("overlay-toggle",{open:X,overlay:fr.time}),s.nextTick(()=>{ie!==""&&$.value?.[0]&&$.value[0].openChildCmp(ie)})},V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:l.autoApply&&!h.value.keepActionRow})),q=VA(_,xA.TimeInput),x=(X,re,ie)=>p.value.enabled?re===0?[X,we.value[1][ie]]:[we.value[0][ie],X]:X,T=X=>{r("update:hours",X)},P=X=>{r("update:minutes",X)},F=X=>{r("update:seconds",X)},E=()=>{if(D.value&&!d.value.enabled&&!A.noOverlayFocus){const X=y(D.value);X&&X.focus({preventScroll:!0})}},W=X=>{Y.value=!1,i("overlay-toggle",{open:!1,overlay:X})},ne=X=>{Y.value=!0,i("overlay-toggle",{open:!0,overlay:X})};return e({toggleTimePicker:te}),(X,re)=>(s.openBlock(),s.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":s.unref(Q)},[!s.unref(l).timePicker&&!s.unref(m).timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref:"open-tp-btn",type:"button","data-dp-action-element":"0",class:s.normalizeClass({...V.value,"dp--hidden-el":ge.value}),"aria-label":s.unref(u)?.openTimePicker,tabindex:t.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:re[0]||(re[0]=ie=>s.unref(B)(ie,()=>te(!0))),onClick:re[1]||(re[1]=ie=>te(!0))},[s.renderSlot(X.$slots,"clock-icon",{},()=>[s.createVNode(s.unref(k0))])],42,iO)),[[s.vShow,!s.unref(S)("time")]]):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(w)(ge.value),css:s.unref(C)&&!s.unref(m).timePickerInline},{default:s.withCtx(()=>[ge.value||s.unref(l).timePicker||s.unref(m).timePickerInline?(s.openBlock(),s.createElementBlock("div",{key:0,ref:"overlay",role:s.unref(m).timePickerInline?void 0:"dialog",class:s.normalizeClass({dp__overlay:!s.unref(m).timePickerInline,"dp--overlay-absolute":!s.unref(l).timePicker&&!s.unref(m).timePickerInline,"dp--overlay-relative":s.unref(l).timePicker}),style:s.normalizeStyle(s.unref(l).timePicker?{height:`${s.unref(h).modeHeight}px`}:void 0),"aria-label":s.unref(u)?.timePicker,tabindex:s.unref(m).timePickerInline?void 0:0},[s.createElementVNode("div",{class:s.normalizeClass(s.unref(m).timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[s.renderSlot(X.$slots,"time-picker-overlay",{hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:T,setMinutes:P,setSeconds:F},()=>[s.createElementVNode("div",{class:s.normalizeClass(s.unref(m).timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(we.value,(ie,pe)=>s.withDirectives((s.openBlock(),s.createBlock(rO,s.mergeProps({key:pe},{ref_for:!0},{order:pe,hours:ie.hours,minutes:ie.minutes,seconds:ie.seconds,closeTimePickerBtn:I.value,disabledTimesConfig:t.disabledTimesConfig,disabled:pe===0?s.unref(p).fixedStart:s.unref(p).fixedEnd},{ref_for:!0,ref:"tp-input","validate-time":(le,Ce)=>t.validateTime(le,x(Ce,pe,le)),"onUpdate:hours":le=>T(x(le,pe,"hours")),"onUpdate:minutes":le=>P(x(le,pe,"minutes")),"onUpdate:seconds":le=>F(x(le,pe,"seconds")),onMounted:E,onOverlayClosed:W,onOverlayOpened:ne}),s.createSlots({_:2},[s.renderList(s.unref(q),(le,Ce)=>({name:le,fn:s.withCtx(G=>[s.renderSlot(X.$slots,le,s.mergeProps({ref_for:!0},G))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[s.vShow,pe===0?!0:de.value]])),128))],2)]),!s.unref(l).timePicker&&!s.unref(m).timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref:"close-tp-btn","data-dp-action-element":"1",type:"button",class:s.normalizeClass({...V.value,"dp--hidden-el":Y.value}),"aria-label":s.unref(u)?.closeTimePicker,tabindex:"0",onKeydown:re[2]||(re[2]=ie=>s.unref(B)(ie,()=>te(!1))),onClick:re[3]||(re[3]=ie=>te(!1))},[s.renderSlot(X.$slots,"calendar-icon",{},()=>[s.createVNode(s.unref(hl))])],42,sO)),[[s.vShow,!s.unref(S)("time")]]):s.createCommentVNode("",!0)],2)],14,oO)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],8,AO))}}),R0=t=>{const{getDate:e,modelValue:n,time:r,rootProps:A,defaults:{range:i,timeConfig:o}}=pt(),{isDateEqual:a,setTime:l}=jn(),u=(I,$)=>Array.isArray(r[I])?r[I][$]:r[I],d=I=>o.value.enableSeconds?Array.isArray(r.seconds)?r.seconds[I]:r.seconds:0,h=(I,$)=>I?l($!==void 0?{hours:u("hours",$),minutes:u("minutes",$),seconds:d($)}:{hours:r.hours,minutes:r.minutes,seconds:d()},I):S_(e(),d($)),p=(I,$)=>{r[I]=$},m=s.computed(()=>A.modelAuto&&i.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:i.value.enabled),v=(I,$)=>{const Y=Object.fromEntries(Object.keys(r).map(de=>de===I?[de,$]:[de,r[de]].slice()));if(m.value&&!i.value.disableTimeRangeValidation){const de=me=>n.value?l({hours:Y.hours[me],minutes:Y.minutes[me],seconds:Y.seconds[me]},n.value[me]):null,ge=me=>k_(n.value[me],0);return!(a(de(0),de(1))&&(XA(de(0),ge(1))||bi(de(1),ge(0))))}return!0},B=(I,$)=>{v(I,$)&&(p(I,$),t&&t())},y=I=>{B("hours",I)},w=I=>{B("minutes",I)},C=I=>{B("seconds",I)},S=(I,$)=>{y(I.hours),w(I.minutes),C(I.seconds),n.value&&$(n.value)},Q=I=>{if(I){const $=Array.isArray(I),Y=$?[+I[0].hours,+I[1].hours]:+I.hours,de=$?[+I[0].minutes,+I[1].minutes]:+I.minutes,ge=$?[+(I[0].seconds??0),+(I[1].seconds??0)]:+(I.seconds??0);p("hours",Y),p("minutes",de),o.value.enableSeconds&&p("seconds",ge)}},_=(I,$)=>{const Y={hours:Array.isArray(r.hours)?r.hours[I]:r.hours,disabledArr:[]};return($||$===0)&&(Y.hours=$),Array.isArray(A.disabledTimes)&&(Y.disabledArr=i.value.enabled&&Array.isArray(A.disabledTimes[I])?A.disabledTimes[I]:A.disabledTimes),Y},D=s.computed(()=>(I,$)=>{if(Array.isArray(A.disabledTimes)){const{disabledArr:Y,hours:de}=_(I,$),ge=Y.filter(me=>+me.hours===de);return ge[0]?.minutes==="*"?{hours:[de],minutes:void 0,seconds:void 0}:{hours:[],minutes:ge?.map(me=>+me.minutes)??[],seconds:ge?.map(me=>me.seconds?+me.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{assignTime:p,updateHours:y,updateMinutes:w,updateSeconds:C,getSetDateTime:h,updateTimeValues:S,getSecondsValue:d,assignStartTime:Q,validateTime:v,disabledTimesConfig:D}},aO=t=>{const{getDate:e,time:n,modelValue:r,state:A,defaults:{startTime:i,range:o,timeConfig:a}}=pt(),{getTimeObj:l}=jn();ml(()=>{A.isTextInputDate&&_()});const{updateTimeValues:u,getSetDateTime:d,assignTime:h,assignStartTime:p,disabledTimesConfig:m,validateTime:v}=R0(B);function B(){t("update-flow-step")}const y=I=>{const{hours:$,minutes:Y,seconds:de}=I;return{hours:+$,minutes:+Y,seconds:de?+de:0}},w=()=>{if(a.value.startTime){if(Array.isArray(a.value.startTime)){const $=y(a.value.startTime[0]),Y=y(a.value.startTime[1]);return[ft(e(),$),ft(e(),Y)]}const I=y(a.value.startTime);return ft(e(),I)}return o.value.enabled?[null,null]:null},C=()=>{if(o.value.enabled){const[I,$]=w();r.value=[d(I,0),d($,1)]}else r.value=d(w())},S=I=>Array.isArray(I)?[l(e(I[0])),l(e(I[1]))]:[l(I??e())],Q=(I,$,Y)=>{h("hours",I),h("minutes",$),h("seconds",a.value.enableSeconds?Y:0)},_=()=>{const[I,$]=S(r.value);return o.value.enabled?Q([I.hours,$.hours],[I.minutes,$.minutes],[I.seconds,$.seconds]):Q(I.hours,I.minutes,I.seconds)};s.onMounted(()=>(p(i.value),r.value?_():C()));const D=()=>{Array.isArray(r.value)?r.value=r.value.map((I,$)=>I&&d(I,$)):r.value=d(r.value),t("time-update")};return{modelValue:r,time:n,disabledTimesConfig:m,validateTime:v,updateTime:I=>{u(I,D)}}},lO=s.defineComponent({__name:"TimePickerSolo",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["time-update","mount","reset-flow","update-flow-step"],setup(t,{expose:e,emit:n}){const r=n,A=s.useSlots(),i=VA(A,xA.TimePicker),o=s.useTemplateRef("time-input"),{time:a,modelValue:l,disabledTimesConfig:u,updateTime:d,validateTime:h}=aO(r);return s.onMounted(()=>{r("mount")}),e({getSidebarProps:()=>({modelValue:l,time:a,updateTime:d}),toggleTimePicker:(p,m=!1,v="")=>{o.value?.toggleTimePicker(p,m,v)}}),(p,m)=>(s.openBlock(),s.createBlock(du,{"multi-calendars":0,stretch:""},{default:s.withCtx(({wrapClass:v})=>[s.createElementVNode("div",{class:s.normalizeClass(v)},[s.createVNode(L0,s.mergeProps({ref:"time-input"},p.$props,{hours:s.unref(a).hours,minutes:s.unref(a).minutes,seconds:s.unref(a).seconds,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"onUpdate:hours":m[0]||(m[0]=B=>s.unref(d)({hours:B,minutes:s.unref(a).minutes,seconds:s.unref(a).seconds})),"onUpdate:minutes":m[1]||(m[1]=B=>s.unref(d)({hours:s.unref(a).hours,minutes:B,seconds:s.unref(a).seconds})),"onUpdate:seconds":m[2]||(m[2]=B=>s.unref(d)({hours:s.unref(a).hours,minutes:s.unref(a).minutes,seconds:B})),onResetFlow:m[3]||(m[3]=B=>p.$emit("reset-flow"))}),s.createSlots({_:2},[s.renderList(s.unref(i),(B,y)=>({name:B,fn:s.withCtx(w=>[s.renderSlot(p.$slots,B,s.normalizeProps(s.guardReactiveProps(w)))])}))]),1040,["hours","minutes","seconds","disabled-times-config","validate-time"])],2)]),_:3}))}}),cO=(t,e)=>{const{getDate:n,rootProps:r,defaults:{filters:A}}=pt(),{validateMonthYearInRange:i,validateMonthYear:o}=Zr(),a=(p,m)=>{let v=p;return A.value.months.includes(gt(v))?(v=m?bA(p,1):ea(p,1),a(v,m)):v},l=(p,m)=>{let v=p;return A.value.years.includes(tt(v))?(v=m?dp(p,1):w0(p,1),l(v,m)):v},u=(p,m=!1)=>{const v=ft(n(),{month:t.month,year:t.year});let B=p?bA(v,1):ea(v,1);r.disableYearSelect&&(B=EA(B,t.year));let y=gt(B),w=tt(B);A.value.months.includes(y)&&(B=a(B,p),y=gt(B),w=tt(B)),A.value.years.includes(w)&&(B=l(B,p),w=tt(B)),i(y,w,p,r.preventMinMaxNavigation)&&d(y,w,m)},d=(p,m,v=!1)=>{e("update-month-year",{month:p,year:m,fromNav:v})},h=s.computed(()=>p=>o(ft(n(),{month:t.month,year:t.year}),r.preventMinMaxNavigation,p));return{handleMonthYearChange:u,isDisabled:h,updateMonthYear:d}},uO={class:"dp--header-wrap"},dO={key:0,class:"dp__month_year_wrap"},fO={key:0},hO={class:"dp__month_year_wrap"},pO=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],mO=s.defineComponent({__name:"DpHeader",props:{month:{},year:{},instance:{},years:{},months:{},menuWrapRef:{}},emits:["mount","reset-flow","update-month-year"],setup(t,{expose:e,emit:n}){const r=n,A=t,{rootEmit:i,rootProps:o,modelValue:a,defaults:{ariaLabels:l,filters:u,config:d,highlight:h,safeDates:p,ui:m}}=pt(),{transitionName:v,showTransition:B}=pl(),{showLeftIcon:y,showRightIcon:w}=uu(),{handleMonthYearChange:C,isDisabled:S,updateMonthYear:Q}=cO(A,r),{getMaxMonth:_,getMinMonth:D,getYearFromDate:I,groupListAndMap:$,checkHighlightYear:Y,checkHighlightMonth:de}=jn(),{checkKeyDown:ge}=Sn(),{formatYear:me}=io(),{checkMinMaxValue:we}=Zr(),{boolHtmlAttribute:te}=ra(),V=s.ref(!1),q=s.ref(!1),x=s.ref(!1);s.onMounted(()=>{r("mount")});const T=ee=>({get:()=>A[ee],set:K=>{const N=ee===kA.month?kA.year:kA.month;r("update-month-year",{[ee]:K,[N]:A[N]}),ee===kA.month?ie(!0):pe(!0)}}),P=s.computed(T(kA.month)),F=s.computed(T(kA.year)),E=s.computed(()=>ee=>({month:A.month,year:A.year,items:ee===kA.month?A.months:A.years,instance:A.instance,updateMonthYear:Q,toggle:ee===kA.month?ie:pe})),W=s.computed(()=>A.months.find(K=>K.value===A.month)||{text:"",value:0}),ne=s.computed(()=>$(A.months,ee=>{const K=A.month===ee.value,N=we(ee.value,D(A.year,p.value.minDate),_(A.year,p.value.maxDate))||u.value.months.includes(ee.value),R=de(h.value,ee.value,A.year);return{active:K,disabled:N,highlighted:R}})),X=s.computed(()=>$(A.years,ee=>{const K=A.year===ee.value,N=we(ee.value,I(p.value.minDate),I(p.value.maxDate))||u.value.years.includes(ee.value),R=Y(h.value,ee.value);return{active:K,disabled:N,highlighted:R}})),re=(ee,K,N)=>{N===void 0?ee.value=!ee.value:ee.value=N,ee.value?(x.value=!0,i("overlay-toggle",{open:!0,overlay:K})):(x.value=!1,i("overlay-toggle",{open:!1,overlay:K}))},ie=(ee=!1,K)=>{le(ee),re(V,fr.month,K)},pe=(ee=!1,K)=>{le(ee),re(q,fr.year,K)},le=ee=>{ee||r("reset-flow")},Ce=s.computed(()=>[{type:kA.month,index:1,toggle:ie,modelValue:P.value,updateModelValue:ee=>P.value=ee,text:W.value.text,showSelectionGrid:V.value,items:ne.value,ariaLabel:l.value?.openMonthsOverlay,overlayLabel:l.value.monthPicker?.(!0)??void 0},{type:kA.year,index:2,toggle:pe,modelValue:F.value,updateModelValue:ee=>F.value=ee,text:me(A.year),showSelectionGrid:q.value,items:X.value,ariaLabel:l.value?.openYearsOverlay,overlayLabel:l.value.yearPicker?.(!0)??void 0}]),G=s.computed(()=>o.disableYearSelect?[Ce.value[0]]:o.yearFirst?[...Ce.value].reverse():Ce.value);return e({toggleMonthPicker:ie,toggleYearPicker:pe,handleMonthYearChange:C}),(ee,K)=>(s.openBlock(),s.createElementBlock("div",uO,[ee.$slots["month-year"]?(s.openBlock(),s.createElementBlock("div",dO,[s.renderSlot(ee.$slots,"month-year",s.normalizeProps(s.guardReactiveProps({month:t.month,year:t.year,months:t.months,years:t.years,updateMonthYear:s.unref(Q),handleMonthYearChange:s.unref(C),instance:t.instance,isDisabled:s.unref(S)})))])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[ee.$slots["top-extra"]?(s.openBlock(),s.createElementBlock("div",fO,[s.renderSlot(ee.$slots,"top-extra",{value:s.unref(a)})])):s.createCommentVNode("",!0),s.createElementVNode("div",hO,[s.unref(y)(t.instance)&&!s.unref(o).vertical?(s.openBlock(),s.createBlock(Bl,{key:0,"aria-label":s.unref(l)?.prevMonth,disabled:s.unref(te)(s.unref(S)(!1)),class:s.normalizeClass(s.unref(m)?.navBtnPrev),"el-name":"action-prev",onActivate:K[0]||(K[0]=N=>s.unref(C)(!1,!0))},{default:s.withCtx(()=>[ee.$slots["arrow-left"]?s.renderSlot(ee.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),ee.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(b0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:s.unref(o).disableYearSelect}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(G.value,N=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:N.type},[s.createElementVNode("button",{type:"button","data-dp-element":`overlay-${N.type}`,class:s.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":x.value}]),"aria-label":`${N.text}-${N.ariaLabel}`,"data-test-id":`${N.type}-toggle-overlay-${t.instance}`,tabindex:"0","data-dp-action-element":"0",onClick:R=>N.toggle(!1),onKeydown:R=>s.unref(ge)(R,()=>N.toggle(),!0)},[ee.$slots[N.type]?s.renderSlot(ee.$slots,N.type,{key:0,text:N.text,value:A[N.type]}):s.createCommentVNode("",!0),ee.$slots[N.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(N.text),1)],64))],42,pO),s.createVNode(s.Transition,{name:s.unref(v)(N.showSelectionGrid),css:s.unref(B)},{default:s.withCtx(()=>[N.showSelectionGrid?(s.openBlock(),s.createBlock(wl,{key:0,items:N.items,"is-last":s.unref(o).autoApply&&!s.unref(d).keepActionRow,"skip-button-ref":!1,type:N.type,"header-refs":[],"menu-wrap-ref":t.menuWrapRef,"overlay-label":N.overlayLabel,onSelected:N.updateModelValue,onToggle:N.toggle},s.createSlots({"button-icon":s.withCtx(()=>[ee.$slots["calendar-icon"]?s.renderSlot(ee.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),ee.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(hl),{key:1}))]),_:2},[ee.$slots[`${N.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:R})=>[s.renderSlot(ee.$slots,`${N.type}-overlay-value`,{text:R.text,value:R.value})]),key:"0"}:void 0,ee.$slots[`${N.type}-overlay`]?{name:"overlay",fn:s.withCtx(()=>[s.renderSlot(ee.$slots,`${N.type}-overlay`,s.mergeProps({ref_for:!0},E.value(N.type)))]),key:"1"}:void 0,ee.$slots[`${N.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(ee.$slots,`${N.type}-overlay-header`,{toggle:N.toggle})]),key:"2"}:void 0]),1032,["items","is-last","type","menu-wrap-ref","overlay-label","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s.unref(y)(t.instance)&&s.unref(o).vertical?(s.openBlock(),s.createBlock(Bl,{key:1,"aria-label":s.unref(l)?.prevMonth,"el-name":"action-prev",disabled:s.unref(te)(s.unref(S)(!1)),class:s.normalizeClass(s.unref(m)?.navBtnPrev),onActivate:K[1]||(K[1]=N=>s.unref(C)(!1,!0))},{default:s.withCtx(()=>[ee.$slots["arrow-up"]?s.renderSlot(ee.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),ee.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(S0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0),s.unref(w)(t.instance)?(s.openBlock(),s.createBlock(Bl,{key:2,ref:"rightIcon","el-name":"action-next",disabled:s.unref(te)(s.unref(S)(!0)),"aria-label":s.unref(l)?.nextMonth,class:s.normalizeClass(s.unref(m)?.navBtnNext),onActivate:K[2]||(K[2]=N=>s.unref(C)(!0,!0))},{default:s.withCtx(()=>[ee.$slots[s.unref(o).vertical?"arrow-down":"arrow-right"]?s.renderSlot(ee.$slots,s.unref(o).vertical?"arrow-down":"arrow-right",{key:0}):s.createCommentVNode("",!0),ee.$slots[s.unref(o).vertical?"arrow-down":"arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(o).vertical?s.unref(x0):s.unref(E0)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):s.createCommentVNode("",!0)])],64))]))}}),gO={class:"dp__calendar_header",role:"row"},vO={key:0,class:"dp__calendar_header_item",role:"gridcell"},wO=["aria-label"],BO={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},yO={class:"dp__cell_inner"},CO=["id","aria-selected","aria-disabled","aria-label","tabindex","data-test-id","data-dp-element-active","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],bO=s.defineComponent({__name:"DpCalendar",props:{instance:{},mappedDates:{},month:{},year:{}},emits:["mount","select-date","set-hover-date","handle-scroll","handle-swipe"],setup(t,{expose:e,emit:n}){const r=n,A=t,{getDate:i,rootEmit:o,rootProps:a,defaults:{transitions:l,config:u,ariaLabels:d,multiCalendars:h,weekNumbers:p,multiDates:m,ui:v}}=pt(),{isDateAfter:B,isDateEqual:y,resetDateTime:w,getCellId:C}=jn(),{checkKeyDown:S,checkStopPropagation:Q,isTouchDevice:_}=Sn(),{formatWeekDay:D}=io(),I=s.useTemplateRef("calendar-wrap"),$=s.useTemplateRef("active-tooltip"),Y=s.ref([]),de=s.ref(null),ge=s.ref(!0),me=s.ref(!1),we=s.ref(""),te=s.ref({bottom:"",left:"",transform:""}),V=s.ref({left:"50%"});SM(I,{onSwipeEnd:(k,U)=>{u.value.noSwipe||(a.vertical?(U==="up"||U==="down")&&r("handle-swipe",U==="up"?"left":"right"):(U==="left"||U==="right")&&r("handle-swipe",U==="right"?"left":"right"))}});const q=s.computed(()=>a.calendar?a.calendar(A.mappedDates):A.mappedDates),x=s.computed(()=>a.dayNames?Array.isArray(a.dayNames)?a.dayNames:a.dayNames():ce());s.onMounted(()=>{r("mount",{cmp:"calendar",dayRefs:Y.value}),u.value.monthChangeOnScroll&&I.value&&I.value.addEventListener("wheel",ee,{passive:!1})}),s.onUnmounted(()=>{u.value.monthChangeOnScroll&&I.value&&I.value.removeEventListener("wheel",ee)});const T=k=>k?a.vertical?"vNext":"next":a.vertical?"vPrevious":"previous",P=(k,U)=>{if(a.transitions){const O=w(ft(i(),{month:A.month,year:A.year}));we.value=B(w(ft(i(),{month:k,year:U})),O)?l.value[T(!0)]:l.value[T(!1)],ge.value=!1,s.nextTick(()=>{ge.value=!0})}},F=s.computed(()=>({...v.value.calendar})),E=k=>({type:"dot",...k}),W=s.computed(()=>k=>{const U=E(k);return{dp__marker_dot:U.type==="dot",dp__marker_line:U.type==="line"}}),ne=s.computed(()=>k=>y(k,de.value)),X=s.computed(()=>({dp__calendar:!0,dp__calendar_next:h.value.count>0&&A.instance!==0})),re=s.computed(()=>k=>a.hideOffsetDates?k.current:!0),ie=async(k,U)=>{const{width:O,height:se}=k.getBoundingClientRect();de.value=U.value;let j={left:`${O/2}px`},be=-50;if(await s.nextTick(),$.value?.[0]){const{left:Be,width:ae}=$.value[0].getBoundingClientRect();Be<0&&(j={left:"0"},be=0,V.value.left=`${O/2}px`),globalThis.innerWidth<Be+ae&&(j={right:"0"},be=0,V.value.left=`${ae-O/2}px`)}te.value={bottom:`${se}px`,...j,transform:`translateX(${be}%)`}},pe=async(k,U,O)=>{const se=_r(Y.value?.[U]?.[O]);se&&(k.marker?.customPosition&&k.marker?.tooltip?.length?te.value=k.marker.customPosition(se):await ie(se,k),o("tooltip-open",k.marker))},le=async(k,U,O)=>{if(me.value&&m.value.enabled&&m.value.dragSelect)return r("select-date",k);if(r("set-hover-date",k),k.marker?.tooltip?.length){if(a.hideOffsetDates&&!k.current)return;await pe(k,U,O)}},Ce=k=>{de.value&&(de.value=null,te.value=structuredClone({bottom:"",left:"",transform:""}),o("tooltip-close",k.marker))},G=(k,U,O)=>{k&&(Array.isArray(Y.value[U])?Y.value[U][O]=k:Y.value[U]=[k])},ee=k=>{u.value.monthChangeOnScroll&&(k.preventDefault(),r("handle-scroll",k))},K=k=>p.value?p.value.type==="local"?vp(k.value,{weekStartsOn:+a.weekStart,locale:a.locale}):p.value.type==="iso"?mp(k.value):typeof p.value.type=="function"?p.value.type(k.value):"":"",N=k=>{const U=k[0];return p.value?.hideOnOffsetDates?k.some(O=>O.current)?K(U):"":K(U)},R=(k,U,O=!0)=>{!O&&_()||(!m.value.enabled||u.value.allowPreventDefault)&&(Q(k,u.value),r("select-date",U))},J=k=>{Q(k,u.value)},z=k=>{m.value.enabled&&m.value.dragSelect?(me.value=!0,r("select-date",k)):m.value.enabled&&r("select-date",k)},ce=()=>{const k=i(),U=Jr(k,{locale:a.locale,weekStartsOn:+a.weekStart}),O=hp(k,{locale:a.locale,weekStartsOn:+a.weekStart});return fp({start:U,end:O}).map(se=>D(se))};return e({triggerTransition:P}),(k,U)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(X.value)},[s.createElementVNode("div",{ref:"calendar-wrap",class:s.normalizeClass(F.value),role:"grid"},[s.createElementVNode("div",gO,[s.unref(p)?(s.openBlock(),s.createElementBlock("div",vO,s.toDisplayString(s.unref(p).label),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(x.value,(O,se)=>(s.openBlock(),s.createElementBlock("div",{key:se,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":s.unref(d)?.weekDay?.(se)},[s.renderSlot(k.$slots,"calendar-header",{day:O,index:se},()=>[s.createTextVNode(s.toDisplayString(O),1)])],8,wO))),128))]),U[2]||(U[2]=s.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),s.createVNode(s.Transition,{name:we.value,css:!!s.unref(l)},{default:s.withCtx(()=>[ge.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:U[1]||(U[1]=O=>me.value=!1)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(q.value,(O,se)=>(s.openBlock(),s.createElementBlock("div",{key:se,class:"dp__calendar_row",role:"row"},[s.unref(p)?(s.openBlock(),s.createElementBlock("div",BO,[s.createElementVNode("div",yO,s.toDisplayString(N(O.days)),1)])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(O.days,(j,be)=>(s.openBlock(),s.createElementBlock("div",{id:s.unref(C)(j.value),ref_for:!0,ref:Be=>G(Be,se,be),key:be+se,role:"gridcell",class:"dp__calendar_item","aria-selected":(j.classData.dp__active_date||j.classData.dp__range_start||j.classData.dp__range_end)??void 0,"aria-disabled":j.classData.dp__cell_disabled||void 0,"aria-label":s.unref(d)?.day?.(j),tabindex:!j.current&&s.unref(a).hideOffsetDates?void 0:0,"data-test-id":s.unref(C)(j.value),"data-dp-element-active":j.classData.dp__active_date?0:void 0,"data-dp-action-element":"0",onClick:s.withModifiers(Be=>R(Be,j),["prevent"]),onTouchend:Be=>R(Be,j,!1),onKeydown:Be=>s.unref(S)(Be,()=>k.$emit("select-date",j)),onMouseenter:Be=>le(j,se,be),onMouseleave:Be=>Ce(j),onMousedown:Be=>z(j),onMouseup:U[0]||(U[0]=Be=>me.value=!1)},[s.createElementVNode("div",{class:s.normalizeClass(["dp__cell_inner",j.classData])},[k.$slots.day&&re.value(j)?s.renderSlot(k.$slots,"day",{key:0,day:+j.text,date:j.value}):s.createCommentVNode("",!0),k.$slots.day?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(j.text),1)],64)),j.marker&&re.value(j)?s.renderSlot(k.$slots,"marker",{key:2,marker:j.marker,day:+j.text,date:j.value},()=>[s.createElementVNode("div",{class:s.normalizeClass(W.value(j.marker)),style:s.normalizeStyle(j.marker.color?{backgroundColor:j.marker.color}:{})},null,6)]):s.createCommentVNode("",!0),ne.value(j.value)?(s.openBlock(),s.createElementBlock("div",{key:3,ref_for:!0,ref:"active-tooltip",class:"dp__marker_tooltip",style:s.normalizeStyle(te.value)},[j.marker?.tooltip?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:J},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.marker.tooltip,(Be,ae)=>(s.openBlock(),s.createElementBlock("div",{key:ae,class:"dp__tooltip_text"},[s.renderSlot(k.$slots,"marker-tooltip",{tooltip:Be,day:j.value},()=>[s.createElementVNode("div",{class:"dp__tooltip_mark",style:s.normalizeStyle(Be.color?{backgroundColor:Be.color}:{})},null,4),s.createElementVNode("div",null,s.toDisplayString(Be.text),1)])]))),128)),s.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:s.normalizeStyle(V.value)},null,4)])):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)],2)],40,CO))),128))]))),128))],32)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),EO=(t,e,n,r)=>{const A=s.ref([]),i=s.ref(new Date),o=s.ref(),{getDate:a,rootEmit:l,calendars:u,month:d,year:h,time:p,modelValue:m,rootProps:v,today:B,state:y,defaults:{multiCalendars:w,startTime:C,range:S,config:Q,safeDates:_,multiDates:D,timeConfig:I,flow:$}}=pt(),{validateMonthYearInRange:Y,isDisabled:de,isDateRangeAllowed:ge,checkMinMaxRange:me}=Zr(),{updateTimeValues:we,getSetDateTime:te,assignTime:V,assignStartTime:q,validateTime:x,disabledTimesConfig:T}=R0(r),{formatDay:P}=io(),{resetDateTime:F,setTime:E,isDateBefore:W,isDateEqual:ne,getDaysInBetween:X}=jn(),{checkRangeAutoApply:re,getRangeWithFixedDate:ie,handleMultiDatesSelect:pe,setPresetDate:le}=fu(),{getMapDate:Ce}=Sn();ml(()=>z(y.isTextInputDate));const G=ve=>!Q.value.keepViewOnOffsetClick||ve?!0:!o.value,ee=(ve,Ie,We,At=!1)=>{G(At)&&(u.value[ve]??=u.value[ve]={month:0,year:0},u.value[ve].month=Ie??u.value[ve]?.month,u.value[ve].year=We??u.value[ve]?.year)},K=()=>{v.autoApply&&e("select-date")},N=()=>{C.value&&q(C.value)};s.onMounted(()=>{m.value||(Pe(),N()),z(!0),v.focusStartDate&&v.startDate&&Pe()});const R=s.computed(()=>$.value?.steps?.length&&!$.value?.partial?t.flowStep===$.value.steps.length:!0),J=()=>{v.autoApply&&R.value&&e("auto-apply",$.value?.partial?t.flowStep!==$.value?.steps?.length:!1)},z=(ve=!1)=>{if(m.value)return Array.isArray(m.value)?(A.value=m.value,Be(ve)):O(m.value,ve);if(w.value.count&&ve&&!v.startDate)return U(a(),ve)},ce=()=>Array.isArray(m.value)&&S.value.enabled?gt(m.value[0])===gt(m.value[1]??m.value[0]):!1,k=ve=>{const Ie=bA(ve,1);return{month:gt(Ie),year:tt(Ie)}},U=(ve=a(),Ie=!1)=>{if((!w.value.count||!w.value.static||Ie)&&ee(0,gt(ve),tt(ve)),w.value.count&&(!m.value||ce()||!w.value.solo)&&(!w.value.solo||Ie))for(let We=1;We<w.value.count;We++){const At=ft(a(),{month:d.value(We-1),year:h.value(We-1)}),bt=XB(At,{months:1});u.value[We]={month:gt(bt),year:tt(bt)}}},O=(ve,Ie)=>{U(ve),V("hours",qA(ve)),V("minutes",Ci(ve)),V("seconds",Ao(ve)),w.value.count&&Ie&&xe()},se=ve=>{if(w.value.count){if(w.value.solo)return 0;const Ie=gt(ve[0]),We=gt(ve[1]);return Math.abs(We-Ie)<w.value.count?0:1}return 1},j=(ve,Ie)=>{ve[1]&&S.value.showLastInRange?U(ve[se(ve)],Ie):U(ve[0],Ie);const We=(At,bt)=>[At(ve[0]),ve?.[1]?At(ve[1]):p[bt][1]];V("hours",We(qA,"hours")),V("minutes",We(Ci,"minutes")),V("seconds",We(Ao,"seconds"))},be=(ve,Ie)=>{if((S.value.enabled||v.weekPicker)&&!D.value.enabled)return j(ve,Ie);if(D.value.enabled&&Ie){const We=ve[ve.length-1];return O(We,Ie)}},Be=ve=>{const Ie=m.value;be(Ie,ve),w.value.count&&w.value.solo&&xe()},ae=(ve,Ie)=>{const We=ft(a(),{month:d.value(Ie),year:h.value(Ie)}),At=ve<0?bA(We,1):ea(We,1);Y(gt(At),tt(At),ve<0,v.preventMinMaxNavigation)&&(ee(Ie,gt(At),tt(At)),l("update-month-year",{instance:Ie,month:gt(At),year:tt(At)}),w.value.count&&!w.value.solo&&he(Ie),n())},he=ve=>{for(let Ie=ve-1;Ie>=0;Ie--){const We=ea(ft(a(),{month:d.value(Ie+1),year:h.value(Ie+1)}),1);ee(Ie,gt(We),tt(We))}for(let Ie=ve+1;Ie<=w.value.count-1;Ie++){const We=bA(ft(a(),{month:d.value(Ie-1),year:h.value(Ie-1)}),1);ee(Ie,gt(We),tt(We))}},xe=()=>{if(Array.isArray(m.value)&&m.value.length===2){const ve=a(a(m.value[1]??bA(m.value[0],1))),[Ie,We]=[gt(m.value[0]),tt(m.value[0])],[At,bt]=[gt(m.value[1]),tt(m.value[1])];(Ie!==At||Ie===At&&We!==bt)&&w.value.solo&&ee(1,gt(ve),tt(ve))}else m.value&&!Array.isArray(m.value)&&(ee(0,gt(m.value),tt(m.value)),U(a()))},Pe=()=>{v.startDate&&(ee(0,gt(a(v.startDate)),tt(a(v.startDate))),w.value.count&&he(0))},ot=(ve,Ie)=>{if(Q.value.monthChangeOnScroll){const We=Date.now()-i.value.getTime(),At=Math.abs(ve.deltaY);let bt=500;At>1&&(bt=100),At>100&&(bt=0),We>bt&&(i.value=new Date,ae(Q.value.monthChangeOnScroll==="inverse"?ve.deltaY:-ve.deltaY,Ie))}},$e=(ve,Ie,We=!1)=>{Q.value.monthChangeOnArrows&&v.vertical===We&&ht(ve,Ie)},ht=(ve,Ie)=>{ae(ve==="right"?-1:1,Ie)},wt=ve=>{if(_.value.markers)return Ce(ve.value,_.value.markers)},Et=(ve,Ie)=>{switch(v.sixWeeks===!0?"append":v.sixWeeks){case"prepend":return[!0,!1];case"center":return[ve==0,!0];case"fair":return[ve==0||Ie>ve,!0];case"append":return[!1,!1];default:return[!1,!1]}},En=(ve,Ie,We,At)=>{if(v.sixWeeks&&ve.length<6){const bt=6-ve.length,Pr=(Ie.getDay()+7-At)%7,uA=6-(We.getDay()+7-At)%7,[gi,Ki]=Et(Pr,uA);for(let zi=1;zi<=bt;zi++)if(Ki?!!(zi%2)==gi:gi){const Re=ve[0].days[0],oe=Yt(Xr(Re.value,-7),gt(Ie));ve.unshift({days:oe})}else{const Re=ve[ve.length-1],oe=Re.days[Re.days.length-1],Te=Yt(Xr(oe.value,1),gt(Ie));ve.push({days:Te})}}return ve},Yt=(ve,Ie)=>{const We=a(ve),At=[];for(let bt=0;bt<7;bt++){const Pr=Xr(We,bt),uA=gt(Pr)!==Ie;At.push({text:v.hideOffsetDates&&uA?"":P(Pr),value:Pr,current:!uA,classData:{}})}return At},Kt=(ve,Ie)=>{const We=[],At=a(new Date(Ie,ve)),bt=a(new Date(Ie,ve+1,0)),Pr=v.weekStart,uA=Jr(At,{weekStartsOn:Pr}),gi=Ki=>{const zi=Yt(Ki,ve);if(We.push({days:zi}),!We[We.length-1].days.some(Re=>ne(a(Re.value),F(bt)))){const Re=Xr(Ki,7);gi(Re)}};return gi(uA),En(We,At,bt,Pr)},OA=ve=>{const Ie=E({hours:p.hours,minutes:p.minutes,seconds:Ho()},a(ve.value));l("date-click",Ie),D.value.enabled?pe(Ie,D.value.limit):m.value=Ie,r(),s.nextTick().then(()=>{J()})},pi=ve=>S.value.noDisabledRange?X(A.value[0],ve).some(Ie=>de(Ie)):!1,ze=()=>{A.value=m.value?m.value.slice().filter(ve=>!!ve):[],A.value.length===2&&!(S.value.fixedStart||S.value.fixedEnd)&&(A.value=[])},gn=(ve,Ie)=>{const We=[a(ve.value),Xr(a(ve.value),+S.value.autoRange)];ge(We)?(Ie&&Tn(ve.value),A.value=We):l("invalid-date",ve.value)},Tn=ve=>{const Ie=gt(a(ve)),We=tt(a(ve));if(ee(0,Ie,We),w.value.count>0)for(let At=1;At<w.value.count;At++){const bt=k(ft(a(ve),{year:h.value(At-1),month:d.value(At-1)}));ee(At,bt.month,bt.year)}},mi=ve=>{if(pi(ve.value)||!me(ve.value,m.value,S.value.fixedStart?0:1))return l("invalid-date",ve.value);A.value=ie(a(ve.value))},wr=(ve,Ie)=>{if(ze(),S.value.autoRange)return gn(ve,Ie);if(S.value.fixedStart||S.value.fixedEnd)return mi(ve);A.value[0]?me(a(ve.value),m.value)&&!pi(ve.value)?W(a(ve.value),a(A.value[0]))?S.value.autoSwitchStartEnd?(A.value.unshift(a(ve.value)),l("range-end",A.value[0])):(A.value[0]=a(ve.value),l("range-start",A.value[0])):(A.value[1]=a(ve.value),l("range-end",A.value[1])):l("invalid-date",ve.value):(A.value[0]=a(ve.value),l("range-start",A.value[0]))},Ho=(ve=!0)=>I.value.enableSeconds?Array.isArray(p.seconds)?ve?p.seconds[0]:p.seconds[1]:p.seconds:0,Us=ve=>{A.value[ve]=E({hours:p.hours[ve],minutes:p.minutes[ve],seconds:Ho(ve!==1)},A.value[ve])},nn=()=>{A.value[0]&&A.value[1]&&+A.value?.[0]>+A.value?.[1]&&(A.value.reverse(),l("range-start",A.value[0]),l("range-end",A.value[1]))},NA=()=>{A.value.length&&(A.value[0]&&!A.value[1]?Us(0):(Us(0),Us(1),r()),nn(),m.value=A.value.slice(),re(A.value,e,A.value.length<2||$.value?.steps.length?t.flowStep!==$.value?.steps?.length:!1))},Fc=(ve,Ie=!1)=>{if(de(ve.value)||!ve.current&&v.hideOffsetDates)return l("invalid-date",ve.value);if(o.value=structuredClone(ve),!S.value.enabled)return OA(ve);Array.isArray(p.hours)&&Array.isArray(p.minutes)&&!D.value.enabled&&(wr(ve,Ie),NA())},Ra=(ve,Ie)=>{ee(ve,Ie.month,Ie.year,!0),w.value.count&&!w.value.solo&&he(ve),l("update-month-year",{instance:ve,month:Ie.month,year:Ie.year}),n(w.value.solo?ve:void 0);const We=$.value?.steps?.length?$.value.steps[t.flowStep]:void 0;!Ie.fromNav&&(We===fr.month||We===fr.year)&&r()},_s=ve=>{le({value:ve}),K(),v.multiCalendars&&s.nextTick().then(()=>z(!0))},Po=()=>{let ve=a();return v.actionRow?.nowBtnRound&&(ve=E_(ve,{roundingMethod:v.actionRow.nowBtnRound.rounding??"ceil",nearestTo:v.actionRow.nowBtnRound.roundTo??15})),ve},Ha=()=>{const ve=Po();!S.value.enabled&&!D.value.enabled?m.value=ve:m.value&&Array.isArray(m.value)&&m.value[0]?D.value.enabled?m.value=[...m.value,ve]:m.value=W(ve,m.value[0])?[ve,m.value[0]]:[m.value[0],ve]:m.value=[ve],K()},Ds=()=>{if(Array.isArray(m.value))if(D.value.enabled){const ve=Fr();m.value[m.value.length-1]=te(ve)}else m.value=m.value.map((ve,Ie)=>ve&&te(ve,Ie));else m.value=te(m.value);e("time-update")},Fr=()=>Array.isArray(m.value)&&m.value.length?m.value[m.value.length-1]:null,LA=ve=>{let Ie="";if(S.value.enabled&&Array.isArray(m.value))for(const We of Object.keys(ve)){const At=ve[We];Array.isArray(At)&&(p[We][0]!==At[0]&&(Ie="range-start"),p[We][1]!==At[1]&&(Ie="range-start"))}return Ie};return{calendars:u,modelValue:m,month:d,year:h,time:p,disabledTimesConfig:T,today:B,validateTime:x,getCalendarDays:Kt,getMarker:wt,handleScroll:ot,handleSwipe:ht,handleArrow:$e,selectDate:Fc,updateMonthYear:Ra,presetDate:_s,selectCurrentDate:Ha,updateTime:ve=>{const Ie=LA(ve);we(ve,Ds),Ie&&l(Ie,m.value[Ie==="range-start"?0:1])},assignMonthAndYear:U,setStartTime:N}},kO=()=>{const{isModelAuto:t,matchDate:e,isDateAfter:n,isDateBefore:r,isDateBetween:A,isDateEqual:i,getWeekFromDate:o,getBeforeAndAfterInRange:a}=jn(),{getDate:l,today:u,rootProps:d,defaults:{multiCalendars:h,multiDates:p,ui:m,highlight:v,safeDates:B,range:y},modelValue:w}=pt(),{isDisabled:C}=Zr(),S=s.ref(null),Q=k=>{!k.current&&d.hideOffsetDates||(S.value=k.value)},_=()=>{S.value=null},D=k=>Array.isArray(w.value)&&y.value.enabled&&w.value[0]&&S.value?k?n(S.value,w.value[0]):r(S.value,w.value[0]):!0,I=(k,U)=>{const O=()=>w.value?U?w.value[0]||null:w.value[1]:null,se=w.value&&Array.isArray(w.value)?O():null;return i(l(k.value),se)},$=k=>{const U=Array.isArray(w.value)?w.value[0]:null;return k?!r(S.value,U):!0},Y=(k,U=!0)=>(y.value.enabled||d.weekPicker)&&Array.isArray(w.value)&&w.value.length===2?d.hideOffsetDates&&!k.current?!1:i(l(k.value),w.value[U?0:1]):y.value.enabled?I(k,U)&&$(U)||i(k.value,Array.isArray(w.value)?w.value[0]:null)&&D(U):!1,de=(k,U)=>{if(Array.isArray(w.value)&&w.value[0]&&w.value.length===1){const O=i(k.value,S.value);return U?n(w.value[0],k.value)&&O:r(w.value[0],k.value)&&O}return!1},ge=k=>!w.value||d.hideOffsetDates&&!k.current?!1:y.value.enabled?d.modelAuto&&Array.isArray(w.value)?i(k.value,w.value[0]??u):!1:p.value.enabled&&Array.isArray(w.value)?w.value.some(U=>i(U,k.value)):i(k.value,w.value?w.value:u),me=k=>{if(y.value.autoRange||d.weekPicker){if(S.value){if(d.hideOffsetDates&&!k.current)return!1;const U=Xr(S.value,+y.value.autoRange),O=o(l(S.value),d.weekStart);return d.weekPicker?i(O[1],l(k.value)):i(U,l(k.value))}return!1}return!1},we=k=>{if(y.value.autoRange||d.weekPicker){if(S.value){const U=Xr(S.value,+y.value.autoRange);if(d.hideOffsetDates&&!k.current)return!1;const O=o(l(S.value),d.weekStart);return d.weekPicker?n(k.value,O[0])&&r(k.value,O[1]):n(k.value,S.value)&&r(k.value,U)}return!1}return!1},te=k=>{if(y.value.autoRange||d.weekPicker){if(S.value){if(d.hideOffsetDates&&!k.current)return!1;const U=o(l(S.value),d.weekStart);return d.weekPicker?i(U[0],k.value):i(S.value,k.value)}return!1}return!1},V=k=>A(w.value,S.value,k.value),q=()=>d.modelAuto&&Array.isArray(w.value)?!!w.value[0]:!1,x=()=>d.modelAuto?t(w.value):!0,T=k=>{if(d.weekPicker)return!1;const U=y.value.enabled?!Y(k)&&!Y(k,!1):!0;return!C(k.value)&&!ge(k)&&!(!k.current&&d.hideOffsetDates)&&U},P=k=>y.value.enabled?d.modelAuto?q()&&ge(k):!1:ge(k),F=k=>v.value?e(k.value,B.value.highlight):!1,E=k=>{const U=C(k.value);return U&&(typeof v.value=="function"?!v.value(k.value,U):!v.value.options.highlightDisabled)},W=k=>typeof v.value=="function"?v.value(k.value):v.value.weekdays?.includes(k.value.getDay()),ne=k=>(y.value.enabled||d.weekPicker)&&(!(h.value.count>0)||k.current)&&x()&&!(!k.current&&d.hideOffsetDates)&&!ge(k)?V(k):!1,X=k=>{if(Array.isArray(w.value)&&w.value.length===1){const{before:U,after:O}=a(+y.value.maxRange,w.value[0]);return bi(k.value,U)||XA(k.value,O)}return!1},re=k=>{if(Array.isArray(w.value)&&w.value.length===1){const{before:U,after:O}=a(+y.value.minRange,w.value[0]);return A([U,O],w.value[0],k.value)}return!1},ie=k=>y.value.enabled&&(y.value.maxRange||y.value.minRange)?y.value.maxRange&&y.value.minRange?X(k)||re(k):y.value.maxRange?X(k):re(k):!1,pe=k=>{const{isRangeStart:U,isRangeEnd:O}=ee(k),se=y.value.enabled?U||O:!1;return{dp__cell_offset:!k.current,dp__pointer:!d.disabled&&!(!k.current&&d.hideOffsetDates)&&!C(k.value)&&!ie(k),dp__cell_disabled:C(k.value)||ie(k),dp__cell_highlight:!E(k)&&(F(k)||W(k))&&!P(k)&&!se&&!te(k)&&!(ne(k)&&d.weekPicker)&&!O,dp__cell_highlight_active:!E(k)&&(F(k)||W(k))&&P(k),dp__today:!d.noToday&&i(k.value,u)&&k.current,"dp--past":r(k.value,u),"dp--future":n(k.value,u)}},le=k=>({dp__active_date:P(k),dp__date_hover:T(k)}),Ce=k=>{if(w.value&&!Array.isArray(w.value)){const U=o(w.value,d.weekStart);return{...z(k),dp__range_start:i(U[0],k.value),dp__range_end:i(U[1],k.value),dp__range_between_week:n(k.value,U[0])&&r(k.value,U[1])}}return{...z(k)}},G=k=>{if(w.value&&Array.isArray(w.value)){const U=o(w.value[0],d.weekStart),O=w.value[1]?o(w.value[1],d.weekStart):[];return{...z(k),dp__range_start:i(U[0],k.value)||i(O[0],k.value),dp__range_end:i(U[1],k.value)||i(O[1],k.value),dp__range_between_week:n(k.value,U[0])&&r(k.value,U[1])||n(k.value,O[0])&&r(k.value,O[1]),dp__range_between:n(k.value,U[1])&&r(k.value,O[0])}}return{...z(k)}},ee=k=>{const U=h.value.count>0?k.current&&Y(k)&&x():Y(k)&&x(),O=h.value.count>0?k.current&&Y(k,!1)&&x():Y(k,!1)&&x();return{isRangeStart:U,isRangeEnd:O}},K=k=>y.value.enabled&&(y.value.fixedStart||y.value.fixedEnd)&&Array.isArray(w.value)&&w.value.length===2,N=(k,U,O,se)=>!K(w.value)||!S.value?!1:U?y.value.fixedEnd&&i(k.value,S.value)&&bi(k.value,w.value[0])&&!O:y.value.fixedStart&&i(k.value,S.value)&&XA(k.value,w.value[1])&&!se,R=(k,U)=>!K(w.value)||!S.value?!1:U?y.value.fixedEnd&&XA(k.value,S.value)&&bi(k.value,w.value[0]):y.value.fixedStart&&bi(k.value,S.value)&&XA(k.value,w.value[1]),J=k=>{const{isRangeStart:U,isRangeEnd:O}=ee(k);return{dp__range_start:U,dp__range_end:O,dp__range_between:ne(k),dp__date_hover:i(k.value,S.value)&&!U&&!O&&!d.weekPicker,dp__date_hover_start:de(k,!0)||N(k,!0,U,O),dp__date_hover_end:de(k,!1)||N(k,!1,U,O),"dp--extended-fixed-start":R(k,!0),"dp--extended-fixed-end":R(k,!1)}},z=k=>({...J(k),dp__cell_auto_range:we(k),dp__cell_auto_range_start:te(k),dp__cell_auto_range_end:me(k)}),ce=k=>y.value.enabled?y.value.autoRange?z(k):d.modelAuto?{...le(k),...J(k)}:d.weekPicker?G(k):J(k):d.weekPicker?Ce(k):le(k);return{setHoverDate:Q,clearHoverDate:_,getDayClassData:k=>d.hideOffsetDates&&!k.current?{}:{...pe(k),...ce(k),[m.value.dayClass?m.value.dayClass(k.value,w.value):""]:!0,...m.value.calendarCell}}},SO={key:0},xO=s.defineComponent({__name:"DatePicker",props:s.mergeDefaults({flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},ED),emits:["mount","update-flow-step","reset-flow","focus-menu","select-date","time-update","auto-apply"],setup(t,{expose:e,emit:n}){const r=n,A=t,{month:i,year:o,modelValue:a,time:l,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:p,getMarker:m,handleArrow:v,handleScroll:B,handleSwipe:y,selectDate:w,updateMonthYear:C,presetDate:S,selectCurrentDate:Q,updateTime:_,assignMonthAndYear:D,setStartTime:I}=EO(A,r,le,Ce),$=s.useSlots(),{setHoverDate:Y,getDayClassData:de,clearHoverDate:ge}=kO(),{getDate:me,rootEmit:we,rootProps:te,defaults:{multiCalendars:V,timeConfig:q}}=pt(),{getYears:x,getMonths:T}=cu(),{getCellId:P}=jn(),F=s.useTemplateRef("calendar-header"),E=s.useTemplateRef("calendar"),W=s.useTemplateRef("time-picker"),ne=VA($,xA.Calendar),X=VA($,xA.DatePickerHeader),re=VA($,xA.TimePicker),ie=ce=>{r("mount",ce)};s.watch(V,(ce,k)=>{ce.count-k.count>0&&D()},{deep:!0});const pe=s.computed(()=>ce=>p(i.value(ce),o.value(ce)).map(k=>({...k,days:k.days.map(U=>(U.marker=m(U),U.classData=de(U),U))})));function le(ce){ce||ce===0?E.value?.[ce]?.triggerTransition(i.value(ce),o.value(ce)):E.value?.forEach((k,U)=>k?.triggerTransition(i.value(U),o.value(U)))}function Ce(){r("update-flow-step")}const G=(ce,k,U=0)=>{F.value?.[U]?.toggleMonthPicker(ce,k)},ee=(ce,k,U=0)=>{F.value?.[U]?.toggleYearPicker(ce,k)},K=(ce,k,U)=>{W.value?.toggleTimePicker(ce,k,U)},N=(ce,k)=>{if(!te.range){const U=a.value?a.value:d,O=k?me(k):U,se=ce?Jr(O,{weekStartsOn:1}):hp(O,{weekStartsOn:1});w({value:se,current:gt(O)===i.value(0),text:"",classData:{}}),document.getElementById(P(se))?.focus()}},R=ce=>{F.value?.[0]?.handleMonthYearChange(ce,!0)},J=ce=>{C(0,{month:i.value(0),year:o.value(0)+(ce?1:-1),fromNav:!0})},z=ce=>{we("overlay-toggle",{open:!1,overlay:ce}),r("focus-menu")};return e({clearHoverDate:ge,presetDate:S,selectCurrentDate:Q,handleArrow:v,updateMonthYear:C,setStartTime:I,toggleMonthPicker:G,toggleYearPicker:ee,toggleTimePicker:K,getSidebarProps:()=>({modelValue:a,month:i,year:o,time:l,updateTime:_,updateMonthYear:C,selectDate:w,presetDate:S}),changeMonth:R,changeYear:J,selectWeekDate:N}),(ce,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(du,{collapse:t.collapse},{default:s.withCtx(({instances:U,wrapClass:O})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(U,se=>(s.openBlock(),s.createElementBlock("div",{key:se,class:s.normalizeClass(O)},[s.unref(te).hideMonthYearSelect?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(mO,{key:0,ref_for:!0,ref:"calendar-header",months:s.unref(T)(),years:s.unref(x)(),month:s.unref(i)(se),year:s.unref(o)(se),instance:se,"menu-wrap-ref":t.menuWrapRef,onMount:k[0]||(k[0]=j=>ie(s.unref(is).header)),onResetFlow:k[1]||(k[1]=j=>ce.$emit("reset-flow")),onUpdateMonthYear:j=>s.unref(C)(se,j),onOverlayClosed:z},s.createSlots({_:2},[s.renderList(s.unref(X),(j,be)=>({name:j,fn:s.withCtx(Be=>[s.renderSlot(ce.$slots,j,s.mergeProps({ref_for:!0},Be))])}))]),1032,["months","years","month","year","instance","menu-wrap-ref","onUpdateMonthYear"])),s.createVNode(bO,{ref_for:!0,ref:"calendar","mapped-dates":pe.value(se),instance:se,month:s.unref(i)(se),year:s.unref(o)(se),onSelectDate:j=>s.unref(w)(j,se!==1),onSetHoverDate:k[2]||(k[2]=j=>s.unref(Y)(j)),onHandleScroll:j=>s.unref(B)(j,se),onHandleSwipe:j=>s.unref(y)(j,se),onMount:k[3]||(k[3]=j=>ie(s.unref(is).calendar))},s.createSlots({_:2},[s.renderList(s.unref(ne),(j,be)=>({name:j,fn:s.withCtx(Be=>[s.renderSlot(ce.$slots,j,s.mergeProps({ref_for:!0},Be))])}))]),1032,["mapped-dates","instance","month","year","onSelectDate","onHandleScroll","onHandleSwipe"])],2))),128))]),_:3},8,["collapse"]),s.unref(q).enableTimePicker?(s.openBlock(),s.createElementBlock("div",SO,[s.renderSlot(ce.$slots,"time-picker",s.normalizeProps(s.guardReactiveProps({time:s.unref(l),updateTime:s.unref(_)})),()=>[s.createVNode(L0,{ref:"time-picker",hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"no-overlay-focus":t.noOverlayFocus,onMount:k[4]||(k[4]=U=>ie(s.unref(is).timePicker)),"onUpdate:hours":k[5]||(k[5]=U=>s.unref(_)({hours:U,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds})),"onUpdate:minutes":k[6]||(k[6]=U=>s.unref(_)({hours:s.unref(l).hours,minutes:U,seconds:s.unref(l).seconds})),"onUpdate:seconds":k[7]||(k[7]=U=>s.unref(_)({hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:U})),onResetFlow:k[8]||(k[8]=U=>ce.$emit("reset-flow"))},s.createSlots({_:2},[s.renderList(s.unref(re),(U,O)=>({name:U,fn:s.withCtx(se=>[s.renderSlot(ce.$slots,U,s.normalizeProps(s.guardReactiveProps(se)))])}))]),1032,["hours","minutes","seconds","disabled-times-config","validate-time","no-overlay-focus"])])])):s.createCommentVNode("",!0)],64))}}),FO=(t,e)=>{const{getDate:n,modelValue:r,year:A,calendars:i,defaults:{highlight:o,range:a,multiDates:l}}=pt(),{isDateBetween:u,isDateEqual:d}=jn(),{checkRangeAutoApply:h,handleMultiDatesSelect:p,setMonthOrYearRange:m}=fu();ml();const{isDisabled:v}=Zr(),{formatQuarterText:B}=io(),{selectYear:y,groupedYears:w,showYearPicker:C,isDisabled:S,toggleYearPicker:Q,handleYearSelect:_,handleYear:D,setStartDate:I}=N0(e),$=s.ref();s.onMounted(()=>{I()});const Y=s.computed(()=>x=>r.value?Array.isArray(r.value)?r.value.some(T=>m0(x,T)):m0(r.value,x):!1),de=x=>{if(a.value.enabled){if(Array.isArray(r.value)){const T=d(x,r.value[0])||d(x,r.value[1]);return u(r.value,$.value,x)&&!T}return!1}return!1},ge=(x,T)=>x.quarter===t0(T)&&x.year===tt(T),me=x=>typeof o.value=="function"?o.value({quarter:t0(x),year:tt(x)}):o.value.quarters.some(T=>ge(T,x)),we=s.computed(()=>x=>{const T=ft(n(),{year:A.value(x)});return DI({start:js(T),end:r0(T)}).map(P=>{const F=ns(P),E=A0(P),W=v(P),ne=de(F),X=me(F);return{text:B(F,E),value:F,active:Y.value(F),highlighted:X,disabled:W,isBetween:ne}})}),te=x=>{p(x,l.value.limit),e("auto-apply",!0)},V=x=>{r.value=m(x),h(r.value,e,r.value.length<2)},q=x=>{r.value=x,e("auto-apply")};return{groupedYears:w,year:A,isDisabled:S,quarters:we,showYearPicker:C,modelValue:r,selectYear:y,toggleYearPicker:Q,handleYearSelect:_,handleYear:D,setHoverDate:x=>{$.value=x},selectQuarter:(x,T,P)=>{if(!P)return i.value[T].month=gt(A0(x)),l.value.enabled?te(x):a.value.enabled?V(x):q(x)}}},QO={class:"dp--quarter-items"},TO=["data-test-id","disabled","onClick","onMouseover"],MO=s.defineComponent({__name:"QuarterPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(t,{expose:e,emit:n}){const r=n,A=t,{defaults:{config:i}}=pt(),o=s.useSlots(),{boolHtmlAttribute:a}=ra(),l=VA(o,xA.YearMode),{groupedYears:u,year:d,isDisabled:h,quarters:p,modelValue:m,showYearPicker:v,setHoverDate:B,selectQuarter:y,toggleYearPicker:w,handleYearSelect:C,handleYear:S}=FO(A,r);return e({getSidebarProps:()=>({modelValue:m,year:d,selectQuarter:y,handleYearSelect:C,handleYear:S})}),(Q,_)=>(s.openBlock(),s.createBlock(du,{collapse:t.collapse,stretch:""},{default:s.withCtx(({instances:D,wrapClass:I})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D,$=>(s.openBlock(),s.createElementBlock("div",{key:$,class:s.normalizeClass(I)},[s.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:s.normalizeStyle({minHeight:`${s.unref(i).modeHeight}px`})},[Q.$slots["top-extra"]?s.renderSlot(Q.$slots,"top-extra",{key:0,value:s.unref(m)}):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createVNode(O0,{items:s.unref(u)($),instance:$,"show-year-picker":s.unref(v)[$],year:s.unref(d)($),"is-disabled":Y=>s.unref(h)($,Y),onHandleYear:Y=>s.unref(S)($,Y),onYearSelect:Y=>s.unref(C)(Y,$),onToggleYearPicker:Y=>s.unref(w)($,Y?.flow,Y?.show)},s.createSlots({_:2},[s.renderList(s.unref(l),(Y,de)=>({name:Y,fn:s.withCtx(ge=>[s.renderSlot(Q.$slots,Y,s.mergeProps({ref_for:!0},ge))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),s.createElementVNode("div",QO,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(p)($),(Y,de)=>(s.openBlock(),s.createElementBlock("div",{key:de},[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":Y.active,"dp--qr-btn-between":Y.isBetween,"dp--qr-btn-disabled":Y.disabled,"dp--highlighted":Y.highlighted}]),"data-dp-action-element":"0","data-test-id":Y.value,disabled:s.unref(a)(Y.disabled),onClick:ge=>s.unref(y)(Y.value,$,Y.disabled),onMouseover:ge=>s.unref(B)(Y.value)},[s.renderSlot(Q.$slots,"quarter",{value:Y.value,text:Y.text},()=>[s.createTextVNode(s.toDisplayString(Y.text),1)])],42,TO)]))),128))])],4)],2))),128))]),_:3},8,["collapse"]))}}),IO=["id","tabindex","role","aria-label"],UO={key:0,class:"dp--menu-load-container"},_O={key:1,class:"dp--menu-header"},DO=["data-dp-mobile"],OO={key:0,class:"dp__sidebar_left"},NO=["data-dp-mobile"],LO=["data-test-id","data-dp-mobile","onClick","onKeydown"],RO={class:"dp__instance_calendar"},HO={key:2,class:"dp__sidebar_right"},PO={key:2,class:"dp__action_extra"},$O=s.defineComponent({__name:"DatepickerMenu",props:{collapse:{type:Boolean},noOverlayFocus:{type:Boolean},getInputRect:{type:Function}},emits:["close-picker","select-date","auto-apply","time-update","menu-blur"],setup(t,{expose:e,emit:n}){const r=n,A=s.useSlots(),{state:i,rootProps:o,defaults:{textInput:a,inline:l,config:u,ui:d,ariaLabels:h},setState:p}=pt(),{isMobile:m}=lu(),{handleEventPropagation:v,getElWithin:B,checkStopPropagation:y,checkKeyDown:w}=Sn();D_();const C=s.useTemplateRef("inner-menu"),S=s.useTemplateRef("dp-menu"),Q=s.useTemplateRef("dyn-cmp"),_=s.ref(0),D=s.ref(!1),I=s.ref(!1),{flowStep:$,updateFlowStep:Y,childMount:de,resetFlow:ge,handleFlow:me}=N_(Q),we=z=>{I.value=!0,u.value.allowPreventDefault&&z.preventDefault(),y(z,u.value,!0)};s.onMounted(()=>{D.value=!0,te(),globalThis.addEventListener("resize",te);const z=_r(S);z&&!a.value.enabled&&!l.value.enabled&&p("menuFocused",!0),z&&(z.addEventListener("pointerdown",we),z.addEventListener("mousedown",we)),document.addEventListener("mousedown",J)}),s.onUnmounted(()=>{globalThis.removeEventListener("resize",te),document.removeEventListener("mousedown",J);const z=_r(S);z&&(z.removeEventListener("pointerdown",we),z.removeEventListener("mousedown",we))});const te=()=>{const z=_r(C);z&&(_.value=z.getBoundingClientRect().width)},V=s.computed(()=>o.monthPicker?YD:o.yearPicker?XD:o.timePicker?lO:o.quarterPicker?MO:xO),q=()=>{const z=_r(S);z&&z.focus({preventScroll:!0})},x=s.computed(()=>Q.value?.getSidebarProps()||{}),T=VA(A,xA.ActionRow),P=VA(A,xA.PassTrough),F=s.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),E=s.computed(()=>({dp__menu:!0,dp__menu_index:!l.value.enabled,dp__relative:l.value.enabled,...d.value.menu})),W=z=>{y(z,u.value,!0)},ne=z=>{u.value.escClose&&(r("close-picker"),v(z,u.value))},X=z=>{o.arrowNavigation||(z===SA.left||z===SA.up?le("handleArrow",SA.left,0,z===SA.up):le("handleArrow",SA.right,0,z===SA.down))},re=z=>{p("shiftKeyInMenu",z.shiftKey),!o.hideMonthYearSelect&&z.code===Nt.tab&&z.target.classList.contains("dp__menu")&&i.shiftKeyInMenu&&(z.preventDefault(),y(z,u.value,!0),r("close-picker"))},ie=z=>{Q.value?.toggleTimePicker(!1,!1),Q.value?.toggleMonthPicker(!1,!1,z),Q.value?.toggleYearPicker(!1,!1,z)},pe=(z,ce=0)=>z==="month"?Q.value?.toggleMonthPicker(!1,!0,ce):z==="year"?Q.value?.toggleYearPicker(!1,!0,ce):z==="time"?Q.value?.toggleTimePicker(!0,!1):ie(ce),le=(z,...ce)=>{Q.value?.[z]&&Q.value?.[z](...ce)},Ce=()=>{le("selectCurrentDate")},G=z=>{le("presetDate",s.toValue(z))},ee=()=>{le("clearHoverDate")},K=(z,ce)=>{le("updateMonthYear",z,ce)},N=(z,ce)=>{z.preventDefault(),X(ce)},R=z=>{if(re(z),z.key===Nt.home||z.key===Nt.end)return le("selectWeekDate",z.key===Nt.home,z.target.getAttribute("id"));switch((z.key===Nt.pageUp||z.key===Nt.pageDown)&&(z.shiftKey?(le("changeYear",z.key===Nt.pageUp),B(S.value,"overlay-year")?.focus()):(le("changeMonth",z.key===Nt.pageUp),B(S.value,z.key===Nt.pageUp?"action-prev":"action-next")?.focus()),z.target.getAttribute("id")&&S.value?.focus({preventScroll:!0})),z.key){case Nt.esc:return ne(z);case Nt.arrowLeft:return N(z,SA.left);case Nt.arrowRight:return N(z,SA.right);case Nt.arrowUp:return N(z,SA.up);case Nt.arrowDown:return N(z,SA.down);default:return}},J=z=>{l.value.enabled&&!l.value.input&&!S.value?.contains(z.target)&&I.value&&(I.value=!1,r("menu-blur"))};return e({updateMonthYear:K,switchView:pe,onValueCleared:()=>{Q.value?.setStartTime?.()},handleFlow:me}),(z,ce)=>(s.openBlock(),s.createElementBlock("div",{id:s.unref(o).menuId,ref:"dp-menu",tabindex:s.unref(l).enabled?void 0:"0",role:s.unref(l).enabled?void 0:"dialog","aria-label":s.unref(h)?.menu,class:s.normalizeClass(E.value),onMouseleave:ee,onClick:W,onKeydown:R},[(s.unref(o).disabled||s.unref(o).readonly)&&s.unref(l).enabled||s.unref(o).loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(F.value)},[s.unref(o).loading?(s.openBlock(),s.createElementBlock("div",UO,[...ce[5]||(ce[5]=[s.createElementVNode("span",{class:"dp--menu-loader"},null,-1)])])):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),z.$slots["menu-header"]?(s.openBlock(),s.createElementBlock("div",_O,[s.renderSlot(z.$slots,"menu-header")])):s.createCommentVNode("",!0),s.renderSlot(z.$slots,"arrow"),s.createElementVNode("div",{ref:"inner-menu",class:s.normalizeClass({dp__menu_content_wrapper:s.unref(o).presetDates?.length||!!z.$slots["left-sidebar"]||!!z.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":t.collapse&&(s.unref(o).presetDates?.length||!!z.$slots["left-sidebar"]||!!z.$slots["right-sidebar"])}),"data-dp-mobile":s.unref(m),style:s.normalizeStyle({"--dp-menu-width":`${_.value}px`})},[z.$slots["left-sidebar"]?(s.openBlock(),s.createElementBlock("div",OO,[s.renderSlot(z.$slots,"left-sidebar",s.normalizeProps(s.guardReactiveProps(x.value)))])):s.createCommentVNode("",!0),s.unref(o).presetDates.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"dp--preset-dates-collapsed":t.collapse,"dp--preset-dates":!0}),"data-dp-mobile":s.unref(m)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).presetDates,(k,U)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:U},[k.slot?s.renderSlot(z.$slots,k.slot,{key:0,presetDate:G,label:k.label,value:k.value}):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",style:s.normalizeStyle(k.style||{}),class:s.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":t.collapse}]),"data-test-id":k.testId??void 0,"data-dp-mobile":s.unref(m),onClick:s.withModifiers(O=>G(k.value),["prevent"]),onKeydown:O=>s.unref(w)(O,()=>G(k.value),!0)},s.toDisplayString(k.label),47,LO))],64))),128))],10,NO)):s.createCommentVNode("",!0),s.createElementVNode("div",RO,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(V.value),{ref:"dyn-cmp","flow-step":s.unref($),collapse:t.collapse,"no-overlay-focus":t.noOverlayFocus,"menu-wrap-ref":S.value,onMount:s.unref(de),onUpdateFlowStep:s.unref(Y),onResetFlow:s.unref(ge),onFocusMenu:q,onSelectDate:ce[0]||(ce[0]=k=>z.$emit("select-date")),onAutoApply:ce[1]||(ce[1]=k=>z.$emit("auto-apply",k)),onTimeUpdate:ce[2]||(ce[2]=k=>z.$emit("time-update"))},s.createSlots({_:2},[s.renderList(s.unref(P),(k,U)=>({name:k,fn:s.withCtx(O=>[s.renderSlot(z.$slots,k,s.normalizeProps(s.guardReactiveProps({...O})))])}))]),1064,["flow-step","collapse","no-overlay-focus","menu-wrap-ref","onMount","onUpdateFlowStep","onResetFlow"]))]),z.$slots["right-sidebar"]?(s.openBlock(),s.createElementBlock("div",HO,[s.renderSlot(z.$slots,"right-sidebar",s.normalizeProps(s.guardReactiveProps(x.value)))])):s.createCommentVNode("",!0)],14,DO),z.$slots["action-extra"]?(s.openBlock(),s.createElementBlock("div",PO,[z.$slots["action-extra"]?s.renderSlot(z.$slots,"action-extra",{key:0,selectCurrentDate:Ce}):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),!s.unref(o).autoApply||s.unref(u).keepActionRow?(s.openBlock(),s.createBlock(LD,{key:3,"menu-mount":D.value,"calendar-width":_.value,onClosePicker:ce[3]||(ce[3]=k=>z.$emit("close-picker")),onSelectDate:ce[4]||(ce[4]=k=>z.$emit("select-date")),onSelectNow:Ce},s.createSlots({_:2},[s.renderList(s.unref(T),(k,U)=>({name:k,fn:s.withCtx(O=>[s.renderSlot(z.$slots,k,s.normalizeProps(s.guardReactiveProps(O)))])}))]),1032,["menu-mount","calendar-width"])):s.createCommentVNode("",!0)],42,IO))}}),KO=["data-dp-mobile"],zO=s.defineComponent({__name:"VueDatePicker",setup(t,{expose:e}){const{rootEmit:n,setState:r,inputValue:A,modelValue:i,rootProps:o,defaults:{inline:a,config:l,textInput:u,range:d,multiDates:h,teleport:p,floatingConfig:m}}=pt(),{validateDate:v,isValidTime:B}=Zr(),{menuTransition:y,showTransition:w}=pl(),{isMobile:C}=lu(),{findNextFocusableElement:S,getNumVal:Q}=Sn(),_=s.useSlots(),D=s.ref(!1),I=s.ref(a.value.enabled||o.centered),$=s.toRef(o,"modelValue"),Y=s.toRef(o,"timezone"),de=s.useTemplateRef("dp-menu-wrap"),ge=s.useTemplateRef("dp-menu"),me=s.useTemplateRef("input-cmp"),we=s.useTemplateRef("picker-wrapper"),te=s.useTemplateRef("menu-arrow"),V=s.ref(!1),q=s.ref(!1),x=s.ref(!1),T=s.ref(!0),P=ze=>(m.value.arrow&&ze.push(bI({element:m.value.arrow===!0?te:m.value.arrow})),m.value.flip&&ze.push(wI(typeof m.value.flip=="object"?m.value.flip:{})),m.value.shift&&ze.push(vI(typeof m.value.shift=="object"?m.value.shift:{})),ze),{floatingStyles:F,middlewareData:E,placement:W,y:ne}=EI(me,de,{strategy:m.value.strategy,placement:m.value.placement,middleware:P([gI(m.value.offset)]),whileElementsMounted:mI});s.onMounted(()=>{ie(o.modelValue),s.nextTick().then(()=>{a.value.enabled||globalThis.addEventListener("resize",J)}),a.value.enabled&&(D.value=!0),globalThis.addEventListener("keyup",z),globalThis.addEventListener("keydown",ce)}),s.onUnmounted(()=>{a.value.enabled||globalThis.removeEventListener("resize",J),globalThis.removeEventListener("keyup",z),globalThis.removeEventListener("keydown",ce)});const X=D0(_,o.presetDates),re=VA(_,xA.Input);s.watch([$,Y],()=>{ie($.value)},{deep:!0}),s.watch([W,ne],()=>{!a.value.enabled&&!o.centered&&T.value&&(I.value=!1,s.nextTick().then(()=>{T.value=!1,I.value=!0}))});const{parseExternalModelValue:ie,emitModelValue:pe,formatInputValue:le,checkBeforeEmit:Ce}=O_(),G=s.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:a.value.enabled,"dp--flex-display-collapsed":x.value,dp__flex_display_with_input:a.value.input})),ee=s.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),K=s.computed(()=>a.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),N=()=>me.value?.$el?.getBoundingClientRect()??{width:0,left:0,right:0},R=()=>{D.value&&l.value.closeOnScroll&&he()},J=()=>{const ze=ge.value?.$el.getBoundingClientRect().width??0;x.value=document.body.offsetWidth<=ze},z=ze=>{ze.key==="Tab"&&!a.value.enabled&&!o.teleport&&l.value.tabOutClosesMenu&&(we.value.contains(document.activeElement)||he()),q.value=ze.shiftKey},ce=ze=>{q.value=ze.shiftKey},k=()=>{!o.disabled&&!o.readonly&&(T.value=!0,D.value=!0,D.value&&n("open"),D.value||ae(),ie(o.modelValue))},U=()=>{A.value="",ae(),ge.value?.onValueCleared(),me.value?.setParsedDate(null),n("update:model-value",null),n("cleared"),l.value.closeOnClearValue&&he()},O=()=>{const ze=i.value;return!ze||!Array.isArray(ze)&&v(ze)?!0:Array.isArray(ze)?h.value.enabled||ze.length===2&&v(ze[0])&&v(ze[1])?!0:d.value.partialRange&&!o.timePicker?v(ze[0]):!1:!1},se=()=>{Ce()&&O()?(pe(),he()):n("invalid-select")},j=ze=>{be(),pe(),l.value.closeOnAutoApply&&!ze&&he()},be=()=>{me.value&&u.value.enabled&&me.value.setParsedDate(i.value)},Be=(ze=!1)=>{o.autoApply&&B(i.value)&&O()&&(d.value.enabled&&Array.isArray(i.value)?(d.value.partialRange||i.value.length===2)&&j(ze):j(ze))},ae=()=>{u.value.enabled||(i.value=null)},he=(ze=!1)=>{T.value=!0,ze&&i.value&&l.value.setDateOnMenuClose&&se(),a.value.enabled||(D.value&&(D.value=!1,r("menuFocused",!1),r("shiftKeyInMenu",!1),n("closed"),A.value&&ie($.value)),ae(),n("blur"))},xe=(ze,gn,Tn=!1)=>{if(!ze){i.value=null;return}const mi=Array.isArray(ze)?ze.every(Ho=>v(Ho)):v(ze),wr=B(ze);mi&&wr?(r("isTextInputDate",!0),i.value=ze,gn?(V.value=Tn,se(),n("text-submit")):o.autoApply&&Be(!0),s.nextTick().then(()=>{r("isTextInputDate",!1)})):n("invalid-date",ze)},Pe=()=>{o.autoApply&&B(i.value)&&pe(),be()},ot=()=>D.value?he():k(),$e=ze=>{i.value=ze},ht=()=>{u.value.enabled&&(r("isInputFocused",!0),le()),n("focus")},wt=()=>{u.value.enabled&&(r("isInputFocused",!1),ie(o.modelValue),V.value&&S(we.value,q.value)?.focus()),n("blur")},Et=(ze,gn)=>{ge.value&&ge.value.updateMonthYear(gn??0,{month:Q(ze.month),year:Q(ze.year)})},En=ze=>{ie(ze??o.modelValue)},Yt=(ze,gn)=>{ge.value?.switchView(ze,gn)},Kt=(ze,gn)=>{if(D.value)return l.value.onClickOutside?l.value.onClickOutside(ze,gn):he(!0)},OA=(ze=0)=>{ge.value?.handleFlow(ze)},pi=()=>de;return kM(de,ze=>Kt(O,ze),{ignore:[me]}),e({closeMenu:he,selectDate:se,clearValue:U,openMenu:k,onScroll:R,formatInputValue:le,updateInternalModelValue:$e,setMonthYear:Et,parseModel:En,switchView:Yt,toggleMenu:ot,handleFlow:OA,getDpWrapMenuRef:pi,dpMenuRef:()=>ge,dpWrapMenuRef:()=>de,inputRef:()=>me}),(ze,gn)=>(s.openBlock(),s.createElementBlock("div",{ref:"picker-wrapper",class:s.normalizeClass(G.value),"data-datepicker-instance":"","data-dp-mobile":s.unref(C)},[s.createVNode(UD,{ref:"input-cmp","is-menu-open":D.value,onClear:U,onOpen:k,onSetInputDate:xe,onSetEmptyDate:s.unref(pe),onSelectDate:se,onToggle:ot,onClose:he,onFocus:ht,onBlur:wt,onRealBlur:gn[0]||(gn[0]=Tn=>s.unref(r)("isInputFocused",!1))},s.createSlots({_:2},[s.renderList(s.unref(re),(Tn,mi)=>({name:Tn,fn:s.withCtx(wr=>[s.renderSlot(ze.$slots,Tn,s.normalizeProps(s.guardReactiveProps(wr)))])}))]),1032,["is-menu-open","onSetEmptyDate"]),s.createVNode(s.Teleport,{to:s.unref(p),disabled:!s.unref(p)},{default:s.withCtx(()=>[s.createElementVNode("div",{ref:"dp-menu-wrap",class:s.normalizeClass({"dp--menu-wrapper":!s.unref(a).enabled,dp__outer_menu_wrap:!0,"dp--centered":s.unref(o).centered}),style:s.normalizeStyle(!s.unref(a).enabled&&!s.unref(o).centered?s.unref(F):void 0)},[s.createVNode(s.Transition,{name:s.unref(y)(s.unref(W).startsWith("top")),css:s.unref(w)&&!s.unref(a).enabled&&!s.unref(o).centered&&I.value},{default:s.withCtx(()=>[D.value&&I.value?(s.openBlock(),s.createBlock($O,{key:0,ref:"dp-menu",class:s.normalizeClass({[ee.value]:!0}),"no-overlay-focus":K.value,collapse:x.value,"get-input-rect":N,onClosePicker:he,onSelectDate:se,onAutoApply:Be,onTimeUpdate:Pe,onMenuBlur:gn[1]||(gn[1]=Tn=>s.unref(n)("blur"))},s.createSlots({_:2},[s.renderList(s.unref(X),(Tn,mi)=>({name:Tn,fn:s.withCtx(wr=>[s.renderSlot(ze.$slots,Tn,s.normalizeProps(s.guardReactiveProps({...wr})))])})),!s.unref(a).enabled&&!s.unref(o).centered&&s.unref(m).arrow===!0?{name:"arrow",fn:s.withCtx(()=>[s.createElementVNode("div",{ref:"menu-arrow",class:s.normalizeClass({dp__arrow_top:s.unref(W)==="bottom",dp__arrow_bottom:s.unref(W)==="top"}),style:s.normalizeStyle({left:s.unref(E).arrow?.x!=null?`${s.unref(E).arrow.x}px`:"",top:s.unref(E).arrow?.y!=null?`${s.unref(E).arrow.y}px`:""})},null,6)]),key:"0"}:void 0]),1032,["class","no-overlay-focus","collapse"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],6)]),_:3},8,["to","disabled"])],10,KO))}}),hu=s.defineComponent({__name:"VueDatePickerRoot",props:s.mergeDefaults({multiCalendars:{type:[Boolean,Number,String,Object]},modelValue:{},modelType:{},dark:{type:Boolean},transitions:{type:[Boolean,Object]},ariaLabels:{},hideNavigation:{},timezone:{},vertical:{type:Boolean},hideMonthYearSelect:{type:Boolean},disableYearSelect:{type:Boolean},yearRange:{},autoApply:{type:Boolean},disabledDates:{type:[Array,Function]},startDate:{},hideOffsetDates:{type:Boolean},noToday:{type:Boolean},allowedDates:{},markers:{},presetDates:{},flow:{},preventMinMaxNavigation:{type:Boolean},reverseYears:{type:Boolean},weekPicker:{type:Boolean},filters:{},arrowNavigation:{type:Boolean},highlight:{type:[Function,Object]},teleport:{type:[String,Boolean]},centered:{type:Boolean},locale:{},weekStart:{},weekNumbers:{type:[Boolean,Object]},dayNames:{type:[Function,Array]},monthPicker:{type:Boolean},yearPicker:{type:Boolean},modelAuto:{type:Boolean},formats:{},multiDates:{type:[Boolean,Object]},minDate:{},maxDate:{},minTime:{},maxTime:{},inputAttrs:{},timeConfig:{},placeholder:{},timePicker:{type:Boolean},range:{type:[Boolean,Object]},menuId:{},disabled:{type:Boolean},readonly:{type:Boolean},inline:{type:[Boolean,Object]},textInput:{type:[Boolean,Object]},sixWeeks:{type:[Boolean,String]},actionRow:{},focusStartDate:{type:Boolean},disabledTimes:{type:[Function,Array]},calendar:{type:Function},config:{},quarterPicker:{type:Boolean},yearFirst:{type:Boolean},loading:{type:Boolean},ui:{},floating:{}},kD),emits:["update:model-value","internal-model-change","text-submit","text-input","open","closed","focus","blur","cleared","flow-step","update-month-year","invalid-select","invalid-fixed-range","invalid-date","tooltip-open","tooltip-close","am-pm-change","range-start","range-end","date-click","overlay-toggle","invalid"],setup(t,{expose:e,emit:n}){const r=n,A=t;U_(A,r);const i=s.useSlots(),o=D0(i,A.presetDates),a=s.useTemplateRef("date-picker");return e(xD(a)),(l,u)=>(s.openBlock(),s.createBlock(zO,{ref:"date-picker"},s.createSlots({_:2},[s.renderList(s.unref(o),(d,h)=>({name:d,fn:s.withCtx(p=>[s.renderSlot(l.$slots,d,s.normalizeProps(s.guardReactiveProps(p)))])}))]),1536))}});function ei(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const H0={};function WO(t){H0[t]||(H0[t]=!0,ei(t))}const Ei=typeof window<"u";let Or,ss;if(process.env.NODE_ENV!=="production"){const t=Ei&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(Or=e=>{t.mark(e)},ss=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const GO=/\{([0-9a-zA-Z]+)\}/g;function pu(t,...e){return e.length===1&&kt(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(GO,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const ki=(t,e=!1)=>e?Symbol.for(t):Symbol(t),YO=(t,e,n)=>qO({l:t,k:e,s:n}),qO=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Un=t=>typeof t=="number"&&isFinite(t),XO=t=>Sp(t)==="[object Date]",mu=t=>Sp(t)==="[object RegExp]",gu=t=>St(t)&&Object.keys(t).length===0,_n=Object.assign,JO=Object.create,Lt=(t=null)=>JO(t);let P0;const as=()=>P0||(P0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Lt());function $0(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function K0(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function jO(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,A,i)=>`${A}="${K0(i)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,A,i)=>`${A}='${K0(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(process.env.NODE_ENV!=="production"&&ei("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{t=t.replace(r,"$1javascript:")}),t}const ZO=Object.prototype.hasOwnProperty;function FA(t,e){return ZO.call(t,e)}const fn=Array.isArray,Xt=t=>typeof t=="function",Le=t=>typeof t=="string",hn=t=>typeof t=="boolean",kt=t=>t!==null&&typeof t=="object",VO=t=>kt(t)&&Xt(t.then)&&Xt(t.catch),z0=Object.prototype.toString,Sp=t=>z0.call(t),St=t=>Sp(t)==="[object Object]",eN=t=>t==null?"":fn(t)||St(t)&&t.toString===z0?JSON.stringify(t,null,2):String(t);function xp(t,e=""){return t.reduce((n,r,A)=>A===0?n+r:n+e+r,"")}const W0=2;function tN(t,e=0,n=t.length){const r=t.split(/\r?\n/);let A=0;const i=[];for(let o=0;o<r.length;o++)if(A+=r[o].length+1,A>=e){for(let a=o-W0;a<=o+W0||n>A;a++){if(a<0||a>=r.length)continue;const l=a+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${r[a]}`);const u=r[a].length;if(a===o){const d=e-(A-u)+1,h=Math.max(1,n>A?u-d:n-e);i.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(a>o){if(n>A){const d=Math.max(Math.min(n-A,u),1);i.push(" | "+"^".repeat(d))}A+=u+1}}break}return i.join(`
|
|
1
|
+
(function(Xe,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(Xe=typeof globalThis<"u"?globalThis:Xe||self,s(Xe.AblokComponents={},Xe.Vue))})(this,(function(Xe,s){"use strict";function sT(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const zh=sT(s),aT={class:"icon",preserveAspectRatio:"xMaxYMin"},lT=["xlink:href"],cT=s.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("i",{class:s.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(s.openBlock(),s.createElementBlock("svg",aT,[s.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,lT)]))],2))}}),uT={class:"loading-spinner d-block"},dT=s.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("span",uT,[n[0]||(n[0]=s.createElementVNode("span",{class:"loading-spinner__animation"},[s.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[s.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[s.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1)),s.renderSlot(e.$slots,"default")]))}}),fT=["src","alt"],hT=s.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},ready:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},emitPending:{type:Boolean,default:!0}},emits:["update:ready","update:pending"],setup(t,{emit:e}){const n=t,r=e,A=s.useTemplateRef("image"),i=s.ref(!1);function o(){i.value=!0,A.value?.addEventListener("transitionend",a,{once:!0})}function a(){r("update:ready",!0),n.emitPending&&r("update:pending",!1)}return s.onBeforeMount(()=>{n.emitPending&&r("update:pending",!0)}),(l,u)=>{const d=s.resolveComponent("loading-spinner");return t.src?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!i.value?(s.openBlock(),s.createBlock(d,{key:0})):s.createCommentVNode("",!0),s.createElementVNode("img",{ref_key:"image",ref:A,class:s.normalizeClass(["",{"opacity-0":t.animate&&!i.value,"opacity-1":!t.animate||i.value}]),src:t.src,alt:t.alt,onLoad:o},null,42,fT)],2)):s.createCommentVNode("",!0)}}}),pT=["innerHTML"],mT=s.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,n=s.computed(()=>e.tag||"p");return(r,A)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),{class:s.normalizeClass(["headline",`${t.size} headline--${t.size}${t.className||""}`])},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"default",{},()=>[s.createElementVNode("span",{class:"headline__text",innerHTML:t.text},null,8,pT)])]),_:3},8,["class"]))}});const{entries:dB,setPrototypeOf:fB,isFrozen:gT,getPrototypeOf:vT,getOwnPropertyDescriptor:wT}=Object;let{freeze:ar,seal:qr,create:Wh}=Object,{apply:Gh,construct:Yh}=typeof Reflect<"u"&&Reflect;ar||(ar=function(e){return e}),qr||(qr=function(e){return e}),Gh||(Gh=function(e,n){for(var r=arguments.length,A=new Array(r>2?r-2:0),i=2;i<r;i++)A[i-2]=arguments[i];return e.apply(n,A)}),Yh||(Yh=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A<n;A++)r[A-1]=arguments[A];return new e(...r)});const Wc=cr(Array.prototype.forEach),BT=cr(Array.prototype.lastIndexOf),hB=cr(Array.prototype.pop),nl=cr(Array.prototype.push),yT=cr(Array.prototype.splice),Gc=cr(String.prototype.toLowerCase),qh=cr(String.prototype.toString),Xh=cr(String.prototype.match),rl=cr(String.prototype.replace),CT=cr(String.prototype.indexOf),bT=cr(String.prototype.trim),BA=cr(Object.prototype.hasOwnProperty),lr=cr(RegExp.prototype.test),Al=ET(TypeError);function cr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A<n;A++)r[A-1]=arguments[A];return Gh(t,e,r)}}function ET(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Yh(t,n)}}function dt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gc;fB&&fB(t,null);let r=e.length;for(;r--;){let A=e[r];if(typeof A=="string"){const i=n(A);i!==A&&(gT(e)||(e[r]=i),A=i)}t[A]=!0}return t}function kT(t){for(let e=0;e<t.length;e++)BA(t,e)||(t[e]=null);return t}function zA(t){const e=Wh(null);for(const[n,r]of dB(t))BA(t,n)&&(Array.isArray(r)?e[n]=kT(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=zA(r):e[n]=r);return e}function il(t,e){for(;t!==null;){const r=wT(t,e);if(r){if(r.get)return cr(r.get);if(typeof r.value=="function")return cr(r.value)}t=vT(t)}function n(){return null}return n}const pB=ar(["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","search","section","select","shadow","slot","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"]),Jh=ar(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jh=ar(["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"]),ST=ar(["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"]),Zh=ar(["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"]),xT=ar(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mB=ar(["#text"]),gB=ar(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Vh=ar(["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","mask-type","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"]),vB=ar(["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"]),Yc=ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FT=qr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),QT=qr(/<%[\w\W]*|[\w\W]*%>/gm),TT=qr(/\$\{[\w\W]*/gm),MT=qr(/^data-[\-\w.\u00B7-\uFFFF]+$/),IT=qr(/^aria-[\-\w]+$/),wB=qr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),UT=qr(/^(?:\w+script|data):/i),_T=qr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),BB=qr(/^html$/i),DT=qr(/^[a-z][.\w]*(-[.\w]+)+$/i);var yB=Object.freeze({__proto__:null,ARIA_ATTR:IT,ATTR_WHITESPACE:_T,CUSTOM_ELEMENT:DT,DATA_ATTR:MT,DOCTYPE_NAME:BB,ERB_EXPR:QT,IS_ALLOWED_URI:wB,IS_SCRIPT_OR_DATA:UT,MUSTACHE_EXPR:FT,TMPLIT_EXPR:TT});const ol={element:1,text:3,progressingInstruction:7,comment:8,document:9},OT=function(){return typeof window>"u"?null:window},NT=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const A="data-tt-policy-suffix";n&&n.hasAttribute(A)&&(r=n.getAttribute(A));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},CB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bB(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OT();const e=Re=>bB(Re);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==ol.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,A=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:m}=t,v=l.prototype,B=il(v,"cloneNode"),y=il(v,"remove"),w=il(v,"nextSibling"),C=il(v,"childNodes"),S=il(v,"parentNode");if(typeof o=="function"){const Re=n.createElement("template");Re.content&&Re.content.ownerDocument&&(n=Re.content.ownerDocument)}let Q,_="";const{implementation:D,createNodeIterator:I,createDocumentFragment:$,getElementsByTagName:Y}=n,{importNode:de}=r;let ge=CB();e.isSupported=typeof dB=="function"&&typeof S=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:we,TMPLIT_EXPR:te,DATA_ATTR:V,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:T,CUSTOM_ELEMENT:P}=yB;let{IS_ALLOWED_URI:F}=yB,E=null;const W=dt({},[...pB,...Jh,...jh,...Zh,...mB]);let ne=null;const X=dt({},[...gB,...Vh,...vB,...Yc]);let re=Object.seal(Wh(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,pe=null;const le=Object.seal(Wh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,G=!0,ee=!1,K=!0,N=!1,R=!0,J=!1,z=!1,ce=!1,k=!1,U=!1,O=!1,se=!0,j=!1;const be="user-content-";let Be=!0,ae=!1,he={},xe=null;const Pe=dt({},["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 ot=null;const $e=dt({},["audio","video","img","source","image","track"]);let ht=null;const wt=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Et="http://www.w3.org/1998/Math/MathML",En="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let Kt=Yt,OA=!1,pi=null;const ze=dt({},[Et,En,Yt],qh);let gn=dt({},["mi","mo","mn","ms","mtext"]),Tn=dt({},["annotation-xml"]);const mi=dt({},["title","style","font","a","script"]);let wr=null;const Ho=["application/xhtml+xml","text/html"],Us="text/html";let nn=null,NA=null;const Fc=n.createElement("form"),Ra=function(oe){return oe instanceof RegExp||oe instanceof Function},_s=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(NA&&NA===oe)){if((!oe||typeof oe!="object")&&(oe={}),oe=zA(oe),wr=Ho.indexOf(oe.PARSER_MEDIA_TYPE)===-1?Us:oe.PARSER_MEDIA_TYPE,nn=wr==="application/xhtml+xml"?qh:Gc,E=BA(oe,"ALLOWED_TAGS")?dt({},oe.ALLOWED_TAGS,nn):W,ne=BA(oe,"ALLOWED_ATTR")?dt({},oe.ALLOWED_ATTR,nn):X,pi=BA(oe,"ALLOWED_NAMESPACES")?dt({},oe.ALLOWED_NAMESPACES,qh):ze,ht=BA(oe,"ADD_URI_SAFE_ATTR")?dt(zA(wt),oe.ADD_URI_SAFE_ATTR,nn):wt,ot=BA(oe,"ADD_DATA_URI_TAGS")?dt(zA($e),oe.ADD_DATA_URI_TAGS,nn):$e,xe=BA(oe,"FORBID_CONTENTS")?dt({},oe.FORBID_CONTENTS,nn):Pe,Ae=BA(oe,"FORBID_TAGS")?dt({},oe.FORBID_TAGS,nn):zA({}),pe=BA(oe,"FORBID_ATTR")?dt({},oe.FORBID_ATTR,nn):zA({}),he=BA(oe,"USE_PROFILES")?oe.USE_PROFILES:!1,Ce=oe.ALLOW_ARIA_ATTR!==!1,G=oe.ALLOW_DATA_ATTR!==!1,ee=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,K=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=oe.SAFE_FOR_TEMPLATES||!1,R=oe.SAFE_FOR_XML!==!1,J=oe.WHOLE_DOCUMENT||!1,k=oe.RETURN_DOM||!1,U=oe.RETURN_DOM_FRAGMENT||!1,O=oe.RETURN_TRUSTED_TYPE||!1,ce=oe.FORCE_BODY||!1,se=oe.SANITIZE_DOM!==!1,j=oe.SANITIZE_NAMED_PROPS||!1,Be=oe.KEEP_CONTENT!==!1,ae=oe.IN_PLACE||!1,F=oe.ALLOWED_URI_REGEXP||wB,Kt=oe.NAMESPACE||Yt,gn=oe.MATHML_TEXT_INTEGRATION_POINTS||gn,Tn=oe.HTML_INTEGRATION_POINTS||Tn,re=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&Ra(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&Ra(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),N&&(G=!1),U&&(k=!0),he&&(E=dt({},mB),ne=[],he.html===!0&&(dt(E,pB),dt(ne,gB)),he.svg===!0&&(dt(E,Jh),dt(ne,Vh),dt(ne,Yc)),he.svgFilters===!0&&(dt(E,jh),dt(ne,Vh),dt(ne,Yc)),he.mathMl===!0&&(dt(E,Zh),dt(ne,vB),dt(ne,Yc))),oe.ADD_TAGS&&(typeof oe.ADD_TAGS=="function"?le.tagCheck=oe.ADD_TAGS:(E===W&&(E=zA(E)),dt(E,oe.ADD_TAGS,nn))),oe.ADD_ATTR&&(typeof oe.ADD_ATTR=="function"?le.attributeCheck=oe.ADD_ATTR:(ne===X&&(ne=zA(ne)),dt(ne,oe.ADD_ATTR,nn))),oe.ADD_URI_SAFE_ATTR&&dt(ht,oe.ADD_URI_SAFE_ATTR,nn),oe.FORBID_CONTENTS&&(xe===Pe&&(xe=zA(xe)),dt(xe,oe.FORBID_CONTENTS,nn)),oe.ADD_FORBID_CONTENTS&&(xe===Pe&&(xe=zA(xe)),dt(xe,oe.ADD_FORBID_CONTENTS,nn)),Be&&(E["#text"]=!0),J&&dt(E,["html","head","body"]),E.table&&(dt(E,["tbody"]),delete Ae.tbody),oe.TRUSTED_TYPES_POLICY){if(typeof oe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Al('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Al('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=oe.TRUSTED_TYPES_POLICY,_=Q.createHTML("")}else Q===void 0&&(Q=NT(m,A)),Q!==null&&typeof _=="string"&&(_=Q.createHTML(""));ar&&ar(oe),NA=oe}},Po=dt({},[...Jh,...jh,...ST]),Ha=dt({},[...Zh,...xT]),Ds=function(oe){let Te=S(oe);(!Te||!Te.tagName)&&(Te={namespaceURI:Kt,tagName:"template"});const He=Gc(oe.tagName),zt=Gc(Te.tagName);return pi[oe.namespaceURI]?oe.namespaceURI===En?Te.namespaceURI===Yt?He==="svg":Te.namespaceURI===Et?He==="svg"&&(zt==="annotation-xml"||gn[zt]):!!Po[He]:oe.namespaceURI===Et?Te.namespaceURI===Yt?He==="math":Te.namespaceURI===En?He==="math"&&Tn[zt]:!!Ha[He]:oe.namespaceURI===Yt?Te.namespaceURI===En&&!Tn[zt]||Te.namespaceURI===Et&&!gn[zt]?!1:!Ha[He]&&(mi[He]||!Po[He]):!!(wr==="application/xhtml+xml"&&pi[oe.namespaceURI]):!1},Fr=function(oe){nl(e.removed,{element:oe});try{S(oe).removeChild(oe)}catch{y(oe)}},LA=function(oe,Te){try{nl(e.removed,{attribute:Te.getAttributeNode(oe),from:Te})}catch{nl(e.removed,{attribute:null,from:Te})}if(Te.removeAttribute(oe),oe==="is")if(k||U)try{Fr(Te)}catch{}else try{Te.setAttribute(oe,"")}catch{}},ve=function(oe){let Te=null,He=null;if(ce)oe="<remove></remove>"+oe;else{const ln=Xh(oe,/^[\r\n\t ]+/);He=ln&&ln[0]}wr==="application/xhtml+xml"&&Kt===Yt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");const zt=Q?Q.createHTML(oe):oe;if(Kt===Yt)try{Te=new p().parseFromString(zt,wr)}catch{}if(!Te||!Te.documentElement){Te=D.createDocument(Kt,"template",null);try{Te.documentElement.innerHTML=OA?_:zt}catch{}}const vn=Te.body||Te.documentElement;return oe&&He&&vn.insertBefore(n.createTextNode(He),vn.childNodes[0]||null),Kt===Yt?Y.call(Te,J?"html":"body")[0]:J?Te.documentElement:vn},Ie=function(oe){return I.call(oe.ownerDocument||oe,oe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},We=function(oe){return oe instanceof h&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof d)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},At=function(oe){return typeof a=="function"&&oe instanceof a};function bt(Re,oe,Te){Wc(Re,He=>{He.call(e,oe,Te,NA)})}const Pr=function(oe){let Te=null;if(bt(ge.beforeSanitizeElements,oe,null),We(oe))return Fr(oe),!0;const He=nn(oe.nodeName);if(bt(ge.uponSanitizeElement,oe,{tagName:He,allowedTags:E}),R&&oe.hasChildNodes()&&!At(oe.firstElementChild)&&lr(/<[/\w!]/g,oe.innerHTML)&&lr(/<[/\w!]/g,oe.textContent)||oe.nodeType===ol.progressingInstruction||R&&oe.nodeType===ol.comment&&lr(/<[/\w]/g,oe.data))return Fr(oe),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(He))&&(!E[He]||Ae[He])){if(!Ae[He]&&gi(He)&&(re.tagNameCheck instanceof RegExp&&lr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He)))return!1;if(Be&&!xe[He]){const zt=S(oe)||oe.parentNode,vn=C(oe)||oe.childNodes;if(vn&&zt){const ln=vn.length;for(let ir=ln-1;ir>=0;--ir){const RA=B(vn[ir],!0);RA.__removalCount=(oe.__removalCount||0)+1,zt.insertBefore(RA,w(oe))}}}return Fr(oe),!0}return oe instanceof l&&!Ds(oe)||(He==="noscript"||He==="noembed"||He==="noframes")&&lr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Fr(oe),!0):(N&&oe.nodeType===ol.text&&(Te=oe.textContent,Wc([me,we,te],zt=>{Te=rl(Te,zt," ")}),oe.textContent!==Te&&(nl(e.removed,{element:oe.cloneNode()}),oe.textContent=Te)),bt(ge.afterSanitizeElements,oe,null),!1)},uA=function(oe,Te,He){if(se&&(Te==="id"||Te==="name")&&(He in n||He in Fc))return!1;if(!(G&&!pe[Te]&&lr(V,Te))){if(!(Ce&&lr(q,Te))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(Te,oe))){if(!ne[Te]||pe[Te]){if(!(gi(oe)&&(re.tagNameCheck instanceof RegExp&&lr(re.tagNameCheck,oe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(oe))&&(re.attributeNameCheck instanceof RegExp&&lr(re.attributeNameCheck,Te)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Te,oe))||Te==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&lr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He))))return!1}else if(!ht[Te]){if(!lr(F,rl(He,T,""))){if(!((Te==="src"||Te==="xlink:href"||Te==="href")&&oe!=="script"&&CT(He,"data:")===0&&ot[oe])){if(!(ee&&!lr(x,rl(He,T,"")))){if(He)return!1}}}}}}}return!0},gi=function(oe){return oe!=="annotation-xml"&&Xh(oe,P)},Ki=function(oe){bt(ge.beforeSanitizeAttributes,oe,null);const{attributes:Te}=oe;if(!Te||We(oe))return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let zt=Te.length;for(;zt--;){const vn=Te[zt],{name:ln,namespaceURI:ir,value:RA}=vn,Wi=nn(ln),Pa=RA;let kn=ln==="value"?Pa:bT(Pa);if(He.attrName=Wi,He.attrValue=kn,He.keepAttr=!0,He.forceKeepAttr=void 0,bt(ge.uponSanitizeAttribute,oe,He),kn=He.attrValue,j&&(Wi==="id"||Wi==="name")&&(LA(ln,oe),kn=be+kn),R&&lr(/((--!?|])>)|<\/(style|title|textarea)/i,kn)){LA(ln,oe);continue}if(Wi==="attributename"&&Xh(kn,"href")){LA(ln,oe);continue}if(He.forceKeepAttr)continue;if(!He.keepAttr){LA(ln,oe);continue}if(!K&&lr(/\/>/i,kn)){LA(ln,oe);continue}N&&Wc([me,we,te],rh=>{kn=rl(kn,rh," ")});const nh=nn(oe.nodeName);if(!uA(nh,Wi,kn)){LA(ln,oe);continue}if(Q&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ir)switch(m.getAttributeType(nh,Wi)){case"TrustedHTML":{kn=Q.createHTML(kn);break}case"TrustedScriptURL":{kn=Q.createScriptURL(kn);break}}if(kn!==Pa)try{ir?oe.setAttributeNS(ir,ln,kn):oe.setAttribute(ln,kn),We(oe)?Fr(oe):hB(e.removed)}catch{LA(ln,oe)}}bt(ge.afterSanitizeAttributes,oe,null)},zi=function Re(oe){let Te=null;const He=Ie(oe);for(bt(ge.beforeSanitizeShadowDOM,oe,null);Te=He.nextNode();)bt(ge.uponSanitizeShadowNode,Te,null),Pr(Te),Ki(Te),Te.content instanceof i&&Re(Te.content);bt(ge.afterSanitizeShadowDOM,oe,null)};return e.sanitize=function(Re){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null,He=null,zt=null,vn=null;if(OA=!Re,OA&&(Re="<!-->"),typeof Re!="string"&&!At(Re))if(typeof Re.toString=="function"){if(Re=Re.toString(),typeof Re!="string")throw Al("dirty is not a string, aborting")}else throw Al("toString is not a function");if(!e.isSupported)return Re;if(z||_s(oe),e.removed=[],typeof Re=="string"&&(ae=!1),ae){if(Re.nodeName){const RA=nn(Re.nodeName);if(!E[RA]||Ae[RA])throw Al("root node is forbidden and cannot be sanitized in-place")}}else if(Re instanceof a)Te=ve("<!---->"),He=Te.ownerDocument.importNode(Re,!0),He.nodeType===ol.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?Te=He:Te.appendChild(He);else{if(!k&&!N&&!J&&Re.indexOf("<")===-1)return Q&&O?Q.createHTML(Re):Re;if(Te=ve(Re),!Te)return k?null:O?_:""}Te&&ce&&Fr(Te.firstChild);const ln=Ie(ae?Re:Te);for(;zt=ln.nextNode();)Pr(zt),Ki(zt),zt.content instanceof i&&zi(zt.content);if(ae)return Re;if(k){if(U)for(vn=$.call(Te.ownerDocument);Te.firstChild;)vn.appendChild(Te.firstChild);else vn=Te;return(ne.shadowroot||ne.shadowrootmode)&&(vn=de.call(r,vn,!0)),vn}let ir=J?Te.outerHTML:Te.innerHTML;return J&&E["!doctype"]&&Te.ownerDocument&&Te.ownerDocument.doctype&&Te.ownerDocument.doctype.name&&lr(BB,Te.ownerDocument.doctype.name)&&(ir="<!DOCTYPE "+Te.ownerDocument.doctype.name+`>
|
|
2
|
+
`+ir),N&&Wc([me,we,te],RA=>{ir=rl(ir,RA," ")}),Q&&O?Q.createHTML(ir):ir},e.setConfig=function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_s(Re),z=!0},e.clearConfig=function(){NA=null,z=!1},e.isValidAttribute=function(Re,oe,Te){NA||_s({});const He=nn(Re),zt=nn(oe);return uA(He,zt,Te)},e.addHook=function(Re,oe){typeof oe=="function"&&nl(ge[Re],oe)},e.removeHook=function(Re,oe){if(oe!==void 0){const Te=BT(ge[Re],oe);return Te===-1?void 0:yT(ge[Re],Te,1)[0]}return hB(ge[Re])},e.removeHooks=function(Re){ge[Re]=[]},e.removeAllHooks=function(){ge=CB()},e}var EB=bB();function qc(t){return s.computed(()=>{const e=typeof t=="function"?t():typeof t=="string"?t:t.value;return EB.sanitize(e,{ALLOWED_TAGS:["b","i","em","strong","u","span","p","br","a","ul","ol","li","h1","h2","h3","h4","h5","h6","article","div","label"],ALLOWED_ATTR:["class","id","href","target","rel","title","data-countdown"],ALLOW_DATA_ATTR:!0})})}function Ur(t){return EB.sanitize(t,{ALLOWED_TAGS:["b","i","em","strong","u","span","p","br","a","ul","ol","li","h1","h2","h3","h4","h5","h6","article","div","label"],ALLOWED_ATTR:["class","id","href","target","rel","title","data-countdown"],ALLOW_DATA_ATTR:!0})}const LT=["innerHTML"],RT=s.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){const e=t;return qc(()=>e.text||""),(n,r)=>(s.openBlock(),s.createElementBlock("p",{class:s.normalizeClass(["base-paragraph",`${t.size||""} ${t.className||""}`]),innerHTML:t.text},null,10,LT))}});function Ct(){return Math.random().toString(16).slice(2)}async function Xc(t){return await new Promise(e=>{let n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(t)})}function HT(t){const e=atob(t.split(",")[1]),n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let A=0;A<e.length;A++)r[A]=e.charCodeAt(A);return new Blob([n],{type:"image/png"})}function PT(t){return{"image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","application/pdf":"pdf","video/mp4":"mp4","video/webm":"webm","video/ogg":"ogg"}[t]||"bin"}async function kB(t,e,n){const r=PT(n),i=e.includes(".")?e:`${e}.${r}`;return fetch(t).then(function(o){return o.arrayBuffer()}).then(function(o){return new File([o],i,{type:n})})}async function $T(t){return await new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=A=>n(A),r.src=t})}function SB(t,e,n,r="image/png",A){const i=document.createElement("canvas");i.width=e,i.height=n;const o=i.getContext("2d");return o?(o.drawImage(t,0,0,e,n),i.toDataURL(r,A)):t.src}async function KT(t,e,n){const r=await Xc(t),A=await $T(r),i=A.naturalWidth,o=A.naturalHeight;if(!i||i<=e)return t;const a=Math.round(e),l=o/i,u=Math.round(a*l),d=SB(A,a,u,t.type||"image/png",n);return await kB(d,t.name,t.type||"image/png")}function xB(t){return!t||typeof t!="string"?"":t.replace(/\0/g,"").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/on\w+\s*=\s*[^\s>]*/gi,"").replace(/javascript:/gi,"").replace(/data:text\/html/gi,"").replace(/(\b(SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC|EXECUTE|UNION|DECLARE)\b)/gi,"").trim()}const zT={class:"accordion-item"},WT=["id"],GT=["data-bs-target","aria-controls"],YT={class:"flex-grow-1"},qT=["id","aria-labelledby","data-bs-parent"],XT=["innerHTML"],JT=s.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Ct()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""},noPadding:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=qc(()=>n.body);function i(){r("update:modelValue",!n.modelValue)}return(o,a)=>(s.openBlock(),s.createElementBlock("div",zT,[s.createElementVNode("div",{class:"accordion-header",id:`heading-${t.id}`},[s.createElementVNode("button",{class:s.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:i},[s.renderSlot(o.$slots,"toggle",{},()=>[s.createElementVNode("span",YT,s.toDisplayString(t.title),1)])],10,GT)],8,WT),s.createElementVNode("div",{class:s.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[s.createElementVNode("div",{class:s.normalizeClass(["accordion-body",t.noPadding?"p-0":""])},[s.renderSlot(o.$slots,"body",{},()=>[s.createElementVNode("article",{innerHTML:s.unref(A)},null,8,XT)])],2)],10,qT)]))}}),jT=(t,e)=>{const n=t.__vccOpts||t;for(const[r,A]of e)n[r]=A;return n},ZT={},VT={class:"accordion"};function eM(t,e){return s.openBlock(),s.createElementBlock("div",VT,[s.renderSlot(t.$slots,"default")])}const tM=jT(ZT,[["render",eM]]),nM=["type","disabled"],rM=s.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,n=s.computed(()=>e.caption&&!e.circle);return(r,A)=>{const i=s.resolveComponent("loading-spinner"),o=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("button",{type:t.type,disabled:t.disabled,class:s.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"btn-lg":t.size==="large","btn-sm":t.size==="small"}])},[t.pending?s.renderSlot(r.$slots,"pending-icon",{key:0},()=>[s.createVNode(i)]):s.createCommentVNode("",!0),s.renderSlot(r.$slots,"default",{},()=>[t.icon?(s.openBlock(),s.createBlock(o,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):s.createCommentVNode("",!0),n.value?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},s.toDisplayString(t.caption),3)):s.createCommentVNode("",!0)])],10,nM)}}}),AM={class:"input-group input__input-group"},iM=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],oM=["for","innerHTML"],sM={key:0,class:"input__error alert alert-danger mt-3"},aM=s.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},min:{type:Number},max:{type:Number},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},validate:{type:Boolean,default:!1},valid:{type:Boolean,default:!0},sanitize:{type:Boolean,default:!0}},emits:["update:modelValue","update:valid"],setup(t,{emit:e}){const n=t,r=e,A=s.useTemplateRef("input"),i=s.ref(n.valid),o=s.ref(),a=s.computed(()=>Ur(`${n.label}${n.required?" *":""}`)),l=s.computed({get(){return n.modelValue},set(h){h=n.type==="number"?n.max&&Number(h)>n.max?n.max:n.min!==void 0&&Number(h)<n.min?n.min:Number(h):h,n.sanitize&&typeof h=="string"&&!["checkbox","radio","number","date","datetime-local","time","month","week","email","tel","url"].includes(n.type)&&(h=xB(h)),r("update:modelValue",h)}}),u=s.computed(()=>{if(n.type==="number"){const{min:h,max:p}=n;return{...h!==void 0?{min:h}:{},...p!==void 0?{max:p}:{}}}return{}});function d(){n.validate&&A.value&&(i.value=A.value.checkValidity(),i.value?o.value=void 0:o.value=A.value.validationMessage,r("update:valid",i.value))}return s.watch(()=>n.modelValue,()=>{i.value===!1&&d()}),s.onMounted(()=>{let h=p=>{l.value=typeof p.detail=="string"||typeof p.detail=="number"?`${p.detail}`:""};A.value?.addEventListener("focusin",p=>{window.addEventListener("update-focussed-input",h)}),A.value?.addEventListener("focusout",p=>{window.removeEventListener("update-focussed-input",h)}),d()}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input",`input--${t.type}${i.value?"":" input--invalid"}`])},[s.createElementVNode("div",AM,[s.renderSlot(h.$slots,"input-prepend",{slotScope:"props"}),s.withDirectives(s.createElementVNode("input",s.mergeProps({ref_key:"input",ref:A,"onUpdate:modelValue":p[0]||(p[0]=m=>l.value=m),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength},u.value,{"true-value":t.trueValue,"false-value":t.falseValue,class:["form-control",{"form-check-input":t.type==="checkbox"}],"aria-label":t.label,role:t.role,autocomplete:t.autocomplete,onChange:d}),null,16,iM),[[s.vModelDynamic,l.value]]),s.renderSlot(h.$slots,"input-append",{slotScope:"props"})]),s.renderSlot(h.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id,class:s.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:a.value},null,10,oM)):s.createCommentVNode("",!0)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[!i.value&&o.value?(s.openBlock(),s.createElementBlock("div",sM,s.toDisplayString(o.value),1)):s.createCommentVNode("",!0)]),_:1})],2))}}),lM={class:"input input--textarea"},cM=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],uM=["for","innerHTML"],dM=s.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1},sanitize:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){n.sanitize&&typeof i=="string"&&(i=xB(i)),r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",lM,[s.renderSlot(i.$slots,"input-prepend"),s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:s.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,cM),[[s.vModelText,A.value]]),s.renderSlot(i.$slots,"input-append"),s.renderSlot(i.$slots,"label",{},()=>[s.createElementVNode("label",{for:t.id,class:s.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,uM)])]))}}),fM={class:"form-check input input--checkbox"},hM=["value","id","name","required","disabled","true-value","false-value"],pM=["for","innerHTML"],mM=s.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue||n.checked},set(i){r("update:checked",i),r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",fM,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,hM),[[s.vModelCheckbox,A.value]]),s.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:s.unref(Ur)(t.label||"")},null,8,pM)]))}}),gM={class:"input-group input__input-group"},vM=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],wM=["for","innerHTML"],BM=s.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){const i=n.modelValue&&new Date(`${n.modelValue}Z`),o=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return o&&o.replace("Z","")},set(i){const o=i&&new Date(i);i=o&&o.toISOString(),r("update:modelValue",i&&i.replace("Z",""))}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input",`input--${t.type}`])},[s.createElementVNode("div",gM,[s.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,vM),[[s.vModelText,A.value]]),s.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),s.renderSlot(i.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:s.unref(Ur)(`${t.label}${t.required?" *":""}`)},null,8,wM)):s.createCommentVNode("",!0)])],2))}}),yM=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CM=Object.prototype.toString,bM=t=>CM.call(t)==="[object Object]",Jc=()=>{};function ep(t){return Array.isArray(t)?t:[t]}function EM(t,e,n){return s.watch(t,e,{...n,immediate:!0})}const FB=yM?window:void 0;function _r(t){var e;const n=s.toValue(t);return(e=n?.$el)!==null&&e!==void 0?e:n}function Ws(...t){const e=(r,A,i,o)=>(r.addEventListener(A,i,o),()=>r.removeEventListener(A,i,o)),n=s.computed(()=>{const r=ep(s.toValue(t[0])).filter(A=>A!=null);return r.every(A=>typeof A!="string")?r:void 0});return EM(()=>{var r,A;return[(r=(A=n.value)===null||A===void 0?void 0:A.map(i=>_r(i)))!==null&&r!==void 0?r:[FB].filter(i=>i!=null),ep(s.toValue(n.value?t[1]:t[0])),ep(s.unref(n.value?t[2]:t[1])),s.toValue(n.value?t[3]:t[2])]},([r,A,i,o],a,l)=>{if(!r?.length||!A?.length||!i?.length)return;const u=bM(o)?{...o}:o,d=r.flatMap(h=>A.flatMap(p=>i.map(m=>e(h,p,m,u))));l(()=>{d.forEach(h=>h())})},{flush:"post"})}function kM(t,e,n={}){const{window:r=FB,ignore:A=[],capture:i=!0,detectIframe:o=!1,controls:a=!1}=n;if(!r)return a?{stop:Jc,cancel:Jc,trigger:Jc}:Jc;let l=!0;const u=y=>s.toValue(A).some(w=>{if(typeof w=="string")return Array.from(r.document.querySelectorAll(w)).some(C=>C===y.target||y.composedPath().includes(C));{const C=_r(w);return C&&(y.target===C||y.composedPath().includes(C))}});function d(y){const w=s.toValue(y);return w&&w.$.subTree.shapeFlag===16}function h(y,w){const C=s.toValue(y),S=C.$.subTree&&C.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(Q=>Q.el===w.target||w.composedPath().includes(Q.el))}const p=y=>{const w=_r(t);if(y.target!=null&&!(!(w instanceof Element)&&d(t)&&h(t,y))&&!(!w||w===y.target||y.composedPath().includes(w))){if("detail"in y&&y.detail===0&&(l=!u(y)),!l){l=!0;return}e(y)}};let m=!1;const v=[Ws(r,"click",y=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(y))},{passive:!0,capture:i}),Ws(r,"pointerdown",y=>{const w=_r(t);l=!u(y)&&!!(w&&!y.composedPath().includes(w))},{passive:!0}),o&&Ws(r,"blur",y=>{setTimeout(()=>{var w;const C=_r(t);((w=r.document.activeElement)===null||w===void 0?void 0:w.tagName)==="IFRAME"&&!C?.contains(r.document.activeElement)&&e(y)},0)},{passive:!0})].filter(Boolean),B=()=>v.forEach(y=>y());return a?{stop:B,cancel:()=>{l=!1},trigger:y=>{l=!0,p(y),l=!1}}:B}function SM(t,e={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:A,onSwipeStart:i,passive:o=!0}=e,a=s.reactive({x:0,y:0}),l=s.reactive({x:0,y:0}),u=s.computed(()=>a.x-l.x),d=s.computed(()=>a.y-l.y),{max:h,abs:p}=Math,m=s.computed(()=>h(p(u.value),p(d.value))>=n),v=s.shallowRef(!1),B=s.computed(()=>m.value?p(u.value)>p(d.value)?u.value>0?"left":"right":d.value>0?"up":"down":"none"),y=I=>[I.touches[0].clientX,I.touches[0].clientY],w=(I,$)=>{a.x=I,a.y=$},C=(I,$)=>{l.x=I,l.y=$},S={passive:o,capture:!o},Q=I=>{v.value&&A?.(I,B.value),v.value=!1},_=[Ws(t,"touchstart",I=>{if(I.touches.length!==1)return;const[$,Y]=y(I);w($,Y),C($,Y),i?.(I)},S),Ws(t,"touchmove",I=>{if(I.touches.length!==1)return;const[$,Y]=y(I);C($,Y),S.capture&&!S.passive&&Math.abs(u.value)>Math.abs(d.value)&&I.preventDefault(),!v.value&&m.value&&(v.value=!0),v.value&&r?.(I)},S),Ws(t,["touchend","touchcancel"],Q,S)];return{isSwiping:v,direction:B,coordsStart:a,coordsEnd:l,lengthX:u,lengthY:d,stop:()=>_.forEach(I=>I())}}const Gs=Math.min,jo=Math.max,jc=Math.round,Zc=Math.floor,WA=t=>({x:t,y:t}),xM={left:"right",right:"left",bottom:"top",top:"bottom"},FM={start:"end",end:"start"};function tp(t,e,n){return jo(t,Gs(e,n))}function sl(t,e){return typeof t=="function"?t(e):t}function Zo(t){return t.split("-")[0]}function al(t){return t.split("-")[1]}function QB(t){return t==="x"?"y":"x"}function np(t){return t==="y"?"height":"width"}const QM=new Set(["top","bottom"]);function to(t){return QM.has(Zo(t))?"y":"x"}function rp(t){return QB(to(t))}function TM(t,e,n){n===void 0&&(n=!1);const r=al(t),A=rp(t),i=np(A);let o=A==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Vc(o)),[o,Vc(o)]}function MM(t){const e=Vc(t);return[Ap(t),e,Ap(e)]}function Ap(t){return t.replace(/start|end/g,e=>FM[e])}const TB=["left","right"],MB=["right","left"],IM=["top","bottom"],UM=["bottom","top"];function _M(t,e,n){switch(t){case"top":case"bottom":return n?e?MB:TB:e?TB:MB;case"left":case"right":return e?IM:UM;default:return[]}}function DM(t,e,n,r){const A=al(t);let i=_M(Zo(t),n==="start",r);return A&&(i=i.map(o=>o+"-"+A),e&&(i=i.concat(i.map(Ap)))),i}function Vc(t){return t.replace(/left|right|bottom|top/g,e=>xM[e])}function OM(t){return{top:0,right:0,bottom:0,left:0,...t}}function IB(t){return typeof t!="number"?OM(t):{top:t,right:t,bottom:t,left:t}}function eu(t){const{x:e,y:n,width:r,height:A}=t;return{width:r,height:A,top:n,left:e,right:e+r,bottom:n+A,x:e,y:n}}function UB(t,e,n){let{reference:r,floating:A}=t;const i=to(e),o=rp(e),a=np(o),l=Zo(e),u=i==="y",d=r.x+r.width/2-A.width/2,h=r.y+r.height/2-A.height/2,p=r[a]/2-A[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-A.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-A.width,y:h};break;default:m={x:r.x,y:r.y}}switch(al(e)){case"start":m[o]-=p*(n&&u?-1:1);break;case"end":m[o]+=p*(n&&u?-1:1);break}return m}async function NM(t,e){var n;e===void 0&&(e={});const{x:r,y:A,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=sl(e,t),v=IB(m),y=a[p?h==="floating"?"reference":"floating":h],w=eu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),C=h==="floating"?{x:r,y:A,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),Q=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},_=eu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(w.top-_.top+v.top)/Q.y,bottom:(_.bottom-w.bottom+v.bottom)/Q.y,left:(w.left-_.left+v.left)/Q.x,right:(_.right-w.right+v.right)/Q.x}}const LM=async(t,e,n)=>{const{placement:r="bottom",strategy:A="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:A}),{x:d,y:h}=UB(u,r,l),p=r,m={},v=0;for(let y=0;y<a.length;y++){var B;const{name:w,fn:C}=a[y],{x:S,y:Q,data:_,reset:D}=await C({x:d,y:h,initialPlacement:r,placement:p,strategy:A,middlewareData:m,rects:u,platform:{...o,detectOverflow:(B=o.detectOverflow)!=null?B:NM},elements:{reference:t,floating:e}});d=S??d,h=Q??h,m={...m,[w]:{...m[w],..._}},D&&v<=50&&(v++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(u=D.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:A}):D.rects),{x:d,y:h}=UB(u,p,l)),y=-1)}return{x:d,y:h,placement:p,strategy:A,middlewareData:m}},RM=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:A,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:d=0}=sl(t,e)||{};if(u==null)return{};const h=IB(d),p={x:n,y:r},m=rp(A),v=np(m),B=await o.getDimensions(u),y=m==="y",w=y?"top":"left",C=y?"bottom":"right",S=y?"clientHeight":"clientWidth",Q=i.reference[v]+i.reference[m]-p[m]-i.floating[v],_=p[m]-i.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let I=D?D[S]:0;(!I||!await(o.isElement==null?void 0:o.isElement(D)))&&(I=a.floating[S]||i.floating[v]);const $=Q/2-_/2,Y=I/2-B[v]/2-1,de=Gs(h[w],Y),ge=Gs(h[C],Y),me=de,we=I-B[v]-ge,te=I/2-B[v]/2+$,V=tp(me,te,we),q=!l.arrow&&al(A)!=null&&te!==V&&i.reference[v]/2-(te<me?de:ge)-B[v]/2<0,x=q?te<me?te-me:te-we:0;return{[m]:p[m]+x,data:{[m]:V,centerOffset:te-V-x,...q&&{alignmentOffset:x}},reset:q}}}),HM=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:A,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:B=!0,...y}=sl(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=Zo(A),C=to(a),S=Zo(a)===a,Q=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=p||(S||!B?[Vc(a)]:MM(a)),D=v!=="none";!p&&D&&_.push(...DM(a,B,v,Q));const I=[a,..._],$=await l.detectOverflow(e,y),Y=[];let de=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&Y.push($[w]),h){const te=TM(A,o,Q);Y.push($[te[0]],$[te[1]])}if(de=[...de,{placement:A,overflows:Y}],!Y.every(te=>te<=0)){var ge,me;const te=(((ge=i.flip)==null?void 0:ge.index)||0)+1,V=I[te];if(V&&(!(h==="alignment"?C!==to(V):!1)||de.every(T=>to(T.placement)===C?T.overflows[0]>0:!0)))return{data:{index:te,overflows:de},reset:{placement:V}};let q=(me=de.filter(x=>x.overflows[0]<=0).sort((x,T)=>x.overflows[1]-T.overflows[1])[0])==null?void 0:me.placement;if(!q)switch(m){case"bestFit":{var we;const x=(we=de.filter(T=>{if(D){const P=to(T.placement);return P===C||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,F)=>P+F,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:we[0];x&&(q=x);break}case"initialPlacement":q=a;break}if(A!==q)return{reset:{placement:q}}}return{}}}},PM=new Set(["left","top"]);async function $M(t,e){const{placement:n,platform:r,elements:A}=t,i=await(r.isRTL==null?void 0:r.isRTL(A.floating)),o=Zo(n),a=al(n),l=to(n)==="y",u=PM.has(o)?-1:1,d=i&&l?-1:1,h=sl(e,t);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),l?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const KM=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:A,y:i,placement:o,middlewareData:a}=e,l=await $M(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:A+l.x,y:i+l.y,data:{...l,placement:o}}}}},zM=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:A,platform:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x:C,y:S}=w;return{x:C,y:S}}},...u}=sl(t,e),d={x:n,y:r},h=await i.detectOverflow(e,u),p=to(Zo(A)),m=QB(p);let v=d[m],B=d[p];if(o){const w=m==="y"?"top":"left",C=m==="y"?"bottom":"right",S=v+h[w],Q=v-h[C];v=tp(S,v,Q)}if(a){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",S=B+h[w],Q=B-h[C];B=tp(S,B,Q)}const y=l.fn({...e,[m]:v,[p]:B});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[m]:o,[p]:a}}}}}};function tu(){return typeof window<"u"}function Vo(t){return ip(t)?(t.nodeName||"").toLowerCase():"#document"}function Dr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function GA(t){var e;return(e=(ip(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ip(t){return tu()?t instanceof Node||t instanceof Dr(t).Node:!1}function yA(t){return tu()?t instanceof Element||t instanceof Dr(t).Element:!1}function YA(t){return tu()?t instanceof HTMLElement||t instanceof Dr(t).HTMLElement:!1}function _B(t){return!tu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Dr(t).ShadowRoot}const WM=new Set(["inline","contents"]);function ll(t){const{overflow:e,overflowX:n,overflowY:r,display:A}=CA(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!WM.has(A)}const GM=new Set(["table","td","th"]);function YM(t){return GM.has(Vo(t))}const qM=[":popover-open",":modal"];function nu(t){return qM.some(e=>{try{return t.matches(e)}catch{return!1}})}const XM=["transform","translate","scale","rotate","perspective"],JM=["transform","translate","scale","rotate","perspective","filter"],jM=["paint","layout","strict","content"];function op(t){const e=sp(),n=yA(t)?CA(t):t;return XM.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||JM.some(r=>(n.willChange||"").includes(r))||jM.some(r=>(n.contain||"").includes(r))}function ZM(t){let e=no(t);for(;YA(e)&&!Ys(e);){if(op(e))return e;if(nu(e))return null;e=no(e)}return null}function sp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VM=new Set(["html","body","#document"]);function Ys(t){return VM.has(Vo(t))}function CA(t){return Dr(t).getComputedStyle(t)}function ru(t){return yA(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function no(t){if(Vo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_B(t)&&t.host||GA(t);return _B(e)?e.host:e}function DB(t){const e=no(t);return Ys(e)?t.ownerDocument?t.ownerDocument.body:t.body:YA(e)&&ll(e)?e:DB(e)}function cl(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const A=DB(t),i=A===((r=t.ownerDocument)==null?void 0:r.body),o=Dr(A);if(i){const a=ap(o);return e.concat(o,o.visualViewport||[],ll(A)?A:[],a&&n?cl(a):[])}return e.concat(A,cl(A,[],n))}function ap(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function OB(t){const e=CA(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const A=YA(t),i=A?t.offsetWidth:n,o=A?t.offsetHeight:r,a=jc(n)!==i||jc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function lp(t){return yA(t)?t:t.contextElement}function qs(t){const e=lp(t);if(!YA(e))return WA(1);const n=e.getBoundingClientRect(),{width:r,height:A,$:i}=OB(e);let o=(i?jc(n.width):n.width)/r,a=(i?jc(n.height):n.height)/A;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eI=WA(0);function NB(t){const e=Dr(t);return!sp()||!e.visualViewport?eI:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function tI(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Dr(t)?!1:e}function es(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const A=t.getBoundingClientRect(),i=lp(t);let o=WA(1);e&&(r?yA(r)&&(o=qs(r)):o=qs(t));const a=tI(i,n,r)?NB(i):WA(0);let l=(A.left+a.x)/o.x,u=(A.top+a.y)/o.y,d=A.width/o.x,h=A.height/o.y;if(i){const p=Dr(i),m=r&&yA(r)?Dr(r):r;let v=p,B=ap(v);for(;B&&r&&m!==v;){const y=qs(B),w=B.getBoundingClientRect(),C=CA(B),S=w.left+(B.clientLeft+parseFloat(C.paddingLeft))*y.x,Q=w.top+(B.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,h*=y.y,l+=S,u+=Q,v=Dr(B),B=ap(v)}}return eu({width:d,height:h,x:l,y:u})}function Au(t,e){const n=ru(t).scrollLeft;return e?e.left+n:es(GA(t)).left+n}function LB(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Au(t,n),A=n.top+e.scrollTop;return{x:r,y:A}}function nI(t){let{elements:e,rect:n,offsetParent:r,strategy:A}=t;const i=A==="fixed",o=GA(r),a=e?nu(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=WA(1);const d=WA(0),h=YA(r);if((h||!h&&!i)&&((Vo(r)!=="body"||ll(o))&&(l=ru(r)),YA(r))){const m=es(r);u=qs(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=o&&!h&&!i?LB(o,l):WA(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function rI(t){return Array.from(t.getClientRects())}function AI(t){const e=GA(t),n=ru(t),r=t.ownerDocument.body,A=jo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=jo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Au(t);const a=-n.scrollTop;return CA(r).direction==="rtl"&&(o+=jo(e.clientWidth,r.clientWidth)-A),{width:A,height:i,x:o,y:a}}const RB=25;function iI(t,e){const n=Dr(t),r=GA(t),A=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(A){i=A.width,o=A.height;const d=sp();(!d||d&&e==="fixed")&&(a=A.offsetLeft,l=A.offsetTop)}const u=Au(r);if(u<=0){const d=r.ownerDocument,h=d.body,p=getComputedStyle(h),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-h.clientWidth-m);v<=RB&&(i-=v)}else u<=RB&&(i+=u);return{width:i,height:o,x:a,y:l}}const oI=new Set(["absolute","fixed"]);function sI(t,e){const n=es(t,!0,e==="fixed"),r=n.top+t.clientTop,A=n.left+t.clientLeft,i=YA(t)?qs(t):WA(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=A*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function HB(t,e,n){let r;if(e==="viewport")r=iI(t,n);else if(e==="document")r=AI(GA(t));else if(yA(e))r=sI(e,n);else{const A=NB(t);r={x:e.x-A.x,y:e.y-A.y,width:e.width,height:e.height}}return eu(r)}function PB(t,e){const n=no(t);return n===e||!yA(n)||Ys(n)?!1:CA(n).position==="fixed"||PB(n,e)}function aI(t,e){const n=e.get(t);if(n)return n;let r=cl(t,[],!1).filter(a=>yA(a)&&Vo(a)!=="body"),A=null;const i=CA(t).position==="fixed";let o=i?no(t):t;for(;yA(o)&&!Ys(o);){const a=CA(o),l=op(o);!l&&a.position==="fixed"&&(A=null),(i?!l&&!A:!l&&a.position==="static"&&!!A&&oI.has(A.position)||ll(o)&&!l&&PB(t,o))?r=r.filter(d=>d!==o):A=a,o=no(o)}return e.set(t,r),r}function lI(t){let{element:e,boundary:n,rootBoundary:r,strategy:A}=t;const o=[...n==="clippingAncestors"?nu(e)?[]:aI(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const h=HB(e,d,A);return u.top=jo(h.top,u.top),u.right=Gs(h.right,u.right),u.bottom=Gs(h.bottom,u.bottom),u.left=jo(h.left,u.left),u},HB(e,a,A));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cI(t){const{width:e,height:n}=OB(t);return{width:e,height:n}}function uI(t,e,n){const r=YA(e),A=GA(e),i=n==="fixed",o=es(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=WA(0);function u(){l.x=Au(A)}if(r||!r&&!i)if((Vo(e)!=="body"||ll(A))&&(a=ru(e)),r){const m=es(e,!0,i,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else A&&u();i&&!r&&A&&u();const d=A&&!r&&!i?LB(A,a):WA(0),h=o.left+a.scrollLeft-l.x-d.x,p=o.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:o.width,height:o.height}}function cp(t){return CA(t).position==="static"}function $B(t,e){if(!YA(t)||CA(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return GA(t)===n&&(n=n.ownerDocument.body),n}function KB(t,e){const n=Dr(t);if(nu(t))return n;if(!YA(t)){let A=no(t);for(;A&&!Ys(A);){if(yA(A)&&!cp(A))return A;A=no(A)}return n}let r=$B(t,e);for(;r&&YM(r)&&cp(r);)r=$B(r,e);return r&&Ys(r)&&cp(r)&&!op(r)?n:r||ZM(t)||n}const dI=async function(t){const e=this.getOffsetParent||KB,n=this.getDimensions,r=await n(t.floating);return{reference:uI(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fI(t){return CA(t).direction==="rtl"}const hI={convertOffsetParentRelativeRectToViewportRelativeRect:nI,getDocumentElement:GA,getClippingRect:lI,getOffsetParent:KB,getElementRects:dI,getClientRects:rI,getDimensions:cI,getScale:qs,isElement:yA,isRTL:fI};function zB(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function pI(t,e){let n=null,r;const A=GA(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:p,height:m}=u;if(a||e(),!p||!m)return;const v=Zc(h),B=Zc(A.clientWidth-(d+p)),y=Zc(A.clientHeight-(h+m)),w=Zc(d),S={rootMargin:-v+"px "+-B+"px "+-y+"px "+-w+"px",threshold:jo(0,Gs(1,l))||1};let Q=!0;function _(D){const I=D[0].intersectionRatio;if(I!==l){if(!Q)return o();I?o(!1,I):r=setTimeout(()=>{o(!1,1e-7)},1e3)}I===1&&!zB(u,t.getBoundingClientRect())&&o(),Q=!1}try{n=new IntersectionObserver(_,{...S,root:A.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(t)}return o(!0),i}function mI(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:A=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=lp(t),d=A||i?[...u?cl(u):[],...cl(e)]:[];d.forEach(w=>{A&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=u&&a?pI(u,n):null;let p=-1,m=null;o&&(m=new ResizeObserver(w=>{let[C]=w;C&&C.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(e)})),n()}),u&&!l&&m.observe(u),m.observe(e));let v,B=l?es(t):null;l&&y();function y(){const w=es(t);B&&!zB(B,w)&&n(),B=w,v=requestAnimationFrame(y)}return n(),()=>{var w;d.forEach(C=>{A&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(w=m)==null||w.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const gI=KM,vI=zM,wI=HM,BI=RM,yI=(t,e,n)=>{const r=new Map,A={platform:hI,...n},i={...A.platform,_c:r};return LM(t,e,{...A,platform:i})};function CI(t){return t!=null&&typeof t=="object"&&"$el"in t}function up(t){if(CI(t)){const e=t.$el;return ip(e)&&Vo(e)==="#comment"?null:e}return t}function Xs(t){return typeof t=="function"?t():s.unref(t)}function bI(t){return{name:"arrow",options:t,fn(e){const n=up(Xs(t.element));return n==null?{}:BI({element:n,padding:t.padding}).fn(e)}}}function WB(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function GB(t,e){const n=WB(t);return Math.round(e*n)/n}function EI(t,e,n){n===void 0&&(n={});const r=n.whileElementsMounted,A=s.computed(()=>{var I;return(I=Xs(n.open))!=null?I:!0}),i=s.computed(()=>Xs(n.middleware)),o=s.computed(()=>{var I;return(I=Xs(n.placement))!=null?I:"bottom"}),a=s.computed(()=>{var I;return(I=Xs(n.strategy))!=null?I:"absolute"}),l=s.computed(()=>{var I;return(I=Xs(n.transform))!=null?I:!0}),u=s.computed(()=>up(t.value)),d=s.computed(()=>up(e.value)),h=s.ref(0),p=s.ref(0),m=s.ref(a.value),v=s.ref(o.value),B=s.shallowRef({}),y=s.ref(!1),w=s.computed(()=>{const I={position:m.value,left:"0",top:"0"};if(!d.value)return I;const $=GB(d.value,h.value),Y=GB(d.value,p.value);return l.value?{...I,transform:"translate("+$+"px, "+Y+"px)",...WB(d.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:$+"px",top:Y+"px"}});let C;function S(){if(u.value==null||d.value==null)return;const I=A.value;yI(u.value,d.value,{middleware:i.value,placement:o.value,strategy:a.value}).then($=>{h.value=$.x,p.value=$.y,m.value=$.strategy,v.value=$.placement,B.value=$.middlewareData,y.value=I!==!1})}function Q(){typeof C=="function"&&(C(),C=void 0)}function _(){if(Q(),r===void 0){S();return}if(u.value!=null&&d.value!=null){C=r(u.value,d.value,S);return}}function D(){A.value||(y.value=!1)}return s.watch([i,o,a,A],S,{flush:"sync"}),s.watch([u,d],_,{flush:"sync"}),s.watch(A,D,{flush:"sync"}),s.getCurrentScope()&&s.onScopeDispose(Q),{x:s.shallowReadonly(h),y:s.shallowReadonly(p),strategy:s.shallowReadonly(m),placement:s.shallowReadonly(v),middlewareData:s.shallowReadonly(B),isPositioned:s.shallowReadonly(y),floatingStyles:w,update:S}}const YB=6048e5,kI=864e5,SI=6e4,xI=36e5,FI=1e3,qB=Symbol.for("constructDateFrom");function _t(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&qB in t?t[qB](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ve(t,e){return _t(e||t,t)}function Xr(t,e,n){const r=Ve(t,n?.in);return isNaN(e)?_t(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function bA(t,e,n){const r=Ve(t,n?.in);if(isNaN(e))return _t(t,NaN);if(!e)return r;const A=r.getDate(),i=_t(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const o=i.getDate();return A>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),A),r)}function XB(t,e,n){const{years:r=0,months:A=0,weeks:i=0,days:o=0,hours:a=0,minutes:l=0,seconds:u=0}=e,d=Ve(t,n?.in),h=A||r?bA(d,A+r*12):d,p=o||i?Xr(h,o+i*7):h,m=l+a*60,B=(u+m*60)*1e3;return _t(t,+p+B)}let QI={};function ts(){return QI}function Jr(t,e){const n=ts(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,A=Ve(t,e?.in),i=A.getDay(),o=(i<r?7:0)+i-r;return A.setDate(A.getDate()-o),A.setHours(0,0,0,0),A}function Js(t,e){return Jr(t,{...e,weekStartsOn:1})}function JB(t,e){const n=Ve(t,e?.in),r=n.getFullYear(),A=_t(n,0);A.setFullYear(r+1,0,4),A.setHours(0,0,0,0);const i=Js(A),o=_t(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=Js(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function iu(t){const e=Ve(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function ul(t,...e){const n=_t.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function jB(t,e){const n=Ve(t,e?.in);return n.setHours(0,0,0,0),n}function ZB(t,e,n){const[r,A]=ul(n?.in,t,e),i=jB(r),o=jB(A),a=+i-iu(i),l=+o-iu(o);return Math.round((a-l)/kI)}function TI(t,e){const n=JB(t,e),r=_t(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Js(r)}function MI(t,e,n){return bA(t,e*3,n)}function dp(t,e,n){return bA(t,e*12,n)}function VB(t,e){const n=+Ve(t)-+Ve(e);return n<0?-1:n>0?1:n}function e0(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function dl(t){return!(!e0(t)&&typeof t!="number"||isNaN(+Ve(t)))}function t0(t,e){const n=Ve(t,e?.in);return Math.trunc(n.getMonth()/3)+1}function II(t,e,n){const[r,A]=ul(n?.in,t,e);return r.getFullYear()-A.getFullYear()}function UI(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function _I(t,e,n){const[r,A]=ul(n?.in,t,e),i=VB(r,A),o=Math.abs(II(r,A));r.setFullYear(1584),A.setFullYear(1584);const a=VB(r,A)===-i,l=i*(o-+a);return l===0?0:l}function n0(t,e){const[n,r]=ul(t,e.start,e.end);return{start:n,end:r}}function fp(t,e){const{start:n,end:r}=n0(e?.in,t);let A=+n>+r;const i=A?+n:+r,o=A?r:n;o.setHours(0,0,0,0);let a=1;const l=[];for(;+o<=i;)l.push(_t(n,o)),o.setDate(o.getDate()+a),o.setHours(0,0,0,0);return A?l.reverse():l}function ns(t,e){const n=Ve(t,e?.in),r=n.getMonth(),A=r-r%3;return n.setMonth(A,1),n.setHours(0,0,0,0),n}function DI(t,e){const{start:n,end:r}=n0(e?.in,t);let A=+n>+r;const i=A?+ns(n):+ns(r);let o=ns(A?r:n),a=1;const l=[];for(;+o<=i;)l.push(_t(n,o)),o=MI(o,a);return A?l.reverse():l}function OI(t,e){const n=Ve(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function r0(t,e){const n=Ve(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function js(t,e){const n=Ve(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hp(t,e){const n=ts(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,A=Ve(t,e?.in),i=A.getDay(),o=(i<r?-7:0)+6-(i-r);return A.setDate(A.getDate()+o),A.setHours(23,59,59,999),A}function A0(t,e){const n=Ve(t,e?.in),r=n.getMonth(),A=r-r%3+3;return n.setMonth(A,0),n.setHours(23,59,59,999),n}const NI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},LI=(t,e,n)=>{let r;const A=NI[t];return typeof A=="string"?r=A:e===1?r=A.one:r=A.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function yi(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const RI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},HI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$I={date:yi({formats:RI,defaultWidth:"full"}),time:yi({formats:HI,defaultWidth:"full"}),dateTime:yi({formats:PI,defaultWidth:"full"})},KI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zI=(t,e,n,r)=>KI[t];function ur(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let A;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;A=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;A=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return A[i]}}const WI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},GI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},XI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},JI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jI={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ur({values:WI,defaultWidth:"wide"}),quarter:ur({values:GI,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ur({values:YI,defaultWidth:"wide"}),day:ur({values:qI,defaultWidth:"wide"}),dayPeriod:ur({values:XI,defaultWidth:"wide",formattingValues:JI,defaultFormattingWidth:"wide"})};function dr(t){return(e,n={})=>{const r=n.width,A=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(A);if(!i)return null;const o=i[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?VI(a,h=>h.test(o)):ZI(a,h=>h.test(o));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(o.length);return{value:u,rest:d}}}function ZI(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function VI(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function pp(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const A=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(A.length);return{value:o,rest:a}}}const eU=/^(\d+)(th|st|nd|rd)?/i,tU=/\d+/i,nU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rU={any:[/^b/i,/^(a|c)/i]},AU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iU={any:[/1/i,/2/i,/3/i,/4/i]},oU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dU={ordinalNumber:pp({matchPattern:eU,parsePattern:tU,valueCallback:t=>parseInt(t,10)}),era:dr({matchPatterns:nU,defaultMatchWidth:"wide",parsePatterns:rU,defaultParseWidth:"any"}),quarter:dr({matchPatterns:AU,defaultMatchWidth:"wide",parsePatterns:iU,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dr({matchPatterns:oU,defaultMatchWidth:"wide",parsePatterns:sU,defaultParseWidth:"any"}),day:dr({matchPatterns:aU,defaultMatchWidth:"wide",parsePatterns:lU,defaultParseWidth:"any"}),dayPeriod:dr({matchPatterns:cU,defaultMatchWidth:"any",parsePatterns:uU,defaultParseWidth:"any"})},ou={code:"en-US",formatDistance:LI,formatLong:$I,formatRelative:zI,localize:jI,match:dU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fU(t,e){const n=Ve(t,e?.in);return ZB(n,js(n))+1}function mp(t,e){const n=Ve(t,e?.in),r=+Js(n)-+TI(n);return Math.round(r/YB)+1}function gp(t,e){const n=Ve(t,e?.in),r=n.getFullYear(),A=ts(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??A.firstWeekContainsDate??A.locale?.options?.firstWeekContainsDate??1,o=_t(e?.in||t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=Jr(o,e),l=_t(e?.in||t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Jr(l,e);return+n>=+a?r+1:+n>=+u?r:r-1}function hU(t,e){const n=ts(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,A=gp(t,e),i=_t(e?.in||t,0);return i.setFullYear(A,0,r),i.setHours(0,0,0,0),Jr(i,e)}function vp(t,e){const n=Ve(t,e?.in),r=+Jr(n,e)-+hU(n,e);return Math.round(r/YB)+1}function Dt(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const ro={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Dt(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Dt(n+1,2)},d(t,e){return Dt(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Dt(t.getHours()%12||12,e.length)},H(t,e){return Dt(t.getHours(),e.length)},m(t,e){return Dt(t.getMinutes(),e.length)},s(t,e){return Dt(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),A=Math.trunc(r*Math.pow(10,n-3));return Dt(A,e.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},i0={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),A=r>0?r:1-r;return n.ordinalNumber(A,{unit:"year"})}return ro.y(t,e)},Y:function(t,e,n,r){const A=gp(t,r),i=A>0?A:1-A;if(e==="YY"){const o=i%100;return Dt(o,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Dt(i,e.length)},R:function(t,e){const n=JB(t);return Dt(n,e.length)},u:function(t,e){const n=t.getFullYear();return Dt(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Dt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Dt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return ro.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Dt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const A=vp(t,r);return e==="wo"?n.ordinalNumber(A,{unit:"week"}):Dt(A,e.length)},I:function(t,e,n){const r=mp(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Dt(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):ro.d(t,e)},D:function(t,e,n){const r=fU(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Dt(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const A=t.getDay(),i=(A-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Dt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(A,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(A,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(A,{width:"short",context:"formatting"});default:return n.day(A,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const A=t.getDay(),i=(A-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Dt(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(A,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(A,{width:"narrow",context:"standalone"});case"cccccc":return n.day(A,{width:"short",context:"standalone"});default:return n.day(A,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),A=r===0?7:r;switch(e){case"i":return String(A);case"ii":return Dt(A,e.length);case"io":return n.ordinalNumber(A,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const A=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(A,{width:"narrow",context:"formatting"});default:return n.dayPeriod(A,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let A;switch(r===12?A=Zs.noon:r===0?A=Zs.midnight:A=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(A,{width:"narrow",context:"formatting"});default:return n.dayPeriod(A,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let A;switch(r>=17?A=Zs.evening:r>=12?A=Zs.afternoon:r>=4?A=Zs.morning:A=Zs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(A,{width:"narrow",context:"formatting"});default:return n.dayPeriod(A,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ro.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):ro.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Dt(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Dt(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):ro.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):ro.s(t,e)},S:function(t,e){return ro.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return s0(r);case"XXXX":case"XX":return rs(r);default:return rs(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return s0(r);case"xxxx":case"xx":return rs(r);default:return rs(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+o0(r,":");default:return"GMT"+rs(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+o0(r,":");default:return"GMT"+rs(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Dt(r,e.length)},T:function(t,e,n){return Dt(+t,e.length)}};function o0(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),A=Math.trunc(r/60),i=r%60;return i===0?n+String(A):n+String(A)+e+Dt(i,2)}function s0(t,e){return t%60===0?(t>0?"-":"+")+Dt(Math.abs(t)/60,2):rs(t,e)}function rs(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),A=Dt(Math.trunc(r/60),2),i=Dt(r%60,2);return n+A+e+i}const a0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},l0=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},wp={p:l0,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],A=n[2];if(!A)return a0(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",a0(r,e)).replace("{{time}}",l0(A,e))}},pU=/^D+$/,mU=/^Y+$/,gU=["D","DD","YY","YYYY"];function c0(t){return pU.test(t)}function u0(t){return mU.test(t)}function Bp(t,e,n){const r=vU(t,e,n);if(console.warn(r),gU.includes(t))throw new RangeError(r)}function vU(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const wU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yU=/^'([^]*?)'?$/,CU=/''/g,bU=/[a-zA-Z]/;function jr(t,e,n){const r=ts(),A=n?.locale??r.locale??ou,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Ve(t,n?.in);if(!dl(a))throw new RangeError("Invalid time value");let l=e.match(BU).map(d=>{const h=d[0];if(h==="p"||h==="P"){const p=wp[h];return p(d,A.formatLong)}return d}).join("").match(wU).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const h=d[0];if(h==="'")return{isToken:!1,value:EU(d)};if(i0[h])return{isToken:!0,value:d};if(h.match(bU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:d}});A.localize.preprocessor&&(l=A.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:A};return l.map(d=>{if(!d.isToken)return d.value;const h=d.value;(!n?.useAdditionalWeekYearTokens&&u0(h)||!n?.useAdditionalDayOfYearTokens&&c0(h))&&Bp(h,e,String(t));const p=i0[h[0]];return p(a,h,A.localize,u)}).join("")}function EU(t){const e=t.match(yU);return e?e[1].replace(CU,"'"):t}function kU(t,e){return Ve(t,e?.in).getDay()}function SU(t,e){const n=Ve(t,e?.in),r=n.getFullYear(),A=n.getMonth(),i=_t(n,0);return i.setFullYear(r,A+1,0),i.setHours(0,0,0,0),i.getDate()}function xU(){return Object.assign({},ts())}function qA(t,e){return Ve(t,e?.in).getHours()}function FU(t,e){const n=Ve(t,e?.in).getDay();return n===0?7:n}function Ci(t,e){return Ve(t,e?.in).getMinutes()}function gt(t,e){return Ve(t,e?.in).getMonth()}function Ao(t){return Ve(t).getSeconds()}function tt(t,e){return Ve(t,e?.in).getFullYear()}function XA(t,e){return+Ve(t)>+Ve(e)}function bi(t,e){return+Ve(t)<+Ve(e)}function Vs(t,e){return+Ve(t)==+Ve(e)}function QU(t,e){const n=TU(e)?new e(0):_t(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function TU(t){return typeof t=="function"&&t.prototype?.constructor===t}const MU=10;class d0{subPriority=0;validate(e,n){return!0}}class IU extends d0{constructor(e,n,r,A,i){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=A,i&&(this.subPriority=i)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class UU extends d0{priority=MU;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>_t(n,r))}set(e,n){return n.timestampIsSet?e:_t(e,QU(e,this.context))}}let Qt=class{run(e,n,r,A){const i=this.parse(e,n,r,A);return i?{setter:new IU(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,n,r){return!0}};class _U extends Qt{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const un={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},JA={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dn(t,e){return t&&{value:e(t.value),rest:t.rest}}function Vt(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jA(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,A=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(A*xI+i*SI+o*FI),rest:e.slice(n[0].length)}}function f0(t){return Vt(un.anyDigitsSigned,t)}function An(t,e){switch(t){case 1:return Vt(un.singleDigit,e);case 2:return Vt(un.twoDigits,e);case 3:return Vt(un.threeDigits,e);case 4:return Vt(un.fourDigits,e);default:return Vt(new RegExp("^\\d{1,"+t+"}"),e)}}function su(t,e){switch(t){case 1:return Vt(un.singleDigitSigned,e);case 2:return Vt(un.twoDigitsSigned,e);case 3:return Vt(un.threeDigitsSigned,e);case 4:return Vt(un.fourDigitsSigned,e);default:return Vt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function yp(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function h0(t,e){const n=e>0,r=n?e:1-e;let A;if(r<=50)A=t||100;else{const i=r+50,o=Math.trunc(i/100)*100,a=t>=i%100;A=t+o-(a?100:0)}return n?A:1-A}function p0(t){return t%400===0||t%4===0&&t%100!==0}class DU extends Qt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const A=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return dn(An(4,e),A);case"yo":return dn(r.ordinalNumber(e,{unit:"year"}),A);default:return dn(An(n.length,e),A)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const A=e.getFullYear();if(r.isTwoDigitYear){const o=h0(r.year,A);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class OU extends Qt{priority=130;parse(e,n,r){const A=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return dn(An(4,e),A);case"Yo":return dn(r.ordinalNumber(e,{unit:"year"}),A);default:return dn(An(n.length,e),A)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,A){const i=gp(e,A);if(r.isTwoDigitYear){const a=h0(r.year,i);return e.setFullYear(a,0,A.firstWeekContainsDate),e.setHours(0,0,0,0),Jr(e,A)}const o=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(o,0,A.firstWeekContainsDate),e.setHours(0,0,0,0),Jr(e,A)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class NU extends Qt{priority=130;parse(e,n){return su(n==="R"?4:n.length,e)}set(e,n,r){const A=_t(e,0);return A.setFullYear(r,0,4),A.setHours(0,0,0,0),Js(A)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class LU extends Qt{priority=130;parse(e,n){return su(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class RU extends Qt{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return An(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class HU extends Qt{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return An(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class PU extends Qt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const A=i=>i-1;switch(n){case"M":return dn(Vt(un.month,e),A);case"MM":return dn(An(2,e),A);case"Mo":return dn(r.ordinalNumber(e,{unit:"month"}),A);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class $U extends Qt{priority=110;parse(e,n,r){const A=i=>i-1;switch(n){case"L":return dn(Vt(un.month,e),A);case"LL":return dn(An(2,e),A);case"Lo":return dn(r.ordinalNumber(e,{unit:"month"}),A);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function KU(t,e,n){const r=Ve(t,n?.in),A=vp(r,n)-e;return r.setDate(r.getDate()-A*7),Ve(r,n?.in)}class zU extends Qt{priority=100;parse(e,n,r){switch(n){case"w":return Vt(un.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,A){return Jr(KU(e,r,A),A)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function WU(t,e,n){const r=Ve(t,n?.in),A=mp(r,n)-e;return r.setDate(r.getDate()-A*7),r}class GU extends Qt{priority=100;parse(e,n,r){switch(n){case"I":return Vt(un.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Js(WU(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const YU=[31,28,31,30,31,30,31,31,30,31,30,31],qU=[31,29,31,30,31,30,31,31,30,31,30,31];class XU extends Qt{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return Vt(un.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return An(n.length,e)}}validate(e,n){const r=e.getFullYear(),A=p0(r),i=e.getMonth();return A?n>=1&&n<=qU[i]:n>=1&&n<=YU[i]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class JU extends Qt{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return Vt(un.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return An(n.length,e)}}validate(e,n){const r=e.getFullYear();return p0(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Cp(t,e,n){const r=ts(),A=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ve(t,n?.in),o=i.getDay(),l=(e%7+7)%7,u=7-A,d=e<0||e>6?e-(o+u)%7:(l+u)%7-(o+u)%7;return Xr(i,d,n)}class jU extends Qt{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,A){return e=Cp(e,r,A),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class ZU extends Qt{priority=90;parse(e,n,r,A){const i=o=>{const a=Math.floor((o-1)/7)*7;return(o+A.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return dn(An(n.length,e),i);case"eo":return dn(r.ordinalNumber(e,{unit:"day"}),i);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,A){return e=Cp(e,r,A),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class VU extends Qt{priority=90;parse(e,n,r,A){const i=o=>{const a=Math.floor((o-1)/7)*7;return(o+A.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return dn(An(n.length,e),i);case"co":return dn(r.ordinalNumber(e,{unit:"day"}),i);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,A){return e=Cp(e,r,A),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function e_(t,e,n){const r=Ve(t,n?.in),A=FU(r,n),i=e-A;return Xr(r,i,n)}class t_ extends Qt{priority=90;parse(e,n,r){const A=i=>i===0?7:i;switch(n){case"i":case"ii":return An(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return dn(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),A);case"iiiii":return dn(r.day(e,{width:"narrow",context:"formatting"}),A);case"iiiiii":return dn(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),A);default:return dn(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),A)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=e_(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class n_ extends Qt{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(yp(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class r_ extends Qt{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(yp(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class A_ extends Qt{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(yp(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class i_ extends Qt{priority=70;parse(e,n,r){switch(n){case"h":return Vt(un.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const A=e.getHours()>=12;return A&&r<12?e.setHours(r+12,0,0,0):!A&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class o_ extends Qt{priority=70;parse(e,n,r){switch(n){case"H":return Vt(un.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class s_ extends Qt{priority=70;parse(e,n,r){switch(n){case"K":return Vt(un.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class a_ extends Qt{priority=70;parse(e,n,r){switch(n){case"k":return Vt(un.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return An(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const A=r<=24?r%24:r;return e.setHours(A,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class l_ extends Qt{priority=60;parse(e,n,r){switch(n){case"m":return Vt(un.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class c_ extends Qt{priority=50;parse(e,n,r){switch(n){case"s":return Vt(un.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return An(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class u_ extends Qt{priority=30;parse(e,n){const r=A=>Math.trunc(A*Math.pow(10,-n.length+3));return dn(An(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class d_ extends Qt{priority=10;parse(e,n){switch(n){case"X":return jA(JA.basicOptionalMinutes,e);case"XX":return jA(JA.basic,e);case"XXXX":return jA(JA.basicOptionalSeconds,e);case"XXXXX":return jA(JA.extendedOptionalSeconds,e);default:return jA(JA.extended,e)}}set(e,n,r){return n.timestampIsSet?e:_t(e,e.getTime()-iu(e)-r)}incompatibleTokens=["t","T","x"]}class f_ extends Qt{priority=10;parse(e,n){switch(n){case"x":return jA(JA.basicOptionalMinutes,e);case"xx":return jA(JA.basic,e);case"xxxx":return jA(JA.basicOptionalSeconds,e);case"xxxxx":return jA(JA.extendedOptionalSeconds,e);default:return jA(JA.extended,e)}}set(e,n,r){return n.timestampIsSet?e:_t(e,e.getTime()-iu(e)-r)}incompatibleTokens=["t","T","X"]}class h_ extends Qt{priority=40;parse(e){return f0(e)}set(e,n,r){return[_t(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class p_ extends Qt{priority=20;parse(e){return f0(e)}set(e,n,r){return[_t(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const m_={G:new _U,y:new DU,Y:new OU,R:new NU,u:new LU,Q:new RU,q:new HU,M:new PU,L:new $U,w:new zU,I:new GU,d:new XU,D:new JU,E:new jU,e:new ZU,c:new VU,i:new t_,a:new n_,b:new r_,B:new A_,h:new i_,H:new o_,K:new s_,k:new a_,m:new l_,s:new c_,S:new u_,X:new d_,x:new f_,t:new h_,T:new p_},g_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w_=/^'([^]*?)'?$/,B_=/''/g,y_=/\S/,C_=/[a-zA-Z]/;function bp(t,e,n,r){const A=()=>_t(r?.in||n,NaN),i=xU(),o=r?.locale??i.locale??ou,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return t?A():Ve(n,r?.in);const u={firstWeekContainsDate:a,weekStartsOn:l,locale:o},d=[new UU(r?.in,n)],h=e.match(v_).map(y=>{const w=y[0];if(w in wp){const C=wp[w];return C(y,o.formatLong)}return y}).join("").match(g_),p=[];for(let y of h){!r?.useAdditionalWeekYearTokens&&u0(y)&&Bp(y,e,t),!r?.useAdditionalDayOfYearTokens&&c0(y)&&Bp(y,e,t);const w=y[0],C=m_[w];if(C){const{incompatibleTokens:S}=C;if(Array.isArray(S)){const _=p.find(D=>S.includes(D.token)||D.token===w);if(_)throw new RangeError(`The format string mustn't contain \`${_.fullToken}\` and \`${y}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${y}\` and any other token at the same time`);p.push({token:w,fullToken:y});const Q=C.run(t,y,o.match,u);if(!Q)return A();d.push(Q.setter),t=Q.rest}else{if(w.match(C_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");if(y==="''"?y="'":w==="'"&&(y=b_(y)),t.indexOf(y)===0)t=t.slice(y.length);else return A()}}if(t.length>0&&y_.test(t))return A();const m=d.map(y=>y.priority).sort((y,w)=>w-y).filter((y,w,C)=>C.indexOf(y)===w).map(y=>d.filter(w=>w.priority===y).sort((w,C)=>C.subPriority-w.subPriority)).map(y=>y[0]);let v=Ve(n,r?.in);if(isNaN(+v))return A();const B={};for(const y of m){if(!y.validate(v,u))return A();const w=y.set(v,B,u);Array.isArray(w)?(v=w[0],Object.assign(B,w[1])):v=w}return v}function b_(t){return t.match(w_)[1].replace(B_,"'")}function m0(t,e,n){const[r,A]=ul(n?.in,t,e);return+ns(r)==+ns(A)}function g0(t,e,n){return Xr(t,-e,n)}function E_(t,e){const n=e?.nearestTo??1;if(n<1||n>30)return _t(t,NaN);const r=Ve(t,e?.in),A=r.getSeconds()/60,i=r.getMilliseconds()/1e3/60,o=r.getMinutes()+A+i,a=e?.roundingMethod??"round",u=UI(a)(o/n)*n;return r.setMinutes(u,0,0),r}function v0(t,e,n){const r=Ve(t,n?.in),A=r.getFullYear(),i=r.getDate(),o=_t(t,0);o.setFullYear(A,e,15),o.setHours(0,0,0,0);const a=SU(o);return r.setMonth(e,Math.min(i,a)),r}function ft(t,e,n){let r=Ve(t,n?.in);return isNaN(+r)?_t(t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=v0(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function k_(t,e,n){const r=Ve(t,n?.in);return r.setMilliseconds(e),r}function S_(t,e,n){const r=Ve(t,n?.in);return r.setSeconds(e),r}function EA(t,e,n){const r=Ve(t,n?.in);return isNaN(+r)?_t(t,NaN):(r.setFullYear(e),r)}function ea(t,e,n){return bA(t,-e,n)}function x_(t,e,n){const{years:r=0,months:A=0,weeks:i=0,days:o=0,hours:a=0,minutes:l=0,seconds:u=0}=e,d=ea(t,A+r*12,n),h=g0(d,o+i*7,n),p=l+a*60,v=(u+p*60)*1e3;return _t(t,+h-v)}function w0(t,e,n){return dp(t,-e,n)}function F_(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}const Q_={},fl={};function As(t,e){try{const r=(Q_[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return r in fl?fl[r]:B0(r,r.split(":"))}catch{if(t in fl)return fl[t];const n=t?.match(T_);return n?B0(t,n.slice(1)):NaN}}const T_=/([+-]\d\d):?(\d\d)?/;function B0(t,e){const n=+(e[0]||0),r=+(e[1]||0),A=+(e[2]||0)/60;return fl[t]=n*60+r>0?n*60+r+A:n*60-r-A}class ZA extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(As(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),C0(this),Ep(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new ZA(...n,e):new ZA(Date.now(),e)}withTimeZone(e){return new ZA(+this,e)}getTimezoneOffset(){const e=-As(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Ep(this),+this}[Symbol.for("constructDateFrom")](e){return new ZA(+new Date(e),this.timeZone)}}const y0=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!y0.test(t))return;const e=t.replace(y0,"$1UTC");ZA.prototype[e]&&(t.startsWith("get")?ZA.prototype[t]=function(){return this.internal[e]()}:(ZA.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),M_(this),+this},ZA.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),Ep(this),+this}))});function Ep(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-As(t.timeZone,t)*60))}function M_(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),C0(t)}function C0(t){const e=As(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),r=new Date(+t);r.setUTCHours(r.getUTCHours()-1);const A=-new Date(+t).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),o=A-i,a=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();o&&a&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+o);const l=A-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const u=new Date(+t);u.setUTCSeconds(0);const d=A>0?u.getSeconds():(u.getSeconds()-60)%60,h=Math.round(-(As(t.timeZone,t)*60))%60;(h||d)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+h),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+h+d));const p=As(t.timeZone,t),m=p>0?Math.floor(p):Math.ceil(p),B=-new Date(+t).getTimezoneOffset()-m,y=m!==n,w=B-l;if(y&&w){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+w);const C=As(t.timeZone,t),S=C>0?Math.floor(C):Math.ceil(C),Q=m-S;Q&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+Q),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+Q))}}class ta extends ZA{static tz(e,...n){return n.length?new ta(...n,e):new ta(Date.now(),e)}toISOString(){const[e,n,r]=this.tzComponents(),A=`${e}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+A}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,n,r,A]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${n} ${A}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[n,r,A]=this.tzComponents();return`${e} GMT${n}${r}${A} (${F_(this.timeZone,this)})`}toLocaleString(e,n){return Date.prototype.toLocaleString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(e,n){return Date.prototype.toLocaleDateString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(e,n){return Date.prototype.toLocaleTimeString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),n=e>0?"-":"+",r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),A=String(Math.abs(e)%60).padStart(2,"0");return[n,r,A]}withTimeZone(e){return new ta(+this,e)}[Symbol.for("constructDateFrom")](e){return new ta(+new Date(e),this.timeZone)}}function hl(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),s.h("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.h("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.h("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function I_(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),s.h("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function b0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function E0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function k0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),s.h("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function S0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function x0(){return s.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[s.h("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const F0=Symbol("ContextKey"),U_=(t,e)=>{const{setTimeModelValue:n}=Sn(),r=SD(t),A=s.ref(null),i=s.reactive({menuFocused:!1,shiftKeyInMenu:!1,isInputFocused:!1,isTextInputDate:!1,arrowNavigationLevel:0}),o=r.getDate(new Date),a=s.ref(""),l=s.ref([{month:gt(o),year:tt(o)}]),u=s.reactive({hours:0,minutes:0,seconds:0});n(u,null,o,r.range.value.enabled);const d=s.computed({get:()=>A.value,set:B=>{A.value=B}}),h=s.computed(()=>B=>l.value[B]?l.value[B].month:0),p=s.computed(()=>B=>l.value[B]?l.value[B].year:0),m=(B,y)=>{i[B]=y},v=()=>{n(u,d.value,o,r.range.value.enabled)};s.provide(F0,{rootProps:t,defaults:r,modelValue:d,state:s.readonly(i),rootEmit:e,calendars:l,month:h,year:p,time:u,today:o,inputValue:a,setState:m,updateTime:v,getDate:r.getDate})},pt=()=>{const t=s.inject(F0);if(!t)throw new Error("Can't use context");return t};var kA=(t=>(t.month="month",t.year="year",t))(kA||{}),is=(t=>(t.header="header",t.calendar="calendar",t.timePicker="timePicker",t))(is||{}),fr=(t=>(t.month="month",t.year="year",t.calendar="calendar",t.time="time",t.minutes="minutes",t.hours="hours",t.seconds="seconds",t))(fr||{});const __=["timestamp","date","iso"];var SA=(t=>(t.up="up",t.down="down",t.left="left",t.right="right",t))(SA||{}),Nt=(t=>(t.arrowUp="ArrowUp",t.arrowDown="ArrowDown",t.arrowLeft="ArrowLeft",t.arrowRight="ArrowRight",t.enter="Enter",t.space=" ",t.esc="Escape",t.tab="Tab",t.home="Home",t.end="End",t.pageUp="PageUp",t.pageDown="PageDown",t))(Nt||{}),na=(t=>(t.MONTH_AND_YEAR="MM-yyyy",t.YEAR="yyyy",t.DATE="dd-MM-yyyy",t))(na||{}),Q0=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(Q0||{});const D_=()=>{const{rootProps:t,state:e}=pt(),n=s.computed(()=>e.arrowNavigationLevel),r=s.ref(-1),A=s.ref(-1);s.watch(n,(C,S)=>{w(C===0&&S>0)});const i=s.ref([]),o=s.ref(new Map),a=()=>{const C=Array.from(document.querySelectorAll(`[data-dp-action-element="${n.value}"]`)),S=new Map,Q=new Map;for(const _ of C){const D=_.getBoundingClientRect(),I=D.top,$=D.left;S.has(I)||S.set(I,[]),S.get(I).push(_),Q.set(_,{row:I,col:$})}i.value=Array.from(S.entries()).sort((_,D)=>_[0]-D[0]).map(([_,D])=>l(D,Q)),o.value=Q},l=(C,S)=>C.sort((Q,_)=>{const D=S.get(Q),I=S.get(_);return D.col-I.col}),u=(C,S)=>{n.value===0&&(r.value=C,A.value=S)},d=C=>{if(![Nt.arrowUp,Nt.arrowDown,Nt.arrowLeft,Nt.arrowRight].includes(C.key))return;a(),C.preventDefault();const S=document.activeElement;if(!S?.hasAttribute("data-dp-action-element"))return;let Q=-1,_=-1;for(let D=0;D<i.value.length;D++){const I=i.value[D].indexOf(S);if(I!==-1){Q=D,_=I;break}}if(Q!==-1)switch(C.key){case Nt.arrowLeft:return h(Q,_);case Nt.arrowRight:return p(Q,_);case Nt.arrowUp:return m(Q,_);case Nt.arrowDown:return v(Q,_);default:return}},h=(C,S)=>{if(S>0){const Q=i.value[C][S-1];u(C,S-1),Q&&Q.focus()}},p=(C,S)=>{if(S<i.value[C].length-1){const Q=i.value[C][S+1];u(C,S+1),Q&&Q.focus()}},m=(C,S)=>{if(C>0){const Q=i.value[C-1],_=Math.min(S,Q.length-1),D=Q[_];u(C-1,_),D&&D.focus()}},v=(C,S)=>{if(C<i.value.length-1){const Q=i.value[C+1],_=Math.min(S,Q.length-1),D=Q[_];u(C+1,_),D&&D.focus()}},B=()=>{s.nextTick().then(()=>{a();const C=i.value[r.value]?.[A.value];C&&y(C)})},y=C=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.focus({preventScroll:!0})})})},w=C=>{if(C)return B();const S=document.querySelector(`[data-dp-element-active="${n.value}"]`);if(S&&!C)y(S);else{const Q=document.querySelector(`[data-dp-action-element="${n.value}"]`);Q&&y(Q)}};s.onMounted(()=>{t.arrowNavigation&&(w(!1),document.addEventListener("keydown",d))}),s.onUnmounted(()=>{t.arrowNavigation&&document.removeEventListener("keydown",d)})},O_=()=>{const{checkPartialRangeValue:t,checkRangeEnabled:e,isValidDate:n}=Zr(),{convertType:r,errorMapper:A}=Sn(),{getDate:i,rootEmit:o,state:a,rootProps:l,inputValue:u,defaults:{textInput:d,range:h,multiDates:p,timeConfig:m,formats:v},modelValue:B,updateTime:y}=pt(),{setTime:w,getWeekFromDate:C}=jn(),{formatSelectedDate:S,formatForTextInput:Q}=io();s.watch(B,(G,ee)=>{o("internal-model-change",B.value),JSON.stringify(ee??{})!==JSON.stringify(G??{})&&y()},{deep:!0}),s.watch(h,(G,ee)=>{G.enabled!==ee.enabled&&(B.value=null)}),s.watch(()=>v.value.input,()=>{W()});const _=G=>G?l.modelType?X(G):{hours:qA(G),minutes:Ci(G),seconds:m.value.enableSeconds?Ao(G):0}:null,D=G=>l.modelType?X(G):{month:gt(G),year:tt(G)},I=G=>Array.isArray(G)?p.value.enabled?G.map(ee=>$(ee,EA(i(),ee))):e(()=>[EA(i(),G[0]),G[1]?EA(i(),G[1]):t(h.value.partialRange)],h.value.enabled):EA(i(),+G),$=(G,ee)=>(typeof G=="string"||typeof G=="number")&&l.modelType?ne(G):ee,Y=G=>Array.isArray(G)?[$(G[0],w(G[0])),$(G[1],w(G[1]))]:$(G,w(G)),de=G=>{const ee=ft(i(),{date:1});return Array.isArray(G)?p.value.enabled?G.map(K=>$(K,ft(ee,{month:+K.month,year:+K.year}))):e(()=>[$(G[0],ft(ee,{month:+G[0].month,year:+G[0].year})),$(G[1],G[1]?ft(ee,{month:+G[1].month,year:+G[1].year}):t(h.value.partialRange))],h.value.enabled):$(G,ft(ee,{month:+G.month,year:+G.year}))},ge=G=>{if(Array.isArray(G))return G.map(ee=>ne(ee));throw new Error(A.dateArr("multi-dates"))},me=G=>{if(Array.isArray(G)&&h.value.enabled){const ee=G[0],K=G[1];return[i(Array.isArray(ee)?ee[0]:null),Array.isArray(K)&&K.length?i(K[0]):null]}return i(G[0])},we=G=>l.modelAuto?Array.isArray(G)?[ne(G[0]),ne(G[1])]:l.autoApply?[ne(G)]:[ne(G),null]:Array.isArray(G)?e(()=>G[1]?[ne(G[0]),G[1]?ne(G[1]):t(h.value.partialRange)]:[ne(G[0])],h.value.enabled):ne(G),te=()=>{Array.isArray(B.value)&&h.value.enabled&&B.value.length===1&&B.value.push(t(h.value.partialRange))},V=()=>{const G=B.value;return[X(G[0]),G[1]?X(G[1]):t(h.value.partialRange)]},q=()=>Array.isArray(B.value)?B.value[1]?V():X(r(B.value[0])):[],x=()=>(B.value||[]).map(G=>X(G)),T=(G=!1)=>(G||te(),l.modelAuto?q():p.value.enabled?x():Array.isArray(B.value)?e(()=>V(),h.value.enabled):X(r(B.value))),P=G=>!G||Array.isArray(G)&&!G.length?null:l.timePicker?Y(r(G)):l.monthPicker?de(r(G)):l.yearPicker?I(r(G)):p.value.enabled?ge(r(G)):l.weekPicker?me(r(G)):we(r(G)),F=G=>{if(a.isTextInputDate)return;const ee=P(G);n(r(ee))?(B.value=r(ee),W()):(B.value=null,u.value="")},E=()=>B.value?p.value.enabled?B.value.map(G=>S(G)).join("; "):d.value.enabled?Q():S(B.value):"",W=()=>{u.value=E()},ne=G=>l.modelType?__.includes(l.modelType)?i(G):l.modelType==="format"&&typeof v.value.input=="string"?bp(G,v.value.input,i(),{locale:l.locale}):bp(G,l.modelType,i(),{locale:l.locale}):i(G),X=G=>G?l.modelType?l.modelType==="timestamp"?+G:l.modelType==="iso"?G.toISOString():l.modelType==="format"&&typeof v.value.input=="string"?S(G):S(G,l.modelType):G:null,re=G=>{o("update:model-value",G)},Ae=G=>Array.isArray(B.value)?p.value.enabled?B.value.map(ee=>G(ee)):[G(B.value[0]),B.value[1]?G(B.value[1]):null]:G(r(B.value)),pe=()=>{if(Array.isArray(B.value)){const G=C(B.value[0],l.weekStart),ee=B.value[1]?C(B.value[1],l.weekStart):[];return[G.map(K=>i(K)),ee.map(K=>i(K))]}return C(B.value,l.weekStart).map(G=>i(G))},le=G=>re(r(Ae(G))),Ce=()=>o("update:model-value",pe());return{checkBeforeEmit:()=>B.value?h.value.enabled?h.value.partialRange?B.value.length>=1:B.value.length===2:!!B.value:!1,parseExternalModelValue:F,formatInputValue:W,emitModelValue:()=>(W(),l.monthPicker?le(D):l.timePicker?le(_):l.yearPicker?le(tt):l.weekPicker?Ce():re(T()))}},pl=()=>{const{defaults:{transitions:t}}=pt(),e=s.computed(()=>r=>t.value?r?t.value.open:t.value.close:""),n=s.computed(()=>r=>t.value?r?t.value.menuAppearTop:t.value.menuAppearBottom:"");return{transitionName:e,showTransition:!!t.value,menuTransition:n}},ml=t=>{const{today:e,time:n,modelValue:r,defaults:{range:A}}=pt(),{setTimeModelValue:i}=Sn();s.watch(A,(o,a)=>{o.enabled!==a.enabled&&i(n,r.value,e,A.value.enabled)},{deep:!0}),s.watch(r,(o,a)=>{t&&JSON.stringify(o??{})!==JSON.stringify(a??{})&&t()},{deep:!0})},Zr=()=>{const{defaults:{safeDates:t,range:e,multiDates:n,filters:r,timeConfig:A},rootProps:i,getDate:o}=pt(),{getMapKeyType:a,getMapDate:l,errorMapper:u,convertType:d}=Sn(),{isDateBefore:h,isDateAfter:p,isDateEqual:m,resetDate:v,getDaysInBetween:B,setTimeValue:y,getTimeObj:w,setTime:C}=jn(),S=N=>t.value.disabledDates?typeof t.value.disabledDates=="function"?t.value.disabledDates(o(N)):!!l(N,t.value.disabledDates):!1,Q=N=>t.value.maxDate?i.yearPicker?tt(N)>tt(t.value.maxDate):p(N,t.value.maxDate):!1,_=N=>t.value.minDate?i.yearPicker?tt(N)<tt(t.value.minDate):h(N,t.value.minDate):!1,D=N=>{if(!N)return!1;const R=Q(N),J=_(N),z=S(N),ce=r.value.months.map(j=>+j).includes(gt(N)),k=r.value.weekDays?.length?r.value.weekDays.some(j=>+j===kU(N)):!1,U=ge(N),O=tt(N),se=O<+i.yearRange[0]||O>+i.yearRange[1];return!(R||J||z||ce||se||k||U)},I=(N,R)=>h(...Ce(t.value.minDate,N,R))||m(...Ce(t.value.minDate,N,R)),$=(N,R)=>p(...Ce(t.value.maxDate,N,R))||m(...Ce(t.value.maxDate,N,R)),Y=(N,R,J)=>{let z=!1;return t.value.maxDate&&J&&$(N,R)&&(z=!0),t.value.minDate&&!J&&I(N,R)&&(z=!0),z},de=(N,R,J,z)=>{let ce=!1;return z&&(t.value.minDate||t.value.maxDate)?t.value.minDate&&t.value.maxDate?ce=Y(N,R,J):(t.value.minDate&&I(N,R)||t.value.maxDate&&$(N,R))&&(ce=!0):ce=!0,ce},ge=N=>Array.isArray(t.value.allowedDates)&&!t.value.allowedDates.length?!0:t.value.allowedDates?!l(N,t.value.allowedDates,a(i.monthPicker,i.yearPicker)):!1,me=N=>!D(N),we=N=>e.value.noDisabledRange?!fp({start:N[0],end:N[1]}).some(R=>me(R)):!0,te=N=>{if(N){const R=tt(N);return R>=+i.yearRange[0]&&R<=i.yearRange[1]}return!0},V=(N,R)=>!!(Array.isArray(N)&&N[R]&&(e.value.maxRange||e.value.minRange)&&te(N[R])),q=(N,R,J=0)=>{if(V(R,J)&&te(N)){const z=ZB(N,R[J]),ce=B(R[J],N),k=ce.length===1?0:ce.filter(O=>me(O)).length,U=Math.abs(z)-(e.value.minMaxRawRange?0:k);if(e.value.minRange&&e.value.maxRange)return U>=+e.value.minRange&&U<=+e.value.maxRange;if(e.value.minRange)return U>=+e.value.minRange;if(e.value.maxRange)return U<=+e.value.maxRange}return!0},x=()=>!A.value.enableTimePicker||i.monthPicker||i.yearPicker||A.value.ignoreTimeValidation,T=N=>Array.isArray(N)?[N[0]?y(N[0]):null,N[1]?y(N[1]):null]:y(N),P=(N,R,J)=>R?N.find(z=>+z.hours===qA(R)&&z.minutes==="*"?!0:+z.minutes===Ci(R)&&+z.hours===qA(R))&&J:!1,F=(N,R,J)=>{const[z,ce]=N,[k,U]=R;return!P(z,k,J)&&!P(ce,U,J)&&J},E=(N,R)=>{const J=Array.isArray(R)?R:[R];return Array.isArray(i.disabledTimes)?Array.isArray(i.disabledTimes[0])?F(i.disabledTimes,J,N):!J.some(z=>P(i.disabledTimes,z,N)):N},W=(N,R)=>{const J=Array.isArray(R)?[w(R[0]),R[1]?w(R[1]):void 0]:w(R),z=!i.disabledTimes(J);return N&&z},ne=(N,R)=>i.disabledTimes?Array.isArray(i.disabledTimes)?E(R,N):W(R,N):R,X=N=>{let R=!0;if(!N||x())return!0;const J=!t.value.minDate&&!t.value.maxDate?T(N):N;return(i.maxTime||t.value.maxDate)&&(R=ee(i.maxTime,t.value.maxDate,"max",d(J),R)),(i.minTime||t.value.minDate)&&(R=ee(i.minTime,t.value.minDate,"min",d(J),R)),ne(N,R)},re=N=>{if(!i.monthPicker)return!0;let R=!0;const J=o(v(N));if(t.value.minDate&&t.value.maxDate){const z=o(v(t.value.minDate)),ce=o(v(t.value.maxDate));return p(J,z)&&h(J,ce)||m(J,z)||m(J,ce)}if(t.value.minDate){const z=o(v(t.value.minDate));R=p(J,z)||m(J,z)}if(t.value.maxDate){const z=o(v(t.value.maxDate));R=h(J,z)||m(J,z)}return R},Ae=s.computed(()=>N=>!A.value.enableTimePicker||A.value.ignoreTimeValidation?!0:X(N)),pe=s.computed(()=>N=>i.monthPicker?Array.isArray(N)&&(e.value.enabled||n.value.enabled)?!N.filter(R=>!re(R)).length:re(N):!0),le=(N,R,J)=>{if(!R||J&&!t.value.maxDate||!J&&!t.value.minDate)return!1;const z=J?bA(N,1):ea(N,1),ce=[gt(z),tt(z)];return J?!$(...ce):!I(...ce)},Ce=(N,R,J)=>[ft(o(N),{date:1}),ft(o(),{month:R,year:J,date:1})],G=(N,R,J,z)=>{if(!N)return!0;if(z){const ce=J==="max"?bi(N,R):XA(N,R),k={seconds:0,milliseconds:0};return ce||Vs(ft(N,k),ft(R,k))}return J==="max"?N.getTime()<=R.getTime():N.getTime()>=R.getTime()},ee=(N,R,J,z,ce)=>{if(Array.isArray(z)){const U=K(N,z[0],R),O=K(N,z[1],R);return G(z[0],U,J,!!R)&&G(z[1],O,J,!!R)&&ce}const k=K(N,z,R);return G(z,k,J,!!R)&&ce},K=(N,R,J)=>N?C(N,R):o(J??R);return{isDisabled:me,validateDate:D,validateMonthYearInRange:de,isDateRangeAllowed:we,checkMinMaxRange:q,isValidTime:X,validateMonthYear:le,validateMinDate:I,validateMaxDate:$,isValidDate:N=>Array.isArray(N)?dl(N[0])&&(N[1]?dl(N[1]):!0):N?dl(N):!1,checkPartialRangeValue:N=>{if(N)return null;throw new Error(u.prop("partial-range"))},checkRangeEnabled:(N,R)=>{if(R)return N();throw new Error(u.prop("range"))},checkMinMaxValue:(N,R,J)=>{const z=J!=null,ce=R!=null;if(!z&&!ce)return!1;const k=+J,U=+R;return z&&ce?+N>k||+N<U:z?+N>k:ce?+N<U:!1},isTimeValid:Ae,isMonthValid:pe}},N_=t=>{const{rootEmit:e,rootProps:n,defaults:{timeConfig:r,flow:A}}=pt(),i=s.ref(0),o=s.reactive({[is.timePicker]:!r.value.enableTimePicker||n.timePicker||n.monthPicker,[is.calendar]:!1,[is.header]:!1}),a=s.computed(()=>n.monthPicker||n.timePicker),l=m=>{if(A.value?.steps?.length){if(!m&&a.value)return p();o[m]=!0,Object.keys(o).filter(v=>!o[v]).length||p()}},u=()=>{A.value?.steps?.length&&i.value!==-1&&(i.value+=1,e("flow-step",i.value),p()),A.value?.steps?.length===i.value&&s.nextTick().then(()=>d())},d=()=>{i.value=-1},h=(m,v,...B)=>{A.value?.steps[i.value]===m&&t.value&&t.value[v]?.(...B)},p=(m=0)=>{m&&(i.value+=m),h(fr.month,"toggleMonthPicker",!0),h(fr.year,"toggleYearPicker",!0),h(fr.calendar,"toggleTimePicker",!1,!0),h(fr.time,"toggleTimePicker",!0,!0);const v=A.value?.steps[i.value];(v===fr.hours||v===fr.minutes||v===fr.seconds)&&h(v,"toggleTimePicker",!0,!0,v)};return{childMount:l,updateFlowStep:u,resetFlow:d,handleFlow:p,flowStep:i}};function kp(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}function gl(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let A;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;A=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;A=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return A[i]}}function vl(t){return(e,n={})=>{const r=n.width,A=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(A);if(!i)return null;const o=i[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?R_(a,h=>h.test(o)):L_(a,h=>h.test(o));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(o.length);return{value:u,rest:d}}}function L_(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function R_(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function H_(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const A=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(A.length);return{value:o,rest:a}}}const P_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$_=(t,e,n)=>{let r;const A=P_[t];return typeof A=="string"?r=A:e===1?r=A.one:r=A.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},K_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(t,e,n,r)=>K_[t],W_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Y_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},q_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},j_=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Z_={ordinalNumber:j_,era:gl({values:W_,defaultWidth:"wide"}),quarter:gl({values:G_,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gl({values:Y_,defaultWidth:"wide"}),day:gl({values:q_,defaultWidth:"wide"}),dayPeriod:gl({values:X_,defaultWidth:"wide",formattingValues:J_,defaultFormattingWidth:"wide"})},V_=/^(\d+)(th|st|nd|rd)?/i,eD=/\d+/i,tD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nD={any:[/^b/i,/^(a|c)/i]},rD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AD={any:[/1/i,/2/i,/3/i,/4/i]},iD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},aD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uD={ordinalNumber:H_({matchPattern:V_,parsePattern:eD,valueCallback:t=>parseInt(t,10)}),era:vl({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),quarter:vl({matchPatterns:rD,defaultMatchWidth:"wide",parsePatterns:AD,defaultParseWidth:"any",valueCallback:t=>t+1}),month:vl({matchPatterns:iD,defaultMatchWidth:"wide",parsePatterns:oD,defaultParseWidth:"any"}),day:vl({matchPatterns:sD,defaultMatchWidth:"wide",parsePatterns:aD,defaultParseWidth:"any"}),dayPeriod:vl({matchPatterns:lD,defaultMatchWidth:"any",parsePatterns:cD,defaultParseWidth:"any"})},dD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pD={date:kp({formats:dD,defaultWidth:"full"}),time:kp({formats:fD,defaultWidth:"full"}),dateTime:kp({formats:hD,defaultWidth:"full"})},mD={code:"en-US",formatDistance:$_,formatLong:pD,formatRelative:z_,localize:Z_,match:uD,options:{weekStartsOn:0,firstWeekContainsDate:1}},T0={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1,autoSwitchStartEnd:!0},gD={allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,escClose:!0,spaceConfirm:!0,monthChangeOnArrows:!0,monthChangeOnScroll:!0},M0={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0,format:void 0,maskFormat:void 0,applyOnBlur:!1,separators:void 0},vD={dates:[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}},wD={showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,selectBtnLabel:"Select",cancelBtnLabel:"Cancel",nowBtnLabel:"Now",nowBtnRound:void 0},BD={toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`},I0={menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},yD={weekDays:[],months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},CD={month:"LLL",year:"yyyy",weekDay:"EEEEEE",quarter:"MMMM",day:"d",input:void 0,preview:void 0},bD={enableTimePicker:!0,ignoreTimeValidation:!1,enableSeconds:!1,enableMinutes:!0,is24:!0,noHoursOverlay:!1,noMinutesOverlay:!1,noSecondsOverlay:!1,hoursGridIncrement:1,minutesGridIncrement:5,secondsGridIncrement:5,hoursIncrement:1,minutesIncrement:1,secondsIncrement:1,timePickerInline:!1,startTime:void 0},ED={flowStep:0,menuWrapRef:null,collapse:!1},kD={weekStart:Q0.Monday,yearRange:()=>[1900,2100],ui:()=>({}),locale:()=>mD,dark:!1,transitions:!0,hideNavigation:()=>[],vertical:!1,hideMonthYearSelect:!1,disableYearSelect:!1,autoApply:!1,disabledDates:()=>[],hideOffsetDates:!1,noToday:!1,markers:()=>[],presetDates:()=>[],preventMinMaxNavigation:!1,reverseYears:!1,weekPicker:!1,arrowNavigation:!1,monthPicker:!1,yearPicker:!1,quarterPicker:!1,timePicker:!1,modelAuto:!1,multiDates:!1,range:!1,inline:!1,sixWeeks:!1,focusStartDate:!1,yearFirst:!1,loading:!1,centered:!1},U0={name:void 0,required:!1,autocomplete:"off",state:void 0,clearable:!0,alwaysClearable:!1,hideInputIcon:!1,id:void 0,inputmode:"none"},au={type:"local",hideOnOffsetDates:!1,label:"W"},SD=t=>{const{getMapKey:e,getMapKeyType:n,getTimeObjFromCurrent:r}=Sn();function A(x,T){let P;return t.timezone?P=new ta(x??new Date,t.timezone):P=x?new Date(x):new Date,T?ft(P,{hours:0,minutes:0,seconds:0,milliseconds:0}):P}const i=()=>{const x=we.value.enableSeconds?":ss":"",T=we.value.enableMinutes?":mm":"";return we.value.is24?`HH${T}${x}`:`hh${T}${x} aa`},o=()=>t.monthPicker?"MM/yyyy":t.timePicker?i():t.weekPicker?`${D.value?.type==="iso"?"II":"ww"}-RR`:t.yearPicker?"yyyy":t.quarterPicker?"QQQ/yyyy":we.value.enableTimePicker?`MM/dd/yyyy, ${i()}`:"MM/dd/yyyy",a=x=>r(A(),x,we.value.enableSeconds),l=()=>Y.value.enabled?we.value.startTime&&Array.isArray(we.value.startTime)?[a(we.value.startTime[0]),a(we.value.startTime[1])]:null:we.value.startTime&&!Array.isArray(we.value.startTime)?a(we.value.startTime):null,u=x=>x?typeof x=="boolean"?x?2:0:Math.max(+x,2):0,d=x=>{const T=n(t.monthPicker,t.yearPicker);return new Map(x.map(P=>{const F=A(P,h.value);return[e(F,T),F]}))},h=s.computed(()=>t.monthPicker||t.yearPicker||t.quarterPicker),p=s.computed(()=>{const x=typeof t.multiCalendars=="object"&&t.multiCalendars,T={static:!0,solo:!1};if(!t.multiCalendars)return{...T,count:u(!1)};const P=x?t.multiCalendars:{},F=x?P.count??!0:t.multiCalendars,E=u(F);return Object.assign(T,P,{count:E})}),m=s.computed(()=>l()),v=s.computed(()=>({...BD,...t.ariaLabels})),B=s.computed(()=>({...yD,...t.filters})),y=s.computed(()=>typeof t.transitions=="boolean"?t.transitions?I0:!1:{...I0,...t.transitions}),w=s.computed(()=>({...wD,...t.actionRow})),C=s.computed(()=>typeof t.textInput=="object"?{...M0,...t.textInput,format:typeof t.textInput.format=="string"?t.textInput.format:ge.value.input,pattern:t.textInput.format??ge.value.input,enabled:!0}:{...M0,format:ge.value.input,pattern:ge.value.input,enabled:t.textInput}),S=s.computed(()=>{const x={input:!1};return typeof t.inline=="object"?{...x,...t.inline,enabled:!0}:{enabled:t.inline,...x}}),Q=s.computed(()=>({...gD,...t.config})),_=s.computed(()=>typeof t.highlight=="function"?t.highlight:{...vD,...t.highlight}),D=s.computed(()=>typeof t.weekNumbers=="object"?{type:t.weekNumbers?.type??au.type,hideOnOffsetDates:t.weekNumbers?.hideOnOffsetDates??au.hideOnOffsetDates,label:t.weekNumbers.label??au.label}:t.weekNumbers?au:void 0),I=s.computed(()=>typeof t.multiDates=="boolean"?{enabled:t.multiDates,dragSelect:!0,limit:null}:{enabled:!!t.multiDates,limit:t.multiDates?.limit?+t.multiDates.limit:null,dragSelect:t.multiDates?.dragSelect??!0}),$=s.computed(()=>({minDate:t.minDate?A(t.minDate):null,maxDate:t.maxDate?A(t.maxDate):null,disabledDates:Array.isArray(t.disabledDates)?d(t.disabledDates):t.disabledDates,allowedDates:Array.isArray(t.allowedDates)?d(t.allowedDates):null,highlight:typeof _.value=="object"&&Array.isArray(_.value.dates)?d(_.value.dates):_.value,markers:t.markers?.length?new Map(t.markers.map(x=>{const T=A(x.date);return[e(T,na.DATE),x]})):null})),Y=s.computed(()=>typeof t.range=="object"?{enabled:!0,...T0,...t.range}:{enabled:t.range,...T0}),de=s.computed(()=>({...Object.fromEntries(Object.keys(t.ui).map(x=>{const T=x,P=t.ui[T];if(T==="dayClass")return[T,t.ui[T]];const F=typeof t.ui[T]=="string"?{[P]:!0}:Object.fromEntries(P.map(E=>[E,!0]));return[x,F]}))})),ge=s.computed(()=>({...CD,...t.formats,input:t.formats?.input??o(),preview:t.formats?.preview??o()})),me=s.computed(()=>{if(t.teleport)return typeof t.teleport=="string"?t.teleport:typeof t.teleport=="boolean"?"body":t.teleport}),we=s.computed(()=>({...bD,...t.timeConfig})),te=s.computed(()=>{if(t.flow)return{steps:[],partial:!1,...t.flow}}),V=s.computed(()=>{const x=C.value.enabled?"text":"none";return t.inputAttrs?{...U0,inputmode:x,...t.inputAttrs}:{...U0,inputmode:x}}),q=s.computed(()=>({offset:t.floating?.offset??10,arrow:t.floating?.arrow??!0,strategy:t.floating?.strategy??void 0,placement:t.floating?.placement??void 0,flip:t.floating?.flip??!0,shift:t.floating?.shift??!0}));return{transitions:y,multiCalendars:p,startTime:m,ariaLabels:v,filters:B,actionRow:w,textInput:C,inline:S,config:Q,highlight:_,weekNumbers:D,range:Y,safeDates:$,multiDates:I,ui:de,formats:ge,teleport:me,timeConfig:we,flow:te,inputAttrs:V,floatingConfig:q,getDate:A}},Sn=()=>{const t=(C,S)=>jr(C,S??na.DATE),e=(C,S)=>C?na.MONTH_AND_YEAR:S?na.YEAR:na.DATE,n=(C,S,Q)=>S.get(t(C,Q)),r=C=>C,A=C=>C===0?C:!C||Number.isNaN(+C)?null:+C,i=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", "),o=(C,S)=>{let Q=[...document.querySelectorAll(i())];Q=Q.filter(D=>!C.contains(D)||"datepicker-instance"in D.dataset);const _=Q.indexOf(C);if(_>=0&&(S?_-1>=0:_+1<=Q.length))return Q[_+(S?-1:1)]},a=C=>String(C).padStart(2,"0"),l=(C,S)=>C?.querySelector(`[data-dp-element="${S}"]`),u=(C,S,Q=!1)=>{C&&S.allowStopPropagation&&(Q&&C.stopImmediatePropagation(),C.stopPropagation())},d=(C,S,Q=!1,_)=>{if(C.key===Nt.enter||C.key===Nt.space)return Q&&C.preventDefault(),S();if(_)return _(C)},h=(C,S)=>{S.allowStopPropagation&&C.stopPropagation(),S.allowPreventDefault&&C.preventDefault()},p=C=>{if(C)return[...C.querySelectorAll("input, button, select, textarea, a[href]")][0]},m=()=>"ontouchstart"in globalThis||navigator.maxTouchPoints>0,v=C=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][C],B=C=>{const S=[],Q=_=>_.filter(D=>!!D);for(let _=0;_<C.length;_+=3){const D=[C[_],C[_+1],C[_+2]];S.push(Q(D))}return S},y={prop:C=>`"${C}" prop must be enabled!`,dateArr:C=>`You need to use array as "model-value" binding in order to support "${C}"`},w=(C,S,Q,_,D)=>{const I={hours:qA,minutes:Ci,seconds:Ao};if(!S)return _?[I[C](Q),I[C](Q)]:I[C](Q);if(Array.isArray(S)&&_){const $=S[0]??Q,Y=S[1];return[I[C]($),Y?I[C](Y):D[C][1]??I[C](Q)]}return Array.isArray(S)&&!_?I[C](S[S.length-1]??Q):I[C](S)};return{getMapKey:t,getMapKeyType:e,getMapDate:n,convertType:r,getNumVal:A,findNextFocusableElement:o,padZero:a,getElWithin:l,checkStopPropagation:u,checkKeyDown:d,handleEventPropagation:h,findFocusableEl:p,isTouchDevice:m,hoursToAmPmHours:v,getGroupedList:B,setTimeModelValue:(C,S,Q,_)=>{C.hours=w("hours",S,Q,_,C),C.minutes=w("minutes",S,Q,_,C),C.seconds=w("seconds",S,Q,_,C)},getTimeObjFromCurrent:(C,S,Q)=>{const _={hours:qA(C),minutes:Ci(C),seconds:Q?Ao(C):0};return Object.assign(_,S)},errorMapper:y}},jn=()=>{const{getDate:t}=pt(),{getMapDate:e,getGroupedList:n}=Sn(),r=(w,C)=>{if(!w)return t();const S=t(w),Q=ft(S,{hours:0,minutes:0,seconds:0,milliseconds:0});return C?OI(Q):Q},A=(w,C)=>{const S=t(C);return ft(S,{hours:+(w.hours??qA(S)),minutes:+(w.minutes??Ci(S)),seconds:+(w.seconds??Ao(S)),milliseconds:0})},i=(w,C)=>{const S=Jr(w,{weekStartsOn:+C}),Q=hp(w,{weekStartsOn:+C});return[S,Q]},o=(w,C)=>!w||!C?!1:bi(r(w),r(C)),a=(w,C)=>!w||!C?!1:Vs(r(w),r(C)),l=(w,C)=>!w||!C?!1:XA(r(w),r(C)),u=(w,C,S)=>w?.[0]&&w?.[1]?l(S,w[0])&&o(S,w[1]):w?.[0]&&C?l(S,w[0])&&o(S,C)||o(S,w[0])&&l(S,C):!1,d=(w,C)=>{const S=l(w,C)?C:w,Q=l(C,w)?C:w;return fp({start:S,end:Q})},h=w=>`dp-${jr(w,"yyyy-MM-dd")}`,p=w=>r(ft(t(w),{date:1})),m=(w,C)=>{if(C){const S=tt(t(C));if(S>w)return 12;if(S===w)return gt(t(C))}},v=(w,C)=>{if(C){const S=tt(t(C));return S<w?-1:S===w?gt(t(C)):void 0}},B=w=>{if(w)return tt(t(w))},y=w=>({hours:qA(w),minutes:Ci(w),seconds:Ao(w)});return{resetDateTime:r,groupListAndMap:(w,C)=>n(w).map(S=>S.map(Q=>{const{active:_,disabled:D,isBetween:I,highlighted:$}=C(Q);return{...Q,active:_,disabled:D,className:{dp__overlay_cell_active:_,dp__overlay_cell:!_,dp__overlay_cell_disabled:D,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:D&&_,dp__cell_in_between:I,"dp--highlighted":$}}})),setTime:A,getWeekFromDate:i,isDateAfter:l,isDateBefore:o,isDateBetween:u,isDateEqual:a,getDaysInBetween:d,getCellId:h,resetDate:p,getMinMonth:m,getMaxMonth:v,getYearFromDate:B,getTimeObj:y,setTimeValue:w=>ft(t(),y(w)),sanitizeTime:(w,C,S)=>C&&(S||S===0)?Object.fromEntries(["hours","minutes","seconds"].map(Q=>Q===C?[Q,S]:[Q,Number.isNaN(+w[Q])?void 0:+w[Q]])):{hours:Number.isNaN(+w.hours)?void 0:+w.hours,minutes:Number.isNaN(+w.minutes)?void 0:+w.minutes,seconds:Number.isNaN(+(w.seconds??""))?void 0:+w.seconds},getBeforeAndAfterInRange:(w,C)=>{const S=g0(r(C),w),Q=Xr(r(C),w);return{before:S,after:Q}},isModelAuto:w=>Array.isArray(w)?!!w[0]&&!!w[1]:!1,matchDate:(w,C)=>w?C?C instanceof Map?!!e(w,C):C(t(w)):!1:!0,checkHighlightMonth:(w,C,S)=>typeof w=="function"?w({month:C,year:S}):w.months.some(Q=>Q.month===C&&Q.year===S),checkHighlightYear:(w,C)=>typeof w=="function"?w(C):w.years.includes(C)}},lu=()=>{const{defaults:{config:t}}=pt(),e=s.ref(0);s.onMounted(()=>{n(),globalThis.addEventListener("resize",n,{passive:!0})}),s.onUnmounted(()=>{globalThis.removeEventListener("resize",n)});const n=()=>{e.value=globalThis.document.documentElement.clientWidth};return{isMobile:s.computed(()=>e.value<=t.value.mobileBreakpoint?!0:void 0)}},io=()=>{const{getDate:t,state:e,modelValue:n,rootProps:r,defaults:{formats:A,textInput:i}}=pt(),o=v=>jr(EA(t(),v),A.value.year,{locale:r.locale}),a=v=>jr(v0(t(),v),A.value.month,{locale:r.locale}),l=v=>jr(v,A.value.weekDay,{locale:r.locale}),u=v=>jr(v,A.value.quarter,{locale:r.locale}),d=(v,B)=>[v,B].map(y=>u(y)).join("-"),h=v=>jr(v,A.value.day,{locale:r.locale}),p=(v,B,y)=>{const w=y?A.value.preview:A.value.input;if(!v)return"";if(typeof w=="function")return w(v);const C=B??w,S={locale:r.locale};return Array.isArray(v)?`${jr(v[0],C,S)}${r.modelAuto&&!v[1]?"":i.value.rangeSeparator}${v[1]?jr(v[1],C,S):""}`:jr(v,C,S)},m=()=>{const v=B=>jr(B,i.value.format);return Array.isArray(n.value)?`${v(n.value[0])} ${i.value.rangeSeparator} ${n.value[1]?v(n.value[1]):""}`:""};return{formatYear:o,formatMonth:a,formatWeekDay:l,formatQuarter:u,formatSelectedDate:p,formatForTextInput:()=>e.isInputFocused&&n.value?Array.isArray(n.value)?m():jr(n.value,i.value.format):p(n.value),formatPreview:v=>p(v,void 0,!0),formatQuarterText:d,formatDay:h}},cu=()=>{const{rootProps:t}=pt(),{formatYear:e,formatMonth:n}=io();return{getMonths:()=>[0,1,2,3,4,5,6,7,8,9,10,11].map(r=>({text:n(r),value:r})),getYears:()=>{const r=[];for(let A=+t.yearRange[0];A<=+t.yearRange[1];A++)r.push({value:+A,text:e(A)});return t.reverseYears?r.reverse():r},isOutOfYearRange:r=>r<+t.yearRange[0]||r>+t.yearRange[1]}},xD=t=>({openMenu:()=>t.value?.openMenu(),closeMenu:()=>t.value?.closeMenu(),selectDate:()=>t.value?.selectDate(),clearValue:()=>t.value?.clearValue(),formatInputValue:()=>t.value?.formatInputValue(),updateInternalModelValue:e=>t.value?.updateInternalModelValue(e),setMonthYear:(e,n)=>t.value?.setMonthYear(e,n),parseModel:()=>t.value?.parseModel(),switchView:(e,n)=>t.value?.switchView(e,n),handleFlow:()=>t.value?.handleFlow(),toggleMenu:()=>t.value?.toggleMenu(),dpMenuRef:()=>t.value?.dpMenuRef(),dpWrapMenuRef:()=>t.value?.dpWrapMenuRef(),inputRef:()=>t.value?.inputRef()}),ra=()=>({boolHtmlAttribute:t=>t?!0:void 0}),FD=()=>{const{getDate:t,rootProps:e,defaults:{textInput:n,startTime:r,timeConfig:A}}=pt(),{getTimeObjFromCurrent:i}=Sn(),o=s.ref(!1),a=s.computed(()=>Array.isArray(r.value)?r.value[0]:r.value??i(t(),{},A.value.enableSeconds)),l=(d,h)=>{const p=/[^a-zA-Z]+/g,m=/\D+/g,v=h.split(m),B=d.split(p),y=d.match(p)||[],w=h.match(m)||[];let C="";for(let S=0;S<v.length&&S<B.length;S++){S>0&&w[S-1]&&(C+=y[S-1]||w[S-1]);const Q=v[S]?.length;C+=B[S]?.slice(0,Q)}return C},u=(d,h,p)=>{const m=bp(d,l(h,d),t(),{locale:e.locale});return dl(m)&&e0(m)?p||o.value?m:ft(m,{hours:+a.value.hours,minutes:+a.value.minutes,seconds:+(a.value.seconds??0),milliseconds:0}):null};return{textPasted:o,parseFreeInput:(d,h)=>{if(typeof n.value.pattern=="string")return u(d,n.value.pattern,h);if(Array.isArray(n.value.pattern)){let p=null;for(const m of n.value.pattern)if(p=u(d,m,h),p)break;return p}return typeof n.value.pattern=="function"?n.value.pattern(d):null},applyMaxValues:(d,h)=>{const p={MM:12,DD:31,hh:23,mm:59,ss:59};let m="",v=0;for(let B=0;B<h.length;B++){const y=h[B],w=y.length,C=d.slice(v,v+w);if(!C)break;if(C.length<w)m+=C;else{let S=Number.parseInt(C,10);p[y]&&S>p[y]&&(S=p[y]),m+=S.toString().padStart(w,"0").slice(0,w)}v+=w}return m},createMaskedValue:(d,h)=>{const p=/(YYYY|MM|DD|hh|mm|ss)/g,m=[...h.matchAll(p)].map(C=>C[0]),v=h.replace(p,"|").split("|").filter(Boolean),B=m.map(C=>C.length);let y="",w=0;for(let C=0;C<m.length;C++){const S=B[C],Q=d.slice(w,w+S);if(!Q)break;y+=Q,Q.length===S&&v[C]&&(y+=v[C]),w+=S}return y}}};var xA=(t=>(t.Input="input",t.DatePicker="date-picker",t.Calendar="calendar",t.DatePickerHeader="date-picker-header",t.Menu="menu",t.ActionRow="action-row",t.TimePicker="time-picker",t.TimeInput="time-input",t.PassTrough="pass-trough",t.MonthPicker="month-picker",t.YearMode="year-mode",t.QuarterPicker="quarter-picker",t.YearPicker="year-picker",t))(xA||{});const Aa=["time-input","time-picker","pass-trough"],_0=[{name:"trigger",use:["input"]},{name:"input-icon",use:["input"]},{name:"clear-icon",use:["input"]},{name:"dp-input",use:["input"]},{name:"clock-icon",use:["time-picker","time-input","pass-trough"]},{name:"arrow-left",use:["date-picker-header","pass-trough","year-mode"]},{name:"arrow-right",use:["date-picker-header","pass-trough","year-mode"]},{name:"arrow-up",use:["time-picker","time-input","date-picker-header","pass-trough"]},{name:"arrow-down",use:["time-picker","time-input","date-picker-header","pass-trough"]},{name:"calendar-icon",use:["date-picker-header","time-picker","pass-trough","year-mode"]},{name:"day",use:["calendar","pass-trough"]},{name:"month-overlay-value",use:["date-picker-header","pass-trough","month-picker"]},{name:"year-overlay-value",use:["date-picker-header","pass-trough","year-mode","year-picker"]},{name:"year-overlay",use:["date-picker-header","pass-trough"]},{name:"month-overlay",use:["date-picker-header","pass-trough"]},{name:"month-overlay-header",use:["date-picker-header","pass-trough"]},{name:"year-overlay-header",use:["date-picker-header","pass-trough"]},{name:"hours-overlay-value",use:Aa},{name:"hours-overlay-header",use:Aa},{name:"minutes-overlay-value",use:Aa},{name:"minutes-overlay-header",use:Aa},{name:"seconds-overlay-value",use:Aa},{name:"seconds-overlay-header",use:Aa},{name:"hours",use:["time-input","time-picker","pass-trough"]},{name:"minutes",use:["time-input","time-picker","pass-trough"]},{name:"seconds",use:["time-input","time-picker","pass-trough"]},{name:"month",use:["date-picker-header","time-picker","pass-trough"]},{name:"year",use:["date-picker-header","time-picker","pass-trough","year-mode"]},{name:"action-buttons",use:["action-row"]},{name:"action-preview",use:["action-row"]},{name:"calendar-header",use:["calendar","pass-trough"]},{name:"marker-tooltip",use:["calendar","pass-trough"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["time-picker","time-picker","pass-trough"]},{name:"am-pm-button",use:["time-picker","time-input","pass-trough"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["date-picker-header","pass-trough","month-picker","year-picker"]},{name:"time-picker",use:["date-picker","pass-trough"]},{name:"action-row",use:["action-row"]},{name:"marker",use:["calendar","pass-trough"]},{name:"quarter",use:["quarter-picker","pass-trough"]},{name:"top-extra",use:["date-picker-header","pass-trough","month-picker","quarter-picker","year-picker"]},{name:"tp-inline-arrow-up",use:["date-picker","time-input","time-picker","pass-trough"]},{name:"tp-inline-arrow-down",use:["date-picker","time-input","time-picker","pass-trough"]},{name:"arrow",use:["menu"]},{name:"menu-header",use:["menu"]}],VA=(t,e)=>_0.filter(n=>t[n.name]&&n.use.includes(e)).map(n=>n.name),D0=(t,e)=>_0.map(n=>n.name).concat(e?.filter(n=>n.slot).map(n=>n.slot)??[]).filter(n=>!!t[n]),QD={key:1,class:"dp__input_wrap"},TD=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],MD={key:1,class:"dp--clear-btn"},ID=["aria-label"],UD=s.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1}},emits:["clear","open","set-input-date","close","select-date","set-empty-date","toggle","focus","blur","real-blur"],setup(t,{expose:e,emit:n}){const r=n,A=t,{rootEmit:i,inputValue:o,rootProps:a,defaults:{textInput:l,ariaLabels:u,inline:d,config:h,range:p,multiDates:m,ui:v,inputAttrs:B}}=pt(),{checkMinMaxRange:y,isValidDate:w}=Zr(),{parseFreeInput:C,textPasted:S,createMaskedValue:Q,applyMaxValues:_}=FD(),{checkKeyDown:D,checkStopPropagation:I}=Sn(),{boolHtmlAttribute:$}=ra(),Y=s.useTemplateRef("dp-input"),de=s.ref(null),ge=s.ref(!1),me=s.computed(()=>({dp__pointer:!a.disabled&&!a.readonly&&!l.value.enabled,dp__disabled:a.disabled,dp__input_readonly:!l.value.enabled,dp__input:!0,dp__input_not_clearable:!B.value.clearable,dp__input_icon_pad:!B.value.hideInputIcon,dp__input_valid:typeof B.value.state=="boolean"?B.value.state:!1,dp__input_invalid:typeof B.value.state=="boolean"?!B.value.state:!1,dp__input_focus:ge.value||A.isMenuOpen,dp__input_reg:!l.value.enabled,...v.value.input})),we=()=>{r("set-input-date",null),B&&a.autoApply&&(r("set-empty-date"),de.value=null)},te=G=>{if(l.value.separators?.length){const ee=new RegExp(l.value.separators.map(K=>K.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"));return G.split(ee)}return G.split(l.value.rangeSeparator)},V=G=>{const[ee,K]=te(G);if(ee){const N=C(ee.trim(),o.value),R=K?C(K.trim(),o.value):void 0;if(XA(N,R))return;const J=N&&R?[N,R]:[N];y(R,J,0)&&(de.value=N?J:null)}},q=()=>{S.value=!0},x=G=>{if(p.value.enabled)V(G);else if(m.value.enabled){const ee=G.split(";");de.value=ee.map(K=>C(K.trim())).filter(K=>!!K)}else de.value=C(G,o.value)},T=G=>{const ee=typeof G=="string"?G:G.target?.value,K=l?.value?.maskFormat;let N=ee;if(typeof K=="string"){const R=/(YYYY|MM|DD|hh|mm|ss)/g,J=[...K.matchAll(R)].map(k=>k[0]),z=ee.replace(/\D/g,""),ce=_(z,J);N=Q(ce,K)}N===""?we():(l.value.openMenu&&!A.isMenuOpen&&r("open"),x(N),r("set-input-date",de.value)),S.value=!1,o.value=N,i("text-input",G,de.value)},P=G=>{l.value.enabled?(x(G.target.value),l.value.enterSubmit&&w(de.value)&&o.value!==""?(r("set-input-date",de.value,!0),de.value=null):l.value.enterSubmit&&o.value===""&&(de.value=null,r("clear"))):W(G)},F=(G,ee)=>{l.value.enabled&&l.value.tabSubmit&&!ee&&x(G.target.value),l.value.tabSubmit&&w(de.value)&&o.value!==""?(r("set-input-date",de.value,!0,!0),de.value=null):l.value.tabSubmit&&o.value===""&&(de.value=null,r("clear"))},E=()=>{ge.value=!0,r("focus"),s.nextTick().then(()=>{l.value.enabled&&l.value.selectOnFocus&&Y.value?.select()})},W=G=>{if(I(G,h.value,!0),l.value.enabled&&l.value.openMenu&&!d.value.input){if(l.value.openMenu==="open"&&!A.isMenuOpen)return r("open");if(l.value.openMenu==="toggle")return r("toggle")}else l.value.enabled||r("toggle")},ne=()=>{r("real-blur"),ge.value=!1,(!A.isMenuOpen||d.value.enabled&&d.value.input)&&r("blur"),(a.autoApply&&l.value.enabled&&de.value&&!A.isMenuOpen||l.value.applyOnBlur)&&(r("set-input-date",de.value),r("select-date"),de.value=null)},X=G=>{I(G,h.value,!0),r("clear")},re=()=>{r("close")},Ae=G=>{if(G.key==="Tab"&&F(G),G.key==="Enter"&&P(G),G.key==="Escape"&&l.value.escClose&&re(),!l.value.enabled){if(G.code==="Tab")return;G.preventDefault()}},pe=()=>{Y.value?.focus({preventScroll:!0})},le=G=>{de.value=G},Ce=G=>{G.key===Nt.tab&&F(G,!0)};return e({focusInput:pe,setParsedDate:le}),(G,ee)=>(s.openBlock(),s.createElementBlock("div",{onClick:W},[!G.$slots["dp-input"]&&!s.unref(d).enabled?s.renderSlot(G.$slots,"trigger",{key:0}):s.createCommentVNode("",!0),!G.$slots.trigger&&(!s.unref(d).enabled||s.unref(d).input)?(s.openBlock(),s.createElementBlock("div",QD,[!G.$slots.trigger&&(!s.unref(d).enabled||s.unref(d).enabled&&s.unref(d).input)?s.renderSlot(G.$slots,"dp-input",{key:0,value:s.unref(o),isMenuOpen:t.isMenuOpen,onInput:T,onEnter:P,onTab:F,onClear:X,onBlur:ne,onKeypress:Ae,onPaste:q,onFocus:E,openMenu:()=>G.$emit("open"),closeMenu:()=>G.$emit("close"),toggleMenu:()=>G.$emit("toggle")},()=>[s.createElementVNode("input",{id:s.unref(B).id,ref:"dp-input","data-test-id":"dp-input",name:s.unref(B).name,class:s.normalizeClass(me.value),inputmode:s.unref(B).inputmode,placeholder:s.unref(a).placeholder,disabled:s.unref($)(s.unref(a).disabled),readonly:s.unref($)(s.unref(a).readonly),required:s.unref($)(s.unref(B).required),value:s.unref(o),autocomplete:s.unref(B).autocomplete,"aria-label":s.unref(u).input,"aria-disabled":s.unref(a).disabled||void 0,"aria-invalid":s.unref(B).state===!1?!0:void 0,onInput:T,onBlur:ne,onFocus:E,onKeypress:Ae,onKeydown:ee[0]||(ee[0]=K=>Ae(K)),onPaste:q,onInvalid:ee[1]||(ee[1]=K=>s.unref(i)("invalid",K))},null,42,TD)]):s.createCommentVNode("",!0),s.createElementVNode("div",{onClick:ee[4]||(ee[4]=K=>r("toggle"))},[G.$slots["input-icon"]&&!s.unref(B).hideInputIcon?(s.openBlock(),s.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:ee[2]||(ee[2]=K=>r("toggle"))},[s.renderSlot(G.$slots,"input-icon")])):s.createCommentVNode("",!0),!G.$slots["input-icon"]&&!s.unref(B).hideInputIcon&&!G.$slots["dp-input"]?(s.openBlock(),s.createBlock(s.unref(hl),{key:1,"aria-label":s.unref(u)?.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:ee[3]||(ee[3]=K=>r("toggle"))},null,8,["aria-label"])):s.createCommentVNode("",!0)]),G.$slots["clear-icon"]&&(s.unref(B).alwaysClearable||s.unref(o)&&s.unref(B).clearable&&!s.unref(a).disabled&&!s.unref(a).readonly)?(s.openBlock(),s.createElementBlock("span",MD,[s.renderSlot(G.$slots,"clear-icon",{clear:X})])):s.createCommentVNode("",!0),!G.$slots["clear-icon"]&&(s.unref(B).alwaysClearable||s.unref(B).clearable&&s.unref(o)&&!s.unref(a).disabled&&!s.unref(a).readonly)?(s.openBlock(),s.createElementBlock("button",{key:2,"aria-label":s.unref(u)?.clearInput,class:"dp--clear-btn",type:"button","data-test-id":"clear-input-value-btn",onKeydown:ee[5]||(ee[5]=K=>s.unref(D)(K,()=>X(K),!0,Ce)),onClick:ee[6]||(ee[6]=s.withModifiers(K=>X(K),["prevent"]))},[s.createVNode(s.unref(I_),{class:"dp__input_icons"})],40,ID)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))}}),_D={ref:"action-row",class:"dp__action_row"},DD=["title"],OD={ref:"action-buttons-container",class:"dp__action_buttons","data-dp-element":"action-row"},ND=["disabled"],LD=s.defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{default:0}},emits:["close-picker","select-date","select-now"],setup(t,{emit:e}){const n=e,r=t,{rootEmit:A,rootProps:i,modelValue:o,defaults:{actionRow:a,multiCalendars:l,inline:u,range:d,multiDates:h,formats:p}}=pt(),{isTimeValid:m,isMonthValid:v}=Zr(),{formatPreview:B}=io(),{checkKeyDown:y,convertType:w}=Sn(),{boolHtmlAttribute:C}=ra(),S=s.useTemplateRef("action-buttons-container"),Q=s.useTemplateRef("action-row"),_=s.ref(!1),D=s.ref({});s.onMounted(()=>{I(),globalThis.addEventListener("resize",I)}),s.onUnmounted(()=>{globalThis.removeEventListener("resize",I)});const I=()=>{_.value=!1,setTimeout(()=>{const q=S.value?.getBoundingClientRect(),x=Q.value?.getBoundingClientRect();q&&x&&(D.value.maxWidth=`${x.width-q.width-20}px`),_.value=!0},0)},$=s.computed(()=>d.value.enabled&&!d.value.partialRange&&o.value?o.value.length===2:!0),Y=s.computed(()=>!m.value(o.value)||!v.value(o.value)||!$.value),de=()=>{const q=p.value.preview;return i.timePicker||i.monthPicker,q(w(o.value))},ge=()=>{const q=o.value;return l.value.count>0?`${B(q[0])} - ${B(q[1])}`:[B(q[0]),B(q[1])]},me=s.computed(()=>!o.value||!r.menuMount?"":typeof p.value.preview=="string"?Array.isArray(o.value)?o.value.length===2&&o.value[1]?ge():h.value.enabled?o.value.map(q=>`${B(q)}`):i.modelAuto?`${B(o.value[0])}`:`${B(o.value[0])} -`:B(o.value):de()),we=()=>h.value.enabled?"; ":" - ",te=s.computed(()=>Array.isArray(me.value)?me.value.join(we()):me.value),V=()=>{m.value(o.value)&&v.value(o.value)&&$.value?n("select-date"):A("invalid-select")};return(q,x)=>(s.openBlock(),s.createElementBlock("div",_D,[q.$slots["action-row"]?s.renderSlot(q.$slots,"action-row",s.normalizeProps(s.mergeProps({key:0},{modelValue:s.unref(o),disabled:Y.value,selectDate:()=>q.$emit("select-date"),closePicker:()=>q.$emit("close-picker")}))):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(a).showPreview?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__selection_preview",title:te.value||void 0,style:s.normalizeStyle(D.value)},[q.$slots["action-preview"]&&_.value?s.renderSlot(q.$slots,"action-preview",{key:0,value:s.unref(o),formatValue:te.value}):s.createCommentVNode("",!0),!q.$slots["action-preview"]&&_.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(te.value),1)],64)):s.createCommentVNode("",!0)],12,DD)):s.createCommentVNode("",!0),s.createElementVNode("div",OD,[q.$slots["action-buttons"]?s.renderSlot(q.$slots,"action-buttons",{key:0,value:s.unref(o),selectDate:V,selectionDisabled:Y.value}):s.createCommentVNode("",!0),q.$slots["action-buttons"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!s.unref(u).enabled&&s.unref(a).showCancel?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"cancel-btn",type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_cancel",onClick:x[0]||(x[0]=T=>q.$emit("close-picker")),onKeydown:x[1]||(x[1]=T=>s.unref(y)(T,()=>q.$emit("close-picker")))},s.toDisplayString(s.unref(a).cancelBtnLabel),545)):s.createCommentVNode("",!0),s.unref(a).showNow?(s.openBlock(),s.createElementBlock("button",{key:1,type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_cancel",onClick:x[2]||(x[2]=T=>q.$emit("select-now")),onKeydown:x[3]||(x[3]=T=>s.unref(y)(T,()=>q.$emit("select-now")))},s.toDisplayString(s.unref(a).nowBtnLabel),33)):s.createCommentVNode("",!0),s.unref(a).showSelect?(s.openBlock(),s.createElementBlock("button",{key:2,ref:"select-btn",type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_select",disabled:s.unref(C)(Y.value),"data-test-id":"select-button",onKeydown:x[4]||(x[4]=T=>s.unref(y)(T,()=>V())),onClick:V},s.toDisplayString(s.unref(a).selectBtnLabel),41,ND)):s.createCommentVNode("",!0)],64))],512)],64))],512))}}),uu=()=>{const{rootProps:t,defaults:{multiCalendars:e}}=pt(),n=s.computed(()=>i=>t.hideNavigation?.includes(i)),r=s.computed(()=>i=>e.value.count?e.value.solo?!0:i===0:!0),A=s.computed(()=>i=>e.value.count?e.value.solo?!0:i===e.value.count-1:!0);return{hideNavigationButtons:n,showLeftIcon:r,showRightIcon:A}},RD=["role","aria-label","tabindex"],HD={class:"dp__selection_grid_header"},PD=["aria-selected","aria-disabled","data-dp-action-element","data-dp-element-active","data-test-id","onClick","onKeydown","onMouseover"],$D=["aria-label","data-dp-action-element"],wl=s.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},useRelative:{type:Boolean},height:{},overlayLabel:{},isLast:{type:Boolean},level:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(t,{emit:e}){const n=e,r=t,{setState:A,defaults:{ariaLabels:i,config:o}}=pt(),{hideNavigationButtons:a}=uu(),{handleEventPropagation:l,checkKeyDown:u}=Sn(),d=s.useTemplateRef("toggle-button"),h=s.useTemplateRef("overlay-container"),p=s.useTemplateRef("grid-wrap"),m=s.ref(!1),v=s.ref(null),B=s.ref(),y=s.ref(0);s.onBeforeUpdate(()=>{v.value=null}),s.onMounted(async()=>{await s.nextTick(),D(),A("arrowNavigationLevel",r.level??1)}),s.onUnmounted(()=>{A("arrowNavigationLevel",(r.level??1)-1)});const w=s.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!r.useRelative,"dp--overlay-relative":r.useRelative})),C=s.computed(()=>r.useRelative?{height:`${r.height}px`,width:"var(--dp-menu-min-width)"}:void 0),S=s.computed(()=>({dp__overlay_col:!0})),Q=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:r.isLast})),_=s.computed(()=>({dp__overlay_container:!0,dp__container_flex:r.items?.length<=6,dp__container_block:r.items?.length>6}));s.watch(()=>r.items,()=>D(!1),{deep:!0});const D=(we=!0)=>{s.nextTick().then(()=>{const te=document.querySelector(`[data-dp-element-active="${r.level??1}"]`),V=_r(p),q=_r(d),x=_r(h),T=q?q.getBoundingClientRect().height:0;V&&(V.getBoundingClientRect().height?y.value=V.getBoundingClientRect().height-T:y.value=o.value.modeHeight-T),te&&x&&we&&(x.scrollTop=te.offsetTop-x.offsetTop-(y.value/2-te.getBoundingClientRect().height)-T)})},I=we=>{we.disabled||n("selected",we.value)},$=()=>{n("toggle"),n("reset-flow")},Y=we=>{o.value.escClose&&($(),l(we,o.value))},de=we=>{B.value=we,n("hover-value",we)},ge=we=>{if(we.key===Nt.esc)return Y(we)},me=we=>{if(we.key===Nt.enter)return $()};return(we,te)=>(s.openBlock(),s.createElementBlock("div",{ref:"grid-wrap",class:s.normalizeClass(w.value),style:s.normalizeStyle(C.value),role:t.useRelative?void 0:"dialog","aria-label":t.overlayLabel,tabindex:t.useRelative?void 0:"0",onKeydown:ge,onClick:te[0]||(te[0]=s.withModifiers(()=>{},["prevent"]))},[s.createElementVNode("div",{ref:"overlay-container",class:s.normalizeClass(_.value),style:s.normalizeStyle({"--dp-overlay-height":`${y.value}px`}),role:"grid"},[s.createElementVNode("div",HD,[s.renderSlot(we.$slots,"header")]),s.renderSlot(we.$slots,"overlay",{},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(V,q)=>(s.openBlock(),s.createElementBlock("div",{key:q,class:s.normalizeClass(["dp__overlay_row",{dp__flex_row:t.items.length>=3}]),role:"row"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V,x=>(s.openBlock(),s.createElementBlock("div",{key:x.value,role:"gridcell",class:s.normalizeClass(S.value),"aria-selected":x.active||void 0,"aria-disabled":x.disabled||void 0,"data-dp-action-element":t.level??1,"data-dp-element-active":x.active?t.level??1:void 0,tabindex:"0","data-test-id":x.text,onClick:s.withModifiers(T=>I(x),["prevent"]),onKeydown:T=>s.unref(u)(T,()=>I(x),!0),onMouseover:T=>de(x.value)},[s.createElementVNode("div",{class:s.normalizeClass(x.className)},[s.renderSlot(we.$slots,"item",{item:x},()=>[s.createTextVNode(s.toDisplayString(x.text),1)])],2)],42,PD))),128))],2))),128))])],6),we.$slots["button-icon"]?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref:"toggle-button",type:"button","aria-label":s.unref(i)?.toggleOverlay,class:s.normalizeClass(Q.value),tabindex:"0","data-dp-action-element":t.level??1,onClick:$,onKeydown:me},[s.renderSlot(we.$slots,"button-icon")],42,$D)),[[s.vShow,!s.unref(a)(t.type)]]):s.createCommentVNode("",!0)],46,RD))}}),KD=["data-dp-mobile"],du=s.defineComponent({__name:"InstanceWrap",props:{stretch:{type:Boolean},collapse:{type:Boolean}},setup(t){const{defaults:{multiCalendars:e}}=pt(),{isMobile:n}=lu(),r=s.computed(()=>e.value.count>0?[...new Array(e.value.count).keys()]:[0]);return(A,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({dp__menu_inner:!t.stretch,"dp--menu--inner-stretched":t.stretch,dp__flex_display:s.unref(e).count>0,"dp--flex-display-collapsed":t.collapse}),"data-dp-mobile":s.unref(n)},[s.renderSlot(A.$slots,"default",{instances:r.value,wrapClass:{dp__instance_calendar:s.unref(e).count>0}})],10,KD))}}),zD=["data-dp-element","aria-label","aria-disabled"],Bl=s.defineComponent({__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(t,{emit:e}){const{checkKeyDown:n}=Sn(),r=e;return(A,i)=>(s.openBlock(),s.createElementBlock("button",{ref:"arrow-btn",type:"button","data-dp-element":t.elName,"data-dp-action-element":"0",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":t.ariaLabel,"aria-disabled":t.disabled||void 0,onClick:i[0]||(i[0]=o=>r("activate")),onKeydown:i[1]||(i[1]=o=>s.unref(n)(o,()=>r("activate"),!0))},[s.createElementVNode("span",{class:s.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:t.disabled}])},[s.renderSlot(A.$slots,"default")],2)],40,zD))}}),WD=["aria-label","data-test-id"],O0=s.defineComponent({__name:"YearModePicker",props:{items:{},instance:{},year:{},showYearPicker:{type:Boolean,default:!1},isDisabled:{}},emits:["handle-year","year-select","toggle-year-picker"],setup(t,{emit:e}){const n=e,r=t,{showRightIcon:A,showLeftIcon:i}=uu(),{rootProps:o,defaults:{config:a,ariaLabels:l,ui:u}}=pt(),{showTransition:d,transitionName:h}=pl(),{formatYear:p}=io(),{boolHtmlAttribute:m}=ra(),v=s.ref(!1),B=s.computed(()=>p(r.year)),y=(S=!1,Q)=>{v.value=!v.value,n("toggle-year-picker",{flow:S,show:Q})},w=S=>{v.value=!1,n("year-select",S)},C=(S=!1)=>{n("handle-year",S)};return(S,Q)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",{class:s.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":v.value}])},[s.unref(i)(t.instance)?(s.openBlock(),s.createBlock(Bl,{key:0,ref:"mpPrevIconRef","aria-label":s.unref(l)?.prevYear,disabled:s.unref(m)(t.isDisabled(!1)),class:s.normalizeClass(s.unref(u)?.navBtnPrev),onActivate:Q[0]||(Q[0]=_=>C(!1))},{default:s.withCtx(()=>[S.$slots["arrow-left"]?s.renderSlot(S.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),S.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(b0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0),s.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${t.year}-${s.unref(l)?.openYearsOverlay}`,"data-test-id":`year-mode-btn-${t.instance}`,"data-dp-action-element":"0",onClick:Q[1]||(Q[1]=()=>y(!1)),onKeydown:Q[2]||(Q[2]=s.withKeys(s.withModifiers(()=>y(!1),["prevent"]),["enter"]))},[S.$slots.year?s.renderSlot(S.$slots,"year",{key:0,text:B.value,value:t.year}):s.createCommentVNode("",!0),S.$slots.year?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(t.year),1)],64))],40,WD),s.unref(A)(t.instance)?(s.openBlock(),s.createBlock(Bl,{key:1,ref:"mpNextIconRef","aria-label":s.unref(l)?.nextYear,disabled:s.unref(m)(t.isDisabled(!0)),class:s.normalizeClass(s.unref(u)?.navBtnNext),onActivate:Q[3]||(Q[3]=_=>C(!0))},{default:s.withCtx(()=>[S.$slots["arrow-right"]?s.renderSlot(S.$slots,"arrow-right",{key:0}):s.createCommentVNode("",!0),S.$slots["arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(E0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0)],2),s.createVNode(s.Transition,{name:s.unref(h)(t.showYearPicker),css:s.unref(d)},{default:s.withCtx(()=>[t.showYearPicker?(s.openBlock(),s.createBlock(wl,{key:0,items:t.items,config:s.unref(a),"is-last":s.unref(o).autoApply&&!s.unref(a).keepActionRow,"overlay-label":s.unref(l)?.yearPicker?.(!0),type:"year",onToggle:y,onSelected:Q[4]||(Q[4]=_=>w(_))},s.createSlots({"button-icon":s.withCtx(()=>[S.$slots["calendar-icon"]?s.renderSlot(S.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),S.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(hl),{key:1}))]),_:2},[S.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:_})=>[s.renderSlot(S.$slots,"year-overlay-value",{text:_.text,value:_.value})]),key:"0"}:void 0]),1032,["items","config","is-last","overlay-label"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),N0=t=>{const{getDate:e,rootEmit:n,state:r,month:A,year:i,modelValue:o,calendars:a,rootProps:l,defaults:{multiCalendars:u,range:d,safeDates:h,filters:p,highlight:m}}=pt(),{resetDate:v,getYearFromDate:B,checkHighlightYear:y,groupListAndMap:w}=jn(),{getYears:C}=cu(),{validateMonthYear:S,checkMinMaxValue:Q}=Zr(),_=s.ref([!1]),D=s.computed(()=>C()),I=s.computed(()=>(F,E)=>{const W=ft(v(e()),{month:A.value(F),year:i.value(F)}),ne=E?r0(W):js(W);return S(ne,l.preventMinMaxNavigation,E)}),$=()=>Array.isArray(o.value)&&u.value.solo&&o.value[1],Y=()=>{for(let F=0;F<u.value.count;F++)if(F===0)a.value[F]=a.value[0];else if(F===u.value.count-1&&$())a.value[F]={month:gt(o.value[1]),year:tt(o.value[1])};else{const E=ft(e(),a.value[F-1]);a.value[F]={month:gt(E),year:tt(dp(E,1))}}},de=F=>{if(!F)return Y();const E=ft(e(),a.value[F]);return a.value[0].year=tt(w0(E,u.value.count-1)),Y()},ge=(F,E)=>{const W=_I(E,F);return d.value.showLastInRange&&W>1?E:F},me=F=>l.focusStartDate||u.value.solo?F[0]:F[1]?ge(F[0],F[1]):F[0],we=()=>{if(o.value){const F=Array.isArray(o.value)?me(o.value):o.value;a.value[0]={month:gt(F),year:tt(F)}}},te=()=>{we(),u.value.count&&Y()};s.watch(o,(F,E)=>{r.isTextInputDate&&JSON.stringify(F??{})!==JSON.stringify(E??{})&&te()}),s.onMounted(()=>{te()});const V=(F,E)=>{a.value[E].year=F,n("update-month-year",{instance:E,year:F,month:a.value[E].month}),u.value.count&&!u.value.solo&&de(E)},q=s.computed(()=>F=>w(D.value,E=>{const W=i.value(F)===E.value,ne=Q(E.value,B(h.value.minDate),B(h.value.maxDate))||p.value.years?.includes(i.value(F)),X=y(m.value,E.value);return{active:W,disabled:ne,highlighted:X}})),x=(F,E)=>{V(F,E),P(E)},T=(F,E=!1)=>{if(!I.value(F,E)){const W=E?i.value(F)+1:i.value(F)-1;V(W,F)}},P=(F,E=!1,W)=>{E||t("reset-flow"),W===void 0?_.value[F]=!_.value[F]:_.value[F]=W,_.value[F]?n("overlay-toggle",{open:!0,overlay:fr.year}):n("overlay-toggle",{open:!1,overlay:fr.year})};return{isDisabled:I,groupedYears:q,showYearPicker:_,selectYear:V,setStartDate:()=>{l.startDate&&(o.value&&l.focusStartDate||!o.value)&&V(tt(e(l.startDate)),0)},toggleYearPicker:P,handleYearSelect:x,handleYear:T}},fu=()=>{const{isDateAfter:t,isDateBefore:e,isDateEqual:n}=jn(),{getDate:r,rootEmit:A,rootProps:i,modelValue:o,defaults:{range:a}}=pt();return{getRangeWithFixedDate:l=>Array.isArray(o.value)&&(o.value.length===2||o.value.length===1&&a.value.partialRange)?a.value.fixedStart&&(t(l,o.value[0])||n(l,o.value[0]))?[o.value[0],l]:a.value.fixedEnd&&(e(l,o.value[1])||n(l,o.value[1]))?[l,o.value[1]]:(A("invalid-fixed-range",l),o.value):[],setPresetDate:l=>{Array.isArray(l.value)&&l.value.length<=2&&a.value.enabled?o.value=l.value.map(u=>r(u)):Array.isArray(l.value)||(o.value=r(l.value))},checkRangeAutoApply:(l,u,d)=>{a&&(l[0]&&l[1]&&i.autoApply&&u("auto-apply",d),l[0]&&!l[1]&&(i.modelAuto||a.value.partialRange)&&i.autoApply&&u("auto-apply",d))},setMonthOrYearRange:l=>{let u=o.value?o.value.slice():[];return u.length===2&&u[1]!==null&&(u=[]),u.length?(e(l,u[0])?u.unshift(l):u[1]=l,A("range-end",l)):(u=[l],A("range-start",l)),u},handleMultiDatesSelect:(l,u)=>{if(o.value&&Array.isArray(o.value))if(o.value.some(d=>n(l,d))){const d=o.value.filter(h=>!n(h,l));o.value=d.length?d:null}else(u&&+u>o.value.length||!u)&&o.value.push(l);else o.value=[l]}}},GD=(t,e)=>{const{getDate:n,rootEmit:r,state:A,calendars:i,year:o,modelValue:a,rootProps:l,defaults:{range:u,highlight:d,safeDates:h,filters:p,multiDates:m}}=pt();ml(()=>{A.isTextInputDate&&x(tt(n(l.startDate)),0)});const{checkMinMaxRange:v,checkMinMaxValue:B}=Zr(),{isDateBetween:y,resetDateTime:w,resetDate:C,getMinMonth:S,getMaxMonth:Q,checkHighlightMonth:_,groupListAndMap:D}=jn(),{checkRangeAutoApply:I,getRangeWithFixedDate:$,handleMultiDatesSelect:Y,setMonthOrYearRange:de,setPresetDate:ge}=fu(),{padZero:me}=Sn(),{getMonths:we,isOutOfYearRange:te}=cu(),V=s.computed(()=>we()),q=s.ref(null),{selectYear:x,groupedYears:T,showYearPicker:P,toggleYearPicker:F,handleYearSelect:E,handleYear:W,isDisabled:ne,setStartDate:X}=N0(e);s.onMounted(()=>{X()});const re=j=>j?{month:gt(j),year:tt(j)}:{month:null,year:null},Ae=()=>a.value?Array.isArray(a.value)?a.value.map(j=>re(j)):re(a.value):re(),pe=(j,be)=>{const Be=i.value[j],ae=Ae();return Array.isArray(ae)?ae.some(he=>he.year===Be?.year&&he.month===be):Be?.year===ae.year&&be===ae.month},le=(j,be,Be)=>{const ae=Ae();return Array.isArray(ae)?o.value(be)===ae[Be]?.year&&j===ae[Be]?.month:!1},Ce=(j,be)=>{if(u.value.enabled){const Be=Ae();if(Array.isArray(a.value)&&Array.isArray(Be)){const ae=le(j,be,0)||le(j,be,1),he=ft(C(n()),{month:j,year:o.value(be)});return y(a.value,q.value,he)&&!ae}return!1}return!1},G=s.computed(()=>j=>D(V.value,be=>{const Be=pe(j,be.value),ae=B(be.value,S(o.value(j),h.value.minDate),Q(o.value(j),h.value.maxDate))||O(h.value.disabledDates,o.value(j),be.value)||p.value.months?.includes(be.value)||!se(h.value.allowedDates,o.value(j),be.value)||te(o.value(j)),he=Ce(be.value,j),xe=_(d.value,be.value,o.value(j));return{active:Be,disabled:ae,isBetween:he,highlighted:xe}})),ee=(j,be)=>ft(C(n()),{month:j,year:o.value(be)}),K=(j,be)=>{const Be=a.value?a.value:C(n());a.value=ft(Be,{month:j,year:o.value(be)}),e("auto-apply"),e("update-flow-step")},N=(j,be)=>{const Be=ee(j,be);u.value.fixedEnd||u.value.fixedStart?a.value=$(Be):a.value?v(Be,a.value)&&(a.value=de(ee(j,be))):a.value=[ee(j,be)],s.nextTick().then(()=>{I(a.value,e,a.value.length<2)})},R=(j,be)=>{Y(ee(j,be),m.value.limit),e("auto-apply",!0)},J=(j,be)=>(i.value[be].month=j,ce(be,i.value[be].year,j),m.value.enabled?R(j,be):u.value.enabled?N(j,be):K(j,be)),z=(j,be)=>{x(j,be),ce(be,j,null)},ce=(j,be,Be)=>{let ae=Be;if(!ae&&ae!==0){const he=Ae();ae=Array.isArray(he)?he[j].month:he.month}r("update-month-year",{instance:j,year:be,month:ae})},k=(j,be)=>{q.value=ee(j,be)},U=j=>{ge({value:j}),e("auto-apply")},O=(j,be,Be)=>{if(j instanceof Map){const ae=`${me(Be+1)}-${be}`;return j.size?j.has(ae):!1}return typeof j=="function"?j(w(ft(n(),{month:Be,year:be}),!0)):!1},se=(j,be,Be)=>{if(j instanceof Map){const ae=`${me(Be+1)}-${be}`;return j.size?j.has(ae):!0}return!0};return{groupedMonths:G,groupedYears:T,year:o,isDisabled:ne,showYearPicker:P,modelValue:a,toggleYearPicker:F,handleYearSelect:E,handleYear:W,presetDate:U,setHoverDate:k,selectMonth:J,selectYear:z,getModelMonthYear:Ae}},YD=s.defineComponent({__name:"MonthPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply","update-flow-step","mount"],setup(t,{expose:e,emit:n}){const r=n,A=t,i=s.useSlots(),{rootProps:o,defaults:{config:a}}=pt(),l=VA(i,xA.YearMode);s.onMounted(()=>{r("mount")});const{groupedMonths:u,groupedYears:d,year:h,isDisabled:p,showYearPicker:m,modelValue:v,presetDate:B,setHoverDate:y,selectMonth:w,selectYear:C,toggleYearPicker:S,handleYearSelect:Q,handleYear:_,getModelMonthYear:D}=GD(A,r);return e({getSidebarProps:()=>({modelValue:v,year:h,getModelMonthYear:D,selectMonth:w,selectYear:C,handleYear:_}),presetDate:B,toggleYearPicker:I=>S(0,I)}),(I,$)=>(s.openBlock(),s.createBlock(du,{collapse:t.collapse,stretch:""},{default:s.withCtx(({instances:Y,wrapClass:de})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Y,ge=>(s.openBlock(),s.createElementBlock("div",{key:ge,class:s.normalizeClass(de)},[I.$slots["top-extra"]?s.renderSlot(I.$slots,"top-extra",{key:0,value:s.unref(v)}):s.createCommentVNode("",!0),s.renderSlot(I.$slots,"month-year",s.mergeProps({ref_for:!0},{year:s.unref(h),months:s.unref(u)(ge),years:s.unref(d)(ge),selectMonth:s.unref(w),selectYear:s.unref(C),instance:ge}),()=>[s.createVNode(wl,{items:s.unref(u)(ge),"is-last":s.unref(o).autoApply&&!s.unref(a).keepActionRow,height:s.unref(a).modeHeight,"no-overlay-focus":!!(t.noOverlayFocus||s.unref(o).textInput),"use-relative":"",level:0,type:"month",onSelected:me=>s.unref(w)(me,ge),onHoverValue:me=>s.unref(y)(me,ge)},s.createSlots({header:s.withCtx(()=>[s.createVNode(O0,{items:s.unref(d)(ge),instance:ge,"show-year-picker":s.unref(m)[ge],year:s.unref(h)(ge),"is-disabled":me=>s.unref(p)(ge,me),onHandleYear:me=>s.unref(_)(ge,me),onYearSelect:me=>s.unref(Q)(me,ge),onToggleYearPicker:me=>s.unref(S)(ge,me?.flow,me?.show)},s.createSlots({_:2},[s.renderList(s.unref(l),(me,we)=>({name:me,fn:s.withCtx(te=>[s.renderSlot(I.$slots,me,s.mergeProps({ref_for:!0},te))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[I.$slots["month-overlay-value"]?{name:"item",fn:s.withCtx(({item:me})=>[s.renderSlot(I.$slots,"month-overlay-value",{text:me.text,value:me.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","onSelected","onHoverValue"])])],2))),128))]),_:3},8,["collapse"]))}}),qD=(t,e)=>{const{rootEmit:n,getDate:r,state:A,modelValue:i,rootProps:o,defaults:{highlight:a,multiDates:l,filters:u,range:d,safeDates:h}}=pt(),{getYears:p}=cu(),{isDateBetween:m,resetDate:v,resetDateTime:B,getYearFromDate:y,checkHighlightYear:w,groupListAndMap:C}=jn(),{checkRangeAutoApply:S,setMonthOrYearRange:Q}=fu(),{checkMinMaxValue:_,checkMinMaxRange:D}=Zr();ml(()=>{A.isTextInputDate&&($.value=tt(r(o.startDate)))});const I=s.ref(null),$=s.ref();s.onMounted(()=>{o.startDate&&(i.value&&o.focusStartDate||!i.value)&&($.value=tt(r(o.startDate)))});const Y=V=>Array.isArray(i.value)?i.value.some(q=>tt(q)===V):i.value?tt(i.value)===V:!1,de=V=>d.value.enabled&&Array.isArray(i.value)?m(i.value,I.value,te(V)):!1,ge=V=>h.value.allowedDates?.size?h.value.allowedDates.has(`${V}`):!0,me=V=>h.value.disabledDates instanceof Map?h.value.disabledDates.size?h.value.disabledDates.has(`${V}`):!1:typeof h.value.disabledDates=="function"?h.value.disabledDates(EA(B(js(r())),V)):!0,we=s.computed(()=>C(p(),V=>{const q=Y(V.value),x=_(V.value,y(h.value.minDate),y(h.value.maxDate))||u.value.years.includes(V.value)||!ge(V.value)||me(V.value),T=de(V.value)&&!q,P=w(a.value,V.value);return{active:q,disabled:x,isBetween:T,highlighted:P}})),te=V=>EA(v(js(r())),V);return{groupedYears:we,focusYear:$,setHoverValue:V=>{I.value=EA(v(r()),V)},selectYear:V=>{if(n("update-month-year",{instance:0,year:V,month:Number.NaN}),l.value.enabled)return i.value?Array.isArray(i.value)&&((i.value?.map(q=>tt(q))).includes(V)?i.value=i.value.filter(q=>tt(q)!==V):i.value.push(EA(B(r()),V))):i.value=[EA(B(js(r())),V)],e("auto-apply",!0);d.value.enabled?D(te(V),i.value)&&(i.value=Q(te(V)),s.nextTick().then(()=>{S(i.value,e,i.value.length<2)})):(i.value=te(V),e("auto-apply"))}}},XD=s.defineComponent({__name:"YearPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(t,{expose:e,emit:n}){const r=n,A=t,{modelValue:i,defaults:{config:o},rootProps:a}=pt(),{groupedYears:l,focusYear:u,selectYear:d,setHoverValue:h}=qD(A,r);return e({getSidebarProps:()=>({modelValue:i,selectYear:d})}),(p,m)=>(s.openBlock(),s.createElementBlock("div",null,[p.$slots["top-extra"]?s.renderSlot(p.$slots,"top-extra",{key:0,value:s.unref(i)}):s.createCommentVNode("",!0),p.$slots["month-year"]?s.renderSlot(p.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{years:s.unref(l),selectYear:s.unref(d)}))):(s.openBlock(),s.createBlock(wl,{key:2,items:s.unref(l),"is-last":s.unref(a).autoApply&&!s.unref(o).keepActionRow,height:s.unref(o).modeHeight,"no-overlay-focus":!!(t.noOverlayFocus||s.unref(a).textInput),"focus-value":s.unref(u),type:"year","use-relative":"",onSelected:s.unref(d),onHoverValue:s.unref(h)},s.createSlots({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:v})=>[s.renderSlot(p.$slots,"year-overlay-value",{text:v.text,value:v.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),JD={key:0,class:"dp__time_input"},jD=["data-compact","data-collapsed"],ZD=["data-test-id","aria-label","data-dp-action-element","onKeydown","onClick","onMousedown"],VD=["aria-label","disabled","data-dp-action-element","data-test-id","onKeydown","onClick"],eO=["data-test-id","aria-label","data-dp-action-element","onKeydown","onClick","onMousedown"],tO={key:0},nO=["aria-label","data-dp-action-element","data-compact"],rO=s.defineComponent({__name:"TimeInput",props:{hours:{},minutes:{},seconds:{},order:{},closeTimePickerBtn:{},disabledTimesConfig:{},validateTime:{}},emits:["update:hours","update:minutes","update:seconds","overlay-opened","overlay-closed","set-hours","set-minutes","reset-flow","mounted"],setup(t,{expose:e,emit:n}){const r=n,A=t,{getDate:i,rootEmit:o,rootProps:a,defaults:{ariaLabels:l,filters:u,config:d,range:h,multiCalendars:p,timeConfig:m}}=pt(),{checkKeyDown:v,hoursToAmPmHours:B}=Sn(),{boolHtmlAttribute:y}=ra(),{sanitizeTime:w,groupListAndMap:C}=jn(),{transitionName:S,showTransition:Q}=pl(),_=s.reactive({hours:!1,minutes:!1,seconds:!1}),D=s.ref("AM"),I=s.ref(null),$=s.ref(),Y=s.ref(!1);s.onMounted(()=>{r("mounted")});const de=O=>ft(i(),{hours:O.hours,minutes:O.minutes,seconds:m.value.enableSeconds?O.seconds:0,milliseconds:0}),ge=s.computed(()=>a.timePicker||m.value.timePickerInline?0:1),me=s.computed(()=>O=>re(O,A[O])||te(O,A[O])),we=s.computed(()=>({hours:A.hours,minutes:A.minutes,seconds:A.seconds})),te=(O,se)=>h.value.enabled&&!h.value.disableTimeRangeValidation?!A.validateTime(O,se):!1,V=(O,se)=>{if(h.value.enabled&&!h.value.disableTimeRangeValidation){const j=se?+m.value[`${O}Increment`]:-+m.value[`${O}Increment`],be=A[O]+j;return!A.validateTime(O,be)}return!1},q=s.computed(()=>O=>!G(+A[O]+ +m.value[`${O}Increment`],O)||V(O,!0)),x=s.computed(()=>O=>!G(+A[O]-+m.value[`${O}Increment`],O)||V(O,!1)),T=(O,se)=>XB(ft(i(),O),se),P=(O,se)=>x_(ft(i(),O),se),F=s.computed(()=>({dp__time_col:!0,dp__time_col_block:!m.value.timePickerInline,dp__time_col_reg_block:!m.value.enableSeconds&&m.value.is24&&!m.value.timePickerInline,dp__time_col_reg_inline:!m.value.enableSeconds&&m.value.is24&&m.value.timePickerInline,dp__time_col_reg_with_button:!m.value.enableSeconds&&!m.value.is24,dp__time_col_sec:m.value.enableSeconds&&m.value.is24,dp__time_col_sec_with_button:m.value.enableSeconds&&!m.value.is24})),E=s.computed(()=>m.value.timePickerInline&&h.value.enabled&&!p.value.count),W=s.computed(()=>{const O=[{type:"hours"}];return m.value.enableMinutes&&O.push({type:"",separator:!0},{type:"minutes"}),m.value.enableSeconds&&O.push({type:"",separator:!0},{type:"seconds"}),O}),ne=s.computed(()=>W.value.filter(O=>!O.separator)),X=s.computed(()=>O=>{if(O==="hours"){const se=z(+A.hours);return{text:se<10?`0${se}`:`${se}`,value:se}}return{text:A[O]<10?`0${A[O]}`:`${A[O]}`,value:A[O]}}),re=(O,se)=>{if(!A.disabledTimesConfig)return!1;const j=A.disabledTimesConfig(A.order,O==="hours"?se:void 0);return j[O]?!!j[O]?.includes(se):!0},Ae=(O,se)=>se!=="hours"||D.value==="AM"?O:O+12,pe=O=>{const se=m.value.is24?24:12,j=O==="hours"?se:60,be=+m.value[`${O}GridIncrement`],Be=O==="hours"&&!m.value.is24?be:0,ae=[];for(let he=Be;he<j;he+=be)ae.push({value:m.value.is24?he:Ae(he,O),text:he<10?`0${he}`:`${he}`});return O==="hours"&&!m.value.is24&&ae.unshift({value:D.value==="PM"?12:0,text:"12"}),C(ae,he=>({active:!1,disabled:u.value.times[O].includes(he.value)||!G(he.value,O)||re(O,he.value)||te(O,he.value)}))},le=O=>O>=0?O:59,Ce=O=>O>=0?O:23,G=(O,se)=>{const j=a.minTime?de(w(a.minTime)):null,be=a.maxTime?de(w(a.maxTime)):null,Be=de(w(we.value,se,se==="minutes"||se==="seconds"?le(O):Ce(O)));return j&&be?(bi(Be,be)||Vs(Be,be))&&(XA(Be,j)||Vs(Be,j)):j?XA(Be,j)||Vs(Be,j):be?bi(Be,be)||Vs(Be,be):!0},ee=O=>m.value[`no${O[0].toUpperCase()+O.slice(1)}Overlay`],K=O=>{ee(O)||(_[O]=!_[O],_[O]?(Y.value=!0,r("overlay-opened",O)):(Y.value=!1,r("overlay-closed",O)))},N=O=>O==="hours"?qA:O==="minutes"?Ci:Ao,R=()=>{$.value&&clearTimeout($.value)},J=(O,se=!0,j)=>{const be=se?T:P,Be=se?+m.value[`${O}Increment`]:-+m.value[`${O}Increment`];G(+A[O]+Be,O)&&r(`update:${O}`,N(O)(be({[O]:+A[O]},{[O]:+m.value[`${O}Increment`]}))),!j?.keyboard&&d.value.timeArrowHoldThreshold&&($.value=setTimeout(()=>{J(O,se)},d.value.timeArrowHoldThreshold))},z=O=>m.value.is24?O:(O>=12?D.value="PM":D.value="AM",B(O)),ce=()=>{D.value==="PM"?(D.value="AM",r("update:hours",A.hours-12)):(D.value="PM",r("update:hours",A.hours+12)),o("am-pm-change",D.value)},k=O=>{_[O]=!0},U=(O,se)=>(K(O),r(`update:${O}`,se));return e({openChildCmp:k}),(O,se)=>s.unref(a).disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",JD,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(W.value,(j,be)=>(s.openBlock(),s.createElementBlock("div",{key:be,class:s.normalizeClass(F.value),"data-compact":E.value&&!s.unref(m).enableSeconds,"data-collapsed":E.value&&s.unref(m).enableSeconds},[j.separator?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Y.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(":")],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!s.unref(m).timePickerInline,dp__inc_dec_button_inline:s.unref(m).timePickerInline,dp__tp_inline_btn_top:s.unref(m).timePickerInline,dp__inc_dec_button_disabled:q.value(j.type),"dp--hidden-el":Y.value}),"data-test-id":`${j.type}-time-inc-btn-${A.order}`,"aria-label":s.unref(l)?.incrementValue(j.type),tabindex:"0","data-dp-action-element":ge.value,onKeydown:Be=>s.unref(v)(Be,()=>J(j.type,!0,{keyboard:!0}),!0),onClick:Be=>s.unref(d).timeArrowHoldThreshold?void 0:J(j.type,!0),onMousedown:Be=>s.unref(d).timeArrowHoldThreshold?J(j.type,!0):void 0,onMouseup:R},[s.unref(m).timePickerInline?s.renderSlot(O.$slots,"tp-inline-arrow-up",{key:1},()=>[se[2]||(se[2]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),se[3]||(se[3]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))]):s.renderSlot(O.$slots,"arrow-up",{key:0},()=>[s.createVNode(s.unref(S0))])],42,ZD),s.createElementVNode("button",{type:"button","aria-label":`${X.value(j.type).text}-${s.unref(l)?.openTpOverlay(j.type)}`,class:s.normalizeClass({dp__time_display:!0,dp__time_display_block:!s.unref(m).timePickerInline,dp__time_display_inline:s.unref(m).timePickerInline,"dp--time-invalid":me.value(j.type),"dp--time-overlay-btn":!me.value(j.type),"dp--hidden-el":Y.value}),disabled:s.unref(y)(ee(j.type)),tabindex:"0","data-dp-action-element":ge.value,"data-test-id":`${j.type}-toggle-overlay-btn-${A.order}`,onKeydown:Be=>s.unref(v)(Be,()=>K(j.type),!0),onClick:Be=>K(j.type)},[s.renderSlot(O.$slots,j.type,{text:X.value(j.type).text,value:X.value(j.type).value},()=>[s.createTextVNode(s.toDisplayString(X.value(j.type).text),1)])],42,VD),s.createElementVNode("button",{type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!s.unref(m).timePickerInline,dp__inc_dec_button_inline:s.unref(m).timePickerInline,dp__tp_inline_btn_bottom:s.unref(m).timePickerInline,dp__inc_dec_button_disabled:x.value(j.type),"dp--hidden-el":Y.value}),"data-test-id":`${j.type}-time-dec-btn-${A.order}`,"aria-label":s.unref(l)?.decrementValue(j.type),tabindex:"0","data-dp-action-element":ge.value,onKeydown:Be=>s.unref(v)(Be,()=>J(j.type,!1,{keyboard:!0}),!0),onClick:Be=>s.unref(d).timeArrowHoldThreshold?void 0:J(j.type,!1),onMousedown:Be=>s.unref(d).timeArrowHoldThreshold?J(j.type,!1):void 0,onMouseup:R},[s.unref(m).timePickerInline?s.renderSlot(O.$slots,"tp-inline-arrow-down",{key:1},()=>[se[4]||(se[4]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),se[5]||(se[5]=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))]):s.renderSlot(O.$slots,"arrow-down",{key:0},()=>[s.createVNode(s.unref(x0))])],42,eO)],64))],10,jD))),128)),s.unref(m).is24?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",tO,[s.renderSlot(O.$slots,"am-pm-button",{toggle:ce,value:D.value},()=>[s.createElementVNode("button",{ref_key:"amPmButton",ref:I,type:"button",class:"dp__pm_am_button",role:"button","aria-label":s.unref(l)?.amPmButton,tabindex:"0","data-dp-action-element":ge.value,"data-compact":E.value,onClick:ce,onKeydown:se[0]||(se[0]=j=>s.unref(v)(j,()=>ce(),!0))},s.toDisplayString(D.value),41,nO)])])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(ne.value,(j,be)=>(s.openBlock(),s.createBlock(s.Transition,{key:be,name:s.unref(S)(_[j.type]),css:s.unref(Q)},{default:s.withCtx(()=>[_[j.type]?(s.openBlock(),s.createBlock(wl,{key:0,items:pe(j.type),"is-last":s.unref(a).autoApply&&!s.unref(d).keepActionRow,type:j.type,"aria-labels":s.unref(l),level:s.unref(m).timePickerInline||s.unref(a).timePicker?1:2,"overlay-label":s.unref(l).timeOverlay?.(j.type),onSelected:Be=>U(j.type,Be),onToggle:Be=>K(j.type),onResetFlow:se[1]||(se[1]=Be=>O.$emit("reset-flow"))},s.createSlots({"button-icon":s.withCtx(()=>[s.renderSlot(O.$slots,"clock-icon",{},()=>[O.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(m).timePickerInline?s.unref(hl):s.unref(k0)),{key:0}))])]),_:2},[O.$slots[`${j.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:Be})=>[s.renderSlot(O.$slots,`${j.type}-overlay-value`,{text:Be.text,value:Be.value})]),key:"0"}:void 0,O.$slots[`${j.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(O.$slots,`${j.type}-overlay-header`,{toggle:()=>K(j.type)})]),key:"1"}:void 0]),1032,["items","is-last","type","aria-labels","level","overlay-label","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}),AO=["data-dp-mobile"],iO=["aria-label","tabindex"],oO=["role","aria-label","tabindex"],sO=["aria-label"],L0=s.defineComponent({__name:"TimePicker",props:{hours:{},minutes:{},seconds:{},disabledTimesConfig:{type:[Function,null]},noOverlayFocus:{type:Boolean},validateTime:{type:Function}},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow"],setup(t,{expose:e,emit:n}){const r=n,A=t,{rootEmit:i,setState:o,modelValue:a,rootProps:l,defaults:{ariaLabels:u,textInput:d,config:h,range:p,timeConfig:m}}=pt(),{isModelAuto:v}=jn(),{checkKeyDown:B,findFocusableEl:y}=Sn(),{transitionName:w,showTransition:C}=pl(),{hideNavigationButtons:S}=uu(),{isMobile:Q}=lu(),_=s.useSlots(),D=s.useTemplateRef("overlay"),I=s.useTemplateRef("close-tp-btn"),$=s.useTemplateRef("tp-input"),Y=s.ref(!1);s.onMounted(()=>{r("mount")});const de=s.computed(()=>p.value.enabled&&l.modelAuto?v(a.value):!0),ge=s.ref(!1),me=X=>({hours:Array.isArray(A.hours)?A.hours[X]:A.hours,minutes:Array.isArray(A.minutes)?A.minutes[X]:A.minutes,seconds:Array.isArray(A.seconds)?A.seconds[X]:A.seconds}),we=s.computed(()=>{const X=[];if(p.value.enabled)for(let re=0;re<2;re++)X.push(me(re));else X.push(me(0));return X}),te=(X,re=!1,Ae="")=>{re||r("reset-flow"),ge.value=X,o("arrowNavigationLevel",X?1:0),i("overlay-toggle",{open:X,overlay:fr.time}),s.nextTick(()=>{Ae!==""&&$.value?.[0]&&$.value[0].openChildCmp(Ae)})},V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:l.autoApply&&!h.value.keepActionRow})),q=VA(_,xA.TimeInput),x=(X,re,Ae)=>p.value.enabled?re===0?[X,we.value[1][Ae]]:[we.value[0][Ae],X]:X,T=X=>{r("update:hours",X)},P=X=>{r("update:minutes",X)},F=X=>{r("update:seconds",X)},E=()=>{if(D.value&&!d.value.enabled&&!A.noOverlayFocus){const X=y(D.value);X&&X.focus({preventScroll:!0})}},W=X=>{Y.value=!1,i("overlay-toggle",{open:!1,overlay:X})},ne=X=>{Y.value=!0,i("overlay-toggle",{open:!0,overlay:X})};return e({toggleTimePicker:te}),(X,re)=>(s.openBlock(),s.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":s.unref(Q)},[!s.unref(l).timePicker&&!s.unref(m).timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref:"open-tp-btn",type:"button","data-dp-action-element":"0",class:s.normalizeClass({...V.value,"dp--hidden-el":ge.value}),"aria-label":s.unref(u)?.openTimePicker,tabindex:t.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:re[0]||(re[0]=Ae=>s.unref(B)(Ae,()=>te(!0))),onClick:re[1]||(re[1]=Ae=>te(!0))},[s.renderSlot(X.$slots,"clock-icon",{},()=>[s.createVNode(s.unref(k0))])],42,iO)),[[s.vShow,!s.unref(S)("time")]]):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(w)(ge.value),css:s.unref(C)&&!s.unref(m).timePickerInline},{default:s.withCtx(()=>[ge.value||s.unref(l).timePicker||s.unref(m).timePickerInline?(s.openBlock(),s.createElementBlock("div",{key:0,ref:"overlay",role:s.unref(m).timePickerInline?void 0:"dialog",class:s.normalizeClass({dp__overlay:!s.unref(m).timePickerInline,"dp--overlay-absolute":!s.unref(l).timePicker&&!s.unref(m).timePickerInline,"dp--overlay-relative":s.unref(l).timePicker}),style:s.normalizeStyle(s.unref(l).timePicker?{height:`${s.unref(h).modeHeight}px`}:void 0),"aria-label":s.unref(u)?.timePicker,tabindex:s.unref(m).timePickerInline?void 0:0},[s.createElementVNode("div",{class:s.normalizeClass(s.unref(m).timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[s.renderSlot(X.$slots,"time-picker-overlay",{hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:T,setMinutes:P,setSeconds:F},()=>[s.createElementVNode("div",{class:s.normalizeClass(s.unref(m).timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(we.value,(Ae,pe)=>s.withDirectives((s.openBlock(),s.createBlock(rO,s.mergeProps({key:pe},{ref_for:!0},{order:pe,hours:Ae.hours,minutes:Ae.minutes,seconds:Ae.seconds,closeTimePickerBtn:I.value,disabledTimesConfig:t.disabledTimesConfig,disabled:pe===0?s.unref(p).fixedStart:s.unref(p).fixedEnd},{ref_for:!0,ref:"tp-input","validate-time":(le,Ce)=>t.validateTime(le,x(Ce,pe,le)),"onUpdate:hours":le=>T(x(le,pe,"hours")),"onUpdate:minutes":le=>P(x(le,pe,"minutes")),"onUpdate:seconds":le=>F(x(le,pe,"seconds")),onMounted:E,onOverlayClosed:W,onOverlayOpened:ne}),s.createSlots({_:2},[s.renderList(s.unref(q),(le,Ce)=>({name:le,fn:s.withCtx(G=>[s.renderSlot(X.$slots,le,s.mergeProps({ref_for:!0},G))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[s.vShow,pe===0?!0:de.value]])),128))],2)]),!s.unref(l).timePicker&&!s.unref(m).timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref:"close-tp-btn","data-dp-action-element":"1",type:"button",class:s.normalizeClass({...V.value,"dp--hidden-el":Y.value}),"aria-label":s.unref(u)?.closeTimePicker,tabindex:"0",onKeydown:re[2]||(re[2]=Ae=>s.unref(B)(Ae,()=>te(!1))),onClick:re[3]||(re[3]=Ae=>te(!1))},[s.renderSlot(X.$slots,"calendar-icon",{},()=>[s.createVNode(s.unref(hl))])],42,sO)),[[s.vShow,!s.unref(S)("time")]]):s.createCommentVNode("",!0)],2)],14,oO)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],8,AO))}}),R0=t=>{const{getDate:e,modelValue:n,time:r,rootProps:A,defaults:{range:i,timeConfig:o}}=pt(),{isDateEqual:a,setTime:l}=jn(),u=(I,$)=>Array.isArray(r[I])?r[I][$]:r[I],d=I=>o.value.enableSeconds?Array.isArray(r.seconds)?r.seconds[I]:r.seconds:0,h=(I,$)=>I?l($!==void 0?{hours:u("hours",$),minutes:u("minutes",$),seconds:d($)}:{hours:r.hours,minutes:r.minutes,seconds:d()},I):S_(e(),d($)),p=(I,$)=>{r[I]=$},m=s.computed(()=>A.modelAuto&&i.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:i.value.enabled),v=(I,$)=>{const Y=Object.fromEntries(Object.keys(r).map(de=>de===I?[de,$]:[de,r[de]].slice()));if(m.value&&!i.value.disableTimeRangeValidation){const de=me=>n.value?l({hours:Y.hours[me],minutes:Y.minutes[me],seconds:Y.seconds[me]},n.value[me]):null,ge=me=>k_(n.value[me],0);return!(a(de(0),de(1))&&(XA(de(0),ge(1))||bi(de(1),ge(0))))}return!0},B=(I,$)=>{v(I,$)&&(p(I,$),t&&t())},y=I=>{B("hours",I)},w=I=>{B("minutes",I)},C=I=>{B("seconds",I)},S=(I,$)=>{y(I.hours),w(I.minutes),C(I.seconds),n.value&&$(n.value)},Q=I=>{if(I){const $=Array.isArray(I),Y=$?[+I[0].hours,+I[1].hours]:+I.hours,de=$?[+I[0].minutes,+I[1].minutes]:+I.minutes,ge=$?[+(I[0].seconds??0),+(I[1].seconds??0)]:+(I.seconds??0);p("hours",Y),p("minutes",de),o.value.enableSeconds&&p("seconds",ge)}},_=(I,$)=>{const Y={hours:Array.isArray(r.hours)?r.hours[I]:r.hours,disabledArr:[]};return($||$===0)&&(Y.hours=$),Array.isArray(A.disabledTimes)&&(Y.disabledArr=i.value.enabled&&Array.isArray(A.disabledTimes[I])?A.disabledTimes[I]:A.disabledTimes),Y},D=s.computed(()=>(I,$)=>{if(Array.isArray(A.disabledTimes)){const{disabledArr:Y,hours:de}=_(I,$),ge=Y.filter(me=>+me.hours===de);return ge[0]?.minutes==="*"?{hours:[de],minutes:void 0,seconds:void 0}:{hours:[],minutes:ge?.map(me=>+me.minutes)??[],seconds:ge?.map(me=>me.seconds?+me.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{assignTime:p,updateHours:y,updateMinutes:w,updateSeconds:C,getSetDateTime:h,updateTimeValues:S,getSecondsValue:d,assignStartTime:Q,validateTime:v,disabledTimesConfig:D}},aO=t=>{const{getDate:e,time:n,modelValue:r,state:A,defaults:{startTime:i,range:o,timeConfig:a}}=pt(),{getTimeObj:l}=jn();ml(()=>{A.isTextInputDate&&_()});const{updateTimeValues:u,getSetDateTime:d,assignTime:h,assignStartTime:p,disabledTimesConfig:m,validateTime:v}=R0(B);function B(){t("update-flow-step")}const y=I=>{const{hours:$,minutes:Y,seconds:de}=I;return{hours:+$,minutes:+Y,seconds:de?+de:0}},w=()=>{if(a.value.startTime){if(Array.isArray(a.value.startTime)){const $=y(a.value.startTime[0]),Y=y(a.value.startTime[1]);return[ft(e(),$),ft(e(),Y)]}const I=y(a.value.startTime);return ft(e(),I)}return o.value.enabled?[null,null]:null},C=()=>{if(o.value.enabled){const[I,$]=w();r.value=[d(I,0),d($,1)]}else r.value=d(w())},S=I=>Array.isArray(I)?[l(e(I[0])),l(e(I[1]))]:[l(I??e())],Q=(I,$,Y)=>{h("hours",I),h("minutes",$),h("seconds",a.value.enableSeconds?Y:0)},_=()=>{const[I,$]=S(r.value);return o.value.enabled?Q([I.hours,$.hours],[I.minutes,$.minutes],[I.seconds,$.seconds]):Q(I.hours,I.minutes,I.seconds)};s.onMounted(()=>(p(i.value),r.value?_():C()));const D=()=>{Array.isArray(r.value)?r.value=r.value.map((I,$)=>I&&d(I,$)):r.value=d(r.value),t("time-update")};return{modelValue:r,time:n,disabledTimesConfig:m,validateTime:v,updateTime:I=>{u(I,D)}}},lO=s.defineComponent({__name:"TimePickerSolo",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["time-update","mount","reset-flow","update-flow-step"],setup(t,{expose:e,emit:n}){const r=n,A=s.useSlots(),i=VA(A,xA.TimePicker),o=s.useTemplateRef("time-input"),{time:a,modelValue:l,disabledTimesConfig:u,updateTime:d,validateTime:h}=aO(r);return s.onMounted(()=>{r("mount")}),e({getSidebarProps:()=>({modelValue:l,time:a,updateTime:d}),toggleTimePicker:(p,m=!1,v="")=>{o.value?.toggleTimePicker(p,m,v)}}),(p,m)=>(s.openBlock(),s.createBlock(du,{"multi-calendars":0,stretch:""},{default:s.withCtx(({wrapClass:v})=>[s.createElementVNode("div",{class:s.normalizeClass(v)},[s.createVNode(L0,s.mergeProps({ref:"time-input"},p.$props,{hours:s.unref(a).hours,minutes:s.unref(a).minutes,seconds:s.unref(a).seconds,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"onUpdate:hours":m[0]||(m[0]=B=>s.unref(d)({hours:B,minutes:s.unref(a).minutes,seconds:s.unref(a).seconds})),"onUpdate:minutes":m[1]||(m[1]=B=>s.unref(d)({hours:s.unref(a).hours,minutes:B,seconds:s.unref(a).seconds})),"onUpdate:seconds":m[2]||(m[2]=B=>s.unref(d)({hours:s.unref(a).hours,minutes:s.unref(a).minutes,seconds:B})),onResetFlow:m[3]||(m[3]=B=>p.$emit("reset-flow"))}),s.createSlots({_:2},[s.renderList(s.unref(i),(B,y)=>({name:B,fn:s.withCtx(w=>[s.renderSlot(p.$slots,B,s.normalizeProps(s.guardReactiveProps(w)))])}))]),1040,["hours","minutes","seconds","disabled-times-config","validate-time"])],2)]),_:3}))}}),cO=(t,e)=>{const{getDate:n,rootProps:r,defaults:{filters:A}}=pt(),{validateMonthYearInRange:i,validateMonthYear:o}=Zr(),a=(p,m)=>{let v=p;return A.value.months.includes(gt(v))?(v=m?bA(p,1):ea(p,1),a(v,m)):v},l=(p,m)=>{let v=p;return A.value.years.includes(tt(v))?(v=m?dp(p,1):w0(p,1),l(v,m)):v},u=(p,m=!1)=>{const v=ft(n(),{month:t.month,year:t.year});let B=p?bA(v,1):ea(v,1);r.disableYearSelect&&(B=EA(B,t.year));let y=gt(B),w=tt(B);A.value.months.includes(y)&&(B=a(B,p),y=gt(B),w=tt(B)),A.value.years.includes(w)&&(B=l(B,p),w=tt(B)),i(y,w,p,r.preventMinMaxNavigation)&&d(y,w,m)},d=(p,m,v=!1)=>{e("update-month-year",{month:p,year:m,fromNav:v})},h=s.computed(()=>p=>o(ft(n(),{month:t.month,year:t.year}),r.preventMinMaxNavigation,p));return{handleMonthYearChange:u,isDisabled:h,updateMonthYear:d}},uO={class:"dp--header-wrap"},dO={key:0,class:"dp__month_year_wrap"},fO={key:0},hO={class:"dp__month_year_wrap"},pO=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],mO=s.defineComponent({__name:"DpHeader",props:{month:{},year:{},instance:{},years:{},months:{},menuWrapRef:{}},emits:["mount","reset-flow","update-month-year"],setup(t,{expose:e,emit:n}){const r=n,A=t,{rootEmit:i,rootProps:o,modelValue:a,defaults:{ariaLabels:l,filters:u,config:d,highlight:h,safeDates:p,ui:m}}=pt(),{transitionName:v,showTransition:B}=pl(),{showLeftIcon:y,showRightIcon:w}=uu(),{handleMonthYearChange:C,isDisabled:S,updateMonthYear:Q}=cO(A,r),{getMaxMonth:_,getMinMonth:D,getYearFromDate:I,groupListAndMap:$,checkHighlightYear:Y,checkHighlightMonth:de}=jn(),{checkKeyDown:ge}=Sn(),{formatYear:me}=io(),{checkMinMaxValue:we}=Zr(),{boolHtmlAttribute:te}=ra(),V=s.ref(!1),q=s.ref(!1),x=s.ref(!1);s.onMounted(()=>{r("mount")});const T=ee=>({get:()=>A[ee],set:K=>{const N=ee===kA.month?kA.year:kA.month;r("update-month-year",{[ee]:K,[N]:A[N]}),ee===kA.month?Ae(!0):pe(!0)}}),P=s.computed(T(kA.month)),F=s.computed(T(kA.year)),E=s.computed(()=>ee=>({month:A.month,year:A.year,items:ee===kA.month?A.months:A.years,instance:A.instance,updateMonthYear:Q,toggle:ee===kA.month?Ae:pe})),W=s.computed(()=>A.months.find(K=>K.value===A.month)||{text:"",value:0}),ne=s.computed(()=>$(A.months,ee=>{const K=A.month===ee.value,N=we(ee.value,D(A.year,p.value.minDate),_(A.year,p.value.maxDate))||u.value.months.includes(ee.value),R=de(h.value,ee.value,A.year);return{active:K,disabled:N,highlighted:R}})),X=s.computed(()=>$(A.years,ee=>{const K=A.year===ee.value,N=we(ee.value,I(p.value.minDate),I(p.value.maxDate))||u.value.years.includes(ee.value),R=Y(h.value,ee.value);return{active:K,disabled:N,highlighted:R}})),re=(ee,K,N)=>{N===void 0?ee.value=!ee.value:ee.value=N,ee.value?(x.value=!0,i("overlay-toggle",{open:!0,overlay:K})):(x.value=!1,i("overlay-toggle",{open:!1,overlay:K}))},Ae=(ee=!1,K)=>{le(ee),re(V,fr.month,K)},pe=(ee=!1,K)=>{le(ee),re(q,fr.year,K)},le=ee=>{ee||r("reset-flow")},Ce=s.computed(()=>[{type:kA.month,index:1,toggle:Ae,modelValue:P.value,updateModelValue:ee=>P.value=ee,text:W.value.text,showSelectionGrid:V.value,items:ne.value,ariaLabel:l.value?.openMonthsOverlay,overlayLabel:l.value.monthPicker?.(!0)??void 0},{type:kA.year,index:2,toggle:pe,modelValue:F.value,updateModelValue:ee=>F.value=ee,text:me(A.year),showSelectionGrid:q.value,items:X.value,ariaLabel:l.value?.openYearsOverlay,overlayLabel:l.value.yearPicker?.(!0)??void 0}]),G=s.computed(()=>o.disableYearSelect?[Ce.value[0]]:o.yearFirst?[...Ce.value].reverse():Ce.value);return e({toggleMonthPicker:Ae,toggleYearPicker:pe,handleMonthYearChange:C}),(ee,K)=>(s.openBlock(),s.createElementBlock("div",uO,[ee.$slots["month-year"]?(s.openBlock(),s.createElementBlock("div",dO,[s.renderSlot(ee.$slots,"month-year",s.normalizeProps(s.guardReactiveProps({month:t.month,year:t.year,months:t.months,years:t.years,updateMonthYear:s.unref(Q),handleMonthYearChange:s.unref(C),instance:t.instance,isDisabled:s.unref(S)})))])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[ee.$slots["top-extra"]?(s.openBlock(),s.createElementBlock("div",fO,[s.renderSlot(ee.$slots,"top-extra",{value:s.unref(a)})])):s.createCommentVNode("",!0),s.createElementVNode("div",hO,[s.unref(y)(t.instance)&&!s.unref(o).vertical?(s.openBlock(),s.createBlock(Bl,{key:0,"aria-label":s.unref(l)?.prevMonth,disabled:s.unref(te)(s.unref(S)(!1)),class:s.normalizeClass(s.unref(m)?.navBtnPrev),"el-name":"action-prev",onActivate:K[0]||(K[0]=N=>s.unref(C)(!1,!0))},{default:s.withCtx(()=>[ee.$slots["arrow-left"]?s.renderSlot(ee.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),ee.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(b0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:s.unref(o).disableYearSelect}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(G.value,N=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:N.type},[s.createElementVNode("button",{type:"button","data-dp-element":`overlay-${N.type}`,class:s.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":x.value}]),"aria-label":`${N.text}-${N.ariaLabel}`,"data-test-id":`${N.type}-toggle-overlay-${t.instance}`,tabindex:"0","data-dp-action-element":"0",onClick:R=>N.toggle(!1),onKeydown:R=>s.unref(ge)(R,()=>N.toggle(),!0)},[ee.$slots[N.type]?s.renderSlot(ee.$slots,N.type,{key:0,text:N.text,value:A[N.type]}):s.createCommentVNode("",!0),ee.$slots[N.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(N.text),1)],64))],42,pO),s.createVNode(s.Transition,{name:s.unref(v)(N.showSelectionGrid),css:s.unref(B)},{default:s.withCtx(()=>[N.showSelectionGrid?(s.openBlock(),s.createBlock(wl,{key:0,items:N.items,"is-last":s.unref(o).autoApply&&!s.unref(d).keepActionRow,"skip-button-ref":!1,type:N.type,"header-refs":[],"menu-wrap-ref":t.menuWrapRef,"overlay-label":N.overlayLabel,onSelected:N.updateModelValue,onToggle:N.toggle},s.createSlots({"button-icon":s.withCtx(()=>[ee.$slots["calendar-icon"]?s.renderSlot(ee.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),ee.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(hl),{key:1}))]),_:2},[ee.$slots[`${N.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:R})=>[s.renderSlot(ee.$slots,`${N.type}-overlay-value`,{text:R.text,value:R.value})]),key:"0"}:void 0,ee.$slots[`${N.type}-overlay`]?{name:"overlay",fn:s.withCtx(()=>[s.renderSlot(ee.$slots,`${N.type}-overlay`,s.mergeProps({ref_for:!0},E.value(N.type)))]),key:"1"}:void 0,ee.$slots[`${N.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(ee.$slots,`${N.type}-overlay-header`,{toggle:N.toggle})]),key:"2"}:void 0]),1032,["items","is-last","type","menu-wrap-ref","overlay-label","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s.unref(y)(t.instance)&&s.unref(o).vertical?(s.openBlock(),s.createBlock(Bl,{key:1,"aria-label":s.unref(l)?.prevMonth,"el-name":"action-prev",disabled:s.unref(te)(s.unref(S)(!1)),class:s.normalizeClass(s.unref(m)?.navBtnPrev),onActivate:K[1]||(K[1]=N=>s.unref(C)(!1,!0))},{default:s.withCtx(()=>[ee.$slots["arrow-up"]?s.renderSlot(ee.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),ee.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(S0),{key:1}))]),_:3},8,["aria-label","disabled","class"])):s.createCommentVNode("",!0),s.unref(w)(t.instance)?(s.openBlock(),s.createBlock(Bl,{key:2,ref:"rightIcon","el-name":"action-next",disabled:s.unref(te)(s.unref(S)(!0)),"aria-label":s.unref(l)?.nextMonth,class:s.normalizeClass(s.unref(m)?.navBtnNext),onActivate:K[2]||(K[2]=N=>s.unref(C)(!0,!0))},{default:s.withCtx(()=>[ee.$slots[s.unref(o).vertical?"arrow-down":"arrow-right"]?s.renderSlot(ee.$slots,s.unref(o).vertical?"arrow-down":"arrow-right",{key:0}):s.createCommentVNode("",!0),ee.$slots[s.unref(o).vertical?"arrow-down":"arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(o).vertical?s.unref(x0):s.unref(E0)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):s.createCommentVNode("",!0)])],64))]))}}),gO={class:"dp__calendar_header",role:"row"},vO={key:0,class:"dp__calendar_header_item",role:"gridcell"},wO=["aria-label"],BO={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},yO={class:"dp__cell_inner"},CO=["id","aria-selected","aria-disabled","aria-label","tabindex","data-test-id","data-dp-element-active","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],bO=s.defineComponent({__name:"DpCalendar",props:{instance:{},mappedDates:{},month:{},year:{}},emits:["mount","select-date","set-hover-date","handle-scroll","handle-swipe"],setup(t,{expose:e,emit:n}){const r=n,A=t,{getDate:i,rootEmit:o,rootProps:a,defaults:{transitions:l,config:u,ariaLabels:d,multiCalendars:h,weekNumbers:p,multiDates:m,ui:v}}=pt(),{isDateAfter:B,isDateEqual:y,resetDateTime:w,getCellId:C}=jn(),{checkKeyDown:S,checkStopPropagation:Q,isTouchDevice:_}=Sn(),{formatWeekDay:D}=io(),I=s.useTemplateRef("calendar-wrap"),$=s.useTemplateRef("active-tooltip"),Y=s.ref([]),de=s.ref(null),ge=s.ref(!0),me=s.ref(!1),we=s.ref(""),te=s.ref({bottom:"",left:"",transform:""}),V=s.ref({left:"50%"});SM(I,{onSwipeEnd:(k,U)=>{u.value.noSwipe||(a.vertical?(U==="up"||U==="down")&&r("handle-swipe",U==="up"?"left":"right"):(U==="left"||U==="right")&&r("handle-swipe",U==="right"?"left":"right"))}});const q=s.computed(()=>a.calendar?a.calendar(A.mappedDates):A.mappedDates),x=s.computed(()=>a.dayNames?Array.isArray(a.dayNames)?a.dayNames:a.dayNames():ce());s.onMounted(()=>{r("mount",{cmp:"calendar",dayRefs:Y.value}),u.value.monthChangeOnScroll&&I.value&&I.value.addEventListener("wheel",ee,{passive:!1})}),s.onUnmounted(()=>{u.value.monthChangeOnScroll&&I.value&&I.value.removeEventListener("wheel",ee)});const T=k=>k?a.vertical?"vNext":"next":a.vertical?"vPrevious":"previous",P=(k,U)=>{if(a.transitions){const O=w(ft(i(),{month:A.month,year:A.year}));we.value=B(w(ft(i(),{month:k,year:U})),O)?l.value[T(!0)]:l.value[T(!1)],ge.value=!1,s.nextTick(()=>{ge.value=!0})}},F=s.computed(()=>({...v.value.calendar})),E=k=>({type:"dot",...k}),W=s.computed(()=>k=>{const U=E(k);return{dp__marker_dot:U.type==="dot",dp__marker_line:U.type==="line"}}),ne=s.computed(()=>k=>y(k,de.value)),X=s.computed(()=>({dp__calendar:!0,dp__calendar_next:h.value.count>0&&A.instance!==0})),re=s.computed(()=>k=>a.hideOffsetDates?k.current:!0),Ae=async(k,U)=>{const{width:O,height:se}=k.getBoundingClientRect();de.value=U.value;let j={left:`${O/2}px`},be=-50;if(await s.nextTick(),$.value?.[0]){const{left:Be,width:ae}=$.value[0].getBoundingClientRect();Be<0&&(j={left:"0"},be=0,V.value.left=`${O/2}px`),globalThis.innerWidth<Be+ae&&(j={right:"0"},be=0,V.value.left=`${ae-O/2}px`)}te.value={bottom:`${se}px`,...j,transform:`translateX(${be}%)`}},pe=async(k,U,O)=>{const se=_r(Y.value?.[U]?.[O]);se&&(k.marker?.customPosition&&k.marker?.tooltip?.length?te.value=k.marker.customPosition(se):await Ae(se,k),o("tooltip-open",k.marker))},le=async(k,U,O)=>{if(me.value&&m.value.enabled&&m.value.dragSelect)return r("select-date",k);if(r("set-hover-date",k),k.marker?.tooltip?.length){if(a.hideOffsetDates&&!k.current)return;await pe(k,U,O)}},Ce=k=>{de.value&&(de.value=null,te.value=structuredClone({bottom:"",left:"",transform:""}),o("tooltip-close",k.marker))},G=(k,U,O)=>{k&&(Array.isArray(Y.value[U])?Y.value[U][O]=k:Y.value[U]=[k])},ee=k=>{u.value.monthChangeOnScroll&&(k.preventDefault(),r("handle-scroll",k))},K=k=>p.value?p.value.type==="local"?vp(k.value,{weekStartsOn:+a.weekStart,locale:a.locale}):p.value.type==="iso"?mp(k.value):typeof p.value.type=="function"?p.value.type(k.value):"":"",N=k=>{const U=k[0];return p.value?.hideOnOffsetDates?k.some(O=>O.current)?K(U):"":K(U)},R=(k,U,O=!0)=>{!O&&_()||(!m.value.enabled||u.value.allowPreventDefault)&&(Q(k,u.value),r("select-date",U))},J=k=>{Q(k,u.value)},z=k=>{m.value.enabled&&m.value.dragSelect?(me.value=!0,r("select-date",k)):m.value.enabled&&r("select-date",k)},ce=()=>{const k=i(),U=Jr(k,{locale:a.locale,weekStartsOn:+a.weekStart}),O=hp(k,{locale:a.locale,weekStartsOn:+a.weekStart});return fp({start:U,end:O}).map(se=>D(se))};return e({triggerTransition:P}),(k,U)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(X.value)},[s.createElementVNode("div",{ref:"calendar-wrap",class:s.normalizeClass(F.value),role:"grid"},[s.createElementVNode("div",gO,[s.unref(p)?(s.openBlock(),s.createElementBlock("div",vO,s.toDisplayString(s.unref(p).label),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(x.value,(O,se)=>(s.openBlock(),s.createElementBlock("div",{key:se,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":s.unref(d)?.weekDay?.(se)},[s.renderSlot(k.$slots,"calendar-header",{day:O,index:se},()=>[s.createTextVNode(s.toDisplayString(O),1)])],8,wO))),128))]),U[2]||(U[2]=s.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),s.createVNode(s.Transition,{name:we.value,css:!!s.unref(l)},{default:s.withCtx(()=>[ge.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:U[1]||(U[1]=O=>me.value=!1)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(q.value,(O,se)=>(s.openBlock(),s.createElementBlock("div",{key:se,class:"dp__calendar_row",role:"row"},[s.unref(p)?(s.openBlock(),s.createElementBlock("div",BO,[s.createElementVNode("div",yO,s.toDisplayString(N(O.days)),1)])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(O.days,(j,be)=>(s.openBlock(),s.createElementBlock("div",{id:s.unref(C)(j.value),ref_for:!0,ref:Be=>G(Be,se,be),key:be+se,role:"gridcell",class:"dp__calendar_item","aria-selected":(j.classData.dp__active_date||j.classData.dp__range_start||j.classData.dp__range_end)??void 0,"aria-disabled":j.classData.dp__cell_disabled||void 0,"aria-label":s.unref(d)?.day?.(j),tabindex:!j.current&&s.unref(a).hideOffsetDates?void 0:0,"data-test-id":s.unref(C)(j.value),"data-dp-element-active":j.classData.dp__active_date?0:void 0,"data-dp-action-element":"0",onClick:s.withModifiers(Be=>R(Be,j),["prevent"]),onTouchend:Be=>R(Be,j,!1),onKeydown:Be=>s.unref(S)(Be,()=>k.$emit("select-date",j)),onMouseenter:Be=>le(j,se,be),onMouseleave:Be=>Ce(j),onMousedown:Be=>z(j),onMouseup:U[0]||(U[0]=Be=>me.value=!1)},[s.createElementVNode("div",{class:s.normalizeClass(["dp__cell_inner",j.classData])},[k.$slots.day&&re.value(j)?s.renderSlot(k.$slots,"day",{key:0,day:+j.text,date:j.value}):s.createCommentVNode("",!0),k.$slots.day?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(j.text),1)],64)),j.marker&&re.value(j)?s.renderSlot(k.$slots,"marker",{key:2,marker:j.marker,day:+j.text,date:j.value},()=>[s.createElementVNode("div",{class:s.normalizeClass(W.value(j.marker)),style:s.normalizeStyle(j.marker.color?{backgroundColor:j.marker.color}:{})},null,6)]):s.createCommentVNode("",!0),ne.value(j.value)?(s.openBlock(),s.createElementBlock("div",{key:3,ref_for:!0,ref:"active-tooltip",class:"dp__marker_tooltip",style:s.normalizeStyle(te.value)},[j.marker?.tooltip?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:J},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.marker.tooltip,(Be,ae)=>(s.openBlock(),s.createElementBlock("div",{key:ae,class:"dp__tooltip_text"},[s.renderSlot(k.$slots,"marker-tooltip",{tooltip:Be,day:j.value},()=>[s.createElementVNode("div",{class:"dp__tooltip_mark",style:s.normalizeStyle(Be.color?{backgroundColor:Be.color}:{})},null,4),s.createElementVNode("div",null,s.toDisplayString(Be.text),1)])]))),128)),s.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:s.normalizeStyle(V.value)},null,4)])):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)],2)],40,CO))),128))]))),128))],32)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),EO=(t,e,n,r)=>{const A=s.ref([]),i=s.ref(new Date),o=s.ref(),{getDate:a,rootEmit:l,calendars:u,month:d,year:h,time:p,modelValue:m,rootProps:v,today:B,state:y,defaults:{multiCalendars:w,startTime:C,range:S,config:Q,safeDates:_,multiDates:D,timeConfig:I,flow:$}}=pt(),{validateMonthYearInRange:Y,isDisabled:de,isDateRangeAllowed:ge,checkMinMaxRange:me}=Zr(),{updateTimeValues:we,getSetDateTime:te,assignTime:V,assignStartTime:q,validateTime:x,disabledTimesConfig:T}=R0(r),{formatDay:P}=io(),{resetDateTime:F,setTime:E,isDateBefore:W,isDateEqual:ne,getDaysInBetween:X}=jn(),{checkRangeAutoApply:re,getRangeWithFixedDate:Ae,handleMultiDatesSelect:pe,setPresetDate:le}=fu(),{getMapDate:Ce}=Sn();ml(()=>z(y.isTextInputDate));const G=ve=>!Q.value.keepViewOnOffsetClick||ve?!0:!o.value,ee=(ve,Ie,We,At=!1)=>{G(At)&&(u.value[ve]??=u.value[ve]={month:0,year:0},u.value[ve].month=Ie??u.value[ve]?.month,u.value[ve].year=We??u.value[ve]?.year)},K=()=>{v.autoApply&&e("select-date")},N=()=>{C.value&&q(C.value)};s.onMounted(()=>{m.value||(Pe(),N()),z(!0),v.focusStartDate&&v.startDate&&Pe()});const R=s.computed(()=>$.value?.steps?.length&&!$.value?.partial?t.flowStep===$.value.steps.length:!0),J=()=>{v.autoApply&&R.value&&e("auto-apply",$.value?.partial?t.flowStep!==$.value?.steps?.length:!1)},z=(ve=!1)=>{if(m.value)return Array.isArray(m.value)?(A.value=m.value,Be(ve)):O(m.value,ve);if(w.value.count&&ve&&!v.startDate)return U(a(),ve)},ce=()=>Array.isArray(m.value)&&S.value.enabled?gt(m.value[0])===gt(m.value[1]??m.value[0]):!1,k=ve=>{const Ie=bA(ve,1);return{month:gt(Ie),year:tt(Ie)}},U=(ve=a(),Ie=!1)=>{if((!w.value.count||!w.value.static||Ie)&&ee(0,gt(ve),tt(ve)),w.value.count&&(!m.value||ce()||!w.value.solo)&&(!w.value.solo||Ie))for(let We=1;We<w.value.count;We++){const At=ft(a(),{month:d.value(We-1),year:h.value(We-1)}),bt=XB(At,{months:1});u.value[We]={month:gt(bt),year:tt(bt)}}},O=(ve,Ie)=>{U(ve),V("hours",qA(ve)),V("minutes",Ci(ve)),V("seconds",Ao(ve)),w.value.count&&Ie&&xe()},se=ve=>{if(w.value.count){if(w.value.solo)return 0;const Ie=gt(ve[0]),We=gt(ve[1]);return Math.abs(We-Ie)<w.value.count?0:1}return 1},j=(ve,Ie)=>{ve[1]&&S.value.showLastInRange?U(ve[se(ve)],Ie):U(ve[0],Ie);const We=(At,bt)=>[At(ve[0]),ve?.[1]?At(ve[1]):p[bt][1]];V("hours",We(qA,"hours")),V("minutes",We(Ci,"minutes")),V("seconds",We(Ao,"seconds"))},be=(ve,Ie)=>{if((S.value.enabled||v.weekPicker)&&!D.value.enabled)return j(ve,Ie);if(D.value.enabled&&Ie){const We=ve[ve.length-1];return O(We,Ie)}},Be=ve=>{const Ie=m.value;be(Ie,ve),w.value.count&&w.value.solo&&xe()},ae=(ve,Ie)=>{const We=ft(a(),{month:d.value(Ie),year:h.value(Ie)}),At=ve<0?bA(We,1):ea(We,1);Y(gt(At),tt(At),ve<0,v.preventMinMaxNavigation)&&(ee(Ie,gt(At),tt(At)),l("update-month-year",{instance:Ie,month:gt(At),year:tt(At)}),w.value.count&&!w.value.solo&&he(Ie),n())},he=ve=>{for(let Ie=ve-1;Ie>=0;Ie--){const We=ea(ft(a(),{month:d.value(Ie+1),year:h.value(Ie+1)}),1);ee(Ie,gt(We),tt(We))}for(let Ie=ve+1;Ie<=w.value.count-1;Ie++){const We=bA(ft(a(),{month:d.value(Ie-1),year:h.value(Ie-1)}),1);ee(Ie,gt(We),tt(We))}},xe=()=>{if(Array.isArray(m.value)&&m.value.length===2){const ve=a(a(m.value[1]??bA(m.value[0],1))),[Ie,We]=[gt(m.value[0]),tt(m.value[0])],[At,bt]=[gt(m.value[1]),tt(m.value[1])];(Ie!==At||Ie===At&&We!==bt)&&w.value.solo&&ee(1,gt(ve),tt(ve))}else m.value&&!Array.isArray(m.value)&&(ee(0,gt(m.value),tt(m.value)),U(a()))},Pe=()=>{v.startDate&&(ee(0,gt(a(v.startDate)),tt(a(v.startDate))),w.value.count&&he(0))},ot=(ve,Ie)=>{if(Q.value.monthChangeOnScroll){const We=Date.now()-i.value.getTime(),At=Math.abs(ve.deltaY);let bt=500;At>1&&(bt=100),At>100&&(bt=0),We>bt&&(i.value=new Date,ae(Q.value.monthChangeOnScroll==="inverse"?ve.deltaY:-ve.deltaY,Ie))}},$e=(ve,Ie,We=!1)=>{Q.value.monthChangeOnArrows&&v.vertical===We&&ht(ve,Ie)},ht=(ve,Ie)=>{ae(ve==="right"?-1:1,Ie)},wt=ve=>{if(_.value.markers)return Ce(ve.value,_.value.markers)},Et=(ve,Ie)=>{switch(v.sixWeeks===!0?"append":v.sixWeeks){case"prepend":return[!0,!1];case"center":return[ve==0,!0];case"fair":return[ve==0||Ie>ve,!0];case"append":return[!1,!1];default:return[!1,!1]}},En=(ve,Ie,We,At)=>{if(v.sixWeeks&&ve.length<6){const bt=6-ve.length,Pr=(Ie.getDay()+7-At)%7,uA=6-(We.getDay()+7-At)%7,[gi,Ki]=Et(Pr,uA);for(let zi=1;zi<=bt;zi++)if(Ki?!!(zi%2)==gi:gi){const Re=ve[0].days[0],oe=Yt(Xr(Re.value,-7),gt(Ie));ve.unshift({days:oe})}else{const Re=ve[ve.length-1],oe=Re.days[Re.days.length-1],Te=Yt(Xr(oe.value,1),gt(Ie));ve.push({days:Te})}}return ve},Yt=(ve,Ie)=>{const We=a(ve),At=[];for(let bt=0;bt<7;bt++){const Pr=Xr(We,bt),uA=gt(Pr)!==Ie;At.push({text:v.hideOffsetDates&&uA?"":P(Pr),value:Pr,current:!uA,classData:{}})}return At},Kt=(ve,Ie)=>{const We=[],At=a(new Date(Ie,ve)),bt=a(new Date(Ie,ve+1,0)),Pr=v.weekStart,uA=Jr(At,{weekStartsOn:Pr}),gi=Ki=>{const zi=Yt(Ki,ve);if(We.push({days:zi}),!We[We.length-1].days.some(Re=>ne(a(Re.value),F(bt)))){const Re=Xr(Ki,7);gi(Re)}};return gi(uA),En(We,At,bt,Pr)},OA=ve=>{const Ie=E({hours:p.hours,minutes:p.minutes,seconds:Ho()},a(ve.value));l("date-click",Ie),D.value.enabled?pe(Ie,D.value.limit):m.value=Ie,r(),s.nextTick().then(()=>{J()})},pi=ve=>S.value.noDisabledRange?X(A.value[0],ve).some(Ie=>de(Ie)):!1,ze=()=>{A.value=m.value?m.value.slice().filter(ve=>!!ve):[],A.value.length===2&&!(S.value.fixedStart||S.value.fixedEnd)&&(A.value=[])},gn=(ve,Ie)=>{const We=[a(ve.value),Xr(a(ve.value),+S.value.autoRange)];ge(We)?(Ie&&Tn(ve.value),A.value=We):l("invalid-date",ve.value)},Tn=ve=>{const Ie=gt(a(ve)),We=tt(a(ve));if(ee(0,Ie,We),w.value.count>0)for(let At=1;At<w.value.count;At++){const bt=k(ft(a(ve),{year:h.value(At-1),month:d.value(At-1)}));ee(At,bt.month,bt.year)}},mi=ve=>{if(pi(ve.value)||!me(ve.value,m.value,S.value.fixedStart?0:1))return l("invalid-date",ve.value);A.value=Ae(a(ve.value))},wr=(ve,Ie)=>{if(ze(),S.value.autoRange)return gn(ve,Ie);if(S.value.fixedStart||S.value.fixedEnd)return mi(ve);A.value[0]?me(a(ve.value),m.value)&&!pi(ve.value)?W(a(ve.value),a(A.value[0]))?S.value.autoSwitchStartEnd?(A.value.unshift(a(ve.value)),l("range-end",A.value[0])):(A.value[0]=a(ve.value),l("range-start",A.value[0])):(A.value[1]=a(ve.value),l("range-end",A.value[1])):l("invalid-date",ve.value):(A.value[0]=a(ve.value),l("range-start",A.value[0]))},Ho=(ve=!0)=>I.value.enableSeconds?Array.isArray(p.seconds)?ve?p.seconds[0]:p.seconds[1]:p.seconds:0,Us=ve=>{A.value[ve]=E({hours:p.hours[ve],minutes:p.minutes[ve],seconds:Ho(ve!==1)},A.value[ve])},nn=()=>{A.value[0]&&A.value[1]&&+A.value?.[0]>+A.value?.[1]&&(A.value.reverse(),l("range-start",A.value[0]),l("range-end",A.value[1]))},NA=()=>{A.value.length&&(A.value[0]&&!A.value[1]?Us(0):(Us(0),Us(1),r()),nn(),m.value=A.value.slice(),re(A.value,e,A.value.length<2||$.value?.steps.length?t.flowStep!==$.value?.steps?.length:!1))},Fc=(ve,Ie=!1)=>{if(de(ve.value)||!ve.current&&v.hideOffsetDates)return l("invalid-date",ve.value);if(o.value=structuredClone(ve),!S.value.enabled)return OA(ve);Array.isArray(p.hours)&&Array.isArray(p.minutes)&&!D.value.enabled&&(wr(ve,Ie),NA())},Ra=(ve,Ie)=>{ee(ve,Ie.month,Ie.year,!0),w.value.count&&!w.value.solo&&he(ve),l("update-month-year",{instance:ve,month:Ie.month,year:Ie.year}),n(w.value.solo?ve:void 0);const We=$.value?.steps?.length?$.value.steps[t.flowStep]:void 0;!Ie.fromNav&&(We===fr.month||We===fr.year)&&r()},_s=ve=>{le({value:ve}),K(),v.multiCalendars&&s.nextTick().then(()=>z(!0))},Po=()=>{let ve=a();return v.actionRow?.nowBtnRound&&(ve=E_(ve,{roundingMethod:v.actionRow.nowBtnRound.rounding??"ceil",nearestTo:v.actionRow.nowBtnRound.roundTo??15})),ve},Ha=()=>{const ve=Po();!S.value.enabled&&!D.value.enabled?m.value=ve:m.value&&Array.isArray(m.value)&&m.value[0]?D.value.enabled?m.value=[...m.value,ve]:m.value=W(ve,m.value[0])?[ve,m.value[0]]:[m.value[0],ve]:m.value=[ve],K()},Ds=()=>{if(Array.isArray(m.value))if(D.value.enabled){const ve=Fr();m.value[m.value.length-1]=te(ve)}else m.value=m.value.map((ve,Ie)=>ve&&te(ve,Ie));else m.value=te(m.value);e("time-update")},Fr=()=>Array.isArray(m.value)&&m.value.length?m.value[m.value.length-1]:null,LA=ve=>{let Ie="";if(S.value.enabled&&Array.isArray(m.value))for(const We of Object.keys(ve)){const At=ve[We];Array.isArray(At)&&(p[We][0]!==At[0]&&(Ie="range-start"),p[We][1]!==At[1]&&(Ie="range-start"))}return Ie};return{calendars:u,modelValue:m,month:d,year:h,time:p,disabledTimesConfig:T,today:B,validateTime:x,getCalendarDays:Kt,getMarker:wt,handleScroll:ot,handleSwipe:ht,handleArrow:$e,selectDate:Fc,updateMonthYear:Ra,presetDate:_s,selectCurrentDate:Ha,updateTime:ve=>{const Ie=LA(ve);we(ve,Ds),Ie&&l(Ie,m.value[Ie==="range-start"?0:1])},assignMonthAndYear:U,setStartTime:N}},kO=()=>{const{isModelAuto:t,matchDate:e,isDateAfter:n,isDateBefore:r,isDateBetween:A,isDateEqual:i,getWeekFromDate:o,getBeforeAndAfterInRange:a}=jn(),{getDate:l,today:u,rootProps:d,defaults:{multiCalendars:h,multiDates:p,ui:m,highlight:v,safeDates:B,range:y},modelValue:w}=pt(),{isDisabled:C}=Zr(),S=s.ref(null),Q=k=>{!k.current&&d.hideOffsetDates||(S.value=k.value)},_=()=>{S.value=null},D=k=>Array.isArray(w.value)&&y.value.enabled&&w.value[0]&&S.value?k?n(S.value,w.value[0]):r(S.value,w.value[0]):!0,I=(k,U)=>{const O=()=>w.value?U?w.value[0]||null:w.value[1]:null,se=w.value&&Array.isArray(w.value)?O():null;return i(l(k.value),se)},$=k=>{const U=Array.isArray(w.value)?w.value[0]:null;return k?!r(S.value,U):!0},Y=(k,U=!0)=>(y.value.enabled||d.weekPicker)&&Array.isArray(w.value)&&w.value.length===2?d.hideOffsetDates&&!k.current?!1:i(l(k.value),w.value[U?0:1]):y.value.enabled?I(k,U)&&$(U)||i(k.value,Array.isArray(w.value)?w.value[0]:null)&&D(U):!1,de=(k,U)=>{if(Array.isArray(w.value)&&w.value[0]&&w.value.length===1){const O=i(k.value,S.value);return U?n(w.value[0],k.value)&&O:r(w.value[0],k.value)&&O}return!1},ge=k=>!w.value||d.hideOffsetDates&&!k.current?!1:y.value.enabled?d.modelAuto&&Array.isArray(w.value)?i(k.value,w.value[0]??u):!1:p.value.enabled&&Array.isArray(w.value)?w.value.some(U=>i(U,k.value)):i(k.value,w.value?w.value:u),me=k=>{if(y.value.autoRange||d.weekPicker){if(S.value){if(d.hideOffsetDates&&!k.current)return!1;const U=Xr(S.value,+y.value.autoRange),O=o(l(S.value),d.weekStart);return d.weekPicker?i(O[1],l(k.value)):i(U,l(k.value))}return!1}return!1},we=k=>{if(y.value.autoRange||d.weekPicker){if(S.value){const U=Xr(S.value,+y.value.autoRange);if(d.hideOffsetDates&&!k.current)return!1;const O=o(l(S.value),d.weekStart);return d.weekPicker?n(k.value,O[0])&&r(k.value,O[1]):n(k.value,S.value)&&r(k.value,U)}return!1}return!1},te=k=>{if(y.value.autoRange||d.weekPicker){if(S.value){if(d.hideOffsetDates&&!k.current)return!1;const U=o(l(S.value),d.weekStart);return d.weekPicker?i(U[0],k.value):i(S.value,k.value)}return!1}return!1},V=k=>A(w.value,S.value,k.value),q=()=>d.modelAuto&&Array.isArray(w.value)?!!w.value[0]:!1,x=()=>d.modelAuto?t(w.value):!0,T=k=>{if(d.weekPicker)return!1;const U=y.value.enabled?!Y(k)&&!Y(k,!1):!0;return!C(k.value)&&!ge(k)&&!(!k.current&&d.hideOffsetDates)&&U},P=k=>y.value.enabled?d.modelAuto?q()&&ge(k):!1:ge(k),F=k=>v.value?e(k.value,B.value.highlight):!1,E=k=>{const U=C(k.value);return U&&(typeof v.value=="function"?!v.value(k.value,U):!v.value.options.highlightDisabled)},W=k=>typeof v.value=="function"?v.value(k.value):v.value.weekdays?.includes(k.value.getDay()),ne=k=>(y.value.enabled||d.weekPicker)&&(!(h.value.count>0)||k.current)&&x()&&!(!k.current&&d.hideOffsetDates)&&!ge(k)?V(k):!1,X=k=>{if(Array.isArray(w.value)&&w.value.length===1){const{before:U,after:O}=a(+y.value.maxRange,w.value[0]);return bi(k.value,U)||XA(k.value,O)}return!1},re=k=>{if(Array.isArray(w.value)&&w.value.length===1){const{before:U,after:O}=a(+y.value.minRange,w.value[0]);return A([U,O],w.value[0],k.value)}return!1},Ae=k=>y.value.enabled&&(y.value.maxRange||y.value.minRange)?y.value.maxRange&&y.value.minRange?X(k)||re(k):y.value.maxRange?X(k):re(k):!1,pe=k=>{const{isRangeStart:U,isRangeEnd:O}=ee(k),se=y.value.enabled?U||O:!1;return{dp__cell_offset:!k.current,dp__pointer:!d.disabled&&!(!k.current&&d.hideOffsetDates)&&!C(k.value)&&!Ae(k),dp__cell_disabled:C(k.value)||Ae(k),dp__cell_highlight:!E(k)&&(F(k)||W(k))&&!P(k)&&!se&&!te(k)&&!(ne(k)&&d.weekPicker)&&!O,dp__cell_highlight_active:!E(k)&&(F(k)||W(k))&&P(k),dp__today:!d.noToday&&i(k.value,u)&&k.current,"dp--past":r(k.value,u),"dp--future":n(k.value,u)}},le=k=>({dp__active_date:P(k),dp__date_hover:T(k)}),Ce=k=>{if(w.value&&!Array.isArray(w.value)){const U=o(w.value,d.weekStart);return{...z(k),dp__range_start:i(U[0],k.value),dp__range_end:i(U[1],k.value),dp__range_between_week:n(k.value,U[0])&&r(k.value,U[1])}}return{...z(k)}},G=k=>{if(w.value&&Array.isArray(w.value)){const U=o(w.value[0],d.weekStart),O=w.value[1]?o(w.value[1],d.weekStart):[];return{...z(k),dp__range_start:i(U[0],k.value)||i(O[0],k.value),dp__range_end:i(U[1],k.value)||i(O[1],k.value),dp__range_between_week:n(k.value,U[0])&&r(k.value,U[1])||n(k.value,O[0])&&r(k.value,O[1]),dp__range_between:n(k.value,U[1])&&r(k.value,O[0])}}return{...z(k)}},ee=k=>{const U=h.value.count>0?k.current&&Y(k)&&x():Y(k)&&x(),O=h.value.count>0?k.current&&Y(k,!1)&&x():Y(k,!1)&&x();return{isRangeStart:U,isRangeEnd:O}},K=k=>y.value.enabled&&(y.value.fixedStart||y.value.fixedEnd)&&Array.isArray(w.value)&&w.value.length===2,N=(k,U,O,se)=>!K(w.value)||!S.value?!1:U?y.value.fixedEnd&&i(k.value,S.value)&&bi(k.value,w.value[0])&&!O:y.value.fixedStart&&i(k.value,S.value)&&XA(k.value,w.value[1])&&!se,R=(k,U)=>!K(w.value)||!S.value?!1:U?y.value.fixedEnd&&XA(k.value,S.value)&&bi(k.value,w.value[0]):y.value.fixedStart&&bi(k.value,S.value)&&XA(k.value,w.value[1]),J=k=>{const{isRangeStart:U,isRangeEnd:O}=ee(k);return{dp__range_start:U,dp__range_end:O,dp__range_between:ne(k),dp__date_hover:i(k.value,S.value)&&!U&&!O&&!d.weekPicker,dp__date_hover_start:de(k,!0)||N(k,!0,U,O),dp__date_hover_end:de(k,!1)||N(k,!1,U,O),"dp--extended-fixed-start":R(k,!0),"dp--extended-fixed-end":R(k,!1)}},z=k=>({...J(k),dp__cell_auto_range:we(k),dp__cell_auto_range_start:te(k),dp__cell_auto_range_end:me(k)}),ce=k=>y.value.enabled?y.value.autoRange?z(k):d.modelAuto?{...le(k),...J(k)}:d.weekPicker?G(k):J(k):d.weekPicker?Ce(k):le(k);return{setHoverDate:Q,clearHoverDate:_,getDayClassData:k=>d.hideOffsetDates&&!k.current?{}:{...pe(k),...ce(k),[m.value.dayClass?m.value.dayClass(k.value,w.value):""]:!0,...m.value.calendarCell}}},SO={key:0},xO=s.defineComponent({__name:"DatePicker",props:s.mergeDefaults({flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},ED),emits:["mount","update-flow-step","reset-flow","focus-menu","select-date","time-update","auto-apply"],setup(t,{expose:e,emit:n}){const r=n,A=t,{month:i,year:o,modelValue:a,time:l,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:p,getMarker:m,handleArrow:v,handleScroll:B,handleSwipe:y,selectDate:w,updateMonthYear:C,presetDate:S,selectCurrentDate:Q,updateTime:_,assignMonthAndYear:D,setStartTime:I}=EO(A,r,le,Ce),$=s.useSlots(),{setHoverDate:Y,getDayClassData:de,clearHoverDate:ge}=kO(),{getDate:me,rootEmit:we,rootProps:te,defaults:{multiCalendars:V,timeConfig:q}}=pt(),{getYears:x,getMonths:T}=cu(),{getCellId:P}=jn(),F=s.useTemplateRef("calendar-header"),E=s.useTemplateRef("calendar"),W=s.useTemplateRef("time-picker"),ne=VA($,xA.Calendar),X=VA($,xA.DatePickerHeader),re=VA($,xA.TimePicker),Ae=ce=>{r("mount",ce)};s.watch(V,(ce,k)=>{ce.count-k.count>0&&D()},{deep:!0});const pe=s.computed(()=>ce=>p(i.value(ce),o.value(ce)).map(k=>({...k,days:k.days.map(U=>(U.marker=m(U),U.classData=de(U),U))})));function le(ce){ce||ce===0?E.value?.[ce]?.triggerTransition(i.value(ce),o.value(ce)):E.value?.forEach((k,U)=>k?.triggerTransition(i.value(U),o.value(U)))}function Ce(){r("update-flow-step")}const G=(ce,k,U=0)=>{F.value?.[U]?.toggleMonthPicker(ce,k)},ee=(ce,k,U=0)=>{F.value?.[U]?.toggleYearPicker(ce,k)},K=(ce,k,U)=>{W.value?.toggleTimePicker(ce,k,U)},N=(ce,k)=>{if(!te.range){const U=a.value?a.value:d,O=k?me(k):U,se=ce?Jr(O,{weekStartsOn:1}):hp(O,{weekStartsOn:1});w({value:se,current:gt(O)===i.value(0),text:"",classData:{}}),document.getElementById(P(se))?.focus()}},R=ce=>{F.value?.[0]?.handleMonthYearChange(ce,!0)},J=ce=>{C(0,{month:i.value(0),year:o.value(0)+(ce?1:-1),fromNav:!0})},z=ce=>{we("overlay-toggle",{open:!1,overlay:ce}),r("focus-menu")};return e({clearHoverDate:ge,presetDate:S,selectCurrentDate:Q,handleArrow:v,updateMonthYear:C,setStartTime:I,toggleMonthPicker:G,toggleYearPicker:ee,toggleTimePicker:K,getSidebarProps:()=>({modelValue:a,month:i,year:o,time:l,updateTime:_,updateMonthYear:C,selectDate:w,presetDate:S}),changeMonth:R,changeYear:J,selectWeekDate:N}),(ce,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(du,{collapse:t.collapse},{default:s.withCtx(({instances:U,wrapClass:O})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(U,se=>(s.openBlock(),s.createElementBlock("div",{key:se,class:s.normalizeClass(O)},[s.unref(te).hideMonthYearSelect?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(mO,{key:0,ref_for:!0,ref:"calendar-header",months:s.unref(T)(),years:s.unref(x)(),month:s.unref(i)(se),year:s.unref(o)(se),instance:se,"menu-wrap-ref":t.menuWrapRef,onMount:k[0]||(k[0]=j=>Ae(s.unref(is).header)),onResetFlow:k[1]||(k[1]=j=>ce.$emit("reset-flow")),onUpdateMonthYear:j=>s.unref(C)(se,j),onOverlayClosed:z},s.createSlots({_:2},[s.renderList(s.unref(X),(j,be)=>({name:j,fn:s.withCtx(Be=>[s.renderSlot(ce.$slots,j,s.mergeProps({ref_for:!0},Be))])}))]),1032,["months","years","month","year","instance","menu-wrap-ref","onUpdateMonthYear"])),s.createVNode(bO,{ref_for:!0,ref:"calendar","mapped-dates":pe.value(se),instance:se,month:s.unref(i)(se),year:s.unref(o)(se),onSelectDate:j=>s.unref(w)(j,se!==1),onSetHoverDate:k[2]||(k[2]=j=>s.unref(Y)(j)),onHandleScroll:j=>s.unref(B)(j,se),onHandleSwipe:j=>s.unref(y)(j,se),onMount:k[3]||(k[3]=j=>Ae(s.unref(is).calendar))},s.createSlots({_:2},[s.renderList(s.unref(ne),(j,be)=>({name:j,fn:s.withCtx(Be=>[s.renderSlot(ce.$slots,j,s.mergeProps({ref_for:!0},Be))])}))]),1032,["mapped-dates","instance","month","year","onSelectDate","onHandleScroll","onHandleSwipe"])],2))),128))]),_:3},8,["collapse"]),s.unref(q).enableTimePicker?(s.openBlock(),s.createElementBlock("div",SO,[s.renderSlot(ce.$slots,"time-picker",s.normalizeProps(s.guardReactiveProps({time:s.unref(l),updateTime:s.unref(_)})),()=>[s.createVNode(L0,{ref:"time-picker",hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"no-overlay-focus":t.noOverlayFocus,onMount:k[4]||(k[4]=U=>Ae(s.unref(is).timePicker)),"onUpdate:hours":k[5]||(k[5]=U=>s.unref(_)({hours:U,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds})),"onUpdate:minutes":k[6]||(k[6]=U=>s.unref(_)({hours:s.unref(l).hours,minutes:U,seconds:s.unref(l).seconds})),"onUpdate:seconds":k[7]||(k[7]=U=>s.unref(_)({hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:U})),onResetFlow:k[8]||(k[8]=U=>ce.$emit("reset-flow"))},s.createSlots({_:2},[s.renderList(s.unref(re),(U,O)=>({name:U,fn:s.withCtx(se=>[s.renderSlot(ce.$slots,U,s.normalizeProps(s.guardReactiveProps(se)))])}))]),1032,["hours","minutes","seconds","disabled-times-config","validate-time","no-overlay-focus"])])])):s.createCommentVNode("",!0)],64))}}),FO=(t,e)=>{const{getDate:n,modelValue:r,year:A,calendars:i,defaults:{highlight:o,range:a,multiDates:l}}=pt(),{isDateBetween:u,isDateEqual:d}=jn(),{checkRangeAutoApply:h,handleMultiDatesSelect:p,setMonthOrYearRange:m}=fu();ml();const{isDisabled:v}=Zr(),{formatQuarterText:B}=io(),{selectYear:y,groupedYears:w,showYearPicker:C,isDisabled:S,toggleYearPicker:Q,handleYearSelect:_,handleYear:D,setStartDate:I}=N0(e),$=s.ref();s.onMounted(()=>{I()});const Y=s.computed(()=>x=>r.value?Array.isArray(r.value)?r.value.some(T=>m0(x,T)):m0(r.value,x):!1),de=x=>{if(a.value.enabled){if(Array.isArray(r.value)){const T=d(x,r.value[0])||d(x,r.value[1]);return u(r.value,$.value,x)&&!T}return!1}return!1},ge=(x,T)=>x.quarter===t0(T)&&x.year===tt(T),me=x=>typeof o.value=="function"?o.value({quarter:t0(x),year:tt(x)}):o.value.quarters.some(T=>ge(T,x)),we=s.computed(()=>x=>{const T=ft(n(),{year:A.value(x)});return DI({start:js(T),end:r0(T)}).map(P=>{const F=ns(P),E=A0(P),W=v(P),ne=de(F),X=me(F);return{text:B(F,E),value:F,active:Y.value(F),highlighted:X,disabled:W,isBetween:ne}})}),te=x=>{p(x,l.value.limit),e("auto-apply",!0)},V=x=>{r.value=m(x),h(r.value,e,r.value.length<2)},q=x=>{r.value=x,e("auto-apply")};return{groupedYears:w,year:A,isDisabled:S,quarters:we,showYearPicker:C,modelValue:r,selectYear:y,toggleYearPicker:Q,handleYearSelect:_,handleYear:D,setHoverDate:x=>{$.value=x},selectQuarter:(x,T,P)=>{if(!P)return i.value[T].month=gt(A0(x)),l.value.enabled?te(x):a.value.enabled?V(x):q(x)}}},QO={class:"dp--quarter-items"},TO=["data-test-id","disabled","onClick","onMouseover"],MO=s.defineComponent({__name:"QuarterPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(t,{expose:e,emit:n}){const r=n,A=t,{defaults:{config:i}}=pt(),o=s.useSlots(),{boolHtmlAttribute:a}=ra(),l=VA(o,xA.YearMode),{groupedYears:u,year:d,isDisabled:h,quarters:p,modelValue:m,showYearPicker:v,setHoverDate:B,selectQuarter:y,toggleYearPicker:w,handleYearSelect:C,handleYear:S}=FO(A,r);return e({getSidebarProps:()=>({modelValue:m,year:d,selectQuarter:y,handleYearSelect:C,handleYear:S})}),(Q,_)=>(s.openBlock(),s.createBlock(du,{collapse:t.collapse,stretch:""},{default:s.withCtx(({instances:D,wrapClass:I})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D,$=>(s.openBlock(),s.createElementBlock("div",{key:$,class:s.normalizeClass(I)},[s.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:s.normalizeStyle({minHeight:`${s.unref(i).modeHeight}px`})},[Q.$slots["top-extra"]?s.renderSlot(Q.$slots,"top-extra",{key:0,value:s.unref(m)}):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createVNode(O0,{items:s.unref(u)($),instance:$,"show-year-picker":s.unref(v)[$],year:s.unref(d)($),"is-disabled":Y=>s.unref(h)($,Y),onHandleYear:Y=>s.unref(S)($,Y),onYearSelect:Y=>s.unref(C)(Y,$),onToggleYearPicker:Y=>s.unref(w)($,Y?.flow,Y?.show)},s.createSlots({_:2},[s.renderList(s.unref(l),(Y,de)=>({name:Y,fn:s.withCtx(ge=>[s.renderSlot(Q.$slots,Y,s.mergeProps({ref_for:!0},ge))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),s.createElementVNode("div",QO,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(p)($),(Y,de)=>(s.openBlock(),s.createElementBlock("div",{key:de},[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":Y.active,"dp--qr-btn-between":Y.isBetween,"dp--qr-btn-disabled":Y.disabled,"dp--highlighted":Y.highlighted}]),"data-dp-action-element":"0","data-test-id":Y.value,disabled:s.unref(a)(Y.disabled),onClick:ge=>s.unref(y)(Y.value,$,Y.disabled),onMouseover:ge=>s.unref(B)(Y.value)},[s.renderSlot(Q.$slots,"quarter",{value:Y.value,text:Y.text},()=>[s.createTextVNode(s.toDisplayString(Y.text),1)])],42,TO)]))),128))])],4)],2))),128))]),_:3},8,["collapse"]))}}),IO=["id","tabindex","role","aria-label"],UO={key:0,class:"dp--menu-load-container"},_O={key:1,class:"dp--menu-header"},DO=["data-dp-mobile"],OO={key:0,class:"dp__sidebar_left"},NO=["data-dp-mobile"],LO=["data-test-id","data-dp-mobile","onClick","onKeydown"],RO={class:"dp__instance_calendar"},HO={key:2,class:"dp__sidebar_right"},PO={key:2,class:"dp__action_extra"},$O=s.defineComponent({__name:"DatepickerMenu",props:{collapse:{type:Boolean},noOverlayFocus:{type:Boolean},getInputRect:{type:Function}},emits:["close-picker","select-date","auto-apply","time-update","menu-blur"],setup(t,{expose:e,emit:n}){const r=n,A=s.useSlots(),{state:i,rootProps:o,defaults:{textInput:a,inline:l,config:u,ui:d,ariaLabels:h},setState:p}=pt(),{isMobile:m}=lu(),{handleEventPropagation:v,getElWithin:B,checkStopPropagation:y,checkKeyDown:w}=Sn();D_();const C=s.useTemplateRef("inner-menu"),S=s.useTemplateRef("dp-menu"),Q=s.useTemplateRef("dyn-cmp"),_=s.ref(0),D=s.ref(!1),I=s.ref(!1),{flowStep:$,updateFlowStep:Y,childMount:de,resetFlow:ge,handleFlow:me}=N_(Q),we=z=>{I.value=!0,u.value.allowPreventDefault&&z.preventDefault(),y(z,u.value,!0)};s.onMounted(()=>{D.value=!0,te(),globalThis.addEventListener("resize",te);const z=_r(S);z&&!a.value.enabled&&!l.value.enabled&&p("menuFocused",!0),z&&(z.addEventListener("pointerdown",we),z.addEventListener("mousedown",we)),document.addEventListener("mousedown",J)}),s.onUnmounted(()=>{globalThis.removeEventListener("resize",te),document.removeEventListener("mousedown",J);const z=_r(S);z&&(z.removeEventListener("pointerdown",we),z.removeEventListener("mousedown",we))});const te=()=>{const z=_r(C);z&&(_.value=z.getBoundingClientRect().width)},V=s.computed(()=>o.monthPicker?YD:o.yearPicker?XD:o.timePicker?lO:o.quarterPicker?MO:xO),q=()=>{const z=_r(S);z&&z.focus({preventScroll:!0})},x=s.computed(()=>Q.value?.getSidebarProps()||{}),T=VA(A,xA.ActionRow),P=VA(A,xA.PassTrough),F=s.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),E=s.computed(()=>({dp__menu:!0,dp__menu_index:!l.value.enabled,dp__relative:l.value.enabled,...d.value.menu})),W=z=>{y(z,u.value,!0)},ne=z=>{u.value.escClose&&(r("close-picker"),v(z,u.value))},X=z=>{o.arrowNavigation||(z===SA.left||z===SA.up?le("handleArrow",SA.left,0,z===SA.up):le("handleArrow",SA.right,0,z===SA.down))},re=z=>{p("shiftKeyInMenu",z.shiftKey),!o.hideMonthYearSelect&&z.code===Nt.tab&&z.target.classList.contains("dp__menu")&&i.shiftKeyInMenu&&(z.preventDefault(),y(z,u.value,!0),r("close-picker"))},Ae=z=>{Q.value?.toggleTimePicker(!1,!1),Q.value?.toggleMonthPicker(!1,!1,z),Q.value?.toggleYearPicker(!1,!1,z)},pe=(z,ce=0)=>z==="month"?Q.value?.toggleMonthPicker(!1,!0,ce):z==="year"?Q.value?.toggleYearPicker(!1,!0,ce):z==="time"?Q.value?.toggleTimePicker(!0,!1):Ae(ce),le=(z,...ce)=>{Q.value?.[z]&&Q.value?.[z](...ce)},Ce=()=>{le("selectCurrentDate")},G=z=>{le("presetDate",s.toValue(z))},ee=()=>{le("clearHoverDate")},K=(z,ce)=>{le("updateMonthYear",z,ce)},N=(z,ce)=>{z.preventDefault(),X(ce)},R=z=>{if(re(z),z.key===Nt.home||z.key===Nt.end)return le("selectWeekDate",z.key===Nt.home,z.target.getAttribute("id"));switch((z.key===Nt.pageUp||z.key===Nt.pageDown)&&(z.shiftKey?(le("changeYear",z.key===Nt.pageUp),B(S.value,"overlay-year")?.focus()):(le("changeMonth",z.key===Nt.pageUp),B(S.value,z.key===Nt.pageUp?"action-prev":"action-next")?.focus()),z.target.getAttribute("id")&&S.value?.focus({preventScroll:!0})),z.key){case Nt.esc:return ne(z);case Nt.arrowLeft:return N(z,SA.left);case Nt.arrowRight:return N(z,SA.right);case Nt.arrowUp:return N(z,SA.up);case Nt.arrowDown:return N(z,SA.down);default:return}},J=z=>{l.value.enabled&&!l.value.input&&!S.value?.contains(z.target)&&I.value&&(I.value=!1,r("menu-blur"))};return e({updateMonthYear:K,switchView:pe,onValueCleared:()=>{Q.value?.setStartTime?.()},handleFlow:me}),(z,ce)=>(s.openBlock(),s.createElementBlock("div",{id:s.unref(o).menuId,ref:"dp-menu",tabindex:s.unref(l).enabled?void 0:"0",role:s.unref(l).enabled?void 0:"dialog","aria-label":s.unref(h)?.menu,class:s.normalizeClass(E.value),onMouseleave:ee,onClick:W,onKeydown:R},[(s.unref(o).disabled||s.unref(o).readonly)&&s.unref(l).enabled||s.unref(o).loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(F.value)},[s.unref(o).loading?(s.openBlock(),s.createElementBlock("div",UO,[...ce[5]||(ce[5]=[s.createElementVNode("span",{class:"dp--menu-loader"},null,-1)])])):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),z.$slots["menu-header"]?(s.openBlock(),s.createElementBlock("div",_O,[s.renderSlot(z.$slots,"menu-header")])):s.createCommentVNode("",!0),s.renderSlot(z.$slots,"arrow"),s.createElementVNode("div",{ref:"inner-menu",class:s.normalizeClass({dp__menu_content_wrapper:s.unref(o).presetDates?.length||!!z.$slots["left-sidebar"]||!!z.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":t.collapse&&(s.unref(o).presetDates?.length||!!z.$slots["left-sidebar"]||!!z.$slots["right-sidebar"])}),"data-dp-mobile":s.unref(m),style:s.normalizeStyle({"--dp-menu-width":`${_.value}px`})},[z.$slots["left-sidebar"]?(s.openBlock(),s.createElementBlock("div",OO,[s.renderSlot(z.$slots,"left-sidebar",s.normalizeProps(s.guardReactiveProps(x.value)))])):s.createCommentVNode("",!0),s.unref(o).presetDates.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"dp--preset-dates-collapsed":t.collapse,"dp--preset-dates":!0}),"data-dp-mobile":s.unref(m)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).presetDates,(k,U)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:U},[k.slot?s.renderSlot(z.$slots,k.slot,{key:0,presetDate:G,label:k.label,value:k.value}):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",style:s.normalizeStyle(k.style||{}),class:s.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":t.collapse}]),"data-test-id":k.testId??void 0,"data-dp-mobile":s.unref(m),onClick:s.withModifiers(O=>G(k.value),["prevent"]),onKeydown:O=>s.unref(w)(O,()=>G(k.value),!0)},s.toDisplayString(k.label),47,LO))],64))),128))],10,NO)):s.createCommentVNode("",!0),s.createElementVNode("div",RO,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(V.value),{ref:"dyn-cmp","flow-step":s.unref($),collapse:t.collapse,"no-overlay-focus":t.noOverlayFocus,"menu-wrap-ref":S.value,onMount:s.unref(de),onUpdateFlowStep:s.unref(Y),onResetFlow:s.unref(ge),onFocusMenu:q,onSelectDate:ce[0]||(ce[0]=k=>z.$emit("select-date")),onAutoApply:ce[1]||(ce[1]=k=>z.$emit("auto-apply",k)),onTimeUpdate:ce[2]||(ce[2]=k=>z.$emit("time-update"))},s.createSlots({_:2},[s.renderList(s.unref(P),(k,U)=>({name:k,fn:s.withCtx(O=>[s.renderSlot(z.$slots,k,s.normalizeProps(s.guardReactiveProps({...O})))])}))]),1064,["flow-step","collapse","no-overlay-focus","menu-wrap-ref","onMount","onUpdateFlowStep","onResetFlow"]))]),z.$slots["right-sidebar"]?(s.openBlock(),s.createElementBlock("div",HO,[s.renderSlot(z.$slots,"right-sidebar",s.normalizeProps(s.guardReactiveProps(x.value)))])):s.createCommentVNode("",!0)],14,DO),z.$slots["action-extra"]?(s.openBlock(),s.createElementBlock("div",PO,[z.$slots["action-extra"]?s.renderSlot(z.$slots,"action-extra",{key:0,selectCurrentDate:Ce}):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),!s.unref(o).autoApply||s.unref(u).keepActionRow?(s.openBlock(),s.createBlock(LD,{key:3,"menu-mount":D.value,"calendar-width":_.value,onClosePicker:ce[3]||(ce[3]=k=>z.$emit("close-picker")),onSelectDate:ce[4]||(ce[4]=k=>z.$emit("select-date")),onSelectNow:Ce},s.createSlots({_:2},[s.renderList(s.unref(T),(k,U)=>({name:k,fn:s.withCtx(O=>[s.renderSlot(z.$slots,k,s.normalizeProps(s.guardReactiveProps(O)))])}))]),1032,["menu-mount","calendar-width"])):s.createCommentVNode("",!0)],42,IO))}}),KO=["data-dp-mobile"],zO=s.defineComponent({__name:"VueDatePicker",setup(t,{expose:e}){const{rootEmit:n,setState:r,inputValue:A,modelValue:i,rootProps:o,defaults:{inline:a,config:l,textInput:u,range:d,multiDates:h,teleport:p,floatingConfig:m}}=pt(),{validateDate:v,isValidTime:B}=Zr(),{menuTransition:y,showTransition:w}=pl(),{isMobile:C}=lu(),{findNextFocusableElement:S,getNumVal:Q}=Sn(),_=s.useSlots(),D=s.ref(!1),I=s.ref(a.value.enabled||o.centered),$=s.toRef(o,"modelValue"),Y=s.toRef(o,"timezone"),de=s.useTemplateRef("dp-menu-wrap"),ge=s.useTemplateRef("dp-menu"),me=s.useTemplateRef("input-cmp"),we=s.useTemplateRef("picker-wrapper"),te=s.useTemplateRef("menu-arrow"),V=s.ref(!1),q=s.ref(!1),x=s.ref(!1),T=s.ref(!0),P=ze=>(m.value.arrow&&ze.push(bI({element:m.value.arrow===!0?te:m.value.arrow})),m.value.flip&&ze.push(wI(typeof m.value.flip=="object"?m.value.flip:{})),m.value.shift&&ze.push(vI(typeof m.value.shift=="object"?m.value.shift:{})),ze),{floatingStyles:F,middlewareData:E,placement:W,y:ne}=EI(me,de,{strategy:m.value.strategy,placement:m.value.placement,middleware:P([gI(m.value.offset)]),whileElementsMounted:mI});s.onMounted(()=>{Ae(o.modelValue),s.nextTick().then(()=>{a.value.enabled||globalThis.addEventListener("resize",J)}),a.value.enabled&&(D.value=!0),globalThis.addEventListener("keyup",z),globalThis.addEventListener("keydown",ce)}),s.onUnmounted(()=>{a.value.enabled||globalThis.removeEventListener("resize",J),globalThis.removeEventListener("keyup",z),globalThis.removeEventListener("keydown",ce)});const X=D0(_,o.presetDates),re=VA(_,xA.Input);s.watch([$,Y],()=>{Ae($.value)},{deep:!0}),s.watch([W,ne],()=>{!a.value.enabled&&!o.centered&&T.value&&(I.value=!1,s.nextTick().then(()=>{T.value=!1,I.value=!0}))});const{parseExternalModelValue:Ae,emitModelValue:pe,formatInputValue:le,checkBeforeEmit:Ce}=O_(),G=s.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:a.value.enabled,"dp--flex-display-collapsed":x.value,dp__flex_display_with_input:a.value.input})),ee=s.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),K=s.computed(()=>a.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),N=()=>me.value?.$el?.getBoundingClientRect()??{width:0,left:0,right:0},R=()=>{D.value&&l.value.closeOnScroll&&he()},J=()=>{const ze=ge.value?.$el.getBoundingClientRect().width??0;x.value=document.body.offsetWidth<=ze},z=ze=>{ze.key==="Tab"&&!a.value.enabled&&!o.teleport&&l.value.tabOutClosesMenu&&(we.value.contains(document.activeElement)||he()),q.value=ze.shiftKey},ce=ze=>{q.value=ze.shiftKey},k=()=>{!o.disabled&&!o.readonly&&(T.value=!0,D.value=!0,D.value&&n("open"),D.value||ae(),Ae(o.modelValue))},U=()=>{A.value="",ae(),ge.value?.onValueCleared(),me.value?.setParsedDate(null),n("update:model-value",null),n("cleared"),l.value.closeOnClearValue&&he()},O=()=>{const ze=i.value;return!ze||!Array.isArray(ze)&&v(ze)?!0:Array.isArray(ze)?h.value.enabled||ze.length===2&&v(ze[0])&&v(ze[1])?!0:d.value.partialRange&&!o.timePicker?v(ze[0]):!1:!1},se=()=>{Ce()&&O()?(pe(),he()):n("invalid-select")},j=ze=>{be(),pe(),l.value.closeOnAutoApply&&!ze&&he()},be=()=>{me.value&&u.value.enabled&&me.value.setParsedDate(i.value)},Be=(ze=!1)=>{o.autoApply&&B(i.value)&&O()&&(d.value.enabled&&Array.isArray(i.value)?(d.value.partialRange||i.value.length===2)&&j(ze):j(ze))},ae=()=>{u.value.enabled||(i.value=null)},he=(ze=!1)=>{T.value=!0,ze&&i.value&&l.value.setDateOnMenuClose&&se(),a.value.enabled||(D.value&&(D.value=!1,r("menuFocused",!1),r("shiftKeyInMenu",!1),n("closed"),A.value&&Ae($.value)),ae(),n("blur"))},xe=(ze,gn,Tn=!1)=>{if(!ze){i.value=null;return}const mi=Array.isArray(ze)?ze.every(Ho=>v(Ho)):v(ze),wr=B(ze);mi&&wr?(r("isTextInputDate",!0),i.value=ze,gn?(V.value=Tn,se(),n("text-submit")):o.autoApply&&Be(!0),s.nextTick().then(()=>{r("isTextInputDate",!1)})):n("invalid-date",ze)},Pe=()=>{o.autoApply&&B(i.value)&&pe(),be()},ot=()=>D.value?he():k(),$e=ze=>{i.value=ze},ht=()=>{u.value.enabled&&(r("isInputFocused",!0),le()),n("focus")},wt=()=>{u.value.enabled&&(r("isInputFocused",!1),Ae(o.modelValue),V.value&&S(we.value,q.value)?.focus()),n("blur")},Et=(ze,gn)=>{ge.value&&ge.value.updateMonthYear(gn??0,{month:Q(ze.month),year:Q(ze.year)})},En=ze=>{Ae(ze??o.modelValue)},Yt=(ze,gn)=>{ge.value?.switchView(ze,gn)},Kt=(ze,gn)=>{if(D.value)return l.value.onClickOutside?l.value.onClickOutside(ze,gn):he(!0)},OA=(ze=0)=>{ge.value?.handleFlow(ze)},pi=()=>de;return kM(de,ze=>Kt(O,ze),{ignore:[me]}),e({closeMenu:he,selectDate:se,clearValue:U,openMenu:k,onScroll:R,formatInputValue:le,updateInternalModelValue:$e,setMonthYear:Et,parseModel:En,switchView:Yt,toggleMenu:ot,handleFlow:OA,getDpWrapMenuRef:pi,dpMenuRef:()=>ge,dpWrapMenuRef:()=>de,inputRef:()=>me}),(ze,gn)=>(s.openBlock(),s.createElementBlock("div",{ref:"picker-wrapper",class:s.normalizeClass(G.value),"data-datepicker-instance":"","data-dp-mobile":s.unref(C)},[s.createVNode(UD,{ref:"input-cmp","is-menu-open":D.value,onClear:U,onOpen:k,onSetInputDate:xe,onSetEmptyDate:s.unref(pe),onSelectDate:se,onToggle:ot,onClose:he,onFocus:ht,onBlur:wt,onRealBlur:gn[0]||(gn[0]=Tn=>s.unref(r)("isInputFocused",!1))},s.createSlots({_:2},[s.renderList(s.unref(re),(Tn,mi)=>({name:Tn,fn:s.withCtx(wr=>[s.renderSlot(ze.$slots,Tn,s.normalizeProps(s.guardReactiveProps(wr)))])}))]),1032,["is-menu-open","onSetEmptyDate"]),s.createVNode(s.Teleport,{to:s.unref(p),disabled:!s.unref(p)},{default:s.withCtx(()=>[s.createElementVNode("div",{ref:"dp-menu-wrap",class:s.normalizeClass({"dp--menu-wrapper":!s.unref(a).enabled,dp__outer_menu_wrap:!0,"dp--centered":s.unref(o).centered}),style:s.normalizeStyle(!s.unref(a).enabled&&!s.unref(o).centered?s.unref(F):void 0)},[s.createVNode(s.Transition,{name:s.unref(y)(s.unref(W).startsWith("top")),css:s.unref(w)&&!s.unref(a).enabled&&!s.unref(o).centered&&I.value},{default:s.withCtx(()=>[D.value&&I.value?(s.openBlock(),s.createBlock($O,{key:0,ref:"dp-menu",class:s.normalizeClass({[ee.value]:!0}),"no-overlay-focus":K.value,collapse:x.value,"get-input-rect":N,onClosePicker:he,onSelectDate:se,onAutoApply:Be,onTimeUpdate:Pe,onMenuBlur:gn[1]||(gn[1]=Tn=>s.unref(n)("blur"))},s.createSlots({_:2},[s.renderList(s.unref(X),(Tn,mi)=>({name:Tn,fn:s.withCtx(wr=>[s.renderSlot(ze.$slots,Tn,s.normalizeProps(s.guardReactiveProps({...wr})))])})),!s.unref(a).enabled&&!s.unref(o).centered&&s.unref(m).arrow===!0?{name:"arrow",fn:s.withCtx(()=>[s.createElementVNode("div",{ref:"menu-arrow",class:s.normalizeClass({dp__arrow_top:s.unref(W)==="bottom",dp__arrow_bottom:s.unref(W)==="top"}),style:s.normalizeStyle({left:s.unref(E).arrow?.x!=null?`${s.unref(E).arrow.x}px`:"",top:s.unref(E).arrow?.y!=null?`${s.unref(E).arrow.y}px`:""})},null,6)]),key:"0"}:void 0]),1032,["class","no-overlay-focus","collapse"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])],6)]),_:3},8,["to","disabled"])],10,KO))}}),hu=s.defineComponent({__name:"VueDatePickerRoot",props:s.mergeDefaults({multiCalendars:{type:[Boolean,Number,String,Object]},modelValue:{},modelType:{},dark:{type:Boolean},transitions:{type:[Boolean,Object]},ariaLabels:{},hideNavigation:{},timezone:{},vertical:{type:Boolean},hideMonthYearSelect:{type:Boolean},disableYearSelect:{type:Boolean},yearRange:{},autoApply:{type:Boolean},disabledDates:{type:[Array,Function]},startDate:{},hideOffsetDates:{type:Boolean},noToday:{type:Boolean},allowedDates:{},markers:{},presetDates:{},flow:{},preventMinMaxNavigation:{type:Boolean},reverseYears:{type:Boolean},weekPicker:{type:Boolean},filters:{},arrowNavigation:{type:Boolean},highlight:{type:[Function,Object]},teleport:{type:[String,Boolean]},centered:{type:Boolean},locale:{},weekStart:{},weekNumbers:{type:[Boolean,Object]},dayNames:{type:[Function,Array]},monthPicker:{type:Boolean},yearPicker:{type:Boolean},modelAuto:{type:Boolean},formats:{},multiDates:{type:[Boolean,Object]},minDate:{},maxDate:{},minTime:{},maxTime:{},inputAttrs:{},timeConfig:{},placeholder:{},timePicker:{type:Boolean},range:{type:[Boolean,Object]},menuId:{},disabled:{type:Boolean},readonly:{type:Boolean},inline:{type:[Boolean,Object]},textInput:{type:[Boolean,Object]},sixWeeks:{type:[Boolean,String]},actionRow:{},focusStartDate:{type:Boolean},disabledTimes:{type:[Function,Array]},calendar:{type:Function},config:{},quarterPicker:{type:Boolean},yearFirst:{type:Boolean},loading:{type:Boolean},ui:{},floating:{}},kD),emits:["update:model-value","internal-model-change","text-submit","text-input","open","closed","focus","blur","cleared","flow-step","update-month-year","invalid-select","invalid-fixed-range","invalid-date","tooltip-open","tooltip-close","am-pm-change","range-start","range-end","date-click","overlay-toggle","invalid"],setup(t,{expose:e,emit:n}){const r=n,A=t;U_(A,r);const i=s.useSlots(),o=D0(i,A.presetDates),a=s.useTemplateRef("date-picker");return e(xD(a)),(l,u)=>(s.openBlock(),s.createBlock(zO,{ref:"date-picker"},s.createSlots({_:2},[s.renderList(s.unref(o),(d,h)=>({name:d,fn:s.withCtx(p=>[s.renderSlot(l.$slots,d,s.normalizeProps(s.guardReactiveProps(p)))])}))]),1536))}});function ei(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const H0={};function WO(t){H0[t]||(H0[t]=!0,ei(t))}const Ei=typeof window<"u";let Or,ss;if(process.env.NODE_ENV!=="production"){const t=Ei&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(Or=e=>{t.mark(e)},ss=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const GO=/\{([0-9a-zA-Z]+)\}/g;function pu(t,...e){return e.length===1&&kt(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(GO,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const ki=(t,e=!1)=>e?Symbol.for(t):Symbol(t),YO=(t,e,n)=>qO({l:t,k:e,s:n}),qO=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Un=t=>typeof t=="number"&&isFinite(t),XO=t=>Sp(t)==="[object Date]",mu=t=>Sp(t)==="[object RegExp]",gu=t=>St(t)&&Object.keys(t).length===0,_n=Object.assign,JO=Object.create,Lt=(t=null)=>JO(t);let P0;const as=()=>P0||(P0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Lt());function $0(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function K0(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function jO(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,A,i)=>`${A}="${K0(i)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,A,i)=>`${A}='${K0(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(process.env.NODE_ENV!=="production"&&ei("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{t=t.replace(r,"$1javascript:")}),t}const ZO=Object.prototype.hasOwnProperty;function FA(t,e){return ZO.call(t,e)}const fn=Array.isArray,Xt=t=>typeof t=="function",Le=t=>typeof t=="string",hn=t=>typeof t=="boolean",kt=t=>t!==null&&typeof t=="object",VO=t=>kt(t)&&Xt(t.then)&&Xt(t.catch),z0=Object.prototype.toString,Sp=t=>z0.call(t),St=t=>Sp(t)==="[object Object]",eN=t=>t==null?"":fn(t)||St(t)&&t.toString===z0?JSON.stringify(t,null,2):String(t);function xp(t,e=""){return t.reduce((n,r,A)=>A===0?n+r:n+e+r,"")}const W0=2;function tN(t,e=0,n=t.length){const r=t.split(/\r?\n/);let A=0;const i=[];for(let o=0;o<r.length;o++)if(A+=r[o].length+1,A>=e){for(let a=o-W0;a<=o+W0||n>A;a++){if(a<0||a>=r.length)continue;const l=a+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${r[a]}`);const u=r[a].length;if(a===o){const d=e-(A-u)+1,h=Math.max(1,n>A?u-d:n-e);i.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(a>o){if(n>A){const d=Math.max(Math.min(n-A,u),1);i.push(" | "+"^".repeat(d))}A+=u+1}}break}return i.join(`
|
|
3
3
|
`)}function nN(){const t=new Map;return{events:t,on(n,r){const A=t.get(n);A&&A.push(r)||t.set(n,[r])},off(n,r){const A=t.get(n);A&&A.splice(A.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(A=>A(r)),(t.get("*")||[]).slice().map(A=>A(n,r))}}}const vu=t=>!kt(t)||fn(t);function wu(t,e){if(vu(t)||vu(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:A}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(kt(r[i])&&!kt(A[i])&&(A[i]=Array.isArray(r[i])?[]:Lt()),vu(A[i])||vu(r[i])?A[i]=r[i]:n.push({src:r[i],des:A[i]}))})}}function rN(t,e,n){return{line:t,column:e,offset:n}}function Fp(t,e,n){return{start:t,end:e}}const et={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},AN=17,iN={[et.EXPECTED_TOKEN]:"Expected token: '{0}'",[et.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[et.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[et.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[et.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[et.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[et.EMPTY_PLACEHOLDER]:"Empty placeholder",[et.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[et.INVALID_LINKED_FORMAT]:"Invalid linked format",[et.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[et.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[et.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[et.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[et.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[et.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ia(t,e,n={}){const{domain:r,messages:A,args:i}=n,o=process.env.NODE_ENV!=="production"?pu((A||iN)[t]||"",...i||[]):t,a=new SyntaxError(String(o));return a.code=t,e&&(a.location=e),a.domain=r,a}function oN(t){throw t}const sN=/<\/?[\w\s="/.':;#-\/]+>/,aN=t=>sN.test(t),ti=" ",lN="\r",Zn=`
|
|
4
|
-
`,cN="\u2028",uN="\u2029";function dN(t){const e=t;let n=0,r=1,A=1,i=0;const o=I=>e[I]===lN&&e[I+1]===Zn,a=I=>e[I]===Zn,l=I=>e[I]===uN,u=I=>e[I]===cN,d=I=>o(I)||a(I)||l(I)||u(I),h=()=>n,p=()=>r,m=()=>A,v=()=>i,B=I=>o(I)||l(I)||u(I)?Zn:e[I],y=()=>B(n),w=()=>B(n+i);function C(){return i=0,d(n)&&(r++,A=0),o(n)&&n++,n++,A++,e[n]}function S(){return o(n+i)&&i++,i++,e[n+i]}function Q(){n=0,r=1,A=1,i=0}function _(I=0){i=I}function D(){const I=n+i;for(;I!==n;)C();i=0}return{index:h,line:p,column:m,peekOffset:v,charAt:B,currentChar:y,currentPeek:w,next:C,peek:S,reset:Q,resetPeek:_,skipToPeek:D}}const Si=void 0,fN=".",G0="'",hN="tokenizer";function pN(t,e={}){const n=e.location!==!1,r=dN(t),A=()=>r.index(),i=()=>rN(r.line(),r.column(),r.index()),o=i(),a=A(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:d}=e;function h(k,U,O,...se){const j=u();if(U.column+=O,U.offset+=O,d){const be=n?Fp(j.startLoc,U):null,Be=ia(k,be,{domain:hN,args:se});d(Be)}}function p(k,U,O){k.endLoc=i(),k.currentType=U;const se={type:U};return n&&(se.loc=Fp(k.startLoc,k.endLoc)),O!=null&&(se.value=O),se}const m=k=>p(k,13);function v(k,U){return k.currentChar()===U?(k.next(),U):(h(et.EXPECTED_TOKEN,i(),0,U),"")}function B(k){let U="";for(;k.currentPeek()===ti||k.currentPeek()===Zn;)U+=k.currentPeek(),k.peek();return U}function y(k){const U=B(k);return k.skipToPeek(),U}function w(k){if(k===Si)return!1;const U=k.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U===95}function C(k){if(k===Si)return!1;const U=k.charCodeAt(0);return U>=48&&U<=57}function S(k,U){const{currentType:O}=U;if(O!==2)return!1;B(k);const se=w(k.currentPeek());return k.resetPeek(),se}function Q(k,U){const{currentType:O}=U;if(O!==2)return!1;B(k);const se=k.currentPeek()==="-"?k.peek():k.currentPeek(),j=C(se);return k.resetPeek(),j}function _(k,U){const{currentType:O}=U;if(O!==2)return!1;B(k);const se=k.currentPeek()===G0;return k.resetPeek(),se}function D(k,U){const{currentType:O}=U;if(O!==7)return!1;B(k);const se=k.currentPeek()===".";return k.resetPeek(),se}function I(k,U){const{currentType:O}=U;if(O!==8)return!1;B(k);const se=w(k.currentPeek());return k.resetPeek(),se}function $(k,U){const{currentType:O}=U;if(!(O===7||O===11))return!1;B(k);const se=k.currentPeek()===":";return k.resetPeek(),se}function Y(k,U){const{currentType:O}=U;if(O!==9)return!1;const se=()=>{const be=k.currentPeek();return be==="{"?w(k.peek()):be==="@"||be==="|"||be===":"||be==="."||be===ti||!be?!1:be===Zn?(k.peek(),se()):ge(k,!1)},j=se();return k.resetPeek(),j}function de(k){B(k);const U=k.currentPeek()==="|";return k.resetPeek(),U}function ge(k,U=!0){const O=(j=!1,be="")=>{const Be=k.currentPeek();return Be==="{"||Be==="@"||!Be?j:Be==="|"?!(be===ti||be===Zn):Be===ti?(k.peek(),O(!0,ti)):Be===Zn?(k.peek(),O(!0,Zn)):!0},se=O();return U&&k.resetPeek(),se}function me(k,U){const O=k.currentChar();return O===Si?Si:U(O)?(k.next(),O):null}function we(k){const U=k.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36}function te(k){return me(k,we)}function V(k){const U=k.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36||U===45}function q(k){return me(k,V)}function x(k){const U=k.charCodeAt(0);return U>=48&&U<=57}function T(k){return me(k,x)}function P(k){const U=k.charCodeAt(0);return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102}function F(k){return me(k,P)}function E(k){let U="",O="";for(;U=T(k);)O+=U;return O}function W(k){let U="";for(;;){const O=k.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O===ti||O===Zn)if(ge(k))U+=O,k.next();else{if(de(k))break;U+=O,k.next()}else U+=O,k.next()}return U}function ne(k){y(k);let U="",O="";for(;U=q(k);)O+=U;const se=k.currentChar();if(se&&se!=="}"&&se!==Si&&se!==ti&&se!==Zn&&se!==" "){const j=G(k);return h(et.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O+j),O+j}return k.currentChar()===Si&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),O}function X(k){y(k);let U="";return k.currentChar()==="-"?(k.next(),U+=`-${E(k)}`):U+=E(k),k.currentChar()===Si&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),U}function re(k){return k!==G0&&k!==Zn}function ie(k){y(k),v(k,"'");let U="",O="";for(;U=me(k,re);)U==="\\"?O+=pe(k):O+=U;const se=k.currentChar();return se===Zn||se===Si?(h(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),se===Zn&&(k.next(),v(k,"'")),O):(v(k,"'"),O)}function pe(k){const U=k.currentChar();switch(U){case"\\":case"'":return k.next(),`\\${U}`;case"u":return le(k,U,4);case"U":return le(k,U,6);default:return h(et.UNKNOWN_ESCAPE_SEQUENCE,i(),0,U),""}}function le(k,U,O){v(k,U);let se="";for(let j=0;j<O;j++){const be=F(k);if(!be){h(et.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${U}${se}${k.currentChar()}`);break}se+=be}return`\\${U}${se}`}function Ce(k){return k!=="{"&&k!=="}"&&k!==ti&&k!==Zn}function G(k){y(k);let U="",O="";for(;U=me(k,Ce);)O+=U;return O}function ee(k){let U="",O="";for(;U=te(k);)O+=U;return O}function K(k){const U=O=>{const se=k.currentChar();return se==="{"||se==="@"||se==="|"||se==="("||se===")"||!se||se===ti?O:(O+=se,k.next(),U(O))};return U("")}function N(k){y(k);const U=v(k,"|");return y(k),U}function R(k,U){let O=null;switch(k.currentChar()){case"{":return U.braceNest>=1&&h(et.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),k.next(),O=p(U,2,"{"),y(k),U.braceNest++,O;case"}":return U.braceNest>0&&U.currentType===2&&h(et.EMPTY_PLACEHOLDER,i(),0),k.next(),O=p(U,3,"}"),U.braceNest--,U.braceNest>0&&y(k),U.inLinked&&U.braceNest===0&&(U.inLinked=!1),O;case"@":return U.braceNest>0&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),O=J(k,U)||m(U),U.braceNest=0,O;default:{let j=!0,be=!0,Be=!0;if(de(k))return U.braceNest>0&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),O=p(U,1,N(k)),U.braceNest=0,U.inLinked=!1,O;if(U.braceNest>0&&(U.currentType===4||U.currentType===5||U.currentType===6))return h(et.UNTERMINATED_CLOSING_BRACE,i(),0),U.braceNest=0,z(k,U);if(j=S(k,U))return O=p(U,4,ne(k)),y(k),O;if(be=Q(k,U))return O=p(U,5,X(k)),y(k),O;if(Be=_(k,U))return O=p(U,6,ie(k)),y(k),O;if(!j&&!be&&!Be)return O=p(U,12,G(k)),h(et.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O.value),y(k),O;break}}return O}function J(k,U){const{currentType:O}=U;let se=null;const j=k.currentChar();switch((O===7||O===8||O===11||O===9)&&(j===Zn||j===ti)&&h(et.INVALID_LINKED_FORMAT,i(),0),j){case"@":return k.next(),se=p(U,7,"@"),U.inLinked=!0,se;case".":return y(k),k.next(),p(U,8,".");case":":return y(k),k.next(),p(U,9,":");default:return de(k)?(se=p(U,1,N(k)),U.braceNest=0,U.inLinked=!1,se):D(k,U)||$(k,U)?(y(k),J(k,U)):I(k,U)?(y(k),p(U,11,ee(k))):Y(k,U)?(y(k),j==="{"?R(k,U)||se:p(U,10,K(k))):(O===7&&h(et.INVALID_LINKED_FORMAT,i(),0),U.braceNest=0,U.inLinked=!1,z(k,U))}}function z(k,U){let O={type:13};if(U.braceNest>0)return R(k,U)||m(U);if(U.inLinked)return J(k,U)||m(U);switch(k.currentChar()){case"{":return R(k,U)||m(U);case"}":return h(et.UNBALANCED_CLOSING_BRACE,i(),0),k.next(),p(U,3,"}");case"@":return J(k,U)||m(U);default:{if(de(k))return O=p(U,1,N(k)),U.braceNest=0,U.inLinked=!1,O;if(ge(k))return p(U,0,W(k));break}}return O}function ce(){const{currentType:k,offset:U,startLoc:O,endLoc:se}=l;return l.lastType=k,l.lastOffset=U,l.lastStartLoc=O,l.lastEndLoc=se,l.offset=A(),l.startLoc=i(),r.currentChar()===Si?p(l,13):z(r,l)}return{nextToken:ce,currentOffset:A,currentPosition:i,context:u}}const mN="parser",gN=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vN(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function wN(t={}){const e=t.location!==!1,{onError:n}=t;function r(w,C,S,Q,..._){const D=w.currentPosition();if(D.offset+=Q,D.column+=Q,n){const I=e?Fp(S,D):null,$=ia(C,I,{domain:mN,args:_});n($)}}function A(w,C,S){const Q={type:w};return e&&(Q.start=C,Q.end=C,Q.loc={start:S,end:S}),Q}function i(w,C,S,Q){e&&(w.end=C,w.loc&&(w.loc.end=S))}function o(w,C){const S=w.context(),Q=A(3,S.offset,S.startLoc);return Q.value=C,i(Q,w.currentOffset(),w.currentPosition()),Q}function a(w,C){const S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(5,Q,_);return D.index=parseInt(C,10),w.nextToken(),i(D,w.currentOffset(),w.currentPosition()),D}function l(w,C){const S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(4,Q,_);return D.key=C,w.nextToken(),i(D,w.currentOffset(),w.currentPosition()),D}function u(w,C){const S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(9,Q,_);return D.value=C.replace(gN,vN),w.nextToken(),i(D,w.currentOffset(),w.currentPosition()),D}function d(w){const C=w.nextToken(),S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(8,Q,_);return C.type!==11?(r(w,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),D.value="",i(D,Q,_),{nextConsumeToken:C,node:D}):(C.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ni(C)),D.value=C.value||"",i(D,w.currentOffset(),w.currentPosition()),{node:D})}function h(w,C){const S=w.context(),Q=A(7,S.offset,S.startLoc);return Q.value=C,i(Q,w.currentOffset(),w.currentPosition()),Q}function p(w){const C=w.context(),S=A(6,C.offset,C.startLoc);let Q=w.nextToken();if(Q.type===8){const _=d(w);S.modifier=_.node,Q=_.nextConsumeToken||w.nextToken()}switch(Q.type!==9&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),Q=w.nextToken(),Q.type===2&&(Q=w.nextToken()),Q.type){case 10:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=h(w,Q.value||"");break;case 4:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=l(w,Q.value||"");break;case 5:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=a(w,Q.value||"");break;case 6:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=u(w,Q.value||"");break;default:{r(w,et.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const _=w.context(),D=A(7,_.offset,_.startLoc);return D.value="",i(D,_.offset,_.startLoc),S.key=D,i(S,_.offset,_.startLoc),{nextConsumeToken:Q,node:S}}}return i(S,w.currentOffset(),w.currentPosition()),{node:S}}function m(w){const C=w.context(),S=C.currentType===1?w.currentOffset():C.offset,Q=C.currentType===1?C.endLoc:C.startLoc,_=A(2,S,Q);_.items=[];let D=null;do{const Y=D||w.nextToken();switch(D=null,Y.type){case 0:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(o(w,Y.value||""));break;case 5:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(a(w,Y.value||""));break;case 4:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(l(w,Y.value||""));break;case 6:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(u(w,Y.value||""));break;case 7:{const de=p(w);_.items.push(de.node),D=de.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);const I=C.currentType===1?C.lastOffset:w.currentOffset(),$=C.currentType===1?C.lastEndLoc:w.currentPosition();return i(_,I,$),_}function v(w,C,S,Q){const _=w.context();let D=Q.items.length===0;const I=A(1,C,S);I.cases=[],I.cases.push(Q);do{const $=m(w);D||(D=$.items.length===0),I.cases.push($)}while(_.currentType!==13);return D&&r(w,et.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),i(I,w.currentOffset(),w.currentPosition()),I}function B(w){const C=w.context(),{offset:S,startLoc:Q}=C,_=m(w);return C.currentType===13?_:v(w,S,Q,_)}function y(w){const C=pN(w,_n({},t)),S=C.context(),Q=A(0,S.offset,S.startLoc);return e&&Q.loc&&(Q.loc.source=w),Q.body=B(C),t.onCacheKey&&(Q.cacheKey=t.onCacheKey(w)),S.currentType!==13&&r(C,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,w[S.offset]||""),i(Q,C.currentOffset(),C.currentPosition()),Q}return{parse:y}}function ni(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function BN(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Y0(t,e){for(let n=0;n<t.length;n++)Qp(t[n],e)}function Qp(t,e){switch(t.type){case 1:Y0(t.cases,e),e.helper("plural");break;case 2:Y0(t.items,e);break;case 6:{Qp(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function yN(t,e={}){const n=BN(t);n.helper("normalize"),t.body&&Qp(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function CN(t){const e=t.body;return e.type===2?q0(e):e.cases.forEach(n=>q0(n)),t}function q0(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=xp(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const bN="minifier";function oa(t){switch(t.t=t.type,t.type){case 0:{const e=t;oa(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)oa(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)oa(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;oa(e.key),e.k=e.key,delete e.key,e.modifier&&(oa(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw ia(et.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:bN,args:[t.type]})}delete t.type}const EN="parser";function kN(t,e){const{filename:n,breakLineCode:r,needIndent:A}=e,i=e.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:A,indentLevel:0};i&&t.loc&&(o.source=t.loc.source);const a=()=>o;function l(B,y){o.code+=B}function u(B,y=!0){const w=y?r:"";l(A?w+" ".repeat(B):w)}function d(B=!0){const y=++o.indentLevel;B&&u(y)}function h(B=!0){const y=--o.indentLevel;B&&u(y)}function p(){u(o.indentLevel)}return{context:a,push:l,indent:d,deindent:h,newline:p,helper:B=>`_${B}`,needIndent:()=>o.needIndent}}function SN(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),sa(t,e.key),e.modifier?(t.push(", "),sa(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function xN(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const A=e.items.length;for(let i=0;i<A&&(sa(t,e.items[i]),i!==A-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function FN(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const A=e.cases.length;for(let i=0;i<A&&(sa(t,e.cases[i]),i!==A-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function QN(t,e){e.body?sa(t,e.body):t.push("null")}function sa(t,e){const{helper:n}=t;switch(e.type){case 0:QN(t,e);break;case 1:FN(t,e);break;case 2:xN(t,e);break;case 6:SN(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw ia(et.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:EN,args:[e.type]})}}const TN=(t,e={})=>{const n=Le(e.mode)?e.mode:"normal",r=Le(e.filename)?e.filename:"message.intl";e.sourceMap;const A=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
4
|
+
`,cN="\u2028",uN="\u2029";function dN(t){const e=t;let n=0,r=1,A=1,i=0;const o=I=>e[I]===lN&&e[I+1]===Zn,a=I=>e[I]===Zn,l=I=>e[I]===uN,u=I=>e[I]===cN,d=I=>o(I)||a(I)||l(I)||u(I),h=()=>n,p=()=>r,m=()=>A,v=()=>i,B=I=>o(I)||l(I)||u(I)?Zn:e[I],y=()=>B(n),w=()=>B(n+i);function C(){return i=0,d(n)&&(r++,A=0),o(n)&&n++,n++,A++,e[n]}function S(){return o(n+i)&&i++,i++,e[n+i]}function Q(){n=0,r=1,A=1,i=0}function _(I=0){i=I}function D(){const I=n+i;for(;I!==n;)C();i=0}return{index:h,line:p,column:m,peekOffset:v,charAt:B,currentChar:y,currentPeek:w,next:C,peek:S,reset:Q,resetPeek:_,skipToPeek:D}}const Si=void 0,fN=".",G0="'",hN="tokenizer";function pN(t,e={}){const n=e.location!==!1,r=dN(t),A=()=>r.index(),i=()=>rN(r.line(),r.column(),r.index()),o=i(),a=A(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:d}=e;function h(k,U,O,...se){const j=u();if(U.column+=O,U.offset+=O,d){const be=n?Fp(j.startLoc,U):null,Be=ia(k,be,{domain:hN,args:se});d(Be)}}function p(k,U,O){k.endLoc=i(),k.currentType=U;const se={type:U};return n&&(se.loc=Fp(k.startLoc,k.endLoc)),O!=null&&(se.value=O),se}const m=k=>p(k,13);function v(k,U){return k.currentChar()===U?(k.next(),U):(h(et.EXPECTED_TOKEN,i(),0,U),"")}function B(k){let U="";for(;k.currentPeek()===ti||k.currentPeek()===Zn;)U+=k.currentPeek(),k.peek();return U}function y(k){const U=B(k);return k.skipToPeek(),U}function w(k){if(k===Si)return!1;const U=k.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U===95}function C(k){if(k===Si)return!1;const U=k.charCodeAt(0);return U>=48&&U<=57}function S(k,U){const{currentType:O}=U;if(O!==2)return!1;B(k);const se=w(k.currentPeek());return k.resetPeek(),se}function Q(k,U){const{currentType:O}=U;if(O!==2)return!1;B(k);const se=k.currentPeek()==="-"?k.peek():k.currentPeek(),j=C(se);return k.resetPeek(),j}function _(k,U){const{currentType:O}=U;if(O!==2)return!1;B(k);const se=k.currentPeek()===G0;return k.resetPeek(),se}function D(k,U){const{currentType:O}=U;if(O!==7)return!1;B(k);const se=k.currentPeek()===".";return k.resetPeek(),se}function I(k,U){const{currentType:O}=U;if(O!==8)return!1;B(k);const se=w(k.currentPeek());return k.resetPeek(),se}function $(k,U){const{currentType:O}=U;if(!(O===7||O===11))return!1;B(k);const se=k.currentPeek()===":";return k.resetPeek(),se}function Y(k,U){const{currentType:O}=U;if(O!==9)return!1;const se=()=>{const be=k.currentPeek();return be==="{"?w(k.peek()):be==="@"||be==="|"||be===":"||be==="."||be===ti||!be?!1:be===Zn?(k.peek(),se()):ge(k,!1)},j=se();return k.resetPeek(),j}function de(k){B(k);const U=k.currentPeek()==="|";return k.resetPeek(),U}function ge(k,U=!0){const O=(j=!1,be="")=>{const Be=k.currentPeek();return Be==="{"||Be==="@"||!Be?j:Be==="|"?!(be===ti||be===Zn):Be===ti?(k.peek(),O(!0,ti)):Be===Zn?(k.peek(),O(!0,Zn)):!0},se=O();return U&&k.resetPeek(),se}function me(k,U){const O=k.currentChar();return O===Si?Si:U(O)?(k.next(),O):null}function we(k){const U=k.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36}function te(k){return me(k,we)}function V(k){const U=k.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36||U===45}function q(k){return me(k,V)}function x(k){const U=k.charCodeAt(0);return U>=48&&U<=57}function T(k){return me(k,x)}function P(k){const U=k.charCodeAt(0);return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102}function F(k){return me(k,P)}function E(k){let U="",O="";for(;U=T(k);)O+=U;return O}function W(k){let U="";for(;;){const O=k.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O===ti||O===Zn)if(ge(k))U+=O,k.next();else{if(de(k))break;U+=O,k.next()}else U+=O,k.next()}return U}function ne(k){y(k);let U="",O="";for(;U=q(k);)O+=U;const se=k.currentChar();if(se&&se!=="}"&&se!==Si&&se!==ti&&se!==Zn&&se!==" "){const j=G(k);return h(et.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O+j),O+j}return k.currentChar()===Si&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),O}function X(k){y(k);let U="";return k.currentChar()==="-"?(k.next(),U+=`-${E(k)}`):U+=E(k),k.currentChar()===Si&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),U}function re(k){return k!==G0&&k!==Zn}function Ae(k){y(k),v(k,"'");let U="",O="";for(;U=me(k,re);)U==="\\"?O+=pe(k):O+=U;const se=k.currentChar();return se===Zn||se===Si?(h(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),se===Zn&&(k.next(),v(k,"'")),O):(v(k,"'"),O)}function pe(k){const U=k.currentChar();switch(U){case"\\":case"'":return k.next(),`\\${U}`;case"u":return le(k,U,4);case"U":return le(k,U,6);default:return h(et.UNKNOWN_ESCAPE_SEQUENCE,i(),0,U),""}}function le(k,U,O){v(k,U);let se="";for(let j=0;j<O;j++){const be=F(k);if(!be){h(et.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${U}${se}${k.currentChar()}`);break}se+=be}return`\\${U}${se}`}function Ce(k){return k!=="{"&&k!=="}"&&k!==ti&&k!==Zn}function G(k){y(k);let U="",O="";for(;U=me(k,Ce);)O+=U;return O}function ee(k){let U="",O="";for(;U=te(k);)O+=U;return O}function K(k){const U=O=>{const se=k.currentChar();return se==="{"||se==="@"||se==="|"||se==="("||se===")"||!se||se===ti?O:(O+=se,k.next(),U(O))};return U("")}function N(k){y(k);const U=v(k,"|");return y(k),U}function R(k,U){let O=null;switch(k.currentChar()){case"{":return U.braceNest>=1&&h(et.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),k.next(),O=p(U,2,"{"),y(k),U.braceNest++,O;case"}":return U.braceNest>0&&U.currentType===2&&h(et.EMPTY_PLACEHOLDER,i(),0),k.next(),O=p(U,3,"}"),U.braceNest--,U.braceNest>0&&y(k),U.inLinked&&U.braceNest===0&&(U.inLinked=!1),O;case"@":return U.braceNest>0&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),O=J(k,U)||m(U),U.braceNest=0,O;default:{let j=!0,be=!0,Be=!0;if(de(k))return U.braceNest>0&&h(et.UNTERMINATED_CLOSING_BRACE,i(),0),O=p(U,1,N(k)),U.braceNest=0,U.inLinked=!1,O;if(U.braceNest>0&&(U.currentType===4||U.currentType===5||U.currentType===6))return h(et.UNTERMINATED_CLOSING_BRACE,i(),0),U.braceNest=0,z(k,U);if(j=S(k,U))return O=p(U,4,ne(k)),y(k),O;if(be=Q(k,U))return O=p(U,5,X(k)),y(k),O;if(Be=_(k,U))return O=p(U,6,Ae(k)),y(k),O;if(!j&&!be&&!Be)return O=p(U,12,G(k)),h(et.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O.value),y(k),O;break}}return O}function J(k,U){const{currentType:O}=U;let se=null;const j=k.currentChar();switch((O===7||O===8||O===11||O===9)&&(j===Zn||j===ti)&&h(et.INVALID_LINKED_FORMAT,i(),0),j){case"@":return k.next(),se=p(U,7,"@"),U.inLinked=!0,se;case".":return y(k),k.next(),p(U,8,".");case":":return y(k),k.next(),p(U,9,":");default:return de(k)?(se=p(U,1,N(k)),U.braceNest=0,U.inLinked=!1,se):D(k,U)||$(k,U)?(y(k),J(k,U)):I(k,U)?(y(k),p(U,11,ee(k))):Y(k,U)?(y(k),j==="{"?R(k,U)||se:p(U,10,K(k))):(O===7&&h(et.INVALID_LINKED_FORMAT,i(),0),U.braceNest=0,U.inLinked=!1,z(k,U))}}function z(k,U){let O={type:13};if(U.braceNest>0)return R(k,U)||m(U);if(U.inLinked)return J(k,U)||m(U);switch(k.currentChar()){case"{":return R(k,U)||m(U);case"}":return h(et.UNBALANCED_CLOSING_BRACE,i(),0),k.next(),p(U,3,"}");case"@":return J(k,U)||m(U);default:{if(de(k))return O=p(U,1,N(k)),U.braceNest=0,U.inLinked=!1,O;if(ge(k))return p(U,0,W(k));break}}return O}function ce(){const{currentType:k,offset:U,startLoc:O,endLoc:se}=l;return l.lastType=k,l.lastOffset=U,l.lastStartLoc=O,l.lastEndLoc=se,l.offset=A(),l.startLoc=i(),r.currentChar()===Si?p(l,13):z(r,l)}return{nextToken:ce,currentOffset:A,currentPosition:i,context:u}}const mN="parser",gN=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vN(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function wN(t={}){const e=t.location!==!1,{onError:n}=t;function r(w,C,S,Q,..._){const D=w.currentPosition();if(D.offset+=Q,D.column+=Q,n){const I=e?Fp(S,D):null,$=ia(C,I,{domain:mN,args:_});n($)}}function A(w,C,S){const Q={type:w};return e&&(Q.start=C,Q.end=C,Q.loc={start:S,end:S}),Q}function i(w,C,S,Q){e&&(w.end=C,w.loc&&(w.loc.end=S))}function o(w,C){const S=w.context(),Q=A(3,S.offset,S.startLoc);return Q.value=C,i(Q,w.currentOffset(),w.currentPosition()),Q}function a(w,C){const S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(5,Q,_);return D.index=parseInt(C,10),w.nextToken(),i(D,w.currentOffset(),w.currentPosition()),D}function l(w,C){const S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(4,Q,_);return D.key=C,w.nextToken(),i(D,w.currentOffset(),w.currentPosition()),D}function u(w,C){const S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(9,Q,_);return D.value=C.replace(gN,vN),w.nextToken(),i(D,w.currentOffset(),w.currentPosition()),D}function d(w){const C=w.nextToken(),S=w.context(),{lastOffset:Q,lastStartLoc:_}=S,D=A(8,Q,_);return C.type!==11?(r(w,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),D.value="",i(D,Q,_),{nextConsumeToken:C,node:D}):(C.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ni(C)),D.value=C.value||"",i(D,w.currentOffset(),w.currentPosition()),{node:D})}function h(w,C){const S=w.context(),Q=A(7,S.offset,S.startLoc);return Q.value=C,i(Q,w.currentOffset(),w.currentPosition()),Q}function p(w){const C=w.context(),S=A(6,C.offset,C.startLoc);let Q=w.nextToken();if(Q.type===8){const _=d(w);S.modifier=_.node,Q=_.nextConsumeToken||w.nextToken()}switch(Q.type!==9&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),Q=w.nextToken(),Q.type===2&&(Q=w.nextToken()),Q.type){case 10:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=h(w,Q.value||"");break;case 4:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=l(w,Q.value||"");break;case 5:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=a(w,Q.value||"");break;case 6:Q.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Q)),S.key=u(w,Q.value||"");break;default:{r(w,et.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const _=w.context(),D=A(7,_.offset,_.startLoc);return D.value="",i(D,_.offset,_.startLoc),S.key=D,i(S,_.offset,_.startLoc),{nextConsumeToken:Q,node:S}}}return i(S,w.currentOffset(),w.currentPosition()),{node:S}}function m(w){const C=w.context(),S=C.currentType===1?w.currentOffset():C.offset,Q=C.currentType===1?C.endLoc:C.startLoc,_=A(2,S,Q);_.items=[];let D=null;do{const Y=D||w.nextToken();switch(D=null,Y.type){case 0:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(o(w,Y.value||""));break;case 5:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(a(w,Y.value||""));break;case 4:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(l(w,Y.value||""));break;case 6:Y.value==null&&r(w,et.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ni(Y)),_.items.push(u(w,Y.value||""));break;case 7:{const de=p(w);_.items.push(de.node),D=de.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);const I=C.currentType===1?C.lastOffset:w.currentOffset(),$=C.currentType===1?C.lastEndLoc:w.currentPosition();return i(_,I,$),_}function v(w,C,S,Q){const _=w.context();let D=Q.items.length===0;const I=A(1,C,S);I.cases=[],I.cases.push(Q);do{const $=m(w);D||(D=$.items.length===0),I.cases.push($)}while(_.currentType!==13);return D&&r(w,et.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),i(I,w.currentOffset(),w.currentPosition()),I}function B(w){const C=w.context(),{offset:S,startLoc:Q}=C,_=m(w);return C.currentType===13?_:v(w,S,Q,_)}function y(w){const C=pN(w,_n({},t)),S=C.context(),Q=A(0,S.offset,S.startLoc);return e&&Q.loc&&(Q.loc.source=w),Q.body=B(C),t.onCacheKey&&(Q.cacheKey=t.onCacheKey(w)),S.currentType!==13&&r(C,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,w[S.offset]||""),i(Q,C.currentOffset(),C.currentPosition()),Q}return{parse:y}}function ni(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function BN(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Y0(t,e){for(let n=0;n<t.length;n++)Qp(t[n],e)}function Qp(t,e){switch(t.type){case 1:Y0(t.cases,e),e.helper("plural");break;case 2:Y0(t.items,e);break;case 6:{Qp(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function yN(t,e={}){const n=BN(t);n.helper("normalize"),t.body&&Qp(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function CN(t){const e=t.body;return e.type===2?q0(e):e.cases.forEach(n=>q0(n)),t}function q0(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=xp(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const bN="minifier";function oa(t){switch(t.t=t.type,t.type){case 0:{const e=t;oa(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)oa(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)oa(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;oa(e.key),e.k=e.key,delete e.key,e.modifier&&(oa(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw ia(et.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:bN,args:[t.type]})}delete t.type}const EN="parser";function kN(t,e){const{filename:n,breakLineCode:r,needIndent:A}=e,i=e.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:A,indentLevel:0};i&&t.loc&&(o.source=t.loc.source);const a=()=>o;function l(B,y){o.code+=B}function u(B,y=!0){const w=y?r:"";l(A?w+" ".repeat(B):w)}function d(B=!0){const y=++o.indentLevel;B&&u(y)}function h(B=!0){const y=--o.indentLevel;B&&u(y)}function p(){u(o.indentLevel)}return{context:a,push:l,indent:d,deindent:h,newline:p,helper:B=>`_${B}`,needIndent:()=>o.needIndent}}function SN(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),sa(t,e.key),e.modifier?(t.push(", "),sa(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function xN(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const A=e.items.length;for(let i=0;i<A&&(sa(t,e.items[i]),i!==A-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function FN(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const A=e.cases.length;for(let i=0;i<A&&(sa(t,e.cases[i]),i!==A-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function QN(t,e){e.body?sa(t,e.body):t.push("null")}function sa(t,e){const{helper:n}=t;switch(e.type){case 0:QN(t,e);break;case 1:FN(t,e);break;case 2:xN(t,e);break;case 6:SN(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw ia(et.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:EN,args:[e.type]})}}const TN=(t,e={})=>{const n=Le(e.mode)?e.mode:"normal",r=Le(e.filename)?e.filename:"message.intl";e.sourceMap;const A=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
5
5
|
`,i=e.needIndent?e.needIndent:n!=="arrow",o=t.helpers||[],a=kN(t,{filename:r,breakLineCode:A,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${xp(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),sa(a,t),a.deindent(i),a.push("}"),delete t.helpers;const{code:l,map:u}=a.context();return{ast:t,code:l,map:u?u.toJSON():void 0}};function MN(t,e={}){const n=_n({},e),r=!!n.jit,A=!!n.minify,i=n.optimize==null?!0:n.optimize,a=wN(n).parse(t);return r?(i&&CN(a),A&&oa(a),{ast:a,code:""}):(yN(a,n),TN(a,n))}function IN(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(as().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(as().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function QA(t){return kt(t)&&Tp(t)===0&&(FA(t,"b")||FA(t,"body"))}const X0=["b","body"];function UN(t){return oo(t,X0)}const J0=["c","cases"];function _N(t){return oo(t,J0,[])}const j0=["s","static"];function DN(t){return oo(t,j0)}const Z0=["i","items"];function ON(t){return oo(t,Z0,[])}const V0=["t","type"];function Tp(t){return oo(t,V0)}const ey=["v","value"];function Bu(t,e){const n=oo(t,ey);if(n!=null)return n;throw yl(e)}const ty=["m","modifier"];function NN(t){return oo(t,ty)}const ny=["k","key"];function LN(t){const e=oo(t,ny);if(e)return e;throw yl(6)}function oo(t,e,n){for(let r=0;r<e.length;r++){const A=e[r];if(FA(t,A)&&t[A]!=null)return t[A]}return n}const ry=[...X0,...J0,...j0,...Z0,...ny,...ty,...ey,...V0];function yl(t){return new Error(`unhandled node type: ${t}`)}function Mp(t){return n=>RN(n,t)}function RN(t,e){const n=UN(e);if(n==null)throw yl(0);if(Tp(n)===1){const i=_N(n);return t.plural(i.reduce((o,a)=>[...o,Ay(t,a)],[]))}else return Ay(t,n)}function Ay(t,e){const n=DN(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=ON(e).reduce((A,i)=>[...A,Ip(t,i)],[]);return t.normalize(r)}}function Ip(t,e){const n=Tp(e);switch(n){case 3:return Bu(e,n);case 9:return Bu(e,n);case 4:{const r=e;if(FA(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(FA(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw yl(n)}case 5:{const r=e;if(FA(r,"i")&&Un(r.i))return t.interpolate(t.list(r.i));if(FA(r,"index")&&Un(r.index))return t.interpolate(t.list(r.index));throw yl(n)}case 6:{const r=e,A=NN(r),i=LN(r);return t.linked(Ip(t,i),A?Ip(t,A):void 0,t.type)}case 7:return Bu(e,n);case 8:return Bu(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const HN="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function PN(t,e){e&&aN(t)&&ei(pu(HN,{source:t}))}const $N=t=>t;let yu=Lt();function KN(t,e={}){let n=!1;const r=e.onError||oN;return e.onError=A=>{n=!0,r(A)},{...MN(t,e),detectError:n}}function zN(t,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Le(t)){const n=hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&PN(t,n);const A=(e.onCacheKey||$N)(t),i=yu[A];if(i)return i;const{ast:o,detectError:a}=KN(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),l=Mp(o);return a?l:yu[A]=l}else{if(process.env.NODE_ENV!=="production"&&!QA(t))return ei(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),(()=>t);const n=t.cacheKey;if(n){const r=yu[n];return r||(yu[n]=Mp(t))}else return Mp(t)}}let Cl=null;function WN(t){Cl=t}function GN(t,e,n){Cl&&Cl.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const YN=qN("function:translate");function qN(t){return e=>Cl&&Cl.emit(t,e)}const Vn={INVALID_ARGUMENT:AN,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},XN=24;function xi(t){return ia(t,null,process.env.NODE_ENV!=="production"?{messages:JN}:void 0)}const JN={[Vn.INVALID_ARGUMENT]:"Invalid arguments",[Vn.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Vn.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Vn.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Vn.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Vn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Vn.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Up(t,e){return e.locale!=null?iy(e.locale):iy(t.locale)}let _p;function iy(t){if(Le(t))return t;if(Xt(t)){if(t.resolvedOnce&&_p!=null)return _p;if(t.constructor.name==="Function"){const e=t();if(VO(e))throw xi(Vn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _p=e}else throw xi(Vn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw xi(Vn.NOT_SUPPORT_LOCALE_TYPE)}function jN(t,e,n){return[...new Set([n,...fn(e)?e:kt(e)?Object.keys(e):Le(e)?[e]:[n]])]}function oy(t,e,n){const r=Le(n)?n:bu,A=t;A.__localeChainCache||(A.__localeChainCache=new Map);let i=A.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;fn(o);)o=sy(i,o,e);const a=fn(e)||!St(e)?e:e.default?e.default:null;o=Le(a)?[a]:a,fn(o)&&sy(i,o,!1),A.__localeChainCache.set(r,i)}return i}function sy(t,e,n){let r=!0;for(let A=0;A<e.length&&hn(r);A++){const i=e[A];Le(i)&&(r=ZN(t,e[A],n))}return r}function ZN(t,e,n){let r;const A=e.split("-");do{const i=A.join("-");r=VN(t,i,n),A.splice(-1,1)}while(A.length&&r===!0);return r}function VN(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const A=e.replace(/!/g,"");t.push(A),(fn(n)||St(n))&&n[A]&&(r=n[A])}return r}const so=[];so[0]={w:[0],i:[3,0],"[":[4],o:[7]},so[1]={w:[1],".":[2],"[":[4],o:[7]},so[2]={w:[2],i:[3,0],0:[3,0]},so[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},so[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},so[5]={"'":[4,0],o:8,l:[5,0]},so[6]={'"':[4,0],o:8,l:[6,0]};const eL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function tL(t){return eL.test(t)}function nL(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function rL(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function AL(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:tL(e)?nL(e):"*"+e}function iL(t){const e=[];let n=-1,r=0,A=0,i,o,a,l,u,d,h;const p=[];p[0]=()=>{o===void 0?o=a:o+=a},p[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},p[2]=()=>{p[0](),A++},p[3]=()=>{if(A>0)A--,r=4,p[0]();else{if(A=0,o===void 0||(o=AL(o),o===!1))return!1;p[1]()}};function m(){const v=t[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,a="\\"+v,p[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&m())){if(l=rL(i),h=so[r],u=h[l]||h.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=p[u[1]],d&&(a=i,d()===!1))))return;if(r===7)return e}}const ay=new Map;function oL(t,e){return kt(t)?t[e]:null}function sL(t,e){if(!kt(t))return null;let n=ay.get(e);if(n||(n=iL(e),n&&ay.set(e,n)),!n)return null;const r=n.length;let A=t,i=0;for(;i<r;){const o=n[i];if(ry.includes(o)&&QA(A))return null;const a=A[o];if(a===void 0||Xt(A))return null;A=a,i++}return A}const br={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},aL=8,lL={[br.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[br.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[br.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[br.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[br.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[br.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[br.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function ls(t,...e){return pu(lL[t],...e)}const cL="11.2.8",Cu=-1,bu="en-US",Eu="",ly=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function uL(){return{upper:(t,e)=>e==="text"&&Le(t)?t.toUpperCase():e==="vnode"&&kt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Le(t)?t.toLowerCase():e==="vnode"&&kt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Le(t)?ly(t):e==="vnode"&&kt(t)&&"__v_isVNode"in t?ly(t.children):t}}let cy;function dL(t){cy=t}let uy;function fL(t){uy=t}let dy;function hL(t){dy=t}let fy=null;const pL=t=>{fy=t},mL=()=>fy;let hy=null;const py=t=>{hy=t},gL=()=>hy;let my=0;function vL(t={}){const e=Xt(t.onWarn)?t.onWarn:ei,n=Le(t.version)?t.version:cL,r=Le(t.locale)||Xt(t.locale)?t.locale:bu,A=Xt(r)?bu:r,i=fn(t.fallbackLocale)||St(t.fallbackLocale)||Le(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:A,o=St(t.messages)?t.messages:Dp(A),a=St(t.datetimeFormats)?t.datetimeFormats:Dp(A),l=St(t.numberFormats)?t.numberFormats:Dp(A),u=_n(Lt(),t.modifiers,uL()),d=t.pluralRules||Lt(),h=Xt(t.missing)?t.missing:null,p=hn(t.missingWarn)||mu(t.missingWarn)?t.missingWarn:!0,m=hn(t.fallbackWarn)||mu(t.fallbackWarn)?t.fallbackWarn:!0,v=!!t.fallbackFormat,B=!!t.unresolving,y=Xt(t.postTranslation)?t.postTranslation:null,w=St(t.processor)?t.processor:null,C=hn(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,Q=Xt(t.messageCompiler)?t.messageCompiler:cy;process.env.NODE_ENV!=="production"&&Xt(t.messageCompiler)&&WO(ls(br.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=Xt(t.messageResolver)?t.messageResolver:uy||oL,D=Xt(t.localeFallbacker)?t.localeFallbacker:dy||jN,I=kt(t.fallbackContext)?t.fallbackContext:void 0,$=t,Y=kt($.__datetimeFormatters)?$.__datetimeFormatters:new Map,de=kt($.__numberFormatters)?$.__numberFormatters:new Map,ge=kt($.__meta)?$.__meta:{};my++;const me={version:n,cid:my,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:d,missing:h,missingWarn:p,fallbackWarn:m,fallbackFormat:v,unresolving:B,postTranslation:y,processor:w,warnHtmlMessage:C,escapeParameter:S,messageCompiler:Q,messageResolver:_,localeFallbacker:D,fallbackContext:I,onWarn:e,__meta:ge};return me.datetimeFormats=a,me.numberFormats=l,me.__datetimeFormatters=Y,me.__numberFormatters=de,process.env.NODE_ENV!=="production"&&(me.__v_emitter=$.__v_emitter!=null?$.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&GN(me,n,ge),me}const Dp=t=>({[t]:Lt()});function ku(t,e){return t instanceof RegExp?t.test(e):t}function gy(t,e){return t instanceof RegExp?t.test(e):t}function Op(t,e,n,r,A){const{missing:i,onWarn:o}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:n,key:e,type:A,groupId:`${A}:${e}`})}if(i!==null){const a=i(t,n,e,A);return Le(a)?a:e}else return process.env.NODE_ENV!=="production"&&gy(r,e)&&o(ls(br.NOT_FOUND_KEY,{key:e,locale:n})),e}function bl(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function vy(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function wL(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(vy(t,e[r]))return!0;return!1}const wy=typeof Intl<"u",By={dateTimeFormat:wy&&typeof Intl.DateTimeFormat<"u",numberFormat:wy&&typeof Intl.NumberFormat<"u"};function yy(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:A,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!By.dateTimeFormat)return i(ls(br.CANNOT_FORMAT_DATE)),Eu;const[l,u,d,h]=Np(...e),p=hn(d.missingWarn)?d.missingWarn:t.missingWarn,m=hn(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,v=!!d.part,B=Up(t,d),y=o(t,A,B);if(!Le(l)||l==="")return new Intl.DateTimeFormat(B,h).format(u);let w={},C,S=null,Q=B,_=null;const D="datetime format";for(let Y=0;Y<y.length;Y++){if(C=_=y[Y],process.env.NODE_ENV!=="production"&&B!==C&&ku(m,l)&&i(ls(br.FALLBACK_TO_DATE_FORMAT,{key:l,target:C})),process.env.NODE_ENV!=="production"&&B!==C){const de=t.__v_emitter;de&&de.emit("fallback",{type:D,key:l,from:Q,to:_,groupId:`${D}:${l}`})}if(w=n[C]||{},S=w[l],St(S))break;Op(t,l,C,p,D),Q=_}if(!St(S)||!Le(C))return r?Cu:l;let I=`${C}__${l}`;gu(h)||(I=`${I}__${JSON.stringify(h)}`);let $=a.get(I);return $||($=new Intl.DateTimeFormat(C,_n({},S,h)),a.set(I,$)),v?$.formatToParts(u):$.format(u)}const Cy=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Np(...t){const[e,n,r,A]=t,i=Lt();let o=Lt(),a;if(Le(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw xi(Vn.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw xi(Vn.INVALID_ISO_DATE_ARGUMENT)}}else if(XO(e)){if(isNaN(e.getTime()))throw xi(Vn.INVALID_DATE_ARGUMENT);a=e}else if(Un(e))a=e;else throw xi(Vn.INVALID_ARGUMENT);return Le(n)?i.key=n:St(n)&&Object.keys(n).forEach(l=>{Cy.includes(l)?o[l]=n[l]:i[l]=n[l]}),Le(r)?i.locale=r:St(r)&&(o=r),St(A)&&(o=A),[i.key||"",a,i,o]}function by(t,e,n){const r=t;for(const A in n){const i=`${e}__${A}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Ey(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:A,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!By.numberFormat)return i(ls(br.CANNOT_FORMAT_NUMBER)),Eu;const[l,u,d,h]=Lp(...e),p=hn(d.missingWarn)?d.missingWarn:t.missingWarn,m=hn(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,v=!!d.part,B=Up(t,d),y=o(t,A,B);if(!Le(l)||l==="")return new Intl.NumberFormat(B,h).format(u);let w={},C,S=null,Q=B,_=null;const D="number format";for(let Y=0;Y<y.length;Y++){if(C=_=y[Y],process.env.NODE_ENV!=="production"&&B!==C&&ku(m,l)&&i(ls(br.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:C})),process.env.NODE_ENV!=="production"&&B!==C){const de=t.__v_emitter;de&&de.emit("fallback",{type:D,key:l,from:Q,to:_,groupId:`${D}:${l}`})}if(w=n[C]||{},S=w[l],St(S))break;Op(t,l,C,p,D),Q=_}if(!St(S)||!Le(C))return r?Cu:l;let I=`${C}__${l}`;gu(h)||(I=`${I}__${JSON.stringify(h)}`);let $=a.get(I);return $||($=new Intl.NumberFormat(C,_n({},S,h)),a.set(I,$)),v?$.formatToParts(u):$.format(u)}const ky=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Lp(...t){const[e,n,r,A]=t,i=Lt();let o=Lt();if(!Un(e))throw xi(Vn.INVALID_ARGUMENT);const a=e;return Le(n)?i.key=n:St(n)&&Object.keys(n).forEach(l=>{ky.includes(l)?o[l]=n[l]:i[l]=n[l]}),Le(r)?i.locale=r:St(r)&&(o=r),St(A)&&(o=A),[i.key||"",a,i,o]}function Sy(t,e,n){const r=t;for(const A in n){const i=`${e}__${A}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const BL=t=>t,yL=t=>"",CL="text",bL=t=>t.length===0?"":xp(t),EL=eN;function xy(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function kL(t){const e=Un(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Un(t.named.count)||Un(t.named.n))?Un(t.named.count)?t.named.count:Un(t.named.n)?t.named.n:e:e}function SL(t,e){e.count||(e.count=t),e.n||(e.n=t)}function xL(t={}){const e=t.locale,n=kL(t),r=kt(t.pluralRules)&&Le(e)&&Xt(t.pluralRules[e])?t.pluralRules[e]:xy,A=kt(t.pluralRules)&&Le(e)&&Xt(t.pluralRules[e])?xy:void 0,i=w=>w[r(n,w.length,A)],o=t.list||[],a=w=>o[w],l=t.named||Lt();Un(t.pluralIndex)&&SL(n,l);const u=w=>l[w];function d(w,C){const S=Xt(t.messages)?t.messages(w,!!C):kt(t.messages)?t.messages[w]:!1;return S||(t.parent?t.parent.message(w):yL)}const h=w=>t.modifiers?t.modifiers[w]:BL,p=St(t.processor)&&Xt(t.processor.normalize)?t.processor.normalize:bL,m=St(t.processor)&&Xt(t.processor.interpolate)?t.processor.interpolate:EL,v=St(t.processor)&&Le(t.processor.type)?t.processor.type:CL,y={list:a,named:u,plural:i,linked:(w,...C)=>{const[S,Q]=C;let _="text",D="";C.length===1?kt(S)?(D=S.modifier||D,_=S.type||_):Le(S)&&(D=S||D):C.length===2&&(Le(S)&&(D=S||D),Le(Q)&&(_=Q||_));const I=d(w,!0)(y),$=_==="vnode"&&fn(I)&&D?I[0]:I;return D?h(D)($,_):$},message:d,type:v,interpolate:m,normalize:p,values:_n(Lt(),o,l)};return y}const Fy=()=>"",Vr=t=>Xt(t);function Qy(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:A,messageCompiler:i,fallbackLocale:o,messages:a}=t,[l,u]=Rp(...e),d=hn(u.missingWarn)?u.missingWarn:t.missingWarn,h=hn(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,p=hn(u.escapeParameter)?u.escapeParameter:t.escapeParameter,m=!!u.resolvedMessage,v=Le(u.default)||hn(u.default)?hn(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,B=n||v!=null&&(Le(v)||Xt(v)),y=Up(t,u);p&&FL(u);let[w,C,S]=m?[l,y,a[y]||Lt()]:Ty(t,l,y,o,h,d),Q=w,_=l;if(!m&&!(Le(Q)||QA(Q)||Vr(Q))&&B&&(Q=v,_=Q),!m&&(!(Le(Q)||QA(Q)||Vr(Q))||!Le(C)))return A?Cu:l;if(process.env.NODE_ENV!=="production"&&Le(Q)&&t.messageCompiler==null)return ei(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let D=!1;const I=()=>{D=!0},$=Vr(Q)?Q:My(t,l,C,Q,_,I);if(D)return Q;const Y=IL(t,C,S,u),de=xL(Y),ge=QL(t,$,de);let me=r?r(ge,l):ge;if(p&&Le(me)&&(me=jO(me)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const we={timestamp:Date.now(),key:Le(l)?l:Vr(Q)?Q.key:"",locale:C||(Vr(Q)?Q.locale:""),format:Le(Q)?Q:Vr(Q)?Q.source:"",message:me};we.meta=_n({},t.__meta,mL()||{}),YN(we)}return me}function FL(t){fn(t.list)?t.list=t.list.map(e=>Le(e)?$0(e):e):kt(t.named)&&Object.keys(t.named).forEach(e=>{Le(t.named[e])&&(t.named[e]=$0(t.named[e]))})}function Ty(t,e,n,r,A,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=t,d=u(t,r,n);let h=Lt(),p,m=null,v=n,B=null;const y="translate";for(let w=0;w<d.length;w++){if(p=B=d[w],process.env.NODE_ENV!=="production"&&n!==p&&!vy(n,p)&&ku(A,e)&&a(ls(br.FALLBACK_TO_TRANSLATE,{key:e,target:p})),process.env.NODE_ENV!=="production"&&n!==p){const _=t.__v_emitter;_&&_.emit("fallback",{type:y,key:e,from:v,to:B,groupId:`${y}:${e}`})}h=o[p]||Lt();let C=null,S,Q;if(process.env.NODE_ENV!=="production"&&Ei&&(C=window.performance.now(),S="intlify-message-resolve-start",Q="intlify-message-resolve-end",Or&&Or(S)),(m=l(h,e))===null&&(m=h[e]),process.env.NODE_ENV!=="production"&&Ei){const _=window.performance.now(),D=t.__v_emitter;D&&C&&m&&D.emit("message-resolve",{type:"message-resolve",key:e,message:m,time:_-C,groupId:`${y}:${e}`}),S&&Q&&Or&&ss&&(Or(Q),ss("intlify message resolve",S,Q))}if(Le(m)||QA(m)||Vr(m))break;if(!wL(p,d)){const _=Op(t,e,p,i,y);_!==e&&(m=_)}v=B}return[m,p,h]}function My(t,e,n,r,A,i){const{messageCompiler:o,warnHtmlMessage:a}=t;if(Vr(r)){const p=r;return p.locale=p.locale||n,p.key=p.key||e,p}if(o==null){const p=(()=>r);return p.locale=n,p.key=e,p}let l=null,u,d;process.env.NODE_ENV!=="production"&&Ei&&(l=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Or&&Or(u));const h=o(r,TL(t,n,A,r,a,i));if(process.env.NODE_ENV!=="production"&&Ei){const p=window.performance.now(),m=t.__v_emitter;m&&l&&m.emit("message-compilation",{type:"message-compilation",message:r,time:p-l,groupId:`translate:${e}`}),u&&d&&Or&&ss&&(Or(d),ss("intlify message compilation",u,d))}return h.locale=n,h.key=e,h.source=r,h}function QL(t,e,n){let r=null,A,i;process.env.NODE_ENV!=="production"&&Ei&&(r=window.performance.now(),A="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Or&&Or(A));const o=e(n);if(process.env.NODE_ENV!=="production"&&Ei){const a=window.performance.now(),l=t.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:o,time:a-r,groupId:`translate:${e.key}`}),A&&i&&Or&&ss&&(Or(i),ss("intlify message evaluation",A,i))}return o}function Rp(...t){const[e,n,r]=t,A=Lt();if(!Le(e)&&!Un(e)&&!Vr(e)&&!QA(e))throw xi(Vn.INVALID_ARGUMENT);const i=Un(e)?String(e):(Vr(e),e);return Un(n)?A.plural=n:Le(n)?A.default=n:St(n)&&!gu(n)?A.named=n:fn(n)&&(A.list=n),Un(r)?A.plural=r:Le(r)?A.default=r:St(r)&&_n(A,r),[i,A]}function TL(t,e,n,r,A,i){return{locale:e,key:n,warnHtmlMessage:A,onError:o=>{if(i&&i(o),process.env.NODE_ENV!=="production"){const a=ML(r),l=`Message compilation error: ${o.message}`,u=o.location&&a&&tN(a,o.location.start.offset,o.location.end.offset),d=t.__v_emitter;d&&a&&d.emit("compile-error",{message:a,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(u?`${l}
|
|
6
6
|
${u}`:l)}else throw o},onCacheKey:o=>YO(e,n,o)}}function ML(t){if(Le(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function IL(t,e,n,r){const{modifiers:A,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:d}=t,p={locale:e,modifiers:A,pluralRules:i,messages:(m,v)=>{let B=o(n,m);if(B==null&&(d||v)){const[,,y]=Ty(d||t,m,e,a,l,u);B=o(y,m)}if(Le(B)||QA(B)){let y=!1;const C=My(t,m,e,B,m,()=>{y=!0});return y?Fy:C}else return Vr(B)?B:Fy}};return t.processor&&(p.processor=t.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Un(r.plural)&&(p.pluralIndex=r.plural),p}IN();const UL="11.2.8";function _L(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(as().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(as().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(as().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(as().__INTLIFY_PROD_DEVTOOLS__=!1)}const Pn={UNEXPECTED_RETURN_TYPE:XN,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function El(t,...e){return ia(t,null,process.env.NODE_ENV!=="production"?{messages:DL,args:e}:void 0)}const DL={[Pn.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Pn.INVALID_ARGUMENT]:"Invalid argument",[Pn.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Pn.NOT_INSTALLED]:"Need to install with `app.use` function",[Pn.UNEXPECTED_ERROR]:"Unexpected error",[Pn.REQUIRED_VALUE]:"Required in value: {0}",[Pn.INVALID_VALUE]:"Invalid value",[Pn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Pn.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Pn.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Pn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Hp=ki("__translateVNode"),Pp=ki("__datetimeParts"),$p=ki("__numberParts"),Kp=ki("__enableEmitter"),zp=ki("__disableEmitter"),OL=ki("__setPluralRules"),Iy=ki("__injectWithOption"),Wp=ki("__dispose"),ri={FALLBACK_TO_ROOT:aL,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},NL={[ri.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ri.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ri.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ri.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
7
7
|
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[ri.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[ri.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Su(t,...e){return pu(NL[t],...e)}function kl(t){if(!kt(t)||QA(t))return t;for(const e in t)if(FA(t,e))if(!e.includes("."))kt(t[e])&&kl(t[e]);else{const n=e.split("."),r=n.length-1;let A=t,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in A||(A[n[o]]=Lt()),!kt(A[n[o]])){process.env.NODE_ENV!=="production"&&ei(Su(ri.IGNORE_OBJ_FLATTEN,{key:n[o]})),i=!0;break}A=A[n[o]]}if(i||(QA(A)?ry.includes(n[r])||delete t[e]:(A[n[r]]=t[e],delete t[e])),!QA(A)){const o=A[n[r]];kt(o)&&kl(o)}}return t}function Uy(t,e){const{messages:n,__i18n:r,messageResolver:A,flatJson:i}=e,o=St(n)?n:fn(r)?Lt():{[t]:Lt()};if(fn(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||Lt(),wu(u,o[l])):wu(u,o)}else Le(a)&&wu(JSON.parse(a),o)}),A==null&&i)for(const a in o)FA(o,a)&&kl(o[a]);return o}function _y(t){return t.type}function LL(t,e,n){let r=kt(e.messages)?e.messages:Lt();"__i18nGlobal"in n&&(r=Uy(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const A=Object.keys(r);A.length&&A.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(kt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(kt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Dy(t){return s.createVNode(s.Text,null,t,0)}function Gp(){const t="currentInstance";return t in zh?zh[t]:zh.getCurrentInstance()}const Oy="__INTLIFY_META__",Ny=()=>[],RL=()=>!1;let Ly=0;function Ry(t){return((e,n,r,A)=>t(n,r,Gp()||void 0,A))}const HL=()=>{const t=Gp();let e=null;return t&&(e=_y(t)[Oy])?{[Oy]:e}:null};function PL(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,A=t.flatJson,i=Ei?s.ref:s.shallowRef;let o=hn(t.inheritLocale)?t.inheritLocale:!0;const a=i(e&&o?e.locale.value:Le(t.locale)?t.locale:bu),l=i(e&&o?e.fallbackLocale.value:Le(t.fallbackLocale)||fn(t.fallbackLocale)||St(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=i(Uy(a.value,t)),d=i(St(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=i(St(t.numberFormats)?t.numberFormats:{[a.value]:{}});let p=e?e.missingWarn:hn(t.missingWarn)||mu(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:hn(t.fallbackWarn)||mu(t.fallbackWarn)?t.fallbackWarn:!0,v=e?e.fallbackRoot:hn(t.fallbackRoot)?t.fallbackRoot:!0,B=!!t.fallbackFormat,y=Xt(t.missing)?t.missing:null,w=Xt(t.missing)?Ry(t.missing):null,C=Xt(t.postTranslation)?t.postTranslation:null,S=e?e.warnHtmlMessage:hn(t.warnHtmlMessage)?t.warnHtmlMessage:!0,Q=!!t.escapeParameter;const _=e?e.modifiers:St(t.modifiers)?t.modifiers:{};let D=t.pluralRules||e&&e.pluralRules,I;I=(()=>{r&&py(null);const ae={version:UL,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:_,pluralRules:D,missing:w===null?void 0:w,missingWarn:p,fallbackWarn:m,fallbackFormat:B,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:S,escapeParameter:Q,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ae.datetimeFormats=d.value,ae.numberFormats=h.value,ae.__datetimeFormatters=St(I)?I.__datetimeFormatters:void 0,ae.__numberFormatters=St(I)?I.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ae.__v_emitter=St(I)?I.__v_emitter:void 0);const he=vL(ae);return r&&py(he),he})(),bl(I,a.value,l.value);function Y(){return[a.value,l.value,u.value,d.value,h.value]}const de=s.computed({get:()=>a.value,set:ae=>{I.locale=ae,a.value=ae}}),ge=s.computed({get:()=>l.value,set:ae=>{I.fallbackLocale=ae,l.value=ae,bl(I,a.value,ae)}}),me=s.computed(()=>u.value),we=s.computed(()=>d.value),te=s.computed(()=>h.value);function V(){return Xt(C)?C:null}function q(ae){C=ae,I.postTranslation=ae}function x(){return y}function T(ae){ae!==null&&(w=Ry(ae)),y=ae,I.missing=w}function P(ae,he){return ae!=="translate"||!he.resolvedMessage}const F=(ae,he,xe,Pe,ot,$e)=>{Y();let ht;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(I.fallbackContext=e?gL():void 0),ht=ae(I)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(I.fallbackContext=void 0)}if(xe!=="translate exists"&&Un(ht)&&ht===Cu||xe==="translate exists"&&!ht){const[wt,Et]=he();if(process.env.NODE_ENV!=="production"&&e&&Le(wt)&&P(xe,Et)&&(v&&(ku(m,wt)||gy(p,wt))&&ei(Su(ri.FALLBACK_TO_ROOT,{key:wt,type:xe})),process.env.NODE_ENV!=="production")){const{__v_emitter:En}=I;En&&v&&En.emit("fallback",{type:xe,key:wt,to:"global",groupId:`${xe}:${wt}`})}return e&&v?Pe(e):ot(wt)}else{if($e(ht))return ht;throw El(Pn.UNEXPECTED_RETURN_TYPE)}};function E(...ae){return F(he=>Reflect.apply(Qy,null,[he,...ae]),()=>Rp(...ae),"translate",he=>Reflect.apply(he.t,he,[...ae]),he=>he,he=>Le(he))}function W(...ae){const[he,xe,Pe]=ae;if(Pe&&!kt(Pe))throw El(Pn.INVALID_ARGUMENT);return E(he,xe,_n({resolvedMessage:!0},Pe||{}))}function ne(...ae){return F(he=>Reflect.apply(yy,null,[he,...ae]),()=>Np(...ae),"datetime format",he=>Reflect.apply(he.d,he,[...ae]),()=>Eu,he=>Le(he)||fn(he))}function X(...ae){return F(he=>Reflect.apply(Ey,null,[he,...ae]),()=>Lp(...ae),"number format",he=>Reflect.apply(he.n,he,[...ae]),()=>Eu,he=>Le(he)||fn(he))}function re(ae){return ae.map(he=>Le(he)||Un(he)||hn(he)?Dy(String(he)):he)}const pe={normalize:re,interpolate:ae=>ae,type:"vnode"};function le(...ae){return F(he=>{let xe;const Pe=he;try{Pe.processor=pe,xe=Reflect.apply(Qy,null,[Pe,...ae])}finally{Pe.processor=null}return xe},()=>Rp(...ae),"translate",he=>he[Hp](...ae),he=>[Dy(he)],he=>fn(he))}function Ce(...ae){return F(he=>Reflect.apply(Ey,null,[he,...ae]),()=>Lp(...ae),"number format",he=>he[$p](...ae),Ny,he=>Le(he)||fn(he))}function G(...ae){return F(he=>Reflect.apply(yy,null,[he,...ae]),()=>Np(...ae),"datetime format",he=>he[Pp](...ae),Ny,he=>Le(he)||fn(he))}function ee(ae){D=ae,I.pluralRules=D}function K(ae,he){return F(()=>{if(!ae)return!1;const xe=Le(he)?he:a.value,Pe=J(xe),ot=I.messageResolver(Pe,ae);return QA(ot)||Vr(ot)||Le(ot)},()=>[ae],"translate exists",xe=>Reflect.apply(xe.te,xe,[ae,he]),RL,xe=>hn(xe))}function N(ae){let he=null;const xe=oy(I,l.value,a.value);for(let Pe=0;Pe<xe.length;Pe++){const ot=u.value[xe[Pe]]||{},$e=I.messageResolver(ot,ae);if($e!=null){he=$e;break}}return he}function R(ae){const he=N(ae);return he??(e?e.tm(ae)||{}:{})}function J(ae){return u.value[ae]||{}}function z(ae,he){if(A){const xe={[ae]:he};for(const Pe in xe)FA(xe,Pe)&&kl(xe[Pe]);he=xe[ae]}u.value[ae]=he,I.messages=u.value}function ce(ae,he){u.value[ae]=u.value[ae]||{};const xe={[ae]:he};if(A)for(const Pe in xe)FA(xe,Pe)&&kl(xe[Pe]);he=xe[ae],wu(he,u.value[ae]),I.messages=u.value}function k(ae){return d.value[ae]||{}}function U(ae,he){d.value[ae]=he,I.datetimeFormats=d.value,by(I,ae,he)}function O(ae,he){d.value[ae]=_n(d.value[ae]||{},he),I.datetimeFormats=d.value,by(I,ae,he)}function se(ae){return h.value[ae]||{}}function j(ae,he){h.value[ae]=he,I.numberFormats=h.value,Sy(I,ae,he)}function be(ae,he){h.value[ae]=_n(h.value[ae]||{},he),I.numberFormats=h.value,Sy(I,ae,he)}Ly++,e&&Ei&&(s.watch(e.locale,ae=>{o&&(a.value=ae,I.locale=ae,bl(I,a.value,l.value))}),s.watch(e.fallbackLocale,ae=>{o&&(l.value=ae,I.fallbackLocale=ae,bl(I,a.value,l.value))}));const Be={id:Ly,locale:de,fallbackLocale:ge,get inheritLocale(){return o},set inheritLocale(ae){o=ae,ae&&e&&(a.value=e.locale.value,l.value=e.fallbackLocale.value,bl(I,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:me,get modifiers(){return _},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(ae){p=ae,I.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(ae){m=ae,I.fallbackWarn=m},get fallbackRoot(){return v},set fallbackRoot(ae){v=ae},get fallbackFormat(){return B},set fallbackFormat(ae){B=ae,I.fallbackFormat=B},get warnHtmlMessage(){return S},set warnHtmlMessage(ae){S=ae,I.warnHtmlMessage=ae},get escapeParameter(){return Q},set escapeParameter(ae){Q=ae,I.escapeParameter=ae},t:E,getLocaleMessage:J,setLocaleMessage:z,mergeLocaleMessage:ce,getPostTranslationHandler:V,setPostTranslationHandler:q,getMissingHandler:x,setMissingHandler:T,[OL]:ee};return Be.datetimeFormats=we,Be.numberFormats=te,Be.rt=W,Be.te=K,Be.tm=R,Be.d=ne,Be.n=X,Be.getDateTimeFormat=k,Be.setDateTimeFormat=U,Be.mergeDateTimeFormat=O,Be.getNumberFormat=se,Be.setNumberFormat=j,Be.mergeNumberFormat=be,Be[Iy]=n,Be[Hp]=le,Be[Pp]=G,Be[$p]=Ce,process.env.NODE_ENV!=="production"&&(Be[Kp]=ae=>{I.__v_emitter=ae},Be[zp]=()=>{I.__v_emitter=void 0}),Be}function Hy(t,e){}const Yp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function $L({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,A)=>[...r,...A.type===s.Fragment?A.children:[A]],[]):e.reduce((n,r)=>{const A=t[r];return A&&(n[r]=A()),n},Lt())}function Py(){return s.Fragment}_n({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Un(t)||!isNaN(t)}},Yp);function KL(t){return fn(t)&&!Le(t[0])}function $y(t,e,n,r){const{slots:A,attrs:i}=e;return()=>{const o={part:!0};let a=Lt();t.locale&&(o.locale=t.locale),Le(t.format)?o.key=t.format:kt(t.format)&&(Le(t.format.key)&&(o.key=t.format.key),a=Object.keys(t.format).reduce((p,m)=>n.includes(m)?_n(Lt(),p,{[m]:t.format[m]}):p,Lt()));const l=r(t.value,o,a);let u=[o.key];fn(l)?u=l.map((p,m)=>{const v=A[p.type],B=v?v({[p.type]:p.value,index:m,parts:l}):[p.value];return KL(B)&&(B[0].key=`${p.type}-${m}`),B}):Le(l)&&(u=[l]);const d=_n(Lt(),i),h=Le(t.tag)||kt(t.tag)?t.tag:Py();return s.h(h,d,u)}}_n({value:{type:Number,required:!0},format:{type:[String,Object]}},Yp);const zL=ki("global-vue-i18n");function Sl(t={}){const e=Gp();if(e==null)throw El(Pn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw El(Pn.NOT_INSTALLED);const n=WL(e),r=YL(n),A=_y(e),i=GL(t,A);if(i==="global")return LL(r,t,A),r;if(i==="parent"){let l=qL(n,e,t.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&ei(Su(ri.NOT_FOUND_PARENT_SCOPE)),l=r),l}const o=n;let a=o.__getInstance(e);if(a==null){const l=_n({},t);"__i18n"in A&&(l.__i18n=A.__i18n),r&&(l.__root=r),a=PL(l),o.__composerExtend&&(a[Wp]=o.__composerExtend(a)),JL(o,e,a),o.__setInstance(e,a)}else process.env.NODE_ENV!=="production"&&i==="local"&&ei(Su(ri.DUPLICATE_USE_I18N_CALLING));return a}function WL(t){const e=s.inject(t.isCE?zL:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw El(t.isCE?Pn.NOT_INSTALLED_WITH_PROVIDE:Pn.UNEXPECTED_ERROR);return e}function GL(t,e){return gu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function YL(t){return t.mode==="composition"?t.global:t.global.__composer}function qL(t,e,n=!1){let r=null;const A=e.root;let i=XL(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[Iy]&&(r=null))}if(r!=null||A===i)break;i=i.parent}return r}function XL(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function JL(t,e,n){let r=null;s.onMounted(()=>{if(process.env.NODE_ENV!=="production"){e.__VUE_I18N__=n,r=nN();const A=n;A[Kp]&&A[Kp](r),r.on("*",Hy)}},e),s.onUnmounted(()=>{const A=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Hy),A[zp]&&A[zp](),delete e.__VUE_I18N__),t.__deleteInstance(e);const i=A[Wp];i&&(i(),delete A[Wp])},e)}if(_n({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Yp),_L(),dL(zN),fL(sL),hL(oy),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=as();t.__INTLIFY__=!0,WN(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Ky={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},jL=(t,e,n)=>{let r;const A=n?.addSuffix?Ky[t].withPreposition:Ky[t].standalone;return typeof A=="string"?r=A:e===1?r=A.one:r=A.other.replace("{{count}}",String(e)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},ZL={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},VL={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},e2={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},t2={date:yi({formats:ZL,defaultWidth:"full"}),time:yi({formats:VL,defaultWidth:"full"}),dateTime:yi({formats:e2,defaultWidth:"full"})},n2={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},r2=(t,e,n,r)=>n2[t],A2={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},i2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},qp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},o2={narrow:qp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:qp.wide},s2={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},a2={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},l2={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},c2={ordinalNumber:t=>Number(t)+".",era:ur({values:A2,defaultWidth:"wide"}),quarter:ur({values:i2,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ur({values:qp,formattingValues:o2,defaultWidth:"wide"}),day:ur({values:s2,defaultWidth:"wide"}),dayPeriod:ur({values:a2,defaultWidth:"wide",formattingValues:l2,defaultFormattingWidth:"wide"})},u2=/^(\d+)(\.)?/i,d2=/\d+/i,f2={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},h2={any:[/^v/i,/^n/i]},p2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},m2={any:[/1/i,/2/i,/3/i,/4/i]},g2={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},v2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},w2={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},B2={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},y2={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},C2={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},b2={ordinalNumber:pp({matchPattern:u2,parsePattern:d2,valueCallback:t=>parseInt(t)}),era:dr({matchPatterns:f2,defaultMatchWidth:"wide",parsePatterns:h2,defaultParseWidth:"any"}),quarter:dr({matchPatterns:p2,defaultMatchWidth:"wide",parsePatterns:m2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dr({matchPatterns:g2,defaultMatchWidth:"wide",parsePatterns:v2,defaultParseWidth:"any"}),day:dr({matchPatterns:w2,defaultMatchWidth:"wide",parsePatterns:B2,defaultParseWidth:"any"}),dayPeriod:dr({matchPatterns:y2,defaultMatchWidth:"wide",parsePatterns:C2,defaultParseWidth:"any"})},E2={code:"de",formatDistance:jL,formatLong:t2,formatRelative:r2,localize:c2,match:b2,options:{weekStartsOn:1,firstWeekContainsDate:4}},k2={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},S2=(t,e,n)=>{let r;const A=k2[t];return typeof A=="string"?r=A:e===1?r=A.one:r=A.other.replace("{{count}}",String(e)),n?.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},x2={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},F2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Q2={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},T2={date:yi({formats:x2,defaultWidth:"full"}),time:yi({formats:F2,defaultWidth:"full"}),dateTime:yi({formats:Q2,defaultWidth:"full"})},M2={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},I2=(t,e,n,r)=>M2[t],U2={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},_2={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},D2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},O2={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},N2={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},L2=(t,e)=>{const n=Number(t),r=e?.unit;if(n===0)return"0";const A=["year","week","hour","minute","second"];let i;return n===1?i=r&&A.includes(r)?"ère":"er":i="ème",n+i},R2=["MMM","MMMM"],H2={preprocessor:(t,e)=>t.getDate()===1||!e.some(r=>r.isToken&&R2.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:L2,era:ur({values:U2,defaultWidth:"wide"}),quarter:ur({values:_2,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ur({values:D2,defaultWidth:"wide"}),day:ur({values:O2,defaultWidth:"wide"}),dayPeriod:ur({values:N2,defaultWidth:"wide"})},P2=/^(\d+)(ième|ère|ème|er|e)?/i,$2=/\d+/i,K2={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},z2={any:[/^av/i,/^ap/i]},W2={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},G2={any:[/1/i,/2/i,/3/i,/4/i]},Y2={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},q2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},X2={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},J2={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},j2={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},Z2={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},V2={ordinalNumber:pp({matchPattern:P2,parsePattern:$2,valueCallback:t=>parseInt(t)}),era:dr({matchPatterns:K2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any"}),quarter:dr({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:G2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dr({matchPatterns:Y2,defaultMatchWidth:"wide",parsePatterns:q2,defaultParseWidth:"any"}),day:dr({matchPatterns:X2,defaultMatchWidth:"wide",parsePatterns:J2,defaultParseWidth:"any"}),dayPeriod:dr({matchPatterns:j2,defaultMatchWidth:"any",parsePatterns:Z2,defaultParseWidth:"any"})},eR={code:"fr",formatDistance:S2,formatLong:T2,formatRelative:I2,localize:H2,match:V2,options:{weekStartsOn:1,firstWeekContainsDate:4}},tR={class:"row"},nR={class:"col-12"},rR=["for","innerHTML"],AR={key:0},iR={class:"input-group justify-content-center"},oR={key:0,class:"row"},sR={class:"col-12 col-md-6"},aR={class:"col-12 col-md-6"},lR={key:1,class:"row"},cR={class:"col-12"},uR=s.defineComponent({__name:"input-datepicker",props:{modelValue:{type:null,default:""},from:{type:[String,Number,Boolean,Date],default:""},to:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"datetime-local"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},range:{type:Boolean,default:!1},textRange:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!0},picker:{type:Boolean,default:!0},locale:{type:String,default:"en"},utcStore:{type:Boolean,default:!1}},emits:["update:modelValue","update:from","update:to"],setup(t,{emit:e}){const n=t,r=e,{t:A,locale:i}=Sl(),o={en:ou,de:E2,fr:eR},a=s.computed(()=>{const y=n.locale||i.value;return o[y]||ou}),l=s.computed(()=>n.inline||!n.picker?{openMenu:!1,format:a.value}:!0),u=s.computed({get(){if(n.range){let y=n.from||(Array.isArray(n.modelValue)?n.modelValue[0]:null),w=n.to||(Array.isArray(n.modelValue)?n.modelValue[1]:null);return n.utcStore?(y=y?m(y):null,w=w?m(w):null):(y=y?new Date(`${y}Z`).toISOString().replace("Z",""):null,w=w?new Date(`${w}Z`).toISOString().replace("Z",""):null),[...y?[y]:[],...w?[w]:[]]}else{if(n.utcStore){const C=n.modelValue;return C&&m(C)||""}const y=n.modelValue?new Date(`${n.modelValue}Z`):null,w=y&&y.toISOString();return w&&w.replace("Z","")}},set(y){if(n.range&&Array.isArray(y)){let[w,C]=y;n.utcStore?(w=v(w)||null,C=v(C)||null):(w=w&&new Date(w),w?.setUTCHours(w.getHours()),w=w?.toISOString()?.replace("Z",""),C=C&&new Date(C),C?.setUTCHours(C.getHours()),C=C?.toISOString()?.replace("Z","")),r("update:modelValue",[w,C]),r("update:from",w),r("update:to",C)}else if(n.utcStore){const w=v(y);r("update:modelValue",w)}else{const w=y&&new Date(y);w?.setUTCHours(w?.getHours()),y=w&&w.toISOString(),r("update:modelValue",y&&y.replace("Z",""))}}}),d=s.computed({get(){return Array.isArray(u.value)?u.value[0]:u.value},set(y){u.value=Array.isArray(u.value)?[y,u.value[0]]:y}}),h=s.computed({get(){return Array.isArray(u.value)?u.value[1]:u.value},set(y){u.value=Array.isArray(u.value)?[u.value[0],y]:y}});s.watch(()=>[d.value,h.value],(y,w)=>{n.range&&y.some(C=>C===void 0)&&w.every(Boolean)&&(u.value=[])});function p(y){if(!y)return;const w=y.getDate(),C=y.getMonth()+1,S=y.getFullYear(),Q=y.getMinutes(),_=y.getHours();switch(a.value){case"de":return`${w}.${C}.${S} ${_<10?"0"+_:_}:${Q<10?"0"+Q:Q}`;case"fr":return`${w}/${C}/${S} ${_<10?"0"+_:_}:${Q<10?"0"+Q:Q}`;default:return`${C}/${w}/${S} ${_<10?"0"+_:_}:${Q<10?"0"+Q:Q}`}}function m(y){if(!y)return null;const w=y instanceof Date?new Date(y):new Date(`${y}Z`),C=w.getFullYear(),S=String(w.getMonth()+1).padStart(2,"0"),Q=String(w.getDate()).padStart(2,"0"),_=String(w.getHours()).padStart(2,"0"),D=String(w.getMinutes()).padStart(2,"0"),I=String(w.getSeconds()).padStart(2,"0");return`${C}-${S}-${Q}T${_}:${D}:${I}`}function v(y){return y?(y instanceof Date?new Date(y):new Date(String(y))).toISOString().split(".")[0]:null}const B=y=>(Array.isArray(y)?y=y.map(w=>p(w)).join(" - "):y=p(y),y);return(y,w)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input","input--datepicker"])},[s.renderSlot(y.$slots,"label",{},()=>[s.createElementVNode("div",tR,[s.createElementVNode("div",nR,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:s.unref(Ur)(`${t.label}${t.required?" *":""}`)},null,8,rR)):s.createCommentVNode("",!0)])])]),t.textInput?(s.openBlock(),s.createElementBlock("div",AR,[s.createElementVNode("div",iR,[s.renderSlot(y.$slots,"input-prepend",{slotScope:"props"}),t.range&&!t.textRange?(s.openBlock(),s.createElementBlock("div",oR,[s.createElementVNode("div",sR,[s.createVNode(s.unref(hu),{uid:`${t.id}-from`,modelValue:d.value,"onUpdate:modelValue":w[0]||(w[0]=C=>d.value=C),locale:a.value,format:B,"text-input":l.value,disabled:t.disabled,"read-only":t.readOnly,required:t.required,"auto-apply":!0},null,8,["uid","modelValue","locale","text-input","disabled","read-only","required"])]),s.createElementVNode("div",aR,[s.createVNode(s.unref(hu),{uid:`${t.id}-to`,modelValue:h.value,"onUpdate:modelValue":w[1]||(w[1]=C=>h.value=C),locale:a.value,format:B,"text-input":l.value,disabled:t.disabled,"read-only":t.readOnly,required:t.required,"auto-apply":!0},null,8,["uid","modelValue","locale","text-input","disabled","read-only","required"])])])):(s.openBlock(),s.createBlock(s.unref(hu),{key:1,uid:`${t.id}-input-to`,modelValue:u.value,"onUpdate:modelValue":w[2]||(w[2]=C=>u.value=C),format:B,locale:a.value,range:t.textRange,"text-input":l.value,disabled:t.disabled,"read-only":t.readOnly,required:t.required,"auto-apply":!0},null,8,["uid","modelValue","locale","range","text-input","disabled","read-only","required"])),s.renderSlot(y.$slots,"input-append",{slotScope:"props"})])])):s.createCommentVNode("",!0),t.inline?(s.openBlock(),s.createElementBlock("div",lR,[s.createElementVNode("div",cR,[s.createVNode(s.unref(hu),{uid:`${t.id}-inline`,modelValue:u.value,"onUpdate:modelValue":w[3]||(w[3]=C=>u.value=C),locale:a.value,cancelText:"abbrechen",selectText:"auswählen",range:t.range,"multi-calendars":t.range,inline:{input:!1},"auto-apply":!0,"partial-range":t.range,"partial-flow":!0,"start-time":{hours:0,minutes:0},class:"justify-content-center",disabled:t.disabled,"read-only":t.readOnly,required:t.required,"month-name-format":"long"},null,8,["uid","modelValue","locale","range","multi-calendars","partial-range","disabled","read-only","required"])])])):s.createCommentVNode("",!0)]))}}),dR={class:"input-group input__input-group"},fR=s.defineComponent({__name:"input-password",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},password:{type:String,default:""},confirm:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){(n.password===i||!n.password)&&r("update:modelValue",i)}});return(i,o)=>{const a=s.resolveComponent("svg-icon"),l=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input","input-password"])},[s.createElementVNode("div",dR,[s.createVNode(l,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=u=>A.value=u),type:"password",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readOnly,required:t.required,label:t.label},{"input-prepend":s.withCtx(u=>[s.renderSlot(i.$slots,"input-prepend",{slotScope:"props"})]),"input-append":s.withCtx(u=>[s.renderSlot(i.$slots,"input-append",{slotScope:"props"},()=>[t.confirm&&t.modelValue===t.password?(s.openBlock(),s.createBlock(a,{key:0,symbol:"check",class:"ms-2"})):s.createCommentVNode("",!0)])]),_:3},8,["modelValue","placeholder","disabled","readonly","required","label"])])])}}}),hR={class:"check-group"},pR=["id","name","value","disabled","read-only","required"],mR=["for","innerHTML"],gR=s.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e;s.ref([]);const A=s.computed({get(){return n.modelValue},set(o){r("update:modelValue",o)}}),i=s.computed(()=>n.options&&n.options.map(o=>(o=typeof o=="string"?{text:o,value:o}:o,{...o,active:n.modelValue&&n.modelValue.includes(o.value)})));return(o,a)=>(s.openBlock(),s.createElementBlock("div",hR,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(l,u)=>(s.openBlock(),s.createElementBlock("div",{key:u,class:"form-check"},[s.withDirectives(s.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=d=>A.value=d),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:l.value||l,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,pR),[[s.vModelCheckbox,A.value]]),s.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:l.text},null,8,mR)]))),128))]))}}),vR={class:"input radio-group"},wR=["id","name","value","checked","disabled","read-only","required","onChange"],BR=["for","innerHTML"],yR=["for"],xu=s.defineComponent({__name:"radio-group",props:{modelValue:{type:null},options:{type:Array,default:[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["change","update:modelValue"],setup(t,{emit:e}){const n=e;function r(A){n("update:modelValue",A)}return(A,i)=>(s.openBlock(),s.createElementBlock("div",vR,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.options,(o,a)=>(s.openBlock(),s.createElementBlock("div",{key:a,class:s.normalizeClass(["form-check",t.itemClass])},[s.createElementVNode("input",{type:"radio",id:`${t.id}-${a}`,name:t.name,class:s.normalizeClass(["form-check-input",`
|
|
@@ -146,10 +146,10 @@ ${m.slice(u+2)}`,h+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
146
146
|
`):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{const e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var r;const A=t.split(`
|
|
147
147
|
`),[i,o]=YK(A);if(i.length===0)return;const a=FE(i,0,n);return a.length===0?void 0:{type:"list",ordered:!0,start:((r=i[0])==null?void 0:r.number)||1,items:a,raw:A.slice(0,o).join(`
|
|
148
148
|
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(XK,this.editor.getAttributes(QE)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=ya({find:TE,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=ya({find:TE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(QE)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),JK=/^\s*(\[([( |x])?\])\s$/,jK=Rr.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Jt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const A=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return rg(t,e,A)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const A=document.createElement("li"),i=document.createElement("label"),o=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=h=>{var p,m;a.ariaLabel=((m=(p=this.options.a11y)==null?void 0:p.checkboxLabel)==null?void 0:m.call(p,h,a.checked))||`Task item checkbox for ${h.textContent||"empty task item"}`};u(t),i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",h=>h.preventDefault()),a.addEventListener("change",h=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:p}=h.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const v=n();if(typeof v!="number")return!1;const B=m.doc.nodeAt(v);return m.setNodeMarkup(v,void 0,{...B?.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,p)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([h,p])=>{A.setAttribute(h,p)}),A.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,o),A.append(i,l),Object.entries(e).forEach(([h,p])=>{A.setAttribute(h,p)});let d=new Set(Object.keys(e));return{dom:A,contentDOM:l,update:h=>{if(h.type!==this.type)return!1;A.dataset.checked=h.attrs.checked,a.checked=h.attrs.checked,u(h);const p=r.extensionManager.attributes,m=Gl(h,p),v=new Set(Object.keys(m)),B=this.options.HTMLAttributes;return d.forEach(y=>{v.has(y)||(y in B?A.setAttribute(y,B[y]):A.removeAttribute(y))}),Object.entries(m).forEach(([y,w])=>{w==null?y in B?A.setAttribute(y,B[y]):A.removeAttribute(y):A.setAttribute(y,w)}),d=v,!0}}}},addInputRules(){return[ya({find:JK,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),ZK=Rr.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Jt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
149
|
-
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const o=ng(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:r},n);return o?[{type:"taskList",raw:o.raw,items:o.items}]:n.blockTokens(i)},A=ng(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,o)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:o}),customNestedParser:r},n);if(A)return{type:"taskList",raw:A.raw,items:A.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});on.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(wE.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(SE.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(ME.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(jK.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(ZK.configure(this.options.taskList)),t}});var IE=" ",VK=" ",ez=Rr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Jt(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===IE||r[0].text===VK)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?IE:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,nz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,rz=Eo.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Jt(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[bs({find:tz,type:this.type})]},addPasteRules(){return[ko({find:nz,type:this.type})]}}),Az=Rr.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),iz=Eo.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Jt(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const A=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!A)return;const i=A[2].trim();return{type:"underline",raw:A[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function oz(t={}){return new en({view(e){return new sz(e,t)}})}class sz{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(A=>{let i=o=>{this[A](o)};return e.dom.addEventListener(A,i),{name:A,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,A=this.editorView.dom,i=A.getBoundingClientRect(),o=i.width/A.offsetWidth,a=i.height/A.offsetHeight;if(n){let h=e.nodeBefore,p=e.nodeAfter;if(h||p){let m=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(m){let v=m.getBoundingClientRect(),B=h?v.bottom:v.top;h&&p&&(B=(B+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let y=this.width/2*a;r={left:v.left,right:v.right,top:B-y,bottom:B+y}}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*o;r={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.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);let u,d;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,d=-pageYOffset;else{let h=l.getBoundingClientRect(),p=h.width/l.offsetWidth,m=h.height/l.offsetHeight;u=h.left-l.scrollLeft*p,d=h.top-l.scrollTop*m}this.element.style.left=(r.left-u)/o+"px",this.element.style.top=(r.top-d)/a+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),A=r&&r.type.spec.disableDropCursor,i=typeof A=="function"?A(this.editorView,n,e):A;if(n&&!i){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=FC(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class an extends st{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return an.valid(r)?new an(r):st.near(r)}content(){return De.empty}eq(e){return e instanceof an&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new an(e.resolve(n.pos))}getBookmark(){return new Mg(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!az(e)||!lz(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let A=n.contentMatchAt(e.index()).defaultType;return A&&A.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&an.valid(e))return e;let A=e.pos,i=null;for(let o=e.depth;;o--){let a=e.node(o);if(n>0?e.indexAfter(o)<a.childCount:e.index(o)>0){i=a.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;A+=n;let l=e.doc.resolve(A);if(an.valid(l))return l}for(;;){let o=n>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!Ye.isSelectable(i)){e=e.doc.resolve(A+i.nodeSize*n),r=!1;continue e}break}i=o,A+=n;let a=e.doc.resolve(A);if(an.valid(a))return a}return null}}}an.prototype.visible=!1,an.findFrom=an.findGapCursorFrom,st.jsonID("gapcursor",an);class Mg{constructor(e){this.pos=e}map(e){return new Mg(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return an.valid(n)?new an(n):st.near(n)}}function az(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n-1);;A=A.lastChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function lz(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n);;A=A.firstChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function cz(){return new en({props:{decorations:hz,createSelectionBetween(t,e,n){return e.pos==n.pos&&an.valid(n)?new an(n):null},handleClick:dz,handleKeyDown:uz,handleDOMEvents:{beforeinput:fz}}})}const uz=h1({ArrowLeft:Gd("horiz",-1),ArrowRight:Gd("horiz",1),ArrowUp:Gd("vert",-1),ArrowDown:Gd("vert",1)});function Gd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,A,i){let o=r.selection,a=e>0?o.$to:o.$from,l=o.empty;if(o instanceof nt){if(!i.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=an.findGapCursorFrom(a,e,l);return u?(A&&A(r.tr.setSelection(new an(u))),!0):!1}}function dz(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!an.valid(r))return!1;let A=t.posAtCoords({left:n.clientX,top:n.clientY});return A&&A.inside>-1&&Ye.isSelectable(t.state.doc.nodeAt(A.inside))?!1:(t.dispatch(t.state.tr.setSelection(new an(r))),!0)}function fz(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof an))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let A=Qe.empty;for(let o=r.length-1;o>=0;o--)A=Qe.from(r[o].createAndFill(null,A));let i=t.state.tr.replace(n.pos,n.pos,new De(A,0,0));return i.setSelection(nt.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function hz(t){if(!(t.selection instanceof an))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",tn.create(t.doc,[gr.widget(t.selection.head,e,{key:"gapcursor"})])}var Yd=200,Nn=function(){};Nn.prototype.append=function(e){return e.length?(e=Nn.from(e),!this.length&&e||e.length<Yd&&this.leafAppend(e)||this.length<Yd&&e.leafPrepend(this)||this.appendInner(e)):this},Nn.prototype.prepend=function(e){return e.length?Nn.from(e).append(this):this},Nn.prototype.appendInner=function(e){return new pz(this,e)},Nn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Nn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Nn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Nn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Nn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var A=[];return this.forEach(function(i,o){return A.push(e(i,o))},n,r),A},Nn.from=function(e){return e instanceof Nn?e:e&&e.length?new UE(e):Nn.empty};var UE=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(A,i){return A==0&&i==this.length?this:new e(this.values.slice(A,i))},e.prototype.getInner=function(A){return this.values[A]},e.prototype.forEachInner=function(A,i,o,a){for(var l=i;l<o;l++)if(A(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(A,i,o,a){for(var l=i-1;l>=o;l--)if(A(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(A){if(this.length+A.length<=Yd)return new e(this.values.concat(A.flatten()))},e.prototype.leafPrepend=function(A){if(this.length+A.length<=Yd)return new e(A.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Nn);Nn.empty=new UE([]);var pz=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,A,i,o){var a=this.left.length;if(A<a&&this.left.forEachInner(r,A,Math.min(i,a),o)===!1||i>a&&this.right.forEachInner(r,Math.max(A-a,0),Math.min(this.length,i)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,A,i,o){var a=this.left.length;if(A>a&&this.right.forEachInvertedInner(r,A-a,Math.max(i,a)-a,o+a)===!1||i<a&&this.left.forEachInvertedInner(r,Math.min(A,a),i,o)===!1)return!1},e.prototype.sliceInner=function(r,A){if(r==0&&A==this.length)return this;var i=this.left.length;return A<=i?this.left.slice(r,A):r>=i?this.right.slice(r-i,A-i):this.left.slice(r,i).append(this.right.slice(0,A-i))},e.prototype.leafAppend=function(r){var A=this.right.leafAppend(r);if(A)return new e(this.left,A)},e.prototype.leafPrepend=function(r){var A=this.left.leafPrepend(r);if(A)return new e(A,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Nn);const mz=500;class IA{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let A,i;n&&(A=this.remapping(r,this.items.length),i=A.maps.length);let o=e.tr,a,l,u=[],d=[];return this.items.forEach((h,p)=>{if(!h.step){A||(A=this.remapping(r,p+1),i=A.maps.length),i--,d.push(h);return}if(A){d.push(new ai(h.map));let m=h.step.map(A.slice(i)),v;m&&o.maybeStep(m).doc&&(v=o.mapping.maps[o.mapping.maps.length-1],u.push(new ai(v,void 0,void 0,u.length+d.length))),i--,v&&A.appendMap(v,i)}else o.maybeStep(h.step);if(h.selection)return a=A?h.selection.map(A.slice(i)):h.selection,l=new IA(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:a}}addTransform(e,n,r,A){let i=[],o=this.eventCount,a=this.items,l=!A&&a.length?a.get(a.length-1):null;for(let d=0;d<e.steps.length;d++){let h=e.steps[d].invert(e.docs[d]),p=new ai(e.mapping.maps[d],h,n),m;(m=l&&l.merge(p))&&(p=m,d?i.pop():a=a.slice(0,a.length-1)),i.push(p),n&&(o++,n=void 0),A||(l=p)}let u=o-r.depth;return u>vz&&(a=gz(a,u),o-=u),new IA(a.append(i),o)}remapping(e,n){let r=new Ml;return this.items.forEach((A,i)=>{let o=A.mirrorOffset!=null&&i-A.mirrorOffset>=e?r.maps.length-A.mirrorOffset:void 0;r.appendMap(A.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new IA(this.items.append(e.map(n=>new ai(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],A=Math.max(0,this.items.length-n),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(p=>{p.selection&&a--},A);let l=n;this.items.forEach(p=>{let m=i.getMirror(--l);if(m==null)return;o=Math.min(o,m);let v=i.maps[m];if(p.step){let B=e.steps[m].invert(e.docs[m]),y=p.selection&&p.selection.map(i.slice(l+1,m));y&&a++,r.push(new ai(v,B,y))}else r.push(new ai(v))},A);let u=[];for(let p=n;p<o;p++)u.push(new ai(i.maps[p]));let d=this.items.slice(0,A).append(u).append(r),h=new IA(d,a);return h.emptyItemCount()>mz&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,A=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)A.push(o),o.selection&&i++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let d=o.selection&&o.selection.map(n.slice(r));d&&i++;let h=new ai(u.invert(),l,d),p,m=A.length-1;(p=A.length&&A[m].merge(h))?A[m]=p:A.push(h)}}else o.map&&r--},this.items.length,0),new IA(Nn.from(A.reverse()),i)}}IA.empty=new IA(Nn.empty,0);function gz(t,e){let n;return t.forEach((r,A)=>{if(r.selection&&e--==0)return n=A,!1}),t.slice(n)}class ai{constructor(e,n,r,A){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=A}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ai(n.getMap().invert(),n,this.selection)}}}class Qo{constructor(e,n,r,A,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=A,this.prevComposition=i}}const vz=20;function wz(t,e,n,r){let A=n.getMeta(Ss),i;if(A)return A.historyState;n.getMeta(Cz)&&(t=new Qo(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(Ss))return o.getMeta(Ss).redo?new Qo(t.done.addTransform(n,void 0,r,qd(e)),t.undone,_E(n.mapping.maps),t.prevTime,t.prevComposition):new Qo(t.done,t.undone.addTransform(n,void 0,r,qd(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!Bz(n,t.prevRanges)),u=o?Ig(t.prevRanges,n.mapping):_E(n.mapping.maps);return new Qo(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,qd(e)),IA.empty,u,n.time,a??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Qo(t.done.rebased(n,i),t.undone.rebased(n,i),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Qo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Bz(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,A)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&A>=e[i]&&(n=!0)}),n}function _E(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,A,i,o)=>e.push(i,o));return e}function Ig(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let A=e.map(t[r],1),i=e.map(t[r+1],-1);A<=i&&n.push(A,i)}return n}function yz(t,e,n){let r=qd(e),A=Ss.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let o=i.selection.resolve(i.transform.doc),a=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),A,r),l=new Qo(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(o).setMeta(Ss,{redo:n,historyState:l})}let Ug=!1,DE=null;function qd(t){let e=t.plugins;if(DE!=e){Ug=!1,DE=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ug=!0;break}}return Ug}const Ss=new xn("history"),Cz=new xn("closeHistory");function bz(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new en({key:Ss,state:{init(){return new Qo(IA.empty,IA.empty,null,0,-1)},apply(e,n,r){return wz(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,A=r=="historyUndo"?NE:r=="historyRedo"?LE:null;return A?(n.preventDefault(),A(e.state,e.dispatch)):!1}}}})}function OE(t,e){return(n,r)=>{let A=Ss.getState(n);if(!A||(t?A.undone:A.done).eventCount==0)return!1;if(r){let i=yz(A,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const NE=OE(!1,!0),LE=OE(!0,!0);on.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new en({key:new xn("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const A=this.options.limit;if(A==null||A===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>A){const o=i-A,a=0,l=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${A} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const A=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||A>r&&i>r&&i<=A)return!0;if(A>r&&i>r&&i>A||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=i-r,u=a-l,d=a;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>r)}})]}});var Ez=on.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[oz(this.options)]}});on.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new en({key:new xn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:A}=e,i=[];if(!n||!r)return tn.create(t,[]);let o=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(A>=u&&A<=u+l.nodeSize-1))return!1;o+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(A>=u&&A<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&o-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";i.push(gr.node(u,u+l.nodeSize,{class:this.options.className}))}),tn.create(t,i)}}})]}});var kz=on.create({name:"gapCursor",addProseMirrorPlugins(){return[cz()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ot(Ge(t,"allowGapCursor",n)))!=null?e:null}}}),RE="placeholder";function Sz(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}on.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:RE,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${Sz(this.options.dataAttribute)}`:`data-${RE}`;return[new en({key:new xn("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:A}=n,i=[];if(!r)return null;const o=this.editor.isEmpty;return e.descendants((a,l)=>{const u=A>=l&&A<=l+a.nodeSize,d=!a.isLeaf&&sd(a);if((u||!this.options.showOnlyCurrent)&&d){const h=[this.options.emptyNodeClass];o&&h.push(this.options.emptyEditorClass);const p=gr.node(l,l+a.nodeSize,{class:h.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),tn.create(e,i)}}})]}}),on.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new en({key:new xn("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||L1(n.selection)||t.view.dragging?null:tn.create(n.doc,[gr.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function HE({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var xz=on.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new xn(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,A])=>A).filter(A=>(this.options.notAfter||[]).concat(n).includes(A.name));return[new en({key:e,appendTransaction:(A,i,o)=>{const{doc:a,tr:l,schema:u}=o,d=e.getState(o),h=a.content.size,p=u.nodes[n];if(d)return l.insert(h,p.create())},state:{init:(A,i)=>{const o=i.tr.doc.lastChild;return!HE({node:o,types:r})},apply:(A,i)=>{if(!A.docChanged||A.getMeta("__uniqueIDTransaction"))return i;const o=A.doc.lastChild;return!HE({node:o,types:r})}}})]}}),Fz=on.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>NE(t,e),redo:()=>({state:t,dispatch:e})=>LE(t,e)}},addProseMirrorPlugins(){return[bz(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()}}}),Qz=on.create({name:"starterKit",addExtensions(){var t,e,n,r;const A=[];return this.options.bold!==!1&&A.push(mE.configure(this.options.bold)),this.options.blockquote!==!1&&A.push(BK.configure(this.options.blockquote)),this.options.bulletList!==!1&&A.push(wE.configure(this.options.bulletList)),this.options.code!==!1&&A.push(FK.configure(this.options.code)),this.options.codeBlock!==!1&&A.push(MK.configure(this.options.codeBlock)),this.options.document!==!1&&A.push(IK.configure(this.options.document)),this.options.dropcursor!==!1&&A.push(Ez.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&A.push(kz.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&A.push(UK.configure(this.options.hardBreak)),this.options.heading!==!1&&A.push(_K.configure(this.options.heading)),this.options.undoRedo!==!1&&A.push(Fz.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&A.push(DK.configure(this.options.horizontalRule)),this.options.italic!==!1&&A.push(HK.configure(this.options.italic)),this.options.listItem!==!1&&A.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&A.push(SE.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&A.push(pE.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&A.push(ME.configure(this.options.orderedList)),this.options.paragraph!==!1&&A.push(ez.configure(this.options.paragraph)),this.options.strike!==!1&&A.push(rz.configure(this.options.strike)),this.options.text!==!1&&A.push(Az.configure(this.options.text)),this.options.underline!==!1&&A.push(iz.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&A.push(xz.configure((r=this.options)==null?void 0:r.trailingNode)),A}}),Tz=Qz;function PE(t){return s.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var Mz=class extends I${constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=PE(this.view.state),this.reactiveExtensionStorage=PE(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},Iz=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=s.ref(),n=s.getCurrentInstance();return s.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&s.nextTick(()=>{var A;if(!e.value||!((A=r.view.dom)!=null&&A.parentNode))return;const i=s.unref(e.value);e.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),s.onBeforeUnmount(()=>{const r=t.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:t=>{this.rootEl=t}})}});s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var Uz=(t={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new Mz(t)}),s.onBeforeUnmount(()=>{var n,r,A,i;const o=(r=(n=e.value)==null?void 0:n.view.dom)==null?void 0:r.parentNode,a=o?.cloneNode(!0);(A=o?.parentNode)==null||A.replaceChild(a,o),(i=e.value)==null||i.destroy()}),e};s.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return s.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});const _z={class:"rte-editor"},Dz={key:0,class:"rte-editor__controls mb-2"},Oz=["disabled"],Nz=["disabled"],Lz={class:"btn-group"},Rz=["disabled"],Hz=["disabled"],Pz={class:"btn-group"},$z={class:"dropdown"},Kz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},zz={class:"dropdown-menu"},Wz={class:"dropdown"},Gz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},Yz={class:"dropdown-menu"},qz={class:"btn-group"},Xz=["disabled"],Jz=["disabled"],jz=s.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},iconBasePath:{type:String,default:"/rte-icons-defs.svg"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=Uz({content:n.modelValue,onUpdate:()=>{r("update:modelValue",i.value?.getHTML())},extensions:[Tz.configure({bold:!1}),kK.extend({addAttributes(){return{class:{default:null}}},parseHTML(){return[{tag:"strong"},{tag:"b"}]},renderHTML({HTMLAttributes:u}){return["strong",Jt(this.options.HTMLAttributes,u),0]}}),Y$.configure({types:["heading","paragraph"]}),W$,vK.extend({addAttributes(){return{...this.parent?.(),class:{default:null},id:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:u=>({href:u.getAttribute("href"),target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})},{tag:"a:not([href])",getAttrs:u=>({href:null,target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})}]},renderHTML({HTMLAttributes:u}){if(!u.href){const{href:d,target:h,rel:p,...m}=u;return["a",Jt(m),0]}return["a",Jt(this.options.HTMLAttributes,u),0]}}).configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["http","https"],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})]});s.watch(()=>n.modelValue,(u,d)=>{if(i.value){if(i.value.getHTML()===u)return;i.value.commands.setContent(u)}});function o(){const u=i.value?.getAttributes("link").href,d=window.prompt("URL",u);if(d!==null){if(d===""){i.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}try{i.value?.chain().focus().extendMarkRange("link").setLink({href:d}).run()}catch(h){alert(h.message)}}}const a=()=>{i.value?.commands.setContent(`<textarea>${i.value.getHTML()}</textarea>`),A.value=!0},l=()=>{i.value?.commands.setContent(i.value.getText()),A.value=!1};return(u,d)=>{const h=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",_z,[s.unref(i)?(s.openBlock(),s.createElementBlock("div",Dz,[A.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"btn btn-sm btn-light is-active",onClick:l,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],8,Nz)):(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("code")}]),onClick:a,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],10,Oz)),s.createElementVNode("div",Lz,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bold")}]),onClick:d[0]||(d[0]=p=>s.unref(i)?.chain().focus().toggleBold().run()),disabled:!s.unref(i).can().chain().focus().toggleBold().run(),title:"Toggle Bold"},[s.createVNode(h,{symbol:"bold","base-path":t.iconBasePath},null,8,["base-path"])],10,Rz),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("italic")}]),onClick:d[1]||(d[1]=p=>s.unref(i)?.chain().focus().toggleItalic().run()),disabled:!s.unref(i).can().chain().focus().toggleItalic().run(),title:"Toggle Italic"},[s.createVNode(h,{symbol:"italic","base-path":t.iconBasePath},null,8,["base-path"])],10,Hz)]),s.createElementVNode("div",Pz,[s.createElementVNode("div",$z,[s.createElementVNode("button",Kz,[s.unref(i).isActive("heading",{level:1})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:2})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:3})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:4})?(s.openBlock(),s.createBlock(h,{key:3,symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:4,symbol:"headline","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",zz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:1})}]),onClick:d[2]||(d[2]=p=>s.unref(i)?.chain().focus().setHeading({level:1}).run()),title:"Set Heading 1"},[s.createVNode(h,{symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:2})}]),onClick:d[3]||(d[3]=p=>s.unref(i)?.chain().focus().setHeading({level:2}).run()),title:"Set Heading 2"},[s.createVNode(h,{symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:3})}]),onClick:d[4]||(d[4]=p=>s.unref(i)?.chain().focus().setHeading({level:3}).run()),title:"Set Heading 3"},[s.createVNode(h,{symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:4})}]),onClick:d[5]||(d[5]=p=>s.unref(i)?.chain().focus().setHeading({level:4}).run()),title:"Set Heading 4"},[s.createVNode(h,{symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("paragraph")}]),onClick:d[6]||(d[6]=p=>s.unref(i)?.chain().focus().setParagraph().run()),title:"Set Paragraph"},[s.createVNode(h,{symbol:"paragraph","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bulletList")}]),onClick:d[7]||(d[7]=p=>s.unref(i)?.chain().focus().toggleBulletList().run()),title:"Toggle Bullet List"},[s.createVNode(h,{symbol:"list","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("orderedList")}]),onClick:d[8]||(d[8]=p=>s.unref(i)?.chain().focus().toggleOrderedList().run()),title:"Toggle Ordered List"},[s.createVNode(h,{symbol:"ordered-list","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("div",Wz,[s.createElementVNode("button",Gz,[s.unref(i).isActive({textAlign:"center"})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"left"})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"right"})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:3,symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",Yz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"left"})}]),onClick:d[9]||(d[9]=p=>s.unref(i)?.chain().focus().setTextAlign("left").run())},[s.createVNode(h,{symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"center"})}]),onClick:d[10]||(d[10]=p=>s.unref(i)?.chain().focus().setTextAlign("center").run())},[s.createVNode(h,{symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"right"})}]),onClick:d[11]||(d[11]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"pretty"})}]),onClick:d[12]||(d[12]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.unref(i).isActive("link")?(s.openBlock(),s.createElementBlock("button",{key:3,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:d[13]||(d[13]=p=>s.unref(i).chain().focus().unsetLink().run()),title:"Unset Link"},[s.createVNode(h,{symbol:"unlink","base-path":t.iconBasePath},null,8,["base-path"])],2)):(s.openBlock(),s.createElementBlock("button",{key:2,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:o,title:"Set Link"},[s.createVNode(h,{symbol:"link","base-path":t.iconBasePath},null,8,["base-path"])],2)),s.createElementVNode("div",qz,[s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[14]||(d[14]=p=>s.unref(i)?.chain().focus().undo().run()),disabled:!s.unref(i).can().chain().focus().undo().run(),title:"Undo"},[s.createVNode(h,{symbol:"undo","base-path":t.iconBasePath},null,8,["base-path"])],8,Xz),s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[15]||(d[15]=p=>s.unref(i)?.chain().focus().redo().run()),disabled:!s.unref(i).can().chain().focus().redo().run(),title:"Redo"},[s.createVNode(h,{symbol:"redo","base-path":t.iconBasePath},null,8,["base-path"])],8,Jz)])])):s.createCommentVNode("",!0),s.createVNode(s.unref(Iz),{class:"rte-editor__content",editor:s.unref(i)},null,8,["editor"])])}}}),Zz={class:"input-color"},Vz={class:"base-input__color-swatch"},e5=["name","id","disabled","read-only","required","aria-label"],t5=s.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>{const a=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",Zz,[s.createVNode(a,{modelValue:A.value,"onUpdate:modelValue":o[1]||(o[1]=l=>A.value=l),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":s.withCtx(l=>[s.createElementVNode("span",Vz,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=u=>A.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,e5),[[s.vModelText,A.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),n5={class:"color-palette"},r5=["for"],A5=s.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",n5,[s.createVNode(xu,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:s.normalizeStyle({backgroundColor:a.option})},null,12,r5)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),i5=["id"],o5=["for","innerHTML"],s5={class:"dropdown"},a5={class:"caption"},l5=["innerHTML"],c5={class:"caption__text"},u5={class:"d-block text-truncate"},d5={class:"dropdown-menu"},f5={class:"form-check"},h5=["value","id","name","label","required","disabled"],p5=["value","id","name","label","required","disabled"],m5=["for"],g5=s.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${Ct()}`},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:n}=Sl(),r=t,A=e,i=s.computed({get(){return r.multiple&&!r.modelValue?[]:r.modelValue},set(l){A("update:modelValue",l)}}),o=s.computed(()=>r.options&&r.options.map(l=>(l=typeof l=="string"?{text:l,value:l}:l,{...l,active:r.modelValue&&l.value&&(r.exactMatch?r.modelValue===l.value:r.multiple?r.modelValue.includes(l.value):r.modelValue===l.value)}))),a=s.computed(()=>{if(!r.modelValue)return r.placeholder||`${n("common.select")}`;if(r.multiple&&Array.isArray(r.modelValue)&&r.modelValue.length)return o.value.reduce((l,u)=>r.modelValue.includes(u.value)?`${l}${l?", ":""}${u.text}`:l,"");if(!r.multiple){const l=o.value.find(u=>u.value===r.modelValue);return l?l.text:r.placeholder||`${n("common.select")}`}return r.placeholder||`${n("common.select")}`});return(l,u)=>{const d=s.resolveComponent("base-button");return s.openBlock(),s.createElementBlock("div",{class:"input input-dropdown",id:`${t.id||t.name}`},[s.renderSlot(l.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:`${t.id||t.name}--dropdown-toggle`,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,o5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",s5,[s.createVNode(d,{id:`${t.id||t.name}--dropdown-toggle`,"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:s.withCtx(()=>[s.createElementVNode("span",a5,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(s.openBlock(),s.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,l5)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("span",c5,[s.createElementVNode("span",u5,s.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["id","title","color","outlined","disabled"]),s.createElementVNode("ul",d5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(h,p)=>(s.openBlock(),s.createElementBlock("li",{key:`${h.value}-${p}`},[s.createElementVNode("div",{class:s.normalizeClass(["dropdown-item",h.active&&"active"])},[s.createElementVNode("div",f5,[t.multiple?s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__if`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,h5)),[[s.vModelCheckbox,i.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__else`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,p5)),[[s.vModelRadio,i.value]]),s.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${p}`},s.toDisplayString(h.text),9,m5)])],2)]))),128))])])],8,i5)}}}),v5={key:0,class:"auto-suggest__suggestions position-relative"},w5={class:"suggestions dropdown-menu show w-100 mt-2"},B5=["onClick"],y5=["innerHTML"],C5=s.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(!1),o=s.computed({get(){return n.modelValue},set(m){r("update:modelValue",m)}}),a=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return o.value?n.options.filter(v=>m.test(v)):n.options}),l=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return a.value.map(v=>{const B=v.replace(m,"<strong>$1</strong>");return Ur(B)})});s.watch(()=>n.options,(m,v)=>{m.length&&(i.value=!0)},{deep:!0});function u(){n.options.length&&(i.value=!0)}function d(m){i.value=!1;const v=a.value[m];r("update:modelValue",v),r("update:selection",v)}const h=s.ref();function p(m){const v=m.target;i.value&&v&&!A.value.contains(v)&&(i.value=!1)}return s.onBeforeMount(()=>{h.value=document.addEventListener("click",p)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(m,v)=>{const B=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:A},[s.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[s.renderSlot(m.$slots,"default",{},()=>[s.createVNode(B,s.mergeProps({modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=y=>o.value=y)},m.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(s.openBlock(),s.createElementBlock("div",v5,[s.createElementVNode("ul",w5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(y,w)=>(s.openBlock(),s.createElementBlock("li",{key:y,class:"suggestions__item dropdown-item",onClick:s.withModifiers(C=>d(w),["prevent"])},[s.createElementVNode("p",{class:"text-truncate my-2",innerHTML:y},null,8,y5)],8,B5))),128))])])):s.createCommentVNode("",!0)],512)}}});var Xd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ac={exports:{}};var E5=Ac.exports,$E;function k5(){return $E||($E=1,(function(t,e){(function(){var n,r="4.17.23",A=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,p=2,m=4,v=1,B=2,y=1,w=2,C=4,S=8,Q=16,_=32,D=64,I=128,$=256,Y=512,de=30,ge="...",me=800,we=16,te=1,V=2,q=3,x=1/0,T=9007199254740991,P=17976931348623157e292,F=NaN,E=4294967295,W=E-1,ne=E>>>1,X=[["ary",I],["bind",y],["bindKey",w],["curry",S],["curryRight",Q],["flip",Y],["partial",_],["partialRight",D],["rearg",$]],re="[object Arguments]",ie="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",Ce="[object Date]",G="[object DOMException]",ee="[object Error]",K="[object Function]",N="[object GeneratorFunction]",R="[object Map]",J="[object Number]",z="[object Null]",ce="[object Object]",k="[object Promise]",U="[object Proxy]",O="[object RegExp]",se="[object Set]",j="[object String]",be="[object Symbol]",Be="[object Undefined]",ae="[object WeakMap]",he="[object WeakSet]",xe="[object ArrayBuffer]",Pe="[object DataView]",ot="[object Float32Array]",$e="[object Float64Array]",ht="[object Int8Array]",wt="[object Int16Array]",Et="[object Int32Array]",En="[object Uint8Array]",Yt="[object Uint8ClampedArray]",Kt="[object Uint16Array]",OA="[object Uint32Array]",pi=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,gn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tn=/&(?:amp|lt|gt|quot|#39);/g,mi=/[&<>"']/g,wr=RegExp(Tn.source),Ho=RegExp(mi.source),Us=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,NA=/<%=([\s\S]+?)%>/g,Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ra=/^\w*$/,_s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Po=/[\\^$.*+?()[\]{}|]/g,Ha=RegExp(Po.source),Ds=/^\s+/,Fr=/\s/,LA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ve=/\{\n\/\* \[wrapped with (.+)\] \*/,Ie=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,At=/[()=,{}\[\]\/\s]/,bt=/\\(\\)?/g,Pr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uA=/\w*$/,gi=/^[-+]0x[0-9a-f]+$/i,Ki=/^0b[01]+$/i,zi=/^\[object .+?Constructor\]$/,Re=/^0o[0-7]+$/i,oe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ln="\\u0300-\\u036f",ir="\\ufe20-\\ufe2f",RA="\\u20d0-\\u20ff",Wi=ln+ir+RA,Pa="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",nh="\\xac\\xb1\\xd7\\xf7",rh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bj="\\u2000-\\u206f",yj=" \\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",_x="A-Z\\xc0-\\xd6\\xd8-\\xde",Dx="\\ufe0e\\ufe0f",Ox=nh+rh+Bj+yj,ew="['’]",Cj="["+vn+"]",Nx="["+Ox+"]",Ah="["+Wi+"]",Lx="\\d+",bj="["+Pa+"]",Rx="["+kn+"]",Hx="[^"+vn+Ox+Lx+Pa+kn+_x+"]",tw="\\ud83c[\\udffb-\\udfff]",Ej="(?:"+Ah+"|"+tw+")",Px="[^"+vn+"]",nw="(?:\\ud83c[\\udde6-\\uddff]){2}",rw="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+_x+"]",$x="\\u200d",Kx="(?:"+Rx+"|"+Hx+")",kj="(?:"+$a+"|"+Hx+")",zx="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",Wx="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",Gx=Ej+"?",Yx="["+Dx+"]?",Sj="(?:"+$x+"(?:"+[Px,nw,rw].join("|")+")"+Yx+Gx+")*",xj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qx=Yx+Gx+Sj,Qj="(?:"+[bj,nw,rw].join("|")+")"+qx,Tj="(?:"+[Px+Ah+"?",Ah,nw,rw,Cj].join("|")+")",Mj=RegExp(ew,"g"),Ij=RegExp(Ah,"g"),Aw=RegExp(tw+"(?="+tw+")|"+Tj+qx,"g"),Uj=RegExp([$a+"?"+Rx+"+"+zx+"(?="+[Nx,$a,"$"].join("|")+")",kj+"+"+Wx+"(?="+[Nx,$a+Kx,"$"].join("|")+")",$a+"?"+Kx+"+"+zx,$a+"+"+Wx,Fj,xj,Lx,Qj].join("|"),"g"),_j=RegExp("["+$x+vn+Wi+Dx+"]"),Dj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Oj=["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"],Nj=-1,qt={};qt[ot]=qt[$e]=qt[ht]=qt[wt]=qt[Et]=qt[En]=qt[Yt]=qt[Kt]=qt[OA]=!0,qt[re]=qt[ie]=qt[xe]=qt[le]=qt[Pe]=qt[Ce]=qt[ee]=qt[K]=qt[R]=qt[J]=qt[ce]=qt[O]=qt[se]=qt[j]=qt[ae]=!1;var Wt={};Wt[re]=Wt[ie]=Wt[xe]=Wt[Pe]=Wt[le]=Wt[Ce]=Wt[ot]=Wt[$e]=Wt[ht]=Wt[wt]=Wt[Et]=Wt[R]=Wt[J]=Wt[ce]=Wt[O]=Wt[se]=Wt[j]=Wt[be]=Wt[En]=Wt[Yt]=Wt[Kt]=Wt[OA]=!0,Wt[ee]=Wt[K]=Wt[ae]=!1;var Lj={À:"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:"'n",ſ:"s"},Rj={"&":"&","<":"<",">":">",'"':""","'":"'"},Hj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$j=parseFloat,Kj=parseInt,Xx=typeof Xd=="object"&&Xd&&Xd.Object===Object&&Xd,zj=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Xx||zj||Function("return this")(),iw=e&&!e.nodeType&&e,Os=iw&&!0&&t&&!t.nodeType&&t,Jx=Os&&Os.exports===iw,ow=Jx&&Xx.process,dA=(function(){try{var ue=Os&&Os.require&&Os.require("util").types;return ue||ow&&ow.binding&&ow.binding("util")}catch{}})(),jx=dA&&dA.isArrayBuffer,Zx=dA&&dA.isDate,Vx=dA&&dA.isMap,eF=dA&&dA.isRegExp,tF=dA&&dA.isSet,nF=dA&&dA.isTypedArray;function $r(ue,Ee,ye){switch(ye.length){case 0:return ue.call(Ee);case 1:return ue.call(Ee,ye[0]);case 2:return ue.call(Ee,ye[0],ye[1]);case 3:return ue.call(Ee,ye[0],ye[1],ye[2])}return ue.apply(Ee,ye)}function Wj(ue,Ee,ye,Ne){for(var rt=-1,Tt=ue==null?0:ue.length;++rt<Tt;){var Mn=ue[rt];Ee(Ne,Mn,ye(Mn),ue)}return Ne}function fA(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne&&Ee(ue[ye],ye,ue)!==!1;);return ue}function Gj(ue,Ee){for(var ye=ue==null?0:ue.length;ye--&&Ee(ue[ye],ye,ue)!==!1;);return ue}function rF(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(!Ee(ue[ye],ye,ue))return!1;return!0}function $o(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];Ee(Mn,ye,ue)&&(Tt[rt++]=Mn)}return Tt}function ih(ue,Ee){var ye=ue==null?0:ue.length;return!!ye&&Ka(ue,Ee,0)>-1}function sw(ue,Ee,ye){for(var Ne=-1,rt=ue==null?0:ue.length;++Ne<rt;)if(ye(Ee,ue[Ne]))return!0;return!1}function Zt(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=Array(Ne);++ye<Ne;)rt[ye]=Ee(ue[ye],ye,ue);return rt}function Ko(ue,Ee){for(var ye=-1,Ne=Ee.length,rt=ue.length;++ye<Ne;)ue[rt+ye]=Ee[ye];return ue}function aw(ue,Ee,ye,Ne){var rt=-1,Tt=ue==null?0:ue.length;for(Ne&&Tt&&(ye=ue[++rt]);++rt<Tt;)ye=Ee(ye,ue[rt],rt,ue);return ye}function Yj(ue,Ee,ye,Ne){var rt=ue==null?0:ue.length;for(Ne&&rt&&(ye=ue[--rt]);rt--;)ye=Ee(ye,ue[rt],rt,ue);return ye}function lw(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(Ee(ue[ye],ye,ue))return!0;return!1}var qj=cw("length");function Xj(ue){return ue.split("")}function Jj(ue){return ue.match(We)||[]}function AF(ue,Ee,ye){var Ne;return ye(ue,function(rt,Tt,Mn){if(Ee(rt,Tt,Mn))return Ne=Tt,!1}),Ne}function oh(ue,Ee,ye,Ne){for(var rt=ue.length,Tt=ye+(Ne?1:-1);Ne?Tt--:++Tt<rt;)if(Ee(ue[Tt],Tt,ue))return Tt;return-1}function Ka(ue,Ee,ye){return Ee===Ee?a9(ue,Ee,ye):oh(ue,iF,ye)}function jj(ue,Ee,ye,Ne){for(var rt=ye-1,Tt=ue.length;++rt<Tt;)if(Ne(ue[rt],Ee))return rt;return-1}function iF(ue){return ue!==ue}function oF(ue,Ee){var ye=ue==null?0:ue.length;return ye?dw(ue,Ee)/ye:F}function cw(ue){return function(Ee){return Ee==null?n:Ee[ue]}}function uw(ue){return function(Ee){return ue==null?n:ue[Ee]}}function sF(ue,Ee,ye,Ne,rt){return rt(ue,function(Tt,Mn,Pt){ye=Ne?(Ne=!1,Tt):Ee(ye,Tt,Mn,Pt)}),ye}function Zj(ue,Ee){var ye=ue.length;for(ue.sort(Ee);ye--;)ue[ye]=ue[ye].value;return ue}function dw(ue,Ee){for(var ye,Ne=-1,rt=ue.length;++Ne<rt;){var Tt=Ee(ue[Ne]);Tt!==n&&(ye=ye===n?Tt:ye+Tt)}return ye}function fw(ue,Ee){for(var ye=-1,Ne=Array(ue);++ye<ue;)Ne[ye]=Ee(ye);return Ne}function Vj(ue,Ee){return Zt(Ee,function(ye){return[ye,ue[ye]]})}function aF(ue){return ue&&ue.slice(0,dF(ue)+1).replace(Ds,"")}function Kr(ue){return function(Ee){return ue(Ee)}}function hw(ue,Ee){return Zt(Ee,function(ye){return ue[ye]})}function Qc(ue,Ee){return ue.has(Ee)}function lF(ue,Ee){for(var ye=-1,Ne=ue.length;++ye<Ne&&Ka(Ee,ue[ye],0)>-1;);return ye}function cF(ue,Ee){for(var ye=ue.length;ye--&&Ka(Ee,ue[ye],0)>-1;);return ye}function e9(ue,Ee){for(var ye=ue.length,Ne=0;ye--;)ue[ye]===Ee&&++Ne;return Ne}var t9=uw(Lj),n9=uw(Rj);function r9(ue){return"\\"+Pj[ue]}function A9(ue,Ee){return ue==null?n:ue[Ee]}function za(ue){return _j.test(ue)}function i9(ue){return Dj.test(ue)}function o9(ue){for(var Ee,ye=[];!(Ee=ue.next()).done;)ye.push(Ee.value);return ye}function pw(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne,rt){ye[++Ee]=[rt,Ne]}),ye}function uF(ue,Ee){return function(ye){return ue(Ee(ye))}}function zo(ue,Ee){for(var ye=-1,Ne=ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];(Mn===Ee||Mn===d)&&(ue[ye]=d,Tt[rt++]=ye)}return Tt}function sh(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=Ne}),ye}function s9(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=[Ne,Ne]}),ye}function a9(ue,Ee,ye){for(var Ne=ye-1,rt=ue.length;++Ne<rt;)if(ue[Ne]===Ee)return Ne;return-1}function l9(ue,Ee,ye){for(var Ne=ye+1;Ne--;)if(ue[Ne]===Ee)return Ne;return Ne}function Wa(ue){return za(ue)?u9(ue):qj(ue)}function HA(ue){return za(ue)?d9(ue):Xj(ue)}function dF(ue){for(var Ee=ue.length;Ee--&&Fr.test(ue.charAt(Ee)););return Ee}var c9=uw(Hj);function u9(ue){for(var Ee=Aw.lastIndex=0;Aw.test(ue);)++Ee;return Ee}function d9(ue){return ue.match(Aw)||[]}function f9(ue){return ue.match(Uj)||[]}var h9=(function ue(Ee){Ee=Ee==null?Xn:Ga.defaults(Xn.Object(),Ee,Ga.pick(Xn,Oj));var ye=Ee.Array,Ne=Ee.Date,rt=Ee.Error,Tt=Ee.Function,Mn=Ee.Math,Pt=Ee.Object,mw=Ee.RegExp,p9=Ee.String,hA=Ee.TypeError,ah=ye.prototype,m9=Tt.prototype,Ya=Pt.prototype,lh=Ee["__core-js_shared__"],ch=m9.toString,It=Ya.hasOwnProperty,g9=0,fF=(function(){var c=/[^.]+$/.exec(lh&&lh.keys&&lh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),uh=Ya.toString,v9=ch.call(Pt),w9=Xn._,B9=mw("^"+ch.call(It).replace(Po,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dh=Jx?Ee.Buffer:n,Wo=Ee.Symbol,fh=Ee.Uint8Array,hF=dh?dh.allocUnsafe:n,hh=uF(Pt.getPrototypeOf,Pt),pF=Pt.create,mF=Ya.propertyIsEnumerable,ph=ah.splice,gF=Wo?Wo.isConcatSpreadable:n,Tc=Wo?Wo.iterator:n,Ns=Wo?Wo.toStringTag:n,mh=(function(){try{var c=$s(Pt,"defineProperty");return c({},"",{}),c}catch{}})(),y9=Ee.clearTimeout!==Xn.clearTimeout&&Ee.clearTimeout,C9=Ne&&Ne.now!==Xn.Date.now&&Ne.now,b9=Ee.setTimeout!==Xn.setTimeout&&Ee.setTimeout,gh=Mn.ceil,vh=Mn.floor,gw=Pt.getOwnPropertySymbols,E9=dh?dh.isBuffer:n,vF=Ee.isFinite,k9=ah.join,S9=uF(Pt.keys,Pt),In=Mn.max,or=Mn.min,x9=Ne.now,F9=Ee.parseInt,wF=Mn.random,Q9=ah.reverse,vw=$s(Ee,"DataView"),Mc=$s(Ee,"Map"),ww=$s(Ee,"Promise"),qa=$s(Ee,"Set"),Ic=$s(Ee,"WeakMap"),Uc=$s(Pt,"create"),wh=Ic&&new Ic,Xa={},T9=Ks(vw),M9=Ks(Mc),I9=Ks(ww),U9=Ks(qa),_9=Ks(Ic),Bh=Wo?Wo.prototype:n,_c=Bh?Bh.valueOf:n,BF=Bh?Bh.toString:n;function L(c){if(cn(c)&&!it(c)&&!(c instanceof Bt)){if(c instanceof pA)return c;if(It.call(c,"__wrapped__"))return yQ(c)}return new pA(c)}var Ja=(function(){function c(){}return function(f){if(!rn(f))return{};if(pF)return pF(f);c.prototype=f;var g=new c;return c.prototype=n,g}})();function yh(){}function pA(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}L.templateSettings={escape:Us,evaluate:nn,interpolate:NA,variable:"",imports:{_:L}},L.prototype=yh.prototype,L.prototype.constructor=L,pA.prototype=Ja(yh.prototype),pA.prototype.constructor=pA;function Bt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=E,this.__views__=[]}function D9(){var c=new Bt(this.__wrapped__);return c.__actions__=Qr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Qr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Qr(this.__views__),c}function O9(){if(this.__filtered__){var c=new Bt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function N9(){var c=this.__wrapped__.value(),f=this.__dir__,g=it(c),b=f<0,M=g?c.length:0,H=XZ(0,M,this.__views__),Z=H.start,Ae=H.end,fe=Ae-Z,ke=b?Ae:Z-1,Se=this.__iteratees__,Fe=Se.length,Ue=0,Ke=or(fe,this.__takeCount__);if(!g||!b&&M==fe&&Ke==fe)return zF(c,this.__actions__);var je=[];e:for(;fe--&&Ue<Ke;){ke+=f;for(var ct=-1,Ze=c[ke];++ct<Fe;){var mt=Se[ct],yt=mt.iteratee,Gr=mt.type,Cr=yt(Ze);if(Gr==V)Ze=Cr;else if(!Cr){if(Gr==te)continue e;break e}}je[Ue++]=Ze}return je}Bt.prototype=Ja(yh.prototype),Bt.prototype.constructor=Bt;function Ls(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function L9(){this.__data__=Uc?Uc(null):{},this.size=0}function R9(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function H9(c){var f=this.__data__;if(Uc){var g=f[c];return g===l?n:g}return It.call(f,c)?f[c]:n}function P9(c){var f=this.__data__;return Uc?f[c]!==n:It.call(f,c)}function $9(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Uc&&f===n?l:f,this}Ls.prototype.clear=L9,Ls.prototype.delete=R9,Ls.prototype.get=H9,Ls.prototype.has=P9,Ls.prototype.set=$9;function Gi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function K9(){this.__data__=[],this.size=0}function z9(c){var f=this.__data__,g=Ch(f,c);if(g<0)return!1;var b=f.length-1;return g==b?f.pop():ph.call(f,g,1),--this.size,!0}function W9(c){var f=this.__data__,g=Ch(f,c);return g<0?n:f[g][1]}function G9(c){return Ch(this.__data__,c)>-1}function Y9(c,f){var g=this.__data__,b=Ch(g,c);return b<0?(++this.size,g.push([c,f])):g[b][1]=f,this}Gi.prototype.clear=K9,Gi.prototype.delete=z9,Gi.prototype.get=W9,Gi.prototype.has=G9,Gi.prototype.set=Y9;function Yi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function q9(){this.size=0,this.__data__={hash:new Ls,map:new(Mc||Gi),string:new Ls}}function X9(c){var f=_h(this,c).delete(c);return this.size-=f?1:0,f}function J9(c){return _h(this,c).get(c)}function j9(c){return _h(this,c).has(c)}function Z9(c,f){var g=_h(this,c),b=g.size;return g.set(c,f),this.size+=g.size==b?0:1,this}Yi.prototype.clear=q9,Yi.prototype.delete=X9,Yi.prototype.get=J9,Yi.prototype.has=j9,Yi.prototype.set=Z9;function Rs(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new Yi;++f<g;)this.add(c[f])}function V9(c){return this.__data__.set(c,l),this}function eZ(c){return this.__data__.has(c)}Rs.prototype.add=Rs.prototype.push=V9,Rs.prototype.has=eZ;function PA(c){var f=this.__data__=new Gi(c);this.size=f.size}function tZ(){this.__data__=new Gi,this.size=0}function nZ(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}function rZ(c){return this.__data__.get(c)}function AZ(c){return this.__data__.has(c)}function iZ(c,f){var g=this.__data__;if(g instanceof Gi){var b=g.__data__;if(!Mc||b.length<A-1)return b.push([c,f]),this.size=++g.size,this;g=this.__data__=new Yi(b)}return g.set(c,f),this.size=g.size,this}PA.prototype.clear=tZ,PA.prototype.delete=nZ,PA.prototype.get=rZ,PA.prototype.has=AZ,PA.prototype.set=iZ;function yF(c,f){var g=it(c),b=!g&&zs(c),M=!g&&!b&&Jo(c),H=!g&&!b&&!M&&el(c),Z=g||b||M||H,Ae=Z?fw(c.length,p9):[],fe=Ae.length;for(var ke in c)(f||It.call(c,ke))&&!(Z&&(ke=="length"||M&&(ke=="offset"||ke=="parent")||H&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||ji(ke,fe)))&&Ae.push(ke);return Ae}function CF(c){var f=c.length;return f?c[Tw(0,f-1)]:n}function oZ(c,f){return Dh(Qr(c),Hs(f,0,c.length))}function sZ(c){return Dh(Qr(c))}function Bw(c,f,g){(g!==n&&!$A(c[f],g)||g===n&&!(f in c))&&qi(c,f,g)}function Dc(c,f,g){var b=c[f];(!(It.call(c,f)&&$A(b,g))||g===n&&!(f in c))&&qi(c,f,g)}function Ch(c,f){for(var g=c.length;g--;)if($A(c[g][0],f))return g;return-1}function aZ(c,f,g,b){return Go(c,function(M,H,Z){f(b,M,g(M),Z)}),b}function bF(c,f){return c&&wi(f,Hn(f),c)}function lZ(c,f){return c&&wi(f,Mr(f),c)}function qi(c,f,g){f=="__proto__"&&mh?mh(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}function yw(c,f){for(var g=-1,b=f.length,M=ye(b),H=c==null;++g<b;)M[g]=H?n:tB(c,f[g]);return M}function Hs(c,f,g){return c===c&&(g!==n&&(c=c<=g?c:g),f!==n&&(c=c>=f?c:f)),c}function mA(c,f,g,b,M,H){var Z,Ae=f&h,fe=f&p,ke=f&m;if(g&&(Z=M?g(c,b,M,H):g(c)),Z!==n)return Z;if(!rn(c))return c;var Se=it(c);if(Se){if(Z=jZ(c),!Ae)return Qr(c,Z)}else{var Fe=sr(c),Ue=Fe==K||Fe==N;if(Jo(c))return YF(c,Ae);if(Fe==ce||Fe==re||Ue&&!M){if(Z=fe||Ue?{}:dQ(c),!Ae)return fe?HZ(c,lZ(Z,c)):RZ(c,bF(Z,c))}else{if(!Wt[Fe])return M?c:{};Z=ZZ(c,Fe,Ae)}}H||(H=new PA);var Ke=H.get(c);if(Ke)return Ke;H.set(c,Z),PQ(c)?c.forEach(function(Ze){Z.add(mA(Ze,f,g,Ze,c,H))}):RQ(c)&&c.forEach(function(Ze,mt){Z.set(mt,mA(Ze,f,g,mt,c,H))});var je=ke?fe?Pw:Hw:fe?Mr:Hn,ct=Se?n:je(c);return fA(ct||c,function(Ze,mt){ct&&(mt=Ze,Ze=c[mt]),Dc(Z,mt,mA(Ze,f,g,mt,c,H))}),Z}function cZ(c){var f=Hn(c);return function(g){return EF(g,c,f)}}function EF(c,f,g){var b=g.length;if(c==null)return!b;for(c=Pt(c);b--;){var M=g[b],H=f[M],Z=c[M];if(Z===n&&!(M in c)||!H(Z))return!1}return!0}function kF(c,f,g){if(typeof c!="function")throw new hA(o);return $c(function(){c.apply(n,g)},f)}function Oc(c,f,g,b){var M=-1,H=ih,Z=!0,Ae=c.length,fe=[],ke=f.length;if(!Ae)return fe;g&&(f=Zt(f,Kr(g))),b?(H=sw,Z=!1):f.length>=A&&(H=Qc,Z=!1,f=new Rs(f));e:for(;++M<Ae;){var Se=c[M],Fe=g==null?Se:g(Se);if(Se=b||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=ke;Ue--;)if(f[Ue]===Fe)continue e;fe.push(Se)}else H(f,Fe,b)||fe.push(Se)}return fe}var Go=ZF(vi),SF=ZF(bw,!0);function uZ(c,f){var g=!0;return Go(c,function(b,M,H){return g=!!f(b,M,H),g}),g}function bh(c,f,g){for(var b=-1,M=c.length;++b<M;){var H=c[b],Z=f(H);if(Z!=null&&(Ae===n?Z===Z&&!Wr(Z):g(Z,Ae)))var Ae=Z,fe=H}return fe}function dZ(c,f,g,b){var M=c.length;for(g=at(g),g<0&&(g=-g>M?0:M+g),b=b===n||b>M?M:at(b),b<0&&(b+=M),b=g>b?0:KQ(b);g<b;)c[g++]=f;return c}function xF(c,f){var g=[];return Go(c,function(b,M,H){f(b,M,H)&&g.push(b)}),g}function Jn(c,f,g,b,M){var H=-1,Z=c.length;for(g||(g=eV),M||(M=[]);++H<Z;){var Ae=c[H];f>0&&g(Ae)?f>1?Jn(Ae,f-1,g,b,M):Ko(M,Ae):b||(M[M.length]=Ae)}return M}var Cw=VF(),FF=VF(!0);function vi(c,f){return c&&Cw(c,f,Hn)}function bw(c,f){return c&&FF(c,f,Hn)}function Eh(c,f){return $o(f,function(g){return Zi(c[g])})}function Ps(c,f){f=qo(f,c);for(var g=0,b=f.length;c!=null&&g<b;)c=c[Bi(f[g++])];return g&&g==b?c:n}function QF(c,f,g){var b=f(c);return it(c)?b:Ko(b,g(c))}function Br(c){return c==null?c===n?Be:z:Ns&&Ns in Pt(c)?qZ(c):sV(c)}function Ew(c,f){return c>f}function fZ(c,f){return c!=null&&It.call(c,f)}function hZ(c,f){return c!=null&&f in Pt(c)}function pZ(c,f,g){return c>=or(f,g)&&c<In(f,g)}function kw(c,f,g){for(var b=g?sw:ih,M=c[0].length,H=c.length,Z=H,Ae=ye(H),fe=1/0,ke=[];Z--;){var Se=c[Z];Z&&f&&(Se=Zt(Se,Kr(f))),fe=or(Se.length,fe),Ae[Z]=!g&&(f||M>=120&&Se.length>=120)?new Rs(Z&&Se):n}Se=c[0];var Fe=-1,Ue=Ae[0];e:for(;++Fe<M&&ke.length<fe;){var Ke=Se[Fe],je=f?f(Ke):Ke;if(Ke=g||Ke!==0?Ke:0,!(Ue?Qc(Ue,je):b(ke,je,g))){for(Z=H;--Z;){var ct=Ae[Z];if(!(ct?Qc(ct,je):b(c[Z],je,g)))continue e}Ue&&Ue.push(je),ke.push(Ke)}}return ke}function mZ(c,f,g,b){return vi(c,function(M,H,Z){f(b,g(M),H,Z)}),b}function Nc(c,f,g){f=qo(f,c),c=mQ(c,f);var b=c==null?c:c[Bi(vA(f))];return b==null?n:$r(b,c,g)}function TF(c){return cn(c)&&Br(c)==re}function gZ(c){return cn(c)&&Br(c)==xe}function vZ(c){return cn(c)&&Br(c)==Ce}function Lc(c,f,g,b,M){return c===f?!0:c==null||f==null||!cn(c)&&!cn(f)?c!==c&&f!==f:wZ(c,f,g,b,Lc,M)}function wZ(c,f,g,b,M,H){var Z=it(c),Ae=it(f),fe=Z?ie:sr(c),ke=Ae?ie:sr(f);fe=fe==re?ce:fe,ke=ke==re?ce:ke;var Se=fe==ce,Fe=ke==ce,Ue=fe==ke;if(Ue&&Jo(c)){if(!Jo(f))return!1;Z=!0,Se=!1}if(Ue&&!Se)return H||(H=new PA),Z||el(c)?lQ(c,f,g,b,M,H):GZ(c,f,fe,g,b,M,H);if(!(g&v)){var Ke=Se&&It.call(c,"__wrapped__"),je=Fe&&It.call(f,"__wrapped__");if(Ke||je){var ct=Ke?c.value():c,Ze=je?f.value():f;return H||(H=new PA),M(ct,Ze,g,b,H)}}return Ue?(H||(H=new PA),YZ(c,f,g,b,M,H)):!1}function BZ(c){return cn(c)&&sr(c)==R}function Sw(c,f,g,b){var M=g.length,H=M,Z=!b;if(c==null)return!H;for(c=Pt(c);M--;){var Ae=g[M];if(Z&&Ae[2]?Ae[1]!==c[Ae[0]]:!(Ae[0]in c))return!1}for(;++M<H;){Ae=g[M];var fe=Ae[0],ke=c[fe],Se=Ae[1];if(Z&&Ae[2]){if(ke===n&&!(fe in c))return!1}else{var Fe=new PA;if(b)var Ue=b(ke,Se,fe,c,f,Fe);if(!(Ue===n?Lc(Se,ke,v|B,b,Fe):Ue))return!1}}return!0}function MF(c){if(!rn(c)||nV(c))return!1;var f=Zi(c)?B9:zi;return f.test(Ks(c))}function yZ(c){return cn(c)&&Br(c)==O}function CZ(c){return cn(c)&&sr(c)==se}function bZ(c){return cn(c)&&Ph(c.length)&&!!qt[Br(c)]}function IF(c){return typeof c=="function"?c:c==null?Ir:typeof c=="object"?it(c)?DF(c[0],c[1]):_F(c):eT(c)}function xw(c){if(!Pc(c))return S9(c);var f=[];for(var g in Pt(c))It.call(c,g)&&g!="constructor"&&f.push(g);return f}function EZ(c){if(!rn(c))return oV(c);var f=Pc(c),g=[];for(var b in c)b=="constructor"&&(f||!It.call(c,b))||g.push(b);return g}function Fw(c,f){return c<f}function UF(c,f){var g=-1,b=Tr(c)?ye(c.length):[];return Go(c,function(M,H,Z){b[++g]=f(M,H,Z)}),b}function _F(c){var f=Kw(c);return f.length==1&&f[0][2]?hQ(f[0][0],f[0][1]):function(g){return g===c||Sw(g,c,f)}}function DF(c,f){return Ww(c)&&fQ(f)?hQ(Bi(c),f):function(g){var b=tB(g,c);return b===n&&b===f?nB(g,c):Lc(f,b,v|B)}}function kh(c,f,g,b,M){c!==f&&Cw(f,function(H,Z){if(M||(M=new PA),rn(H))kZ(c,f,Z,g,kh,b,M);else{var Ae=b?b(Yw(c,Z),H,Z+"",c,f,M):n;Ae===n&&(Ae=H),Bw(c,Z,Ae)}},Mr)}function kZ(c,f,g,b,M,H,Z){var Ae=Yw(c,g),fe=Yw(f,g),ke=Z.get(fe);if(ke){Bw(c,g,ke);return}var Se=H?H(Ae,fe,g+"",c,f,Z):n,Fe=Se===n;if(Fe){var Ue=it(fe),Ke=!Ue&&Jo(fe),je=!Ue&&!Ke&&el(fe);Se=fe,Ue||Ke||je?it(Ae)?Se=Ae:wn(Ae)?Se=Qr(Ae):Ke?(Fe=!1,Se=YF(fe,!0)):je?(Fe=!1,Se=qF(fe,!0)):Se=[]:Kc(fe)||zs(fe)?(Se=Ae,zs(Ae)?Se=zQ(Ae):(!rn(Ae)||Zi(Ae))&&(Se=dQ(fe))):Fe=!1}Fe&&(Z.set(fe,Se),M(Se,fe,b,H,Z),Z.delete(fe)),Bw(c,g,Se)}function OF(c,f){var g=c.length;if(g)return f+=f<0?g:0,ji(f,g)?c[f]:n}function NF(c,f,g){f.length?f=Zt(f,function(H){return it(H)?function(Z){return Ps(Z,H.length===1?H[0]:H)}:H}):f=[Ir];var b=-1;f=Zt(f,Kr(Je()));var M=UF(c,function(H,Z,Ae){var fe=Zt(f,function(ke){return ke(H)});return{criteria:fe,index:++b,value:H}});return Zj(M,function(H,Z){return LZ(H,Z,g)})}function SZ(c,f){return LF(c,f,function(g,b){return nB(c,b)})}function LF(c,f,g){for(var b=-1,M=f.length,H={};++b<M;){var Z=f[b],Ae=Ps(c,Z);g(Ae,Z)&&Rc(H,qo(Z,c),Ae)}return H}function xZ(c){return function(f){return Ps(f,c)}}function Qw(c,f,g,b){var M=b?jj:Ka,H=-1,Z=f.length,Ae=c;for(c===f&&(f=Qr(f)),g&&(Ae=Zt(c,Kr(g)));++H<Z;)for(var fe=0,ke=f[H],Se=g?g(ke):ke;(fe=M(Ae,Se,fe,b))>-1;)Ae!==c&&ph.call(Ae,fe,1),ph.call(c,fe,1);return c}function RF(c,f){for(var g=c?f.length:0,b=g-1;g--;){var M=f[g];if(g==b||M!==H){var H=M;ji(M)?ph.call(c,M,1):Uw(c,M)}}return c}function Tw(c,f){return c+vh(wF()*(f-c+1))}function FZ(c,f,g,b){for(var M=-1,H=In(gh((f-c)/(g||1)),0),Z=ye(H);H--;)Z[b?H:++M]=c,c+=g;return Z}function Mw(c,f){var g="";if(!c||f<1||f>T)return g;do f%2&&(g+=c),f=vh(f/2),f&&(c+=c);while(f);return g}function ut(c,f){return qw(pQ(c,f,Ir),c+"")}function QZ(c){return CF(tl(c))}function TZ(c,f){var g=tl(c);return Dh(g,Hs(f,0,g.length))}function Rc(c,f,g,b){if(!rn(c))return c;f=qo(f,c);for(var M=-1,H=f.length,Z=H-1,Ae=c;Ae!=null&&++M<H;){var fe=Bi(f[M]),ke=g;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return c;if(M!=Z){var Se=Ae[fe];ke=b?b(Se,fe,Ae):n,ke===n&&(ke=rn(Se)?Se:ji(f[M+1])?[]:{})}Dc(Ae,fe,ke),Ae=Ae[fe]}return c}var HF=wh?function(c,f){return wh.set(c,f),c}:Ir,MZ=mh?function(c,f){return mh(c,"toString",{configurable:!0,enumerable:!1,value:AB(f),writable:!0})}:Ir;function IZ(c){return Dh(tl(c))}function gA(c,f,g){var b=-1,M=c.length;f<0&&(f=-f>M?0:M+f),g=g>M?M:g,g<0&&(g+=M),M=f>g?0:g-f>>>0,f>>>=0;for(var H=ye(M);++b<M;)H[b]=c[b+f];return H}function UZ(c,f){var g;return Go(c,function(b,M,H){return g=f(b,M,H),!g}),!!g}function Sh(c,f,g){var b=0,M=c==null?b:c.length;if(typeof f=="number"&&f===f&&M<=ne){for(;b<M;){var H=b+M>>>1,Z=c[H];Z!==null&&!Wr(Z)&&(g?Z<=f:Z<f)?b=H+1:M=H}return M}return Iw(c,f,Ir,g)}function Iw(c,f,g,b){var M=0,H=c==null?0:c.length;if(H===0)return 0;f=g(f);for(var Z=f!==f,Ae=f===null,fe=Wr(f),ke=f===n;M<H;){var Se=vh((M+H)/2),Fe=g(c[Se]),Ue=Fe!==n,Ke=Fe===null,je=Fe===Fe,ct=Wr(Fe);if(Z)var Ze=b||je;else ke?Ze=je&&(b||Ue):Ae?Ze=je&&Ue&&(b||!Ke):fe?Ze=je&&Ue&&!Ke&&(b||!ct):Ke||ct?Ze=!1:Ze=b?Fe<=f:Fe<f;Ze?M=Se+1:H=Se}return or(H,W)}function PF(c,f){for(var g=-1,b=c.length,M=0,H=[];++g<b;){var Z=c[g],Ae=f?f(Z):Z;if(!g||!$A(Ae,fe)){var fe=Ae;H[M++]=Z===0?0:Z}}return H}function $F(c){return typeof c=="number"?c:Wr(c)?F:+c}function zr(c){if(typeof c=="string")return c;if(it(c))return Zt(c,zr)+"";if(Wr(c))return BF?BF.call(c):"";var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Yo(c,f,g){var b=-1,M=ih,H=c.length,Z=!0,Ae=[],fe=Ae;if(g)Z=!1,M=sw;else if(H>=A){var ke=f?null:zZ(c);if(ke)return sh(ke);Z=!1,M=Qc,fe=new Rs}else fe=f?[]:Ae;e:for(;++b<H;){var Se=c[b],Fe=f?f(Se):Se;if(Se=g||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=fe.length;Ue--;)if(fe[Ue]===Fe)continue e;f&&fe.push(Fe),Ae.push(Se)}else M(fe,Fe,g)||(fe!==Ae&&fe.push(Fe),Ae.push(Se))}return Ae}function Uw(c,f){f=qo(f,c);var g=-1,b=f.length;if(!b)return!0;for(var M=c==null||typeof c!="object"&&typeof c!="function";++g<b;){var H=f[g];if(typeof H=="string"){if(H==="__proto__"&&!It.call(c,"__proto__"))return!1;if(H==="constructor"&&g+1<b&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(M&&g===0)continue;return!1}}}var Z=mQ(c,f);return Z==null||delete Z[Bi(vA(f))]}function KF(c,f,g,b){return Rc(c,f,g(Ps(c,f)),b)}function xh(c,f,g,b){for(var M=c.length,H=b?M:-1;(b?H--:++H<M)&&f(c[H],H,c););return g?gA(c,b?0:H,b?H+1:M):gA(c,b?H+1:0,b?M:H)}function zF(c,f){var g=c;return g instanceof Bt&&(g=g.value()),aw(f,function(b,M){return M.func.apply(M.thisArg,Ko([b],M.args))},g)}function _w(c,f,g){var b=c.length;if(b<2)return b?Yo(c[0]):[];for(var M=-1,H=ye(b);++M<b;)for(var Z=c[M],Ae=-1;++Ae<b;)Ae!=M&&(H[M]=Oc(H[M]||Z,c[Ae],f,g));return Yo(Jn(H,1),f,g)}function WF(c,f,g){for(var b=-1,M=c.length,H=f.length,Z={};++b<M;){var Ae=b<H?f[b]:n;g(Z,c[b],Ae)}return Z}function Dw(c){return wn(c)?c:[]}function Ow(c){return typeof c=="function"?c:Ir}function qo(c,f){return it(c)?c:Ww(c,f)?[c]:BQ(Ut(c))}var _Z=ut;function Xo(c,f,g){var b=c.length;return g=g===n?b:g,!f&&g>=b?c:gA(c,f,g)}var GF=y9||function(c){return Xn.clearTimeout(c)};function YF(c,f){if(f)return c.slice();var g=c.length,b=hF?hF(g):new c.constructor(g);return c.copy(b),b}function Nw(c){var f=new c.constructor(c.byteLength);return new fh(f).set(new fh(c)),f}function DZ(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}function OZ(c){var f=new c.constructor(c.source,uA.exec(c));return f.lastIndex=c.lastIndex,f}function NZ(c){return _c?Pt(_c.call(c)):{}}function qF(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}function XF(c,f){if(c!==f){var g=c!==n,b=c===null,M=c===c,H=Wr(c),Z=f!==n,Ae=f===null,fe=f===f,ke=Wr(f);if(!Ae&&!ke&&!H&&c>f||H&&Z&&fe&&!Ae&&!ke||b&&Z&&fe||!g&&fe||!M)return 1;if(!b&&!H&&!ke&&c<f||ke&&g&&M&&!b&&!H||Ae&&g&&M||!Z&&M||!fe)return-1}return 0}function LZ(c,f,g){for(var b=-1,M=c.criteria,H=f.criteria,Z=M.length,Ae=g.length;++b<Z;){var fe=XF(M[b],H[b]);if(fe){if(b>=Ae)return fe;var ke=g[b];return fe*(ke=="desc"?-1:1)}}return c.index-f.index}function JF(c,f,g,b){for(var M=-1,H=c.length,Z=g.length,Ae=-1,fe=f.length,ke=In(H-Z,0),Se=ye(fe+ke),Fe=!b;++Ae<fe;)Se[Ae]=f[Ae];for(;++M<Z;)(Fe||M<H)&&(Se[g[M]]=c[M]);for(;ke--;)Se[Ae++]=c[M++];return Se}function jF(c,f,g,b){for(var M=-1,H=c.length,Z=-1,Ae=g.length,fe=-1,ke=f.length,Se=In(H-Ae,0),Fe=ye(Se+ke),Ue=!b;++M<Se;)Fe[M]=c[M];for(var Ke=M;++fe<ke;)Fe[Ke+fe]=f[fe];for(;++Z<Ae;)(Ue||M<H)&&(Fe[Ke+g[Z]]=c[M++]);return Fe}function Qr(c,f){var g=-1,b=c.length;for(f||(f=ye(b));++g<b;)f[g]=c[g];return f}function wi(c,f,g,b){var M=!g;g||(g={});for(var H=-1,Z=f.length;++H<Z;){var Ae=f[H],fe=b?b(g[Ae],c[Ae],Ae,g,c):n;fe===n&&(fe=c[Ae]),M?qi(g,Ae,fe):Dc(g,Ae,fe)}return g}function RZ(c,f){return wi(c,zw(c),f)}function HZ(c,f){return wi(c,cQ(c),f)}function Fh(c,f){return function(g,b){var M=it(g)?Wj:aZ,H=f?f():{};return M(g,c,Je(b,2),H)}}function ja(c){return ut(function(f,g){var b=-1,M=g.length,H=M>1?g[M-1]:n,Z=M>2?g[2]:n;for(H=c.length>3&&typeof H=="function"?(M--,H):n,Z&&yr(g[0],g[1],Z)&&(H=M<3?n:H,M=1),f=Pt(f);++b<M;){var Ae=g[b];Ae&&c(f,Ae,b,H)}return f})}function ZF(c,f){return function(g,b){if(g==null)return g;if(!Tr(g))return c(g,b);for(var M=g.length,H=f?M:-1,Z=Pt(g);(f?H--:++H<M)&&b(Z[H],H,Z)!==!1;);return g}}function VF(c){return function(f,g,b){for(var M=-1,H=Pt(f),Z=b(f),Ae=Z.length;Ae--;){var fe=Z[c?Ae:++M];if(g(H[fe],fe,H)===!1)break}return f}}function PZ(c,f,g){var b=f&y,M=Hc(c);function H(){var Z=this&&this!==Xn&&this instanceof H?M:c;return Z.apply(b?g:this,arguments)}return H}function eQ(c){return function(f){f=Ut(f);var g=za(f)?HA(f):n,b=g?g[0]:f.charAt(0),M=g?Xo(g,1).join(""):f.slice(1);return b[c]()+M}}function Za(c){return function(f){return aw(ZQ(jQ(f).replace(Mj,"")),c,"")}}function Hc(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Ja(c.prototype),b=c.apply(g,f);return rn(b)?b:g}}function $Z(c,f,g){var b=Hc(c);function M(){for(var H=arguments.length,Z=ye(H),Ae=H,fe=Va(M);Ae--;)Z[Ae]=arguments[Ae];var ke=H<3&&Z[0]!==fe&&Z[H-1]!==fe?[]:zo(Z,fe);if(H-=ke.length,H<g)return iQ(c,f,Qh,M.placeholder,n,Z,ke,n,n,g-H);var Se=this&&this!==Xn&&this instanceof M?b:c;return $r(Se,this,Z)}return M}function tQ(c){return function(f,g,b){var M=Pt(f);if(!Tr(f)){var H=Je(g,3);f=Hn(f),g=function(Ae){return H(M[Ae],Ae,M)}}var Z=c(f,g,b);return Z>-1?M[H?f[Z]:Z]:n}}function nQ(c){return Ji(function(f){var g=f.length,b=g,M=pA.prototype.thru;for(c&&f.reverse();b--;){var H=f[b];if(typeof H!="function")throw new hA(o);if(M&&!Z&&Uh(H)=="wrapper")var Z=new pA([],!0)}for(b=Z?b:g;++b<g;){H=f[b];var Ae=Uh(H),fe=Ae=="wrapper"?$w(H):n;fe&&Gw(fe[0])&&fe[1]==(I|S|_|$)&&!fe[4].length&&fe[9]==1?Z=Z[Uh(fe[0])].apply(Z,fe[3]):Z=H.length==1&&Gw(H)?Z[Ae]():Z.thru(H)}return function(){var ke=arguments,Se=ke[0];if(Z&&ke.length==1&&it(Se))return Z.plant(Se).value();for(var Fe=0,Ue=g?f[Fe].apply(this,ke):Se;++Fe<g;)Ue=f[Fe].call(this,Ue);return Ue}})}function Qh(c,f,g,b,M,H,Z,Ae,fe,ke){var Se=f&I,Fe=f&y,Ue=f&w,Ke=f&(S|Q),je=f&Y,ct=Ue?n:Hc(c);function Ze(){for(var mt=arguments.length,yt=ye(mt),Gr=mt;Gr--;)yt[Gr]=arguments[Gr];if(Ke)var Cr=Va(Ze),Yr=e9(yt,Cr);if(b&&(yt=JF(yt,b,M,Ke)),H&&(yt=jF(yt,H,Z,Ke)),mt-=Yr,Ke&&mt<ke){var Bn=zo(yt,Cr);return iQ(c,f,Qh,Ze.placeholder,g,yt,Bn,Ae,fe,ke-mt)}var KA=Fe?g:this,eo=Ue?KA[c]:c;return mt=yt.length,Ae?yt=aV(yt,Ae):je&&mt>1&&yt.reverse(),Se&&fe<mt&&(yt.length=fe),this&&this!==Xn&&this instanceof Ze&&(eo=ct||Hc(eo)),eo.apply(KA,yt)}return Ze}function rQ(c,f){return function(g,b){return mZ(g,c,f(b),{})}}function Th(c,f){return function(g,b){var M;if(g===n&&b===n)return f;if(g!==n&&(M=g),b!==n){if(M===n)return b;typeof g=="string"||typeof b=="string"?(g=zr(g),b=zr(b)):(g=$F(g),b=$F(b)),M=c(g,b)}return M}}function Lw(c){return Ji(function(f){return f=Zt(f,Kr(Je())),ut(function(g){var b=this;return c(f,function(M){return $r(M,b,g)})})})}function Mh(c,f){f=f===n?" ":zr(f);var g=f.length;if(g<2)return g?Mw(f,c):f;var b=Mw(f,gh(c/Wa(f)));return za(f)?Xo(HA(b),0,c).join(""):b.slice(0,c)}function KZ(c,f,g,b){var M=f&y,H=Hc(c);function Z(){for(var Ae=-1,fe=arguments.length,ke=-1,Se=b.length,Fe=ye(Se+fe),Ue=this&&this!==Xn&&this instanceof Z?H:c;++ke<Se;)Fe[ke]=b[ke];for(;fe--;)Fe[ke++]=arguments[++Ae];return $r(Ue,M?g:this,Fe)}return Z}function AQ(c){return function(f,g,b){return b&&typeof b!="number"&&yr(f,g,b)&&(g=b=n),f=Vi(f),g===n?(g=f,f=0):g=Vi(g),b=b===n?f<g?1:-1:Vi(b),FZ(f,g,b,c)}}function Ih(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=wA(f),g=wA(g)),c(f,g)}}function iQ(c,f,g,b,M,H,Z,Ae,fe,ke){var Se=f&S,Fe=Se?Z:n,Ue=Se?n:Z,Ke=Se?H:n,je=Se?n:H;f|=Se?_:D,f&=~(Se?D:_),f&C||(f&=-4);var ct=[c,f,M,Ke,Fe,je,Ue,Ae,fe,ke],Ze=g.apply(n,ct);return Gw(c)&&gQ(Ze,ct),Ze.placeholder=b,vQ(Ze,c,f)}function Rw(c){var f=Mn[c];return function(g,b){if(g=wA(g),b=b==null?0:or(at(b),292),b&&vF(g)){var M=(Ut(g)+"e").split("e"),H=f(M[0]+"e"+(+M[1]+b));return M=(Ut(H)+"e").split("e"),+(M[0]+"e"+(+M[1]-b))}return f(g)}}var zZ=qa&&1/sh(new qa([,-0]))[1]==x?function(c){return new qa(c)}:sB;function oQ(c){return function(f){var g=sr(f);return g==R?pw(f):g==se?s9(f):Vj(f,c(f))}}function Xi(c,f,g,b,M,H,Z,Ae){var fe=f&w;if(!fe&&typeof c!="function")throw new hA(o);var ke=b?b.length:0;if(ke||(f&=-97,b=M=n),Z=Z===n?Z:In(at(Z),0),Ae=Ae===n?Ae:at(Ae),ke-=M?M.length:0,f&D){var Se=b,Fe=M;b=M=n}var Ue=fe?n:$w(c),Ke=[c,f,g,b,M,Se,Fe,H,Z,Ae];if(Ue&&iV(Ke,Ue),c=Ke[0],f=Ke[1],g=Ke[2],b=Ke[3],M=Ke[4],Ae=Ke[9]=Ke[9]===n?fe?0:c.length:In(Ke[9]-ke,0),!Ae&&f&(S|Q)&&(f&=-25),!f||f==y)var je=PZ(c,f,g);else f==S||f==Q?je=$Z(c,f,Ae):(f==_||f==(y|_))&&!M.length?je=KZ(c,f,g,b):je=Qh.apply(n,Ke);var ct=Ue?HF:gQ;return vQ(ct(je,Ke),c,f)}function sQ(c,f,g,b){return c===n||$A(c,Ya[g])&&!It.call(b,g)?f:c}function aQ(c,f,g,b,M,H){return rn(c)&&rn(f)&&(H.set(f,c),kh(c,f,n,aQ,H),H.delete(f)),c}function WZ(c){return Kc(c)?n:c}function lQ(c,f,g,b,M,H){var Z=g&v,Ae=c.length,fe=f.length;if(Ae!=fe&&!(Z&&fe>Ae))return!1;var ke=H.get(c),Se=H.get(f);if(ke&&Se)return ke==f&&Se==c;var Fe=-1,Ue=!0,Ke=g&B?new Rs:n;for(H.set(c,f),H.set(f,c);++Fe<Ae;){var je=c[Fe],ct=f[Fe];if(b)var Ze=Z?b(ct,je,Fe,f,c,H):b(je,ct,Fe,c,f,H);if(Ze!==n){if(Ze)continue;Ue=!1;break}if(Ke){if(!lw(f,function(mt,yt){if(!Qc(Ke,yt)&&(je===mt||M(je,mt,g,b,H)))return Ke.push(yt)})){Ue=!1;break}}else if(!(je===ct||M(je,ct,g,b,H))){Ue=!1;break}}return H.delete(c),H.delete(f),Ue}function GZ(c,f,g,b,M,H,Z){switch(g){case Pe:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case xe:return!(c.byteLength!=f.byteLength||!H(new fh(c),new fh(f)));case le:case Ce:case J:return $A(+c,+f);case ee:return c.name==f.name&&c.message==f.message;case O:case j:return c==f+"";case R:var Ae=pw;case se:var fe=b&v;if(Ae||(Ae=sh),c.size!=f.size&&!fe)return!1;var ke=Z.get(c);if(ke)return ke==f;b|=B,Z.set(c,f);var Se=lQ(Ae(c),Ae(f),b,M,H,Z);return Z.delete(c),Se;case be:if(_c)return _c.call(c)==_c.call(f)}return!1}function YZ(c,f,g,b,M,H){var Z=g&v,Ae=Hw(c),fe=Ae.length,ke=Hw(f),Se=ke.length;if(fe!=Se&&!Z)return!1;for(var Fe=fe;Fe--;){var Ue=Ae[Fe];if(!(Z?Ue in f:It.call(f,Ue)))return!1}var Ke=H.get(c),je=H.get(f);if(Ke&&je)return Ke==f&&je==c;var ct=!0;H.set(c,f),H.set(f,c);for(var Ze=Z;++Fe<fe;){Ue=Ae[Fe];var mt=c[Ue],yt=f[Ue];if(b)var Gr=Z?b(yt,mt,Ue,f,c,H):b(mt,yt,Ue,c,f,H);if(!(Gr===n?mt===yt||M(mt,yt,g,b,H):Gr)){ct=!1;break}Ze||(Ze=Ue=="constructor")}if(ct&&!Ze){var Cr=c.constructor,Yr=f.constructor;Cr!=Yr&&"constructor"in c&&"constructor"in f&&!(typeof Cr=="function"&&Cr instanceof Cr&&typeof Yr=="function"&&Yr instanceof Yr)&&(ct=!1)}return H.delete(c),H.delete(f),ct}function Ji(c){return qw(pQ(c,n,EQ),c+"")}function Hw(c){return QF(c,Hn,zw)}function Pw(c){return QF(c,Mr,cQ)}var $w=wh?function(c){return wh.get(c)}:sB;function Uh(c){for(var f=c.name+"",g=Xa[f],b=It.call(Xa,f)?g.length:0;b--;){var M=g[b],H=M.func;if(H==null||H==c)return M.name}return f}function Va(c){var f=It.call(L,"placeholder")?L:c;return f.placeholder}function Je(){var c=L.iteratee||iB;return c=c===iB?IF:c,arguments.length?c(arguments[0],arguments[1]):c}function _h(c,f){var g=c.__data__;return tV(f)?g[typeof f=="string"?"string":"hash"]:g.map}function Kw(c){for(var f=Hn(c),g=f.length;g--;){var b=f[g],M=c[b];f[g]=[b,M,fQ(M)]}return f}function $s(c,f){var g=A9(c,f);return MF(g)?g:n}function qZ(c){var f=It.call(c,Ns),g=c[Ns];try{c[Ns]=n;var b=!0}catch{}var M=uh.call(c);return b&&(f?c[Ns]=g:delete c[Ns]),M}var zw=gw?function(c){return c==null?[]:(c=Pt(c),$o(gw(c),function(f){return mF.call(c,f)}))}:aB,cQ=gw?function(c){for(var f=[];c;)Ko(f,zw(c)),c=hh(c);return f}:aB,sr=Br;(vw&&sr(new vw(new ArrayBuffer(1)))!=Pe||Mc&&sr(new Mc)!=R||ww&&sr(ww.resolve())!=k||qa&&sr(new qa)!=se||Ic&&sr(new Ic)!=ae)&&(sr=function(c){var f=Br(c),g=f==ce?c.constructor:n,b=g?Ks(g):"";if(b)switch(b){case T9:return Pe;case M9:return R;case I9:return k;case U9:return se;case _9:return ae}return f});function XZ(c,f,g){for(var b=-1,M=g.length;++b<M;){var H=g[b],Z=H.size;switch(H.type){case"drop":c+=Z;break;case"dropRight":f-=Z;break;case"take":f=or(f,c+Z);break;case"takeRight":c=In(c,f-Z);break}}return{start:c,end:f}}function JZ(c){var f=c.match(ve);return f?f[1].split(Ie):[]}function uQ(c,f,g){f=qo(f,c);for(var b=-1,M=f.length,H=!1;++b<M;){var Z=Bi(f[b]);if(!(H=c!=null&&g(c,Z)))break;c=c[Z]}return H||++b!=M?H:(M=c==null?0:c.length,!!M&&Ph(M)&&ji(Z,M)&&(it(c)||zs(c)))}function jZ(c){var f=c.length,g=new c.constructor(f);return f&&typeof c[0]=="string"&&It.call(c,"index")&&(g.index=c.index,g.input=c.input),g}function dQ(c){return typeof c.constructor=="function"&&!Pc(c)?Ja(hh(c)):{}}function ZZ(c,f,g){var b=c.constructor;switch(f){case xe:return Nw(c);case le:case Ce:return new b(+c);case Pe:return DZ(c,g);case ot:case $e:case ht:case wt:case Et:case En:case Yt:case Kt:case OA:return qF(c,g);case R:return new b;case J:case j:return new b(c);case O:return OZ(c);case se:return new b;case be:return NZ(c)}}function VZ(c,f){var g=f.length;if(!g)return c;var b=g-1;return f[b]=(g>1?"& ":"")+f[b],f=f.join(g>2?", ":" "),c.replace(LA,`{
|
|
149
|
+
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const o=ng(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:r},n);return o?[{type:"taskList",raw:o.raw,items:o.items}]:n.blockTokens(i)},A=ng(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,o)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:o}),customNestedParser:r},n);if(A)return{type:"taskList",raw:A.raw,items:A.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});on.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(wE.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(SE.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(ME.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(jK.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(ZK.configure(this.options.taskList)),t}});var IE=" ",VK=" ",ez=Rr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Jt(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===IE||r[0].text===VK)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?IE:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,nz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,rz=Eo.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Jt(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[bs({find:tz,type:this.type})]},addPasteRules(){return[ko({find:nz,type:this.type})]}}),Az=Rr.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),iz=Eo.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Jt(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const A=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!A)return;const i=A[2].trim();return{type:"underline",raw:A[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function oz(t={}){return new en({view(e){return new sz(e,t)}})}class sz{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(A=>{let i=o=>{this[A](o)};return e.dom.addEventListener(A,i),{name:A,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,A=this.editorView.dom,i=A.getBoundingClientRect(),o=i.width/A.offsetWidth,a=i.height/A.offsetHeight;if(n){let h=e.nodeBefore,p=e.nodeAfter;if(h||p){let m=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(m){let v=m.getBoundingClientRect(),B=h?v.bottom:v.top;h&&p&&(B=(B+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let y=this.width/2*a;r={left:v.left,right:v.right,top:B-y,bottom:B+y}}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*o;r={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.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);let u,d;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,d=-pageYOffset;else{let h=l.getBoundingClientRect(),p=h.width/l.offsetWidth,m=h.height/l.offsetHeight;u=h.left-l.scrollLeft*p,d=h.top-l.scrollTop*m}this.element.style.left=(r.left-u)/o+"px",this.element.style.top=(r.top-d)/a+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),A=r&&r.type.spec.disableDropCursor,i=typeof A=="function"?A(this.editorView,n,e):A;if(n&&!i){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=FC(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class an extends st{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return an.valid(r)?new an(r):st.near(r)}content(){return De.empty}eq(e){return e instanceof an&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new an(e.resolve(n.pos))}getBookmark(){return new Mg(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!az(e)||!lz(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let A=n.contentMatchAt(e.index()).defaultType;return A&&A.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&an.valid(e))return e;let A=e.pos,i=null;for(let o=e.depth;;o--){let a=e.node(o);if(n>0?e.indexAfter(o)<a.childCount:e.index(o)>0){i=a.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;A+=n;let l=e.doc.resolve(A);if(an.valid(l))return l}for(;;){let o=n>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!Ye.isSelectable(i)){e=e.doc.resolve(A+i.nodeSize*n),r=!1;continue e}break}i=o,A+=n;let a=e.doc.resolve(A);if(an.valid(a))return a}return null}}}an.prototype.visible=!1,an.findFrom=an.findGapCursorFrom,st.jsonID("gapcursor",an);class Mg{constructor(e){this.pos=e}map(e){return new Mg(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return an.valid(n)?new an(n):st.near(n)}}function az(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n-1);;A=A.lastChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function lz(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n);;A=A.firstChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function cz(){return new en({props:{decorations:hz,createSelectionBetween(t,e,n){return e.pos==n.pos&&an.valid(n)?new an(n):null},handleClick:dz,handleKeyDown:uz,handleDOMEvents:{beforeinput:fz}}})}const uz=h1({ArrowLeft:Gd("horiz",-1),ArrowRight:Gd("horiz",1),ArrowUp:Gd("vert",-1),ArrowDown:Gd("vert",1)});function Gd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,A,i){let o=r.selection,a=e>0?o.$to:o.$from,l=o.empty;if(o instanceof nt){if(!i.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=an.findGapCursorFrom(a,e,l);return u?(A&&A(r.tr.setSelection(new an(u))),!0):!1}}function dz(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!an.valid(r))return!1;let A=t.posAtCoords({left:n.clientX,top:n.clientY});return A&&A.inside>-1&&Ye.isSelectable(t.state.doc.nodeAt(A.inside))?!1:(t.dispatch(t.state.tr.setSelection(new an(r))),!0)}function fz(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof an))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let A=Qe.empty;for(let o=r.length-1;o>=0;o--)A=Qe.from(r[o].createAndFill(null,A));let i=t.state.tr.replace(n.pos,n.pos,new De(A,0,0));return i.setSelection(nt.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function hz(t){if(!(t.selection instanceof an))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",tn.create(t.doc,[gr.widget(t.selection.head,e,{key:"gapcursor"})])}var Yd=200,Nn=function(){};Nn.prototype.append=function(e){return e.length?(e=Nn.from(e),!this.length&&e||e.length<Yd&&this.leafAppend(e)||this.length<Yd&&e.leafPrepend(this)||this.appendInner(e)):this},Nn.prototype.prepend=function(e){return e.length?Nn.from(e).append(this):this},Nn.prototype.appendInner=function(e){return new pz(this,e)},Nn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Nn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Nn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Nn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Nn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var A=[];return this.forEach(function(i,o){return A.push(e(i,o))},n,r),A},Nn.from=function(e){return e instanceof Nn?e:e&&e.length?new UE(e):Nn.empty};var UE=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(A,i){return A==0&&i==this.length?this:new e(this.values.slice(A,i))},e.prototype.getInner=function(A){return this.values[A]},e.prototype.forEachInner=function(A,i,o,a){for(var l=i;l<o;l++)if(A(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(A,i,o,a){for(var l=i-1;l>=o;l--)if(A(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(A){if(this.length+A.length<=Yd)return new e(this.values.concat(A.flatten()))},e.prototype.leafPrepend=function(A){if(this.length+A.length<=Yd)return new e(A.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Nn);Nn.empty=new UE([]);var pz=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,A,i,o){var a=this.left.length;if(A<a&&this.left.forEachInner(r,A,Math.min(i,a),o)===!1||i>a&&this.right.forEachInner(r,Math.max(A-a,0),Math.min(this.length,i)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,A,i,o){var a=this.left.length;if(A>a&&this.right.forEachInvertedInner(r,A-a,Math.max(i,a)-a,o+a)===!1||i<a&&this.left.forEachInvertedInner(r,Math.min(A,a),i,o)===!1)return!1},e.prototype.sliceInner=function(r,A){if(r==0&&A==this.length)return this;var i=this.left.length;return A<=i?this.left.slice(r,A):r>=i?this.right.slice(r-i,A-i):this.left.slice(r,i).append(this.right.slice(0,A-i))},e.prototype.leafAppend=function(r){var A=this.right.leafAppend(r);if(A)return new e(this.left,A)},e.prototype.leafPrepend=function(r){var A=this.left.leafPrepend(r);if(A)return new e(A,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Nn);const mz=500;class IA{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let A,i;n&&(A=this.remapping(r,this.items.length),i=A.maps.length);let o=e.tr,a,l,u=[],d=[];return this.items.forEach((h,p)=>{if(!h.step){A||(A=this.remapping(r,p+1),i=A.maps.length),i--,d.push(h);return}if(A){d.push(new ai(h.map));let m=h.step.map(A.slice(i)),v;m&&o.maybeStep(m).doc&&(v=o.mapping.maps[o.mapping.maps.length-1],u.push(new ai(v,void 0,void 0,u.length+d.length))),i--,v&&A.appendMap(v,i)}else o.maybeStep(h.step);if(h.selection)return a=A?h.selection.map(A.slice(i)):h.selection,l=new IA(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:a}}addTransform(e,n,r,A){let i=[],o=this.eventCount,a=this.items,l=!A&&a.length?a.get(a.length-1):null;for(let d=0;d<e.steps.length;d++){let h=e.steps[d].invert(e.docs[d]),p=new ai(e.mapping.maps[d],h,n),m;(m=l&&l.merge(p))&&(p=m,d?i.pop():a=a.slice(0,a.length-1)),i.push(p),n&&(o++,n=void 0),A||(l=p)}let u=o-r.depth;return u>vz&&(a=gz(a,u),o-=u),new IA(a.append(i),o)}remapping(e,n){let r=new Ml;return this.items.forEach((A,i)=>{let o=A.mirrorOffset!=null&&i-A.mirrorOffset>=e?r.maps.length-A.mirrorOffset:void 0;r.appendMap(A.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new IA(this.items.append(e.map(n=>new ai(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],A=Math.max(0,this.items.length-n),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(p=>{p.selection&&a--},A);let l=n;this.items.forEach(p=>{let m=i.getMirror(--l);if(m==null)return;o=Math.min(o,m);let v=i.maps[m];if(p.step){let B=e.steps[m].invert(e.docs[m]),y=p.selection&&p.selection.map(i.slice(l+1,m));y&&a++,r.push(new ai(v,B,y))}else r.push(new ai(v))},A);let u=[];for(let p=n;p<o;p++)u.push(new ai(i.maps[p]));let d=this.items.slice(0,A).append(u).append(r),h=new IA(d,a);return h.emptyItemCount()>mz&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,A=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)A.push(o),o.selection&&i++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let d=o.selection&&o.selection.map(n.slice(r));d&&i++;let h=new ai(u.invert(),l,d),p,m=A.length-1;(p=A.length&&A[m].merge(h))?A[m]=p:A.push(h)}}else o.map&&r--},this.items.length,0),new IA(Nn.from(A.reverse()),i)}}IA.empty=new IA(Nn.empty,0);function gz(t,e){let n;return t.forEach((r,A)=>{if(r.selection&&e--==0)return n=A,!1}),t.slice(n)}class ai{constructor(e,n,r,A){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=A}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ai(n.getMap().invert(),n,this.selection)}}}class Qo{constructor(e,n,r,A,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=A,this.prevComposition=i}}const vz=20;function wz(t,e,n,r){let A=n.getMeta(Ss),i;if(A)return A.historyState;n.getMeta(Cz)&&(t=new Qo(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(Ss))return o.getMeta(Ss).redo?new Qo(t.done.addTransform(n,void 0,r,qd(e)),t.undone,_E(n.mapping.maps),t.prevTime,t.prevComposition):new Qo(t.done,t.undone.addTransform(n,void 0,r,qd(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!Bz(n,t.prevRanges)),u=o?Ig(t.prevRanges,n.mapping):_E(n.mapping.maps);return new Qo(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,qd(e)),IA.empty,u,n.time,a??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Qo(t.done.rebased(n,i),t.undone.rebased(n,i),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Qo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Bz(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,A)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&A>=e[i]&&(n=!0)}),n}function _E(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,A,i,o)=>e.push(i,o));return e}function Ig(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let A=e.map(t[r],1),i=e.map(t[r+1],-1);A<=i&&n.push(A,i)}return n}function yz(t,e,n){let r=qd(e),A=Ss.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let o=i.selection.resolve(i.transform.doc),a=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),A,r),l=new Qo(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(o).setMeta(Ss,{redo:n,historyState:l})}let Ug=!1,DE=null;function qd(t){let e=t.plugins;if(DE!=e){Ug=!1,DE=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ug=!0;break}}return Ug}const Ss=new xn("history"),Cz=new xn("closeHistory");function bz(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new en({key:Ss,state:{init(){return new Qo(IA.empty,IA.empty,null,0,-1)},apply(e,n,r){return wz(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,A=r=="historyUndo"?NE:r=="historyRedo"?LE:null;return A?(n.preventDefault(),A(e.state,e.dispatch)):!1}}}})}function OE(t,e){return(n,r)=>{let A=Ss.getState(n);if(!A||(t?A.undone:A.done).eventCount==0)return!1;if(r){let i=yz(A,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const NE=OE(!1,!0),LE=OE(!0,!0);on.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new en({key:new xn("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const A=this.options.limit;if(A==null||A===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>A){const o=i-A,a=0,l=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${A} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const A=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||A>r&&i>r&&i<=A)return!0;if(A>r&&i>r&&i>A||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=i-r,u=a-l,d=a;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>r)}})]}});var Ez=on.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[oz(this.options)]}});on.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new en({key:new xn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:A}=e,i=[];if(!n||!r)return tn.create(t,[]);let o=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(A>=u&&A<=u+l.nodeSize-1))return!1;o+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(A>=u&&A<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&o-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";i.push(gr.node(u,u+l.nodeSize,{class:this.options.className}))}),tn.create(t,i)}}})]}});var kz=on.create({name:"gapCursor",addProseMirrorPlugins(){return[cz()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ot(Ge(t,"allowGapCursor",n)))!=null?e:null}}}),RE="placeholder";function Sz(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}on.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:RE,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${Sz(this.options.dataAttribute)}`:`data-${RE}`;return[new en({key:new xn("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:A}=n,i=[];if(!r)return null;const o=this.editor.isEmpty;return e.descendants((a,l)=>{const u=A>=l&&A<=l+a.nodeSize,d=!a.isLeaf&&sd(a);if((u||!this.options.showOnlyCurrent)&&d){const h=[this.options.emptyNodeClass];o&&h.push(this.options.emptyEditorClass);const p=gr.node(l,l+a.nodeSize,{class:h.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),tn.create(e,i)}}})]}}),on.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new en({key:new xn("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||L1(n.selection)||t.view.dragging?null:tn.create(n.doc,[gr.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function HE({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var xz=on.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new xn(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,A])=>A).filter(A=>(this.options.notAfter||[]).concat(n).includes(A.name));return[new en({key:e,appendTransaction:(A,i,o)=>{const{doc:a,tr:l,schema:u}=o,d=e.getState(o),h=a.content.size,p=u.nodes[n];if(d)return l.insert(h,p.create())},state:{init:(A,i)=>{const o=i.tr.doc.lastChild;return!HE({node:o,types:r})},apply:(A,i)=>{if(!A.docChanged||A.getMeta("__uniqueIDTransaction"))return i;const o=A.doc.lastChild;return!HE({node:o,types:r})}}})]}}),Fz=on.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>NE(t,e),redo:()=>({state:t,dispatch:e})=>LE(t,e)}},addProseMirrorPlugins(){return[bz(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()}}}),Qz=on.create({name:"starterKit",addExtensions(){var t,e,n,r;const A=[];return this.options.bold!==!1&&A.push(mE.configure(this.options.bold)),this.options.blockquote!==!1&&A.push(BK.configure(this.options.blockquote)),this.options.bulletList!==!1&&A.push(wE.configure(this.options.bulletList)),this.options.code!==!1&&A.push(FK.configure(this.options.code)),this.options.codeBlock!==!1&&A.push(MK.configure(this.options.codeBlock)),this.options.document!==!1&&A.push(IK.configure(this.options.document)),this.options.dropcursor!==!1&&A.push(Ez.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&A.push(kz.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&A.push(UK.configure(this.options.hardBreak)),this.options.heading!==!1&&A.push(_K.configure(this.options.heading)),this.options.undoRedo!==!1&&A.push(Fz.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&A.push(DK.configure(this.options.horizontalRule)),this.options.italic!==!1&&A.push(HK.configure(this.options.italic)),this.options.listItem!==!1&&A.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&A.push(SE.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&A.push(pE.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&A.push(ME.configure(this.options.orderedList)),this.options.paragraph!==!1&&A.push(ez.configure(this.options.paragraph)),this.options.strike!==!1&&A.push(rz.configure(this.options.strike)),this.options.text!==!1&&A.push(Az.configure(this.options.text)),this.options.underline!==!1&&A.push(iz.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&A.push(xz.configure((r=this.options)==null?void 0:r.trailingNode)),A}}),Tz=Qz;function PE(t){return s.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var Mz=class extends I${constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=PE(this.view.state),this.reactiveExtensionStorage=PE(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},Iz=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=s.ref(),n=s.getCurrentInstance();return s.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&s.nextTick(()=>{var A;if(!e.value||!((A=r.view.dom)!=null&&A.parentNode))return;const i=s.unref(e.value);e.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),s.onBeforeUnmount(()=>{const r=t.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:t=>{this.rootEl=t}})}});s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var Uz=(t={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new Mz(t)}),s.onBeforeUnmount(()=>{var n,r,A,i;const o=(r=(n=e.value)==null?void 0:n.view.dom)==null?void 0:r.parentNode,a=o?.cloneNode(!0);(A=o?.parentNode)==null||A.replaceChild(a,o),(i=e.value)==null||i.destroy()}),e};s.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return s.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});const _z={class:"rte-editor"},Dz={key:0,class:"rte-editor__controls mb-2"},Oz=["disabled"],Nz=["disabled"],Lz={class:"btn-group"},Rz=["disabled"],Hz=["disabled"],Pz={class:"btn-group"},$z={class:"dropdown"},Kz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},zz={class:"dropdown-menu"},Wz={class:"dropdown"},Gz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},Yz={class:"dropdown-menu"},qz={class:"btn-group"},Xz=["disabled"],Jz=["disabled"],jz=s.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},iconBasePath:{type:String,default:"/rte-icons-defs.svg"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=Uz({content:n.modelValue,onUpdate:()=>{r("update:modelValue",i.value?.getHTML())},extensions:[Tz.configure({bold:!1}),kK.extend({addAttributes(){return{class:{default:null}}},parseHTML(){return[{tag:"strong"},{tag:"b"}]},renderHTML({HTMLAttributes:u}){return["strong",Jt(this.options.HTMLAttributes,u),0]}}),Y$.configure({types:["heading","paragraph"]}),W$,vK.extend({addAttributes(){return{...this.parent?.(),class:{default:null},id:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:u=>({href:u.getAttribute("href"),target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})},{tag:"a:not([href])",getAttrs:u=>({href:null,target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})}]},renderHTML({HTMLAttributes:u}){if(!u.href){const{href:d,target:h,rel:p,...m}=u;return["a",Jt(m),0]}return["a",Jt(this.options.HTMLAttributes,u),0]}}).configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["http","https"],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})]});s.watch(()=>n.modelValue,(u,d)=>{if(i.value){if(i.value.getHTML()===u)return;i.value.commands.setContent(u)}});function o(){const u=i.value?.getAttributes("link").href,d=window.prompt("URL",u);if(d!==null){if(d===""){i.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}try{i.value?.chain().focus().extendMarkRange("link").setLink({href:d}).run()}catch(h){alert(h.message)}}}const a=()=>{i.value?.commands.setContent(`<textarea>${i.value.getHTML()}</textarea>`),A.value=!0},l=()=>{i.value?.commands.setContent(i.value.getText()),A.value=!1};return(u,d)=>{const h=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",_z,[s.unref(i)?(s.openBlock(),s.createElementBlock("div",Dz,[A.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"btn btn-sm btn-light is-active",onClick:l,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],8,Nz)):(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("code")}]),onClick:a,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],10,Oz)),s.createElementVNode("div",Lz,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bold")}]),onClick:d[0]||(d[0]=p=>s.unref(i)?.chain().focus().toggleBold().run()),disabled:!s.unref(i).can().chain().focus().toggleBold().run(),title:"Toggle Bold"},[s.createVNode(h,{symbol:"bold","base-path":t.iconBasePath},null,8,["base-path"])],10,Rz),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("italic")}]),onClick:d[1]||(d[1]=p=>s.unref(i)?.chain().focus().toggleItalic().run()),disabled:!s.unref(i).can().chain().focus().toggleItalic().run(),title:"Toggle Italic"},[s.createVNode(h,{symbol:"italic","base-path":t.iconBasePath},null,8,["base-path"])],10,Hz)]),s.createElementVNode("div",Pz,[s.createElementVNode("div",$z,[s.createElementVNode("button",Kz,[s.unref(i).isActive("heading",{level:1})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:2})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:3})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:4})?(s.openBlock(),s.createBlock(h,{key:3,symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:4,symbol:"headline","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",zz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:1})}]),onClick:d[2]||(d[2]=p=>s.unref(i)?.chain().focus().setHeading({level:1}).run()),title:"Set Heading 1"},[s.createVNode(h,{symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:2})}]),onClick:d[3]||(d[3]=p=>s.unref(i)?.chain().focus().setHeading({level:2}).run()),title:"Set Heading 2"},[s.createVNode(h,{symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:3})}]),onClick:d[4]||(d[4]=p=>s.unref(i)?.chain().focus().setHeading({level:3}).run()),title:"Set Heading 3"},[s.createVNode(h,{symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:4})}]),onClick:d[5]||(d[5]=p=>s.unref(i)?.chain().focus().setHeading({level:4}).run()),title:"Set Heading 4"},[s.createVNode(h,{symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("paragraph")}]),onClick:d[6]||(d[6]=p=>s.unref(i)?.chain().focus().setParagraph().run()),title:"Set Paragraph"},[s.createVNode(h,{symbol:"paragraph","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bulletList")}]),onClick:d[7]||(d[7]=p=>s.unref(i)?.chain().focus().toggleBulletList().run()),title:"Toggle Bullet List"},[s.createVNode(h,{symbol:"list","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("orderedList")}]),onClick:d[8]||(d[8]=p=>s.unref(i)?.chain().focus().toggleOrderedList().run()),title:"Toggle Ordered List"},[s.createVNode(h,{symbol:"ordered-list","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("div",Wz,[s.createElementVNode("button",Gz,[s.unref(i).isActive({textAlign:"center"})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"left"})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"right"})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:3,symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",Yz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"left"})}]),onClick:d[9]||(d[9]=p=>s.unref(i)?.chain().focus().setTextAlign("left").run())},[s.createVNode(h,{symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"center"})}]),onClick:d[10]||(d[10]=p=>s.unref(i)?.chain().focus().setTextAlign("center").run())},[s.createVNode(h,{symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"right"})}]),onClick:d[11]||(d[11]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"pretty"})}]),onClick:d[12]||(d[12]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.unref(i).isActive("link")?(s.openBlock(),s.createElementBlock("button",{key:3,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:d[13]||(d[13]=p=>s.unref(i).chain().focus().unsetLink().run()),title:"Unset Link"},[s.createVNode(h,{symbol:"unlink","base-path":t.iconBasePath},null,8,["base-path"])],2)):(s.openBlock(),s.createElementBlock("button",{key:2,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:o,title:"Set Link"},[s.createVNode(h,{symbol:"link","base-path":t.iconBasePath},null,8,["base-path"])],2)),s.createElementVNode("div",qz,[s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[14]||(d[14]=p=>s.unref(i)?.chain().focus().undo().run()),disabled:!s.unref(i).can().chain().focus().undo().run(),title:"Undo"},[s.createVNode(h,{symbol:"undo","base-path":t.iconBasePath},null,8,["base-path"])],8,Xz),s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[15]||(d[15]=p=>s.unref(i)?.chain().focus().redo().run()),disabled:!s.unref(i).can().chain().focus().redo().run(),title:"Redo"},[s.createVNode(h,{symbol:"redo","base-path":t.iconBasePath},null,8,["base-path"])],8,Jz)])])):s.createCommentVNode("",!0),s.createVNode(s.unref(Iz),{class:"rte-editor__content",editor:s.unref(i)},null,8,["editor"])])}}}),Zz={class:"input-color"},Vz={class:"base-input__color-swatch"},e5=["name","id","disabled","read-only","required","aria-label"],t5=s.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>{const a=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",Zz,[s.createVNode(a,{modelValue:A.value,"onUpdate:modelValue":o[1]||(o[1]=l=>A.value=l),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":s.withCtx(l=>[s.createElementVNode("span",Vz,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=u=>A.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,e5),[[s.vModelText,A.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),n5={class:"color-palette"},r5=["for"],A5=s.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",n5,[s.createVNode(xu,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:s.normalizeStyle({backgroundColor:a.option})},null,12,r5)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),i5=["id"],o5=["for","innerHTML"],s5={class:"dropdown"},a5={class:"caption"},l5=["innerHTML"],c5={class:"caption__text"},u5={class:"d-block text-truncate"},d5={class:"dropdown-menu"},f5={class:"form-check"},h5=["value","id","name","label","required","disabled"],p5=["value","id","name","label","required","disabled"],m5=["for"],g5=s.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${Ct()}`},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:n}=Sl(),r=t,A=e,i=s.computed({get(){return r.multiple&&!r.modelValue?[]:r.modelValue},set(l){A("update:modelValue",l)}}),o=s.computed(()=>r.options&&r.options.map(l=>(l=typeof l=="string"?{text:l,value:l}:l,{...l,active:r.modelValue&&l.value&&(r.exactMatch?r.modelValue===l.value:r.multiple?r.modelValue.includes(l.value):r.modelValue===l.value)}))),a=s.computed(()=>{if(!r.modelValue)return r.placeholder||`${n("common.select")}`;if(r.multiple&&Array.isArray(r.modelValue)&&r.modelValue.length)return o.value.reduce((l,u)=>r.modelValue.includes(u.value)?`${l}${l?", ":""}${u.text}`:l,"");if(!r.multiple){const l=o.value.find(u=>u.value===r.modelValue);return l?l.text:r.placeholder||`${n("common.select")}`}return r.placeholder||`${n("common.select")}`});return(l,u)=>{const d=s.resolveComponent("base-button");return s.openBlock(),s.createElementBlock("div",{class:"input input-dropdown",id:`${t.id||t.name}`},[s.renderSlot(l.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:`${t.id||t.name}--dropdown-toggle`,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,o5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",s5,[s.createVNode(d,{id:`${t.id||t.name}--dropdown-toggle`,"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:s.withCtx(()=>[s.createElementVNode("span",a5,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(s.openBlock(),s.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,l5)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("span",c5,[s.createElementVNode("span",u5,s.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["id","title","color","outlined","disabled"]),s.createElementVNode("ul",d5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(h,p)=>(s.openBlock(),s.createElementBlock("li",{key:`${h.value}-${p}`},[s.createElementVNode("div",{class:s.normalizeClass(["dropdown-item",h.active&&"active"])},[s.createElementVNode("div",f5,[t.multiple?s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__if`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,h5)),[[s.vModelCheckbox,i.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__else`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,p5)),[[s.vModelRadio,i.value]]),s.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${p}`},s.toDisplayString(h.text),9,m5)])],2)]))),128))])])],8,i5)}}}),v5={key:0,class:"auto-suggest__suggestions position-relative"},w5={class:"suggestions dropdown-menu show w-100 mt-2"},B5=["onClick"],y5=["innerHTML"],C5=s.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(!1),o=s.computed({get(){return n.modelValue},set(m){r("update:modelValue",m)}}),a=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return o.value?n.options.filter(v=>m.test(v)):n.options}),l=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return a.value.map(v=>{const B=v.replace(m,"<strong>$1</strong>");return Ur(B)})});s.watch(()=>n.options,(m,v)=>{m.length&&(i.value=!0)},{deep:!0});function u(){n.options.length&&(i.value=!0)}function d(m){i.value=!1;const v=a.value[m];r("update:modelValue",v),r("update:selection",v)}const h=s.ref();function p(m){const v=m.target;i.value&&v&&!A.value.contains(v)&&(i.value=!1)}return s.onBeforeMount(()=>{h.value=document.addEventListener("click",p)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(m,v)=>{const B=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:A},[s.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[s.renderSlot(m.$slots,"default",{},()=>[s.createVNode(B,s.mergeProps({modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=y=>o.value=y)},m.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(s.openBlock(),s.createElementBlock("div",v5,[s.createElementVNode("ul",w5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(y,w)=>(s.openBlock(),s.createElementBlock("li",{key:y,class:"suggestions__item dropdown-item",onClick:s.withModifiers(C=>d(w),["prevent"])},[s.createElementVNode("p",{class:"text-truncate my-2",innerHTML:y},null,8,y5)],8,B5))),128))])])):s.createCommentVNode("",!0)],512)}}});var Xd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ac={exports:{}};var E5=Ac.exports,$E;function k5(){return $E||($E=1,(function(t,e){(function(){var n,r="4.17.23",A=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,p=2,m=4,v=1,B=2,y=1,w=2,C=4,S=8,Q=16,_=32,D=64,I=128,$=256,Y=512,de=30,ge="...",me=800,we=16,te=1,V=2,q=3,x=1/0,T=9007199254740991,P=17976931348623157e292,F=NaN,E=4294967295,W=E-1,ne=E>>>1,X=[["ary",I],["bind",y],["bindKey",w],["curry",S],["curryRight",Q],["flip",Y],["partial",_],["partialRight",D],["rearg",$]],re="[object Arguments]",Ae="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",Ce="[object Date]",G="[object DOMException]",ee="[object Error]",K="[object Function]",N="[object GeneratorFunction]",R="[object Map]",J="[object Number]",z="[object Null]",ce="[object Object]",k="[object Promise]",U="[object Proxy]",O="[object RegExp]",se="[object Set]",j="[object String]",be="[object Symbol]",Be="[object Undefined]",ae="[object WeakMap]",he="[object WeakSet]",xe="[object ArrayBuffer]",Pe="[object DataView]",ot="[object Float32Array]",$e="[object Float64Array]",ht="[object Int8Array]",wt="[object Int16Array]",Et="[object Int32Array]",En="[object Uint8Array]",Yt="[object Uint8ClampedArray]",Kt="[object Uint16Array]",OA="[object Uint32Array]",pi=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,gn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tn=/&(?:amp|lt|gt|quot|#39);/g,mi=/[&<>"']/g,wr=RegExp(Tn.source),Ho=RegExp(mi.source),Us=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,NA=/<%=([\s\S]+?)%>/g,Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ra=/^\w*$/,_s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Po=/[\\^$.*+?()[\]{}|]/g,Ha=RegExp(Po.source),Ds=/^\s+/,Fr=/\s/,LA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ve=/\{\n\/\* \[wrapped with (.+)\] \*/,Ie=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,At=/[()=,{}\[\]\/\s]/,bt=/\\(\\)?/g,Pr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uA=/\w*$/,gi=/^[-+]0x[0-9a-f]+$/i,Ki=/^0b[01]+$/i,zi=/^\[object .+?Constructor\]$/,Re=/^0o[0-7]+$/i,oe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ln="\\u0300-\\u036f",ir="\\ufe20-\\ufe2f",RA="\\u20d0-\\u20ff",Wi=ln+ir+RA,Pa="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",nh="\\xac\\xb1\\xd7\\xf7",rh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yj="\\u2000-\\u206f",Cj=" \\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",_x="A-Z\\xc0-\\xd6\\xd8-\\xde",Dx="\\ufe0e\\ufe0f",Ox=nh+rh+yj+Cj,ew="['’]",bj="["+vn+"]",Nx="["+Ox+"]",Ah="["+Wi+"]",Lx="\\d+",Ej="["+Pa+"]",Rx="["+kn+"]",Hx="[^"+vn+Ox+Lx+Pa+kn+_x+"]",tw="\\ud83c[\\udffb-\\udfff]",kj="(?:"+Ah+"|"+tw+")",Px="[^"+vn+"]",nw="(?:\\ud83c[\\udde6-\\uddff]){2}",rw="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+_x+"]",$x="\\u200d",Kx="(?:"+Rx+"|"+Hx+")",Sj="(?:"+$a+"|"+Hx+")",zx="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",Wx="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",Gx=kj+"?",Yx="["+Dx+"]?",xj="(?:"+$x+"(?:"+[Px,nw,rw].join("|")+")"+Yx+Gx+")*",Fj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qx=Yx+Gx+xj,Tj="(?:"+[Ej,nw,rw].join("|")+")"+qx,Mj="(?:"+[Px+Ah+"?",Ah,nw,rw,bj].join("|")+")",Ij=RegExp(ew,"g"),Uj=RegExp(Ah,"g"),Aw=RegExp(tw+"(?="+tw+")|"+Mj+qx,"g"),_j=RegExp([$a+"?"+Rx+"+"+zx+"(?="+[Nx,$a,"$"].join("|")+")",Sj+"+"+Wx+"(?="+[Nx,$a+Kx,"$"].join("|")+")",$a+"?"+Kx+"+"+zx,$a+"+"+Wx,Qj,Fj,Lx,Tj].join("|"),"g"),Dj=RegExp("["+$x+vn+Wi+Dx+"]"),Oj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nj=["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"],Lj=-1,qt={};qt[ot]=qt[$e]=qt[ht]=qt[wt]=qt[Et]=qt[En]=qt[Yt]=qt[Kt]=qt[OA]=!0,qt[re]=qt[Ae]=qt[xe]=qt[le]=qt[Pe]=qt[Ce]=qt[ee]=qt[K]=qt[R]=qt[J]=qt[ce]=qt[O]=qt[se]=qt[j]=qt[ae]=!1;var Wt={};Wt[re]=Wt[Ae]=Wt[xe]=Wt[Pe]=Wt[le]=Wt[Ce]=Wt[ot]=Wt[$e]=Wt[ht]=Wt[wt]=Wt[Et]=Wt[R]=Wt[J]=Wt[ce]=Wt[O]=Wt[se]=Wt[j]=Wt[be]=Wt[En]=Wt[Yt]=Wt[Kt]=Wt[OA]=!0,Wt[ee]=Wt[K]=Wt[ae]=!1;var Rj={À:"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:"'n",ſ:"s"},Hj={"&":"&","<":"<",">":">",'"':""","'":"'"},Pj={"&":"&","<":"<",">":">",""":'"',"'":"'"},$j={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kj=parseFloat,zj=parseInt,Xx=typeof Xd=="object"&&Xd&&Xd.Object===Object&&Xd,Wj=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Xx||Wj||Function("return this")(),iw=e&&!e.nodeType&&e,Os=iw&&!0&&t&&!t.nodeType&&t,Jx=Os&&Os.exports===iw,ow=Jx&&Xx.process,dA=(function(){try{var ue=Os&&Os.require&&Os.require("util").types;return ue||ow&&ow.binding&&ow.binding("util")}catch{}})(),jx=dA&&dA.isArrayBuffer,Zx=dA&&dA.isDate,Vx=dA&&dA.isMap,eF=dA&&dA.isRegExp,tF=dA&&dA.isSet,nF=dA&&dA.isTypedArray;function $r(ue,Ee,ye){switch(ye.length){case 0:return ue.call(Ee);case 1:return ue.call(Ee,ye[0]);case 2:return ue.call(Ee,ye[0],ye[1]);case 3:return ue.call(Ee,ye[0],ye[1],ye[2])}return ue.apply(Ee,ye)}function Gj(ue,Ee,ye,Ne){for(var rt=-1,Tt=ue==null?0:ue.length;++rt<Tt;){var Mn=ue[rt];Ee(Ne,Mn,ye(Mn),ue)}return Ne}function fA(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne&&Ee(ue[ye],ye,ue)!==!1;);return ue}function Yj(ue,Ee){for(var ye=ue==null?0:ue.length;ye--&&Ee(ue[ye],ye,ue)!==!1;);return ue}function rF(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(!Ee(ue[ye],ye,ue))return!1;return!0}function $o(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];Ee(Mn,ye,ue)&&(Tt[rt++]=Mn)}return Tt}function ih(ue,Ee){var ye=ue==null?0:ue.length;return!!ye&&Ka(ue,Ee,0)>-1}function sw(ue,Ee,ye){for(var Ne=-1,rt=ue==null?0:ue.length;++Ne<rt;)if(ye(Ee,ue[Ne]))return!0;return!1}function Zt(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=Array(Ne);++ye<Ne;)rt[ye]=Ee(ue[ye],ye,ue);return rt}function Ko(ue,Ee){for(var ye=-1,Ne=Ee.length,rt=ue.length;++ye<Ne;)ue[rt+ye]=Ee[ye];return ue}function aw(ue,Ee,ye,Ne){var rt=-1,Tt=ue==null?0:ue.length;for(Ne&&Tt&&(ye=ue[++rt]);++rt<Tt;)ye=Ee(ye,ue[rt],rt,ue);return ye}function qj(ue,Ee,ye,Ne){var rt=ue==null?0:ue.length;for(Ne&&rt&&(ye=ue[--rt]);rt--;)ye=Ee(ye,ue[rt],rt,ue);return ye}function lw(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(Ee(ue[ye],ye,ue))return!0;return!1}var Xj=cw("length");function Jj(ue){return ue.split("")}function jj(ue){return ue.match(We)||[]}function AF(ue,Ee,ye){var Ne;return ye(ue,function(rt,Tt,Mn){if(Ee(rt,Tt,Mn))return Ne=Tt,!1}),Ne}function oh(ue,Ee,ye,Ne){for(var rt=ue.length,Tt=ye+(Ne?1:-1);Ne?Tt--:++Tt<rt;)if(Ee(ue[Tt],Tt,ue))return Tt;return-1}function Ka(ue,Ee,ye){return Ee===Ee?l9(ue,Ee,ye):oh(ue,iF,ye)}function Zj(ue,Ee,ye,Ne){for(var rt=ye-1,Tt=ue.length;++rt<Tt;)if(Ne(ue[rt],Ee))return rt;return-1}function iF(ue){return ue!==ue}function oF(ue,Ee){var ye=ue==null?0:ue.length;return ye?dw(ue,Ee)/ye:F}function cw(ue){return function(Ee){return Ee==null?n:Ee[ue]}}function uw(ue){return function(Ee){return ue==null?n:ue[Ee]}}function sF(ue,Ee,ye,Ne,rt){return rt(ue,function(Tt,Mn,Pt){ye=Ne?(Ne=!1,Tt):Ee(ye,Tt,Mn,Pt)}),ye}function Vj(ue,Ee){var ye=ue.length;for(ue.sort(Ee);ye--;)ue[ye]=ue[ye].value;return ue}function dw(ue,Ee){for(var ye,Ne=-1,rt=ue.length;++Ne<rt;){var Tt=Ee(ue[Ne]);Tt!==n&&(ye=ye===n?Tt:ye+Tt)}return ye}function fw(ue,Ee){for(var ye=-1,Ne=Array(ue);++ye<ue;)Ne[ye]=Ee(ye);return Ne}function e9(ue,Ee){return Zt(Ee,function(ye){return[ye,ue[ye]]})}function aF(ue){return ue&&ue.slice(0,dF(ue)+1).replace(Ds,"")}function Kr(ue){return function(Ee){return ue(Ee)}}function hw(ue,Ee){return Zt(Ee,function(ye){return ue[ye]})}function Qc(ue,Ee){return ue.has(Ee)}function lF(ue,Ee){for(var ye=-1,Ne=ue.length;++ye<Ne&&Ka(Ee,ue[ye],0)>-1;);return ye}function cF(ue,Ee){for(var ye=ue.length;ye--&&Ka(Ee,ue[ye],0)>-1;);return ye}function t9(ue,Ee){for(var ye=ue.length,Ne=0;ye--;)ue[ye]===Ee&&++Ne;return Ne}var n9=uw(Rj),r9=uw(Hj);function A9(ue){return"\\"+$j[ue]}function i9(ue,Ee){return ue==null?n:ue[Ee]}function za(ue){return Dj.test(ue)}function o9(ue){return Oj.test(ue)}function s9(ue){for(var Ee,ye=[];!(Ee=ue.next()).done;)ye.push(Ee.value);return ye}function pw(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne,rt){ye[++Ee]=[rt,Ne]}),ye}function uF(ue,Ee){return function(ye){return ue(Ee(ye))}}function zo(ue,Ee){for(var ye=-1,Ne=ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];(Mn===Ee||Mn===d)&&(ue[ye]=d,Tt[rt++]=ye)}return Tt}function sh(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=Ne}),ye}function a9(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=[Ne,Ne]}),ye}function l9(ue,Ee,ye){for(var Ne=ye-1,rt=ue.length;++Ne<rt;)if(ue[Ne]===Ee)return Ne;return-1}function c9(ue,Ee,ye){for(var Ne=ye+1;Ne--;)if(ue[Ne]===Ee)return Ne;return Ne}function Wa(ue){return za(ue)?d9(ue):Xj(ue)}function HA(ue){return za(ue)?f9(ue):Jj(ue)}function dF(ue){for(var Ee=ue.length;Ee--&&Fr.test(ue.charAt(Ee)););return Ee}var u9=uw(Pj);function d9(ue){for(var Ee=Aw.lastIndex=0;Aw.test(ue);)++Ee;return Ee}function f9(ue){return ue.match(Aw)||[]}function h9(ue){return ue.match(_j)||[]}var p9=(function ue(Ee){Ee=Ee==null?Xn:Ga.defaults(Xn.Object(),Ee,Ga.pick(Xn,Nj));var ye=Ee.Array,Ne=Ee.Date,rt=Ee.Error,Tt=Ee.Function,Mn=Ee.Math,Pt=Ee.Object,mw=Ee.RegExp,m9=Ee.String,hA=Ee.TypeError,ah=ye.prototype,g9=Tt.prototype,Ya=Pt.prototype,lh=Ee["__core-js_shared__"],ch=g9.toString,It=Ya.hasOwnProperty,v9=0,fF=(function(){var c=/[^.]+$/.exec(lh&&lh.keys&&lh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),uh=Ya.toString,w9=ch.call(Pt),B9=Xn._,y9=mw("^"+ch.call(It).replace(Po,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dh=Jx?Ee.Buffer:n,Wo=Ee.Symbol,fh=Ee.Uint8Array,hF=dh?dh.allocUnsafe:n,hh=uF(Pt.getPrototypeOf,Pt),pF=Pt.create,mF=Ya.propertyIsEnumerable,ph=ah.splice,gF=Wo?Wo.isConcatSpreadable:n,Tc=Wo?Wo.iterator:n,Ns=Wo?Wo.toStringTag:n,mh=(function(){try{var c=$s(Pt,"defineProperty");return c({},"",{}),c}catch{}})(),C9=Ee.clearTimeout!==Xn.clearTimeout&&Ee.clearTimeout,b9=Ne&&Ne.now!==Xn.Date.now&&Ne.now,E9=Ee.setTimeout!==Xn.setTimeout&&Ee.setTimeout,gh=Mn.ceil,vh=Mn.floor,gw=Pt.getOwnPropertySymbols,k9=dh?dh.isBuffer:n,vF=Ee.isFinite,S9=ah.join,x9=uF(Pt.keys,Pt),In=Mn.max,or=Mn.min,F9=Ne.now,Q9=Ee.parseInt,wF=Mn.random,T9=ah.reverse,vw=$s(Ee,"DataView"),Mc=$s(Ee,"Map"),ww=$s(Ee,"Promise"),qa=$s(Ee,"Set"),Ic=$s(Ee,"WeakMap"),Uc=$s(Pt,"create"),wh=Ic&&new Ic,Xa={},M9=Ks(vw),I9=Ks(Mc),U9=Ks(ww),_9=Ks(qa),D9=Ks(Ic),Bh=Wo?Wo.prototype:n,_c=Bh?Bh.valueOf:n,BF=Bh?Bh.toString:n;function L(c){if(cn(c)&&!it(c)&&!(c instanceof Bt)){if(c instanceof pA)return c;if(It.call(c,"__wrapped__"))return yQ(c)}return new pA(c)}var Ja=(function(){function c(){}return function(f){if(!rn(f))return{};if(pF)return pF(f);c.prototype=f;var g=new c;return c.prototype=n,g}})();function yh(){}function pA(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}L.templateSettings={escape:Us,evaluate:nn,interpolate:NA,variable:"",imports:{_:L}},L.prototype=yh.prototype,L.prototype.constructor=L,pA.prototype=Ja(yh.prototype),pA.prototype.constructor=pA;function Bt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=E,this.__views__=[]}function O9(){var c=new Bt(this.__wrapped__);return c.__actions__=Qr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Qr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Qr(this.__views__),c}function N9(){if(this.__filtered__){var c=new Bt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function L9(){var c=this.__wrapped__.value(),f=this.__dir__,g=it(c),b=f<0,M=g?c.length:0,H=JZ(0,M,this.__views__),Z=H.start,ie=H.end,fe=ie-Z,ke=b?ie:Z-1,Se=this.__iteratees__,Fe=Se.length,Ue=0,Ke=or(fe,this.__takeCount__);if(!g||!b&&M==fe&&Ke==fe)return zF(c,this.__actions__);var je=[];e:for(;fe--&&Ue<Ke;){ke+=f;for(var ct=-1,Ze=c[ke];++ct<Fe;){var mt=Se[ct],yt=mt.iteratee,Gr=mt.type,Cr=yt(Ze);if(Gr==V)Ze=Cr;else if(!Cr){if(Gr==te)continue e;break e}}je[Ue++]=Ze}return je}Bt.prototype=Ja(yh.prototype),Bt.prototype.constructor=Bt;function Ls(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function R9(){this.__data__=Uc?Uc(null):{},this.size=0}function H9(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function P9(c){var f=this.__data__;if(Uc){var g=f[c];return g===l?n:g}return It.call(f,c)?f[c]:n}function $9(c){var f=this.__data__;return Uc?f[c]!==n:It.call(f,c)}function K9(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Uc&&f===n?l:f,this}Ls.prototype.clear=R9,Ls.prototype.delete=H9,Ls.prototype.get=P9,Ls.prototype.has=$9,Ls.prototype.set=K9;function Gi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function z9(){this.__data__=[],this.size=0}function W9(c){var f=this.__data__,g=Ch(f,c);if(g<0)return!1;var b=f.length-1;return g==b?f.pop():ph.call(f,g,1),--this.size,!0}function G9(c){var f=this.__data__,g=Ch(f,c);return g<0?n:f[g][1]}function Y9(c){return Ch(this.__data__,c)>-1}function q9(c,f){var g=this.__data__,b=Ch(g,c);return b<0?(++this.size,g.push([c,f])):g[b][1]=f,this}Gi.prototype.clear=z9,Gi.prototype.delete=W9,Gi.prototype.get=G9,Gi.prototype.has=Y9,Gi.prototype.set=q9;function Yi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function X9(){this.size=0,this.__data__={hash:new Ls,map:new(Mc||Gi),string:new Ls}}function J9(c){var f=_h(this,c).delete(c);return this.size-=f?1:0,f}function j9(c){return _h(this,c).get(c)}function Z9(c){return _h(this,c).has(c)}function V9(c,f){var g=_h(this,c),b=g.size;return g.set(c,f),this.size+=g.size==b?0:1,this}Yi.prototype.clear=X9,Yi.prototype.delete=J9,Yi.prototype.get=j9,Yi.prototype.has=Z9,Yi.prototype.set=V9;function Rs(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new Yi;++f<g;)this.add(c[f])}function eZ(c){return this.__data__.set(c,l),this}function tZ(c){return this.__data__.has(c)}Rs.prototype.add=Rs.prototype.push=eZ,Rs.prototype.has=tZ;function PA(c){var f=this.__data__=new Gi(c);this.size=f.size}function nZ(){this.__data__=new Gi,this.size=0}function rZ(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}function AZ(c){return this.__data__.get(c)}function iZ(c){return this.__data__.has(c)}function oZ(c,f){var g=this.__data__;if(g instanceof Gi){var b=g.__data__;if(!Mc||b.length<A-1)return b.push([c,f]),this.size=++g.size,this;g=this.__data__=new Yi(b)}return g.set(c,f),this.size=g.size,this}PA.prototype.clear=nZ,PA.prototype.delete=rZ,PA.prototype.get=AZ,PA.prototype.has=iZ,PA.prototype.set=oZ;function yF(c,f){var g=it(c),b=!g&&zs(c),M=!g&&!b&&Jo(c),H=!g&&!b&&!M&&el(c),Z=g||b||M||H,ie=Z?fw(c.length,m9):[],fe=ie.length;for(var ke in c)(f||It.call(c,ke))&&!(Z&&(ke=="length"||M&&(ke=="offset"||ke=="parent")||H&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||ji(ke,fe)))&&ie.push(ke);return ie}function CF(c){var f=c.length;return f?c[Tw(0,f-1)]:n}function sZ(c,f){return Dh(Qr(c),Hs(f,0,c.length))}function aZ(c){return Dh(Qr(c))}function Bw(c,f,g){(g!==n&&!$A(c[f],g)||g===n&&!(f in c))&&qi(c,f,g)}function Dc(c,f,g){var b=c[f];(!(It.call(c,f)&&$A(b,g))||g===n&&!(f in c))&&qi(c,f,g)}function Ch(c,f){for(var g=c.length;g--;)if($A(c[g][0],f))return g;return-1}function lZ(c,f,g,b){return Go(c,function(M,H,Z){f(b,M,g(M),Z)}),b}function bF(c,f){return c&&wi(f,Hn(f),c)}function cZ(c,f){return c&&wi(f,Mr(f),c)}function qi(c,f,g){f=="__proto__"&&mh?mh(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}function yw(c,f){for(var g=-1,b=f.length,M=ye(b),H=c==null;++g<b;)M[g]=H?n:tB(c,f[g]);return M}function Hs(c,f,g){return c===c&&(g!==n&&(c=c<=g?c:g),f!==n&&(c=c>=f?c:f)),c}function mA(c,f,g,b,M,H){var Z,ie=f&h,fe=f&p,ke=f&m;if(g&&(Z=M?g(c,b,M,H):g(c)),Z!==n)return Z;if(!rn(c))return c;var Se=it(c);if(Se){if(Z=ZZ(c),!ie)return Qr(c,Z)}else{var Fe=sr(c),Ue=Fe==K||Fe==N;if(Jo(c))return YF(c,ie);if(Fe==ce||Fe==re||Ue&&!M){if(Z=fe||Ue?{}:dQ(c),!ie)return fe?PZ(c,cZ(Z,c)):HZ(c,bF(Z,c))}else{if(!Wt[Fe])return M?c:{};Z=VZ(c,Fe,ie)}}H||(H=new PA);var Ke=H.get(c);if(Ke)return Ke;H.set(c,Z),PQ(c)?c.forEach(function(Ze){Z.add(mA(Ze,f,g,Ze,c,H))}):RQ(c)&&c.forEach(function(Ze,mt){Z.set(mt,mA(Ze,f,g,mt,c,H))});var je=ke?fe?Pw:Hw:fe?Mr:Hn,ct=Se?n:je(c);return fA(ct||c,function(Ze,mt){ct&&(mt=Ze,Ze=c[mt]),Dc(Z,mt,mA(Ze,f,g,mt,c,H))}),Z}function uZ(c){var f=Hn(c);return function(g){return EF(g,c,f)}}function EF(c,f,g){var b=g.length;if(c==null)return!b;for(c=Pt(c);b--;){var M=g[b],H=f[M],Z=c[M];if(Z===n&&!(M in c)||!H(Z))return!1}return!0}function kF(c,f,g){if(typeof c!="function")throw new hA(o);return $c(function(){c.apply(n,g)},f)}function Oc(c,f,g,b){var M=-1,H=ih,Z=!0,ie=c.length,fe=[],ke=f.length;if(!ie)return fe;g&&(f=Zt(f,Kr(g))),b?(H=sw,Z=!1):f.length>=A&&(H=Qc,Z=!1,f=new Rs(f));e:for(;++M<ie;){var Se=c[M],Fe=g==null?Se:g(Se);if(Se=b||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=ke;Ue--;)if(f[Ue]===Fe)continue e;fe.push(Se)}else H(f,Fe,b)||fe.push(Se)}return fe}var Go=ZF(vi),SF=ZF(bw,!0);function dZ(c,f){var g=!0;return Go(c,function(b,M,H){return g=!!f(b,M,H),g}),g}function bh(c,f,g){for(var b=-1,M=c.length;++b<M;){var H=c[b],Z=f(H);if(Z!=null&&(ie===n?Z===Z&&!Wr(Z):g(Z,ie)))var ie=Z,fe=H}return fe}function fZ(c,f,g,b){var M=c.length;for(g=at(g),g<0&&(g=-g>M?0:M+g),b=b===n||b>M?M:at(b),b<0&&(b+=M),b=g>b?0:KQ(b);g<b;)c[g++]=f;return c}function xF(c,f){var g=[];return Go(c,function(b,M,H){f(b,M,H)&&g.push(b)}),g}function Jn(c,f,g,b,M){var H=-1,Z=c.length;for(g||(g=tV),M||(M=[]);++H<Z;){var ie=c[H];f>0&&g(ie)?f>1?Jn(ie,f-1,g,b,M):Ko(M,ie):b||(M[M.length]=ie)}return M}var Cw=VF(),FF=VF(!0);function vi(c,f){return c&&Cw(c,f,Hn)}function bw(c,f){return c&&FF(c,f,Hn)}function Eh(c,f){return $o(f,function(g){return Zi(c[g])})}function Ps(c,f){f=qo(f,c);for(var g=0,b=f.length;c!=null&&g<b;)c=c[Bi(f[g++])];return g&&g==b?c:n}function QF(c,f,g){var b=f(c);return it(c)?b:Ko(b,g(c))}function Br(c){return c==null?c===n?Be:z:Ns&&Ns in Pt(c)?XZ(c):aV(c)}function Ew(c,f){return c>f}function hZ(c,f){return c!=null&&It.call(c,f)}function pZ(c,f){return c!=null&&f in Pt(c)}function mZ(c,f,g){return c>=or(f,g)&&c<In(f,g)}function kw(c,f,g){for(var b=g?sw:ih,M=c[0].length,H=c.length,Z=H,ie=ye(H),fe=1/0,ke=[];Z--;){var Se=c[Z];Z&&f&&(Se=Zt(Se,Kr(f))),fe=or(Se.length,fe),ie[Z]=!g&&(f||M>=120&&Se.length>=120)?new Rs(Z&&Se):n}Se=c[0];var Fe=-1,Ue=ie[0];e:for(;++Fe<M&&ke.length<fe;){var Ke=Se[Fe],je=f?f(Ke):Ke;if(Ke=g||Ke!==0?Ke:0,!(Ue?Qc(Ue,je):b(ke,je,g))){for(Z=H;--Z;){var ct=ie[Z];if(!(ct?Qc(ct,je):b(c[Z],je,g)))continue e}Ue&&Ue.push(je),ke.push(Ke)}}return ke}function gZ(c,f,g,b){return vi(c,function(M,H,Z){f(b,g(M),H,Z)}),b}function Nc(c,f,g){f=qo(f,c),c=mQ(c,f);var b=c==null?c:c[Bi(vA(f))];return b==null?n:$r(b,c,g)}function TF(c){return cn(c)&&Br(c)==re}function vZ(c){return cn(c)&&Br(c)==xe}function wZ(c){return cn(c)&&Br(c)==Ce}function Lc(c,f,g,b,M){return c===f?!0:c==null||f==null||!cn(c)&&!cn(f)?c!==c&&f!==f:BZ(c,f,g,b,Lc,M)}function BZ(c,f,g,b,M,H){var Z=it(c),ie=it(f),fe=Z?Ae:sr(c),ke=ie?Ae:sr(f);fe=fe==re?ce:fe,ke=ke==re?ce:ke;var Se=fe==ce,Fe=ke==ce,Ue=fe==ke;if(Ue&&Jo(c)){if(!Jo(f))return!1;Z=!0,Se=!1}if(Ue&&!Se)return H||(H=new PA),Z||el(c)?lQ(c,f,g,b,M,H):YZ(c,f,fe,g,b,M,H);if(!(g&v)){var Ke=Se&&It.call(c,"__wrapped__"),je=Fe&&It.call(f,"__wrapped__");if(Ke||je){var ct=Ke?c.value():c,Ze=je?f.value():f;return H||(H=new PA),M(ct,Ze,g,b,H)}}return Ue?(H||(H=new PA),qZ(c,f,g,b,M,H)):!1}function yZ(c){return cn(c)&&sr(c)==R}function Sw(c,f,g,b){var M=g.length,H=M,Z=!b;if(c==null)return!H;for(c=Pt(c);M--;){var ie=g[M];if(Z&&ie[2]?ie[1]!==c[ie[0]]:!(ie[0]in c))return!1}for(;++M<H;){ie=g[M];var fe=ie[0],ke=c[fe],Se=ie[1];if(Z&&ie[2]){if(ke===n&&!(fe in c))return!1}else{var Fe=new PA;if(b)var Ue=b(ke,Se,fe,c,f,Fe);if(!(Ue===n?Lc(Se,ke,v|B,b,Fe):Ue))return!1}}return!0}function MF(c){if(!rn(c)||rV(c))return!1;var f=Zi(c)?y9:zi;return f.test(Ks(c))}function CZ(c){return cn(c)&&Br(c)==O}function bZ(c){return cn(c)&&sr(c)==se}function EZ(c){return cn(c)&&Ph(c.length)&&!!qt[Br(c)]}function IF(c){return typeof c=="function"?c:c==null?Ir:typeof c=="object"?it(c)?DF(c[0],c[1]):_F(c):eT(c)}function xw(c){if(!Pc(c))return x9(c);var f=[];for(var g in Pt(c))It.call(c,g)&&g!="constructor"&&f.push(g);return f}function kZ(c){if(!rn(c))return sV(c);var f=Pc(c),g=[];for(var b in c)b=="constructor"&&(f||!It.call(c,b))||g.push(b);return g}function Fw(c,f){return c<f}function UF(c,f){var g=-1,b=Tr(c)?ye(c.length):[];return Go(c,function(M,H,Z){b[++g]=f(M,H,Z)}),b}function _F(c){var f=Kw(c);return f.length==1&&f[0][2]?hQ(f[0][0],f[0][1]):function(g){return g===c||Sw(g,c,f)}}function DF(c,f){return Ww(c)&&fQ(f)?hQ(Bi(c),f):function(g){var b=tB(g,c);return b===n&&b===f?nB(g,c):Lc(f,b,v|B)}}function kh(c,f,g,b,M){c!==f&&Cw(f,function(H,Z){if(M||(M=new PA),rn(H))SZ(c,f,Z,g,kh,b,M);else{var ie=b?b(Yw(c,Z),H,Z+"",c,f,M):n;ie===n&&(ie=H),Bw(c,Z,ie)}},Mr)}function SZ(c,f,g,b,M,H,Z){var ie=Yw(c,g),fe=Yw(f,g),ke=Z.get(fe);if(ke){Bw(c,g,ke);return}var Se=H?H(ie,fe,g+"",c,f,Z):n,Fe=Se===n;if(Fe){var Ue=it(fe),Ke=!Ue&&Jo(fe),je=!Ue&&!Ke&&el(fe);Se=fe,Ue||Ke||je?it(ie)?Se=ie:wn(ie)?Se=Qr(ie):Ke?(Fe=!1,Se=YF(fe,!0)):je?(Fe=!1,Se=qF(fe,!0)):Se=[]:Kc(fe)||zs(fe)?(Se=ie,zs(ie)?Se=zQ(ie):(!rn(ie)||Zi(ie))&&(Se=dQ(fe))):Fe=!1}Fe&&(Z.set(fe,Se),M(Se,fe,b,H,Z),Z.delete(fe)),Bw(c,g,Se)}function OF(c,f){var g=c.length;if(g)return f+=f<0?g:0,ji(f,g)?c[f]:n}function NF(c,f,g){f.length?f=Zt(f,function(H){return it(H)?function(Z){return Ps(Z,H.length===1?H[0]:H)}:H}):f=[Ir];var b=-1;f=Zt(f,Kr(Je()));var M=UF(c,function(H,Z,ie){var fe=Zt(f,function(ke){return ke(H)});return{criteria:fe,index:++b,value:H}});return Vj(M,function(H,Z){return RZ(H,Z,g)})}function xZ(c,f){return LF(c,f,function(g,b){return nB(c,b)})}function LF(c,f,g){for(var b=-1,M=f.length,H={};++b<M;){var Z=f[b],ie=Ps(c,Z);g(ie,Z)&&Rc(H,qo(Z,c),ie)}return H}function FZ(c){return function(f){return Ps(f,c)}}function Qw(c,f,g,b){var M=b?Zj:Ka,H=-1,Z=f.length,ie=c;for(c===f&&(f=Qr(f)),g&&(ie=Zt(c,Kr(g)));++H<Z;)for(var fe=0,ke=f[H],Se=g?g(ke):ke;(fe=M(ie,Se,fe,b))>-1;)ie!==c&&ph.call(ie,fe,1),ph.call(c,fe,1);return c}function RF(c,f){for(var g=c?f.length:0,b=g-1;g--;){var M=f[g];if(g==b||M!==H){var H=M;ji(M)?ph.call(c,M,1):Uw(c,M)}}return c}function Tw(c,f){return c+vh(wF()*(f-c+1))}function QZ(c,f,g,b){for(var M=-1,H=In(gh((f-c)/(g||1)),0),Z=ye(H);H--;)Z[b?H:++M]=c,c+=g;return Z}function Mw(c,f){var g="";if(!c||f<1||f>T)return g;do f%2&&(g+=c),f=vh(f/2),f&&(c+=c);while(f);return g}function ut(c,f){return qw(pQ(c,f,Ir),c+"")}function TZ(c){return CF(tl(c))}function MZ(c,f){var g=tl(c);return Dh(g,Hs(f,0,g.length))}function Rc(c,f,g,b){if(!rn(c))return c;f=qo(f,c);for(var M=-1,H=f.length,Z=H-1,ie=c;ie!=null&&++M<H;){var fe=Bi(f[M]),ke=g;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return c;if(M!=Z){var Se=ie[fe];ke=b?b(Se,fe,ie):n,ke===n&&(ke=rn(Se)?Se:ji(f[M+1])?[]:{})}Dc(ie,fe,ke),ie=ie[fe]}return c}var HF=wh?function(c,f){return wh.set(c,f),c}:Ir,IZ=mh?function(c,f){return mh(c,"toString",{configurable:!0,enumerable:!1,value:AB(f),writable:!0})}:Ir;function UZ(c){return Dh(tl(c))}function gA(c,f,g){var b=-1,M=c.length;f<0&&(f=-f>M?0:M+f),g=g>M?M:g,g<0&&(g+=M),M=f>g?0:g-f>>>0,f>>>=0;for(var H=ye(M);++b<M;)H[b]=c[b+f];return H}function _Z(c,f){var g;return Go(c,function(b,M,H){return g=f(b,M,H),!g}),!!g}function Sh(c,f,g){var b=0,M=c==null?b:c.length;if(typeof f=="number"&&f===f&&M<=ne){for(;b<M;){var H=b+M>>>1,Z=c[H];Z!==null&&!Wr(Z)&&(g?Z<=f:Z<f)?b=H+1:M=H}return M}return Iw(c,f,Ir,g)}function Iw(c,f,g,b){var M=0,H=c==null?0:c.length;if(H===0)return 0;f=g(f);for(var Z=f!==f,ie=f===null,fe=Wr(f),ke=f===n;M<H;){var Se=vh((M+H)/2),Fe=g(c[Se]),Ue=Fe!==n,Ke=Fe===null,je=Fe===Fe,ct=Wr(Fe);if(Z)var Ze=b||je;else ke?Ze=je&&(b||Ue):ie?Ze=je&&Ue&&(b||!Ke):fe?Ze=je&&Ue&&!Ke&&(b||!ct):Ke||ct?Ze=!1:Ze=b?Fe<=f:Fe<f;Ze?M=Se+1:H=Se}return or(H,W)}function PF(c,f){for(var g=-1,b=c.length,M=0,H=[];++g<b;){var Z=c[g],ie=f?f(Z):Z;if(!g||!$A(ie,fe)){var fe=ie;H[M++]=Z===0?0:Z}}return H}function $F(c){return typeof c=="number"?c:Wr(c)?F:+c}function zr(c){if(typeof c=="string")return c;if(it(c))return Zt(c,zr)+"";if(Wr(c))return BF?BF.call(c):"";var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Yo(c,f,g){var b=-1,M=ih,H=c.length,Z=!0,ie=[],fe=ie;if(g)Z=!1,M=sw;else if(H>=A){var ke=f?null:WZ(c);if(ke)return sh(ke);Z=!1,M=Qc,fe=new Rs}else fe=f?[]:ie;e:for(;++b<H;){var Se=c[b],Fe=f?f(Se):Se;if(Se=g||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=fe.length;Ue--;)if(fe[Ue]===Fe)continue e;f&&fe.push(Fe),ie.push(Se)}else M(fe,Fe,g)||(fe!==ie&&fe.push(Fe),ie.push(Se))}return ie}function Uw(c,f){f=qo(f,c);var g=-1,b=f.length;if(!b)return!0;for(var M=c==null||typeof c!="object"&&typeof c!="function";++g<b;){var H=f[g];if(typeof H=="string"){if(H==="__proto__"&&!It.call(c,"__proto__"))return!1;if(H==="constructor"&&g+1<b&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(M&&g===0)continue;return!1}}}var Z=mQ(c,f);return Z==null||delete Z[Bi(vA(f))]}function KF(c,f,g,b){return Rc(c,f,g(Ps(c,f)),b)}function xh(c,f,g,b){for(var M=c.length,H=b?M:-1;(b?H--:++H<M)&&f(c[H],H,c););return g?gA(c,b?0:H,b?H+1:M):gA(c,b?H+1:0,b?M:H)}function zF(c,f){var g=c;return g instanceof Bt&&(g=g.value()),aw(f,function(b,M){return M.func.apply(M.thisArg,Ko([b],M.args))},g)}function _w(c,f,g){var b=c.length;if(b<2)return b?Yo(c[0]):[];for(var M=-1,H=ye(b);++M<b;)for(var Z=c[M],ie=-1;++ie<b;)ie!=M&&(H[M]=Oc(H[M]||Z,c[ie],f,g));return Yo(Jn(H,1),f,g)}function WF(c,f,g){for(var b=-1,M=c.length,H=f.length,Z={};++b<M;){var ie=b<H?f[b]:n;g(Z,c[b],ie)}return Z}function Dw(c){return wn(c)?c:[]}function Ow(c){return typeof c=="function"?c:Ir}function qo(c,f){return it(c)?c:Ww(c,f)?[c]:BQ(Ut(c))}var DZ=ut;function Xo(c,f,g){var b=c.length;return g=g===n?b:g,!f&&g>=b?c:gA(c,f,g)}var GF=C9||function(c){return Xn.clearTimeout(c)};function YF(c,f){if(f)return c.slice();var g=c.length,b=hF?hF(g):new c.constructor(g);return c.copy(b),b}function Nw(c){var f=new c.constructor(c.byteLength);return new fh(f).set(new fh(c)),f}function OZ(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}function NZ(c){var f=new c.constructor(c.source,uA.exec(c));return f.lastIndex=c.lastIndex,f}function LZ(c){return _c?Pt(_c.call(c)):{}}function qF(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}function XF(c,f){if(c!==f){var g=c!==n,b=c===null,M=c===c,H=Wr(c),Z=f!==n,ie=f===null,fe=f===f,ke=Wr(f);if(!ie&&!ke&&!H&&c>f||H&&Z&&fe&&!ie&&!ke||b&&Z&&fe||!g&&fe||!M)return 1;if(!b&&!H&&!ke&&c<f||ke&&g&&M&&!b&&!H||ie&&g&&M||!Z&&M||!fe)return-1}return 0}function RZ(c,f,g){for(var b=-1,M=c.criteria,H=f.criteria,Z=M.length,ie=g.length;++b<Z;){var fe=XF(M[b],H[b]);if(fe){if(b>=ie)return fe;var ke=g[b];return fe*(ke=="desc"?-1:1)}}return c.index-f.index}function JF(c,f,g,b){for(var M=-1,H=c.length,Z=g.length,ie=-1,fe=f.length,ke=In(H-Z,0),Se=ye(fe+ke),Fe=!b;++ie<fe;)Se[ie]=f[ie];for(;++M<Z;)(Fe||M<H)&&(Se[g[M]]=c[M]);for(;ke--;)Se[ie++]=c[M++];return Se}function jF(c,f,g,b){for(var M=-1,H=c.length,Z=-1,ie=g.length,fe=-1,ke=f.length,Se=In(H-ie,0),Fe=ye(Se+ke),Ue=!b;++M<Se;)Fe[M]=c[M];for(var Ke=M;++fe<ke;)Fe[Ke+fe]=f[fe];for(;++Z<ie;)(Ue||M<H)&&(Fe[Ke+g[Z]]=c[M++]);return Fe}function Qr(c,f){var g=-1,b=c.length;for(f||(f=ye(b));++g<b;)f[g]=c[g];return f}function wi(c,f,g,b){var M=!g;g||(g={});for(var H=-1,Z=f.length;++H<Z;){var ie=f[H],fe=b?b(g[ie],c[ie],ie,g,c):n;fe===n&&(fe=c[ie]),M?qi(g,ie,fe):Dc(g,ie,fe)}return g}function HZ(c,f){return wi(c,zw(c),f)}function PZ(c,f){return wi(c,cQ(c),f)}function Fh(c,f){return function(g,b){var M=it(g)?Gj:lZ,H=f?f():{};return M(g,c,Je(b,2),H)}}function ja(c){return ut(function(f,g){var b=-1,M=g.length,H=M>1?g[M-1]:n,Z=M>2?g[2]:n;for(H=c.length>3&&typeof H=="function"?(M--,H):n,Z&&yr(g[0],g[1],Z)&&(H=M<3?n:H,M=1),f=Pt(f);++b<M;){var ie=g[b];ie&&c(f,ie,b,H)}return f})}function ZF(c,f){return function(g,b){if(g==null)return g;if(!Tr(g))return c(g,b);for(var M=g.length,H=f?M:-1,Z=Pt(g);(f?H--:++H<M)&&b(Z[H],H,Z)!==!1;);return g}}function VF(c){return function(f,g,b){for(var M=-1,H=Pt(f),Z=b(f),ie=Z.length;ie--;){var fe=Z[c?ie:++M];if(g(H[fe],fe,H)===!1)break}return f}}function $Z(c,f,g){var b=f&y,M=Hc(c);function H(){var Z=this&&this!==Xn&&this instanceof H?M:c;return Z.apply(b?g:this,arguments)}return H}function eQ(c){return function(f){f=Ut(f);var g=za(f)?HA(f):n,b=g?g[0]:f.charAt(0),M=g?Xo(g,1).join(""):f.slice(1);return b[c]()+M}}function Za(c){return function(f){return aw(ZQ(jQ(f).replace(Ij,"")),c,"")}}function Hc(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Ja(c.prototype),b=c.apply(g,f);return rn(b)?b:g}}function KZ(c,f,g){var b=Hc(c);function M(){for(var H=arguments.length,Z=ye(H),ie=H,fe=Va(M);ie--;)Z[ie]=arguments[ie];var ke=H<3&&Z[0]!==fe&&Z[H-1]!==fe?[]:zo(Z,fe);if(H-=ke.length,H<g)return iQ(c,f,Qh,M.placeholder,n,Z,ke,n,n,g-H);var Se=this&&this!==Xn&&this instanceof M?b:c;return $r(Se,this,Z)}return M}function tQ(c){return function(f,g,b){var M=Pt(f);if(!Tr(f)){var H=Je(g,3);f=Hn(f),g=function(ie){return H(M[ie],ie,M)}}var Z=c(f,g,b);return Z>-1?M[H?f[Z]:Z]:n}}function nQ(c){return Ji(function(f){var g=f.length,b=g,M=pA.prototype.thru;for(c&&f.reverse();b--;){var H=f[b];if(typeof H!="function")throw new hA(o);if(M&&!Z&&Uh(H)=="wrapper")var Z=new pA([],!0)}for(b=Z?b:g;++b<g;){H=f[b];var ie=Uh(H),fe=ie=="wrapper"?$w(H):n;fe&&Gw(fe[0])&&fe[1]==(I|S|_|$)&&!fe[4].length&&fe[9]==1?Z=Z[Uh(fe[0])].apply(Z,fe[3]):Z=H.length==1&&Gw(H)?Z[ie]():Z.thru(H)}return function(){var ke=arguments,Se=ke[0];if(Z&&ke.length==1&&it(Se))return Z.plant(Se).value();for(var Fe=0,Ue=g?f[Fe].apply(this,ke):Se;++Fe<g;)Ue=f[Fe].call(this,Ue);return Ue}})}function Qh(c,f,g,b,M,H,Z,ie,fe,ke){var Se=f&I,Fe=f&y,Ue=f&w,Ke=f&(S|Q),je=f&Y,ct=Ue?n:Hc(c);function Ze(){for(var mt=arguments.length,yt=ye(mt),Gr=mt;Gr--;)yt[Gr]=arguments[Gr];if(Ke)var Cr=Va(Ze),Yr=t9(yt,Cr);if(b&&(yt=JF(yt,b,M,Ke)),H&&(yt=jF(yt,H,Z,Ke)),mt-=Yr,Ke&&mt<ke){var Bn=zo(yt,Cr);return iQ(c,f,Qh,Ze.placeholder,g,yt,Bn,ie,fe,ke-mt)}var KA=Fe?g:this,eo=Ue?KA[c]:c;return mt=yt.length,ie?yt=lV(yt,ie):je&&mt>1&&yt.reverse(),Se&&fe<mt&&(yt.length=fe),this&&this!==Xn&&this instanceof Ze&&(eo=ct||Hc(eo)),eo.apply(KA,yt)}return Ze}function rQ(c,f){return function(g,b){return gZ(g,c,f(b),{})}}function Th(c,f){return function(g,b){var M;if(g===n&&b===n)return f;if(g!==n&&(M=g),b!==n){if(M===n)return b;typeof g=="string"||typeof b=="string"?(g=zr(g),b=zr(b)):(g=$F(g),b=$F(b)),M=c(g,b)}return M}}function Lw(c){return Ji(function(f){return f=Zt(f,Kr(Je())),ut(function(g){var b=this;return c(f,function(M){return $r(M,b,g)})})})}function Mh(c,f){f=f===n?" ":zr(f);var g=f.length;if(g<2)return g?Mw(f,c):f;var b=Mw(f,gh(c/Wa(f)));return za(f)?Xo(HA(b),0,c).join(""):b.slice(0,c)}function zZ(c,f,g,b){var M=f&y,H=Hc(c);function Z(){for(var ie=-1,fe=arguments.length,ke=-1,Se=b.length,Fe=ye(Se+fe),Ue=this&&this!==Xn&&this instanceof Z?H:c;++ke<Se;)Fe[ke]=b[ke];for(;fe--;)Fe[ke++]=arguments[++ie];return $r(Ue,M?g:this,Fe)}return Z}function AQ(c){return function(f,g,b){return b&&typeof b!="number"&&yr(f,g,b)&&(g=b=n),f=Vi(f),g===n?(g=f,f=0):g=Vi(g),b=b===n?f<g?1:-1:Vi(b),QZ(f,g,b,c)}}function Ih(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=wA(f),g=wA(g)),c(f,g)}}function iQ(c,f,g,b,M,H,Z,ie,fe,ke){var Se=f&S,Fe=Se?Z:n,Ue=Se?n:Z,Ke=Se?H:n,je=Se?n:H;f|=Se?_:D,f&=~(Se?D:_),f&C||(f&=-4);var ct=[c,f,M,Ke,Fe,je,Ue,ie,fe,ke],Ze=g.apply(n,ct);return Gw(c)&&gQ(Ze,ct),Ze.placeholder=b,vQ(Ze,c,f)}function Rw(c){var f=Mn[c];return function(g,b){if(g=wA(g),b=b==null?0:or(at(b),292),b&&vF(g)){var M=(Ut(g)+"e").split("e"),H=f(M[0]+"e"+(+M[1]+b));return M=(Ut(H)+"e").split("e"),+(M[0]+"e"+(+M[1]-b))}return f(g)}}var WZ=qa&&1/sh(new qa([,-0]))[1]==x?function(c){return new qa(c)}:sB;function oQ(c){return function(f){var g=sr(f);return g==R?pw(f):g==se?a9(f):e9(f,c(f))}}function Xi(c,f,g,b,M,H,Z,ie){var fe=f&w;if(!fe&&typeof c!="function")throw new hA(o);var ke=b?b.length:0;if(ke||(f&=-97,b=M=n),Z=Z===n?Z:In(at(Z),0),ie=ie===n?ie:at(ie),ke-=M?M.length:0,f&D){var Se=b,Fe=M;b=M=n}var Ue=fe?n:$w(c),Ke=[c,f,g,b,M,Se,Fe,H,Z,ie];if(Ue&&oV(Ke,Ue),c=Ke[0],f=Ke[1],g=Ke[2],b=Ke[3],M=Ke[4],ie=Ke[9]=Ke[9]===n?fe?0:c.length:In(Ke[9]-ke,0),!ie&&f&(S|Q)&&(f&=-25),!f||f==y)var je=$Z(c,f,g);else f==S||f==Q?je=KZ(c,f,ie):(f==_||f==(y|_))&&!M.length?je=zZ(c,f,g,b):je=Qh.apply(n,Ke);var ct=Ue?HF:gQ;return vQ(ct(je,Ke),c,f)}function sQ(c,f,g,b){return c===n||$A(c,Ya[g])&&!It.call(b,g)?f:c}function aQ(c,f,g,b,M,H){return rn(c)&&rn(f)&&(H.set(f,c),kh(c,f,n,aQ,H),H.delete(f)),c}function GZ(c){return Kc(c)?n:c}function lQ(c,f,g,b,M,H){var Z=g&v,ie=c.length,fe=f.length;if(ie!=fe&&!(Z&&fe>ie))return!1;var ke=H.get(c),Se=H.get(f);if(ke&&Se)return ke==f&&Se==c;var Fe=-1,Ue=!0,Ke=g&B?new Rs:n;for(H.set(c,f),H.set(f,c);++Fe<ie;){var je=c[Fe],ct=f[Fe];if(b)var Ze=Z?b(ct,je,Fe,f,c,H):b(je,ct,Fe,c,f,H);if(Ze!==n){if(Ze)continue;Ue=!1;break}if(Ke){if(!lw(f,function(mt,yt){if(!Qc(Ke,yt)&&(je===mt||M(je,mt,g,b,H)))return Ke.push(yt)})){Ue=!1;break}}else if(!(je===ct||M(je,ct,g,b,H))){Ue=!1;break}}return H.delete(c),H.delete(f),Ue}function YZ(c,f,g,b,M,H,Z){switch(g){case Pe:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case xe:return!(c.byteLength!=f.byteLength||!H(new fh(c),new fh(f)));case le:case Ce:case J:return $A(+c,+f);case ee:return c.name==f.name&&c.message==f.message;case O:case j:return c==f+"";case R:var ie=pw;case se:var fe=b&v;if(ie||(ie=sh),c.size!=f.size&&!fe)return!1;var ke=Z.get(c);if(ke)return ke==f;b|=B,Z.set(c,f);var Se=lQ(ie(c),ie(f),b,M,H,Z);return Z.delete(c),Se;case be:if(_c)return _c.call(c)==_c.call(f)}return!1}function qZ(c,f,g,b,M,H){var Z=g&v,ie=Hw(c),fe=ie.length,ke=Hw(f),Se=ke.length;if(fe!=Se&&!Z)return!1;for(var Fe=fe;Fe--;){var Ue=ie[Fe];if(!(Z?Ue in f:It.call(f,Ue)))return!1}var Ke=H.get(c),je=H.get(f);if(Ke&&je)return Ke==f&&je==c;var ct=!0;H.set(c,f),H.set(f,c);for(var Ze=Z;++Fe<fe;){Ue=ie[Fe];var mt=c[Ue],yt=f[Ue];if(b)var Gr=Z?b(yt,mt,Ue,f,c,H):b(mt,yt,Ue,c,f,H);if(!(Gr===n?mt===yt||M(mt,yt,g,b,H):Gr)){ct=!1;break}Ze||(Ze=Ue=="constructor")}if(ct&&!Ze){var Cr=c.constructor,Yr=f.constructor;Cr!=Yr&&"constructor"in c&&"constructor"in f&&!(typeof Cr=="function"&&Cr instanceof Cr&&typeof Yr=="function"&&Yr instanceof Yr)&&(ct=!1)}return H.delete(c),H.delete(f),ct}function Ji(c){return qw(pQ(c,n,EQ),c+"")}function Hw(c){return QF(c,Hn,zw)}function Pw(c){return QF(c,Mr,cQ)}var $w=wh?function(c){return wh.get(c)}:sB;function Uh(c){for(var f=c.name+"",g=Xa[f],b=It.call(Xa,f)?g.length:0;b--;){var M=g[b],H=M.func;if(H==null||H==c)return M.name}return f}function Va(c){var f=It.call(L,"placeholder")?L:c;return f.placeholder}function Je(){var c=L.iteratee||iB;return c=c===iB?IF:c,arguments.length?c(arguments[0],arguments[1]):c}function _h(c,f){var g=c.__data__;return nV(f)?g[typeof f=="string"?"string":"hash"]:g.map}function Kw(c){for(var f=Hn(c),g=f.length;g--;){var b=f[g],M=c[b];f[g]=[b,M,fQ(M)]}return f}function $s(c,f){var g=i9(c,f);return MF(g)?g:n}function XZ(c){var f=It.call(c,Ns),g=c[Ns];try{c[Ns]=n;var b=!0}catch{}var M=uh.call(c);return b&&(f?c[Ns]=g:delete c[Ns]),M}var zw=gw?function(c){return c==null?[]:(c=Pt(c),$o(gw(c),function(f){return mF.call(c,f)}))}:aB,cQ=gw?function(c){for(var f=[];c;)Ko(f,zw(c)),c=hh(c);return f}:aB,sr=Br;(vw&&sr(new vw(new ArrayBuffer(1)))!=Pe||Mc&&sr(new Mc)!=R||ww&&sr(ww.resolve())!=k||qa&&sr(new qa)!=se||Ic&&sr(new Ic)!=ae)&&(sr=function(c){var f=Br(c),g=f==ce?c.constructor:n,b=g?Ks(g):"";if(b)switch(b){case M9:return Pe;case I9:return R;case U9:return k;case _9:return se;case D9:return ae}return f});function JZ(c,f,g){for(var b=-1,M=g.length;++b<M;){var H=g[b],Z=H.size;switch(H.type){case"drop":c+=Z;break;case"dropRight":f-=Z;break;case"take":f=or(f,c+Z);break;case"takeRight":c=In(c,f-Z);break}}return{start:c,end:f}}function jZ(c){var f=c.match(ve);return f?f[1].split(Ie):[]}function uQ(c,f,g){f=qo(f,c);for(var b=-1,M=f.length,H=!1;++b<M;){var Z=Bi(f[b]);if(!(H=c!=null&&g(c,Z)))break;c=c[Z]}return H||++b!=M?H:(M=c==null?0:c.length,!!M&&Ph(M)&&ji(Z,M)&&(it(c)||zs(c)))}function ZZ(c){var f=c.length,g=new c.constructor(f);return f&&typeof c[0]=="string"&&It.call(c,"index")&&(g.index=c.index,g.input=c.input),g}function dQ(c){return typeof c.constructor=="function"&&!Pc(c)?Ja(hh(c)):{}}function VZ(c,f,g){var b=c.constructor;switch(f){case xe:return Nw(c);case le:case Ce:return new b(+c);case Pe:return OZ(c,g);case ot:case $e:case ht:case wt:case Et:case En:case Yt:case Kt:case OA:return qF(c,g);case R:return new b;case J:case j:return new b(c);case O:return NZ(c);case se:return new b;case be:return LZ(c)}}function eV(c,f){var g=f.length;if(!g)return c;var b=g-1;return f[b]=(g>1?"& ":"")+f[b],f=f.join(g>2?", ":" "),c.replace(LA,`{
|
|
150
150
|
/* [wrapped with `+f+`] */
|
|
151
|
-
`)}function eV(c){return it(c)||zs(c)||!!(gF&&c&&c[gF])}function ji(c,f){var g=typeof c;return f=f??T,!!f&&(g=="number"||g!="symbol"&&oe.test(c))&&c>-1&&c%1==0&&c<f}function yr(c,f,g){if(!rn(g))return!1;var b=typeof f;return(b=="number"?Tr(g)&&ji(f,g.length):b=="string"&&f in g)?$A(g[f],c):!1}function Ww(c,f){if(it(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||Wr(c)?!0:Ra.test(c)||!Fc.test(c)||f!=null&&c in Pt(f)}function tV(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function Gw(c){var f=Uh(c),g=L[f];if(typeof g!="function"||!(f in Bt.prototype))return!1;if(c===g)return!0;var b=$w(g);return!!b&&c===b[0]}function nV(c){return!!fF&&fF in c}var rV=lh?Zi:lB;function Pc(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||Ya;return c===g}function fQ(c){return c===c&&!rn(c)}function hQ(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==n||c in Pt(g))}}function AV(c){var f=Rh(c,function(b){return g.size===u&&g.clear(),b}),g=f.cache;return f}function iV(c,f){var g=c[1],b=f[1],M=g|b,H=M<(y|w|I),Z=b==I&&g==S||b==I&&g==$&&c[7].length<=f[8]||b==(I|$)&&f[7].length<=f[8]&&g==S;if(!(H||Z))return c;b&y&&(c[2]=f[2],M|=g&y?0:C);var Ae=f[3];if(Ae){var fe=c[3];c[3]=fe?JF(fe,Ae,f[4]):Ae,c[4]=fe?zo(c[3],d):f[4]}return Ae=f[5],Ae&&(fe=c[5],c[5]=fe?jF(fe,Ae,f[6]):Ae,c[6]=fe?zo(c[5],d):f[6]),Ae=f[7],Ae&&(c[7]=Ae),b&I&&(c[8]=c[8]==null?f[8]:or(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=M,c}function oV(c){var f=[];if(c!=null)for(var g in Pt(c))f.push(g);return f}function sV(c){return uh.call(c)}function pQ(c,f,g){return f=In(f===n?c.length-1:f,0),function(){for(var b=arguments,M=-1,H=In(b.length-f,0),Z=ye(H);++M<H;)Z[M]=b[f+M];M=-1;for(var Ae=ye(f+1);++M<f;)Ae[M]=b[M];return Ae[f]=g(Z),$r(c,this,Ae)}}function mQ(c,f){return f.length<2?c:Ps(c,gA(f,0,-1))}function aV(c,f){for(var g=c.length,b=or(f.length,g),M=Qr(c);b--;){var H=f[b];c[b]=ji(H,g)?M[H]:n}return c}function Yw(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var gQ=wQ(HF),$c=b9||function(c,f){return Xn.setTimeout(c,f)},qw=wQ(MZ);function vQ(c,f,g){var b=f+"";return qw(c,VZ(b,lV(JZ(b),g)))}function wQ(c){var f=0,g=0;return function(){var b=x9(),M=we-(b-g);if(g=b,M>0){if(++f>=me)return arguments[0]}else f=0;return c.apply(n,arguments)}}function Dh(c,f){var g=-1,b=c.length,M=b-1;for(f=f===n?b:f;++g<f;){var H=Tw(g,M),Z=c[H];c[H]=c[g],c[g]=Z}return c.length=f,c}var BQ=AV(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(_s,function(g,b,M,H){f.push(M?H.replace(bt,"$1"):b||g)}),f});function Bi(c){if(typeof c=="string"||Wr(c))return c;var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Ks(c){if(c!=null){try{return ch.call(c)}catch{}try{return c+""}catch{}}return""}function lV(c,f){return fA(X,function(g){var b="_."+g[0];f&g[1]&&!ih(c,b)&&c.push(b)}),c.sort()}function yQ(c){if(c instanceof Bt)return c.clone();var f=new pA(c.__wrapped__,c.__chain__);return f.__actions__=Qr(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function cV(c,f,g){(g?yr(c,f,g):f===n)?f=1:f=In(at(f),0);var b=c==null?0:c.length;if(!b||f<1)return[];for(var M=0,H=0,Z=ye(gh(b/f));M<b;)Z[H++]=gA(c,M,M+=f);return Z}function uV(c){for(var f=-1,g=c==null?0:c.length,b=0,M=[];++f<g;){var H=c[f];H&&(M[b++]=H)}return M}function dV(){var c=arguments.length;if(!c)return[];for(var f=ye(c-1),g=arguments[0],b=c;b--;)f[b-1]=arguments[b];return Ko(it(g)?Qr(g):[g],Jn(f,1))}var fV=ut(function(c,f){return wn(c)?Oc(c,Jn(f,1,wn,!0)):[]}),hV=ut(function(c,f){var g=vA(f);return wn(g)&&(g=n),wn(c)?Oc(c,Jn(f,1,wn,!0),Je(g,2)):[]}),pV=ut(function(c,f){var g=vA(f);return wn(g)&&(g=n),wn(c)?Oc(c,Jn(f,1,wn,!0),n,g):[]});function mV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),gA(c,f<0?0:f,b)):[]}function gV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),f=b-f,gA(c,0,f<0?0:f)):[]}function vV(c,f){return c&&c.length?xh(c,Je(f,3),!0,!0):[]}function wV(c,f){return c&&c.length?xh(c,Je(f,3),!0):[]}function BV(c,f,g,b){var M=c==null?0:c.length;return M?(g&&typeof g!="number"&&yr(c,f,g)&&(g=0,b=M),dZ(c,f,g,b)):[]}function CQ(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=g==null?0:at(g);return M<0&&(M=In(b+M,0)),oh(c,Je(f,3),M)}function bQ(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=b-1;return g!==n&&(M=at(g),M=g<0?In(b+M,0):or(M,b-1)),oh(c,Je(f,3),M,!0)}function EQ(c){var f=c==null?0:c.length;return f?Jn(c,1):[]}function yV(c){var f=c==null?0:c.length;return f?Jn(c,x):[]}function CV(c,f){var g=c==null?0:c.length;return g?(f=f===n?1:at(f),Jn(c,f)):[]}function bV(c){for(var f=-1,g=c==null?0:c.length,b={};++f<g;){var M=c[f];b[M[0]]=M[1]}return b}function kQ(c){return c&&c.length?c[0]:n}function EV(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=g==null?0:at(g);return M<0&&(M=In(b+M,0)),Ka(c,f,M)}function kV(c){var f=c==null?0:c.length;return f?gA(c,0,-1):[]}var SV=ut(function(c){var f=Zt(c,Dw);return f.length&&f[0]===c[0]?kw(f):[]}),xV=ut(function(c){var f=vA(c),g=Zt(c,Dw);return f===vA(g)?f=n:g.pop(),g.length&&g[0]===c[0]?kw(g,Je(f,2)):[]}),FV=ut(function(c){var f=vA(c),g=Zt(c,Dw);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===c[0]?kw(g,n,f):[]});function QV(c,f){return c==null?"":k9.call(c,f)}function vA(c){var f=c==null?0:c.length;return f?c[f-1]:n}function TV(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=b;return g!==n&&(M=at(g),M=M<0?In(b+M,0):or(M,b-1)),f===f?l9(c,f,M):oh(c,iF,M,!0)}function MV(c,f){return c&&c.length?OF(c,at(f)):n}var IV=ut(SQ);function SQ(c,f){return c&&c.length&&f&&f.length?Qw(c,f):c}function UV(c,f,g){return c&&c.length&&f&&f.length?Qw(c,f,Je(g,2)):c}function _V(c,f,g){return c&&c.length&&f&&f.length?Qw(c,f,n,g):c}var DV=Ji(function(c,f){var g=c==null?0:c.length,b=yw(c,f);return RF(c,Zt(f,function(M){return ji(M,g)?+M:M}).sort(XF)),b});function OV(c,f){var g=[];if(!(c&&c.length))return g;var b=-1,M=[],H=c.length;for(f=Je(f,3);++b<H;){var Z=c[b];f(Z,b,c)&&(g.push(Z),M.push(b))}return RF(c,M),g}function Xw(c){return c==null?c:Q9.call(c)}function NV(c,f,g){var b=c==null?0:c.length;return b?(g&&typeof g!="number"&&yr(c,f,g)?(f=0,g=b):(f=f==null?0:at(f),g=g===n?b:at(g)),gA(c,f,g)):[]}function LV(c,f){return Sh(c,f)}function RV(c,f,g){return Iw(c,f,Je(g,2))}function HV(c,f){var g=c==null?0:c.length;if(g){var b=Sh(c,f);if(b<g&&$A(c[b],f))return b}return-1}function PV(c,f){return Sh(c,f,!0)}function $V(c,f,g){return Iw(c,f,Je(g,2),!0)}function KV(c,f){var g=c==null?0:c.length;if(g){var b=Sh(c,f,!0)-1;if($A(c[b],f))return b}return-1}function zV(c){return c&&c.length?PF(c):[]}function WV(c,f){return c&&c.length?PF(c,Je(f,2)):[]}function GV(c){var f=c==null?0:c.length;return f?gA(c,1,f):[]}function YV(c,f,g){return c&&c.length?(f=g||f===n?1:at(f),gA(c,0,f<0?0:f)):[]}function qV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),f=b-f,gA(c,f<0?0:f,b)):[]}function XV(c,f){return c&&c.length?xh(c,Je(f,3),!1,!0):[]}function JV(c,f){return c&&c.length?xh(c,Je(f,3)):[]}var jV=ut(function(c){return Yo(Jn(c,1,wn,!0))}),ZV=ut(function(c){var f=vA(c);return wn(f)&&(f=n),Yo(Jn(c,1,wn,!0),Je(f,2))}),VV=ut(function(c){var f=vA(c);return f=typeof f=="function"?f:n,Yo(Jn(c,1,wn,!0),n,f)});function eee(c){return c&&c.length?Yo(c):[]}function tee(c,f){return c&&c.length?Yo(c,Je(f,2)):[]}function nee(c,f){return f=typeof f=="function"?f:n,c&&c.length?Yo(c,n,f):[]}function Jw(c){if(!(c&&c.length))return[];var f=0;return c=$o(c,function(g){if(wn(g))return f=In(g.length,f),!0}),fw(f,function(g){return Zt(c,cw(g))})}function xQ(c,f){if(!(c&&c.length))return[];var g=Jw(c);return f==null?g:Zt(g,function(b){return $r(f,n,b)})}var ree=ut(function(c,f){return wn(c)?Oc(c,f):[]}),Aee=ut(function(c){return _w($o(c,wn))}),iee=ut(function(c){var f=vA(c);return wn(f)&&(f=n),_w($o(c,wn),Je(f,2))}),oee=ut(function(c){var f=vA(c);return f=typeof f=="function"?f:n,_w($o(c,wn),n,f)}),see=ut(Jw);function aee(c,f){return WF(c||[],f||[],Dc)}function lee(c,f){return WF(c||[],f||[],Rc)}var cee=ut(function(c){var f=c.length,g=f>1?c[f-1]:n;return g=typeof g=="function"?(c.pop(),g):n,xQ(c,g)});function FQ(c){var f=L(c);return f.__chain__=!0,f}function uee(c,f){return f(c),c}function Oh(c,f){return f(c)}var dee=Ji(function(c){var f=c.length,g=f?c[0]:0,b=this.__wrapped__,M=function(H){return yw(H,c)};return f>1||this.__actions__.length||!(b instanceof Bt)||!ji(g)?this.thru(M):(b=b.slice(g,+g+(f?1:0)),b.__actions__.push({func:Oh,args:[M],thisArg:n}),new pA(b,this.__chain__).thru(function(H){return f&&!H.length&&H.push(n),H}))});function fee(){return FQ(this)}function hee(){return new pA(this.value(),this.__chain__)}function pee(){this.__values__===n&&(this.__values__=$Q(this.value()));var c=this.__index__>=this.__values__.length,f=c?n:this.__values__[this.__index__++];return{done:c,value:f}}function mee(){return this}function gee(c){for(var f,g=this;g instanceof yh;){var b=yQ(g);b.__index__=0,b.__values__=n,f?M.__wrapped__=b:f=b;var M=b;g=g.__wrapped__}return M.__wrapped__=c,f}function vee(){var c=this.__wrapped__;if(c instanceof Bt){var f=c;return this.__actions__.length&&(f=new Bt(this)),f=f.reverse(),f.__actions__.push({func:Oh,args:[Xw],thisArg:n}),new pA(f,this.__chain__)}return this.thru(Xw)}function wee(){return zF(this.__wrapped__,this.__actions__)}var Bee=Fh(function(c,f,g){It.call(c,g)?++c[g]:qi(c,g,1)});function yee(c,f,g){var b=it(c)?rF:uZ;return g&&yr(c,f,g)&&(f=n),b(c,Je(f,3))}function Cee(c,f){var g=it(c)?$o:xF;return g(c,Je(f,3))}var bee=tQ(CQ),Eee=tQ(bQ);function kee(c,f){return Jn(Nh(c,f),1)}function See(c,f){return Jn(Nh(c,f),x)}function xee(c,f,g){return g=g===n?1:at(g),Jn(Nh(c,f),g)}function QQ(c,f){var g=it(c)?fA:Go;return g(c,Je(f,3))}function TQ(c,f){var g=it(c)?Gj:SF;return g(c,Je(f,3))}var Fee=Fh(function(c,f,g){It.call(c,g)?c[g].push(f):qi(c,g,[f])});function Qee(c,f,g,b){c=Tr(c)?c:tl(c),g=g&&!b?at(g):0;var M=c.length;return g<0&&(g=In(M+g,0)),$h(c)?g<=M&&c.indexOf(f,g)>-1:!!M&&Ka(c,f,g)>-1}var Tee=ut(function(c,f,g){var b=-1,M=typeof f=="function",H=Tr(c)?ye(c.length):[];return Go(c,function(Z){H[++b]=M?$r(f,Z,g):Nc(Z,f,g)}),H}),Mee=Fh(function(c,f,g){qi(c,g,f)});function Nh(c,f){var g=it(c)?Zt:UF;return g(c,Je(f,3))}function Iee(c,f,g,b){return c==null?[]:(it(f)||(f=f==null?[]:[f]),g=b?n:g,it(g)||(g=g==null?[]:[g]),NF(c,f,g))}var Uee=Fh(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function _ee(c,f,g){var b=it(c)?aw:sF,M=arguments.length<3;return b(c,Je(f,4),g,M,Go)}function Dee(c,f,g){var b=it(c)?Yj:sF,M=arguments.length<3;return b(c,Je(f,4),g,M,SF)}function Oee(c,f){var g=it(c)?$o:xF;return g(c,Hh(Je(f,3)))}function Nee(c){var f=it(c)?CF:QZ;return f(c)}function Lee(c,f,g){(g?yr(c,f,g):f===n)?f=1:f=at(f);var b=it(c)?oZ:TZ;return b(c,f)}function Ree(c){var f=it(c)?sZ:IZ;return f(c)}function Hee(c){if(c==null)return 0;if(Tr(c))return $h(c)?Wa(c):c.length;var f=sr(c);return f==R||f==se?c.size:xw(c).length}function Pee(c,f,g){var b=it(c)?lw:UZ;return g&&yr(c,f,g)&&(f=n),b(c,Je(f,3))}var $ee=ut(function(c,f){if(c==null)return[];var g=f.length;return g>1&&yr(c,f[0],f[1])?f=[]:g>2&&yr(f[0],f[1],f[2])&&(f=[f[0]]),NF(c,Jn(f,1),[])}),Lh=C9||function(){return Xn.Date.now()};function Kee(c,f){if(typeof f!="function")throw new hA(o);return c=at(c),function(){if(--c<1)return f.apply(this,arguments)}}function MQ(c,f,g){return f=g?n:f,f=c&&f==null?c.length:f,Xi(c,I,n,n,n,n,f)}function IQ(c,f){var g;if(typeof f!="function")throw new hA(o);return c=at(c),function(){return--c>0&&(g=f.apply(this,arguments)),c<=1&&(f=n),g}}var jw=ut(function(c,f,g){var b=y;if(g.length){var M=zo(g,Va(jw));b|=_}return Xi(c,b,f,g,M)}),UQ=ut(function(c,f,g){var b=y|w;if(g.length){var M=zo(g,Va(UQ));b|=_}return Xi(f,b,c,g,M)});function _Q(c,f,g){f=g?n:f;var b=Xi(c,S,n,n,n,n,n,f);return b.placeholder=_Q.placeholder,b}function DQ(c,f,g){f=g?n:f;var b=Xi(c,Q,n,n,n,n,n,f);return b.placeholder=DQ.placeholder,b}function OQ(c,f,g){var b,M,H,Z,Ae,fe,ke=0,Se=!1,Fe=!1,Ue=!0;if(typeof c!="function")throw new hA(o);f=wA(f)||0,rn(g)&&(Se=!!g.leading,Fe="maxWait"in g,H=Fe?In(wA(g.maxWait)||0,f):H,Ue="trailing"in g?!!g.trailing:Ue);function Ke(Bn){var KA=b,eo=M;return b=M=n,ke=Bn,Z=c.apply(eo,KA),Z}function je(Bn){return ke=Bn,Ae=$c(mt,f),Se?Ke(Bn):Z}function ct(Bn){var KA=Bn-fe,eo=Bn-ke,tT=f-KA;return Fe?or(tT,H-eo):tT}function Ze(Bn){var KA=Bn-fe,eo=Bn-ke;return fe===n||KA>=f||KA<0||Fe&&eo>=H}function mt(){var Bn=Lh();if(Ze(Bn))return yt(Bn);Ae=$c(mt,ct(Bn))}function yt(Bn){return Ae=n,Ue&&b?Ke(Bn):(b=M=n,Z)}function Gr(){Ae!==n&&GF(Ae),ke=0,b=fe=M=Ae=n}function Cr(){return Ae===n?Z:yt(Lh())}function Yr(){var Bn=Lh(),KA=Ze(Bn);if(b=arguments,M=this,fe=Bn,KA){if(Ae===n)return je(fe);if(Fe)return GF(Ae),Ae=$c(mt,f),Ke(fe)}return Ae===n&&(Ae=$c(mt,f)),Z}return Yr.cancel=Gr,Yr.flush=Cr,Yr}var zee=ut(function(c,f){return kF(c,1,f)}),Wee=ut(function(c,f,g){return kF(c,wA(f)||0,g)});function Gee(c){return Xi(c,Y)}function Rh(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new hA(o);var g=function(){var b=arguments,M=f?f.apply(this,b):b[0],H=g.cache;if(H.has(M))return H.get(M);var Z=c.apply(this,b);return g.cache=H.set(M,Z)||H,Z};return g.cache=new(Rh.Cache||Yi),g}Rh.Cache=Yi;function Hh(c){if(typeof c!="function")throw new hA(o);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function Yee(c){return IQ(2,c)}var qee=_Z(function(c,f){f=f.length==1&&it(f[0])?Zt(f[0],Kr(Je())):Zt(Jn(f,1),Kr(Je()));var g=f.length;return ut(function(b){for(var M=-1,H=or(b.length,g);++M<H;)b[M]=f[M].call(this,b[M]);return $r(c,this,b)})}),Zw=ut(function(c,f){var g=zo(f,Va(Zw));return Xi(c,_,n,f,g)}),NQ=ut(function(c,f){var g=zo(f,Va(NQ));return Xi(c,D,n,f,g)}),Xee=Ji(function(c,f){return Xi(c,$,n,n,n,f)});function Jee(c,f){if(typeof c!="function")throw new hA(o);return f=f===n?f:at(f),ut(c,f)}function jee(c,f){if(typeof c!="function")throw new hA(o);return f=f==null?0:In(at(f),0),ut(function(g){var b=g[f],M=Xo(g,0,f);return b&&Ko(M,b),$r(c,this,M)})}function Zee(c,f,g){var b=!0,M=!0;if(typeof c!="function")throw new hA(o);return rn(g)&&(b="leading"in g?!!g.leading:b,M="trailing"in g?!!g.trailing:M),OQ(c,f,{leading:b,maxWait:f,trailing:M})}function Vee(c){return MQ(c,1)}function ete(c,f){return Zw(Ow(f),c)}function tte(){if(!arguments.length)return[];var c=arguments[0];return it(c)?c:[c]}function nte(c){return mA(c,m)}function rte(c,f){return f=typeof f=="function"?f:n,mA(c,m,f)}function Ate(c){return mA(c,h|m)}function ite(c,f){return f=typeof f=="function"?f:n,mA(c,h|m,f)}function ote(c,f){return f==null||EF(c,f,Hn(f))}function $A(c,f){return c===f||c!==c&&f!==f}var ste=Ih(Ew),ate=Ih(function(c,f){return c>=f}),zs=TF((function(){return arguments})())?TF:function(c){return cn(c)&&It.call(c,"callee")&&!mF.call(c,"callee")},it=ye.isArray,lte=jx?Kr(jx):gZ;function Tr(c){return c!=null&&Ph(c.length)&&!Zi(c)}function wn(c){return cn(c)&&Tr(c)}function cte(c){return c===!0||c===!1||cn(c)&&Br(c)==le}var Jo=E9||lB,ute=Zx?Kr(Zx):vZ;function dte(c){return cn(c)&&c.nodeType===1&&!Kc(c)}function fte(c){if(c==null)return!0;if(Tr(c)&&(it(c)||typeof c=="string"||typeof c.splice=="function"||Jo(c)||el(c)||zs(c)))return!c.length;var f=sr(c);if(f==R||f==se)return!c.size;if(Pc(c))return!xw(c).length;for(var g in c)if(It.call(c,g))return!1;return!0}function hte(c,f){return Lc(c,f)}function pte(c,f,g){g=typeof g=="function"?g:n;var b=g?g(c,f):n;return b===n?Lc(c,f,n,g):!!b}function Vw(c){if(!cn(c))return!1;var f=Br(c);return f==ee||f==G||typeof c.message=="string"&&typeof c.name=="string"&&!Kc(c)}function mte(c){return typeof c=="number"&&vF(c)}function Zi(c){if(!rn(c))return!1;var f=Br(c);return f==K||f==N||f==pe||f==U}function LQ(c){return typeof c=="number"&&c==at(c)}function Ph(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=T}function rn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function cn(c){return c!=null&&typeof c=="object"}var RQ=Vx?Kr(Vx):BZ;function gte(c,f){return c===f||Sw(c,f,Kw(f))}function vte(c,f,g){return g=typeof g=="function"?g:n,Sw(c,f,Kw(f),g)}function wte(c){return HQ(c)&&c!=+c}function Bte(c){if(rV(c))throw new rt(i);return MF(c)}function yte(c){return c===null}function Cte(c){return c==null}function HQ(c){return typeof c=="number"||cn(c)&&Br(c)==J}function Kc(c){if(!cn(c)||Br(c)!=ce)return!1;var f=hh(c);if(f===null)return!0;var g=It.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&ch.call(g)==v9}var eB=eF?Kr(eF):yZ;function bte(c){return LQ(c)&&c>=-T&&c<=T}var PQ=tF?Kr(tF):CZ;function $h(c){return typeof c=="string"||!it(c)&&cn(c)&&Br(c)==j}function Wr(c){return typeof c=="symbol"||cn(c)&&Br(c)==be}var el=nF?Kr(nF):bZ;function Ete(c){return c===n}function kte(c){return cn(c)&&sr(c)==ae}function Ste(c){return cn(c)&&Br(c)==he}var xte=Ih(Fw),Fte=Ih(function(c,f){return c<=f});function $Q(c){if(!c)return[];if(Tr(c))return $h(c)?HA(c):Qr(c);if(Tc&&c[Tc])return o9(c[Tc]());var f=sr(c),g=f==R?pw:f==se?sh:tl;return g(c)}function Vi(c){if(!c)return c===0?c:0;if(c=wA(c),c===x||c===-x){var f=c<0?-1:1;return f*P}return c===c?c:0}function at(c){var f=Vi(c),g=f%1;return f===f?g?f-g:f:0}function KQ(c){return c?Hs(at(c),0,E):0}function wA(c){if(typeof c=="number")return c;if(Wr(c))return F;if(rn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=rn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=aF(c);var g=Ki.test(c);return g||Re.test(c)?Kj(c.slice(2),g?2:8):gi.test(c)?F:+c}function zQ(c){return wi(c,Mr(c))}function Qte(c){return c?Hs(at(c),-T,T):c===0?c:0}function Ut(c){return c==null?"":zr(c)}var Tte=ja(function(c,f){if(Pc(f)||Tr(f)){wi(f,Hn(f),c);return}for(var g in f)It.call(f,g)&&Dc(c,g,f[g])}),WQ=ja(function(c,f){wi(f,Mr(f),c)}),Kh=ja(function(c,f,g,b){wi(f,Mr(f),c,b)}),Mte=ja(function(c,f,g,b){wi(f,Hn(f),c,b)}),Ite=Ji(yw);function Ute(c,f){var g=Ja(c);return f==null?g:bF(g,f)}var _te=ut(function(c,f){c=Pt(c);var g=-1,b=f.length,M=b>2?f[2]:n;for(M&&yr(f[0],f[1],M)&&(b=1);++g<b;)for(var H=f[g],Z=Mr(H),Ae=-1,fe=Z.length;++Ae<fe;){var ke=Z[Ae],Se=c[ke];(Se===n||$A(Se,Ya[ke])&&!It.call(c,ke))&&(c[ke]=H[ke])}return c}),Dte=ut(function(c){return c.push(n,aQ),$r(GQ,n,c)});function Ote(c,f){return AF(c,Je(f,3),vi)}function Nte(c,f){return AF(c,Je(f,3),bw)}function Lte(c,f){return c==null?c:Cw(c,Je(f,3),Mr)}function Rte(c,f){return c==null?c:FF(c,Je(f,3),Mr)}function Hte(c,f){return c&&vi(c,Je(f,3))}function Pte(c,f){return c&&bw(c,Je(f,3))}function $te(c){return c==null?[]:Eh(c,Hn(c))}function Kte(c){return c==null?[]:Eh(c,Mr(c))}function tB(c,f,g){var b=c==null?n:Ps(c,f);return b===n?g:b}function zte(c,f){return c!=null&&uQ(c,f,fZ)}function nB(c,f){return c!=null&&uQ(c,f,hZ)}var Wte=rQ(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),c[f]=g},AB(Ir)),Gte=rQ(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),It.call(c,f)?c[f].push(g):c[f]=[g]},Je),Yte=ut(Nc);function Hn(c){return Tr(c)?yF(c):xw(c)}function Mr(c){return Tr(c)?yF(c,!0):EZ(c)}function qte(c,f){var g={};return f=Je(f,3),vi(c,function(b,M,H){qi(g,f(b,M,H),b)}),g}function Xte(c,f){var g={};return f=Je(f,3),vi(c,function(b,M,H){qi(g,M,f(b,M,H))}),g}var Jte=ja(function(c,f,g){kh(c,f,g)}),GQ=ja(function(c,f,g,b){kh(c,f,g,b)}),jte=Ji(function(c,f){var g={};if(c==null)return g;var b=!1;f=Zt(f,function(H){return H=qo(H,c),b||(b=H.length>1),H}),wi(c,Pw(c),g),b&&(g=mA(g,h|p|m,WZ));for(var M=f.length;M--;)Uw(g,f[M]);return g});function Zte(c,f){return YQ(c,Hh(Je(f)))}var Vte=Ji(function(c,f){return c==null?{}:SZ(c,f)});function YQ(c,f){if(c==null)return{};var g=Zt(Pw(c),function(b){return[b]});return f=Je(f),LF(c,g,function(b,M){return f(b,M[0])})}function ene(c,f,g){f=qo(f,c);var b=-1,M=f.length;for(M||(M=1,c=n);++b<M;){var H=c==null?n:c[Bi(f[b])];H===n&&(b=M,H=g),c=Zi(H)?H.call(c):H}return c}function tne(c,f,g){return c==null?c:Rc(c,f,g)}function nne(c,f,g,b){return b=typeof b=="function"?b:n,c==null?c:Rc(c,f,g,b)}var qQ=oQ(Hn),XQ=oQ(Mr);function rne(c,f,g){var b=it(c),M=b||Jo(c)||el(c);if(f=Je(f,4),g==null){var H=c&&c.constructor;M?g=b?new H:[]:rn(c)?g=Zi(H)?Ja(hh(c)):{}:g={}}return(M?fA:vi)(c,function(Z,Ae,fe){return f(g,Z,Ae,fe)}),g}function Ane(c,f){return c==null?!0:Uw(c,f)}function ine(c,f,g){return c==null?c:KF(c,f,Ow(g))}function one(c,f,g,b){return b=typeof b=="function"?b:n,c==null?c:KF(c,f,Ow(g),b)}function tl(c){return c==null?[]:hw(c,Hn(c))}function sne(c){return c==null?[]:hw(c,Mr(c))}function ane(c,f,g){return g===n&&(g=f,f=n),g!==n&&(g=wA(g),g=g===g?g:0),f!==n&&(f=wA(f),f=f===f?f:0),Hs(wA(c),f,g)}function lne(c,f,g){return f=Vi(f),g===n?(g=f,f=0):g=Vi(g),c=wA(c),pZ(c,f,g)}function cne(c,f,g){if(g&&typeof g!="boolean"&&yr(c,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof c=="boolean"&&(g=c,c=n)),c===n&&f===n?(c=0,f=1):(c=Vi(c),f===n?(f=c,c=0):f=Vi(f)),c>f){var b=c;c=f,f=b}if(g||c%1||f%1){var M=wF();return or(c+M*(f-c+$j("1e-"+((M+"").length-1))),f)}return Tw(c,f)}var une=Za(function(c,f,g){return f=f.toLowerCase(),c+(g?JQ(f):f)});function JQ(c){return rB(Ut(c).toLowerCase())}function jQ(c){return c=Ut(c),c&&c.replace(Te,t9).replace(Ij,"")}function dne(c,f,g){c=Ut(c),f=zr(f);var b=c.length;g=g===n?b:Hs(at(g),0,b);var M=g;return g-=f.length,g>=0&&c.slice(g,M)==f}function fne(c){return c=Ut(c),c&&Ho.test(c)?c.replace(mi,n9):c}function hne(c){return c=Ut(c),c&&Ha.test(c)?c.replace(Po,"\\$&"):c}var pne=Za(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),mne=Za(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),gne=eQ("toLowerCase");function vne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;if(!f||b>=f)return c;var M=(f-b)/2;return Mh(vh(M),g)+c+Mh(gh(M),g)}function wne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;return f&&b<f?c+Mh(f-b,g):c}function Bne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;return f&&b<f?Mh(f-b,g)+c:c}function yne(c,f,g){return g||f==null?f=0:f&&(f=+f),F9(Ut(c).replace(Ds,""),f||0)}function Cne(c,f,g){return(g?yr(c,f,g):f===n)?f=1:f=at(f),Mw(Ut(c),f)}function bne(){var c=arguments,f=Ut(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var Ene=Za(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function kne(c,f,g){return g&&typeof g!="number"&&yr(c,f,g)&&(f=g=n),g=g===n?E:g>>>0,g?(c=Ut(c),c&&(typeof f=="string"||f!=null&&!eB(f))&&(f=zr(f),!f&&za(c))?Xo(HA(c),0,g):c.split(f,g)):[]}var Sne=Za(function(c,f,g){return c+(g?" ":"")+rB(f)});function xne(c,f,g){return c=Ut(c),g=g==null?0:Hs(at(g),0,c.length),f=zr(f),c.slice(g,g+f.length)==f}function Fne(c,f,g){var b=L.templateSettings;g&&yr(c,f,g)&&(f=n),c=Ut(c),f=Kh({},f,b,sQ);var M=Kh({},f.imports,b.imports,sQ),H=Hn(M),Z=hw(M,H),Ae,fe,ke=0,Se=f.interpolate||He,Fe="__p += '",Ue=mw((f.escape||He).source+"|"+Se.source+"|"+(Se===NA?Pr:He).source+"|"+(f.evaluate||He).source+"|$","g"),Ke="//# sourceURL="+(It.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nj+"]")+`
|
|
152
|
-
`;c.replace(Ue,function(Ze,mt,yt,Gr,Cr,Yr){return yt||(yt=Gr),Fe+=c.slice(ke,Yr).replace(zt,
|
|
151
|
+
`)}function tV(c){return it(c)||zs(c)||!!(gF&&c&&c[gF])}function ji(c,f){var g=typeof c;return f=f??T,!!f&&(g=="number"||g!="symbol"&&oe.test(c))&&c>-1&&c%1==0&&c<f}function yr(c,f,g){if(!rn(g))return!1;var b=typeof f;return(b=="number"?Tr(g)&&ji(f,g.length):b=="string"&&f in g)?$A(g[f],c):!1}function Ww(c,f){if(it(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||Wr(c)?!0:Ra.test(c)||!Fc.test(c)||f!=null&&c in Pt(f)}function nV(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function Gw(c){var f=Uh(c),g=L[f];if(typeof g!="function"||!(f in Bt.prototype))return!1;if(c===g)return!0;var b=$w(g);return!!b&&c===b[0]}function rV(c){return!!fF&&fF in c}var AV=lh?Zi:lB;function Pc(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||Ya;return c===g}function fQ(c){return c===c&&!rn(c)}function hQ(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==n||c in Pt(g))}}function iV(c){var f=Rh(c,function(b){return g.size===u&&g.clear(),b}),g=f.cache;return f}function oV(c,f){var g=c[1],b=f[1],M=g|b,H=M<(y|w|I),Z=b==I&&g==S||b==I&&g==$&&c[7].length<=f[8]||b==(I|$)&&f[7].length<=f[8]&&g==S;if(!(H||Z))return c;b&y&&(c[2]=f[2],M|=g&y?0:C);var ie=f[3];if(ie){var fe=c[3];c[3]=fe?JF(fe,ie,f[4]):ie,c[4]=fe?zo(c[3],d):f[4]}return ie=f[5],ie&&(fe=c[5],c[5]=fe?jF(fe,ie,f[6]):ie,c[6]=fe?zo(c[5],d):f[6]),ie=f[7],ie&&(c[7]=ie),b&I&&(c[8]=c[8]==null?f[8]:or(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=M,c}function sV(c){var f=[];if(c!=null)for(var g in Pt(c))f.push(g);return f}function aV(c){return uh.call(c)}function pQ(c,f,g){return f=In(f===n?c.length-1:f,0),function(){for(var b=arguments,M=-1,H=In(b.length-f,0),Z=ye(H);++M<H;)Z[M]=b[f+M];M=-1;for(var ie=ye(f+1);++M<f;)ie[M]=b[M];return ie[f]=g(Z),$r(c,this,ie)}}function mQ(c,f){return f.length<2?c:Ps(c,gA(f,0,-1))}function lV(c,f){for(var g=c.length,b=or(f.length,g),M=Qr(c);b--;){var H=f[b];c[b]=ji(H,g)?M[H]:n}return c}function Yw(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var gQ=wQ(HF),$c=E9||function(c,f){return Xn.setTimeout(c,f)},qw=wQ(IZ);function vQ(c,f,g){var b=f+"";return qw(c,eV(b,cV(jZ(b),g)))}function wQ(c){var f=0,g=0;return function(){var b=F9(),M=we-(b-g);if(g=b,M>0){if(++f>=me)return arguments[0]}else f=0;return c.apply(n,arguments)}}function Dh(c,f){var g=-1,b=c.length,M=b-1;for(f=f===n?b:f;++g<f;){var H=Tw(g,M),Z=c[H];c[H]=c[g],c[g]=Z}return c.length=f,c}var BQ=iV(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(_s,function(g,b,M,H){f.push(M?H.replace(bt,"$1"):b||g)}),f});function Bi(c){if(typeof c=="string"||Wr(c))return c;var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Ks(c){if(c!=null){try{return ch.call(c)}catch{}try{return c+""}catch{}}return""}function cV(c,f){return fA(X,function(g){var b="_."+g[0];f&g[1]&&!ih(c,b)&&c.push(b)}),c.sort()}function yQ(c){if(c instanceof Bt)return c.clone();var f=new pA(c.__wrapped__,c.__chain__);return f.__actions__=Qr(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function uV(c,f,g){(g?yr(c,f,g):f===n)?f=1:f=In(at(f),0);var b=c==null?0:c.length;if(!b||f<1)return[];for(var M=0,H=0,Z=ye(gh(b/f));M<b;)Z[H++]=gA(c,M,M+=f);return Z}function dV(c){for(var f=-1,g=c==null?0:c.length,b=0,M=[];++f<g;){var H=c[f];H&&(M[b++]=H)}return M}function fV(){var c=arguments.length;if(!c)return[];for(var f=ye(c-1),g=arguments[0],b=c;b--;)f[b-1]=arguments[b];return Ko(it(g)?Qr(g):[g],Jn(f,1))}var hV=ut(function(c,f){return wn(c)?Oc(c,Jn(f,1,wn,!0)):[]}),pV=ut(function(c,f){var g=vA(f);return wn(g)&&(g=n),wn(c)?Oc(c,Jn(f,1,wn,!0),Je(g,2)):[]}),mV=ut(function(c,f){var g=vA(f);return wn(g)&&(g=n),wn(c)?Oc(c,Jn(f,1,wn,!0),n,g):[]});function gV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),gA(c,f<0?0:f,b)):[]}function vV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),f=b-f,gA(c,0,f<0?0:f)):[]}function wV(c,f){return c&&c.length?xh(c,Je(f,3),!0,!0):[]}function BV(c,f){return c&&c.length?xh(c,Je(f,3),!0):[]}function yV(c,f,g,b){var M=c==null?0:c.length;return M?(g&&typeof g!="number"&&yr(c,f,g)&&(g=0,b=M),fZ(c,f,g,b)):[]}function CQ(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=g==null?0:at(g);return M<0&&(M=In(b+M,0)),oh(c,Je(f,3),M)}function bQ(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=b-1;return g!==n&&(M=at(g),M=g<0?In(b+M,0):or(M,b-1)),oh(c,Je(f,3),M,!0)}function EQ(c){var f=c==null?0:c.length;return f?Jn(c,1):[]}function CV(c){var f=c==null?0:c.length;return f?Jn(c,x):[]}function bV(c,f){var g=c==null?0:c.length;return g?(f=f===n?1:at(f),Jn(c,f)):[]}function EV(c){for(var f=-1,g=c==null?0:c.length,b={};++f<g;){var M=c[f];b[M[0]]=M[1]}return b}function kQ(c){return c&&c.length?c[0]:n}function kV(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=g==null?0:at(g);return M<0&&(M=In(b+M,0)),Ka(c,f,M)}function SV(c){var f=c==null?0:c.length;return f?gA(c,0,-1):[]}var xV=ut(function(c){var f=Zt(c,Dw);return f.length&&f[0]===c[0]?kw(f):[]}),FV=ut(function(c){var f=vA(c),g=Zt(c,Dw);return f===vA(g)?f=n:g.pop(),g.length&&g[0]===c[0]?kw(g,Je(f,2)):[]}),QV=ut(function(c){var f=vA(c),g=Zt(c,Dw);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===c[0]?kw(g,n,f):[]});function TV(c,f){return c==null?"":S9.call(c,f)}function vA(c){var f=c==null?0:c.length;return f?c[f-1]:n}function MV(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var M=b;return g!==n&&(M=at(g),M=M<0?In(b+M,0):or(M,b-1)),f===f?c9(c,f,M):oh(c,iF,M,!0)}function IV(c,f){return c&&c.length?OF(c,at(f)):n}var UV=ut(SQ);function SQ(c,f){return c&&c.length&&f&&f.length?Qw(c,f):c}function _V(c,f,g){return c&&c.length&&f&&f.length?Qw(c,f,Je(g,2)):c}function DV(c,f,g){return c&&c.length&&f&&f.length?Qw(c,f,n,g):c}var OV=Ji(function(c,f){var g=c==null?0:c.length,b=yw(c,f);return RF(c,Zt(f,function(M){return ji(M,g)?+M:M}).sort(XF)),b});function NV(c,f){var g=[];if(!(c&&c.length))return g;var b=-1,M=[],H=c.length;for(f=Je(f,3);++b<H;){var Z=c[b];f(Z,b,c)&&(g.push(Z),M.push(b))}return RF(c,M),g}function Xw(c){return c==null?c:T9.call(c)}function LV(c,f,g){var b=c==null?0:c.length;return b?(g&&typeof g!="number"&&yr(c,f,g)?(f=0,g=b):(f=f==null?0:at(f),g=g===n?b:at(g)),gA(c,f,g)):[]}function RV(c,f){return Sh(c,f)}function HV(c,f,g){return Iw(c,f,Je(g,2))}function PV(c,f){var g=c==null?0:c.length;if(g){var b=Sh(c,f);if(b<g&&$A(c[b],f))return b}return-1}function $V(c,f){return Sh(c,f,!0)}function KV(c,f,g){return Iw(c,f,Je(g,2),!0)}function zV(c,f){var g=c==null?0:c.length;if(g){var b=Sh(c,f,!0)-1;if($A(c[b],f))return b}return-1}function WV(c){return c&&c.length?PF(c):[]}function GV(c,f){return c&&c.length?PF(c,Je(f,2)):[]}function YV(c){var f=c==null?0:c.length;return f?gA(c,1,f):[]}function qV(c,f,g){return c&&c.length?(f=g||f===n?1:at(f),gA(c,0,f<0?0:f)):[]}function XV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),f=b-f,gA(c,f<0?0:f,b)):[]}function JV(c,f){return c&&c.length?xh(c,Je(f,3),!1,!0):[]}function jV(c,f){return c&&c.length?xh(c,Je(f,3)):[]}var ZV=ut(function(c){return Yo(Jn(c,1,wn,!0))}),VV=ut(function(c){var f=vA(c);return wn(f)&&(f=n),Yo(Jn(c,1,wn,!0),Je(f,2))}),eee=ut(function(c){var f=vA(c);return f=typeof f=="function"?f:n,Yo(Jn(c,1,wn,!0),n,f)});function tee(c){return c&&c.length?Yo(c):[]}function nee(c,f){return c&&c.length?Yo(c,Je(f,2)):[]}function ree(c,f){return f=typeof f=="function"?f:n,c&&c.length?Yo(c,n,f):[]}function Jw(c){if(!(c&&c.length))return[];var f=0;return c=$o(c,function(g){if(wn(g))return f=In(g.length,f),!0}),fw(f,function(g){return Zt(c,cw(g))})}function xQ(c,f){if(!(c&&c.length))return[];var g=Jw(c);return f==null?g:Zt(g,function(b){return $r(f,n,b)})}var Aee=ut(function(c,f){return wn(c)?Oc(c,f):[]}),iee=ut(function(c){return _w($o(c,wn))}),oee=ut(function(c){var f=vA(c);return wn(f)&&(f=n),_w($o(c,wn),Je(f,2))}),see=ut(function(c){var f=vA(c);return f=typeof f=="function"?f:n,_w($o(c,wn),n,f)}),aee=ut(Jw);function lee(c,f){return WF(c||[],f||[],Dc)}function cee(c,f){return WF(c||[],f||[],Rc)}var uee=ut(function(c){var f=c.length,g=f>1?c[f-1]:n;return g=typeof g=="function"?(c.pop(),g):n,xQ(c,g)});function FQ(c){var f=L(c);return f.__chain__=!0,f}function dee(c,f){return f(c),c}function Oh(c,f){return f(c)}var fee=Ji(function(c){var f=c.length,g=f?c[0]:0,b=this.__wrapped__,M=function(H){return yw(H,c)};return f>1||this.__actions__.length||!(b instanceof Bt)||!ji(g)?this.thru(M):(b=b.slice(g,+g+(f?1:0)),b.__actions__.push({func:Oh,args:[M],thisArg:n}),new pA(b,this.__chain__).thru(function(H){return f&&!H.length&&H.push(n),H}))});function hee(){return FQ(this)}function pee(){return new pA(this.value(),this.__chain__)}function mee(){this.__values__===n&&(this.__values__=$Q(this.value()));var c=this.__index__>=this.__values__.length,f=c?n:this.__values__[this.__index__++];return{done:c,value:f}}function gee(){return this}function vee(c){for(var f,g=this;g instanceof yh;){var b=yQ(g);b.__index__=0,b.__values__=n,f?M.__wrapped__=b:f=b;var M=b;g=g.__wrapped__}return M.__wrapped__=c,f}function wee(){var c=this.__wrapped__;if(c instanceof Bt){var f=c;return this.__actions__.length&&(f=new Bt(this)),f=f.reverse(),f.__actions__.push({func:Oh,args:[Xw],thisArg:n}),new pA(f,this.__chain__)}return this.thru(Xw)}function Bee(){return zF(this.__wrapped__,this.__actions__)}var yee=Fh(function(c,f,g){It.call(c,g)?++c[g]:qi(c,g,1)});function Cee(c,f,g){var b=it(c)?rF:dZ;return g&&yr(c,f,g)&&(f=n),b(c,Je(f,3))}function bee(c,f){var g=it(c)?$o:xF;return g(c,Je(f,3))}var Eee=tQ(CQ),kee=tQ(bQ);function See(c,f){return Jn(Nh(c,f),1)}function xee(c,f){return Jn(Nh(c,f),x)}function Fee(c,f,g){return g=g===n?1:at(g),Jn(Nh(c,f),g)}function QQ(c,f){var g=it(c)?fA:Go;return g(c,Je(f,3))}function TQ(c,f){var g=it(c)?Yj:SF;return g(c,Je(f,3))}var Qee=Fh(function(c,f,g){It.call(c,g)?c[g].push(f):qi(c,g,[f])});function Tee(c,f,g,b){c=Tr(c)?c:tl(c),g=g&&!b?at(g):0;var M=c.length;return g<0&&(g=In(M+g,0)),$h(c)?g<=M&&c.indexOf(f,g)>-1:!!M&&Ka(c,f,g)>-1}var Mee=ut(function(c,f,g){var b=-1,M=typeof f=="function",H=Tr(c)?ye(c.length):[];return Go(c,function(Z){H[++b]=M?$r(f,Z,g):Nc(Z,f,g)}),H}),Iee=Fh(function(c,f,g){qi(c,g,f)});function Nh(c,f){var g=it(c)?Zt:UF;return g(c,Je(f,3))}function Uee(c,f,g,b){return c==null?[]:(it(f)||(f=f==null?[]:[f]),g=b?n:g,it(g)||(g=g==null?[]:[g]),NF(c,f,g))}var _ee=Fh(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function Dee(c,f,g){var b=it(c)?aw:sF,M=arguments.length<3;return b(c,Je(f,4),g,M,Go)}function Oee(c,f,g){var b=it(c)?qj:sF,M=arguments.length<3;return b(c,Je(f,4),g,M,SF)}function Nee(c,f){var g=it(c)?$o:xF;return g(c,Hh(Je(f,3)))}function Lee(c){var f=it(c)?CF:TZ;return f(c)}function Ree(c,f,g){(g?yr(c,f,g):f===n)?f=1:f=at(f);var b=it(c)?sZ:MZ;return b(c,f)}function Hee(c){var f=it(c)?aZ:UZ;return f(c)}function Pee(c){if(c==null)return 0;if(Tr(c))return $h(c)?Wa(c):c.length;var f=sr(c);return f==R||f==se?c.size:xw(c).length}function $ee(c,f,g){var b=it(c)?lw:_Z;return g&&yr(c,f,g)&&(f=n),b(c,Je(f,3))}var Kee=ut(function(c,f){if(c==null)return[];var g=f.length;return g>1&&yr(c,f[0],f[1])?f=[]:g>2&&yr(f[0],f[1],f[2])&&(f=[f[0]]),NF(c,Jn(f,1),[])}),Lh=b9||function(){return Xn.Date.now()};function zee(c,f){if(typeof f!="function")throw new hA(o);return c=at(c),function(){if(--c<1)return f.apply(this,arguments)}}function MQ(c,f,g){return f=g?n:f,f=c&&f==null?c.length:f,Xi(c,I,n,n,n,n,f)}function IQ(c,f){var g;if(typeof f!="function")throw new hA(o);return c=at(c),function(){return--c>0&&(g=f.apply(this,arguments)),c<=1&&(f=n),g}}var jw=ut(function(c,f,g){var b=y;if(g.length){var M=zo(g,Va(jw));b|=_}return Xi(c,b,f,g,M)}),UQ=ut(function(c,f,g){var b=y|w;if(g.length){var M=zo(g,Va(UQ));b|=_}return Xi(f,b,c,g,M)});function _Q(c,f,g){f=g?n:f;var b=Xi(c,S,n,n,n,n,n,f);return b.placeholder=_Q.placeholder,b}function DQ(c,f,g){f=g?n:f;var b=Xi(c,Q,n,n,n,n,n,f);return b.placeholder=DQ.placeholder,b}function OQ(c,f,g){var b,M,H,Z,ie,fe,ke=0,Se=!1,Fe=!1,Ue=!0;if(typeof c!="function")throw new hA(o);f=wA(f)||0,rn(g)&&(Se=!!g.leading,Fe="maxWait"in g,H=Fe?In(wA(g.maxWait)||0,f):H,Ue="trailing"in g?!!g.trailing:Ue);function Ke(Bn){var KA=b,eo=M;return b=M=n,ke=Bn,Z=c.apply(eo,KA),Z}function je(Bn){return ke=Bn,ie=$c(mt,f),Se?Ke(Bn):Z}function ct(Bn){var KA=Bn-fe,eo=Bn-ke,tT=f-KA;return Fe?or(tT,H-eo):tT}function Ze(Bn){var KA=Bn-fe,eo=Bn-ke;return fe===n||KA>=f||KA<0||Fe&&eo>=H}function mt(){var Bn=Lh();if(Ze(Bn))return yt(Bn);ie=$c(mt,ct(Bn))}function yt(Bn){return ie=n,Ue&&b?Ke(Bn):(b=M=n,Z)}function Gr(){ie!==n&&GF(ie),ke=0,b=fe=M=ie=n}function Cr(){return ie===n?Z:yt(Lh())}function Yr(){var Bn=Lh(),KA=Ze(Bn);if(b=arguments,M=this,fe=Bn,KA){if(ie===n)return je(fe);if(Fe)return GF(ie),ie=$c(mt,f),Ke(fe)}return ie===n&&(ie=$c(mt,f)),Z}return Yr.cancel=Gr,Yr.flush=Cr,Yr}var Wee=ut(function(c,f){return kF(c,1,f)}),Gee=ut(function(c,f,g){return kF(c,wA(f)||0,g)});function Yee(c){return Xi(c,Y)}function Rh(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new hA(o);var g=function(){var b=arguments,M=f?f.apply(this,b):b[0],H=g.cache;if(H.has(M))return H.get(M);var Z=c.apply(this,b);return g.cache=H.set(M,Z)||H,Z};return g.cache=new(Rh.Cache||Yi),g}Rh.Cache=Yi;function Hh(c){if(typeof c!="function")throw new hA(o);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function qee(c){return IQ(2,c)}var Xee=DZ(function(c,f){f=f.length==1&&it(f[0])?Zt(f[0],Kr(Je())):Zt(Jn(f,1),Kr(Je()));var g=f.length;return ut(function(b){for(var M=-1,H=or(b.length,g);++M<H;)b[M]=f[M].call(this,b[M]);return $r(c,this,b)})}),Zw=ut(function(c,f){var g=zo(f,Va(Zw));return Xi(c,_,n,f,g)}),NQ=ut(function(c,f){var g=zo(f,Va(NQ));return Xi(c,D,n,f,g)}),Jee=Ji(function(c,f){return Xi(c,$,n,n,n,f)});function jee(c,f){if(typeof c!="function")throw new hA(o);return f=f===n?f:at(f),ut(c,f)}function Zee(c,f){if(typeof c!="function")throw new hA(o);return f=f==null?0:In(at(f),0),ut(function(g){var b=g[f],M=Xo(g,0,f);return b&&Ko(M,b),$r(c,this,M)})}function Vee(c,f,g){var b=!0,M=!0;if(typeof c!="function")throw new hA(o);return rn(g)&&(b="leading"in g?!!g.leading:b,M="trailing"in g?!!g.trailing:M),OQ(c,f,{leading:b,maxWait:f,trailing:M})}function ete(c){return MQ(c,1)}function tte(c,f){return Zw(Ow(f),c)}function nte(){if(!arguments.length)return[];var c=arguments[0];return it(c)?c:[c]}function rte(c){return mA(c,m)}function Ate(c,f){return f=typeof f=="function"?f:n,mA(c,m,f)}function ite(c){return mA(c,h|m)}function ote(c,f){return f=typeof f=="function"?f:n,mA(c,h|m,f)}function ste(c,f){return f==null||EF(c,f,Hn(f))}function $A(c,f){return c===f||c!==c&&f!==f}var ate=Ih(Ew),lte=Ih(function(c,f){return c>=f}),zs=TF((function(){return arguments})())?TF:function(c){return cn(c)&&It.call(c,"callee")&&!mF.call(c,"callee")},it=ye.isArray,cte=jx?Kr(jx):vZ;function Tr(c){return c!=null&&Ph(c.length)&&!Zi(c)}function wn(c){return cn(c)&&Tr(c)}function ute(c){return c===!0||c===!1||cn(c)&&Br(c)==le}var Jo=k9||lB,dte=Zx?Kr(Zx):wZ;function fte(c){return cn(c)&&c.nodeType===1&&!Kc(c)}function hte(c){if(c==null)return!0;if(Tr(c)&&(it(c)||typeof c=="string"||typeof c.splice=="function"||Jo(c)||el(c)||zs(c)))return!c.length;var f=sr(c);if(f==R||f==se)return!c.size;if(Pc(c))return!xw(c).length;for(var g in c)if(It.call(c,g))return!1;return!0}function pte(c,f){return Lc(c,f)}function mte(c,f,g){g=typeof g=="function"?g:n;var b=g?g(c,f):n;return b===n?Lc(c,f,n,g):!!b}function Vw(c){if(!cn(c))return!1;var f=Br(c);return f==ee||f==G||typeof c.message=="string"&&typeof c.name=="string"&&!Kc(c)}function gte(c){return typeof c=="number"&&vF(c)}function Zi(c){if(!rn(c))return!1;var f=Br(c);return f==K||f==N||f==pe||f==U}function LQ(c){return typeof c=="number"&&c==at(c)}function Ph(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=T}function rn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function cn(c){return c!=null&&typeof c=="object"}var RQ=Vx?Kr(Vx):yZ;function vte(c,f){return c===f||Sw(c,f,Kw(f))}function wte(c,f,g){return g=typeof g=="function"?g:n,Sw(c,f,Kw(f),g)}function Bte(c){return HQ(c)&&c!=+c}function yte(c){if(AV(c))throw new rt(i);return MF(c)}function Cte(c){return c===null}function bte(c){return c==null}function HQ(c){return typeof c=="number"||cn(c)&&Br(c)==J}function Kc(c){if(!cn(c)||Br(c)!=ce)return!1;var f=hh(c);if(f===null)return!0;var g=It.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&ch.call(g)==w9}var eB=eF?Kr(eF):CZ;function Ete(c){return LQ(c)&&c>=-T&&c<=T}var PQ=tF?Kr(tF):bZ;function $h(c){return typeof c=="string"||!it(c)&&cn(c)&&Br(c)==j}function Wr(c){return typeof c=="symbol"||cn(c)&&Br(c)==be}var el=nF?Kr(nF):EZ;function kte(c){return c===n}function Ste(c){return cn(c)&&sr(c)==ae}function xte(c){return cn(c)&&Br(c)==he}var Fte=Ih(Fw),Qte=Ih(function(c,f){return c<=f});function $Q(c){if(!c)return[];if(Tr(c))return $h(c)?HA(c):Qr(c);if(Tc&&c[Tc])return s9(c[Tc]());var f=sr(c),g=f==R?pw:f==se?sh:tl;return g(c)}function Vi(c){if(!c)return c===0?c:0;if(c=wA(c),c===x||c===-x){var f=c<0?-1:1;return f*P}return c===c?c:0}function at(c){var f=Vi(c),g=f%1;return f===f?g?f-g:f:0}function KQ(c){return c?Hs(at(c),0,E):0}function wA(c){if(typeof c=="number")return c;if(Wr(c))return F;if(rn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=rn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=aF(c);var g=Ki.test(c);return g||Re.test(c)?zj(c.slice(2),g?2:8):gi.test(c)?F:+c}function zQ(c){return wi(c,Mr(c))}function Tte(c){return c?Hs(at(c),-T,T):c===0?c:0}function Ut(c){return c==null?"":zr(c)}var Mte=ja(function(c,f){if(Pc(f)||Tr(f)){wi(f,Hn(f),c);return}for(var g in f)It.call(f,g)&&Dc(c,g,f[g])}),WQ=ja(function(c,f){wi(f,Mr(f),c)}),Kh=ja(function(c,f,g,b){wi(f,Mr(f),c,b)}),Ite=ja(function(c,f,g,b){wi(f,Hn(f),c,b)}),Ute=Ji(yw);function _te(c,f){var g=Ja(c);return f==null?g:bF(g,f)}var Dte=ut(function(c,f){c=Pt(c);var g=-1,b=f.length,M=b>2?f[2]:n;for(M&&yr(f[0],f[1],M)&&(b=1);++g<b;)for(var H=f[g],Z=Mr(H),ie=-1,fe=Z.length;++ie<fe;){var ke=Z[ie],Se=c[ke];(Se===n||$A(Se,Ya[ke])&&!It.call(c,ke))&&(c[ke]=H[ke])}return c}),Ote=ut(function(c){return c.push(n,aQ),$r(GQ,n,c)});function Nte(c,f){return AF(c,Je(f,3),vi)}function Lte(c,f){return AF(c,Je(f,3),bw)}function Rte(c,f){return c==null?c:Cw(c,Je(f,3),Mr)}function Hte(c,f){return c==null?c:FF(c,Je(f,3),Mr)}function Pte(c,f){return c&&vi(c,Je(f,3))}function $te(c,f){return c&&bw(c,Je(f,3))}function Kte(c){return c==null?[]:Eh(c,Hn(c))}function zte(c){return c==null?[]:Eh(c,Mr(c))}function tB(c,f,g){var b=c==null?n:Ps(c,f);return b===n?g:b}function Wte(c,f){return c!=null&&uQ(c,f,hZ)}function nB(c,f){return c!=null&&uQ(c,f,pZ)}var Gte=rQ(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),c[f]=g},AB(Ir)),Yte=rQ(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),It.call(c,f)?c[f].push(g):c[f]=[g]},Je),qte=ut(Nc);function Hn(c){return Tr(c)?yF(c):xw(c)}function Mr(c){return Tr(c)?yF(c,!0):kZ(c)}function Xte(c,f){var g={};return f=Je(f,3),vi(c,function(b,M,H){qi(g,f(b,M,H),b)}),g}function Jte(c,f){var g={};return f=Je(f,3),vi(c,function(b,M,H){qi(g,M,f(b,M,H))}),g}var jte=ja(function(c,f,g){kh(c,f,g)}),GQ=ja(function(c,f,g,b){kh(c,f,g,b)}),Zte=Ji(function(c,f){var g={};if(c==null)return g;var b=!1;f=Zt(f,function(H){return H=qo(H,c),b||(b=H.length>1),H}),wi(c,Pw(c),g),b&&(g=mA(g,h|p|m,GZ));for(var M=f.length;M--;)Uw(g,f[M]);return g});function Vte(c,f){return YQ(c,Hh(Je(f)))}var ene=Ji(function(c,f){return c==null?{}:xZ(c,f)});function YQ(c,f){if(c==null)return{};var g=Zt(Pw(c),function(b){return[b]});return f=Je(f),LF(c,g,function(b,M){return f(b,M[0])})}function tne(c,f,g){f=qo(f,c);var b=-1,M=f.length;for(M||(M=1,c=n);++b<M;){var H=c==null?n:c[Bi(f[b])];H===n&&(b=M,H=g),c=Zi(H)?H.call(c):H}return c}function nne(c,f,g){return c==null?c:Rc(c,f,g)}function rne(c,f,g,b){return b=typeof b=="function"?b:n,c==null?c:Rc(c,f,g,b)}var qQ=oQ(Hn),XQ=oQ(Mr);function Ane(c,f,g){var b=it(c),M=b||Jo(c)||el(c);if(f=Je(f,4),g==null){var H=c&&c.constructor;M?g=b?new H:[]:rn(c)?g=Zi(H)?Ja(hh(c)):{}:g={}}return(M?fA:vi)(c,function(Z,ie,fe){return f(g,Z,ie,fe)}),g}function ine(c,f){return c==null?!0:Uw(c,f)}function one(c,f,g){return c==null?c:KF(c,f,Ow(g))}function sne(c,f,g,b){return b=typeof b=="function"?b:n,c==null?c:KF(c,f,Ow(g),b)}function tl(c){return c==null?[]:hw(c,Hn(c))}function ane(c){return c==null?[]:hw(c,Mr(c))}function lne(c,f,g){return g===n&&(g=f,f=n),g!==n&&(g=wA(g),g=g===g?g:0),f!==n&&(f=wA(f),f=f===f?f:0),Hs(wA(c),f,g)}function cne(c,f,g){return f=Vi(f),g===n?(g=f,f=0):g=Vi(g),c=wA(c),mZ(c,f,g)}function une(c,f,g){if(g&&typeof g!="boolean"&&yr(c,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof c=="boolean"&&(g=c,c=n)),c===n&&f===n?(c=0,f=1):(c=Vi(c),f===n?(f=c,c=0):f=Vi(f)),c>f){var b=c;c=f,f=b}if(g||c%1||f%1){var M=wF();return or(c+M*(f-c+Kj("1e-"+((M+"").length-1))),f)}return Tw(c,f)}var dne=Za(function(c,f,g){return f=f.toLowerCase(),c+(g?JQ(f):f)});function JQ(c){return rB(Ut(c).toLowerCase())}function jQ(c){return c=Ut(c),c&&c.replace(Te,n9).replace(Uj,"")}function fne(c,f,g){c=Ut(c),f=zr(f);var b=c.length;g=g===n?b:Hs(at(g),0,b);var M=g;return g-=f.length,g>=0&&c.slice(g,M)==f}function hne(c){return c=Ut(c),c&&Ho.test(c)?c.replace(mi,r9):c}function pne(c){return c=Ut(c),c&&Ha.test(c)?c.replace(Po,"\\$&"):c}var mne=Za(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),gne=Za(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),vne=eQ("toLowerCase");function wne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;if(!f||b>=f)return c;var M=(f-b)/2;return Mh(vh(M),g)+c+Mh(gh(M),g)}function Bne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;return f&&b<f?c+Mh(f-b,g):c}function yne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;return f&&b<f?Mh(f-b,g)+c:c}function Cne(c,f,g){return g||f==null?f=0:f&&(f=+f),Q9(Ut(c).replace(Ds,""),f||0)}function bne(c,f,g){return(g?yr(c,f,g):f===n)?f=1:f=at(f),Mw(Ut(c),f)}function Ene(){var c=arguments,f=Ut(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var kne=Za(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function Sne(c,f,g){return g&&typeof g!="number"&&yr(c,f,g)&&(f=g=n),g=g===n?E:g>>>0,g?(c=Ut(c),c&&(typeof f=="string"||f!=null&&!eB(f))&&(f=zr(f),!f&&za(c))?Xo(HA(c),0,g):c.split(f,g)):[]}var xne=Za(function(c,f,g){return c+(g?" ":"")+rB(f)});function Fne(c,f,g){return c=Ut(c),g=g==null?0:Hs(at(g),0,c.length),f=zr(f),c.slice(g,g+f.length)==f}function Qne(c,f,g){var b=L.templateSettings;g&&yr(c,f,g)&&(f=n),c=Ut(c),f=Kh({},f,b,sQ);var M=Kh({},f.imports,b.imports,sQ),H=Hn(M),Z=hw(M,H),ie,fe,ke=0,Se=f.interpolate||He,Fe="__p += '",Ue=mw((f.escape||He).source+"|"+Se.source+"|"+(Se===NA?Pr:He).source+"|"+(f.evaluate||He).source+"|$","g"),Ke="//# sourceURL="+(It.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lj+"]")+`
|
|
152
|
+
`;c.replace(Ue,function(Ze,mt,yt,Gr,Cr,Yr){return yt||(yt=Gr),Fe+=c.slice(ke,Yr).replace(zt,A9),mt&&(ie=!0,Fe+=`' +
|
|
153
153
|
__e(`+mt+`) +
|
|
154
154
|
'`),Cr&&(fe=!0,Fe+=`';
|
|
155
155
|
`+Cr+`;
|
|
@@ -161,19 +161,19 @@ __p += '`),yt&&(Fe+=`' +
|
|
|
161
161
|
}
|
|
162
162
|
`;else if(At.test(je))throw new rt(a);Fe=(fe?Fe.replace(pi,""):Fe).replace(ze,"$1").replace(gn,"$1;"),Fe="function("+(je||"obj")+`) {
|
|
163
163
|
`+(je?"":`obj || (obj = {});
|
|
164
|
-
`)+"var __t, __p = ''"+(
|
|
164
|
+
`)+"var __t, __p = ''"+(ie?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join;
|
|
165
165
|
function print() { __p += __j.call(arguments, '') }
|
|
166
166
|
`:`;
|
|
167
167
|
`)+Fe+`return __p
|
|
168
|
-
}`;var ct=VQ(function(){return Tt(H,Ke+"return "+Fe).apply(n,Z)});if(ct.source=Fe,Vw(ct))throw ct;return ct}function Qne(c){return Ut(c).toLowerCase()}function Tne(c){return Ut(c).toUpperCase()}function Mne(c,f,g){if(c=Ut(c),c&&(g||f===n))return aF(c);if(!c||!(f=zr(f)))return c;var b=HA(c),M=HA(f),H=lF(b,M),Z=cF(b,M)+1;return Xo(b,H,Z).join("")}function Ine(c,f,g){if(c=Ut(c),c&&(g||f===n))return c.slice(0,dF(c)+1);if(!c||!(f=zr(f)))return c;var b=HA(c),M=cF(b,HA(f))+1;return Xo(b,0,M).join("")}function Une(c,f,g){if(c=Ut(c),c&&(g||f===n))return c.replace(Ds,"");if(!c||!(f=zr(f)))return c;var b=HA(c),M=lF(b,HA(f));return Xo(b,M).join("")}function _ne(c,f){var g=de,b=ge;if(rn(f)){var M="separator"in f?f.separator:M;g="length"in f?at(f.length):g,b="omission"in f?zr(f.omission):b}c=Ut(c);var H=c.length;if(za(c)){var Z=HA(c);H=Z.length}if(g>=H)return c;var Ae=g-Wa(b);if(Ae<1)return b;var fe=Z?Xo(Z,0,Ae).join(""):c.slice(0,Ae);if(M===n)return fe+b;if(Z&&(Ae+=fe.length-Ae),eB(M)){if(c.slice(Ae).search(M)){var ke,Se=fe;for(M.global||(M=mw(M.source,Ut(uA.exec(M))+"g")),M.lastIndex=0;ke=M.exec(Se);)var Fe=ke.index;fe=fe.slice(0,Fe===n?Ae:Fe)}}else if(c.indexOf(zr(M),Ae)!=Ae){var Ue=fe.lastIndexOf(M);Ue>-1&&(fe=fe.slice(0,Ue))}return fe+b}function Dne(c){return c=Ut(c),c&&wr.test(c)?c.replace(Tn,c9):c}var One=Za(function(c,f,g){return c+(g?" ":"")+f.toUpperCase()}),rB=eQ("toUpperCase");function ZQ(c,f,g){return c=Ut(c),f=g?n:f,f===n?i9(c)?f9(c):Jj(c):c.match(f)||[]}var VQ=ut(function(c,f){try{return $r(c,n,f)}catch(g){return Vw(g)?g:new rt(g)}}),Nne=Ji(function(c,f){return fA(f,function(g){g=Bi(g),qi(c,g,jw(c[g],c))}),c});function Lne(c){var f=c==null?0:c.length,g=Je();return c=f?Zt(c,function(b){if(typeof b[1]!="function")throw new hA(o);return[g(b[0]),b[1]]}):[],ut(function(b){for(var M=-1;++M<f;){var H=c[M];if($r(H[0],this,b))return $r(H[1],this,b)}})}function Rne(c){return cZ(mA(c,h))}function AB(c){return function(){return c}}function Hne(c,f){return c==null||c!==c?f:c}var Pne=nQ(),$ne=nQ(!0);function Ir(c){return c}function iB(c){return IF(typeof c=="function"?c:mA(c,h))}function Kne(c){return _F(mA(c,h))}function zne(c,f){return DF(c,mA(f,h))}var Wne=ut(function(c,f){return function(g){return Nc(g,c,f)}}),Gne=ut(function(c,f){return function(g){return Nc(c,g,f)}});function oB(c,f,g){var b=Hn(f),M=Eh(f,b);g==null&&!(rn(f)&&(M.length||!b.length))&&(g=f,f=c,c=this,M=Eh(f,Hn(f)));var H=!(rn(g)&&"chain"in g)||!!g.chain,Z=Zi(c);return fA(M,function(Ae){var fe=f[Ae];c[Ae]=fe,Z&&(c.prototype[Ae]=function(){var ke=this.__chain__;if(H||ke){var Se=c(this.__wrapped__),Fe=Se.__actions__=Qr(this.__actions__);return Fe.push({func:fe,args:arguments,thisArg:c}),Se.__chain__=ke,Se}return fe.apply(c,Ko([this.value()],arguments))})}),c}function Yne(){return Xn._===this&&(Xn._=w9),this}function sB(){}function qne(c){return c=at(c),ut(function(f){return OF(f,c)})}var Xne=Lw(Zt),Jne=Lw(rF),jne=Lw(lw);function eT(c){return Ww(c)?cw(Bi(c)):xZ(c)}function Zne(c){return function(f){return c==null?n:Ps(c,f)}}var Vne=AQ(),ere=AQ(!0);function aB(){return[]}function lB(){return!1}function tre(){return{}}function nre(){return""}function rre(){return!0}function Are(c,f){if(c=at(c),c<1||c>T)return[];var g=E,b=or(c,E);f=Je(f),c-=E;for(var M=fw(b,f);++g<c;)f(g);return M}function ire(c){return it(c)?Zt(c,Bi):Wr(c)?[c]:Qr(BQ(Ut(c)))}function ore(c){var f=++g9;return Ut(c)+f}var sre=Th(function(c,f){return c+f},0),are=Rw("ceil"),lre=Th(function(c,f){return c/f},1),cre=Rw("floor");function ure(c){return c&&c.length?bh(c,Ir,Ew):n}function dre(c,f){return c&&c.length?bh(c,Je(f,2),Ew):n}function fre(c){return oF(c,Ir)}function hre(c,f){return oF(c,Je(f,2))}function pre(c){return c&&c.length?bh(c,Ir,Fw):n}function mre(c,f){return c&&c.length?bh(c,Je(f,2),Fw):n}var gre=Th(function(c,f){return c*f},1),vre=Rw("round"),wre=Th(function(c,f){return c-f},0);function Bre(c){return c&&c.length?dw(c,Ir):0}function yre(c,f){return c&&c.length?dw(c,Je(f,2)):0}return L.after=Kee,L.ary=MQ,L.assign=Tte,L.assignIn=WQ,L.assignInWith=Kh,L.assignWith=Mte,L.at=Ite,L.before=IQ,L.bind=jw,L.bindAll=Nne,L.bindKey=UQ,L.castArray=tte,L.chain=FQ,L.chunk=cV,L.compact=uV,L.concat=dV,L.cond=Lne,L.conforms=Rne,L.constant=AB,L.countBy=Bee,L.create=Ute,L.curry=_Q,L.curryRight=DQ,L.debounce=OQ,L.defaults=_te,L.defaultsDeep=Dte,L.defer=zee,L.delay=Wee,L.difference=fV,L.differenceBy=hV,L.differenceWith=pV,L.drop=mV,L.dropRight=gV,L.dropRightWhile=vV,L.dropWhile=wV,L.fill=BV,L.filter=Cee,L.flatMap=kee,L.flatMapDeep=See,L.flatMapDepth=xee,L.flatten=EQ,L.flattenDeep=yV,L.flattenDepth=CV,L.flip=Gee,L.flow=Pne,L.flowRight=$ne,L.fromPairs=bV,L.functions=$te,L.functionsIn=Kte,L.groupBy=Fee,L.initial=kV,L.intersection=SV,L.intersectionBy=xV,L.intersectionWith=FV,L.invert=Wte,L.invertBy=Gte,L.invokeMap=Tee,L.iteratee=iB,L.keyBy=Mee,L.keys=Hn,L.keysIn=Mr,L.map=Nh,L.mapKeys=qte,L.mapValues=Xte,L.matches=Kne,L.matchesProperty=zne,L.memoize=Rh,L.merge=Jte,L.mergeWith=GQ,L.method=Wne,L.methodOf=Gne,L.mixin=oB,L.negate=Hh,L.nthArg=qne,L.omit=jte,L.omitBy=Zte,L.once=Yee,L.orderBy=Iee,L.over=Xne,L.overArgs=qee,L.overEvery=Jne,L.overSome=jne,L.partial=Zw,L.partialRight=NQ,L.partition=Uee,L.pick=Vte,L.pickBy=YQ,L.property=eT,L.propertyOf=Zne,L.pull=IV,L.pullAll=SQ,L.pullAllBy=UV,L.pullAllWith=_V,L.pullAt=DV,L.range=Vne,L.rangeRight=ere,L.rearg=Xee,L.reject=Oee,L.remove=OV,L.rest=Jee,L.reverse=Xw,L.sampleSize=Lee,L.set=tne,L.setWith=nne,L.shuffle=Ree,L.slice=NV,L.sortBy=$ee,L.sortedUniq=zV,L.sortedUniqBy=WV,L.split=kne,L.spread=jee,L.tail=GV,L.take=YV,L.takeRight=qV,L.takeRightWhile=XV,L.takeWhile=JV,L.tap=uee,L.throttle=Zee,L.thru=Oh,L.toArray=$Q,L.toPairs=qQ,L.toPairsIn=XQ,L.toPath=ire,L.toPlainObject=zQ,L.transform=rne,L.unary=Vee,L.union=jV,L.unionBy=ZV,L.unionWith=VV,L.uniq=eee,L.uniqBy=tee,L.uniqWith=nee,L.unset=Ane,L.unzip=Jw,L.unzipWith=xQ,L.update=ine,L.updateWith=one,L.values=tl,L.valuesIn=sne,L.without=ree,L.words=ZQ,L.wrap=ete,L.xor=Aee,L.xorBy=iee,L.xorWith=oee,L.zip=see,L.zipObject=aee,L.zipObjectDeep=lee,L.zipWith=cee,L.entries=qQ,L.entriesIn=XQ,L.extend=WQ,L.extendWith=Kh,oB(L,L),L.add=sre,L.attempt=VQ,L.camelCase=une,L.capitalize=JQ,L.ceil=are,L.clamp=ane,L.clone=nte,L.cloneDeep=Ate,L.cloneDeepWith=ite,L.cloneWith=rte,L.conformsTo=ote,L.deburr=jQ,L.defaultTo=Hne,L.divide=lre,L.endsWith=dne,L.eq=$A,L.escape=fne,L.escapeRegExp=hne,L.every=yee,L.find=bee,L.findIndex=CQ,L.findKey=Ote,L.findLast=Eee,L.findLastIndex=bQ,L.findLastKey=Nte,L.floor=cre,L.forEach=QQ,L.forEachRight=TQ,L.forIn=Lte,L.forInRight=Rte,L.forOwn=Hte,L.forOwnRight=Pte,L.get=tB,L.gt=ste,L.gte=ate,L.has=zte,L.hasIn=nB,L.head=kQ,L.identity=Ir,L.includes=Qee,L.indexOf=EV,L.inRange=lne,L.invoke=Yte,L.isArguments=zs,L.isArray=it,L.isArrayBuffer=lte,L.isArrayLike=Tr,L.isArrayLikeObject=wn,L.isBoolean=cte,L.isBuffer=Jo,L.isDate=ute,L.isElement=dte,L.isEmpty=fte,L.isEqual=hte,L.isEqualWith=pte,L.isError=Vw,L.isFinite=mte,L.isFunction=Zi,L.isInteger=LQ,L.isLength=Ph,L.isMap=RQ,L.isMatch=gte,L.isMatchWith=vte,L.isNaN=wte,L.isNative=Bte,L.isNil=Cte,L.isNull=yte,L.isNumber=HQ,L.isObject=rn,L.isObjectLike=cn,L.isPlainObject=Kc,L.isRegExp=eB,L.isSafeInteger=bte,L.isSet=PQ,L.isString=$h,L.isSymbol=Wr,L.isTypedArray=el,L.isUndefined=Ete,L.isWeakMap=kte,L.isWeakSet=Ste,L.join=QV,L.kebabCase=pne,L.last=vA,L.lastIndexOf=TV,L.lowerCase=mne,L.lowerFirst=gne,L.lt=xte,L.lte=Fte,L.max=ure,L.maxBy=dre,L.mean=fre,L.meanBy=hre,L.min=pre,L.minBy=mre,L.stubArray=aB,L.stubFalse=lB,L.stubObject=tre,L.stubString=nre,L.stubTrue=rre,L.multiply=gre,L.nth=MV,L.noConflict=Yne,L.noop=sB,L.now=Lh,L.pad=vne,L.padEnd=wne,L.padStart=Bne,L.parseInt=yne,L.random=cne,L.reduce=_ee,L.reduceRight=Dee,L.repeat=Cne,L.replace=bne,L.result=ene,L.round=vre,L.runInContext=ue,L.sample=Nee,L.size=Hee,L.snakeCase=Ene,L.some=Pee,L.sortedIndex=LV,L.sortedIndexBy=RV,L.sortedIndexOf=HV,L.sortedLastIndex=PV,L.sortedLastIndexBy=$V,L.sortedLastIndexOf=KV,L.startCase=Sne,L.startsWith=xne,L.subtract=wre,L.sum=Bre,L.sumBy=yre,L.template=Fne,L.times=Are,L.toFinite=Vi,L.toInteger=at,L.toLength=KQ,L.toLower=Qne,L.toNumber=wA,L.toSafeInteger=Qte,L.toString=Ut,L.toUpper=Tne,L.trim=Mne,L.trimEnd=Ine,L.trimStart=Une,L.truncate=_ne,L.unescape=Dne,L.uniqueId=ore,L.upperCase=One,L.upperFirst=rB,L.each=QQ,L.eachRight=TQ,L.first=kQ,oB(L,(function(){var c={};return vi(L,function(f,g){It.call(L.prototype,g)||(c[g]=f)}),c})(),{chain:!1}),L.VERSION=r,fA(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){L[c].placeholder=L}),fA(["drop","take"],function(c,f){Bt.prototype[c]=function(g){g=g===n?1:In(at(g),0);var b=this.__filtered__&&!f?new Bt(this):this.clone();return b.__filtered__?b.__takeCount__=or(g,b.__takeCount__):b.__views__.push({size:or(g,E),type:c+(b.__dir__<0?"Right":"")}),b},Bt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),fA(["filter","map","takeWhile"],function(c,f){var g=f+1,b=g==te||g==q;Bt.prototype[c]=function(M){var H=this.clone();return H.__iteratees__.push({iteratee:Je(M,3),type:g}),H.__filtered__=H.__filtered__||b,H}}),fA(["head","last"],function(c,f){var g="take"+(f?"Right":"");Bt.prototype[c]=function(){return this[g](1).value()[0]}}),fA(["initial","tail"],function(c,f){var g="drop"+(f?"":"Right");Bt.prototype[c]=function(){return this.__filtered__?new Bt(this):this[g](1)}}),Bt.prototype.compact=function(){return this.filter(Ir)},Bt.prototype.find=function(c){return this.filter(c).head()},Bt.prototype.findLast=function(c){return this.reverse().find(c)},Bt.prototype.invokeMap=ut(function(c,f){return typeof c=="function"?new Bt(this):this.map(function(g){return Nc(g,c,f)})}),Bt.prototype.reject=function(c){return this.filter(Hh(Je(c)))},Bt.prototype.slice=function(c,f){c=at(c);var g=this;return g.__filtered__&&(c>0||f<0)?new Bt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),f!==n&&(f=at(f),g=f<0?g.dropRight(-f):g.take(f-c)),g)},Bt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Bt.prototype.toArray=function(){return this.take(E)},vi(Bt.prototype,function(c,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),b=/^(?:head|last)$/.test(f),M=L[b?"take"+(f=="last"?"Right":""):f],H=b||/^find/.test(f);M&&(L.prototype[f]=function(){var Z=this.__wrapped__,Ae=b?[1]:arguments,fe=Z instanceof Bt,ke=Ae[0],Se=fe||it(Z),Fe=function(mt){var yt=M.apply(L,Ko([mt],Ae));return b&&Ue?yt[0]:yt};Se&&g&&typeof ke=="function"&&ke.length!=1&&(fe=Se=!1);var Ue=this.__chain__,Ke=!!this.__actions__.length,je=H&&!Ue,ct=fe&&!Ke;if(!H&&Se){Z=ct?Z:new Bt(this);var Ze=c.apply(Z,Ae);return Ze.__actions__.push({func:Oh,args:[Fe],thisArg:n}),new pA(Ze,Ue)}return je&&ct?c.apply(this,Ae):(Ze=this.thru(Fe),je?b?Ze.value()[0]:Ze.value():Ze)})}),fA(["pop","push","shift","sort","splice","unshift"],function(c){var f=ah[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);L.prototype[c]=function(){var M=arguments;if(b&&!this.__chain__){var H=this.value();return f.apply(it(H)?H:[],M)}return this[g](function(Z){return f.apply(it(Z)?Z:[],M)})}}),vi(Bt.prototype,function(c,f){var g=L[f];if(g){var b=g.name+"";It.call(Xa,b)||(Xa[b]=[]),Xa[b].push({name:f,func:g})}}),Xa[Qh(n,w).name]=[{name:"wrapper",func:n}],Bt.prototype.clone=D9,Bt.prototype.reverse=O9,Bt.prototype.value=N9,L.prototype.at=dee,L.prototype.chain=fee,L.prototype.commit=hee,L.prototype.next=pee,L.prototype.plant=gee,L.prototype.reverse=vee,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=wee,L.prototype.first=L.prototype.head,Tc&&(L.prototype[Tc]=mee),L}),Ga=h9();Os?((Os.exports=Ga)._=Ga,iw._=Ga):Xn._=Ga}).call(E5)})(Ac,Ac.exports)),Ac.exports}var _g=k5();const S5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAEA0V4cAANaTc64j//NLKcl/CwCwllRrdRQAwJDfjDgAAHPyCAAAGP79uwOAAAAAAAAIAAAAAIAAAAAAAAgAAAAAwEn8CgAATOq3l+mNetv+rP9eAIAAAAAAAOF5BAAAAAAEAAAAAEAAAAAAAJZwdQgA2N2tl9Z5UZ1zwjkBQDReAghAmAHPwIdzA4DI7AAAINxwB8+eR0IAADuxAwCA0IO/Ac954jwBQAAAgE2HOUOd88Z5A0BEHgEAINwABy3OPyEAgNXYAQBAyMHf8OZcci4BIAAAwKbDmkEN5xcAAgAAGMxwvjnfABAAAGC1QcwQhnMQAAQAAAxd4JwEQAAAAEMWOEcBEAAAYKrBylCF8xUABAAANh2kDFE4hwFAAADA0ATOaQC44eIQAGBQgvcdOTdb/fQgADzDDgAADP7gXAdAAACAMQORYQjnPQAIAAAYgMDnAAAEAAAMPLD+58JnAgABAADDP/h8AIAAAMA6w43BBp8VnxUABAAADDPgs+OzA0BDF4cAgDMZYMBnAYAxrg4BAIYdGPu5ePf9AADwCjsAADD8g88IAAHYAQCAoQYm+rzYDQBAL3YAAGD4B58dAALwKwAANPF519LwAj5XAAgAAAAAwCAeAQAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAiyznXj38cCcA6A8AjqVZrOcCqF+S3/l5KSY4OYJ0B4Cc7AAA2uigHsAYBIAAAuDAHsJYACAAAuCgHsBYBCAAALHPB7dlcoIVn1hIRAEAAAGDQ8A9gbQJAAAAIcIHt7j/Q0rNriggAIAAAMOGFOoC1BUAAAGBCnvsHVogAdgEACAAAGP4BEQAAAQAAAAAQAAACc/cfmI1dAAACAACGf0AEEAEABAAADP+ACACAAAAAAAAIAACRuPsPrMIuAAABAADDPyACiAAAAgAAAAAgAAAE5e4/sCq7AAAEAAAM/4AIIAIACAAAAACAAAAQhLv/wC7sAgAQAADofEENYM0CQAAAmJg7YYC1DwABAMAFsDtpwJI8CgAgAADQ+AIawBoGgAAAMDF3vgCshQACAADunAHWMgAEAIDVueMFYE0EEAAAXOi6YwZsxQsBAQQAAAz/gLUNAAEAYD/ucAFYIwEEAADcIQOscQAIAACrc2cLwFoJIAAA4M4YYK0DQAAAWJ07WgDWTAABAAB3xABrHgACAMDq3MkCsHYCCAAAuBMGWPsAEAAAVvfbHSwXwIAI8P4aCoAAAAAAAAgAAHNw9x/AWgggAAAAAAACAMDq3PECsCYCCAAAAABAN6lWL1kF6OXzTdbucgFYLwEEAAAAAKA7jwAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACgEMAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAJHknOvHP44EgHUaYGWpVmslwL0Lyp9/K6UkRwbAWg2wIjsAAJ68oHz0dwCs1QACAAAAACAAAAAAAAIAwOlsHQWwlgMIAADBebEUAAACAAAAnEiUBRAAAAAAAAEA4D7PjAJY0wEEAAAAAEAAANidZ00BrM0AAgAAAAAgAAAAAAACAMAUvCwKwNoOIAAAAAAAAgDA7rxkCsAaDSAAAAAAAAIAAAAAIAAATMFLogCs8QACAAAAACAAAOzOy6UArNUAAgAAAAAgAAAAAAACAAAAACAAAJzD26EBrPUAAgAAAAAgAADszlulAazZAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAEAjfhYKwJoPIAAAAAAAAgDA7vycFIC1G0AAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAPiSc66OAoC1H0AAAAjM70gDWMMBBAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABACCMUkpyFACs5QACAICLQwCs/QDLSbVWRwEAAAA2ZwcAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgADgEAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAABAc1eHAIgs51x//q2UkhwZAGs8wG7sAABcGD75dwCs8QACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAFH5nWgAaziAAACwiVJKchQArP0AAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAMC/cs7VUQCwdgMIAAAbKKUkRwHAmg8gAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAA04fekAazZAAIAwCb8LjSAtR5AAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAABoxu9KA1irAQQAgE34fWgAAAQAAABYmMgLIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAMBu/Lw1gjQYQAAA24WeiAKztAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAwEv8XBSANR1AAABwEQmANRpgWanW6igAAADA5uwAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABACHAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAgLNdHQKA1+Wc6+f/XEpJjgiAtRdgdqnW6igAvHHx+Z0LUQDrL8DsPAIA0PHCFABrLIAAAAAAAAgAAAAAgAAAAAAACAAAAOzA8/8AAgCAi1QAABAAAPrwc1MA1mQAAQAAAAAQAAAAAAABAAAAABAAANbgRYAA1lQAAQBgE146BWAtBhAAAAAAAAEAAAAAEAAAtuCZVQBrKYAAAAAAAAgAAKvw8ikAazCAAAAAAAAIAAAAAIAAALAFL68CsIYCCAAAAACAAACwCi+hArD2AggAAAAAgAAAAAAACAAAW/ASKwBrJ4AAALAJz6ICWHMBBAAAAABAAAAAAAAEAIAteJYVwJoJIAAAAAAAAgDAKryUCsBaCyAAAAAAAAIAQASeaQWwVgIIAAAAAIAAALAKz6YCWGMBBAAAAABAAACIwLOtAAAIAAAAhCaSAggAAEvxjCqAtRVAAAAAAAAEAAAAAEAAANiCZ1wBrI0AAgDAJjyrCmBNBRAAAAAAAAEAIAJbXQGsiQACAAAAACAAAKzCM6sA1lIAAQAAAAAQAAAAAAABAGAZ97au2tIKYK0EEAAANr+wdUELYK0EGCnV6tdXAAAAYHd2AAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAKAQwAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAADAQTnn+vGPIwFYvwBoJdVqfQaY6cL51t9LKcnRAaxfABxhBwAAAAAIAADMwHZawBoFgAAAAAAACAAAu3CHDbA2ASAAAAAAAAIAwCq8LRuwpgEgAABgqy1gTQJAAAAAAAAEAIBl2DILWMsAEAAAsOUWsBYBIAAAAAAAAgDAMn7bOuvOGzDSb2uQ7f8AAgAAAAAgAAAAAAACAEAwHgMAZmT7P4AAAAAAAAgAALzDnTTAmgWAAACAxwAAaw4AAgAAAAAgAAAsw8sAgRl4+R+AAAAAAAAIAAC04M4aYI0CQAAAwGMAgDUGAAEAAAAAEAAAluFlgMAIXv4HIAAAAAAAAgAAPdgFAJzJ3X8AAQAAAAAQAAAAAAABAIBDPAYAnMH2fwABAAAAABAAADiDXQBAT+7+AwgAAAAAgAAAwJnsAgB6cPcfQAAAAAAABAAAAABAAACgC48BAC3Z/g8gAAAAAAACAAAj2QUAtODuP4AAAAAAAAgAAMzALgDgCHf/AQQAAAAAQAAAYCZ2AQDvcPcfQAAAAAAABAAAZuROHWBNAUAAAAAAAAEAAAAAEAAAWIYtu4C1BIBbUq1eCg0AAAC7swMAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQABwCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAD4JudcP/5xJMDnE4B1pVp9XwBwf7D4+bdSSnJkwGcUgPXYAQDA04PFo78DPqMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAQfkZMfAZBkAAAAAAAAQAAHZXSkmOAvgsAiAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABAHDnn6igAIAAAYGgAABAAAOA2vzsOPpMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAfMk5V0cBfKYBEAAACMzvjYPPJgACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABf/F44+GwDIAAAAAAAAgAAuyulJEcBfEYBEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAA+CPnXB0F8BkHQAAAIDC/Lw4+qwAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAA8xc+Kgc8sAAIAAAAAsJBUa3UUAPgj5/z1peBOIvgsAyAAAAAAAIvxCAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAADAIVeHAGAeOef682+llOTIANYwAI5KtVZHAWCSC+V7XEAD1jQAjrIDAGCyC2OAiGuiKAAgAAAY9AECr5/CAIAAAGDQBwi83goDAAIAgCEfIPgaLQ4A3OYlgICLyMkHfReygPXUegogAABsdGHqAhWw7lp3AQQAABeeANZl6zKAAACwykWmi0qANdZs6zWwIy8BBHDhCDDdmulFrAACAIAhHyD4GisOAAgAAAZ9gMDrsjAAIAAAGPQBAq/jwgDAP7wEENjWvQs+gz4AvicAAQAAAADY0sUhAAAAAAEAAAAAEAAAAACAFfgVAOBXt16S5AVJAOC7GViLlwACT11U3OJCAwB8TwPrsAMA8PvIABDg+10QAAQAcEEAAAgCgAAAGPgBAEEAEAAAAz8AIAgAS/ASQDD0v8VFAQD43gcEAGDDL35f/gDgmsA1AQgAgC93AMA1AyAAAL68AQDXFIAAAPhyBgBccwACAPjy9eULALgmAQQA8CXryxUAcK0CCAAQ6wvVlygA4PoFuOfqEMC6fGECAGdfb4x4ZAAQAMDADwAgCAACABj4AQAEAeCTdwDAyR59KRr4AQDXPoAAAAAAALzt4hAAAACAAAAAAAAIAAAAAIAAACf4eLGMt80CAOB6Ex7zEkCWXIAf/d+9TRYAANed8H9Xh4AdFl8AABh5jSoGIACAoR8AADEABAAw9AMAIAaAAIChHwAAxAAQADD0AwCAGADP8isAbDH0W0ABAHAtCwIAFkoAAHCNiwAgALDSomhBBADAdS8IAFj8AADA9TAIAKy00FnkAABwjewaGQGATRc1CxoAAK6bXTcjAGDxAgAA19OupxEAWGmhskgBAIBrbAQALEoAAOCa2zU3AgCrLUIWIAAAcB2OAIAFBwAAcF2OAMBqi4zFBQAAXKczr6tDwFEWFAAA6H+93foXBBAAwOAPAABCAAIAGPwBAEAIYEXeAcB/3FtEDP0AAOA6HgGAjRcPCwYAALiWRwAAAAAAFnFxCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAG64OwRg55/r5P5dSkiMCAACYgegp1VodhUEn/Xc+AAAAgDmInjwCMMFJDwAAYEaiN48AOKkBAACGz0t2A/RnB4DhHwAAwOwkAOAEBgAAMEMJADQ5cW11AQAAdvbKzCMC9ONXAAYO/oZ/AADAvGReOosdAE5mAACAU7w6A9kNIAAY/gEAAEQAXuQRgJOHf4M/AACAWWoEOwCcsAAAAEN4OaAAYPgHAAAQAUQAAcDwDwAAIALwKu8A6Dj4G/4BAADMWwLA5iejExEAAMDsNROPADgBAQAApuKRAAHA8A8AACACiAACgOEfAABABEAAMPwDAACIAAIAhn8AAAARQAAw/Bv+AQAARAABwPAPAACACCAAGP4BAAAQAQQAwz8AAAAigABg+AcAAEAEEAAM/wAAACKACCAAGP4BAABEABEgcgAw/AMAAIgAAgCGfwAAALObALC6Z4uPEwgAAGC/CBB1F0C4AGD4BwAAEAEiRoBQAcDwDwAAIAJEjQBhAoDhHwAAQASIHAG8BNDwDwAAYMYTAJwYAAAAmPUEACcEAAAAZj4BwIkAAACA2U8AGP5fthMAAAAgdgSINBemWquzAAAAADbnHQAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAA4BAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAANHId/S+Qc64//1ZKSf6rAQAAYFUzzrqX2Q7Io78DAADAisP/DLOuRwAAAAAggGEBwF1+AAAAohk5C9sBAAAAAAEMCQC/FQ8vAQQAAGBXo3YB2AEAAAAADc16U/v0AODuPwAAANEjwIhdAHYAAAAAQACnBgB3/wEAAIhitl0AdgAAAABAAKcFAHf/AQAAiGamXQB2AAAAAEAApwQAd/8BAACIapZdAHYAAAAAQADdA8CI3zYEAACAlZwxOw/fAWD7PwAAALubYfb1CAAAAAAE0DUAePkfAAAAPDcD934MwA4AAAAACKBbAHD3HwAAAF6bhXvuArADAAAAAAIYEgDc/QcAACCqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",x5={class:"camera__preview"},F5={key:0,class:"camera__bg-notification"},Q5=["innerHTML"],T5=["width","height"],M5={key:1,class:"camera__countdown-overlay"},I5=["innerHTML","data-countdown"],U5=["src"],_5={class:"camera__controls"},D5={class:"container"},O5={class:"row"},N5={class:"col"},L5={class:"btn-group"},R5={key:0},H5={key:1},P5={key:0,class:"camera__switch-cam"},$5={key:1,class:"base-camera__devices"},K5={name:"BaseCamera",inheritAttrs:!1},z5=s.defineComponent({...K5,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>S5},countdown:{type:Number,default:0},ratio:{type:String,default:"4x5"},filter:{type:String,default:"none",validator:t=>["none","grayscale","sepia"].includes(t)},tintColor:{type:String,default:""},tintIntensity:{type:Number,default:.3},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r={"1x1":{width:720,height:720},"2x3":{width:720,height:1080},"3x2":{width:1080,height:720},"3x4":{width:720,height:960},"4x3":{width:960,height:720},"4x5":{width:960,height:1200},"5x4":{width:1200,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},A=t,i=n,o=s.ref(),a=s.ref(),l=s.ref(!1),u=s.ref([]),d=s.ref(),h=s.ref(),p=s.ref(!1),m=s.ref(!1),v=s.ref(0),B=s.ref(0),y=s.ref(),w=s.computed(()=>u.value.filter(F=>F.kind==="videoinput")),C=s.computed(()=>u.value.filter(F=>F.kind==="audioinput")),S=s.computed({get(){return d.value&&d.value.deviceId},set(F){d.value=w.value.find(E=>E.deviceId===F)}}),Q=s.computed({get(){return h.value&&h.value.deviceId},set(F){h.value=C.value.find(E=>E.deviceId===F)}}),_=s.computed(()=>{const F=d.value&&w.value.findIndex(E=>E.deviceId===d.value.deviceId);return A.enableMirrorCamera&&F===0?"mirror-cam":""}),D=s.computed(()=>{const F=d.value&&u.value.findIndex(E=>E.deviceId===d.value.deviceId);return _.value?`${_.value} mirror-device-${F}`:""}),I=s.computed(()=>{if(!A.tintColor)return null;const F=A.tintColor.replace("#",""),E=parseInt(F.substring(0,2),16),W=parseInt(F.substring(2,4),16),ne=parseInt(F.substring(4,6),16);return{r:E,g:W,b:ne}});function $(F,E,W){if(A.filter==="none"&&!A.tintColor)return;const ne=F.getImageData(0,0,E,W),X=ne.data;if(A.filter==="grayscale")for(let re=0;re<X.length;re+=4){const ie=.299*X[re]+.587*X[re+1]+.114*X[re+2];X[re]=ie,X[re+1]=ie,X[re+2]=ie}else if(A.filter==="sepia")for(let re=0;re<X.length;re+=4){const ie=X[re],pe=X[re+1],le=X[re+2];X[re]=Math.min(255,.393*ie+.769*pe+.189*le),X[re+1]=Math.min(255,.349*ie+.686*pe+.168*le),X[re+2]=Math.min(255,.272*ie+.534*pe+.131*le)}if(A.tintColor&&I.value){const{r:re,g:ie,b:pe}=I.value,le=A.tintIntensity;for(let Ce=0;Ce<X.length;Ce+=4){const G=X[Ce],ee=X[Ce+1],K=X[Ce+2],N=G*re/255,R=ee*ie/255,J=K*pe/255;X[Ce]=G+(N-G)*le,X[Ce+1]=ee+(R-ee)*le,X[Ce+2]=K+(J-K)*le}}F.putImageData(ne,0,0)}function Y(){v.value=r[A.ratio]?r[A.ratio].width:o.value.parentElement&&o.value.parentElement.clientWidth,B.value=r[A.ratio]?r[A.ratio].height:o.value.parentElement&&o.value.parentElement.clientHeight}const de=_g.debounce(()=>{Y()},300,{trailing:!0,leading:!1});async function ge(){const F={audio:A.enableAudio&&{...h.value?{deviceId:h.value.deviceId}:{}},video:{...d.value?{deviceId:d.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(F).catch(E=>{console.error(E,"navigator.mediaDevices.getUserMedia: failed")})}function me(){o.value&&o.value.srcObject&&o.value.srcObject.getTracks().forEach(E=>{E.stop()})}async function we(){return o.value.srcObject=await ge(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:o.value.srcObject,devices:u.value}}function te(){p.value?(p.value=!1,m.value=!1,me()):(p.value=!0,we())}function V(){u.value.length>1&&(me(),d.value=d.value&&d.value.deviceId===w.value[0].deviceId?w.value[w.value.length-1]:w.value[0],we())}async function q(F,E){me(),F&&(!E||F.deviceId!==E.deviceId)&&await we()}s.watch(()=>d.value,q),s.watch(()=>h.value,q);function x(){A.countdown?(y.value=y.value?y.value-1:A.countdown,y.value?setTimeout(x,1e3):T()):T()}e({onCapture:x,camera:o.value});function T(){m.value=!0;const F=a.value.getContext("2d"),E=o.value,W=E&&E.srcObject&&E.srcObject.getTracks(),{aspectRatio:ne,width:X,height:re}=W.length&&W[0].getSettings(),ie=r[A.ratio],pe=ie.width/ie.height;let le=ie.width,Ce=ie.height;A.enableCropImage?ne>pe?le=Ce*ne:ne<pe&&(Ce=le/ne):(le=X,Ce=re,a.value.width=le,a.value.height=Ce);const G=_.value?-1:1;F.save(),F.scale(G,1),F.drawImage(E,le>a.value.width?(a.value.width-le)/2:0,Ce>a.value.height?(a.value.height-Ce)/2:0,le*G,Ce),F.restore(),$(F,a.value.width,a.value.height);const ee=a.value.toDataURL("image/png");P(ee)}function P(F){const E=HT(F);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:E,size:E.size})}return s.onMounted(async()=>{me(),await we(),d.value=w.value[0],A.enableAudio&&(h.value=C.value[0]),navigator.mediaDevices.addEventListener("devicechange",async F=>{await we()}),A.defaultRearCamera&&V(),te(),window.addEventListener("resize",de),Y(),await s.nextTick(),l.value=!0}),s.onBeforeUnmount(()=>{p.value=!1,m.value=!1,me(),window.removeEventListener("resize",de)}),(F,E)=>{const W=s.resolveComponent("loading-spinner"),ne=s.resolveComponent("svg-icon"),X=s.resolveComponent("input-dropdown");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["camera",D.value])},[s.createElementVNode("div",x5,[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",F5,[s.createVNode(W,{color:"#000"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:s.normalizeClass("d-block text-center"),innerHTML:F.$t("camera.waitForCameraNotification")},null,8,Q5)]),_:1})])),s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["camera__video-wrapper",`aspect-ratio--${A.ratio}`])},[s.createElementVNode("video",{ref_key:"camera",ref:o,class:"camera__video",style:s.normalizeStyle({filter:A.filter==="grayscale"?"grayscale(100%)":A.filter==="sepia"?"sepia(100%)":"none"}),autoplay:"",playsinline:""},null,4),t.tintColor?(s.openBlock(),s.createElementBlock("div",{key:0,class:"camera__tint-overlay",style:s.normalizeStyle({backgroundColor:t.tintColor,opacity:t.tintIntensity,mixBlendMode:"multiply"})},null,4)):s.createCommentVNode("",!0)],2),[[s.vShow,l.value]]),s.withDirectives(s.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:v.value,height:B.value},null,8,T5),[[s.vShow,m.value]]),y.value?(s.openBlock(),s.createElementBlock("div",M5,[(s.openBlock(),s.createElementBlock("p",{class:"countdown",key:y.value,innerHTML:y.value,"data-countdown":y.value},null,8,I5))])):s.createCommentVNode("",!0),t.enableGuide&&p.value&&l.value?(s.openBlock(),s.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,U5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",_5,[s.createElementVNode("div",D5,[s.createElementVNode("div",O5,[s.createElementVNode("div",N5,[s.createElementVNode("div",L5,[s.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:te},[p.value?(s.openBlock(),s.createElementBlock("span",H5,s.toDisplayString(F.$t("common.pause")),1)):(s.openBlock(),s.createElementBlock("span",R5,s.toDisplayString(F.$t("common.play")),1))]),s.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:x},s.toDisplayString(F.$t("camera.capture")),1)])])])])]),t.enableSwitchCamera&&w.value&&w.value.length>1?(s.openBlock(),s.createElementBlock("div",P5,[s.createElementVNode("button",{class:"btn",onClick:s.withModifiers(V,["prevent"])},[s.createVNode(ne,{symbol:"switch-camera"})])])):s.createCommentVNode("",!0),t.enableSelectDevice?(s.openBlock(),s.createElementBlock("div",$5,[C.value.length&&h.value?(s.openBlock(),s.createBlock(X,{key:0,modelValue:Q.value,"onUpdate:modelValue":E[0]||(E[0]=re=>Q.value=re),options:C.value.map((re,ie)=>({text:re.label||`Microphone ${ie+1}`,value:re.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0),w.value.length?(s.openBlock(),s.createBlock(X,{key:1,modelValue:S.value,"onUpdate:modelValue":E[1]||(E[1]=re=>S.value=re),options:w.value.map((re,ie)=>({text:re.label||`Camera ${ie+1}`,value:re.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)}}}),W5=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,G5=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Y5=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function q5(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){X5(t);return}return e}function X5(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function J5(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Y5.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(W5.test(t)||G5.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,q5)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const j5=/#/g,Z5=/&/g,V5=/\//g,eW=/=/g,Dg=/\+/g,tW=/%5e/gi,nW=/%60/gi,rW=/%7c/gi,AW=/%20/gi;function iW(t){return encodeURI(""+t).replace(rW,"|")}function Og(t){return iW(typeof t=="string"?t:JSON.stringify(t)).replace(Dg,"%2B").replace(AW,"+").replace(j5,"%23").replace(Z5,"%26").replace(nW,"`").replace(tW,"^").replace(V5,"%2F")}function Ng(t){return Og(t).replace(eW,"%3D")}function KE(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function oW(t){return KE(t.replace(Dg," "))}function sW(t){return KE(t.replace(Dg," "))}function aW(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const A=oW(r[1]);if(A==="__proto__"||A==="constructor")continue;const i=sW(r[2]||"");e[A]===void 0?e[A]=i:Array.isArray(e[A])?e[A].push(i):e[A]=[e[A],i]}return e}function lW(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Ng(t)}=${Og(n)}`).join("&"):`${Ng(t)}=${Og(e)}`:Ng(t)}function cW(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>lW(e,t[e])).filter(Boolean).join("&")}const uW=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,dW=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,fW=/^([/\\]\s*){2,}[^/\\]/,hW=/^\.?\//;function zE(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?uW.test(t):dW.test(t)||(e.acceptRelative?fW.test(t):!1)}function pW(t="",e){return t.endsWith("/")}function mW(t="",e){return(pW(t)?t.slice(0,-1):t)||"/"}function gW(t="",e){return t.endsWith("/")?t:t+"/"}function vW(t,e){if(BW(e)||zE(t))return t;const n=mW(e);return t.startsWith(n)?t:CW(n,t)}function wW(t,e){const n=bW(t),r={...aW(n.search),...e};return n.search=cW(r),EW(n)}function BW(t){return!t||t==="/"}function yW(t){return t&&t!=="/"}function CW(t,...e){let n=t||"";for(const r of e.filter(A=>yW(A)))if(n){const A=r.replace(hW,"");n=gW(n)+A}else n=r;return n}const WE=Symbol.for("ufo:protocolRelative");function bW(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,p=""]=n;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!zE(t,{acceptRelative:!0}))return GE(t);const[,r="",A,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:d}=GE(a);return{protocol:r.toLowerCase(),auth:A?A.slice(0,Math.max(0,A.length-1)):"",host:o,pathname:l,search:u,hash:d,[WE]:!r}}function GE(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function EW(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",A=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[WE]?(t.protocol||"")+"//":"")+A+i+e+n+r}class kW extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function SW(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",A=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${A}: ${i}${e?` ${e}`:""}`,a=new kW(o,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[u]}});return a}const xW=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function YE(t="GET"){return xW.has(t.toUpperCase())}function FW(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const QW=new Set(["image/svg","application/xml","application/xhtml","application/html"]),TW=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function MW(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return TW.test(e)?"json":e==="text/event-stream"?"stream":QW.has(e)||e.startsWith("text/")?"text":"blob"}function IW(t,e,n,r){const A=UW(e?.headers??t?.headers,n?.headers,r);let i;return(n?.query||n?.params||e?.params||e?.query)&&(i={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:i,params:i,headers:A}}function UW(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[A,i]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(A,i);return r}async function Jd(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const _W=new Set([408,409,425,429,500,502,503,504]),DW=new Set([101,204,205,304]);function qE(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function A(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let d;typeof a.options.retry=="number"?d=a.options.retry:d=YE(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):_W.has(h))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(m=>setTimeout(m,p)),i(a.request,{...a.options,retry:d-1})}}const u=SW(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const d={request:l,options:IW(l,u,t.defaults,n),response:void 0,error:void 0};if(d.options.method&&(d.options.method=d.options.method.toUpperCase()),d.options.onRequest&&(await Jd(d,d.options.onRequest),d.options.headers instanceof n||(d.options.headers=new n(d.options.headers||{}))),typeof d.request=="string"&&(d.options.baseURL&&(d.request=vW(d.request,d.options.baseURL)),d.options.query&&(d.request=wW(d.request,d.options.query),delete d.options.query),"query"in d.options&&delete d.options.query,"params"in d.options&&delete d.options.params),d.options.body&&YE(d.options.method))if(FW(d.options.body)){const m=d.options.headers.get("content-type");typeof d.options.body!="string"&&(d.options.body=m==="application/x-www-form-urlencoded"?new URLSearchParams(d.options.body).toString():JSON.stringify(d.options.body)),m||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")}else("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"));let h;if(!d.options.signal&&d.options.timeout){const m=new r;h=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,m.abort(v)},d.options.timeout),d.options.signal=m.signal}try{d.response=await e(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await Jd(d,d.options.onRequestError),await A(d)}finally{h&&clearTimeout(h)}if((d.response.body||d.response._bodyInit)&&!DW.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||MW(d.response.headers.get("content-type")||"");switch(m){case"json":{const v=await d.response.text(),B=d.options.parseResponse||J5;d.response._data=B(v);break}case"stream":{d.response._data=d.response.body||d.response._bodyInit;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await Jd(d,d.options.onResponse),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await Jd(d,d.options.onResponseError),await A(d)):d.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={},l={})=>qE({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),o}const jd=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),OW=jd.fetch?(...t)=>jd.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),NW=jd.Headers,LW=jd.AbortController,RW=qE({fetch:OW,Headers:NW,AbortController:LW});function XE(t=null,e){const n=s.ref(!1),r=s.ref([]),A=s.ref([]),i=s.ref(!1),o=s.ref(!1),a=s.computed(()=>t.modelValue?.length?t.modelValue:t.src?[{type:"",src:t.src}]:A.value);async function l(B){const y=new FormData;y.append("file",B),n.value=!0;const C=await(t.customFetch||RW)(t.endpoint,{method:"POST",...t.customFetch?{}:{headers:{Accept:"application/json",...t.authToken?{Authorization:`Bearer ${t.authToken}`}:{}}},body:y}).catch(Q=>{console.error("Error",Q)});return n.value=!1,`${t.baseResponsePath||"/api/v1/assets"}/${C.path}`}function u(B){const y=typeof B=="string"?parseInt(B,10):B,w=Array.isArray(t.modelValue)&&t.modelValue.length>0,C=Array.isArray(A.value)&&A.value.length>0;if(C&&y<A.value.length&&A.value.splice(y,1),w){const S=[...t.modelValue];y<S.length&&S.splice(y,1),e?.("update:modelValue",S),t.multiple||e?.("update:src",S[0]?.src||"")}else if(C){const S=t.multiple?A.value:A.value[0];e?.("update:modelValue",S),t.multiple||e?.("update:src",A.value[0]?.src||"")}else e?.("update:modelValue",t.multiple?[]:void 0),e?.("update:src","");r.value.splice(y,1),i.value=!1}function d(B){B.preventDefault(),o.value=!0}function h(B){B.preventDefault(),o.value=!1}function p(B){B.preventDefault(),o.value=!1;const y=B.dataTransfer,w=y&&Array.from(y.files||[]);r.value=w||[]}function m(){t.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.addEventListener(B,d,!1)}),["dragleave","drop"].forEach(B=>{document.body.addEventListener(B,h,!1)}),document.body.addEventListener("drop",p,!1))}function v(){t.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.removeEventListener(B,d,!1)}),["dragleave","drop"].forEach(B=>{document.body.removeEventListener(B,h,!1)}),document.body.removeEventListener("drop",p,!1))}return s.onMounted(()=>{m()}),s.onBeforeUnmount(()=>{v()}),{pending:n,files:r,dataUrls:A,imgLoaded:i,isDragging:o,thumbnails:a,uploadFile:l,removeFile:u,dragStart:d,dragStop:h,dragDrop:p,setupDragAndDrop:m,cleanupDragAndDrop:v}}const HW=["src"],PW=["onClick"],$W=["onClick"],KW=["for"],zW=["innerHTML"],WW={key:0,class:"file-upload__loading-spinner"},GW=s.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/api/v1/assets"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0},dropFiles:{type:Boolean,default:!1}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const n=t,r=e,{pending:A,files:i,dataUrls:o,isDragging:a,thumbnails:l,uploadFile:u,removeFile:d}=XE(n,r);return s.watch(()=>i.value,async h=>{o.value=await Promise.all(h.map(async p=>({src:n.toDataUrl?await Xc(p):await u(p),type:p.type})))},{deep:!0}),s.watch(()=>o.value,async h=>{const p=n.multiple?h:h[0];r("update:modelValue",p),n.multiple||r("update:src",h[0]&&h[0].src)},{deep:!0}),(h,p)=>{const m=s.resolveComponent("svg-icon"),v=s.resolveComponent("input-file");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["file-upload",{"has-dragging":t.dropFiles,"is-dragging":s.unref(a)}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(l),(B,y)=>(s.openBlock(),s.createElementBlock("div",{key:B.src,class:s.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("img",{src:`${B.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,HW),s.createElementVNode("button",{onClick:s.withModifiers(w=>s.unref(d)(y),["prevent"]),class:"btn btn--close"},[s.createVNode(m,{symbol:"x"})],8,PW)],64)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:s.withModifiers(w=>s.unref(d)(y),["prevent"]),class:"btn btn--close btn-outline-contrast"},[s.createVNode(m,{symbol:"x"})],8,$W))],2))),128)),s.createVNode(v,{modelValue:s.unref(i),"onUpdate:modelValue":p[0]||(p[0]=B=>s.isRef(i)?i.value=B:null),id:t.id,name:t.name,accept:t.accept,"max-file-size":t.maxFileSize,class:"d-none"},null,8,["modelValue","id","name","accept","max-file-size"]),s.createElementVNode("label",{for:t.id,class:"file-upload__label"},[s.renderSlot(h.$slots,"button",{},()=>[s.createElementVNode("span",{class:"btn btn-outline-contrast",innerHTML:t.label||h.$t("common.selectFile")},null,8,zW)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[s.unref(A)?(s.openBlock(),s.createElementBlock("span",WW,[...p[1]||(p[1]=[s.createElementVNode("span",{class:"spinner-border",role:"status"},[s.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)])])):s.createCommentVNode("",!0)]),_:1})],8,KW)],2)}}}),YW={class:"upload-group"},qW=["innerHTML"],XW={class:"upload-group__list"},JW={class:"img-container"},jW=["src"],ZW=["onClick"],VW={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},e8={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},JE=s.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/api/v1/assets"},previewWidth:{type:Number,default:0},useImageUpload:{type:Boolean,default:!1},maxImageWidth:{type:Number,default:0},aspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(""),i=s.computed({get(){return n.modelValue},set(a){r("update:modelValue",a)}});function o(a){i.value.splice(a,1),r("update:modelValue",i.value)}return s.watch(A,async(a,l)=>{a&&l!==a&&(r("update:modelValue",[...i.value,a]),await s.nextTick(),A.value="")}),(a,l)=>{const u=s.resolveComponent("svg-icon"),d=s.resolveComponent("image-upload"),h=s.resolveComponent("file-upload"),p=s.resolveComponent("sortable-list");return s.openBlock(),s.createElementBlock("div",YW,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:s.unref(Ur)(t.label)},null,8,qW)):s.createCommentVNode("",!0),s.createElementVNode("div",XW,[s.createVNode(p,{modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=m=>i.value=m),vertical:!1,class:"mb-3"},{"list-item":s.withCtx(({item:m,index:v})=>[s.createElementVNode("div",JW,[s.createElementVNode("img",{src:`${m}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,jW),s.createElementVNode("button",{onClick:s.withModifiers(B=>o(v),["prevent"]),class:"btn btn--close"},[s.createVNode(u,{symbol:"x"})],8,ZW)])]),"list-append":s.withCtx(()=>[t.useImageUpload?(s.openBlock(),s.createBlock(d,{key:0,src:A.value,"onUpdate:src":l[0]||(l[0]=m=>A.value=m),endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize,"max-image-width":t.maxImageWidth,"enable-preview":!1,"aspect-ratio":t.aspectRatio},{button:s.withCtx(()=>[s.createElementVNode("span",VW,[s.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path","accept","max-file-size","max-image-width","aspect-ratio"])):(s.openBlock(),s.createBlock(h,{key:1,src:A.value,"onUpdate:src":l[1]||(l[1]=m=>A.value=m),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize,"max-image-width":t.maxImageWidth},{button:s.withCtx(()=>[s.createElementVNode("span",e8,[s.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path","accept","max-file-size","max-image-width"]))]),_:1},8,["modelValue"])])])}}}),t8={class:"asset-uploader"},n8=["innerHTML"],r8=s.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/api/v1/assets"},previewWidth:{type:Number,default:0},useImageUpload:{type:Boolean,default:!1},maxImageWidth:{type:Number,default:0},aspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue.map(i=>i.src)},set(i){r("update:modelValue",i.map((o,a)=>({mediaType:n.modelValue[a]&&n.modelValue[a].mediaType||o.includes("data:image")?o.includes("data:image/svg")?"Svg":"Image":n.mediaTypeMap[o.split(".")[1]],src:o,name:n.modelValue[a]&&n.modelValue[a].name||`${n.name}-${a}`,...n.type?{type:n.type}:{}})))}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",t8,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:s.unref(Ur)(t.label)},null,8,n8)):s.createCommentVNode("",!0),s.createVNode(JE,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize,"use-image-upload":t.useImageUpload,"max-image-width":t.maxImageWidth,"aspect-ratio":t.aspectRatio},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path","accept","max-file-size","use-image-upload","max-image-width","aspect-ratio"])]))}}),A8={class:"carousel d-flex"},i8=["onClick"],jE=s.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,r=s.ref(),A=s.ref();function i(){r.value.scrollTo({top:0,left:r.value.scrollLeft-r.value.clientWidth>0?r.value.scrollLeft-r.value.clientWidth:0,behavior:"smooth"})}function o(){r.value.scrollTo({top:0,left:r.value.scrollLeft-r.value.clientWidth<=A.value.clientWidth?r.value.scrollLeft+r.value.clientWidth:A.value.clientWidth,behavior:"smooth"})}function a(l){n("update:modelValue",l)}return(l,u)=>{const d=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",A8,[t.navigation?(s.openBlock(),s.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(i,["prevent","stop"])},[s.createVNode(d,{symbol:"chevron-left"})])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"viewport",ref:r,class:"carousel__viewport flex-grow-1"},[s.createElementVNode("div",{ref_key:"track",ref:A,class:"carousel__track d-flex justify-center align-items-center"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(h,p)=>s.renderSlot(l.$slots,"carousel-item",{key:h.src,item:h,index:p},()=>[s.createElementVNode("div",{class:s.normalizeClass(["carousel__item",p===t.modelValue?"selected":""]),onClick:m=>a(p)},s.toDisplayString(h),11,i8)])),128))],512)],512),t.navigation?(s.openBlock(),s.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(d,{symbol:"chevron-right"})])):s.createCommentVNode("",!0)])}}}),o8={class:"media-thumbnails"},s8=["onClick"],a8={class:"img-container"},l8=s.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,r=s.ref(-1);function A(i){r.value=i,n("update:modelValue",i),n("select",i)}return(i,o)=>{const a=s.resolveComponent("base-image");return s.openBlock(),s.createElementBlock("div",o8,[s.createVNode(jE,{items:t.assets},{"carousel-item":s.withCtx(l=>[s.createElementVNode("a",{role:"button",class:s.normalizeClass(["carousel__item media-thumbnails__thumbnail",l.index===t.modelValue||l.index===r.value?"is-active":""]),onClick:u=>A(l.index)},[s.createElementVNode("div",a8,[s.createVNode(a,{src:l.item.thumbnail||l.item.src,class:"img-fluid"},null,8,["src"])])],10,s8)]),_:1},8,["items"])])}}}),c8={class:"progress-steps"},u8={class:"progress-steps__list"},d8={class:"progress-step"},f8=["checked","id","value","disabled","read-only","required","onChange"],h8=["for"],p8=["innerHTML"],m8=["for"],g8=["innerHTML"],v8=s.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:e}){const n=t,r=e;function A(i){r("update:modelValue",i),i>=n.progress&&r("update:progress",i)}return(i,o)=>(s.openBlock(),s.createElementBlock("div",c8,[s.createElementVNode("ul",u8,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.steps,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l,class:s.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":l>t.progress+(t.reveal?1:0),"progress-steps__step--active":l===(t.modelValue||0)}])},[s.renderSlot(i.$slots,"step",{},()=>[s.createElementVNode("div",d8,[s.createElementVNode("input",{type:"radio",checked:l<=(t.progress||0),id:`step-${l}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||l>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>A(l)},null,40,f8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(i.$slots,"button",{step:a},()=>[s.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.unref(Ur)(a.text||"")},null,8,p8)])],8,h8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(i.$slots,"label",{step:a},()=>[s.createElementVNode("span",{class:"form-check-label",innerHTML:s.unref(Ur)(a.label||"")},null,8,g8)])],8,m8)])])],2))),128))])]))}}),w8=["id","popover"],Lg=s.defineComponent({__name:"popover-dialog",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"auto"},id:{type:String,default:()=>`popover-dialog-${Math.random().toString(36).substr(2,9)}`},title:{type:String,default:""},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},classes:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},closeTimeout:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(),o=s.ref(!1),a=s.computed(()=>"ontouchstart"in window||navigator.maxTouchPoints>0);function l(){clearTimeout(i.value),n.hover&&A.value?.showPopover()}function u(){o.value=!0,clearTimeout(i.value),l()}function d(){o.value=!1,(n.hover||n.closeTimeout)&&(i.value=setTimeout(()=>{A.value?.hidePopover()},n.closeTimeout||n.hoverDelay))}s.watch(()=>n.modelValue,(p,m)=>{p&&!m?A.value?.matches(":popover-open")||A.value?.showPopover():!p&&m&&A.value?.matches(":popover-open")&&A.value?.hidePopover()});function h(p){p.newState==="open"?(n.closeTimeout&&!o.value&&(clearTimeout(i.value),i.value=setTimeout(()=>{o.value||A.value?.hidePopover()},n.closeTimeout)),n.modelValue||r("update:modelValue",!0)):p.newState==="closed"&&(o.value=!1,n.modelValue&&r("update:modelValue",!1))}return s.onMounted(()=>{if(A.value?.addEventListener("toggle",h),n.modelValue&&A.value?.showPopover(),!a.value){A.value?.addEventListener("mouseenter",u),A.value?.addEventListener("mouseleave",d);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.addEventListener("mouseenter",u),p.addEventListener("mouseleave",d))}}),s.onBeforeUnmount(()=>{if(clearTimeout(i.value),A.value?.removeEventListener("toggle",h),!a.value){A.value?.removeEventListener("mouseenter",u),A.value?.removeEventListener("mouseleave",d);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.removeEventListener("mouseenter",u),p.removeEventListener("mouseleave",d))}}),(p,m)=>(s.openBlock(),s.createElementBlock("span",{class:"popover-dialog",id:t.id,popover:t.type,ref_key:"popover",ref:A},[s.renderSlot(p.$slots,"default",{},()=>[m[0]||(m[0]=s.createTextVNode(" Popover content goes here. ",-1))])],8,w8))}}),B8={class:"popover-tooltip"},y8=["popovertarget","disabled","aria-describedby","aria-label"],C8={class:"popover-tooltip__content d-flex flex-column"},b8={key:0,class:"popover-tooltip__header d-flex p-3 border-bottom"},E8=["innerHTML"],k8={class:"popover-tooltip__body"},S8=["innerHTML"],x8={key:1,class:"popover-tooltip__footer d-flex p-3 border-top"},F8=s.defineComponent({__name:"popover-tooltip",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-tooltip-${Math.random().toString(36).substr(2,9)}`},size:{type:String},exclusive:{type:Boolean,default:!0},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},hover:{type:Boolean,default:!0},hoverDelay:{type:Number,default:400},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:e}){const n=t,r=e,A=qc(()=>n.title),i=qc(()=>n.content),o=s.computed({get(){return n.modelValue},set(u){r("update:modelValue",u)}}),a=s.ref(),l=s.ref();return(u,d)=>(s.openBlock(),s.createElementBlock("span",B8,[s.createElementVNode("button",{type:"button",popovertarget:t.id,disabled:t.disabled,"aria-describedby":t.id,"aria-label":t.ariaLabel||u.$te("common.moreInfo")?u.$t("common.moreInfo"):void 0,ref_key:"trigger",ref:a},[s.renderSlot(u.$slots,"button",{},()=>[d[3]||(d[3]=s.createElementVNode("span",{class:"popover-tooltip__trigger"}," i ",-1))])],8,y8),s.createVNode(Lg,{id:t.id,modelValue:o.value,"onUpdate:modelValue":d[2]||(d[2]=h=>o.value=h),hover:t.hover,"hover-delay":t.hoverDelay,ref_key:"dialog",ref:l,role:"tooltip",class:s.normalizeClass(t.size?`popover-tooltip--${t.size}`:"")},{default:s.withCtx(()=>[s.createElementVNode("div",C8,[t.header?(s.openBlock(),s.createElementBlock("div",b8,[t.title?(s.openBlock(),s.createElementBlock("h5",{key:0,class:"popover-tooltip__title",innerHTML:s.unref(A)},null,8,E8)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:d[0]||(d[0]=h=>o.value=!1)})])):s.createCommentVNode("",!0),s.createElementVNode("div",k8,[s.renderSlot(u.$slots,"default",{},()=>[s.createElementVNode("span",{innerHTML:s.unref(i)},null,8,S8)])]),t.footer?(s.openBlock(),s.createElementBlock("div",x8,[s.renderSlot(u.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:d[1]||(d[1]=h=>o.value=!1)},s.toDisplayString(u.$t("common.close")),1)])):s.createCommentVNode("",!0)])]),_:3},8,["id","modelValue","hover","hover-delay","class"])]))}}),Q8={class:"popover-notification__header d-flex justify-content-between mb-2"},T8={class:"popover-notification__title"},M8=["onClick"],I8=["innerHTML"],U8=s.defineComponent({__name:"popover-notifications",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-notifications-${Math.random().toString(36).substr(2,9)}`},items:{type:Array,default:()=>[]},debounceItem:{type:Number,default:0},closeTimeout:{type:Number,default:8e3},collapsible:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=t,r=s.ref([]),A=s.ref([]),i=s.computed(()=>r.value.map(p=>({...p,content:Ur(p.content||"")}))),o=s.ref(!1),a=s.computed(()=>n.collapsible&&r.value.length>3);function l(p,m){r.value=r.value.filter(v=>v.id!==p.id)}s.watch(()=>n.items,(p,m)=>{const v=p.filter(B=>!m.some(y=>y.id===B.id));A.value=[...A.value,...v]});function u(){setTimeout(()=>{console.log("Queueing item:",A.value);const p=A.value.shift();p&&r.value.push({...p,closeTimeout:n.closeTimeout,visible:!0}),A.value.length>0&&u()},r.value.length?n.debounceItem:0)}function d(p){a.value&&(p.preventDefault(),p.stopPropagation(),o.value=!o.value)}function h(p){console.log("Adding item:",p),A.value.push(p),u()}return s.onMounted(()=>{A.value=n.items,A.value.length>3&&(o.value=!0),u()}),e({addItem:h}),(p,m)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["popover-notifications",{"popover-notifications--collapsed":o.value}]),style:{anchorName:"--popover-notifications"}},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(v,B)=>(s.openBlock(),s.createBlock(Lg,{key:v.id,id:v.id,"close-timeout":v.closeTimeout,type:"manual",class:"popover-notification",modelValue:v.visible,"onUpdate:modelValue":[y=>v.visible=y,y=>l(v)],onClick:d},{default:s.withCtx(()=>[s.renderSlot(p.$slots,"item",{item:v},()=>[s.createElementVNode("div",Q8,[s.createElementVNode("span",T8,s.toDisplayString(v.title),1),s.createElementVNode("button",{type:"button",class:"btn btn-close p-0",onClick:s.withModifiers(y=>v.visible=!1,["stop"]),"aria-label":"Close notification"},null,8,M8)]),s.createElementVNode("span",{innerHTML:v.content},null,8,I8)])]),_:2},1032,["id","close-timeout","modelValue","onUpdate:modelValue"]))),128))],2))}});var Rg=function(t,e){return Rg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var A in r)Object.prototype.hasOwnProperty.call(r,A)&&(n[A]=r[A])},Rg(t,e)};function UA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Rg(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Hg=function(){return Hg=Object.assign||function(e){for(var n,r=1,A=arguments.length;r<A;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hg.apply(this,arguments)};function vr(t,e,n,r){function A(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function l(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):A(d.value).then(a,l)}u((r=r.apply(t,[])).next())})}function rr(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,A,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,A&&(i=u[0]&2?A.return:u[0]?A.throw||((i=A.return)&&i.call(A),0):A.next)&&!(i=i.call(A,u[1])).done)return i;switch(A=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,A=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],A=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Zd(t,e,n){if(arguments.length===2)for(var r=0,A=e.length,i;r<A;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}for(var Ni=(function(){function t(e,n,r,A){this.left=e,this.top=n,this.width=r,this.height=A}return t.prototype.add=function(e,n,r,A){return new t(this.left+e,this.top+n,this.width+r,this.height+A)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find(function(A){return A.width!==0});return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t})(),Vd=function(t,e){return Ni.fromClientRect(t,e.getBoundingClientRect())},_8=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),A=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new Ni(0,0,r,A)},ef=function(t){for(var e=[],n=0,r=t.length;n<r;){var A=t.charCodeAt(n++);if(A>=55296&&A<=56319&&n<r){var i=t.charCodeAt(n++);(i&64512)===56320?e.push(((A&1023)<<10)+(i&1023)+65536):(e.push(A),n--)}else e.push(A)}return e},pn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],A=-1,i="";++A<n;){var o=t[A];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},ZE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D8=typeof Uint8Array>"u"?[]:new Uint8Array(256),tf=0;tf<ZE.length;tf++)D8[ZE.charCodeAt(tf)]=tf;for(var VE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256),nf=0;nf<VE.length;nf++)ic[VE.charCodeAt(nf)]=nf;for(var O8=function(t){var e=t.length*.75,n=t.length,r,A=0,i,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(u)?u:new Uint8Array(u);for(r=0;r<n;r+=4)i=ic[t.charCodeAt(r)],o=ic[t.charCodeAt(r+1)],a=ic[t.charCodeAt(r+2)],l=ic[t.charCodeAt(r+3)],d[A++]=i<<2|o>>4,d[A++]=(o&15)<<4|a>>2,d[A++]=(a&3)<<6|l&63;return u},N8=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},L8=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},xs=5,Pg=11,$g=2,R8=Pg-xs,ek=65536>>xs,H8=1<<xs,Kg=H8-1,P8=1024>>xs,$8=ek+P8,K8=$8,z8=32,W8=K8+z8,G8=65536>>Pg,Y8=1<<R8,q8=Y8-1,tk=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},X8=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},J8=function(t,e){var n=O8(t),r=Array.isArray(n)?L8(n):new Uint32Array(n),A=Array.isArray(n)?N8(n):new Uint16Array(n),i=24,o=tk(A,i/2,r[4]/2),a=r[5]===2?tk(A,(i+r[4])/2):X8(r,Math.ceil((i+r[4])/4));return new j8(r[0],r[1],r[2],r[3],o,a)},j8=(function(){function t(e,n,r,A,i,o){this.initialValue=e,this.errorValue=n,this.highStart=r,this.highValueIndex=A,this.index=i,this.data=o}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>xs],n=(n<<$g)+(e&Kg),this.data[n];if(e<=65535)return n=this.index[ek+(e-55296>>xs)],n=(n<<$g)+(e&Kg),this.data[n];if(e<this.highStart)return n=W8-G8+(e>>Pg),n=this.index[n],n+=e>>xs&q8,n=this.index[n],n=(n<<$g)+(e&Kg),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),nk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z8=typeof Uint8Array>"u"?[]:new Uint8Array(256),rf=0;rf<nk.length;rf++)Z8[nk.charCodeAt(rf)]=rf;var V8="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",rk=50,e6=1,Ak=2,ik=3,t6=4,n6=5,ok=7,sk=8,ak=9,To=10,zg=11,lk=12,Wg=13,r6=14,oc=15,Gg=16,Af=17,sc=18,A6=19,ck=20,Yg=21,ac=22,qg=23,ba=24,Hr=25,lc=26,cc=27,Ea=28,i6=29,Fs=30,o6=31,of=32,sf=33,Xg=34,Jg=35,jg=36,uc=37,Zg=38,af=39,lf=40,Vg=41,uk=42,s6=43,a6=[9001,65288],dk="!",vt="×",cf="÷",ev=J8(V8),Li=[Fs,jg],tv=[e6,Ak,ik,n6],fk=[To,sk],hk=[cc,lc],l6=tv.concat(fk),pk=[Zg,af,lf,Xg,Jg],c6=[oc,Wg],u6=function(t,e){e===void 0&&(e="strict");var n=[],r=[],A=[];return t.forEach(function(i,o){var a=ev.get(i);if(a>rk?(A.push(!0),a-=rk):A.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(o),n.push(Gg);if(a===t6||a===zg){if(o===0)return r.push(o),n.push(Fs);var l=n[o-1];return l6.indexOf(l)===-1?(r.push(r[o-1]),n.push(l)):(r.push(o),n.push(Fs))}if(r.push(o),a===o6)return n.push(e==="strict"?Yg:uc);if(a===uk||a===i6)return n.push(Fs);if(a===s6)return i>=131072&&i<=196605||i>=196608&&i<=262141?n.push(uc):n.push(Fs);n.push(a)}),[r,n,A]},nv=function(t,e,n,r){var A=r[n];if(Array.isArray(t)?t.indexOf(A)!==-1:t===A)for(var i=n;i<=r.length;){i++;var o=r[i];if(o===e)return!0;if(o!==To)break}if(A===To)for(var i=n;i>0;){i--;var a=r[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var l=n;l<=r.length;){l++;var o=r[l];if(o===e)return!0;if(o!==To)break}if(a!==To)break}return!1},mk=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r===To)n--;else return r}return 0},d6=function(t,e,n,r,A){if(n[r]===0)return vt;var i=r-1;if(Array.isArray(A)&&A[i]===!0)return vt;var o=i-1,a=i+1,l=e[i],u=o>=0?e[o]:0,d=e[a];if(l===Ak&&d===ik)return vt;if(tv.indexOf(l)!==-1)return dk;if(tv.indexOf(d)!==-1||fk.indexOf(d)!==-1)return vt;if(mk(i,e)===sk)return cf;if(ev.get(t[i])===zg||(l===of||l===sf)&&ev.get(t[a])===zg||l===ok||d===ok||l===ak||[To,Wg,oc].indexOf(l)===-1&&d===ak||[Af,sc,A6,ba,Ea].indexOf(d)!==-1||mk(i,e)===ac||nv(qg,ac,i,e)||nv([Af,sc],Yg,i,e)||nv(lk,lk,i,e))return vt;if(l===To)return cf;if(l===qg||d===qg)return vt;if(d===Gg||l===Gg)return cf;if([Wg,oc,Yg].indexOf(d)!==-1||l===r6||u===jg&&c6.indexOf(l)!==-1||l===Ea&&d===jg||d===ck||Li.indexOf(d)!==-1&&l===Hr||Li.indexOf(l)!==-1&&d===Hr||l===cc&&[uc,of,sf].indexOf(d)!==-1||[uc,of,sf].indexOf(l)!==-1&&d===lc||Li.indexOf(l)!==-1&&hk.indexOf(d)!==-1||hk.indexOf(l)!==-1&&Li.indexOf(d)!==-1||[cc,lc].indexOf(l)!==-1&&(d===Hr||[ac,oc].indexOf(d)!==-1&&e[a+1]===Hr)||[ac,oc].indexOf(l)!==-1&&d===Hr||l===Hr&&[Hr,Ea,ba].indexOf(d)!==-1)return vt;if([Hr,Ea,ba,Af,sc].indexOf(d)!==-1)for(var h=i;h>=0;){var p=e[h];if(p===Hr)return vt;if([Ea,ba].indexOf(p)!==-1)h--;else break}if([cc,lc].indexOf(d)!==-1)for(var h=[Af,sc].indexOf(l)!==-1?o:i;h>=0;){var p=e[h];if(p===Hr)return vt;if([Ea,ba].indexOf(p)!==-1)h--;else break}if(Zg===l&&[Zg,af,Xg,Jg].indexOf(d)!==-1||[af,Xg].indexOf(l)!==-1&&[af,lf].indexOf(d)!==-1||[lf,Jg].indexOf(l)!==-1&&d===lf||pk.indexOf(l)!==-1&&[ck,lc].indexOf(d)!==-1||pk.indexOf(d)!==-1&&l===cc||Li.indexOf(l)!==-1&&Li.indexOf(d)!==-1||l===ba&&Li.indexOf(d)!==-1||Li.concat(Hr).indexOf(l)!==-1&&d===ac&&a6.indexOf(t[a])===-1||Li.concat(Hr).indexOf(d)!==-1&&l===sc)return vt;if(l===Vg&&d===Vg){for(var m=n[i],v=1;m>0&&(m--,e[m]===Vg);)v++;if(v%2!==0)return vt}return l===of&&d===sf?vt:cf},f6=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=u6(t,e.lineBreak),r=n[0],A=n[1],i=n[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(A=A.map(function(a){return[Hr,Fs,uk].indexOf(a)!==-1?uc:a}));var o=e.wordBreak==="keep-all"?i.map(function(a,l){return a&&t[l]>=19968&&t[l]<=40959}):void 0;return[r,A,o]},h6=(function(){function t(e,n,r,A){this.codePoints=e,this.required=n===dk,this.start=r,this.end=A}return t.prototype.slice=function(){return pn.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),p6=function(t,e){var n=ef(t),r=f6(n,e),A=r[0],i=r[1],o=r[2],a=n.length,l=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var d=vt;u<a&&(d=d6(n,i,A,++u,o))===vt;);if(d!==vt||u===a){var h=new h6(n,d,l,u);return l=u,{value:h,done:!1}}return{done:!0,value:null}}}},m6=1,g6=2,dc=4,gk=8,uf=10,vk=47,fc=92,v6=9,w6=32,df=34,hc=61,B6=35,y6=36,C6=37,ff=39,hf=40,pc=41,b6=95,Sr=45,E6=33,k6=60,S6=62,x6=64,F6=91,Q6=93,T6=61,M6=123,pf=63,I6=125,wk=124,U6=126,_6=128,Bk=65533,rv=42,Qs=43,D6=44,O6=58,N6=59,mc=46,L6=0,R6=8,H6=11,P6=14,$6=31,K6=127,li=-1,yk=48,Ck=97,bk=101,z6=102,W6=117,G6=122,Ek=65,kk=69,Sk=70,Y6=85,q6=90,Ar=function(t){return t>=yk&&t<=57},X6=function(t){return t>=55296&&t<=57343},ka=function(t){return Ar(t)||t>=Ek&&t<=Sk||t>=Ck&&t<=z6},J6=function(t){return t>=Ck&&t<=G6},j6=function(t){return t>=Ek&&t<=q6},Z6=function(t){return J6(t)||j6(t)},V6=function(t){return t>=_6},mf=function(t){return t===uf||t===v6||t===w6},gf=function(t){return Z6(t)||V6(t)||t===b6},xk=function(t){return gf(t)||Ar(t)||t===Sr},eG=function(t){return t>=L6&&t<=R6||t===H6||t>=P6&&t<=$6||t===K6},Mo=function(t,e){return t!==fc?!1:e!==uf},vf=function(t,e,n){return t===Sr?gf(e)||Mo(e,n):gf(t)?!0:!!(t===fc&&Mo(t,e))},Av=function(t,e,n){return t===Qs||t===Sr?Ar(e)?!0:e===mc&&Ar(n):Ar(t===mc?e:t)},tG=function(t){var e=0,n=1;(t[e]===Qs||t[e]===Sr)&&(t[e]===Sr&&(n=-1),e++);for(var r=[];Ar(t[e]);)r.push(t[e++]);var A=r.length?parseInt(pn.apply(void 0,r),10):0;t[e]===mc&&e++;for(var i=[];Ar(t[e]);)i.push(t[e++]);var o=i.length,a=o?parseInt(pn.apply(void 0,i),10):0;(t[e]===kk||t[e]===bk)&&e++;var l=1;(t[e]===Qs||t[e]===Sr)&&(t[e]===Sr&&(l=-1),e++);for(var u=[];Ar(t[e]);)u.push(t[e++]);var d=u.length?parseInt(pn.apply(void 0,u),10):0;return n*(A+a*Math.pow(10,-o))*Math.pow(10,l*d)},nG={type:2},rG={type:3},AG={type:4},iG={type:13},oG={type:8},sG={type:21},aG={type:9},lG={type:10},cG={type:11},uG={type:12},dG={type:14},wf={type:23},fG={type:1},hG={type:25},pG={type:24},mG={type:26},gG={type:27},vG={type:28},wG={type:29},BG={type:31},iv={type:32},Fk=(function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(ef(e))},t.prototype.read=function(){for(var e=[],n=this.consumeToken();n!==iv;)e.push(n),n=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case df:return this.consumeStringToken(df);case B6:var n=this.peekCodePoint(0),r=this.peekCodePoint(1),A=this.peekCodePoint(2);if(xk(n)||Mo(r,A)){var i=vf(n,r,A)?g6:m6,o=this.consumeName();return{type:5,value:o,flags:i}}break;case y6:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),iG;break;case ff:return this.consumeStringToken(ff);case hf:return nG;case pc:return rG;case rv:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),dG;break;case Qs:if(Av(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case D6:return AG;case Sr:var a=e,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Av(a,l,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(vf(a,l,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===Sr&&u===S6)return this.consumeCodePoint(),this.consumeCodePoint(),pG;break;case mc:if(Av(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case vk:if(this.peekCodePoint(0)===rv)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===rv&&(d=this.consumeCodePoint(),d===vk))return this.consumeToken();if(d===li)return this.consumeToken()}break;case O6:return mG;case N6:return gG;case k6:if(this.peekCodePoint(0)===E6&&this.peekCodePoint(1)===Sr&&this.peekCodePoint(2)===Sr)return this.consumeCodePoint(),this.consumeCodePoint(),hG;break;case x6:var h=this.peekCodePoint(0),p=this.peekCodePoint(1),m=this.peekCodePoint(2);if(vf(h,p,m)){var o=this.consumeName();return{type:7,value:o}}break;case F6:return vG;case fc:if(Mo(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Q6:return wG;case T6:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),oG;break;case M6:return cG;case I6:return uG;case W6:case Y6:var v=this.peekCodePoint(0),B=this.peekCodePoint(1);return v===Qs&&(ka(B)||B===pf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case wk:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),aG;if(this.peekCodePoint(0)===wk)return this.consumeCodePoint(),sG;break;case U6:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),lG;break;case li:return iv}return mf(e)?(this.consumeWhiteSpace(),BG):Ar(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):gf(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:pn(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],n=this.consumeCodePoint();ka(n)&&e.length<6;)e.push(n),n=this.consumeCodePoint();for(var r=!1;n===pf&&e.length<6;)e.push(n),n=this.consumeCodePoint(),r=!0;if(r){var A=parseInt(pn.apply(void 0,e.map(function(l){return l===pf?yk:l})),16),i=parseInt(pn.apply(void 0,e.map(function(l){return l===pf?Sk:l})),16);return{type:30,start:A,end:i}}var o=parseInt(pn.apply(void 0,e),16);if(this.peekCodePoint(0)===Sr&&ka(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var a=[];ka(n)&&a.length<6;)a.push(n),n=this.consumeCodePoint();var i=parseInt(pn.apply(void 0,a),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===hf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===hf?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===li)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===ff||n===df){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===li||this.peekCodePoint(0)===pc)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),wf)}for(;;){var A=this.consumeCodePoint();if(A===li||A===pc)return{type:22,value:pn.apply(void 0,e)};if(mf(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===li||this.peekCodePoint(0)===pc?(this.consumeCodePoint(),{type:22,value:pn.apply(void 0,e)}):(this.consumeBadUrlRemnants(),wf);if(A===df||A===ff||A===hf||eG(A))return this.consumeBadUrlRemnants(),wf;if(A===fc)if(Mo(A,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),wf;else e.push(A)}},t.prototype.consumeWhiteSpace=function(){for(;mf(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===pc||e===li)return;Mo(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var n=5e4,r="";e>0;){var A=Math.min(n,e);r+=pn.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),r},t.prototype.consumeStringToken=function(e){var n="",r=0;do{var A=this._value[r];if(A===li||A===void 0||A===e)return n+=this.consumeStringSlice(r),{type:0,value:n};if(A===uf)return this._value.splice(0,r),fG;if(A===fc){var i=this._value[r+1];i!==li&&i!==void 0&&(i===uf?(n+=this.consumeStringSlice(r),r=-1,this._value.shift()):Mo(A,i)&&(n+=this.consumeStringSlice(r),n+=pn(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var e=[],n=dc,r=this.peekCodePoint(0);for((r===Qs||r===Sr)&&e.push(this.consumeCodePoint());Ar(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(r===mc&&Ar(A))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=gk;Ar(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),A=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===kk||r===bk)&&((A===Qs||A===Sr)&&Ar(i)||Ar(A)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=gk;Ar(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[tG(e),n]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),n=e[0],r=e[1],A=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(vf(A,i,o)){var a=this.consumeName();return{type:15,number:n,flags:r,unit:a}}return A===C6?(this.consumeCodePoint(),{type:16,number:n,flags:r}):{type:17,number:n,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ka(e)){for(var n=pn(e);ka(this.peekCodePoint(0))&&n.length<6;)n+=pn(this.consumeCodePoint());mf(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(n,16);return r===0||X6(r)||r>1114111?Bk:r}return e===li?Bk:e},t.prototype.consumeName=function(){for(var e="";;){var n=this.consumeCodePoint();if(xk(n))e+=pn(n);else if(Mo(n,this.peekCodePoint(0)))e+=pn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),e}},t})(),Qk=(function(){function t(e){this._tokens=e}return t.create=function(e){var n=new Fk;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var n=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var n=this.consumeComponentValue();if(n.type===32)return e;e.push(n),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var n={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||CG(r,e))return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var n={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?iv:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t})(),gc=function(t){return t.type===15},Sa=function(t){return t.type===17},Rt=function(t){return t.type===20},yG=function(t){return t.type===0},ov=function(t,e){return Rt(t)&&t.value===e},Tk=function(t){return t.type!==31},xa=function(t){return t.type!==31&&t.type!==4},ci=function(t){var e=[],n=[];return t.forEach(function(r){if(r.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}r.type!==31&&n.push(r)}),n.length&&e.push(n),e},CG=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Io=function(t){return t.type===17||t.type===15},bn=function(t){return t.type===16||Io(t)},Mk=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Wn={type:17,number:0,flags:dc},sv={type:16,number:50,flags:dc},Uo={type:16,number:100,flags:dc},vc=function(t,e,n){var r=t[0],A=t[1];return[$t(r,e),$t(typeof A<"u"?A:r,n)]},$t=function(t,e){if(t.type===16)return t.number/100*e;if(gc(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Ik="deg",Uk="grad",_k="rad",Dk="turn",Bf={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Ik:return Math.PI*e.number/180;case Uk:return Math.PI/200*e.number;case _k:return e.number;case Dk:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ok=function(t){return t.type===15&&(t.unit===Ik||t.unit===Uk||t.unit===_k||t.unit===Dk)},Nk=function(t){var e=t.filter(Rt).map(function(n){return n.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Wn,Wn];case"to top":case"bottom":return iA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Wn,Uo];case"to right":case"left":return iA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Uo,Uo];case"to bottom":case"top":return iA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Uo,Wn];case"to left":case"right":return iA(270)}return 0},iA=function(t){return Math.PI*t/180},_o={name:"color",parse:function(t,e){if(e.type===18){var n=bG[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3);return Oo(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return Oo(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6);return Oo(parseInt(r,16),parseInt(A,16),parseInt(i,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return Oo(parseInt(r,16),parseInt(A,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var a=Ri[e.value.toUpperCase()];if(typeof a<"u")return a}return Ri.TRANSPARENT}},Do=function(t){return(255&t)===0},Ln=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,A=255&t>>24;return e<255?"rgba("+A+","+r+","+n+","+e/255+")":"rgb("+A+","+r+","+n+")"},Oo=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(r*255)<<0)>>>0},Lk=function(t,e){if(t.type===17)return t.number;if(t.type===16){var n=e===3?1:255;return e===3?t.number/100*n:Math.round(t.number/100*n)}return 0},Rk=function(t,e){var n=e.filter(xa);if(n.length===3){var r=n.map(Lk),A=r[0],i=r[1],o=r[2];return Oo(A,i,o,1)}if(n.length===4){var a=n.map(Lk),A=a[0],i=a[1],o=a[2],l=a[3];return Oo(A,i,o,l)}return 0};function av(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<1/2?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var Hk=function(t,e){var n=e.filter(xa),r=n[0],A=n[1],i=n[2],o=n[3],a=(r.type===17?iA(r.number):Bf.parse(t,r))/(Math.PI*2),l=bn(A)?A.number/100:0,u=bn(i)?i.number/100:0,d=typeof o<"u"&&bn(o)?$t(o,1):1;if(l===0)return Oo(u*255,u*255,u*255,1);var h=u<=.5?u*(l+1):u+l-u*l,p=u*2-h,m=av(p,h,a+1/3),v=av(p,h,a),B=av(p,h,a-1/3);return Oo(m*255,v*255,B*255,d)},bG={hsl:Hk,hsla:Hk,rgb:Rk,rgba:Rk},wc=function(t,e){return _o.parse(t,Qk.create(e).parseComponentValue())},Ri={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},EG={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Rt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kG={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yf=function(t,e){var n=_o.parse(t,e[0]),r=e[1];return r&&bn(r)?{color:n,stop:r}:{color:n,stop:null}},Pk=function(t,e){var n=t[0],r=t[t.length-1];n.stop===null&&(n.stop=Wn),r.stop===null&&(r.stop=Uo);for(var A=[],i=0,o=0;o<t.length;o++){var a=t[o].stop;if(a!==null){var l=$t(a,e);l>i?A.push(l):A.push(i),i=l}else A.push(null)}for(var u=null,o=0;o<A.length;o++){var d=A[o];if(d===null)u===null&&(u=o);else if(u!==null){for(var h=o-u,p=A[u-1],m=(d-p)/(h+1),v=1;v<=h;v++)A[u+v-1]=m*v;u=null}}return t.map(function(B,y){var w=B.color;return{color:w,stop:Math.max(Math.min(1,A[y]/e),0)}})},SG=function(t,e,n){var r=e/2,A=n/2,i=$t(t[0],e)-r,o=A-$t(t[1],n);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},xG=function(t,e,n){var r=typeof t=="number"?t:SG(t,e,n),A=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),i=e/2,o=n/2,a=A/2,l=Math.sin(r-Math.PI/2)*a,u=Math.cos(r-Math.PI/2)*a;return[A,i-u,i+u,o-l,o+l]},_A=function(t,e){return Math.sqrt(t*t+e*e)},$k=function(t,e,n,r,A){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(o,a){var l=a[0],u=a[1],d=_A(n-l,r-u);return(A?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:a,optimumDistance:d}:o},{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},FG=function(t,e,n,r,A){var i=0,o=0;switch(t.size){case 0:t.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-A)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-A)));break;case 2:if(t.shape===0)i=o=Math.min(_A(e,n),_A(e,n-A),_A(e-r,n),_A(e-r,n-A));else if(t.shape===1){var a=Math.min(Math.abs(n),Math.abs(n-A))/Math.min(Math.abs(e),Math.abs(e-r)),l=$k(r,A,e,n,!0),u=l[0],d=l[1];i=_A(u-e,(d-n)/a),o=a*i}break;case 1:t.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-A)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-A)));break;case 3:if(t.shape===0)i=o=Math.max(_A(e,n),_A(e,n-A),_A(e-r,n),_A(e-r,n-A));else if(t.shape===1){var a=Math.max(Math.abs(n),Math.abs(n-A))/Math.max(Math.abs(e),Math.abs(e-r)),h=$k(r,A,e,n,!1),u=h[0],d=h[1];i=_A(u-e,(d-n)/a),o=a*i}break}return Array.isArray(t.size)&&(i=$t(t.size[0],r),o=t.size.length===2?$t(t.size[1],A):i),[i,o]},QG=function(t,e){var n=iA(180),r=[];return ci(e).forEach(function(A,i){if(i===0){var o=A[0];if(o.type===20&&o.value==="to"){n=Nk(A);return}else if(Ok(o)){n=Bf.parse(t,o);return}}var a=yf(t,A);r.push(a)}),{angle:n,stops:r,type:1}},Cf=function(t,e){var n=iA(180),r=[];return ci(e).forEach(function(A,i){if(i===0){var o=A[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){n=Nk(A);return}else if(Ok(o)){n=(Bf.parse(t,o)+iA(270))%iA(360);return}}var a=yf(t,A);r.push(a)}),{angle:n,stops:r,type:1}},TG=function(t,e){var n=iA(180),r=[],A=1,i=0,o=3,a=[];return ci(e).forEach(function(l,u){var d=l[0];if(u===0){if(Rt(d)&&d.value==="linear"){A=1;return}else if(Rt(d)&&d.value==="radial"){A=2;return}}if(d.type===18){if(d.name==="from"){var h=_o.parse(t,d.values[0]);r.push({stop:Wn,color:h})}else if(d.name==="to"){var h=_o.parse(t,d.values[0]);r.push({stop:Uo,color:h})}else if(d.name==="color-stop"){var p=d.values.filter(xa);if(p.length===2){var h=_o.parse(t,p[1]),m=p[0];Sa(m)&&r.push({stop:{type:16,number:m.number*100,flags:m.flags},color:h})}}}}),A===1?{angle:(n+iA(180))%iA(360),stops:r,type:A}:{size:o,shape:i,stops:r,position:a,type:A}},Kk="closest-side",zk="farthest-side",Wk="closest-corner",Gk="farthest-corner",Yk="circle",qk="ellipse",Xk="cover",Jk="contain",MG=function(t,e){var n=0,r=3,A=[],i=[];return ci(e).forEach(function(o,a){var l=!0;if(a===0){var u=!1;l=o.reduce(function(h,p){if(u)if(Rt(p))switch(p.value){case"center":return i.push(sv),h;case"top":case"left":return i.push(Wn),h;case"right":case"bottom":return i.push(Uo),h}else(bn(p)||Io(p))&&i.push(p);else if(Rt(p))switch(p.value){case Yk:return n=0,!1;case qk:return n=1,!1;case"at":return u=!0,!1;case Kk:return r=0,!1;case Xk:case zk:return r=1,!1;case Jk:case Wk:return r=2,!1;case Gk:return r=3,!1}else if(Io(p)||bn(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return h},l)}if(l){var d=yf(t,o);A.push(d)}}),{size:r,shape:n,stops:A,position:i,type:2}},bf=function(t,e){var n=0,r=3,A=[],i=[];return ci(e).forEach(function(o,a){var l=!0;if(a===0?l=o.reduce(function(d,h){if(Rt(h))switch(h.value){case"center":return i.push(sv),!1;case"top":case"left":return i.push(Wn),!1;case"right":case"bottom":return i.push(Uo),!1}else if(bn(h)||Io(h))return i.push(h),!1;return d},l):a===1&&(l=o.reduce(function(d,h){if(Rt(h))switch(h.value){case Yk:return n=0,!1;case qk:return n=1,!1;case Jk:case Kk:return r=0,!1;case zk:return r=1,!1;case Wk:return r=2,!1;case Xk:case Gk:return r=3,!1}else if(Io(h)||bn(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return d},l)),l){var u=yf(t,o);A.push(u)}}),{size:r,shape:n,stops:A,position:i,type:2}},IG=function(t){return t.type===1},UG=function(t){return t.type===2},lv={name:"image",parse:function(t,e){if(e.type===22){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(e.type===18){var r=jk[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function _G(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!jk[t.name])}var jk={"linear-gradient":QG,"-moz-linear-gradient":Cf,"-ms-linear-gradient":Cf,"-o-linear-gradient":Cf,"-webkit-linear-gradient":Cf,"radial-gradient":MG,"-moz-radial-gradient":bf,"-ms-radial-gradient":bf,"-o-radial-gradient":bf,"-webkit-radial-gradient":bf,"-webkit-gradient":TG},DG={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e.filter(function(r){return xa(r)&&_G(r)}).map(function(r){return lv.parse(t,r)})}},OG={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Rt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},NG={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return ci(e).map(function(n){return n.filter(bn)}).map(Mk)}},LG={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return ci(e).map(function(n){return n.filter(Rt).map(function(r){return r.value}).join(" ")}).map(RG)}},RG=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Fa;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Fa||(Fa={}));var HG={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return ci(e).map(function(n){return n.filter(PG)})}},PG=function(t){return Rt(t)||bn(t)},Ef=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},$G=Ef("top"),KG=Ef("right"),zG=Ef("bottom"),WG=Ef("left"),kf=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,n){return Mk(n.filter(bn))}}},GG=kf("top-left"),YG=kf("top-right"),qG=kf("bottom-right"),XG=kf("bottom-left"),Sf=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},JG=Sf("top"),jG=Sf("right"),ZG=Sf("bottom"),VG=Sf("left"),xf=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,n){return gc(n)?n.number:0}}},eY=xf("top"),tY=xf("right"),nY=xf("bottom"),rY=xf("left"),AY={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iY={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return e==="rtl"?1:0}},oY={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Rt).reduce(function(n,r){return n|sY(r.value)},0)}},sY=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},aY={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},lY={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Ff;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Ff||(Ff={}));var cY={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return e==="strict"?Ff.STRICT:Ff.NORMAL}},uY={name:"line-height",initialValue:"normal",prefix:!1,type:4},Zk=function(t,e){return Rt(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:bn(t)?$t(t,e):e},dY={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:lv.parse(t,e)}},fY={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return e==="inside"?0:1}},cv={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Qf=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},hY=Qf("top"),pY=Qf("right"),mY=Qf("bottom"),gY=Qf("left"),vY={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Rt).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},wY={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return e==="break-word"?"break-word":"normal"}},Tf=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},BY=Tf("top"),yY=Tf("right"),CY=Tf("bottom"),bY=Tf("left"),EY={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},kY={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},SY={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&ov(e[0],"none")?[]:ci(e).map(function(n){for(var r={color:Ri.TRANSPARENT,offsetX:Wn,offsetY:Wn,blur:Wn},A=0,i=0;i<n.length;i++){var o=n[i];Io(o)?(A===0?r.offsetX=o:A===1?r.offsetY=o:r.blur=o,A++):r.color=_o.parse(t,o)}return r})}},xY={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},FY={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var n=MY[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},QY=function(t){var e=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return e.length===6?e:null},TY=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),n=e[0],r=e[1];e[2],e[3];var A=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],a=e[13];return e[14],e[15],e.length===16?[n,r,A,i,o,a]:null},MY={matrix:QY,matrix3d:TY},Vk={type:16,number:50,flags:dc},IY=[Vk,Vk],UY={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(bn);return n.length!==2?IY:[n[0],n[1]]}},_Y={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Bc;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Bc||(Bc={}));for(var DY={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Bc.BREAK_ALL;case"keep-all":return Bc.KEEP_ALL;default:return Bc.NORMAL}}},OY={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(Sa(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},eS={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},NY={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Sa(e)?e.number:1}},LY={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},RY={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Rt).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},HY={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach(function(A){switch(A.type){case 20:case 0:n.push(A.value);break;case 17:n.push(A.number.toString());break;case 4:r.push(n.join(" ")),n.length=0;break}}),n.length&&r.push(n.join(" ")),r.map(function(A){return A.indexOf(" ")===-1?A:"'"+A+"'"})}},PY={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$Y={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){return Sa(e)?e.number:Rt(e)&&e.value==="bold"?700:400}},KY={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Rt).map(function(n){return n.value})}},zY={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Fn=function(t,e){return(t&e)!==0},WY={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e}},GY={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;for(var r=[],A=e.filter(Tk),i=0;i<A.length;i++){var o=A[i],a=A[i+1];if(o.type===20){var l=a&&Sa(a)?a.number:1;r.push({counter:o.value,increment:l})}}return r}},YY={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var n=[],r=e.filter(Tk),A=0;A<r.length;A++){var i=r[A],o=r[A+1];if(Rt(i)&&i.value!=="none"){var a=o&&Sa(o)?o.number:0;n.push({counter:i.value,reset:a})}}return n}},qY={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(gc).map(function(n){return eS.parse(t,n)})}},XY={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;var r=[],A=e.filter(yG);if(A.length%2!==0)return null;for(var i=0;i<A.length;i+=2){var o=A[i].value,a=A[i+1].value;r.push({open:o,close:a})}return r}},tS=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},JY={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&ov(e[0],"none")?[]:ci(e).map(function(n){for(var r={color:255,offsetX:Wn,offsetY:Wn,blur:Wn,spread:Wn,inset:!1},A=0,i=0;i<n.length;i++){var o=n[i];ov(o,"inset")?r.inset=!0:Io(o)?(A===0?r.offsetX=o:A===1?r.offsetY=o:A===2?r.blur=o:r.spread=o,A++):r.color=_o.parse(t,o)}return r})}},jY={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],r=[];return e.filter(Rt).forEach(function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),n.forEach(function(A){r.indexOf(A)===-1&&r.push(A)}),r}},ZY={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},VY={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return gc(e)?e.number:0}},e7=(function(){function t(e,n){var r,A;this.animationDuration=Oe(e,qY,n.animationDuration),this.backgroundClip=Oe(e,EG,n.backgroundClip),this.backgroundColor=Oe(e,kG,n.backgroundColor),this.backgroundImage=Oe(e,DG,n.backgroundImage),this.backgroundOrigin=Oe(e,OG,n.backgroundOrigin),this.backgroundPosition=Oe(e,NG,n.backgroundPosition),this.backgroundRepeat=Oe(e,LG,n.backgroundRepeat),this.backgroundSize=Oe(e,HG,n.backgroundSize),this.borderTopColor=Oe(e,$G,n.borderTopColor),this.borderRightColor=Oe(e,KG,n.borderRightColor),this.borderBottomColor=Oe(e,zG,n.borderBottomColor),this.borderLeftColor=Oe(e,WG,n.borderLeftColor),this.borderTopLeftRadius=Oe(e,GG,n.borderTopLeftRadius),this.borderTopRightRadius=Oe(e,YG,n.borderTopRightRadius),this.borderBottomRightRadius=Oe(e,qG,n.borderBottomRightRadius),this.borderBottomLeftRadius=Oe(e,XG,n.borderBottomLeftRadius),this.borderTopStyle=Oe(e,JG,n.borderTopStyle),this.borderRightStyle=Oe(e,jG,n.borderRightStyle),this.borderBottomStyle=Oe(e,ZG,n.borderBottomStyle),this.borderLeftStyle=Oe(e,VG,n.borderLeftStyle),this.borderTopWidth=Oe(e,eY,n.borderTopWidth),this.borderRightWidth=Oe(e,tY,n.borderRightWidth),this.borderBottomWidth=Oe(e,nY,n.borderBottomWidth),this.borderLeftWidth=Oe(e,rY,n.borderLeftWidth),this.boxShadow=Oe(e,JY,n.boxShadow),this.color=Oe(e,AY,n.color),this.direction=Oe(e,iY,n.direction),this.display=Oe(e,oY,n.display),this.float=Oe(e,aY,n.cssFloat),this.fontFamily=Oe(e,HY,n.fontFamily),this.fontSize=Oe(e,PY,n.fontSize),this.fontStyle=Oe(e,zY,n.fontStyle),this.fontVariant=Oe(e,KY,n.fontVariant),this.fontWeight=Oe(e,$Y,n.fontWeight),this.letterSpacing=Oe(e,lY,n.letterSpacing),this.lineBreak=Oe(e,cY,n.lineBreak),this.lineHeight=Oe(e,uY,n.lineHeight),this.listStyleImage=Oe(e,dY,n.listStyleImage),this.listStylePosition=Oe(e,fY,n.listStylePosition),this.listStyleType=Oe(e,cv,n.listStyleType),this.marginTop=Oe(e,hY,n.marginTop),this.marginRight=Oe(e,pY,n.marginRight),this.marginBottom=Oe(e,mY,n.marginBottom),this.marginLeft=Oe(e,gY,n.marginLeft),this.opacity=Oe(e,NY,n.opacity);var i=Oe(e,vY,n.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Oe(e,wY,n.overflowWrap),this.paddingTop=Oe(e,BY,n.paddingTop),this.paddingRight=Oe(e,yY,n.paddingRight),this.paddingBottom=Oe(e,CY,n.paddingBottom),this.paddingLeft=Oe(e,bY,n.paddingLeft),this.paintOrder=Oe(e,jY,n.paintOrder),this.position=Oe(e,kY,n.position),this.textAlign=Oe(e,EY,n.textAlign),this.textDecorationColor=Oe(e,LY,(r=n.textDecorationColor)!==null&&r!==void 0?r:n.color),this.textDecorationLine=Oe(e,RY,(A=n.textDecorationLine)!==null&&A!==void 0?A:n.textDecoration),this.textShadow=Oe(e,SY,n.textShadow),this.textTransform=Oe(e,xY,n.textTransform),this.transform=Oe(e,FY,n.transform),this.transformOrigin=Oe(e,UY,n.transformOrigin),this.visibility=Oe(e,_Y,n.visibility),this.webkitTextStrokeColor=Oe(e,ZY,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=Oe(e,VY,n.webkitTextStrokeWidth),this.wordBreak=Oe(e,DY,n.wordBreak),this.zIndex=Oe(e,OY,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Do(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Fn(this.display,4)||Fn(this.display,33554432)||Fn(this.display,268435456)||Fn(this.display,536870912)||Fn(this.display,67108864)||Fn(this.display,134217728)},t})(),t7=(function(){function t(e,n){this.content=Oe(e,WY,n.content),this.quotes=Oe(e,XY,n.quotes)}return t})(),nS=(function(){function t(e,n){this.counterIncrement=Oe(e,GY,n.counterIncrement),this.counterReset=Oe(e,YY,n.counterReset)}return t})(),Oe=function(t,e,n){var r=new Fk,A=n!==null&&typeof n<"u"?n.toString():e.initialValue;r.write(A);var i=new Qk(r.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,Rt(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Bf.parse(t,i.parseComponentValue());case"color":return _o.parse(t,i.parseComponentValue());case"image":return lv.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return Io(a)?a:Wn;case"length-percentage":var l=i.parseComponentValue();return bn(l)?l:Wn;case"time":return eS.parse(t,i.parseComponentValue())}break}},n7="data-html2canvas-debug",r7=function(t){var e=t.getAttribute(n7);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},uv=function(t,e){var n=r7(t);return n===1||e===n},ui=(function(){function t(e,n){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,uv(n,3))debugger;this.styles=new e7(e,window.getComputedStyle(n,null)),kv(n)&&(this.styles.animationDuration.some(function(r){return r>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=Vd(this.context,n),uv(n,4)&&(this.flags|=16)}return t})(),A7="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",rS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mf=0;Mf<rS.length;Mf++)yc[rS.charCodeAt(Mf)]=Mf;for(var i7=function(t){var e=t.length*.75,n=t.length,r,A=0,i,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(u)?u:new Uint8Array(u);for(r=0;r<n;r+=4)i=yc[t.charCodeAt(r)],o=yc[t.charCodeAt(r+1)],a=yc[t.charCodeAt(r+2)],l=yc[t.charCodeAt(r+3)],d[A++]=i<<2|o>>4,d[A++]=(o&15)<<4|a>>2,d[A++]=(a&3)<<6|l&63;return u},o7=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},s7=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},Ts=5,dv=11,fv=2,a7=dv-Ts,AS=65536>>Ts,l7=1<<Ts,hv=l7-1,c7=1024>>Ts,u7=AS+c7,d7=u7,f7=32,h7=d7+f7,p7=65536>>dv,m7=1<<a7,g7=m7-1,iS=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},v7=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},w7=function(t,e){var n=i7(t),r=Array.isArray(n)?s7(n):new Uint32Array(n),A=Array.isArray(n)?o7(n):new Uint16Array(n),i=24,o=iS(A,i/2,r[4]/2),a=r[5]===2?iS(A,(i+r[4])/2):v7(r,Math.ceil((i+r[4])/4));return new B7(r[0],r[1],r[2],r[3],o,a)},B7=(function(){function t(e,n,r,A,i,o){this.initialValue=e,this.errorValue=n,this.highStart=r,this.highValueIndex=A,this.index=i,this.data=o}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>Ts],n=(n<<fv)+(e&hv),this.data[n];if(e<=65535)return n=this.index[AS+(e-55296>>Ts)],n=(n<<fv)+(e&hv),this.data[n];if(e<this.highStart)return n=h7-p7+(e>>dv),n=this.index[n],n+=e>>Ts&g7,n=this.index[n],n=(n<<fv)+(e&hv),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),oS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y7=typeof Uint8Array>"u"?[]:new Uint8Array(256),If=0;If<oS.length;If++)y7[oS.charCodeAt(If)]=If;var C7=1,pv=2,mv=3,sS=4,aS=5,b7=7,lS=8,gv=9,vv=10,cS=11,uS=12,dS=13,fS=14,wv=15,E7=function(t){for(var e=[],n=0,r=t.length;n<r;){var A=t.charCodeAt(n++);if(A>=55296&&A<=56319&&n<r){var i=t.charCodeAt(n++);(i&64512)===56320?e.push(((A&1023)<<10)+(i&1023)+65536):(e.push(A),n--)}else e.push(A)}return e},k7=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],A=-1,i="";++A<n;){var o=t[A];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},S7=w7(A7),oA="×",Bv="÷",x7=function(t){return S7.get(t)},F7=function(t,e,n){var r=n-2,A=e[r],i=e[n-1],o=e[n];if(i===pv&&o===mv)return oA;if(i===pv||i===mv||i===sS||o===pv||o===mv||o===sS)return Bv;if(i===lS&&[lS,gv,cS,uS].indexOf(o)!==-1||(i===cS||i===gv)&&(o===gv||o===vv)||(i===uS||i===vv)&&o===vv||o===dS||o===aS||o===b7||i===C7)return oA;if(i===dS&&o===fS){for(;A===aS;)A=e[--r];if(A===fS)return oA}if(i===wv&&o===wv){for(var a=0;A===wv;)a++,A=e[--r];if(a%2===0)return oA}return Bv},Q7=function(t){var e=E7(t),n=e.length,r=0,A=0,i=e.map(x7);return{next:function(){if(r>=n)return{done:!0,value:null};for(var o=oA;r<n&&(o=F7(e,i,++r))===oA;);if(o!==oA||r===n){var a=k7.apply(null,e.slice(A,r));return A=r,{value:a,done:!1}}return{done:!0,value:null}}}},T7=function(t){for(var e=Q7(t),n=[],r;!(r=e.next()).done;)r.value&&n.push(r.value.slice());return n},M7=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),n.selectNode(r);var A=n.getBoundingClientRect(),i=Math.round(A.height);if(t.body.removeChild(r),i===e)return!0}}return!1},I7=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var r=e.firstChild,A=ef(r.data).map(function(l){return pn(l)}),i=0,o={},a=A.every(function(l,u){n.setStart(r,i),n.setEnd(r,i+l.length);var d=n.getBoundingClientRect();i+=l.length;var h=d.x>o.x||d.y>o.y;return o=d,u===0?!0:h});return t.body.removeChild(e),a},U7=function(){return typeof new Image().crossOrigin<"u"},_7=function(){return typeof new XMLHttpRequest().responseType=="string"},D7=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch{return!1}return!0},hS=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},O7=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var A=new Image,i=e.toDataURL();A.src=i;var o=yv(n,n,0,0,A);return r.fillStyle="red",r.fillRect(0,0,n,n),pS(o).then(function(a){r.drawImage(a,0,0);var l=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=n+"px",hS(l)?pS(yv(n,n,0,0,u)):Promise.reject(!1)}).then(function(a){return r.drawImage(a,0,0),hS(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},yv=function(t,e,n,r,A){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(A),o},pS=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Gn={get SUPPORT_RANGE_BOUNDS(){var t=M7(document);return Object.defineProperty(Gn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Gn.SUPPORT_RANGE_BOUNDS&&I7(document);return Object.defineProperty(Gn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=D7(document);return Object.defineProperty(Gn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?O7(document):Promise.resolve(!1);return Object.defineProperty(Gn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=U7();return Object.defineProperty(Gn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=_7();return Object.defineProperty(Gn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Gn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Gn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Cc=(function(){function t(e,n){this.text=e,this.bounds=n}return t})(),N7=function(t,e,n,r){var A=H7(e,n),i=[],o=0;return A.forEach(function(a){if(n.textDecorationLine.length||a.trim().length>0)if(Gn.SUPPORT_RANGE_BOUNDS){var l=mS(r,o,a.length).getClientRects();if(l.length>1){var u=Cv(a),d=0;u.forEach(function(p){i.push(new Cc(p,Ni.fromDOMRectList(t,mS(r,d+o,p.length).getClientRects()))),d+=p.length})}else i.push(new Cc(a,Ni.fromDOMRectList(t,l)))}else{var h=r.splitText(a.length);i.push(new Cc(a,L7(t,r))),r=h}else Gn.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));o+=a.length}),i},L7=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var A=e.parentNode;if(A){A.replaceChild(r,e);var i=Vd(t,r);return r.firstChild&&A.replaceChild(r.firstChild,r),i}}return Ni.EMPTY},mS=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var A=r.createRange();return A.setStart(t,e),A.setEnd(t,e+n),A},Cv=function(t){if(Gn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return T7(t)},R7=function(t,e){if(Gn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(r){return r.segment})}return $7(t,e)},H7=function(t,e){return e.letterSpacing!==0?Cv(t):R7(t,e)},P7=[32,160,4961,65792,65793,4153,4241],$7=function(t,e){for(var n=p6(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],A,i=function(){if(A.value){var o=A.value.slice(),a=ef(o),l="";a.forEach(function(u){P7.indexOf(u)===-1?l+=pn(u):(l.length&&r.push(l),r.push(pn(u)),l="")}),l.length&&r.push(l)}};!(A=n.next()).done;)i();return r},K7=(function(){function t(e,n,r){this.text=z7(n.data,r.textTransform),this.textBounds=N7(e,this.text,r,n)}return t})(),z7=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(W7,G7);case 2:return t.toUpperCase();default:return t}},W7=/(^|\s|:|-|\(|\))([a-z])/g,G7=function(t,e,n){return t.length>0?e+n.toUpperCase():t},gS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.src=r.currentSrc||r.src,A.intrinsicWidth=r.naturalWidth,A.intrinsicHeight=r.naturalHeight,A.context.cache.addImage(A.src),A}return e})(ui),vS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.canvas=r,A.intrinsicWidth=r.width,A.intrinsicHeight=r.height,A}return e})(ui),wS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this,i=new XMLSerializer,o=Vd(n,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),A.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),A.intrinsicWidth=r.width.baseVal.value,A.intrinsicHeight=r.height.baseVal.value,A.context.cache.addImage(A.svg),A}return e})(ui),BS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.value=r.value,A}return e})(ui),bv=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.start=r.start,A.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,A}return e})(ui),Y7=[{type:15,flags:0,unit:"px",number:3}],q7=[{type:16,flags:0,number:50}],X7=function(t){return t.width>t.height?new Ni(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Ni(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},J7=function(t){var e=t.type===j7?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},Uf="checkbox",_f="radio",j7="password",yS=707406591,Ev=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;switch(A.type=r.type.toLowerCase(),A.checked=r.checked,A.value=J7(r),(A.type===Uf||A.type===_f)&&(A.styles.backgroundColor=3739148031,A.styles.borderTopColor=A.styles.borderRightColor=A.styles.borderBottomColor=A.styles.borderLeftColor=2779096575,A.styles.borderTopWidth=A.styles.borderRightWidth=A.styles.borderBottomWidth=A.styles.borderLeftWidth=1,A.styles.borderTopStyle=A.styles.borderRightStyle=A.styles.borderBottomStyle=A.styles.borderLeftStyle=1,A.styles.backgroundClip=[0],A.styles.backgroundOrigin=[0],A.bounds=X7(A.bounds)),A.type){case Uf:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=Y7;break;case _f:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=q7;break}return A}return e})(ui),CS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this,i=r.options[r.selectedIndex||0];return A.value=i&&i.text||"",A}return e})(ui),bS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.value=r.value,A}return e})(ui),ES=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;A.src=r.src,A.width=parseInt(r.width,10)||0,A.height=parseInt(r.height,10)||0,A.backgroundColor=A.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){A.tree=SS(n,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?wc(n,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Ri.TRANSPARENT,o=r.contentWindow.document.body?wc(n,getComputedStyle(r.contentWindow.document.body).backgroundColor):Ri.TRANSPARENT;A.backgroundColor=Do(i)?Do(o)?A.styles.backgroundColor:o:i}}catch{}return A}return e})(ui),Z7=["OL","UL","MENU"],Df=function(t,e,n,r){for(var A=e.firstChild,i=void 0;A;A=i)if(i=A.nextSibling,xS(A)&&A.data.trim().length>0)n.textNodes.push(new K7(t,A,n.styles));else if(Qa(A))if(US(A)&&A.assignedNodes)A.assignedNodes().forEach(function(a){return Df(t,a,n,r)});else{var o=kS(t,A);o.styles.isVisible()&&(V7(A,o,r)?o.flags|=4:eq(o.styles)&&(o.flags|=2),Z7.indexOf(A.tagName)!==-1&&(o.flags|=8),n.elements.push(o),A.slot,A.shadowRoot?Df(t,A.shadowRoot,o,r):!Nf(A)&&!FS(A)&&!Lf(A)&&Df(t,A,o,r))}},kS=function(t,e){return xv(e)?new gS(t,e):QS(e)?new vS(t,e):FS(e)?new wS(t,e):tq(e)?new BS(t,e):nq(e)?new bv(t,e):rq(e)?new Ev(t,e):Lf(e)?new CS(t,e):Nf(e)?new bS(t,e):MS(e)?new ES(t,e):new ui(t,e)},SS=function(t,e){var n=kS(t,e);return n.flags|=4,Df(t,e,n,n),n},V7=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Sv(t)&&n.styles.isTransparent()},eq=function(t){return t.isPositioned()||t.isFloating()},xS=function(t){return t.nodeType===Node.TEXT_NODE},Qa=function(t){return t.nodeType===Node.ELEMENT_NODE},kv=function(t){return Qa(t)&&typeof t.style<"u"&&!Of(t)},Of=function(t){return typeof t.className=="object"},tq=function(t){return t.tagName==="LI"},nq=function(t){return t.tagName==="OL"},rq=function(t){return t.tagName==="INPUT"},Aq=function(t){return t.tagName==="HTML"},FS=function(t){return t.tagName==="svg"},Sv=function(t){return t.tagName==="BODY"},QS=function(t){return t.tagName==="CANVAS"},TS=function(t){return t.tagName==="VIDEO"},xv=function(t){return t.tagName==="IMG"},MS=function(t){return t.tagName==="IFRAME"},IS=function(t){return t.tagName==="STYLE"},iq=function(t){return t.tagName==="SCRIPT"},Nf=function(t){return t.tagName==="TEXTAREA"},Lf=function(t){return t.tagName==="SELECT"},US=function(t){return t.tagName==="SLOT"},_S=function(t){return t.tagName.indexOf("-")>0},oq=(function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var n=this.counters[e];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(e){var n=this.counters[e];return n||[]},t.prototype.pop=function(e){var n=this;e.forEach(function(r){return n.counters[r].pop()})},t.prototype.parse=function(e){var n=this,r=e.counterIncrement,A=e.counterReset,i=!0;r!==null&&r.forEach(function(a){var l=n.counters[a.counter];l&&a.increment!==0&&(i=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=a.increment)});var o=[];return i&&A.forEach(function(a){var l=n.counters[a.counter];o.push(a.counter),l||(l=n.counters[a.counter]=[]),l.push(a.reset)}),o},t})(),DS={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},OS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},sq={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},aq={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ta=function(t,e,n,r,A,i){return t<e||t>n?Ec(t,A,i.length>0):r.integers.reduce(function(o,a,l){for(;t>=a;)t-=a,o+=r.values[l];return o},"")+i},NS=function(t,e,n,r){var A="";do n||t--,A=r(t)+A,t/=e;while(t*e>=e);return A},mn=function(t,e,n,r,A){var i=n-e+1;return(t<0?"-":"")+(NS(Math.abs(t),i,r,function(o){return pn(Math.floor(o%i)+e)})+A)},Ms=function(t,e,n){n===void 0&&(n=". ");var r=e.length;return NS(Math.abs(t),r,!1,function(A){return e[Math.floor(A%r)]})+n},Ma=1,No=2,Lo=4,bc=8,Hi=function(t,e,n,r,A,i){if(t<-9999||t>9999)return Ec(t,4,A.length>0);var o=Math.abs(t),a=A;if(o===0)return e[0]+a;for(var l=0;o>0&&l<=4;l++){var u=o%10;u===0&&Fn(i,Ma)&&a!==""?a=e[u]+a:u>1||u===1&&l===0||u===1&&l===1&&Fn(i,No)||u===1&&l===1&&Fn(i,Lo)&&t>100||u===1&&l>1&&Fn(i,bc)?a=e[u]+(l>0?n[l-1]:"")+a:u===1&&l>0&&(a=n[l-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},LS="十百千萬",RS="拾佰仟萬",HS="マイナス",Fv="마이너스",Ec=function(t,e,n){var r=n?". ":"",A=n?"、":"",i=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=mn(t,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ms(t,"〇一二三四五六七八九",A);case 6:return Ta(t,1,3999,DS,3,r).toLowerCase();case 7:return Ta(t,1,3999,DS,3,r);case 8:return mn(t,945,969,!1,r);case 9:return mn(t,97,122,!1,r);case 10:return mn(t,65,90,!1,r);case 11:return mn(t,1632,1641,!0,r);case 12:case 49:return Ta(t,1,9999,OS,3,r);case 35:return Ta(t,1,9999,OS,3,r).toLowerCase();case 13:return mn(t,2534,2543,!0,r);case 14:case 30:return mn(t,6112,6121,!0,r);case 15:return Ms(t,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return Ms(t,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return Hi(t,"零一二三四五六七八九",LS,"負",A,No|Lo|bc);case 47:return Hi(t,"零壹貳參肆伍陸柒捌玖",RS,"負",A,Ma|No|Lo|bc);case 42:return Hi(t,"零一二三四五六七八九",LS,"负",A,No|Lo|bc);case 41:return Hi(t,"零壹贰叁肆伍陆柒捌玖",RS,"负",A,Ma|No|Lo|bc);case 26:return Hi(t,"〇一二三四五六七八九","十百千万",HS,A,0);case 25:return Hi(t,"零壱弐参四伍六七八九","拾百千万",HS,A,Ma|No|Lo);case 31:return Hi(t,"영일이삼사오육칠팔구","십백천만",Fv,i,Ma|No|Lo);case 33:return Hi(t,"零一二三四五六七八九","十百千萬",Fv,i,0);case 32:return Hi(t,"零壹貳參四五六七八九","拾百千",Fv,i,Ma|No|Lo);case 18:return mn(t,2406,2415,!0,r);case 20:return Ta(t,1,19999,aq,3,r);case 21:return mn(t,2790,2799,!0,r);case 22:return mn(t,2662,2671,!0,r);case 22:return Ta(t,1,10999,sq,3,r);case 23:return Ms(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ms(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return mn(t,3302,3311,!0,r);case 28:return Ms(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return Ms(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return mn(t,3792,3801,!0,r);case 37:return mn(t,6160,6169,!0,r);case 38:return mn(t,4160,4169,!0,r);case 39:return mn(t,2918,2927,!0,r);case 40:return mn(t,1776,1785,!0,r);case 43:return mn(t,3046,3055,!0,r);case 44:return mn(t,3174,3183,!0,r);case 45:return mn(t,3664,3673,!0,r);case 46:return mn(t,3872,3881,!0,r);default:return mn(t,48,57,!0,r)}},PS="data-html2canvas-ignore",$S=(function(){function t(e,n,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=n,this.counters=new oq,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,n){var r=this,A=lq(e,n);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,a=A.contentWindow,l=a.document,u=dq(A).then(function(){return vr(r,void 0,void 0,function(){var d,h;return rr(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(mq),a&&(a.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==n.top||a.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-n.left,a.scrollY-n.top,0,0))),d=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,uq(l)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(l,h)}).then(function(){return A})]:[2,A]}})})});return l.open(),l.write(hq(document.doctype)+"<html></html>"),pq(this.referenceElement.ownerDocument,i,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(e){if(uv(e,2))debugger;if(QS(e))return this.createCanvasClone(e);if(TS(e))return this.createVideoClone(e);if(IS(e))return this.createStyleClone(e);var n=e.cloneNode(!1);return xv(n)&&(xv(e)&&e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),_S(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(e){var n=document.createElement("html2canvascustomelement");return Qv(e.style,n),n},t.prototype.createStyleClone=function(e){try{var n=e.sheet;if(n&&n.cssRules){var r=[].slice.call(n.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),A=e.cloneNode(!1);return A.textContent=r,A}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var n;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;var i=e.getContext("2d"),o=A.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=(n=e.getContext("webgl2"))!==null&&n!==void 0?n:e.getContext("webgl");if(a){var l=a.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return A}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A},t.prototype.createVideoClone=function(e){var n=e.ownerDocument.createElement("canvas");n.width=e.offsetWidth,n.height=e.offsetHeight;var r=n.getContext("2d");try{return r&&(r.drawImage(e,0,0,n.width,n.height),this.options.allowTaint||r.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},t.prototype.appendChildNode=function(e,n,r){(!Qa(n)||!iq(n)&&!n.hasAttribute(PS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!Qa(n)||!IS(n))&&e.appendChild(this.cloneNode(n,r))},t.prototype.cloneChildNodes=function(e,n,r){for(var A=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Qa(i)&&US(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(a){return A.appendChildNode(n,a,r)})}else this.appendChildNode(n,i,r)},t.prototype.cloneNode=function(e,n){if(xS(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Qa(e)&&(kv(e)||Of(e))){var A=this.createElementClone(e);A.style.transitionProperty="none";var i=r.getComputedStyle(e),o=r.getComputedStyle(e,":before"),a=r.getComputedStyle(e,":after");this.referenceElement===e&&kv(A)&&(this.clonedReferenceElement=A),Sv(A)&&wq(A);var l=this.counters.parse(new nS(this.context,i)),u=this.resolvePseudoContent(e,A,o,kc.BEFORE);_S(e)&&(n=!0),TS(e)||this.cloneChildNodes(e,A,n),u&&A.insertBefore(u,A.firstChild);var d=this.resolvePseudoContent(e,A,a,kc.AFTER);return d&&A.appendChild(d),this.counters.pop(l),(i&&(this.options.copyStyles||Of(e))&&!MS(e)||n)&&Qv(i,A),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([A,e.scrollLeft,e.scrollTop]),(Nf(e)||Lf(e))&&(Nf(A)||Lf(A))&&(A.value=e.value),A}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,n,r,A){var i=this;if(r){var o=r.content,a=n.ownerDocument;if(!(!a||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new nS(this.context,r));var l=new t7(this.context,r),u=a.createElement("html2canvaspseudoelement");Qv(r,u),l.content.forEach(function(h){if(h.type===0)u.appendChild(a.createTextNode(h.value));else if(h.type===22){var p=a.createElement("img");p.src=h.value,p.style.opacity="1",u.appendChild(p)}else if(h.type===18){if(h.name==="attr"){var m=h.values.filter(Rt);m.length&&u.appendChild(a.createTextNode(e.getAttribute(m[0].value)||""))}else if(h.name==="counter"){var v=h.values.filter(xa),B=v[0],y=v[1];if(B&&Rt(B)){var w=i.counters.getCounterValue(B.value),C=y&&Rt(y)?cv.parse(i.context,y.value):3;u.appendChild(a.createTextNode(Ec(w,C,!1)))}}else if(h.name==="counters"){var S=h.values.filter(xa),B=S[0],Q=S[1],y=S[2];if(B&&Rt(B)){var _=i.counters.getCounterValues(B.value),D=y&&Rt(y)?cv.parse(i.context,y.value):3,I=Q&&Q.type===0?Q.value:"",$=_.map(function(ge){return Ec(ge,D,!1)}).join(I);u.appendChild(a.createTextNode($))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(a.createTextNode(tS(l.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(tS(l.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(h.value))}}),u.className=Tv+" "+Mv;var d=A===kc.BEFORE?" "+Tv:" "+Mv;return Of(n)?n.className.baseValue+=d:n.className+=d,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t})(),kc;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(kc||(kc={}));var lq=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(PS,"true"),t.body.appendChild(n),n},cq=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},uq=function(t){return Promise.all([].slice.call(t.images,0).map(cq))},dq=function(t){return new Promise(function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var A=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var i=setInterval(function(){A.body.childNodes.length>0&&A.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},fq=["all","d","content"],Qv=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);fq.indexOf(r)===-1&&e.style.setProperty(r,t.getPropertyValue(r))}return e},hq=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},pq=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},mq=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},gq=":before",vq=":after",Tv="___html2canvas___pseudoelement_before",Mv="___html2canvas___pseudoelement_after",KS=`{
|
|
168
|
+
}`;var ct=VQ(function(){return Tt(H,Ke+"return "+Fe).apply(n,Z)});if(ct.source=Fe,Vw(ct))throw ct;return ct}function Tne(c){return Ut(c).toLowerCase()}function Mne(c){return Ut(c).toUpperCase()}function Ine(c,f,g){if(c=Ut(c),c&&(g||f===n))return aF(c);if(!c||!(f=zr(f)))return c;var b=HA(c),M=HA(f),H=lF(b,M),Z=cF(b,M)+1;return Xo(b,H,Z).join("")}function Une(c,f,g){if(c=Ut(c),c&&(g||f===n))return c.slice(0,dF(c)+1);if(!c||!(f=zr(f)))return c;var b=HA(c),M=cF(b,HA(f))+1;return Xo(b,0,M).join("")}function _ne(c,f,g){if(c=Ut(c),c&&(g||f===n))return c.replace(Ds,"");if(!c||!(f=zr(f)))return c;var b=HA(c),M=lF(b,HA(f));return Xo(b,M).join("")}function Dne(c,f){var g=de,b=ge;if(rn(f)){var M="separator"in f?f.separator:M;g="length"in f?at(f.length):g,b="omission"in f?zr(f.omission):b}c=Ut(c);var H=c.length;if(za(c)){var Z=HA(c);H=Z.length}if(g>=H)return c;var ie=g-Wa(b);if(ie<1)return b;var fe=Z?Xo(Z,0,ie).join(""):c.slice(0,ie);if(M===n)return fe+b;if(Z&&(ie+=fe.length-ie),eB(M)){if(c.slice(ie).search(M)){var ke,Se=fe;for(M.global||(M=mw(M.source,Ut(uA.exec(M))+"g")),M.lastIndex=0;ke=M.exec(Se);)var Fe=ke.index;fe=fe.slice(0,Fe===n?ie:Fe)}}else if(c.indexOf(zr(M),ie)!=ie){var Ue=fe.lastIndexOf(M);Ue>-1&&(fe=fe.slice(0,Ue))}return fe+b}function One(c){return c=Ut(c),c&&wr.test(c)?c.replace(Tn,u9):c}var Nne=Za(function(c,f,g){return c+(g?" ":"")+f.toUpperCase()}),rB=eQ("toUpperCase");function ZQ(c,f,g){return c=Ut(c),f=g?n:f,f===n?o9(c)?h9(c):jj(c):c.match(f)||[]}var VQ=ut(function(c,f){try{return $r(c,n,f)}catch(g){return Vw(g)?g:new rt(g)}}),Lne=Ji(function(c,f){return fA(f,function(g){g=Bi(g),qi(c,g,jw(c[g],c))}),c});function Rne(c){var f=c==null?0:c.length,g=Je();return c=f?Zt(c,function(b){if(typeof b[1]!="function")throw new hA(o);return[g(b[0]),b[1]]}):[],ut(function(b){for(var M=-1;++M<f;){var H=c[M];if($r(H[0],this,b))return $r(H[1],this,b)}})}function Hne(c){return uZ(mA(c,h))}function AB(c){return function(){return c}}function Pne(c,f){return c==null||c!==c?f:c}var $ne=nQ(),Kne=nQ(!0);function Ir(c){return c}function iB(c){return IF(typeof c=="function"?c:mA(c,h))}function zne(c){return _F(mA(c,h))}function Wne(c,f){return DF(c,mA(f,h))}var Gne=ut(function(c,f){return function(g){return Nc(g,c,f)}}),Yne=ut(function(c,f){return function(g){return Nc(c,g,f)}});function oB(c,f,g){var b=Hn(f),M=Eh(f,b);g==null&&!(rn(f)&&(M.length||!b.length))&&(g=f,f=c,c=this,M=Eh(f,Hn(f)));var H=!(rn(g)&&"chain"in g)||!!g.chain,Z=Zi(c);return fA(M,function(ie){var fe=f[ie];c[ie]=fe,Z&&(c.prototype[ie]=function(){var ke=this.__chain__;if(H||ke){var Se=c(this.__wrapped__),Fe=Se.__actions__=Qr(this.__actions__);return Fe.push({func:fe,args:arguments,thisArg:c}),Se.__chain__=ke,Se}return fe.apply(c,Ko([this.value()],arguments))})}),c}function qne(){return Xn._===this&&(Xn._=B9),this}function sB(){}function Xne(c){return c=at(c),ut(function(f){return OF(f,c)})}var Jne=Lw(Zt),jne=Lw(rF),Zne=Lw(lw);function eT(c){return Ww(c)?cw(Bi(c)):FZ(c)}function Vne(c){return function(f){return c==null?n:Ps(c,f)}}var ere=AQ(),tre=AQ(!0);function aB(){return[]}function lB(){return!1}function nre(){return{}}function rre(){return""}function Are(){return!0}function ire(c,f){if(c=at(c),c<1||c>T)return[];var g=E,b=or(c,E);f=Je(f),c-=E;for(var M=fw(b,f);++g<c;)f(g);return M}function ore(c){return it(c)?Zt(c,Bi):Wr(c)?[c]:Qr(BQ(Ut(c)))}function sre(c){var f=++v9;return Ut(c)+f}var are=Th(function(c,f){return c+f},0),lre=Rw("ceil"),cre=Th(function(c,f){return c/f},1),ure=Rw("floor");function dre(c){return c&&c.length?bh(c,Ir,Ew):n}function fre(c,f){return c&&c.length?bh(c,Je(f,2),Ew):n}function hre(c){return oF(c,Ir)}function pre(c,f){return oF(c,Je(f,2))}function mre(c){return c&&c.length?bh(c,Ir,Fw):n}function gre(c,f){return c&&c.length?bh(c,Je(f,2),Fw):n}var vre=Th(function(c,f){return c*f},1),wre=Rw("round"),Bre=Th(function(c,f){return c-f},0);function yre(c){return c&&c.length?dw(c,Ir):0}function Cre(c,f){return c&&c.length?dw(c,Je(f,2)):0}return L.after=zee,L.ary=MQ,L.assign=Mte,L.assignIn=WQ,L.assignInWith=Kh,L.assignWith=Ite,L.at=Ute,L.before=IQ,L.bind=jw,L.bindAll=Lne,L.bindKey=UQ,L.castArray=nte,L.chain=FQ,L.chunk=uV,L.compact=dV,L.concat=fV,L.cond=Rne,L.conforms=Hne,L.constant=AB,L.countBy=yee,L.create=_te,L.curry=_Q,L.curryRight=DQ,L.debounce=OQ,L.defaults=Dte,L.defaultsDeep=Ote,L.defer=Wee,L.delay=Gee,L.difference=hV,L.differenceBy=pV,L.differenceWith=mV,L.drop=gV,L.dropRight=vV,L.dropRightWhile=wV,L.dropWhile=BV,L.fill=yV,L.filter=bee,L.flatMap=See,L.flatMapDeep=xee,L.flatMapDepth=Fee,L.flatten=EQ,L.flattenDeep=CV,L.flattenDepth=bV,L.flip=Yee,L.flow=$ne,L.flowRight=Kne,L.fromPairs=EV,L.functions=Kte,L.functionsIn=zte,L.groupBy=Qee,L.initial=SV,L.intersection=xV,L.intersectionBy=FV,L.intersectionWith=QV,L.invert=Gte,L.invertBy=Yte,L.invokeMap=Mee,L.iteratee=iB,L.keyBy=Iee,L.keys=Hn,L.keysIn=Mr,L.map=Nh,L.mapKeys=Xte,L.mapValues=Jte,L.matches=zne,L.matchesProperty=Wne,L.memoize=Rh,L.merge=jte,L.mergeWith=GQ,L.method=Gne,L.methodOf=Yne,L.mixin=oB,L.negate=Hh,L.nthArg=Xne,L.omit=Zte,L.omitBy=Vte,L.once=qee,L.orderBy=Uee,L.over=Jne,L.overArgs=Xee,L.overEvery=jne,L.overSome=Zne,L.partial=Zw,L.partialRight=NQ,L.partition=_ee,L.pick=ene,L.pickBy=YQ,L.property=eT,L.propertyOf=Vne,L.pull=UV,L.pullAll=SQ,L.pullAllBy=_V,L.pullAllWith=DV,L.pullAt=OV,L.range=ere,L.rangeRight=tre,L.rearg=Jee,L.reject=Nee,L.remove=NV,L.rest=jee,L.reverse=Xw,L.sampleSize=Ree,L.set=nne,L.setWith=rne,L.shuffle=Hee,L.slice=LV,L.sortBy=Kee,L.sortedUniq=WV,L.sortedUniqBy=GV,L.split=Sne,L.spread=Zee,L.tail=YV,L.take=qV,L.takeRight=XV,L.takeRightWhile=JV,L.takeWhile=jV,L.tap=dee,L.throttle=Vee,L.thru=Oh,L.toArray=$Q,L.toPairs=qQ,L.toPairsIn=XQ,L.toPath=ore,L.toPlainObject=zQ,L.transform=Ane,L.unary=ete,L.union=ZV,L.unionBy=VV,L.unionWith=eee,L.uniq=tee,L.uniqBy=nee,L.uniqWith=ree,L.unset=ine,L.unzip=Jw,L.unzipWith=xQ,L.update=one,L.updateWith=sne,L.values=tl,L.valuesIn=ane,L.without=Aee,L.words=ZQ,L.wrap=tte,L.xor=iee,L.xorBy=oee,L.xorWith=see,L.zip=aee,L.zipObject=lee,L.zipObjectDeep=cee,L.zipWith=uee,L.entries=qQ,L.entriesIn=XQ,L.extend=WQ,L.extendWith=Kh,oB(L,L),L.add=are,L.attempt=VQ,L.camelCase=dne,L.capitalize=JQ,L.ceil=lre,L.clamp=lne,L.clone=rte,L.cloneDeep=ite,L.cloneDeepWith=ote,L.cloneWith=Ate,L.conformsTo=ste,L.deburr=jQ,L.defaultTo=Pne,L.divide=cre,L.endsWith=fne,L.eq=$A,L.escape=hne,L.escapeRegExp=pne,L.every=Cee,L.find=Eee,L.findIndex=CQ,L.findKey=Nte,L.findLast=kee,L.findLastIndex=bQ,L.findLastKey=Lte,L.floor=ure,L.forEach=QQ,L.forEachRight=TQ,L.forIn=Rte,L.forInRight=Hte,L.forOwn=Pte,L.forOwnRight=$te,L.get=tB,L.gt=ate,L.gte=lte,L.has=Wte,L.hasIn=nB,L.head=kQ,L.identity=Ir,L.includes=Tee,L.indexOf=kV,L.inRange=cne,L.invoke=qte,L.isArguments=zs,L.isArray=it,L.isArrayBuffer=cte,L.isArrayLike=Tr,L.isArrayLikeObject=wn,L.isBoolean=ute,L.isBuffer=Jo,L.isDate=dte,L.isElement=fte,L.isEmpty=hte,L.isEqual=pte,L.isEqualWith=mte,L.isError=Vw,L.isFinite=gte,L.isFunction=Zi,L.isInteger=LQ,L.isLength=Ph,L.isMap=RQ,L.isMatch=vte,L.isMatchWith=wte,L.isNaN=Bte,L.isNative=yte,L.isNil=bte,L.isNull=Cte,L.isNumber=HQ,L.isObject=rn,L.isObjectLike=cn,L.isPlainObject=Kc,L.isRegExp=eB,L.isSafeInteger=Ete,L.isSet=PQ,L.isString=$h,L.isSymbol=Wr,L.isTypedArray=el,L.isUndefined=kte,L.isWeakMap=Ste,L.isWeakSet=xte,L.join=TV,L.kebabCase=mne,L.last=vA,L.lastIndexOf=MV,L.lowerCase=gne,L.lowerFirst=vne,L.lt=Fte,L.lte=Qte,L.max=dre,L.maxBy=fre,L.mean=hre,L.meanBy=pre,L.min=mre,L.minBy=gre,L.stubArray=aB,L.stubFalse=lB,L.stubObject=nre,L.stubString=rre,L.stubTrue=Are,L.multiply=vre,L.nth=IV,L.noConflict=qne,L.noop=sB,L.now=Lh,L.pad=wne,L.padEnd=Bne,L.padStart=yne,L.parseInt=Cne,L.random=une,L.reduce=Dee,L.reduceRight=Oee,L.repeat=bne,L.replace=Ene,L.result=tne,L.round=wre,L.runInContext=ue,L.sample=Lee,L.size=Pee,L.snakeCase=kne,L.some=$ee,L.sortedIndex=RV,L.sortedIndexBy=HV,L.sortedIndexOf=PV,L.sortedLastIndex=$V,L.sortedLastIndexBy=KV,L.sortedLastIndexOf=zV,L.startCase=xne,L.startsWith=Fne,L.subtract=Bre,L.sum=yre,L.sumBy=Cre,L.template=Qne,L.times=ire,L.toFinite=Vi,L.toInteger=at,L.toLength=KQ,L.toLower=Tne,L.toNumber=wA,L.toSafeInteger=Tte,L.toString=Ut,L.toUpper=Mne,L.trim=Ine,L.trimEnd=Une,L.trimStart=_ne,L.truncate=Dne,L.unescape=One,L.uniqueId=sre,L.upperCase=Nne,L.upperFirst=rB,L.each=QQ,L.eachRight=TQ,L.first=kQ,oB(L,(function(){var c={};return vi(L,function(f,g){It.call(L.prototype,g)||(c[g]=f)}),c})(),{chain:!1}),L.VERSION=r,fA(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){L[c].placeholder=L}),fA(["drop","take"],function(c,f){Bt.prototype[c]=function(g){g=g===n?1:In(at(g),0);var b=this.__filtered__&&!f?new Bt(this):this.clone();return b.__filtered__?b.__takeCount__=or(g,b.__takeCount__):b.__views__.push({size:or(g,E),type:c+(b.__dir__<0?"Right":"")}),b},Bt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),fA(["filter","map","takeWhile"],function(c,f){var g=f+1,b=g==te||g==q;Bt.prototype[c]=function(M){var H=this.clone();return H.__iteratees__.push({iteratee:Je(M,3),type:g}),H.__filtered__=H.__filtered__||b,H}}),fA(["head","last"],function(c,f){var g="take"+(f?"Right":"");Bt.prototype[c]=function(){return this[g](1).value()[0]}}),fA(["initial","tail"],function(c,f){var g="drop"+(f?"":"Right");Bt.prototype[c]=function(){return this.__filtered__?new Bt(this):this[g](1)}}),Bt.prototype.compact=function(){return this.filter(Ir)},Bt.prototype.find=function(c){return this.filter(c).head()},Bt.prototype.findLast=function(c){return this.reverse().find(c)},Bt.prototype.invokeMap=ut(function(c,f){return typeof c=="function"?new Bt(this):this.map(function(g){return Nc(g,c,f)})}),Bt.prototype.reject=function(c){return this.filter(Hh(Je(c)))},Bt.prototype.slice=function(c,f){c=at(c);var g=this;return g.__filtered__&&(c>0||f<0)?new Bt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),f!==n&&(f=at(f),g=f<0?g.dropRight(-f):g.take(f-c)),g)},Bt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Bt.prototype.toArray=function(){return this.take(E)},vi(Bt.prototype,function(c,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),b=/^(?:head|last)$/.test(f),M=L[b?"take"+(f=="last"?"Right":""):f],H=b||/^find/.test(f);M&&(L.prototype[f]=function(){var Z=this.__wrapped__,ie=b?[1]:arguments,fe=Z instanceof Bt,ke=ie[0],Se=fe||it(Z),Fe=function(mt){var yt=M.apply(L,Ko([mt],ie));return b&&Ue?yt[0]:yt};Se&&g&&typeof ke=="function"&&ke.length!=1&&(fe=Se=!1);var Ue=this.__chain__,Ke=!!this.__actions__.length,je=H&&!Ue,ct=fe&&!Ke;if(!H&&Se){Z=ct?Z:new Bt(this);var Ze=c.apply(Z,ie);return Ze.__actions__.push({func:Oh,args:[Fe],thisArg:n}),new pA(Ze,Ue)}return je&&ct?c.apply(this,ie):(Ze=this.thru(Fe),je?b?Ze.value()[0]:Ze.value():Ze)})}),fA(["pop","push","shift","sort","splice","unshift"],function(c){var f=ah[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);L.prototype[c]=function(){var M=arguments;if(b&&!this.__chain__){var H=this.value();return f.apply(it(H)?H:[],M)}return this[g](function(Z){return f.apply(it(Z)?Z:[],M)})}}),vi(Bt.prototype,function(c,f){var g=L[f];if(g){var b=g.name+"";It.call(Xa,b)||(Xa[b]=[]),Xa[b].push({name:f,func:g})}}),Xa[Qh(n,w).name]=[{name:"wrapper",func:n}],Bt.prototype.clone=O9,Bt.prototype.reverse=N9,Bt.prototype.value=L9,L.prototype.at=fee,L.prototype.chain=hee,L.prototype.commit=pee,L.prototype.next=mee,L.prototype.plant=vee,L.prototype.reverse=wee,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=Bee,L.prototype.first=L.prototype.head,Tc&&(L.prototype[Tc]=gee),L}),Ga=p9();Os?((Os.exports=Ga)._=Ga,iw._=Ga):Xn._=Ga}).call(E5)})(Ac,Ac.exports)),Ac.exports}var _g=k5();const S5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAEA0V4cAANaTc64j//NLKcl/CwCwllRrdRQAwJDfjDgAAHPyCAAAGP79uwOAAAAAAAAIAAAAAIAAAAAAAAgAAAAAwEn8CgAATOq3l+mNetv+rP9eAIAAAAAAAOF5BAAAAAAEAAAAAEAAAAAAAJZwdQgA2N2tl9Z5UZ1zwjkBQDReAghAmAHPwIdzA4DI7AAAINxwB8+eR0IAADuxAwCA0IO/Ac954jwBQAAAgE2HOUOd88Z5A0BEHgEAINwABy3OPyEAgNXYAQBAyMHf8OZcci4BIAAAwKbDmkEN5xcAAgAAGMxwvjnfABAAAGC1QcwQhnMQAAQAAAxd4JwEQAAAAEMWOEcBEAAAYKrBylCF8xUABAAANh2kDFE4hwFAAADA0ATOaQC44eIQAGBQgvcdOTdb/fQgADzDDgAADP7gXAdAAACAMQORYQjnPQAIAAAYgMDnAAAEAAAMPLD+58JnAgABAADDP/h8AIAAAMA6w43BBp8VnxUABAAADDPgs+OzA0BDF4cAgDMZYMBnAYAxrg4BAIYdGPu5ePf9AADwCjsAADD8g88IAAHYAQCAoQYm+rzYDQBAL3YAAGD4B58dAALwKwAANPF519LwAj5XAAgAAAAAwCAeAQAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAiyznXj38cCcA6A8AjqVZrOcCqF+S3/l5KSY4OYJ0B4Cc7AAA2uigHsAYBIAAAuDAHsJYACAAAuCgHsBYBCAAALHPB7dlcoIVn1hIRAEAAAGDQ8A9gbQJAAAAIcIHt7j/Q0rNriggAIAAAMOGFOoC1BUAAAGBCnvsHVogAdgEACAAAGP4BEQAAAQAAAAAQAAACc/cfmI1dAAACAACGf0AEEAEABAAADP+ACACAAAAAAAAIAACRuPsPrMIuAAABAADDPyACiAAAAgAAAAAgAAAE5e4/sCq7AAAEAAAM/4AIIAIACAAAAACAAAAQhLv/wC7sAgAQAADofEENYM0CQAAAmJg7YYC1DwABAMAFsDtpwJI8CgAgAADQ+AIawBoGgAAAMDF3vgCshQACAADunAHWMgAEAIDVueMFYE0EEAAAXOi6YwZsxQsBAQQAAAz/gLUNAAEAYD/ucAFYIwEEAADcIQOscQAIAACrc2cLwFoJIAAA4M4YYK0DQAAAWJ07WgDWTAABAAB3xABrHgACAMDq3MkCsHYCCAAAuBMGWPsAEAAAVvfbHSwXwIAI8P4aCoAAAAAAAAgAAHNw9x/AWgggAAAAAAACAMDq3PECsCYCCAAAAABAN6lWL1kF6OXzTdbucgFYLwEEAAAAAKA7jwAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACgEMAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAJHknOvHP44EgHUaYGWpVmslwL0Lyp9/K6UkRwbAWg2wIjsAAJ68oHz0dwCs1QACAAAAACAAAAAAAAIAwOlsHQWwlgMIAADBebEUAAACAAAAnEiUBRAAAAAAAAEA4D7PjAJY0wEEAAAAAEAAANidZ00BrM0AAgAAAAAgAAAAAAACAMAUvCwKwNoOIAAAAAAAAgDA7rxkCsAaDSAAAAAAAAIAAAAAIAAATMFLogCs8QACAAAAACAAAOzOy6UArNUAAgAAAAAgAAAAAAACAAAAACAAAJzD26EBrPUAAgAAAAAgAADszlulAazZAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAEAjfhYKwJoPIAAAAAAAAgDA7vycFIC1G0AAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAPiSc66OAoC1H0AAAAjM70gDWMMBBAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABACCMUkpyFACs5QACAICLQwCs/QDLSbVWRwEAAAA2ZwcAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgADgEAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAABAc1eHAIgs51x//q2UkhwZAGs8wG7sAABcGD75dwCs8QACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAFH5nWgAaziAAACwiVJKchQArP0AAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAMC/cs7VUQCwdgMIAAAbKKUkRwHAmg8gAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAA04fekAazZAAIAwCb8LjSAtR5AAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAABoxu9KA1irAQQAgE34fWgAAAQAAABYmMgLIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAMBu/Lw1gjQYQAAA24WeiAKztAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAwEv8XBSANR1AAABwEQmANRpgWanW6igAAADA5uwAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABACHAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAgLNdHQKA1+Wc6+f/XEpJjgiAtRdgdqnW6igAvHHx+Z0LUQDrL8DsPAIA0PHCFABrLIAAAAAAAAgAAAAAgAAAAAAACAAAAOzA8/8AAgCAi1QAABAAAPrwc1MA1mQAAQAAAAAQAAAAAAABAAAAABAAANbgRYAA1lQAAQBgE146BWAtBhAAAAAAAAEAAAAAEAAAtuCZVQBrKYAAAAAAAAgAAKvw8ikAazCAAAAAAAAIAAAAAIAAALAFL68CsIYCCAAAAACAAACwCi+hArD2AggAAAAAgAAAAAAACAAAW/ASKwBrJ4AAALAJz6ICWHMBBAAAAABAAAAAAAAEAIAteJYVwJoJIAAAAAAAAgDAKryUCsBaCyAAAAAAAAIAQASeaQWwVgIIAAAAAIAAALAKz6YCWGMBBAAAAABAAACIwLOtAAAIAAAAhCaSAggAAEvxjCqAtRVAAAAAAAAEAAAAAEAAANiCZ1wBrI0AAgDAJjyrCmBNBRAAAAAAAAEAIAJbXQGsiQACAAAAACAAAKzCM6sA1lIAAQAAAAAQAAAAAAABAGAZ97au2tIKYK0EEAAANr+wdUELYK0EGCnV6tdXAAAAYHd2AAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAKAQwAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAADAQTnn+vGPIwFYvwBoJdVqfQaY6cL51t9LKcnRAaxfABxhBwAAAAAIAADMwHZawBoFgAAAAAAACAAAu3CHDbA2ASAAAAAAAAIAwCq8LRuwpgEgAABgqy1gTQJAAAAAAAAEAIBl2DILWMsAEAAAsOUWsBYBIAAAAAAAAgDAMn7bOuvOGzDSb2uQ7f8AAgAAAAAgAAAAAAACAEAwHgMAZmT7P4AAAAAAAAgAALzDnTTAmgWAAACAxwAAaw4AAgAAAAAgAAAsw8sAgRl4+R+AAAAAAAAIAAC04M4aYI0CQAAAwGMAgDUGAAEAAAAAEAAAluFlgMAIXv4HIAAAAAAAAgAAPdgFAJzJ3X8AAQAAAAAQAAAAAAABAIBDPAYAnMH2fwABAAAAABAAADiDXQBAT+7+AwgAAAAAgAAAwJnsAgB6cPcfQAAAAAAABAAAAABAAACgC48BAC3Z/g8gAAAAAAACAAAj2QUAtODuP4AAAAAAAAgAAMzALgDgCHf/AQQAAAAAQAAAYCZ2AQDvcPcfQAAAAAAABAAAZuROHWBNAUAAAAAAAAEAAAAAEAAAWIYtu4C1BIBbUq1eCg0AAAC7swMAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQABwCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAD4JudcP/5xJMDnE4B1pVp9XwBwf7D4+bdSSnJkwGcUgPXYAQDA04PFo78DPqMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAQfkZMfAZBkAAAAAAAAQAAHZXSkmOAvgsAiAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABAHDnn6igAIAAAYGgAABAAAOA2vzsOPpMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAfMk5V0cBfKYBEAAACMzvjYPPJgACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABf/F44+GwDIAAAAAAAAgAAuyulJEcBfEYBEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAA+CPnXB0F8BkHQAAAIDC/Lw4+qwAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAA8xc+Kgc8sAAIAAAAAsJBUa3UUAPgj5/z1peBOIvgsAyAAAAAAAIvxCAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAADAIVeHAGAeOef682+llOTIANYwAI5KtVZHAWCSC+V7XEAD1jQAjrIDAGCyC2OAiGuiKAAgAAAY9AECr5/CAIAAAGDQBwi83goDAAIAgCEfIPgaLQ4A3OYlgICLyMkHfReygPXUegogAABsdGHqAhWw7lp3AQQAABeeANZl6zKAAACwykWmi0qANdZs6zWwIy8BBHDhCDDdmulFrAACAIAhHyD4GisOAAgAAAZ9gMDrsjAAIAAAGPQBAq/jwgDAP7wEENjWvQs+gz4AvicAAQAAAADY0sUhAAAAAAEAAAAAEAAAAACAFfgVAOBXt16S5AVJAOC7GViLlwACT11U3OJCAwB8TwPrsAMA8PvIABDg+10QAAQAcEEAAAgCgAAAGPgBAEEAEAAAAz8AIAgAS/ASQDD0v8VFAQD43gcEAGDDL35f/gDgmsA1AQgAgC93AMA1AyAAAL68AQDXFIAAAPhyBgBccwACAPjy9eULALgmAQQA8CXryxUAcK0CCAAQ6wvVlygA4PoFuOfqEMC6fGECAGdfb4x4ZAAQAMDADwAgCAACABj4AQAEAeCTdwDAyR59KRr4AQDXPoAAAAAAALzt4hAAAACAAAAAAAAIAAAAAIAAACf4eLGMt80CAOB6Ex7zEkCWXIAf/d+9TRYAANed8H9Xh4AdFl8AABh5jSoGIACAoR8AADEABAAw9AMAIAaAAIChHwAAxAAQADD0AwCAGADP8isAbDH0W0ABAHAtCwIAFkoAAHCNiwAgALDSomhBBADAdS8IAFj8AADA9TAIAKy00FnkAABwjewaGQGATRc1CxoAAK6bXTcjAGDxAgAA19OupxEAWGmhskgBAIBrbAQALEoAAOCa2zU3AgCrLUIWIAAAcB2OAIAFBwAAcF2OAMBqi4zFBQAAXKczr6tDwFEWFAAA6H+93foXBBAAwOAPAABCAAIAGPwBAEAIYEXeAcB/3FtEDP0AAOA6HgGAjRcPCwYAALiWRwAAAAAAFnFxCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAG64OwRg55/r5P5dSkiMCAACYgegp1VodhUEn/Xc+AAAAgDmInjwCMMFJDwAAYEaiN48AOKkBAACGz0t2A/RnB4DhHwAAwOwkAOAEBgAAMEMJADQ5cW11AQAAdvbKzCMC9ONXAAYO/oZ/AADAvGReOosdAE5mAACAU7w6A9kNIAAY/gEAAEQAXuQRgJOHf4M/AACAWWoEOwCcsAAAAEN4OaAAYPgHAAAQAUQAAcDwDwAAIALwKu8A6Dj4G/4BAADMWwLA5iejExEAAMDsNROPADgBAQAApuKRAAHA8A8AACACiAACgOEfAABABEAAMPwDAACIAAIAhn8AAAARQAAw/Bv+AQAARAABwPAPAACACCAAGP4BAAAQAQQAwz8AAAAigABg+AcAAEAEEAAM/wAAACKACCAAGP4BAABEABEgcgAw/AMAAIgAAgCGfwAAALObALC6Z4uPEwgAAGC/CBB1F0C4AGD4BwAAEAEiRoBQAcDwDwAAIAJEjQBhAoDhHwAAQASIHAG8BNDwDwAAYMYTAJwYAAAAmPUEACcEAAAAZj4BwIkAAACA2U8AGP5fthMAAAAgdgSINBemWquzAAAAADbnHQAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAA4BAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAANHId/S+Qc64//1ZKSf6rAQAAYFUzzrqX2Q7Io78DAADAisP/DLOuRwAAAAAggGEBwF1+AAAAohk5C9sBAAAAAAEMCQC/FQ8vAQQAAGBXo3YB2AEAAAAADc16U/v0AODuPwAAANEjwIhdAHYAAAAAQACnBgB3/wEAAIhitl0AdgAAAABAAKcFAHf/AQAAiGamXQB2AAAAAEAApwQAd/8BAACIapZdAHYAAAAAQADdA8CI3zYEAACAlZwxOw/fAWD7PwAAALubYfb1CAAAAAAE0DUAePkfAAAAPDcD934MwA4AAAAACKBbAHD3HwAAAF6bhXvuArADAAAAAAIYEgDc/QcAACCqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",x5={class:"camera__preview"},F5={key:0,class:"camera__bg-notification"},Q5=["innerHTML"],T5=["width","height"],M5={key:1,class:"camera__countdown-overlay"},I5=["innerHTML","data-countdown"],U5=["src"],_5={class:"camera__controls"},D5={class:"container"},O5={class:"row"},N5={class:"col"},L5={class:"btn-group"},R5={key:0},H5={key:1},P5={key:0,class:"camera__switch-cam"},$5={key:1,class:"base-camera__devices"},K5={name:"BaseCamera",inheritAttrs:!1},KE={"1x1":{width:720,height:720},"2x3":{width:720,height:1080},"3x2":{width:1080,height:720},"3x4":{width:720,height:960},"4x3":{width:960,height:720},"4x5":{width:960,height:1200},"5x4":{width:1200,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},z5=s.defineComponent({...K5,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>S5},countdown:{type:Number,default:0},ratio:{type:String,default:"4x5"},filter:{type:String,default:"none",validator:t=>["none","grayscale","sepia"].includes(t)},tintColor:{type:String,default:""},tintIntensity:{type:Number,default:.3},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1},resolutions:{type:Object,default:()=>KE}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,A=n,i=s.ref(),o=s.ref(),a=s.ref(!1),l=s.ref([]),u=s.ref(),d=s.ref(),h=s.ref(!1),p=s.ref(!1),m=s.ref(0),v=s.ref(0),B=s.ref(),y=s.computed(()=>({...KE,...r.resolutions})),w=s.computed(()=>l.value.filter(F=>F.kind==="videoinput")),C=s.computed(()=>l.value.filter(F=>F.kind==="audioinput")),S=s.computed({get(){return u.value&&u.value.deviceId},set(F){u.value=w.value.find(E=>E.deviceId===F)}}),Q=s.computed({get(){return d.value&&d.value.deviceId},set(F){d.value=C.value.find(E=>E.deviceId===F)}}),_=s.computed(()=>{const F=u.value&&w.value.findIndex(E=>E.deviceId===u.value.deviceId);return r.enableMirrorCamera&&F===0?"mirror-cam":""}),D=s.computed(()=>{const F=u.value&&l.value.findIndex(E=>E.deviceId===u.value.deviceId);return _.value?`${_.value} mirror-device-${F}`:""}),I=s.computed(()=>{if(!r.tintColor)return null;const F=r.tintColor.replace("#",""),E=parseInt(F.substring(0,2),16),W=parseInt(F.substring(2,4),16),ne=parseInt(F.substring(4,6),16);return{r:E,g:W,b:ne}});function $(F,E,W){if(r.filter==="none"&&!r.tintColor)return;const ne=F.getImageData(0,0,E,W),X=ne.data;if(r.filter==="grayscale")for(let re=0;re<X.length;re+=4){const Ae=.299*X[re]+.587*X[re+1]+.114*X[re+2];X[re]=Ae,X[re+1]=Ae,X[re+2]=Ae}else if(r.filter==="sepia")for(let re=0;re<X.length;re+=4){const Ae=X[re],pe=X[re+1],le=X[re+2];X[re]=Math.min(255,.393*Ae+.769*pe+.189*le),X[re+1]=Math.min(255,.349*Ae+.686*pe+.168*le),X[re+2]=Math.min(255,.272*Ae+.534*pe+.131*le)}if(r.tintColor&&I.value){const{r:re,g:Ae,b:pe}=I.value,le=r.tintIntensity;for(let Ce=0;Ce<X.length;Ce+=4){const G=X[Ce],ee=X[Ce+1],K=X[Ce+2],N=G*re/255,R=ee*Ae/255,J=K*pe/255;X[Ce]=G+(N-G)*le,X[Ce+1]=ee+(R-ee)*le,X[Ce+2]=K+(J-K)*le}}F.putImageData(ne,0,0)}function Y(){m.value=y.value[r.ratio]?y.value[r.ratio].width:i.value.parentElement&&i.value.parentElement.clientWidth,v.value=y.value[r.ratio]?y.value[r.ratio].height:i.value.parentElement&&i.value.parentElement.clientHeight}const de=_g.debounce(()=>{Y()},300,{trailing:!0,leading:!1});async function ge(){const F=y.value[r.ratio]?{width:y.value[r.ratio].width,height:y.value[r.ratio].height}:void 0,E=F?F.width/F.height:void 0,W={audio:r.enableAudio&&{...d.value?{deviceId:d.value.deviceId}:{}},video:{...u.value?{deviceId:u.value.deviceId}:{},width:{ideal:1280},...E?{width:{ideal:E*1024},aspectRatio:{ideal:E}}:{}}};return navigator.mediaDevices.getUserMedia(W).catch(ne=>{console.error(ne,"navigator.mediaDevices.getUserMedia: failed")})}function me(){i.value&&i.value.srcObject&&i.value.srcObject.getTracks().forEach(E=>{E.stop()})}async function we(){return i.value.srcObject=await ge(),l.value=await navigator.mediaDevices.enumerateDevices(),{stream:i.value.srcObject,devices:l.value}}function te(){h.value?(h.value=!1,p.value=!1,me()):(h.value=!0,we())}function V(){l.value.length>1&&(me(),u.value=u.value&&u.value.deviceId===w.value[0].deviceId?w.value[w.value.length-1]:w.value[0],we())}async function q(F,E){me(),F&&(!E||F.deviceId!==E.deviceId)&&await we()}s.watch(()=>u.value,q),s.watch(()=>d.value,q);function x(){r.countdown?(B.value=B.value?B.value-1:r.countdown,B.value?setTimeout(x,1e3):T()):T()}e({onCapture:x,camera:i.value});function T(){p.value=!0;const F=o.value.getContext("2d"),E=i.value,W=E&&E.srcObject&&E.srcObject.getTracks(),{aspectRatio:ne,width:X,height:re}=W.length&&W[0].getSettings(),Ae=y.value[r.ratio]||{width:X,height:re},pe=Ae.width/Ae.height;let le=Ae?Ae.width:void 0,Ce=Ae?Ae.height:void 0;r.enableCropImage?ne>pe?le=Ce*ne:ne<pe&&(Ce=le/ne):(le=X,Ce=re,o.value.width=le,o.value.height=Ce);const G=_.value?-1:1;F.save(),F.scale(G,1),F.drawImage(E,le>o.value.width?(o.value.width-le)/2:0,Ce>o.value.height?(o.value.height-Ce)/2:0,le*G,Ce),F.restore(),$(F,o.value.width,o.value.height);const ee=o.value.toDataURL("image/png");P(ee)}function P(F){const E=HT(F);A("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:E,size:E.size})}return s.onMounted(async()=>{me(),await we(),u.value=w.value[0],r.enableAudio&&(d.value=C.value[0]),navigator.mediaDevices.addEventListener("devicechange",async F=>{await we()}),r.defaultRearCamera&&V(),te(),window.addEventListener("resize",de),Y(),await s.nextTick(),a.value=!0}),s.onBeforeUnmount(()=>{h.value=!1,p.value=!1,me(),window.removeEventListener("resize",de)}),(F,E)=>{const W=s.resolveComponent("loading-spinner"),ne=s.resolveComponent("svg-icon"),X=s.resolveComponent("input-dropdown");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["camera",D.value])},[s.createElementVNode("div",x5,[a.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",F5,[s.createVNode(W,{color:"#000"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:s.normalizeClass("d-block text-center"),innerHTML:F.$t("camera.waitForCameraNotification")},null,8,Q5)]),_:1})])),s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["camera__video-wrapper",`aspect-ratio--${r.ratio}`])},[s.createElementVNode("video",{ref_key:"camera",ref:i,class:"camera__video",style:s.normalizeStyle({filter:r.filter==="grayscale"?"grayscale(100%)":r.filter==="sepia"?"sepia(100%)":"none"}),autoplay:"",playsinline:""},null,4),t.tintColor?(s.openBlock(),s.createElementBlock("div",{key:0,class:"camera__tint-overlay",style:s.normalizeStyle({backgroundColor:t.tintColor,opacity:t.tintIntensity,mixBlendMode:"multiply"})},null,4)):s.createCommentVNode("",!0)],2),[[s.vShow,a.value]]),s.withDirectives(s.createElementVNode("canvas",{ref_key:"canvas",ref:o,class:"camera__canvas",width:m.value,height:v.value},null,8,T5),[[s.vShow,p.value]]),B.value?(s.openBlock(),s.createElementBlock("div",M5,[(s.openBlock(),s.createElementBlock("p",{class:"countdown",key:B.value,innerHTML:B.value,"data-countdown":B.value},null,8,I5))])):s.createCommentVNode("",!0),t.enableGuide&&h.value&&a.value?(s.openBlock(),s.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,U5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",_5,[s.createElementVNode("div",D5,[s.createElementVNode("div",O5,[s.createElementVNode("div",N5,[s.createElementVNode("div",L5,[s.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:te},[h.value?(s.openBlock(),s.createElementBlock("span",H5,s.toDisplayString(F.$t("common.pause")),1)):(s.openBlock(),s.createElementBlock("span",R5,s.toDisplayString(F.$t("common.play")),1))]),s.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:x},s.toDisplayString(F.$t("camera.capture")),1)])])])])]),t.enableSwitchCamera&&w.value&&w.value.length>1?(s.openBlock(),s.createElementBlock("div",P5,[s.createElementVNode("button",{class:"btn",onClick:s.withModifiers(V,["prevent"])},[s.createVNode(ne,{symbol:"switch-camera"})])])):s.createCommentVNode("",!0),t.enableSelectDevice?(s.openBlock(),s.createElementBlock("div",$5,[C.value.length&&d.value?(s.openBlock(),s.createBlock(X,{key:0,modelValue:Q.value,"onUpdate:modelValue":E[0]||(E[0]=re=>Q.value=re),options:C.value.map((re,Ae)=>({text:re.label||`Microphone ${Ae+1}`,value:re.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0),w.value.length?(s.openBlock(),s.createBlock(X,{key:1,modelValue:S.value,"onUpdate:modelValue":E[1]||(E[1]=re=>S.value=re),options:w.value.map((re,Ae)=>({text:re.label||`Camera ${Ae+1}`,value:re.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)}}}),W5=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,G5=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Y5=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function q5(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){X5(t);return}return e}function X5(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function J5(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Y5.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(W5.test(t)||G5.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,q5)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const j5=/#/g,Z5=/&/g,V5=/\//g,eW=/=/g,Dg=/\+/g,tW=/%5e/gi,nW=/%60/gi,rW=/%7c/gi,AW=/%20/gi;function iW(t){return encodeURI(""+t).replace(rW,"|")}function Og(t){return iW(typeof t=="string"?t:JSON.stringify(t)).replace(Dg,"%2B").replace(AW,"+").replace(j5,"%23").replace(Z5,"%26").replace(nW,"`").replace(tW,"^").replace(V5,"%2F")}function Ng(t){return Og(t).replace(eW,"%3D")}function zE(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function oW(t){return zE(t.replace(Dg," "))}function sW(t){return zE(t.replace(Dg," "))}function aW(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const A=oW(r[1]);if(A==="__proto__"||A==="constructor")continue;const i=sW(r[2]||"");e[A]===void 0?e[A]=i:Array.isArray(e[A])?e[A].push(i):e[A]=[e[A],i]}return e}function lW(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Ng(t)}=${Og(n)}`).join("&"):`${Ng(t)}=${Og(e)}`:Ng(t)}function cW(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>lW(e,t[e])).filter(Boolean).join("&")}const uW=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,dW=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,fW=/^([/\\]\s*){2,}[^/\\]/,hW=/^\.?\//;function WE(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?uW.test(t):dW.test(t)||(e.acceptRelative?fW.test(t):!1)}function pW(t="",e){return t.endsWith("/")}function mW(t="",e){return(pW(t)?t.slice(0,-1):t)||"/"}function gW(t="",e){return t.endsWith("/")?t:t+"/"}function vW(t,e){if(BW(e)||WE(t))return t;const n=mW(e);return t.startsWith(n)?t:CW(n,t)}function wW(t,e){const n=bW(t),r={...aW(n.search),...e};return n.search=cW(r),EW(n)}function BW(t){return!t||t==="/"}function yW(t){return t&&t!=="/"}function CW(t,...e){let n=t||"";for(const r of e.filter(A=>yW(A)))if(n){const A=r.replace(hW,"");n=gW(n)+A}else n=r;return n}const GE=Symbol.for("ufo:protocolRelative");function bW(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,p=""]=n;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!WE(t,{acceptRelative:!0}))return YE(t);const[,r="",A,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:d}=YE(a);return{protocol:r.toLowerCase(),auth:A?A.slice(0,Math.max(0,A.length-1)):"",host:o,pathname:l,search:u,hash:d,[GE]:!r}}function YE(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function EW(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",A=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[GE]?(t.protocol||"")+"//":"")+A+i+e+n+r}class kW extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function SW(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",A=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${A}: ${i}${e?` ${e}`:""}`,a=new kW(o,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[u]}});return a}const xW=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function qE(t="GET"){return xW.has(t.toUpperCase())}function FW(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const QW=new Set(["image/svg","application/xml","application/xhtml","application/html"]),TW=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function MW(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return TW.test(e)?"json":e==="text/event-stream"?"stream":QW.has(e)||e.startsWith("text/")?"text":"blob"}function IW(t,e,n,r){const A=UW(e?.headers??t?.headers,n?.headers,r);let i;return(n?.query||n?.params||e?.params||e?.query)&&(i={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:i,params:i,headers:A}}function UW(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[A,i]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(A,i);return r}async function Jd(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const _W=new Set([408,409,425,429,500,502,503,504]),DW=new Set([101,204,205,304]);function XE(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function A(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let d;typeof a.options.retry=="number"?d=a.options.retry:d=qE(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):_W.has(h))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(m=>setTimeout(m,p)),i(a.request,{...a.options,retry:d-1})}}const u=SW(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const d={request:l,options:IW(l,u,t.defaults,n),response:void 0,error:void 0};if(d.options.method&&(d.options.method=d.options.method.toUpperCase()),d.options.onRequest&&(await Jd(d,d.options.onRequest),d.options.headers instanceof n||(d.options.headers=new n(d.options.headers||{}))),typeof d.request=="string"&&(d.options.baseURL&&(d.request=vW(d.request,d.options.baseURL)),d.options.query&&(d.request=wW(d.request,d.options.query),delete d.options.query),"query"in d.options&&delete d.options.query,"params"in d.options&&delete d.options.params),d.options.body&&qE(d.options.method))if(FW(d.options.body)){const m=d.options.headers.get("content-type");typeof d.options.body!="string"&&(d.options.body=m==="application/x-www-form-urlencoded"?new URLSearchParams(d.options.body).toString():JSON.stringify(d.options.body)),m||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")}else("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"));let h;if(!d.options.signal&&d.options.timeout){const m=new r;h=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,m.abort(v)},d.options.timeout),d.options.signal=m.signal}try{d.response=await e(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await Jd(d,d.options.onRequestError),await A(d)}finally{h&&clearTimeout(h)}if((d.response.body||d.response._bodyInit)&&!DW.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||MW(d.response.headers.get("content-type")||"");switch(m){case"json":{const v=await d.response.text(),B=d.options.parseResponse||J5;d.response._data=B(v);break}case"stream":{d.response._data=d.response.body||d.response._bodyInit;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await Jd(d,d.options.onResponse),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await Jd(d,d.options.onResponseError),await A(d)):d.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={},l={})=>XE({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),o}const jd=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),OW=jd.fetch?(...t)=>jd.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),NW=jd.Headers,LW=jd.AbortController,RW=XE({fetch:OW,Headers:NW,AbortController:LW});function JE(t=null,e){const n=s.ref(!1),r=s.ref([]),A=s.ref([]),i=s.ref(!1),o=s.ref(!1),a=s.computed(()=>t.modelValue?.length?t.modelValue:t.src?[{type:"",src:t.src}]:A.value);async function l(B){const y=new FormData;y.append("file",B),n.value=!0;const C=await(t.customFetch||RW)(t.endpoint,{method:"POST",...t.customFetch?{}:{headers:{Accept:"application/json",...t.authToken?{Authorization:`Bearer ${t.authToken}`}:{}}},body:y}).catch(Q=>{console.error("Error",Q)});return n.value=!1,`${t.baseResponsePath||"/api/v1/assets"}/${C.path}`}function u(B){const y=typeof B=="string"?parseInt(B,10):B,w=Array.isArray(t.modelValue)&&t.modelValue.length>0,C=Array.isArray(A.value)&&A.value.length>0;if(C&&y<A.value.length&&A.value.splice(y,1),w){const S=[...t.modelValue];y<S.length&&S.splice(y,1),e?.("update:modelValue",S),t.multiple||e?.("update:src",S[0]?.src||"")}else if(C){const S=t.multiple?A.value:A.value[0];e?.("update:modelValue",S),t.multiple||e?.("update:src",A.value[0]?.src||"")}else e?.("update:modelValue",t.multiple?[]:void 0),e?.("update:src","");r.value.splice(y,1),i.value=!1}function d(B){B.preventDefault(),o.value=!0}function h(B){B.preventDefault(),o.value=!1}function p(B){B.preventDefault(),o.value=!1;const y=B.dataTransfer,w=y&&Array.from(y.files||[]);r.value=w||[]}function m(){t.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.addEventListener(B,d,!1)}),["dragleave","drop"].forEach(B=>{document.body.addEventListener(B,h,!1)}),document.body.addEventListener("drop",p,!1))}function v(){t.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.removeEventListener(B,d,!1)}),["dragleave","drop"].forEach(B=>{document.body.removeEventListener(B,h,!1)}),document.body.removeEventListener("drop",p,!1))}return s.onMounted(()=>{m()}),s.onBeforeUnmount(()=>{v()}),{pending:n,files:r,dataUrls:A,imgLoaded:i,isDragging:o,thumbnails:a,uploadFile:l,removeFile:u,dragStart:d,dragStop:h,dragDrop:p,setupDragAndDrop:m,cleanupDragAndDrop:v}}const HW=["src"],PW=["onClick"],$W=["onClick"],KW=["for"],zW=["innerHTML"],WW={key:0,class:"file-upload__loading-spinner"},GW=s.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/api/v1/assets"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0},dropFiles:{type:Boolean,default:!1}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const n=t,r=e,{pending:A,files:i,dataUrls:o,isDragging:a,thumbnails:l,uploadFile:u,removeFile:d}=JE(n,r);return s.watch(()=>i.value,async h=>{o.value=await Promise.all(h.map(async p=>({src:n.toDataUrl?await Xc(p):await u(p),type:p.type})))},{deep:!0}),s.watch(()=>o.value,async h=>{const p=n.multiple?h:h[0];r("update:modelValue",p),n.multiple||r("update:src",h[0]&&h[0].src)},{deep:!0}),(h,p)=>{const m=s.resolveComponent("svg-icon"),v=s.resolveComponent("input-file");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["file-upload",{"has-dragging":t.dropFiles,"is-dragging":s.unref(a)}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(l),(B,y)=>(s.openBlock(),s.createElementBlock("div",{key:B.src,class:s.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("img",{src:`${B.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,HW),s.createElementVNode("button",{onClick:s.withModifiers(w=>s.unref(d)(y),["prevent"]),class:"btn btn--close"},[s.createVNode(m,{symbol:"x"})],8,PW)],64)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:s.withModifiers(w=>s.unref(d)(y),["prevent"]),class:"btn btn--close btn-outline-contrast"},[s.createVNode(m,{symbol:"x"})],8,$W))],2))),128)),s.createVNode(v,{modelValue:s.unref(i),"onUpdate:modelValue":p[0]||(p[0]=B=>s.isRef(i)?i.value=B:null),id:t.id,name:t.name,accept:t.accept,"max-file-size":t.maxFileSize,class:"d-none"},null,8,["modelValue","id","name","accept","max-file-size"]),s.createElementVNode("label",{for:t.id,class:"file-upload__label"},[s.renderSlot(h.$slots,"button",{},()=>[s.createElementVNode("span",{class:"btn btn-outline-contrast",innerHTML:t.label||h.$t("common.selectFile")},null,8,zW)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[s.unref(A)?(s.openBlock(),s.createElementBlock("span",WW,[...p[1]||(p[1]=[s.createElementVNode("span",{class:"spinner-border",role:"status"},[s.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)])])):s.createCommentVNode("",!0)]),_:1})],8,KW)],2)}}}),YW={class:"upload-group"},qW=["innerHTML"],XW={class:"upload-group__list"},JW={class:"img-container"},jW=["src"],ZW=["onClick"],VW={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},e8={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},jE=s.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/api/v1/assets"},previewWidth:{type:Number,default:0},useImageUpload:{type:Boolean,default:!1},maxImageWidth:{type:Number,default:0},aspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(""),i=s.computed({get(){return n.modelValue},set(a){r("update:modelValue",a)}});function o(a){i.value.splice(a,1),r("update:modelValue",i.value)}return s.watch(A,async(a,l)=>{a&&l!==a&&(r("update:modelValue",[...i.value,a]),await s.nextTick(),A.value="")}),(a,l)=>{const u=s.resolveComponent("svg-icon"),d=s.resolveComponent("image-upload"),h=s.resolveComponent("file-upload"),p=s.resolveComponent("sortable-list");return s.openBlock(),s.createElementBlock("div",YW,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:s.unref(Ur)(t.label)},null,8,qW)):s.createCommentVNode("",!0),s.createElementVNode("div",XW,[s.createVNode(p,{modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=m=>i.value=m),vertical:!1,class:"mb-3"},{"list-item":s.withCtx(({item:m,index:v})=>[s.createElementVNode("div",JW,[s.createElementVNode("img",{src:`${m}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,jW),s.createElementVNode("button",{onClick:s.withModifiers(B=>o(v),["prevent"]),class:"btn btn--close"},[s.createVNode(u,{symbol:"x"})],8,ZW)])]),"list-append":s.withCtx(()=>[t.useImageUpload?(s.openBlock(),s.createBlock(d,{key:0,src:A.value,"onUpdate:src":l[0]||(l[0]=m=>A.value=m),endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize,"max-image-width":t.maxImageWidth,"enable-preview":!1,"aspect-ratio":t.aspectRatio},{button:s.withCtx(()=>[s.createElementVNode("span",VW,[s.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path","accept","max-file-size","max-image-width","aspect-ratio"])):(s.openBlock(),s.createBlock(h,{key:1,src:A.value,"onUpdate:src":l[1]||(l[1]=m=>A.value=m),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize,"max-image-width":t.maxImageWidth},{button:s.withCtx(()=>[s.createElementVNode("span",e8,[s.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path","accept","max-file-size","max-image-width"]))]),_:1},8,["modelValue"])])])}}}),t8={class:"asset-uploader"},n8=["innerHTML"],r8=s.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/api/v1/assets"},previewWidth:{type:Number,default:0},useImageUpload:{type:Boolean,default:!1},maxImageWidth:{type:Number,default:0},aspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue.map(i=>i.src)},set(i){r("update:modelValue",i.map((o,a)=>({mediaType:n.modelValue[a]&&n.modelValue[a].mediaType||o.includes("data:image")?o.includes("data:image/svg")?"Svg":"Image":n.mediaTypeMap[o.split(".")[1]],src:o,name:n.modelValue[a]&&n.modelValue[a].name||`${n.name}-${a}`,...n.type?{type:n.type}:{}})))}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",t8,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:s.unref(Ur)(t.label)},null,8,n8)):s.createCommentVNode("",!0),s.createVNode(jE,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize,"use-image-upload":t.useImageUpload,"max-image-width":t.maxImageWidth,"aspect-ratio":t.aspectRatio},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path","accept","max-file-size","use-image-upload","max-image-width","aspect-ratio"])]))}}),A8={class:"carousel d-flex"},i8=["onClick"],ZE=s.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,r=s.ref(),A=s.ref();function i(){r.value.scrollTo({top:0,left:r.value.scrollLeft-r.value.clientWidth>0?r.value.scrollLeft-r.value.clientWidth:0,behavior:"smooth"})}function o(){r.value.scrollTo({top:0,left:r.value.scrollLeft-r.value.clientWidth<=A.value.clientWidth?r.value.scrollLeft+r.value.clientWidth:A.value.clientWidth,behavior:"smooth"})}function a(l){n("update:modelValue",l)}return(l,u)=>{const d=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",A8,[t.navigation?(s.openBlock(),s.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(i,["prevent","stop"])},[s.createVNode(d,{symbol:"chevron-left"})])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"viewport",ref:r,class:"carousel__viewport flex-grow-1"},[s.createElementVNode("div",{ref_key:"track",ref:A,class:"carousel__track d-flex justify-center align-items-center"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(h,p)=>s.renderSlot(l.$slots,"carousel-item",{key:h.src,item:h,index:p},()=>[s.createElementVNode("div",{class:s.normalizeClass(["carousel__item",p===t.modelValue?"selected":""]),onClick:m=>a(p)},s.toDisplayString(h),11,i8)])),128))],512)],512),t.navigation?(s.openBlock(),s.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(d,{symbol:"chevron-right"})])):s.createCommentVNode("",!0)])}}}),o8={class:"media-thumbnails"},s8=["onClick"],a8={class:"img-container"},l8=s.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,r=s.ref(-1);function A(i){r.value=i,n("update:modelValue",i),n("select",i)}return(i,o)=>{const a=s.resolveComponent("base-image");return s.openBlock(),s.createElementBlock("div",o8,[s.createVNode(ZE,{items:t.assets},{"carousel-item":s.withCtx(l=>[s.createElementVNode("a",{role:"button",class:s.normalizeClass(["carousel__item media-thumbnails__thumbnail",l.index===t.modelValue||l.index===r.value?"is-active":""]),onClick:u=>A(l.index)},[s.createElementVNode("div",a8,[s.createVNode(a,{src:l.item.thumbnail||l.item.src,class:"img-fluid"},null,8,["src"])])],10,s8)]),_:1},8,["items"])])}}}),c8={class:"progress-steps"},u8={class:"progress-steps__list"},d8={class:"progress-step"},f8=["checked","id","value","disabled","read-only","required","onChange"],h8=["for"],p8=["innerHTML"],m8=["for"],g8=["innerHTML"],v8=s.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:e}){const n=t,r=e;function A(i){r("update:modelValue",i),i>=n.progress&&r("update:progress",i)}return(i,o)=>(s.openBlock(),s.createElementBlock("div",c8,[s.createElementVNode("ul",u8,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.steps,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l,class:s.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":l>t.progress+(t.reveal?1:0),"progress-steps__step--active":l===(t.modelValue||0)}])},[s.renderSlot(i.$slots,"step",{},()=>[s.createElementVNode("div",d8,[s.createElementVNode("input",{type:"radio",checked:l<=(t.progress||0),id:`step-${l}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||l>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>A(l)},null,40,f8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(i.$slots,"button",{step:a},()=>[s.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.unref(Ur)(a.text||"")},null,8,p8)])],8,h8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(i.$slots,"label",{step:a},()=>[s.createElementVNode("span",{class:"form-check-label",innerHTML:s.unref(Ur)(a.label||"")},null,8,g8)])],8,m8)])])],2))),128))])]))}}),w8=["id","popover"],Lg=s.defineComponent({__name:"popover-dialog",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"auto"},id:{type:String,default:()=>`popover-dialog-${Math.random().toString(36).substr(2,9)}`},title:{type:String,default:""},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},classes:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},closeTimeout:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(),o=s.ref(!1),a=s.computed(()=>"ontouchstart"in window||navigator.maxTouchPoints>0);function l(){clearTimeout(i.value),n.hover&&A.value?.showPopover()}function u(){o.value=!0,clearTimeout(i.value),l()}function d(){o.value=!1,(n.hover||n.closeTimeout)&&(i.value=setTimeout(()=>{A.value?.hidePopover()},n.closeTimeout||n.hoverDelay))}s.watch(()=>n.modelValue,(p,m)=>{p&&!m?A.value?.matches(":popover-open")||A.value?.showPopover():!p&&m&&A.value?.matches(":popover-open")&&A.value?.hidePopover()});function h(p){p.newState==="open"?(n.closeTimeout&&!o.value&&(clearTimeout(i.value),i.value=setTimeout(()=>{o.value||A.value?.hidePopover()},n.closeTimeout)),n.modelValue||r("update:modelValue",!0)):p.newState==="closed"&&(o.value=!1,n.modelValue&&r("update:modelValue",!1))}return s.onMounted(()=>{if(A.value?.addEventListener("toggle",h),n.modelValue&&A.value?.showPopover(),!a.value){A.value?.addEventListener("mouseenter",u),A.value?.addEventListener("mouseleave",d);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.addEventListener("mouseenter",u),p.addEventListener("mouseleave",d))}}),s.onBeforeUnmount(()=>{if(clearTimeout(i.value),A.value?.removeEventListener("toggle",h),!a.value){A.value?.removeEventListener("mouseenter",u),A.value?.removeEventListener("mouseleave",d);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.removeEventListener("mouseenter",u),p.removeEventListener("mouseleave",d))}}),(p,m)=>(s.openBlock(),s.createElementBlock("span",{class:"popover-dialog",id:t.id,popover:t.type,ref_key:"popover",ref:A},[s.renderSlot(p.$slots,"default",{},()=>[m[0]||(m[0]=s.createTextVNode(" Popover content goes here. ",-1))])],8,w8))}}),B8={class:"popover-tooltip"},y8=["popovertarget","disabled","aria-describedby","aria-label"],C8={class:"popover-tooltip__content d-flex flex-column"},b8={key:0,class:"popover-tooltip__header d-flex p-3 border-bottom"},E8=["innerHTML"],k8={class:"popover-tooltip__body"},S8=["innerHTML"],x8={key:1,class:"popover-tooltip__footer d-flex p-3 border-top"},F8=s.defineComponent({__name:"popover-tooltip",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-tooltip-${Math.random().toString(36).substr(2,9)}`},size:{type:String},exclusive:{type:Boolean,default:!0},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},hover:{type:Boolean,default:!0},hoverDelay:{type:Number,default:400},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:e}){const n=t,r=e,A=qc(()=>n.title),i=qc(()=>n.content),o=s.computed({get(){return n.modelValue},set(u){r("update:modelValue",u)}}),a=s.ref(),l=s.ref();return(u,d)=>(s.openBlock(),s.createElementBlock("span",B8,[s.createElementVNode("button",{type:"button",popovertarget:t.id,disabled:t.disabled,"aria-describedby":t.id,"aria-label":t.ariaLabel||u.$te("common.moreInfo")?u.$t("common.moreInfo"):void 0,ref_key:"trigger",ref:a},[s.renderSlot(u.$slots,"button",{},()=>[d[3]||(d[3]=s.createElementVNode("span",{class:"popover-tooltip__trigger"}," i ",-1))])],8,y8),s.createVNode(Lg,{id:t.id,modelValue:o.value,"onUpdate:modelValue":d[2]||(d[2]=h=>o.value=h),hover:t.hover,"hover-delay":t.hoverDelay,ref_key:"dialog",ref:l,role:"tooltip",class:s.normalizeClass(t.size?`popover-tooltip--${t.size}`:"")},{default:s.withCtx(()=>[s.createElementVNode("div",C8,[t.header?(s.openBlock(),s.createElementBlock("div",b8,[t.title?(s.openBlock(),s.createElementBlock("h5",{key:0,class:"popover-tooltip__title",innerHTML:s.unref(A)},null,8,E8)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:d[0]||(d[0]=h=>o.value=!1)})])):s.createCommentVNode("",!0),s.createElementVNode("div",k8,[s.renderSlot(u.$slots,"default",{},()=>[s.createElementVNode("span",{innerHTML:s.unref(i)},null,8,S8)])]),t.footer?(s.openBlock(),s.createElementBlock("div",x8,[s.renderSlot(u.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:d[1]||(d[1]=h=>o.value=!1)},s.toDisplayString(u.$t("common.close")),1)])):s.createCommentVNode("",!0)])]),_:3},8,["id","modelValue","hover","hover-delay","class"])]))}}),Q8={class:"popover-notification__header d-flex justify-content-between mb-2"},T8={class:"popover-notification__title"},M8=["onClick"],I8=["innerHTML"],U8=s.defineComponent({__name:"popover-notifications",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-notifications-${Math.random().toString(36).substr(2,9)}`},items:{type:Array,default:()=>[]},debounceItem:{type:Number,default:0},closeTimeout:{type:Number,default:8e3},collapsible:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=t,r=s.ref([]),A=s.ref([]),i=s.computed(()=>r.value.map(p=>({...p,content:Ur(p.content||"")}))),o=s.ref(!1),a=s.computed(()=>n.collapsible&&r.value.length>3);function l(p,m){r.value=r.value.filter(v=>v.id!==p.id)}s.watch(()=>n.items,(p,m)=>{const v=p.filter(B=>!m.some(y=>y.id===B.id));A.value=[...A.value,...v]});function u(){setTimeout(()=>{console.log("Queueing item:",A.value);const p=A.value.shift();p&&r.value.push({...p,closeTimeout:n.closeTimeout,visible:!0}),A.value.length>0&&u()},r.value.length?n.debounceItem:0)}function d(p){a.value&&(p.preventDefault(),p.stopPropagation(),o.value=!o.value)}function h(p){console.log("Adding item:",p),A.value.push(p),u()}return s.onMounted(()=>{A.value=n.items,A.value.length>3&&(o.value=!0),u()}),e({addItem:h}),(p,m)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["popover-notifications",{"popover-notifications--collapsed":o.value}]),style:{anchorName:"--popover-notifications"}},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(v,B)=>(s.openBlock(),s.createBlock(Lg,{key:v.id,id:v.id,"close-timeout":v.closeTimeout,type:"manual",class:"popover-notification",modelValue:v.visible,"onUpdate:modelValue":[y=>v.visible=y,y=>l(v)],onClick:d},{default:s.withCtx(()=>[s.renderSlot(p.$slots,"item",{item:v},()=>[s.createElementVNode("div",Q8,[s.createElementVNode("span",T8,s.toDisplayString(v.title),1),s.createElementVNode("button",{type:"button",class:"btn btn-close p-0",onClick:s.withModifiers(y=>v.visible=!1,["stop"]),"aria-label":"Close notification"},null,8,M8)]),s.createElementVNode("span",{innerHTML:v.content},null,8,I8)])]),_:2},1032,["id","close-timeout","modelValue","onUpdate:modelValue"]))),128))],2))}});var Rg=function(t,e){return Rg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var A in r)Object.prototype.hasOwnProperty.call(r,A)&&(n[A]=r[A])},Rg(t,e)};function UA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Rg(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Hg=function(){return Hg=Object.assign||function(e){for(var n,r=1,A=arguments.length;r<A;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hg.apply(this,arguments)};function vr(t,e,n,r){function A(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function l(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):A(d.value).then(a,l)}u((r=r.apply(t,[])).next())})}function rr(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,A,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,A&&(i=u[0]&2?A.return:u[0]?A.throw||((i=A.return)&&i.call(A),0):A.next)&&!(i=i.call(A,u[1])).done)return i;switch(A=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,A=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],A=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Zd(t,e,n){if(arguments.length===2)for(var r=0,A=e.length,i;r<A;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}for(var Ni=(function(){function t(e,n,r,A){this.left=e,this.top=n,this.width=r,this.height=A}return t.prototype.add=function(e,n,r,A){return new t(this.left+e,this.top+n,this.width+r,this.height+A)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find(function(A){return A.width!==0});return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t})(),Vd=function(t,e){return Ni.fromClientRect(t,e.getBoundingClientRect())},_8=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),A=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new Ni(0,0,r,A)},ef=function(t){for(var e=[],n=0,r=t.length;n<r;){var A=t.charCodeAt(n++);if(A>=55296&&A<=56319&&n<r){var i=t.charCodeAt(n++);(i&64512)===56320?e.push(((A&1023)<<10)+(i&1023)+65536):(e.push(A),n--)}else e.push(A)}return e},pn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],A=-1,i="";++A<n;){var o=t[A];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},VE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D8=typeof Uint8Array>"u"?[]:new Uint8Array(256),tf=0;tf<VE.length;tf++)D8[VE.charCodeAt(tf)]=tf;for(var ek="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256),nf=0;nf<ek.length;nf++)ic[ek.charCodeAt(nf)]=nf;for(var O8=function(t){var e=t.length*.75,n=t.length,r,A=0,i,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(u)?u:new Uint8Array(u);for(r=0;r<n;r+=4)i=ic[t.charCodeAt(r)],o=ic[t.charCodeAt(r+1)],a=ic[t.charCodeAt(r+2)],l=ic[t.charCodeAt(r+3)],d[A++]=i<<2|o>>4,d[A++]=(o&15)<<4|a>>2,d[A++]=(a&3)<<6|l&63;return u},N8=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},L8=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},xs=5,Pg=11,$g=2,R8=Pg-xs,tk=65536>>xs,H8=1<<xs,Kg=H8-1,P8=1024>>xs,$8=tk+P8,K8=$8,z8=32,W8=K8+z8,G8=65536>>Pg,Y8=1<<R8,q8=Y8-1,nk=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},X8=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},J8=function(t,e){var n=O8(t),r=Array.isArray(n)?L8(n):new Uint32Array(n),A=Array.isArray(n)?N8(n):new Uint16Array(n),i=24,o=nk(A,i/2,r[4]/2),a=r[5]===2?nk(A,(i+r[4])/2):X8(r,Math.ceil((i+r[4])/4));return new j8(r[0],r[1],r[2],r[3],o,a)},j8=(function(){function t(e,n,r,A,i,o){this.initialValue=e,this.errorValue=n,this.highStart=r,this.highValueIndex=A,this.index=i,this.data=o}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>xs],n=(n<<$g)+(e&Kg),this.data[n];if(e<=65535)return n=this.index[tk+(e-55296>>xs)],n=(n<<$g)+(e&Kg),this.data[n];if(e<this.highStart)return n=W8-G8+(e>>Pg),n=this.index[n],n+=e>>xs&q8,n=this.index[n],n=(n<<$g)+(e&Kg),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),rk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z8=typeof Uint8Array>"u"?[]:new Uint8Array(256),rf=0;rf<rk.length;rf++)Z8[rk.charCodeAt(rf)]=rf;var V8="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ak=50,e6=1,ik=2,ok=3,t6=4,n6=5,sk=7,ak=8,lk=9,To=10,zg=11,ck=12,Wg=13,r6=14,oc=15,Gg=16,Af=17,sc=18,A6=19,uk=20,Yg=21,ac=22,qg=23,ba=24,Hr=25,lc=26,cc=27,Ea=28,i6=29,Fs=30,o6=31,of=32,sf=33,Xg=34,Jg=35,jg=36,uc=37,Zg=38,af=39,lf=40,Vg=41,dk=42,s6=43,a6=[9001,65288],fk="!",vt="×",cf="÷",ev=J8(V8),Li=[Fs,jg],tv=[e6,ik,ok,n6],hk=[To,ak],pk=[cc,lc],l6=tv.concat(hk),mk=[Zg,af,lf,Xg,Jg],c6=[oc,Wg],u6=function(t,e){e===void 0&&(e="strict");var n=[],r=[],A=[];return t.forEach(function(i,o){var a=ev.get(i);if(a>Ak?(A.push(!0),a-=Ak):A.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(o),n.push(Gg);if(a===t6||a===zg){if(o===0)return r.push(o),n.push(Fs);var l=n[o-1];return l6.indexOf(l)===-1?(r.push(r[o-1]),n.push(l)):(r.push(o),n.push(Fs))}if(r.push(o),a===o6)return n.push(e==="strict"?Yg:uc);if(a===dk||a===i6)return n.push(Fs);if(a===s6)return i>=131072&&i<=196605||i>=196608&&i<=262141?n.push(uc):n.push(Fs);n.push(a)}),[r,n,A]},nv=function(t,e,n,r){var A=r[n];if(Array.isArray(t)?t.indexOf(A)!==-1:t===A)for(var i=n;i<=r.length;){i++;var o=r[i];if(o===e)return!0;if(o!==To)break}if(A===To)for(var i=n;i>0;){i--;var a=r[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var l=n;l<=r.length;){l++;var o=r[l];if(o===e)return!0;if(o!==To)break}if(a!==To)break}return!1},gk=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r===To)n--;else return r}return 0},d6=function(t,e,n,r,A){if(n[r]===0)return vt;var i=r-1;if(Array.isArray(A)&&A[i]===!0)return vt;var o=i-1,a=i+1,l=e[i],u=o>=0?e[o]:0,d=e[a];if(l===ik&&d===ok)return vt;if(tv.indexOf(l)!==-1)return fk;if(tv.indexOf(d)!==-1||hk.indexOf(d)!==-1)return vt;if(gk(i,e)===ak)return cf;if(ev.get(t[i])===zg||(l===of||l===sf)&&ev.get(t[a])===zg||l===sk||d===sk||l===lk||[To,Wg,oc].indexOf(l)===-1&&d===lk||[Af,sc,A6,ba,Ea].indexOf(d)!==-1||gk(i,e)===ac||nv(qg,ac,i,e)||nv([Af,sc],Yg,i,e)||nv(ck,ck,i,e))return vt;if(l===To)return cf;if(l===qg||d===qg)return vt;if(d===Gg||l===Gg)return cf;if([Wg,oc,Yg].indexOf(d)!==-1||l===r6||u===jg&&c6.indexOf(l)!==-1||l===Ea&&d===jg||d===uk||Li.indexOf(d)!==-1&&l===Hr||Li.indexOf(l)!==-1&&d===Hr||l===cc&&[uc,of,sf].indexOf(d)!==-1||[uc,of,sf].indexOf(l)!==-1&&d===lc||Li.indexOf(l)!==-1&&pk.indexOf(d)!==-1||pk.indexOf(l)!==-1&&Li.indexOf(d)!==-1||[cc,lc].indexOf(l)!==-1&&(d===Hr||[ac,oc].indexOf(d)!==-1&&e[a+1]===Hr)||[ac,oc].indexOf(l)!==-1&&d===Hr||l===Hr&&[Hr,Ea,ba].indexOf(d)!==-1)return vt;if([Hr,Ea,ba,Af,sc].indexOf(d)!==-1)for(var h=i;h>=0;){var p=e[h];if(p===Hr)return vt;if([Ea,ba].indexOf(p)!==-1)h--;else break}if([cc,lc].indexOf(d)!==-1)for(var h=[Af,sc].indexOf(l)!==-1?o:i;h>=0;){var p=e[h];if(p===Hr)return vt;if([Ea,ba].indexOf(p)!==-1)h--;else break}if(Zg===l&&[Zg,af,Xg,Jg].indexOf(d)!==-1||[af,Xg].indexOf(l)!==-1&&[af,lf].indexOf(d)!==-1||[lf,Jg].indexOf(l)!==-1&&d===lf||mk.indexOf(l)!==-1&&[uk,lc].indexOf(d)!==-1||mk.indexOf(d)!==-1&&l===cc||Li.indexOf(l)!==-1&&Li.indexOf(d)!==-1||l===ba&&Li.indexOf(d)!==-1||Li.concat(Hr).indexOf(l)!==-1&&d===ac&&a6.indexOf(t[a])===-1||Li.concat(Hr).indexOf(d)!==-1&&l===sc)return vt;if(l===Vg&&d===Vg){for(var m=n[i],v=1;m>0&&(m--,e[m]===Vg);)v++;if(v%2!==0)return vt}return l===of&&d===sf?vt:cf},f6=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=u6(t,e.lineBreak),r=n[0],A=n[1],i=n[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(A=A.map(function(a){return[Hr,Fs,dk].indexOf(a)!==-1?uc:a}));var o=e.wordBreak==="keep-all"?i.map(function(a,l){return a&&t[l]>=19968&&t[l]<=40959}):void 0;return[r,A,o]},h6=(function(){function t(e,n,r,A){this.codePoints=e,this.required=n===fk,this.start=r,this.end=A}return t.prototype.slice=function(){return pn.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),p6=function(t,e){var n=ef(t),r=f6(n,e),A=r[0],i=r[1],o=r[2],a=n.length,l=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var d=vt;u<a&&(d=d6(n,i,A,++u,o))===vt;);if(d!==vt||u===a){var h=new h6(n,d,l,u);return l=u,{value:h,done:!1}}return{done:!0,value:null}}}},m6=1,g6=2,dc=4,vk=8,uf=10,wk=47,fc=92,v6=9,w6=32,df=34,hc=61,B6=35,y6=36,C6=37,ff=39,hf=40,pc=41,b6=95,Sr=45,E6=33,k6=60,S6=62,x6=64,F6=91,Q6=93,T6=61,M6=123,pf=63,I6=125,Bk=124,U6=126,_6=128,yk=65533,rv=42,Qs=43,D6=44,O6=58,N6=59,mc=46,L6=0,R6=8,H6=11,P6=14,$6=31,K6=127,li=-1,Ck=48,bk=97,Ek=101,z6=102,W6=117,G6=122,kk=65,Sk=69,xk=70,Y6=85,q6=90,Ar=function(t){return t>=Ck&&t<=57},X6=function(t){return t>=55296&&t<=57343},ka=function(t){return Ar(t)||t>=kk&&t<=xk||t>=bk&&t<=z6},J6=function(t){return t>=bk&&t<=G6},j6=function(t){return t>=kk&&t<=q6},Z6=function(t){return J6(t)||j6(t)},V6=function(t){return t>=_6},mf=function(t){return t===uf||t===v6||t===w6},gf=function(t){return Z6(t)||V6(t)||t===b6},Fk=function(t){return gf(t)||Ar(t)||t===Sr},eG=function(t){return t>=L6&&t<=R6||t===H6||t>=P6&&t<=$6||t===K6},Mo=function(t,e){return t!==fc?!1:e!==uf},vf=function(t,e,n){return t===Sr?gf(e)||Mo(e,n):gf(t)?!0:!!(t===fc&&Mo(t,e))},Av=function(t,e,n){return t===Qs||t===Sr?Ar(e)?!0:e===mc&&Ar(n):Ar(t===mc?e:t)},tG=function(t){var e=0,n=1;(t[e]===Qs||t[e]===Sr)&&(t[e]===Sr&&(n=-1),e++);for(var r=[];Ar(t[e]);)r.push(t[e++]);var A=r.length?parseInt(pn.apply(void 0,r),10):0;t[e]===mc&&e++;for(var i=[];Ar(t[e]);)i.push(t[e++]);var o=i.length,a=o?parseInt(pn.apply(void 0,i),10):0;(t[e]===Sk||t[e]===Ek)&&e++;var l=1;(t[e]===Qs||t[e]===Sr)&&(t[e]===Sr&&(l=-1),e++);for(var u=[];Ar(t[e]);)u.push(t[e++]);var d=u.length?parseInt(pn.apply(void 0,u),10):0;return n*(A+a*Math.pow(10,-o))*Math.pow(10,l*d)},nG={type:2},rG={type:3},AG={type:4},iG={type:13},oG={type:8},sG={type:21},aG={type:9},lG={type:10},cG={type:11},uG={type:12},dG={type:14},wf={type:23},fG={type:1},hG={type:25},pG={type:24},mG={type:26},gG={type:27},vG={type:28},wG={type:29},BG={type:31},iv={type:32},Qk=(function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(ef(e))},t.prototype.read=function(){for(var e=[],n=this.consumeToken();n!==iv;)e.push(n),n=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case df:return this.consumeStringToken(df);case B6:var n=this.peekCodePoint(0),r=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Fk(n)||Mo(r,A)){var i=vf(n,r,A)?g6:m6,o=this.consumeName();return{type:5,value:o,flags:i}}break;case y6:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),iG;break;case ff:return this.consumeStringToken(ff);case hf:return nG;case pc:return rG;case rv:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),dG;break;case Qs:if(Av(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case D6:return AG;case Sr:var a=e,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Av(a,l,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(vf(a,l,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===Sr&&u===S6)return this.consumeCodePoint(),this.consumeCodePoint(),pG;break;case mc:if(Av(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case wk:if(this.peekCodePoint(0)===rv)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===rv&&(d=this.consumeCodePoint(),d===wk))return this.consumeToken();if(d===li)return this.consumeToken()}break;case O6:return mG;case N6:return gG;case k6:if(this.peekCodePoint(0)===E6&&this.peekCodePoint(1)===Sr&&this.peekCodePoint(2)===Sr)return this.consumeCodePoint(),this.consumeCodePoint(),hG;break;case x6:var h=this.peekCodePoint(0),p=this.peekCodePoint(1),m=this.peekCodePoint(2);if(vf(h,p,m)){var o=this.consumeName();return{type:7,value:o}}break;case F6:return vG;case fc:if(Mo(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Q6:return wG;case T6:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),oG;break;case M6:return cG;case I6:return uG;case W6:case Y6:var v=this.peekCodePoint(0),B=this.peekCodePoint(1);return v===Qs&&(ka(B)||B===pf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Bk:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),aG;if(this.peekCodePoint(0)===Bk)return this.consumeCodePoint(),sG;break;case U6:if(this.peekCodePoint(0)===hc)return this.consumeCodePoint(),lG;break;case li:return iv}return mf(e)?(this.consumeWhiteSpace(),BG):Ar(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):gf(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:pn(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],n=this.consumeCodePoint();ka(n)&&e.length<6;)e.push(n),n=this.consumeCodePoint();for(var r=!1;n===pf&&e.length<6;)e.push(n),n=this.consumeCodePoint(),r=!0;if(r){var A=parseInt(pn.apply(void 0,e.map(function(l){return l===pf?Ck:l})),16),i=parseInt(pn.apply(void 0,e.map(function(l){return l===pf?xk:l})),16);return{type:30,start:A,end:i}}var o=parseInt(pn.apply(void 0,e),16);if(this.peekCodePoint(0)===Sr&&ka(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var a=[];ka(n)&&a.length<6;)a.push(n),n=this.consumeCodePoint();var i=parseInt(pn.apply(void 0,a),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===hf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===hf?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===li)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===ff||n===df){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===li||this.peekCodePoint(0)===pc)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),wf)}for(;;){var A=this.consumeCodePoint();if(A===li||A===pc)return{type:22,value:pn.apply(void 0,e)};if(mf(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===li||this.peekCodePoint(0)===pc?(this.consumeCodePoint(),{type:22,value:pn.apply(void 0,e)}):(this.consumeBadUrlRemnants(),wf);if(A===df||A===ff||A===hf||eG(A))return this.consumeBadUrlRemnants(),wf;if(A===fc)if(Mo(A,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),wf;else e.push(A)}},t.prototype.consumeWhiteSpace=function(){for(;mf(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===pc||e===li)return;Mo(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var n=5e4,r="";e>0;){var A=Math.min(n,e);r+=pn.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),r},t.prototype.consumeStringToken=function(e){var n="",r=0;do{var A=this._value[r];if(A===li||A===void 0||A===e)return n+=this.consumeStringSlice(r),{type:0,value:n};if(A===uf)return this._value.splice(0,r),fG;if(A===fc){var i=this._value[r+1];i!==li&&i!==void 0&&(i===uf?(n+=this.consumeStringSlice(r),r=-1,this._value.shift()):Mo(A,i)&&(n+=this.consumeStringSlice(r),n+=pn(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var e=[],n=dc,r=this.peekCodePoint(0);for((r===Qs||r===Sr)&&e.push(this.consumeCodePoint());Ar(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(r===mc&&Ar(A))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=vk;Ar(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),A=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Sk||r===Ek)&&((A===Qs||A===Sr)&&Ar(i)||Ar(A)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=vk;Ar(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[tG(e),n]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),n=e[0],r=e[1],A=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(vf(A,i,o)){var a=this.consumeName();return{type:15,number:n,flags:r,unit:a}}return A===C6?(this.consumeCodePoint(),{type:16,number:n,flags:r}):{type:17,number:n,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ka(e)){for(var n=pn(e);ka(this.peekCodePoint(0))&&n.length<6;)n+=pn(this.consumeCodePoint());mf(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(n,16);return r===0||X6(r)||r>1114111?yk:r}return e===li?yk:e},t.prototype.consumeName=function(){for(var e="";;){var n=this.consumeCodePoint();if(Fk(n))e+=pn(n);else if(Mo(n,this.peekCodePoint(0)))e+=pn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),e}},t})(),Tk=(function(){function t(e){this._tokens=e}return t.create=function(e){var n=new Qk;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var n=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var n=this.consumeComponentValue();if(n.type===32)return e;e.push(n),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var n={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||CG(r,e))return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var n={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?iv:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t})(),gc=function(t){return t.type===15},Sa=function(t){return t.type===17},Rt=function(t){return t.type===20},yG=function(t){return t.type===0},ov=function(t,e){return Rt(t)&&t.value===e},Mk=function(t){return t.type!==31},xa=function(t){return t.type!==31&&t.type!==4},ci=function(t){var e=[],n=[];return t.forEach(function(r){if(r.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}r.type!==31&&n.push(r)}),n.length&&e.push(n),e},CG=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Io=function(t){return t.type===17||t.type===15},bn=function(t){return t.type===16||Io(t)},Ik=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Wn={type:17,number:0,flags:dc},sv={type:16,number:50,flags:dc},Uo={type:16,number:100,flags:dc},vc=function(t,e,n){var r=t[0],A=t[1];return[$t(r,e),$t(typeof A<"u"?A:r,n)]},$t=function(t,e){if(t.type===16)return t.number/100*e;if(gc(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Uk="deg",_k="grad",Dk="rad",Ok="turn",Bf={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Uk:return Math.PI*e.number/180;case _k:return Math.PI/200*e.number;case Dk:return e.number;case Ok:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Nk=function(t){return t.type===15&&(t.unit===Uk||t.unit===_k||t.unit===Dk||t.unit===Ok)},Lk=function(t){var e=t.filter(Rt).map(function(n){return n.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Wn,Wn];case"to top":case"bottom":return iA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Wn,Uo];case"to right":case"left":return iA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Uo,Uo];case"to bottom":case"top":return iA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Uo,Wn];case"to left":case"right":return iA(270)}return 0},iA=function(t){return Math.PI*t/180},_o={name:"color",parse:function(t,e){if(e.type===18){var n=bG[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3);return Oo(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return Oo(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6);return Oo(parseInt(r,16),parseInt(A,16),parseInt(i,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return Oo(parseInt(r,16),parseInt(A,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var a=Ri[e.value.toUpperCase()];if(typeof a<"u")return a}return Ri.TRANSPARENT}},Do=function(t){return(255&t)===0},Ln=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,A=255&t>>24;return e<255?"rgba("+A+","+r+","+n+","+e/255+")":"rgb("+A+","+r+","+n+")"},Oo=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(r*255)<<0)>>>0},Rk=function(t,e){if(t.type===17)return t.number;if(t.type===16){var n=e===3?1:255;return e===3?t.number/100*n:Math.round(t.number/100*n)}return 0},Hk=function(t,e){var n=e.filter(xa);if(n.length===3){var r=n.map(Rk),A=r[0],i=r[1],o=r[2];return Oo(A,i,o,1)}if(n.length===4){var a=n.map(Rk),A=a[0],i=a[1],o=a[2],l=a[3];return Oo(A,i,o,l)}return 0};function av(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<1/2?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var Pk=function(t,e){var n=e.filter(xa),r=n[0],A=n[1],i=n[2],o=n[3],a=(r.type===17?iA(r.number):Bf.parse(t,r))/(Math.PI*2),l=bn(A)?A.number/100:0,u=bn(i)?i.number/100:0,d=typeof o<"u"&&bn(o)?$t(o,1):1;if(l===0)return Oo(u*255,u*255,u*255,1);var h=u<=.5?u*(l+1):u+l-u*l,p=u*2-h,m=av(p,h,a+1/3),v=av(p,h,a),B=av(p,h,a-1/3);return Oo(m*255,v*255,B*255,d)},bG={hsl:Pk,hsla:Pk,rgb:Hk,rgba:Hk},wc=function(t,e){return _o.parse(t,Tk.create(e).parseComponentValue())},Ri={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},EG={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Rt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kG={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yf=function(t,e){var n=_o.parse(t,e[0]),r=e[1];return r&&bn(r)?{color:n,stop:r}:{color:n,stop:null}},$k=function(t,e){var n=t[0],r=t[t.length-1];n.stop===null&&(n.stop=Wn),r.stop===null&&(r.stop=Uo);for(var A=[],i=0,o=0;o<t.length;o++){var a=t[o].stop;if(a!==null){var l=$t(a,e);l>i?A.push(l):A.push(i),i=l}else A.push(null)}for(var u=null,o=0;o<A.length;o++){var d=A[o];if(d===null)u===null&&(u=o);else if(u!==null){for(var h=o-u,p=A[u-1],m=(d-p)/(h+1),v=1;v<=h;v++)A[u+v-1]=m*v;u=null}}return t.map(function(B,y){var w=B.color;return{color:w,stop:Math.max(Math.min(1,A[y]/e),0)}})},SG=function(t,e,n){var r=e/2,A=n/2,i=$t(t[0],e)-r,o=A-$t(t[1],n);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},xG=function(t,e,n){var r=typeof t=="number"?t:SG(t,e,n),A=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),i=e/2,o=n/2,a=A/2,l=Math.sin(r-Math.PI/2)*a,u=Math.cos(r-Math.PI/2)*a;return[A,i-u,i+u,o-l,o+l]},_A=function(t,e){return Math.sqrt(t*t+e*e)},Kk=function(t,e,n,r,A){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(o,a){var l=a[0],u=a[1],d=_A(n-l,r-u);return(A?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:a,optimumDistance:d}:o},{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},FG=function(t,e,n,r,A){var i=0,o=0;switch(t.size){case 0:t.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-A)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-A)));break;case 2:if(t.shape===0)i=o=Math.min(_A(e,n),_A(e,n-A),_A(e-r,n),_A(e-r,n-A));else if(t.shape===1){var a=Math.min(Math.abs(n),Math.abs(n-A))/Math.min(Math.abs(e),Math.abs(e-r)),l=Kk(r,A,e,n,!0),u=l[0],d=l[1];i=_A(u-e,(d-n)/a),o=a*i}break;case 1:t.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-A)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-A)));break;case 3:if(t.shape===0)i=o=Math.max(_A(e,n),_A(e,n-A),_A(e-r,n),_A(e-r,n-A));else if(t.shape===1){var a=Math.max(Math.abs(n),Math.abs(n-A))/Math.max(Math.abs(e),Math.abs(e-r)),h=Kk(r,A,e,n,!1),u=h[0],d=h[1];i=_A(u-e,(d-n)/a),o=a*i}break}return Array.isArray(t.size)&&(i=$t(t.size[0],r),o=t.size.length===2?$t(t.size[1],A):i),[i,o]},QG=function(t,e){var n=iA(180),r=[];return ci(e).forEach(function(A,i){if(i===0){var o=A[0];if(o.type===20&&o.value==="to"){n=Lk(A);return}else if(Nk(o)){n=Bf.parse(t,o);return}}var a=yf(t,A);r.push(a)}),{angle:n,stops:r,type:1}},Cf=function(t,e){var n=iA(180),r=[];return ci(e).forEach(function(A,i){if(i===0){var o=A[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){n=Lk(A);return}else if(Nk(o)){n=(Bf.parse(t,o)+iA(270))%iA(360);return}}var a=yf(t,A);r.push(a)}),{angle:n,stops:r,type:1}},TG=function(t,e){var n=iA(180),r=[],A=1,i=0,o=3,a=[];return ci(e).forEach(function(l,u){var d=l[0];if(u===0){if(Rt(d)&&d.value==="linear"){A=1;return}else if(Rt(d)&&d.value==="radial"){A=2;return}}if(d.type===18){if(d.name==="from"){var h=_o.parse(t,d.values[0]);r.push({stop:Wn,color:h})}else if(d.name==="to"){var h=_o.parse(t,d.values[0]);r.push({stop:Uo,color:h})}else if(d.name==="color-stop"){var p=d.values.filter(xa);if(p.length===2){var h=_o.parse(t,p[1]),m=p[0];Sa(m)&&r.push({stop:{type:16,number:m.number*100,flags:m.flags},color:h})}}}}),A===1?{angle:(n+iA(180))%iA(360),stops:r,type:A}:{size:o,shape:i,stops:r,position:a,type:A}},zk="closest-side",Wk="farthest-side",Gk="closest-corner",Yk="farthest-corner",qk="circle",Xk="ellipse",Jk="cover",jk="contain",MG=function(t,e){var n=0,r=3,A=[],i=[];return ci(e).forEach(function(o,a){var l=!0;if(a===0){var u=!1;l=o.reduce(function(h,p){if(u)if(Rt(p))switch(p.value){case"center":return i.push(sv),h;case"top":case"left":return i.push(Wn),h;case"right":case"bottom":return i.push(Uo),h}else(bn(p)||Io(p))&&i.push(p);else if(Rt(p))switch(p.value){case qk:return n=0,!1;case Xk:return n=1,!1;case"at":return u=!0,!1;case zk:return r=0,!1;case Jk:case Wk:return r=1,!1;case jk:case Gk:return r=2,!1;case Yk:return r=3,!1}else if(Io(p)||bn(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return h},l)}if(l){var d=yf(t,o);A.push(d)}}),{size:r,shape:n,stops:A,position:i,type:2}},bf=function(t,e){var n=0,r=3,A=[],i=[];return ci(e).forEach(function(o,a){var l=!0;if(a===0?l=o.reduce(function(d,h){if(Rt(h))switch(h.value){case"center":return i.push(sv),!1;case"top":case"left":return i.push(Wn),!1;case"right":case"bottom":return i.push(Uo),!1}else if(bn(h)||Io(h))return i.push(h),!1;return d},l):a===1&&(l=o.reduce(function(d,h){if(Rt(h))switch(h.value){case qk:return n=0,!1;case Xk:return n=1,!1;case jk:case zk:return r=0,!1;case Wk:return r=1,!1;case Gk:return r=2,!1;case Jk:case Yk:return r=3,!1}else if(Io(h)||bn(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return d},l)),l){var u=yf(t,o);A.push(u)}}),{size:r,shape:n,stops:A,position:i,type:2}},IG=function(t){return t.type===1},UG=function(t){return t.type===2},lv={name:"image",parse:function(t,e){if(e.type===22){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(e.type===18){var r=Zk[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function _G(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Zk[t.name])}var Zk={"linear-gradient":QG,"-moz-linear-gradient":Cf,"-ms-linear-gradient":Cf,"-o-linear-gradient":Cf,"-webkit-linear-gradient":Cf,"radial-gradient":MG,"-moz-radial-gradient":bf,"-ms-radial-gradient":bf,"-o-radial-gradient":bf,"-webkit-radial-gradient":bf,"-webkit-gradient":TG},DG={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e.filter(function(r){return xa(r)&&_G(r)}).map(function(r){return lv.parse(t,r)})}},OG={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Rt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},NG={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return ci(e).map(function(n){return n.filter(bn)}).map(Ik)}},LG={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return ci(e).map(function(n){return n.filter(Rt).map(function(r){return r.value}).join(" ")}).map(RG)}},RG=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Fa;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Fa||(Fa={}));var HG={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return ci(e).map(function(n){return n.filter(PG)})}},PG=function(t){return Rt(t)||bn(t)},Ef=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},$G=Ef("top"),KG=Ef("right"),zG=Ef("bottom"),WG=Ef("left"),kf=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,n){return Ik(n.filter(bn))}}},GG=kf("top-left"),YG=kf("top-right"),qG=kf("bottom-right"),XG=kf("bottom-left"),Sf=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},JG=Sf("top"),jG=Sf("right"),ZG=Sf("bottom"),VG=Sf("left"),xf=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,n){return gc(n)?n.number:0}}},eY=xf("top"),tY=xf("right"),nY=xf("bottom"),rY=xf("left"),AY={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iY={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return e==="rtl"?1:0}},oY={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Rt).reduce(function(n,r){return n|sY(r.value)},0)}},sY=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},aY={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},lY={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Ff;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Ff||(Ff={}));var cY={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return e==="strict"?Ff.STRICT:Ff.NORMAL}},uY={name:"line-height",initialValue:"normal",prefix:!1,type:4},Vk=function(t,e){return Rt(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:bn(t)?$t(t,e):e},dY={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:lv.parse(t,e)}},fY={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return e==="inside"?0:1}},cv={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Qf=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},hY=Qf("top"),pY=Qf("right"),mY=Qf("bottom"),gY=Qf("left"),vY={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Rt).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},wY={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return e==="break-word"?"break-word":"normal"}},Tf=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},BY=Tf("top"),yY=Tf("right"),CY=Tf("bottom"),bY=Tf("left"),EY={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},kY={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},SY={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&ov(e[0],"none")?[]:ci(e).map(function(n){for(var r={color:Ri.TRANSPARENT,offsetX:Wn,offsetY:Wn,blur:Wn},A=0,i=0;i<n.length;i++){var o=n[i];Io(o)?(A===0?r.offsetX=o:A===1?r.offsetY=o:r.blur=o,A++):r.color=_o.parse(t,o)}return r})}},xY={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},FY={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var n=MY[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},QY=function(t){var e=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return e.length===6?e:null},TY=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),n=e[0],r=e[1];e[2],e[3];var A=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],a=e[13];return e[14],e[15],e.length===16?[n,r,A,i,o,a]:null},MY={matrix:QY,matrix3d:TY},eS={type:16,number:50,flags:dc},IY=[eS,eS],UY={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(bn);return n.length!==2?IY:[n[0],n[1]]}},_Y={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Bc;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Bc||(Bc={}));for(var DY={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Bc.BREAK_ALL;case"keep-all":return Bc.KEEP_ALL;default:return Bc.NORMAL}}},OY={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(Sa(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},tS={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},NY={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Sa(e)?e.number:1}},LY={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},RY={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Rt).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},HY={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach(function(A){switch(A.type){case 20:case 0:n.push(A.value);break;case 17:n.push(A.number.toString());break;case 4:r.push(n.join(" ")),n.length=0;break}}),n.length&&r.push(n.join(" ")),r.map(function(A){return A.indexOf(" ")===-1?A:"'"+A+"'"})}},PY={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$Y={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){return Sa(e)?e.number:Rt(e)&&e.value==="bold"?700:400}},KY={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Rt).map(function(n){return n.value})}},zY={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Fn=function(t,e){return(t&e)!==0},WY={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e}},GY={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;for(var r=[],A=e.filter(Mk),i=0;i<A.length;i++){var o=A[i],a=A[i+1];if(o.type===20){var l=a&&Sa(a)?a.number:1;r.push({counter:o.value,increment:l})}}return r}},YY={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var n=[],r=e.filter(Mk),A=0;A<r.length;A++){var i=r[A],o=r[A+1];if(Rt(i)&&i.value!=="none"){var a=o&&Sa(o)?o.number:0;n.push({counter:i.value,reset:a})}}return n}},qY={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(gc).map(function(n){return tS.parse(t,n)})}},XY={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;var r=[],A=e.filter(yG);if(A.length%2!==0)return null;for(var i=0;i<A.length;i+=2){var o=A[i].value,a=A[i+1].value;r.push({open:o,close:a})}return r}},nS=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},JY={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&ov(e[0],"none")?[]:ci(e).map(function(n){for(var r={color:255,offsetX:Wn,offsetY:Wn,blur:Wn,spread:Wn,inset:!1},A=0,i=0;i<n.length;i++){var o=n[i];ov(o,"inset")?r.inset=!0:Io(o)?(A===0?r.offsetX=o:A===1?r.offsetY=o:A===2?r.blur=o:r.spread=o,A++):r.color=_o.parse(t,o)}return r})}},jY={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],r=[];return e.filter(Rt).forEach(function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),n.forEach(function(A){r.indexOf(A)===-1&&r.push(A)}),r}},ZY={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},VY={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return gc(e)?e.number:0}},e7=(function(){function t(e,n){var r,A;this.animationDuration=Oe(e,qY,n.animationDuration),this.backgroundClip=Oe(e,EG,n.backgroundClip),this.backgroundColor=Oe(e,kG,n.backgroundColor),this.backgroundImage=Oe(e,DG,n.backgroundImage),this.backgroundOrigin=Oe(e,OG,n.backgroundOrigin),this.backgroundPosition=Oe(e,NG,n.backgroundPosition),this.backgroundRepeat=Oe(e,LG,n.backgroundRepeat),this.backgroundSize=Oe(e,HG,n.backgroundSize),this.borderTopColor=Oe(e,$G,n.borderTopColor),this.borderRightColor=Oe(e,KG,n.borderRightColor),this.borderBottomColor=Oe(e,zG,n.borderBottomColor),this.borderLeftColor=Oe(e,WG,n.borderLeftColor),this.borderTopLeftRadius=Oe(e,GG,n.borderTopLeftRadius),this.borderTopRightRadius=Oe(e,YG,n.borderTopRightRadius),this.borderBottomRightRadius=Oe(e,qG,n.borderBottomRightRadius),this.borderBottomLeftRadius=Oe(e,XG,n.borderBottomLeftRadius),this.borderTopStyle=Oe(e,JG,n.borderTopStyle),this.borderRightStyle=Oe(e,jG,n.borderRightStyle),this.borderBottomStyle=Oe(e,ZG,n.borderBottomStyle),this.borderLeftStyle=Oe(e,VG,n.borderLeftStyle),this.borderTopWidth=Oe(e,eY,n.borderTopWidth),this.borderRightWidth=Oe(e,tY,n.borderRightWidth),this.borderBottomWidth=Oe(e,nY,n.borderBottomWidth),this.borderLeftWidth=Oe(e,rY,n.borderLeftWidth),this.boxShadow=Oe(e,JY,n.boxShadow),this.color=Oe(e,AY,n.color),this.direction=Oe(e,iY,n.direction),this.display=Oe(e,oY,n.display),this.float=Oe(e,aY,n.cssFloat),this.fontFamily=Oe(e,HY,n.fontFamily),this.fontSize=Oe(e,PY,n.fontSize),this.fontStyle=Oe(e,zY,n.fontStyle),this.fontVariant=Oe(e,KY,n.fontVariant),this.fontWeight=Oe(e,$Y,n.fontWeight),this.letterSpacing=Oe(e,lY,n.letterSpacing),this.lineBreak=Oe(e,cY,n.lineBreak),this.lineHeight=Oe(e,uY,n.lineHeight),this.listStyleImage=Oe(e,dY,n.listStyleImage),this.listStylePosition=Oe(e,fY,n.listStylePosition),this.listStyleType=Oe(e,cv,n.listStyleType),this.marginTop=Oe(e,hY,n.marginTop),this.marginRight=Oe(e,pY,n.marginRight),this.marginBottom=Oe(e,mY,n.marginBottom),this.marginLeft=Oe(e,gY,n.marginLeft),this.opacity=Oe(e,NY,n.opacity);var i=Oe(e,vY,n.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Oe(e,wY,n.overflowWrap),this.paddingTop=Oe(e,BY,n.paddingTop),this.paddingRight=Oe(e,yY,n.paddingRight),this.paddingBottom=Oe(e,CY,n.paddingBottom),this.paddingLeft=Oe(e,bY,n.paddingLeft),this.paintOrder=Oe(e,jY,n.paintOrder),this.position=Oe(e,kY,n.position),this.textAlign=Oe(e,EY,n.textAlign),this.textDecorationColor=Oe(e,LY,(r=n.textDecorationColor)!==null&&r!==void 0?r:n.color),this.textDecorationLine=Oe(e,RY,(A=n.textDecorationLine)!==null&&A!==void 0?A:n.textDecoration),this.textShadow=Oe(e,SY,n.textShadow),this.textTransform=Oe(e,xY,n.textTransform),this.transform=Oe(e,FY,n.transform),this.transformOrigin=Oe(e,UY,n.transformOrigin),this.visibility=Oe(e,_Y,n.visibility),this.webkitTextStrokeColor=Oe(e,ZY,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=Oe(e,VY,n.webkitTextStrokeWidth),this.wordBreak=Oe(e,DY,n.wordBreak),this.zIndex=Oe(e,OY,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Do(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Fn(this.display,4)||Fn(this.display,33554432)||Fn(this.display,268435456)||Fn(this.display,536870912)||Fn(this.display,67108864)||Fn(this.display,134217728)},t})(),t7=(function(){function t(e,n){this.content=Oe(e,WY,n.content),this.quotes=Oe(e,XY,n.quotes)}return t})(),rS=(function(){function t(e,n){this.counterIncrement=Oe(e,GY,n.counterIncrement),this.counterReset=Oe(e,YY,n.counterReset)}return t})(),Oe=function(t,e,n){var r=new Qk,A=n!==null&&typeof n<"u"?n.toString():e.initialValue;r.write(A);var i=new Tk(r.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,Rt(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Bf.parse(t,i.parseComponentValue());case"color":return _o.parse(t,i.parseComponentValue());case"image":return lv.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return Io(a)?a:Wn;case"length-percentage":var l=i.parseComponentValue();return bn(l)?l:Wn;case"time":return tS.parse(t,i.parseComponentValue())}break}},n7="data-html2canvas-debug",r7=function(t){var e=t.getAttribute(n7);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},uv=function(t,e){var n=r7(t);return n===1||e===n},ui=(function(){function t(e,n){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,uv(n,3))debugger;this.styles=new e7(e,window.getComputedStyle(n,null)),kv(n)&&(this.styles.animationDuration.some(function(r){return r>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=Vd(this.context,n),uv(n,4)&&(this.flags|=16)}return t})(),A7="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",AS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mf=0;Mf<AS.length;Mf++)yc[AS.charCodeAt(Mf)]=Mf;for(var i7=function(t){var e=t.length*.75,n=t.length,r,A=0,i,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(u)?u:new Uint8Array(u);for(r=0;r<n;r+=4)i=yc[t.charCodeAt(r)],o=yc[t.charCodeAt(r+1)],a=yc[t.charCodeAt(r+2)],l=yc[t.charCodeAt(r+3)],d[A++]=i<<2|o>>4,d[A++]=(o&15)<<4|a>>2,d[A++]=(a&3)<<6|l&63;return u},o7=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},s7=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},Ts=5,dv=11,fv=2,a7=dv-Ts,iS=65536>>Ts,l7=1<<Ts,hv=l7-1,c7=1024>>Ts,u7=iS+c7,d7=u7,f7=32,h7=d7+f7,p7=65536>>dv,m7=1<<a7,g7=m7-1,oS=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},v7=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},w7=function(t,e){var n=i7(t),r=Array.isArray(n)?s7(n):new Uint32Array(n),A=Array.isArray(n)?o7(n):new Uint16Array(n),i=24,o=oS(A,i/2,r[4]/2),a=r[5]===2?oS(A,(i+r[4])/2):v7(r,Math.ceil((i+r[4])/4));return new B7(r[0],r[1],r[2],r[3],o,a)},B7=(function(){function t(e,n,r,A,i,o){this.initialValue=e,this.errorValue=n,this.highStart=r,this.highValueIndex=A,this.index=i,this.data=o}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>Ts],n=(n<<fv)+(e&hv),this.data[n];if(e<=65535)return n=this.index[iS+(e-55296>>Ts)],n=(n<<fv)+(e&hv),this.data[n];if(e<this.highStart)return n=h7-p7+(e>>dv),n=this.index[n],n+=e>>Ts&g7,n=this.index[n],n=(n<<fv)+(e&hv),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),sS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y7=typeof Uint8Array>"u"?[]:new Uint8Array(256),If=0;If<sS.length;If++)y7[sS.charCodeAt(If)]=If;var C7=1,pv=2,mv=3,aS=4,lS=5,b7=7,cS=8,gv=9,vv=10,uS=11,dS=12,fS=13,hS=14,wv=15,E7=function(t){for(var e=[],n=0,r=t.length;n<r;){var A=t.charCodeAt(n++);if(A>=55296&&A<=56319&&n<r){var i=t.charCodeAt(n++);(i&64512)===56320?e.push(((A&1023)<<10)+(i&1023)+65536):(e.push(A),n--)}else e.push(A)}return e},k7=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],A=-1,i="";++A<n;){var o=t[A];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},S7=w7(A7),oA="×",Bv="÷",x7=function(t){return S7.get(t)},F7=function(t,e,n){var r=n-2,A=e[r],i=e[n-1],o=e[n];if(i===pv&&o===mv)return oA;if(i===pv||i===mv||i===aS||o===pv||o===mv||o===aS)return Bv;if(i===cS&&[cS,gv,uS,dS].indexOf(o)!==-1||(i===uS||i===gv)&&(o===gv||o===vv)||(i===dS||i===vv)&&o===vv||o===fS||o===lS||o===b7||i===C7)return oA;if(i===fS&&o===hS){for(;A===lS;)A=e[--r];if(A===hS)return oA}if(i===wv&&o===wv){for(var a=0;A===wv;)a++,A=e[--r];if(a%2===0)return oA}return Bv},Q7=function(t){var e=E7(t),n=e.length,r=0,A=0,i=e.map(x7);return{next:function(){if(r>=n)return{done:!0,value:null};for(var o=oA;r<n&&(o=F7(e,i,++r))===oA;);if(o!==oA||r===n){var a=k7.apply(null,e.slice(A,r));return A=r,{value:a,done:!1}}return{done:!0,value:null}}}},T7=function(t){for(var e=Q7(t),n=[],r;!(r=e.next()).done;)r.value&&n.push(r.value.slice());return n},M7=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),n.selectNode(r);var A=n.getBoundingClientRect(),i=Math.round(A.height);if(t.body.removeChild(r),i===e)return!0}}return!1},I7=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var r=e.firstChild,A=ef(r.data).map(function(l){return pn(l)}),i=0,o={},a=A.every(function(l,u){n.setStart(r,i),n.setEnd(r,i+l.length);var d=n.getBoundingClientRect();i+=l.length;var h=d.x>o.x||d.y>o.y;return o=d,u===0?!0:h});return t.body.removeChild(e),a},U7=function(){return typeof new Image().crossOrigin<"u"},_7=function(){return typeof new XMLHttpRequest().responseType=="string"},D7=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch{return!1}return!0},pS=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},O7=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var A=new Image,i=e.toDataURL();A.src=i;var o=yv(n,n,0,0,A);return r.fillStyle="red",r.fillRect(0,0,n,n),mS(o).then(function(a){r.drawImage(a,0,0);var l=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=n+"px",pS(l)?mS(yv(n,n,0,0,u)):Promise.reject(!1)}).then(function(a){return r.drawImage(a,0,0),pS(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},yv=function(t,e,n,r,A){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(A),o},mS=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Gn={get SUPPORT_RANGE_BOUNDS(){var t=M7(document);return Object.defineProperty(Gn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Gn.SUPPORT_RANGE_BOUNDS&&I7(document);return Object.defineProperty(Gn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=D7(document);return Object.defineProperty(Gn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?O7(document):Promise.resolve(!1);return Object.defineProperty(Gn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=U7();return Object.defineProperty(Gn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=_7();return Object.defineProperty(Gn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Gn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Gn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Cc=(function(){function t(e,n){this.text=e,this.bounds=n}return t})(),N7=function(t,e,n,r){var A=H7(e,n),i=[],o=0;return A.forEach(function(a){if(n.textDecorationLine.length||a.trim().length>0)if(Gn.SUPPORT_RANGE_BOUNDS){var l=gS(r,o,a.length).getClientRects();if(l.length>1){var u=Cv(a),d=0;u.forEach(function(p){i.push(new Cc(p,Ni.fromDOMRectList(t,gS(r,d+o,p.length).getClientRects()))),d+=p.length})}else i.push(new Cc(a,Ni.fromDOMRectList(t,l)))}else{var h=r.splitText(a.length);i.push(new Cc(a,L7(t,r))),r=h}else Gn.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));o+=a.length}),i},L7=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var A=e.parentNode;if(A){A.replaceChild(r,e);var i=Vd(t,r);return r.firstChild&&A.replaceChild(r.firstChild,r),i}}return Ni.EMPTY},gS=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var A=r.createRange();return A.setStart(t,e),A.setEnd(t,e+n),A},Cv=function(t){if(Gn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return T7(t)},R7=function(t,e){if(Gn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(r){return r.segment})}return $7(t,e)},H7=function(t,e){return e.letterSpacing!==0?Cv(t):R7(t,e)},P7=[32,160,4961,65792,65793,4153,4241],$7=function(t,e){for(var n=p6(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],A,i=function(){if(A.value){var o=A.value.slice(),a=ef(o),l="";a.forEach(function(u){P7.indexOf(u)===-1?l+=pn(u):(l.length&&r.push(l),r.push(pn(u)),l="")}),l.length&&r.push(l)}};!(A=n.next()).done;)i();return r},K7=(function(){function t(e,n,r){this.text=z7(n.data,r.textTransform),this.textBounds=N7(e,this.text,r,n)}return t})(),z7=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(W7,G7);case 2:return t.toUpperCase();default:return t}},W7=/(^|\s|:|-|\(|\))([a-z])/g,G7=function(t,e,n){return t.length>0?e+n.toUpperCase():t},vS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.src=r.currentSrc||r.src,A.intrinsicWidth=r.naturalWidth,A.intrinsicHeight=r.naturalHeight,A.context.cache.addImage(A.src),A}return e})(ui),wS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.canvas=r,A.intrinsicWidth=r.width,A.intrinsicHeight=r.height,A}return e})(ui),BS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this,i=new XMLSerializer,o=Vd(n,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),A.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),A.intrinsicWidth=r.width.baseVal.value,A.intrinsicHeight=r.height.baseVal.value,A.context.cache.addImage(A.svg),A}return e})(ui),yS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.value=r.value,A}return e})(ui),bv=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.start=r.start,A.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,A}return e})(ui),Y7=[{type:15,flags:0,unit:"px",number:3}],q7=[{type:16,flags:0,number:50}],X7=function(t){return t.width>t.height?new Ni(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Ni(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},J7=function(t){var e=t.type===j7?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},Uf="checkbox",_f="radio",j7="password",CS=707406591,Ev=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;switch(A.type=r.type.toLowerCase(),A.checked=r.checked,A.value=J7(r),(A.type===Uf||A.type===_f)&&(A.styles.backgroundColor=3739148031,A.styles.borderTopColor=A.styles.borderRightColor=A.styles.borderBottomColor=A.styles.borderLeftColor=2779096575,A.styles.borderTopWidth=A.styles.borderRightWidth=A.styles.borderBottomWidth=A.styles.borderLeftWidth=1,A.styles.borderTopStyle=A.styles.borderRightStyle=A.styles.borderBottomStyle=A.styles.borderLeftStyle=1,A.styles.backgroundClip=[0],A.styles.backgroundOrigin=[0],A.bounds=X7(A.bounds)),A.type){case Uf:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=Y7;break;case _f:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=q7;break}return A}return e})(ui),bS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this,i=r.options[r.selectedIndex||0];return A.value=i&&i.text||"",A}return e})(ui),ES=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.value=r.value,A}return e})(ui),kS=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;A.src=r.src,A.width=parseInt(r.width,10)||0,A.height=parseInt(r.height,10)||0,A.backgroundColor=A.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){A.tree=xS(n,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?wc(n,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Ri.TRANSPARENT,o=r.contentWindow.document.body?wc(n,getComputedStyle(r.contentWindow.document.body).backgroundColor):Ri.TRANSPARENT;A.backgroundColor=Do(i)?Do(o)?A.styles.backgroundColor:o:i}}catch{}return A}return e})(ui),Z7=["OL","UL","MENU"],Df=function(t,e,n,r){for(var A=e.firstChild,i=void 0;A;A=i)if(i=A.nextSibling,FS(A)&&A.data.trim().length>0)n.textNodes.push(new K7(t,A,n.styles));else if(Qa(A))if(_S(A)&&A.assignedNodes)A.assignedNodes().forEach(function(a){return Df(t,a,n,r)});else{var o=SS(t,A);o.styles.isVisible()&&(V7(A,o,r)?o.flags|=4:eq(o.styles)&&(o.flags|=2),Z7.indexOf(A.tagName)!==-1&&(o.flags|=8),n.elements.push(o),A.slot,A.shadowRoot?Df(t,A.shadowRoot,o,r):!Nf(A)&&!QS(A)&&!Lf(A)&&Df(t,A,o,r))}},SS=function(t,e){return xv(e)?new vS(t,e):TS(e)?new wS(t,e):QS(e)?new BS(t,e):tq(e)?new yS(t,e):nq(e)?new bv(t,e):rq(e)?new Ev(t,e):Lf(e)?new bS(t,e):Nf(e)?new ES(t,e):IS(e)?new kS(t,e):new ui(t,e)},xS=function(t,e){var n=SS(t,e);return n.flags|=4,Df(t,e,n,n),n},V7=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Sv(t)&&n.styles.isTransparent()},eq=function(t){return t.isPositioned()||t.isFloating()},FS=function(t){return t.nodeType===Node.TEXT_NODE},Qa=function(t){return t.nodeType===Node.ELEMENT_NODE},kv=function(t){return Qa(t)&&typeof t.style<"u"&&!Of(t)},Of=function(t){return typeof t.className=="object"},tq=function(t){return t.tagName==="LI"},nq=function(t){return t.tagName==="OL"},rq=function(t){return t.tagName==="INPUT"},Aq=function(t){return t.tagName==="HTML"},QS=function(t){return t.tagName==="svg"},Sv=function(t){return t.tagName==="BODY"},TS=function(t){return t.tagName==="CANVAS"},MS=function(t){return t.tagName==="VIDEO"},xv=function(t){return t.tagName==="IMG"},IS=function(t){return t.tagName==="IFRAME"},US=function(t){return t.tagName==="STYLE"},iq=function(t){return t.tagName==="SCRIPT"},Nf=function(t){return t.tagName==="TEXTAREA"},Lf=function(t){return t.tagName==="SELECT"},_S=function(t){return t.tagName==="SLOT"},DS=function(t){return t.tagName.indexOf("-")>0},oq=(function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var n=this.counters[e];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(e){var n=this.counters[e];return n||[]},t.prototype.pop=function(e){var n=this;e.forEach(function(r){return n.counters[r].pop()})},t.prototype.parse=function(e){var n=this,r=e.counterIncrement,A=e.counterReset,i=!0;r!==null&&r.forEach(function(a){var l=n.counters[a.counter];l&&a.increment!==0&&(i=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=a.increment)});var o=[];return i&&A.forEach(function(a){var l=n.counters[a.counter];o.push(a.counter),l||(l=n.counters[a.counter]=[]),l.push(a.reset)}),o},t})(),OS={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},NS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},sq={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},aq={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ta=function(t,e,n,r,A,i){return t<e||t>n?Ec(t,A,i.length>0):r.integers.reduce(function(o,a,l){for(;t>=a;)t-=a,o+=r.values[l];return o},"")+i},LS=function(t,e,n,r){var A="";do n||t--,A=r(t)+A,t/=e;while(t*e>=e);return A},mn=function(t,e,n,r,A){var i=n-e+1;return(t<0?"-":"")+(LS(Math.abs(t),i,r,function(o){return pn(Math.floor(o%i)+e)})+A)},Ms=function(t,e,n){n===void 0&&(n=". ");var r=e.length;return LS(Math.abs(t),r,!1,function(A){return e[Math.floor(A%r)]})+n},Ma=1,No=2,Lo=4,bc=8,Hi=function(t,e,n,r,A,i){if(t<-9999||t>9999)return Ec(t,4,A.length>0);var o=Math.abs(t),a=A;if(o===0)return e[0]+a;for(var l=0;o>0&&l<=4;l++){var u=o%10;u===0&&Fn(i,Ma)&&a!==""?a=e[u]+a:u>1||u===1&&l===0||u===1&&l===1&&Fn(i,No)||u===1&&l===1&&Fn(i,Lo)&&t>100||u===1&&l>1&&Fn(i,bc)?a=e[u]+(l>0?n[l-1]:"")+a:u===1&&l>0&&(a=n[l-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},RS="十百千萬",HS="拾佰仟萬",PS="マイナス",Fv="마이너스",Ec=function(t,e,n){var r=n?". ":"",A=n?"、":"",i=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=mn(t,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ms(t,"〇一二三四五六七八九",A);case 6:return Ta(t,1,3999,OS,3,r).toLowerCase();case 7:return Ta(t,1,3999,OS,3,r);case 8:return mn(t,945,969,!1,r);case 9:return mn(t,97,122,!1,r);case 10:return mn(t,65,90,!1,r);case 11:return mn(t,1632,1641,!0,r);case 12:case 49:return Ta(t,1,9999,NS,3,r);case 35:return Ta(t,1,9999,NS,3,r).toLowerCase();case 13:return mn(t,2534,2543,!0,r);case 14:case 30:return mn(t,6112,6121,!0,r);case 15:return Ms(t,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return Ms(t,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return Hi(t,"零一二三四五六七八九",RS,"負",A,No|Lo|bc);case 47:return Hi(t,"零壹貳參肆伍陸柒捌玖",HS,"負",A,Ma|No|Lo|bc);case 42:return Hi(t,"零一二三四五六七八九",RS,"负",A,No|Lo|bc);case 41:return Hi(t,"零壹贰叁肆伍陆柒捌玖",HS,"负",A,Ma|No|Lo|bc);case 26:return Hi(t,"〇一二三四五六七八九","十百千万",PS,A,0);case 25:return Hi(t,"零壱弐参四伍六七八九","拾百千万",PS,A,Ma|No|Lo);case 31:return Hi(t,"영일이삼사오육칠팔구","십백천만",Fv,i,Ma|No|Lo);case 33:return Hi(t,"零一二三四五六七八九","十百千萬",Fv,i,0);case 32:return Hi(t,"零壹貳參四五六七八九","拾百千",Fv,i,Ma|No|Lo);case 18:return mn(t,2406,2415,!0,r);case 20:return Ta(t,1,19999,aq,3,r);case 21:return mn(t,2790,2799,!0,r);case 22:return mn(t,2662,2671,!0,r);case 22:return Ta(t,1,10999,sq,3,r);case 23:return Ms(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ms(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return mn(t,3302,3311,!0,r);case 28:return Ms(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return Ms(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return mn(t,3792,3801,!0,r);case 37:return mn(t,6160,6169,!0,r);case 38:return mn(t,4160,4169,!0,r);case 39:return mn(t,2918,2927,!0,r);case 40:return mn(t,1776,1785,!0,r);case 43:return mn(t,3046,3055,!0,r);case 44:return mn(t,3174,3183,!0,r);case 45:return mn(t,3664,3673,!0,r);case 46:return mn(t,3872,3881,!0,r);default:return mn(t,48,57,!0,r)}},$S="data-html2canvas-ignore",KS=(function(){function t(e,n,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=n,this.counters=new oq,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,n){var r=this,A=lq(e,n);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,a=A.contentWindow,l=a.document,u=dq(A).then(function(){return vr(r,void 0,void 0,function(){var d,h;return rr(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(mq),a&&(a.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==n.top||a.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-n.left,a.scrollY-n.top,0,0))),d=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,uq(l)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(l,h)}).then(function(){return A})]:[2,A]}})})});return l.open(),l.write(hq(document.doctype)+"<html></html>"),pq(this.referenceElement.ownerDocument,i,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(e){if(uv(e,2))debugger;if(TS(e))return this.createCanvasClone(e);if(MS(e))return this.createVideoClone(e);if(US(e))return this.createStyleClone(e);var n=e.cloneNode(!1);return xv(n)&&(xv(e)&&e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),DS(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(e){var n=document.createElement("html2canvascustomelement");return Qv(e.style,n),n},t.prototype.createStyleClone=function(e){try{var n=e.sheet;if(n&&n.cssRules){var r=[].slice.call(n.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),A=e.cloneNode(!1);return A.textContent=r,A}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var n;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;var i=e.getContext("2d"),o=A.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=(n=e.getContext("webgl2"))!==null&&n!==void 0?n:e.getContext("webgl");if(a){var l=a.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return A}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A},t.prototype.createVideoClone=function(e){var n=e.ownerDocument.createElement("canvas");n.width=e.offsetWidth,n.height=e.offsetHeight;var r=n.getContext("2d");try{return r&&(r.drawImage(e,0,0,n.width,n.height),this.options.allowTaint||r.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},t.prototype.appendChildNode=function(e,n,r){(!Qa(n)||!iq(n)&&!n.hasAttribute($S)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!Qa(n)||!US(n))&&e.appendChild(this.cloneNode(n,r))},t.prototype.cloneChildNodes=function(e,n,r){for(var A=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Qa(i)&&_S(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(a){return A.appendChildNode(n,a,r)})}else this.appendChildNode(n,i,r)},t.prototype.cloneNode=function(e,n){if(FS(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Qa(e)&&(kv(e)||Of(e))){var A=this.createElementClone(e);A.style.transitionProperty="none";var i=r.getComputedStyle(e),o=r.getComputedStyle(e,":before"),a=r.getComputedStyle(e,":after");this.referenceElement===e&&kv(A)&&(this.clonedReferenceElement=A),Sv(A)&&wq(A);var l=this.counters.parse(new rS(this.context,i)),u=this.resolvePseudoContent(e,A,o,kc.BEFORE);DS(e)&&(n=!0),MS(e)||this.cloneChildNodes(e,A,n),u&&A.insertBefore(u,A.firstChild);var d=this.resolvePseudoContent(e,A,a,kc.AFTER);return d&&A.appendChild(d),this.counters.pop(l),(i&&(this.options.copyStyles||Of(e))&&!IS(e)||n)&&Qv(i,A),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([A,e.scrollLeft,e.scrollTop]),(Nf(e)||Lf(e))&&(Nf(A)||Lf(A))&&(A.value=e.value),A}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,n,r,A){var i=this;if(r){var o=r.content,a=n.ownerDocument;if(!(!a||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new rS(this.context,r));var l=new t7(this.context,r),u=a.createElement("html2canvaspseudoelement");Qv(r,u),l.content.forEach(function(h){if(h.type===0)u.appendChild(a.createTextNode(h.value));else if(h.type===22){var p=a.createElement("img");p.src=h.value,p.style.opacity="1",u.appendChild(p)}else if(h.type===18){if(h.name==="attr"){var m=h.values.filter(Rt);m.length&&u.appendChild(a.createTextNode(e.getAttribute(m[0].value)||""))}else if(h.name==="counter"){var v=h.values.filter(xa),B=v[0],y=v[1];if(B&&Rt(B)){var w=i.counters.getCounterValue(B.value),C=y&&Rt(y)?cv.parse(i.context,y.value):3;u.appendChild(a.createTextNode(Ec(w,C,!1)))}}else if(h.name==="counters"){var S=h.values.filter(xa),B=S[0],Q=S[1],y=S[2];if(B&&Rt(B)){var _=i.counters.getCounterValues(B.value),D=y&&Rt(y)?cv.parse(i.context,y.value):3,I=Q&&Q.type===0?Q.value:"",$=_.map(function(ge){return Ec(ge,D,!1)}).join(I);u.appendChild(a.createTextNode($))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(a.createTextNode(nS(l.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(nS(l.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(h.value))}}),u.className=Tv+" "+Mv;var d=A===kc.BEFORE?" "+Tv:" "+Mv;return Of(n)?n.className.baseValue+=d:n.className+=d,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t})(),kc;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(kc||(kc={}));var lq=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute($S,"true"),t.body.appendChild(n),n},cq=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},uq=function(t){return Promise.all([].slice.call(t.images,0).map(cq))},dq=function(t){return new Promise(function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var A=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var i=setInterval(function(){A.body.childNodes.length>0&&A.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},fq=["all","d","content"],Qv=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);fq.indexOf(r)===-1&&e.style.setProperty(r,t.getPropertyValue(r))}return e},hq=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},pq=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},mq=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},gq=":before",vq=":after",Tv="___html2canvas___pseudoelement_before",Mv="___html2canvas___pseudoelement_after",zS=`{
|
|
169
169
|
content: "" !important;
|
|
170
170
|
display: none !important;
|
|
171
|
-
}`,wq=function(t){Bq(t,"."+Tv+gq+
|
|
172
|
-
.`+Mv+vq+KS)},Bq=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},zS=(function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t})(),yq=(function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(Uv(e)||kq(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return vr(this,void 0,void 0,function(){var n,r,A,i,o=this;return rr(this,function(a){switch(a.label){case 0:return n=zS.isSameOrigin(e),r=!Iv(e)&&this._options.useCORS===!0&&Gn.SUPPORT_CORS_IMAGES&&!n,A=!Iv(e)&&!n&&!Uv(e)&&typeof this._options.proxy=="string"&&Gn.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!Iv(e)&&!Uv(e)&&!A&&!r?[2]:(i=e,A?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,u){var d=new Image;d.onload=function(){return l(d)},d.onerror=u,(Sq(i)||r)&&(d.crossOrigin="anonymous"),d.src=i,d.complete===!0&&setTimeout(function(){return l(d)},500),o._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var A=e.substring(0,256);return new Promise(function(i,o){var a=Gn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(a==="text")i(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(p){return o(p)},!1),h.readAsDataURL(l.response)}else o("Failed to proxy resource "+A+" with status code "+l.status)},l.onerror=o;var u=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=a),n._options.imageTimeout){var d=n._options.imageTimeout;l.timeout=d,l.ontimeout=function(){return o("Timed out ("+d+"ms) proxying "+A)}}l.send()})},t})(),Cq=/^data:image\/svg\+xml/i,bq=/^data:image\/.*;base64,/i,Eq=/^data:image\/.*/i,kq=function(t){return Gn.SUPPORT_SVG_DRAWING||!xq(t)},Iv=function(t){return Eq.test(t)},Sq=function(t){return bq.test(t)},Uv=function(t){return t.substr(0,4)==="blob"},xq=function(t){return t.substr(-3).toLowerCase()==="svg"||Cq.test(t)},_e=(function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t})(),Ia=function(t,e,n){return new _e(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Rf=(function(){function t(e,n,r,A){this.type=1,this.start=e,this.startControl=n,this.endControl=r,this.end=A}return t.prototype.subdivide=function(e,n){var r=Ia(this.start,this.startControl,e),A=Ia(this.startControl,this.endControl,e),i=Ia(this.endControl,this.end,e),o=Ia(r,A,e),a=Ia(A,i,e),l=Ia(o,a,e);return n?new t(this.start,r,o,l):new t(l,a,i,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t})(),sA=function(t){return t.type===1},Fq=(function(){function t(e){var n=e.styles,r=e.bounds,A=vc(n.borderTopLeftRadius,r.width,r.height),i=A[0],o=A[1],a=vc(n.borderTopRightRadius,r.width,r.height),l=a[0],u=a[1],d=vc(n.borderBottomRightRadius,r.width,r.height),h=d[0],p=d[1],m=vc(n.borderBottomLeftRadius,r.width,r.height),v=m[0],B=m[1],y=[];y.push((i+l)/r.width),y.push((v+h)/r.width),y.push((o+B)/r.height),y.push((u+p)/r.height);var w=Math.max.apply(Math,y);w>1&&(i/=w,o/=w,l/=w,u/=w,h/=w,p/=w,v/=w,B/=w);var C=r.width-l,S=r.height-p,Q=r.width-h,_=r.height-B,D=n.borderTopWidth,I=n.borderRightWidth,$=n.borderBottomWidth,Y=n.borderLeftWidth,de=$t(n.paddingTop,e.bounds.width),ge=$t(n.paddingRight,e.bounds.width),me=$t(n.paddingBottom,e.bounds.width),we=$t(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?jt(r.left+Y/3,r.top+D/3,i-Y/3,o-D/3,Mt.TOP_LEFT):new _e(r.left+Y/3,r.top+D/3),this.topRightBorderDoubleOuterBox=i>0||o>0?jt(r.left+C,r.top+D/3,l-I/3,u-D/3,Mt.TOP_RIGHT):new _e(r.left+r.width-I/3,r.top+D/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?jt(r.left+Q,r.top+S,h-I/3,p-$/3,Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I/3,r.top+r.height-$/3),this.bottomLeftBorderDoubleOuterBox=v>0||B>0?jt(r.left+Y/3,r.top+_,v-Y/3,B-$/3,Mt.BOTTOM_LEFT):new _e(r.left+Y/3,r.top+r.height-$/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?jt(r.left+Y*2/3,r.top+D*2/3,i-Y*2/3,o-D*2/3,Mt.TOP_LEFT):new _e(r.left+Y*2/3,r.top+D*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?jt(r.left+C,r.top+D*2/3,l-I*2/3,u-D*2/3,Mt.TOP_RIGHT):new _e(r.left+r.width-I*2/3,r.top+D*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?jt(r.left+Q,r.top+S,h-I*2/3,p-$*2/3,Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I*2/3,r.top+r.height-$*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||B>0?jt(r.left+Y*2/3,r.top+_,v-Y*2/3,B-$*2/3,Mt.BOTTOM_LEFT):new _e(r.left+Y*2/3,r.top+r.height-$*2/3),this.topLeftBorderStroke=i>0||o>0?jt(r.left+Y/2,r.top+D/2,i-Y/2,o-D/2,Mt.TOP_LEFT):new _e(r.left+Y/2,r.top+D/2),this.topRightBorderStroke=i>0||o>0?jt(r.left+C,r.top+D/2,l-I/2,u-D/2,Mt.TOP_RIGHT):new _e(r.left+r.width-I/2,r.top+D/2),this.bottomRightBorderStroke=h>0||p>0?jt(r.left+Q,r.top+S,h-I/2,p-$/2,Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I/2,r.top+r.height-$/2),this.bottomLeftBorderStroke=v>0||B>0?jt(r.left+Y/2,r.top+_,v-Y/2,B-$/2,Mt.BOTTOM_LEFT):new _e(r.left+Y/2,r.top+r.height-$/2),this.topLeftBorderBox=i>0||o>0?jt(r.left,r.top,i,o,Mt.TOP_LEFT):new _e(r.left,r.top),this.topRightBorderBox=l>0||u>0?jt(r.left+C,r.top,l,u,Mt.TOP_RIGHT):new _e(r.left+r.width,r.top),this.bottomRightBorderBox=h>0||p>0?jt(r.left+Q,r.top+S,h,p,Mt.BOTTOM_RIGHT):new _e(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=v>0||B>0?jt(r.left,r.top+_,v,B,Mt.BOTTOM_LEFT):new _e(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||o>0?jt(r.left+Y,r.top+D,Math.max(0,i-Y),Math.max(0,o-D),Mt.TOP_LEFT):new _e(r.left+Y,r.top+D),this.topRightPaddingBox=l>0||u>0?jt(r.left+Math.min(C,r.width-I),r.top+D,C>r.width+I?0:Math.max(0,l-I),Math.max(0,u-D),Mt.TOP_RIGHT):new _e(r.left+r.width-I,r.top+D),this.bottomRightPaddingBox=h>0||p>0?jt(r.left+Math.min(Q,r.width-Y),r.top+Math.min(S,r.height-$),Math.max(0,h-I),Math.max(0,p-$),Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I,r.top+r.height-$),this.bottomLeftPaddingBox=v>0||B>0?jt(r.left+Y,r.top+Math.min(_,r.height-$),Math.max(0,v-Y),Math.max(0,B-$),Mt.BOTTOM_LEFT):new _e(r.left+Y,r.top+r.height-$),this.topLeftContentBox=i>0||o>0?jt(r.left+Y+we,r.top+D+de,Math.max(0,i-(Y+we)),Math.max(0,o-(D+de)),Mt.TOP_LEFT):new _e(r.left+Y+we,r.top+D+de),this.topRightContentBox=l>0||u>0?jt(r.left+Math.min(C,r.width+Y+we),r.top+D+de,C>r.width+Y+we?0:l-Y+we,u-(D+de),Mt.TOP_RIGHT):new _e(r.left+r.width-(I+ge),r.top+D+de),this.bottomRightContentBox=h>0||p>0?jt(r.left+Math.min(Q,r.width-(Y+we)),r.top+Math.min(S,r.height+D+de),Math.max(0,h-(I+ge)),p-($+me),Mt.BOTTOM_RIGHT):new _e(r.left+r.width-(I+ge),r.top+r.height-($+me)),this.bottomLeftContentBox=v>0||B>0?jt(r.left+Y+we,r.top+_,Math.max(0,v-(Y+we)),B-($+me),Mt.BOTTOM_LEFT):new _e(r.left+Y+we,r.top+r.height-($+me))}return t})(),Mt;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Mt||(Mt={}));var jt=function(t,e,n,r,A){var i=4*((Math.sqrt(2)-1)/3),o=n*i,a=r*i,l=t+n,u=e+r;switch(A){case Mt.TOP_LEFT:return new Rf(new _e(t,u),new _e(t,u-a),new _e(l-o,e),new _e(l,e));case Mt.TOP_RIGHT:return new Rf(new _e(t,e),new _e(t+o,e),new _e(l,u-a),new _e(l,u));case Mt.BOTTOM_RIGHT:return new Rf(new _e(l,e),new _e(l,e+a),new _e(t+o,u),new _e(t,u));case Mt.BOTTOM_LEFT:default:return new Rf(new _e(l,u),new _e(l-o,u),new _e(t,e+a),new _e(t,e))}},Hf=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Qq=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Pf=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Tq=(function(){function t(e,n,r){this.offsetX=e,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return t})(),$f=(function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t})(),Mq=(function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t})(),Iq=function(t){return t.type===0},WS=function(t){return t.type===1},Uq=function(t){return t.type===2},GS=function(t,e){return t.length===e.length?t.some(function(n,r){return n===e[r]}):!1},_q=function(t,e,n,r,A){return t.map(function(i,o){switch(o){case 0:return i.add(e,n);case 1:return i.add(e+r,n);case 2:return i.add(e+r,n+A);case 3:return i.add(e,n+A)}return i})},YS=(function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t})(),qS=(function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new Fq(this.container),this.container.styles.opacity<1&&this.effects.push(new Mq(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Tq(r,A,i))}if(this.container.styles.overflowX!==0){var o=Hf(this.curves),a=Pf(this.curves);GS(o,a)?this.effects.push(new $f(o,6)):(this.effects.push(new $f(o,2)),this.effects.push(new $f(a,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,A=this.effects.slice(0);r;){var i=r.effects.filter(function(l){return!WS(l)});if(n||r.container.styles.position!==0||!r.parent){if(A.unshift.apply(A,i),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=Hf(r.curves),a=Pf(r.curves);GS(o,a)||A.unshift(new $f(a,6))}}else A.unshift.apply(A,i);r=r.parent}return A.filter(function(l){return Fn(l.target,e)})},t})(),_v=function(t,e,n,r){t.container.elements.forEach(function(A){var i=Fn(A.flags,4),o=Fn(A.flags,2),a=new qS(A,t);Fn(A.styles.display,2048)&&r.push(a);var l=Fn(A.flags,8)?[]:r;if(i||o){var u=i||A.styles.isPositioned()?n:e,d=new YS(a);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var h=A.styles.zIndex.order;if(h<0){var p=0;u.negativeZIndex.some(function(v,B){return h>v.element.container.styles.zIndex.order?(p=B,!1):p>0}),u.negativeZIndex.splice(p,0,d)}else if(h>0){var m=0;u.positiveZIndex.some(function(v,B){return h>=v.element.container.styles.zIndex.order?(m=B+1,!1):m>0}),u.positiveZIndex.splice(m,0,d)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else A.styles.isFloating()?u.nonPositionedFloats.push(d):u.nonPositionedInlineLevel.push(d);_v(a,d,i?d:n,l)}else A.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),_v(a,e,n,l);Fn(A.flags,8)&&XS(A,l)})},XS=function(t,e){for(var n=t instanceof bv?t.start:1,r=t instanceof bv?t.reversed:!1,A=0;A<e.length;A++){var i=e[A];i.container instanceof BS&&typeof i.container.value=="number"&&i.container.value!==0&&(n=i.container.value),i.listValue=Ec(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},Dq=function(t){var e=new qS(t,null),n=new YS(e),r=[];return _v(e,n,n,r),XS(e.container,r),n},JS=function(t,e){switch(e){case 0:return aA(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return aA(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return aA(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return aA(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Oq=function(t,e){switch(e){case 0:return aA(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return aA(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return aA(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return aA(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Nq=function(t,e){switch(e){case 0:return aA(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return aA(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return aA(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return aA(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Lq=function(t,e){switch(e){case 0:return Kf(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Kf(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Kf(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Kf(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Kf=function(t,e){var n=[];return sA(t)?n.push(t.subdivide(.5,!1)):n.push(t),sA(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},aA=function(t,e,n,r){var A=[];return sA(t)?A.push(t.subdivide(.5,!1)):A.push(t),sA(n)?A.push(n.subdivide(.5,!0)):A.push(n),sA(r)?A.push(r.subdivide(.5,!0).reverse()):A.push(r),sA(e)?A.push(e.subdivide(.5,!1).reverse()):A.push(e),A},jS=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},zf=function(t){var e=t.styles,n=t.bounds,r=$t(e.paddingLeft,n.width),A=$t(e.paddingRight,n.width),i=$t(e.paddingTop,n.width),o=$t(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+A),-(e.borderTopWidth+e.borderBottomWidth+i+o))},Rq=function(t,e){return t===0?e.bounds:t===2?zf(e):jS(e)},Hq=function(t,e){return t===0?e.bounds:t===2?zf(e):jS(e)},Dv=function(t,e,n){var r=Rq(_a(t.styles.backgroundOrigin,e),t),A=Hq(_a(t.styles.backgroundClip,e),t),i=Pq(_a(t.styles.backgroundSize,e),n,r),o=i[0],a=i[1],l=vc(_a(t.styles.backgroundPosition,e),r.width-o,r.height-a),u=$q(_a(t.styles.backgroundRepeat,e),l,i,r,A),d=Math.round(r.left+l[0]),h=Math.round(r.top+l[1]);return[u,d,h,o,a]},Ua=function(t){return Rt(t)&&t.value===Fa.AUTO},Wf=function(t){return typeof t=="number"},Pq=function(t,e,n){var r=e[0],A=e[1],i=e[2],o=t[0],a=t[1];if(!o)return[0,0];if(bn(o)&&a&&bn(a))return[$t(o,n.width),$t(a,n.height)];var l=Wf(i);if(Rt(o)&&(o.value===Fa.CONTAIN||o.value===Fa.COVER)){if(Wf(i)){var u=n.width/n.height;return u<i!=(o.value===Fa.COVER)?[n.width,n.width/i]:[n.height*i,n.height]}return[n.width,n.height]}var d=Wf(r),h=Wf(A),p=d||h;if(Ua(o)&&(!a||Ua(a))){if(d&&h)return[r,A];if(!l&&!p)return[n.width,n.height];if(p&&l){var m=d?r:A*i,v=h?A:r/i;return[m,v]}var B=d?r:n.width,y=h?A:n.height;return[B,y]}if(l){var w=0,C=0;return bn(o)?w=$t(o,n.width):bn(a)&&(C=$t(a,n.height)),Ua(o)?w=C*i:(!a||Ua(a))&&(C=w/i),[w,C]}var S=null,Q=null;if(bn(o)?S=$t(o,n.width):a&&bn(a)&&(Q=$t(a,n.height)),S!==null&&(!a||Ua(a))&&(Q=d&&h?S/r*A:n.height),Q!==null&&Ua(o)&&(S=d&&h?Q/A*r:n.width),S!==null&&Q!==null)return[S,Q];throw new Error("Unable to calculate background-size for element")},_a=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},$q=function(t,e,n,r,A){var i=e[0],o=e[1],a=n[0],l=n[1];switch(t){case 2:return[new _e(Math.round(r.left),Math.round(r.top+o)),new _e(Math.round(r.left+r.width),Math.round(r.top+o)),new _e(Math.round(r.left+r.width),Math.round(l+r.top+o)),new _e(Math.round(r.left),Math.round(l+r.top+o))];case 3:return[new _e(Math.round(r.left+i),Math.round(r.top)),new _e(Math.round(r.left+i+a),Math.round(r.top)),new _e(Math.round(r.left+i+a),Math.round(r.height+r.top)),new _e(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new _e(Math.round(r.left+i),Math.round(r.top+o)),new _e(Math.round(r.left+i+a),Math.round(r.top+o)),new _e(Math.round(r.left+i+a),Math.round(r.top+o+l)),new _e(Math.round(r.left+i),Math.round(r.top+o+l))];default:return[new _e(Math.round(A.left),Math.round(A.top)),new _e(Math.round(A.left+A.width),Math.round(A.top)),new _e(Math.round(A.left+A.width),Math.round(A.height+A.top)),new _e(Math.round(A.left),Math.round(A.height+A.top))]}},Kq="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ZS="Hidden Text",zq=(function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var r=this._document.createElement("div"),A=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),A.src=Kq,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=n,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(ZS)),r.appendChild(i),r.appendChild(A);var a=A.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(ZS)),r.style.lineHeight="normal",A.style.verticalAlign="super";var l=A.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:l}},t.prototype.getMetrics=function(e,n){var r=e+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,n)),this._data[r]},t})(),VS=(function(){function t(e,n){this.context=e,this.options=n}return t})(),Wq=1e4,Gq=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A._activeEffects=[],A.canvas=r.canvas?r.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),r.canvas||(A.canvas.width=Math.floor(r.width*r.scale),A.canvas.height=Math.floor(r.height*r.scale),A.canvas.style.width=r.width+"px",A.canvas.style.height=r.height+"px"),A.fontMetrics=new zq(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-r.x,-r.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),A}return e.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(A){return r.applyEffect(A)})},e.prototype.applyEffect=function(n){this.ctx.save(),Uq(n)&&(this.ctx.globalAlpha=n.opacity),Iq(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),WS(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return vr(this,void 0,void 0,function(){var r;return rr(this,function(A){switch(A.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return vr(this,void 0,void 0,function(){return rr(this,function(r){switch(r.label){case 0:if(Fn(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,r,A){var i=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+A);else{var o=Cv(n.text);o.reduce(function(a,l){return i.ctx.fillText(l,a,n.bounds.top+A),a+i.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),A=jq(n.fontFamily).join(", "),i=gc(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,i,A].join(" "),A,i]},e.prototype.renderTextNode=function(n,r){return vr(this,void 0,void 0,function(){var A,i,o,a,l,u,d,h,p=this;return rr(this,function(m){return A=this.createFontStyle(r),i=A[0],o=A[1],a=A[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,a),u=l.baseline,d=l.middle,h=r.paintOrder,n.textBounds.forEach(function(v){h.forEach(function(B){switch(B){case 0:p.ctx.fillStyle=Ln(r.color),p.renderTextWithLetterSpacing(v,r.letterSpacing,u);var y=r.textShadow;y.length&&v.text.trim().length&&(y.slice(0).reverse().forEach(function(w){p.ctx.shadowColor=Ln(w.color),p.ctx.shadowOffsetX=w.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=w.offsetY.number*p.options.scale,p.ctx.shadowBlur=w.blur.number,p.renderTextWithLetterSpacing(v,r.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),r.textDecorationLine.length&&(p.ctx.fillStyle=Ln(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(w){switch(w){case 1:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+u),v.bounds.width,1);break;case 2:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:p.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+d),v.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&v.text.trim().length&&(p.ctx.strokeStyle=Ln(r.webkitTextStrokeColor),p.ctx.lineWidth=r.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,r,A){if(A&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var i=zf(n),o=Pf(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,n.intrinsicWidth,n.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return vr(this,void 0,void 0,function(){var r,A,i,o,a,l,C,C,u,d,h,p,Q,m,v,_,B,y,w,C,S,Q,_;return rr(this,function(D){switch(D.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,A=n.curves,i=r.styles,o=0,a=r.textNodes,D.label=1;case 1:return o<a.length?(l=a[o],[4,this.renderTextNode(l,i)]):[3,4];case 2:D.sent(),D.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof gS))return[3,8];D.label=5;case 5:return D.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return C=D.sent(),this.renderReplacedElement(r,A,C),[3,8];case 7:return D.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof vS&&this.renderReplacedElement(r,A,r.canvas),!(r instanceof wS))return[3,12];D.label=9;case 9:return D.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return C=D.sent(),this.renderReplacedElement(r,A,C),[3,12];case 11:return D.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof ES&&r.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,u.render(r.tree)]):[3,14];case 13:d=D.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),D.label=14;case 14:if(r instanceof Ev&&(h=Math.min(r.bounds.width,r.bounds.height),r.type===Uf?r.checked&&(this.ctx.save(),this.path([new _e(r.bounds.left+h*.39363,r.bounds.top+h*.79),new _e(r.bounds.left+h*.16,r.bounds.top+h*.5549),new _e(r.bounds.left+h*.27347,r.bounds.top+h*.44071),new _e(r.bounds.left+h*.39694,r.bounds.top+h*.5649),new _e(r.bounds.left+h*.72983,r.bounds.top+h*.23),new _e(r.bounds.left+h*.84,r.bounds.top+h*.34085),new _e(r.bounds.left+h*.39363,r.bounds.top+h*.79)]),this.ctx.fillStyle=Ln(yS),this.ctx.fill(),this.ctx.restore()):r.type===_f&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+h/2,r.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ln(yS),this.ctx.fill(),this.ctx.restore())),Yq(r)&&r.value.length){switch(p=this.createFontStyle(i),Q=p[0],m=p[1],v=this.fontMetrics.getMetrics(Q,m).baseline,this.ctx.font=Q,this.ctx.fillStyle=Ln(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Xq(r.styles.textAlign),_=zf(r),B=0,r.styles.textAlign){case 1:B+=_.width/2;break;case 2:B+=_.width;break}y=_.add(B,0,0,-_.height/2+1),this.ctx.save(),this.path([new _e(_.left,_.top),new _e(_.left+_.width,_.top),new _e(_.left+_.width,_.top+_.height),new _e(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cc(r.value,y),i.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fn(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(w=r.styles.listStyleImage,w.type!==0)return[3,18];C=void 0,S=w.url,D.label=15;case 15:return D.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return C=D.sent(),this.ctx.drawImage(C,r.bounds.left-(C.width+10),r.bounds.top),[3,18];case 17:return D.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(Q=this.createFontStyle(i)[0],this.ctx.font=Q,this.ctx.fillStyle=Ln(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_=new Ni(r.bounds.left,r.bounds.top+$t(r.styles.paddingTop,r.bounds.width),r.bounds.width,Zk(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cc(n.listValue,_),i.letterSpacing,Zk(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),D.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return vr(this,void 0,void 0,function(){var r,A,w,i,o,w,a,l,w,u,d,w,h,p,w,m,v,w,B,y,w;return rr(this,function(C){switch(C.label){case 0:if(Fn(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:C.sent(),r=0,A=n.negativeZIndex,C.label=2;case 2:return r<A.length?(w=A[r],[4,this.renderStack(w)]):[3,5];case 3:C.sent(),C.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:C.sent(),i=0,o=n.nonInlineLevel,C.label=7;case 7:return i<o.length?(w=o[i],[4,this.renderNode(w)]):[3,10];case 8:C.sent(),C.label=9;case 9:return i++,[3,7];case 10:a=0,l=n.nonPositionedFloats,C.label=11;case 11:return a<l.length?(w=l[a],[4,this.renderStack(w)]):[3,14];case 12:C.sent(),C.label=13;case 13:return a++,[3,11];case 14:u=0,d=n.nonPositionedInlineLevel,C.label=15;case 15:return u<d.length?(w=d[u],[4,this.renderStack(w)]):[3,18];case 16:C.sent(),C.label=17;case 17:return u++,[3,15];case 18:h=0,p=n.inlineLevel,C.label=19;case 19:return h<p.length?(w=p[h],[4,this.renderNode(w)]):[3,22];case 20:C.sent(),C.label=21;case 21:return h++,[3,19];case 22:m=0,v=n.zeroOrAutoZIndexOrTransformedOrOpacity,C.label=23;case 23:return m<v.length?(w=v[m],[4,this.renderStack(w)]):[3,26];case 24:C.sent(),C.label=25;case 25:return m++,[3,23];case 26:B=0,y=n.positiveZIndex,C.label=27;case 27:return B<y.length?(w=y[B],[4,this.renderStack(w)]):[3,30];case 28:C.sent(),C.label=29;case 29:return B++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var r=this;n.forEach(function(A,i){var o=sA(A)?A.start:A;i===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),sA(A)&&r.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},e.prototype.renderRepeat=function(n,r,A,i){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(A,i),this.ctx.fill(),this.ctx.translate(-A,-i)},e.prototype.resizeImage=function(n,r,A){var i;if(n.width===r&&n.height===A)return n;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=o.createElement("canvas");a.width=Math.max(1,r),a.height=Math.max(1,A);var l=a.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,A),a},e.prototype.renderBackgroundImage=function(n){return vr(this,void 0,void 0,function(){var r,A,i,o,a,l;return rr(this,function(u){switch(u.label){case 0:r=n.styles.backgroundImage.length-1,A=function(d){var h,p,m,de,q,x,we,te,$,v,de,q,x,we,te,B,y,w,C,S,Q,_,D,I,$,Y,de,ge,me,we,te,V,q,x,T,P,F,E,W,ne,X,re;return rr(this,function(ie){switch(ie.label){case 0:if(d.type!==0)return[3,5];h=void 0,p=d.url,ie.label=1;case 1:return ie.trys.push([1,3,,4]),[4,i.context.cache.match(p)];case 2:return h=ie.sent(),[3,4];case 3:return ie.sent(),i.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(m=Dv(n,r,[h.width,h.height,h.width/h.height]),de=m[0],q=m[1],x=m[2],we=m[3],te=m[4],$=i.ctx.createPattern(i.resizeImage(h,we,te),"repeat"),i.renderRepeat(de,$,q,x)),[3,6];case 5:IG(d)?(v=Dv(n,r,[null,null,null]),de=v[0],q=v[1],x=v[2],we=v[3],te=v[4],B=xG(d.angle,we,te),y=B[0],w=B[1],C=B[2],S=B[3],Q=B[4],_=document.createElement("canvas"),_.width=we,_.height=te,D=_.getContext("2d"),I=D.createLinearGradient(w,S,C,Q),Pk(d.stops,y).forEach(function(pe){return I.addColorStop(pe.stop,Ln(pe.color))}),D.fillStyle=I,D.fillRect(0,0,we,te),we>0&&te>0&&($=i.ctx.createPattern(_,"repeat"),i.renderRepeat(de,$,q,x))):UG(d)&&(Y=Dv(n,r,[null,null,null]),de=Y[0],ge=Y[1],me=Y[2],we=Y[3],te=Y[4],V=d.position.length===0?[sv]:d.position,q=$t(V[0],we),x=$t(V[V.length-1],te),T=FG(d,q,x,we,te),P=T[0],F=T[1],P>0&&F>0&&(E=i.ctx.createRadialGradient(ge+q,me+x,0,ge+q,me+x,P),Pk(d.stops,P*2).forEach(function(pe){return E.addColorStop(pe.stop,Ln(pe.color))}),i.path(de),i.ctx.fillStyle=E,P!==F?(W=n.bounds.left+.5*n.bounds.width,ne=n.bounds.top+.5*n.bounds.height,X=F/P,re=1/X,i.ctx.save(),i.ctx.translate(W,ne),i.ctx.transform(1,0,0,X,0,0),i.ctx.translate(-W,-ne),i.ctx.fillRect(ge,re*(me-ne)+ne,we,te*re),i.ctx.restore()):i.ctx.fill())),ie.label=6;case 6:return r--,[2]}})},i=this,o=0,a=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<a.length?(l=a[o],[5,A(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,r,A){return vr(this,void 0,void 0,function(){return rr(this,function(i){return this.path(JS(A,r)),this.ctx.fillStyle=Ln(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,r,A,i){return vr(this,void 0,void 0,function(){var o,a;return rr(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,A,i)]:[3,2];case 1:return l.sent(),[2];case 2:return o=Oq(i,A),this.path(o),this.ctx.fillStyle=Ln(n),this.ctx.fill(),a=Nq(i,A),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return vr(this,void 0,void 0,function(){var r,A,i,o,a,l,u,d,h=this;return rr(this,function(p){switch(p.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,A=!Do(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=qq(_a(r.backgroundClip,0),n.curves),A||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Do(r.backgroundColor)||(this.ctx.fillStyle=Ln(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var v=Hf(n.curves),B=m.inset?0:Wq,y=_q(v,-B+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(v),h.ctx.clip(),h.mask(y)):(h.mask(v),h.ctx.clip(),h.path(y)),h.ctx.shadowOffsetX=m.offsetX.number+B,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=Ln(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?Ln(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:a=0,l=0,u=i,p.label=3;case 3:return l<u.length?(d=u[l],d.style!==0&&!Do(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,a,n.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,a,n.curves,3)];case 6:return p.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,a,n.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,a,n.curves)];case 10:p.sent(),p.label=11;case 11:a++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,r,A,i,o){return vr(this,void 0,void 0,function(){var a,l,u,d,h,p,m,v,B,y,w,C,S,Q,_,D,_,D;return rr(this,function(I){return this.ctx.save(),a=Lq(i,A),l=JS(i,A),o===2&&(this.path(l),this.ctx.clip()),sA(l[0])?(u=l[0].start.x,d=l[0].start.y):(u=l[0].x,d=l[0].y),sA(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),A===0||A===2?m=Math.abs(u-h):m=Math.abs(d-p),this.ctx.beginPath(),o===3?this.formatPath(a):this.formatPath(l.slice(0,2)),v=r<3?r*3:r*2,B=r<3?r*2:r,o===3&&(v=r,B=r),y=!0,m<=v*2?y=!1:m<=v*2+B?(w=m/(2*v+B),v*=w,B*=w):(C=Math.floor((m+B)/(v+B)),S=(m-C*v)/(C-1),Q=(m-(C+1)*v)/C,B=Q<=0||Math.abs(B-S)<Math.abs(B-Q)?S:Q),y&&(o===3?this.ctx.setLineDash([0,v+B]):this.ctx.setLineDash([v,B])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Ln(n),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(sA(l[0])&&(_=l[3],D=l[0],this.ctx.beginPath(),this.formatPath([new _e(_.end.x,_.end.y),new _e(D.start.x,D.start.y)]),this.ctx.stroke()),sA(l[1])&&(_=l[1],D=l[2],this.ctx.beginPath(),this.formatPath([new _e(_.end.x,_.end.y),new _e(D.start.x,D.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return vr(this,void 0,void 0,function(){var r;return rr(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ln(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=Dq(n),[4,this.renderStack(r)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(VS),Yq=function(t){return t instanceof bS||t instanceof CS?!0:t instanceof Ev&&t.type!==_f&&t.type!==Uf},qq=function(t,e){switch(t){case 0:return Hf(e);case 2:return Qq(e);default:return Pf(e)}},Xq=function(t){switch(t){case 1:return"center";case 2:return"right";default:return"left"}},Jq=["-apple-system","system-ui"],jq=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return Jq.indexOf(e)===-1}):t},Zq=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.canvas=r.canvas?r.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=r,A.canvas.width=Math.floor(r.width*r.scale),A.canvas.height=Math.floor(r.height*r.scale),A.canvas.style.width=r.width+"px",A.canvas.style.height=r.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-r.x,-r.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),A}return e.prototype.render=function(n){return vr(this,void 0,void 0,function(){var r,A;return rr(this,function(i){switch(i.label){case 0:return r=yv(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Vq(r)];case 1:return A=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ln(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(VS),Vq=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},eX=(function(){function t(e){var n=e.id,r=e.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Zd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Zd([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Zd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Zd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t})(),tX=(function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new eX({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new yq(this,e)}return t.instanceCount=1,t})(),nX=function(t,e){return e===void 0&&(e={}),rX(t,e)};typeof window<"u"&&zS.setContext(window);var rX=function(t,e){return vr(void 0,void 0,void 0,function(){var n,r,A,i,o,a,l,u,d,h,p,m,v,B,y,w,C,S,Q,_,I,D,I,$,Y,de,ge,me,we,te,V,q,x,T,P,F,E,W,ne,X;return rr(this,function(re){switch(re.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return A={allowTaint:($=e.allowTaint)!==null&&$!==void 0?$:!1,imageTimeout:(Y=e.imageTimeout)!==null&&Y!==void 0?Y:15e3,proxy:e.proxy,useCORS:(de=e.useCORS)!==null&&de!==void 0?de:!1},i=Hg({logging:(ge=e.logging)!==null&&ge!==void 0?ge:!0,cache:e.cache},A),o={windowWidth:(me=e.windowWidth)!==null&&me!==void 0?me:r.innerWidth,windowHeight:(we=e.windowHeight)!==null&&we!==void 0?we:r.innerHeight,scrollX:(te=e.scrollX)!==null&&te!==void 0?te:r.pageXOffset,scrollY:(V=e.scrollY)!==null&&V!==void 0?V:r.pageYOffset},a=new Ni(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new tX(i,a),u=(q=e.foreignObjectRendering)!==null&&q!==void 0?q:!1,d={allowTaint:(x=e.allowTaint)!==null&&x!==void 0?x:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new $S(l,t,d),p=h.clonedReferenceElement,p?[4,h.toIFrame(n,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=re.sent(),v=Sv(p)||Aq(p)?_8(p.ownerDocument):Vd(l,p),B=v.width,y=v.height,w=v.left,C=v.top,S=AX(l,p,e.backgroundColor),Q={canvas:e.canvas,backgroundColor:S,scale:(P=(T=e.scale)!==null&&T!==void 0?T:r.devicePixelRatio)!==null&&P!==void 0?P:1,x:((F=e.x)!==null&&F!==void 0?F:0)+w,y:((E=e.y)!==null&&E!==void 0?E:0)+C,width:(W=e.width)!==null&&W!==void 0?W:Math.ceil(B),height:(ne=e.height)!==null&&ne!==void 0?ne:Math.ceil(y)},u?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Zq(l,Q),[4,I.render(p)]):[3,3];case 2:return _=re.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+w+","+C+" with size "+B+"x"+y+" using computed rendering"),l.logger.debug("Starting DOM parsing"),D=SS(l,p),S===D.styles.backgroundColor&&(D.styles.backgroundColor=Ri.TRANSPARENT),l.logger.debug("Starting renderer for element at "+Q.x+","+Q.y+" with size "+Q.width+"x"+Q.height),I=new Gq(l,Q),[4,I.render(D)];case 4:_=re.sent(),re.label=5;case 5:return(!((X=e.removeContainer)!==null&&X!==void 0)||X)&&($S.destroy(m)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,_]}})})},AX=function(t,e,n){var r=e.ownerDocument,A=r.documentElement?wc(t,getComputedStyle(r.documentElement).backgroundColor):Ri.TRANSPARENT,i=r.body?wc(t,getComputedStyle(r.body).backgroundColor):Ri.TRANSPARENT,o=typeof n=="string"?wc(t,n):n===null?Ri.TRANSPARENT:4294967295;return e===r.documentElement?Do(A)?Do(i)?o:i:A:o};const iX=s.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},pending:{type:Boolean,default:!1},emitPending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(""),o=s.ref(),a=s.ref(!0);async function l(){if(!A.value||!a.value)return"";const d=A.value;if(!d.isConnected)return"";try{n.emitPending&&r("update:pending",!0);const h=d.firstElementChild;if(!h)return"";const p=await nX(h,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,...n.options});if(!a.value||!A.value||!d.isConnected)return"";const m=p.toDataURL();if(r("update:modelValue",m),n.emitPending&&r("update:pending",!1),n.debug){const v=new Image;v.src=m,document.body.appendChild(v)}return m}catch(h){return a.value&&n.emitPending&&r("update:pending",!1),console.warn("dom-renderer: Render failed",h),""}}const u=_g.debounce(async()=>{i.value=await l()},300,{trailing:!0,leading:!1});return s.onMounted(()=>{const d=A.value;n.renderUpdates&&(o.value=new MutationObserver(async h=>{!a.value||!d.isConnected||(n.emitPending&&r("update:pending",!0),u())}),o.value.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{n.emitPending&&r("update:pending",!0),u()},500)}),s.onBeforeUnmount(()=>{a.value=!1,o.value&&o.value.disconnect(),u.cancel()}),(d,h)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:A,style:s.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[s.renderSlot(d.$slots,"default")],6))}});var Gf={exports:{}},oX=Gf.exports,ex;function sX(){return ex||(ex=1,(function(t,e){(function(n,r){t.exports=r()})(oX,(()=>(()=>{var n={873:(o,a)=>{var l,u,d=(function(){var h=function(te,V){var q=te,x=w[V],T=null,P=0,F=null,E=[],W={},ne=function(K,N){T=(function(R){for(var J=new Array(R),z=0;z<R;z+=1){J[z]=new Array(R);for(var ce=0;ce<R;ce+=1)J[z][ce]=null}return J})(P=4*q+17),X(0,0),X(P-7,0),X(0,P-7),ie(),re(),le(K,N),q>=7&&pe(K),F==null&&(F=G(q,x,E)),Ce(F,N)},X=function(K,N){for(var R=-1;R<=7;R+=1)if(!(K+R<=-1||P<=K+R))for(var J=-1;J<=7;J+=1)N+J<=-1||P<=N+J||(T[K+R][N+J]=0<=R&&R<=6&&(J==0||J==6)||0<=J&&J<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=J&&J<=4)},re=function(){for(var K=8;K<P-8;K+=1)T[K][6]==null&&(T[K][6]=K%2==0);for(var N=8;N<P-8;N+=1)T[6][N]==null&&(T[6][N]=N%2==0)},ie=function(){for(var K=C.getPatternPosition(q),N=0;N<K.length;N+=1)for(var R=0;R<K.length;R+=1){var J=K[N],z=K[R];if(T[J][z]==null)for(var ce=-2;ce<=2;ce+=1)for(var k=-2;k<=2;k+=1)T[J+ce][z+k]=ce==-2||ce==2||k==-2||k==2||ce==0&&k==0}},pe=function(K){for(var N=C.getBCHTypeNumber(q),R=0;R<18;R+=1){var J=!K&&(N>>R&1)==1;T[Math.floor(R/3)][R%3+P-8-3]=J}for(R=0;R<18;R+=1)J=!K&&(N>>R&1)==1,T[R%3+P-8-3][Math.floor(R/3)]=J},le=function(K,N){for(var R=x<<3|N,J=C.getBCHTypeInfo(R),z=0;z<15;z+=1){var ce=!K&&(J>>z&1)==1;z<6?T[z][8]=ce:z<8?T[z+1][8]=ce:T[P-15+z][8]=ce}for(z=0;z<15;z+=1)ce=!K&&(J>>z&1)==1,z<8?T[8][P-z-1]=ce:z<9?T[8][15-z-1+1]=ce:T[8][15-z-1]=ce;T[P-8][8]=!K},Ce=function(K,N){for(var R=-1,J=P-1,z=7,ce=0,k=C.getMaskFunction(N),U=P-1;U>0;U-=2)for(U==6&&(U-=1);;){for(var O=0;O<2;O+=1)if(T[J][U-O]==null){var se=!1;ce<K.length&&(se=(K[ce]>>>z&1)==1),k(J,U-O)&&(se=!se),T[J][U-O]=se,(z-=1)==-1&&(ce+=1,z=7)}if((J+=R)<0||P<=J){J-=R,R=-R;break}}},G=function(K,N,R){for(var J=_.getRSBlocks(K,N),z=D(),ce=0;ce<R.length;ce+=1){var k=R[ce];z.put(k.getMode(),4),z.put(k.getLength(),C.getLengthInBits(k.getMode(),K)),k.write(z)}var U=0;for(ce=0;ce<J.length;ce+=1)U+=J[ce].dataCount;if(z.getLengthInBits()>8*U)throw"code length overflow. ("+z.getLengthInBits()+">"+8*U+")";for(z.getLengthInBits()+4<=8*U&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=8*U||(z.put(236,8),z.getLengthInBits()>=8*U));)z.put(17,8);return(function(O,se){for(var j=0,be=0,Be=0,ae=new Array(se.length),he=new Array(se.length),xe=0;xe<se.length;xe+=1){var Pe=se[xe].dataCount,ot=se[xe].totalCount-Pe;be=Math.max(be,Pe),Be=Math.max(Be,ot),ae[xe]=new Array(Pe);for(var $e=0;$e<ae[xe].length;$e+=1)ae[xe][$e]=255&O.getBuffer()[$e+j];j+=Pe;var ht=C.getErrorCorrectPolynomial(ot),wt=Q(ae[xe],ht.getLength()-1).mod(ht);for(he[xe]=new Array(ht.getLength()-1),$e=0;$e<he[xe].length;$e+=1){var Et=$e+wt.getLength()-he[xe].length;he[xe][$e]=Et>=0?wt.getAt(Et):0}}var En=0;for($e=0;$e<se.length;$e+=1)En+=se[$e].totalCount;var Yt=new Array(En),Kt=0;for($e=0;$e<be;$e+=1)for(xe=0;xe<se.length;xe+=1)$e<ae[xe].length&&(Yt[Kt]=ae[xe][$e],Kt+=1);for($e=0;$e<Be;$e+=1)for(xe=0;xe<se.length;xe+=1)$e<he[xe].length&&(Yt[Kt]=he[xe][$e],Kt+=1);return Yt})(z,J)};W.addData=function(K,N){var R=null;switch(N=N||"Byte"){case"Numeric":R=I(K);break;case"Alphanumeric":R=$(K);break;case"Byte":R=Y(K);break;case"Kanji":R=de(K);break;default:throw"mode:"+N}E.push(R),F=null},W.isDark=function(K,N){if(K<0||P<=K||N<0||P<=N)throw K+","+N;return T[K][N]},W.getModuleCount=function(){return P},W.make=function(){if(q<1){for(var K=1;K<40;K++){for(var N=_.getRSBlocks(K,x),R=D(),J=0;J<E.length;J++){var z=E[J];R.put(z.getMode(),4),R.put(z.getLength(),C.getLengthInBits(z.getMode(),K)),z.write(R)}var ce=0;for(J=0;J<N.length;J++)ce+=N[J].dataCount;if(R.getLengthInBits()<=8*ce)break}q=K}ne(!1,(function(){for(var k=0,U=0,O=0;O<8;O+=1){ne(!0,O);var se=C.getLostPoint(W);(O==0||k>se)&&(k=se,U=O)}return U})())},W.createTableTag=function(K,N){K=K||2;var R="";R+='<table style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: "+(N=N===void 0?4*K:N)+"px;",R+='">',R+="<tbody>";for(var J=0;J<W.getModuleCount();J+=1){R+="<tr>";for(var z=0;z<W.getModuleCount();z+=1)R+='<td style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: 0px;",R+=" width: "+K+"px;",R+=" height: "+K+"px;",R+=" background-color: ",R+=W.isDark(J,z)?"#000000":"#ffffff",R+=";",R+='"/>';R+="</tr>"}return(R+="</tbody>")+"</table>"},W.createSvgTag=function(K,N,R,J){var z={};typeof arguments[0]=="object"&&(K=(z=arguments[0]).cellSize,N=z.margin,R=z.alt,J=z.title),K=K||2,N=N===void 0?4*K:N,(R=typeof R=="string"?{text:R}:R||{}).text=R.text||null,R.id=R.text?R.id||"qrcode-description":null,(J=typeof J=="string"?{text:J}:J||{}).text=J.text||null,J.id=J.text?J.id||"qrcode-title":null;var ce,k,U,O,se=W.getModuleCount()*K+2*N,j="";for(O="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",j+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',j+=z.scalable?"":' width="'+se+'px" height="'+se+'px"',j+=' viewBox="0 0 '+se+" "+se+'" ',j+=' preserveAspectRatio="xMinYMin meet"',j+=J.text||R.text?' role="img" aria-labelledby="'+ee([J.id,R.id].join(" ").trim())+'"':"",j+=">",j+=J.text?'<title id="'+ee(J.id)+'">'+ee(J.text)+"</title>":"",j+=R.text?'<description id="'+ee(R.id)+'">'+ee(R.text)+"</description>":"",j+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',j+='<path d="',k=0;k<W.getModuleCount();k+=1)for(U=k*K+N,ce=0;ce<W.getModuleCount();ce+=1)W.isDark(k,ce)&&(j+="M"+(ce*K+N)+","+U+O);return(j+='" stroke="transparent" fill="black"/>')+"</svg>"},W.createDataURL=function(K,N){K=K||2,N=N===void 0?4*K:N;var R=W.getModuleCount()*K+2*N,J=N,z=R-N;return we(R,R,(function(ce,k){if(J<=ce&&ce<z&&J<=k&&k<z){var U=Math.floor((ce-J)/K),O=Math.floor((k-J)/K);return W.isDark(O,U)?0:1}return 1}))},W.createImgTag=function(K,N,R){K=K||2,N=N===void 0?4*K:N;var J=W.getModuleCount()*K+2*N,z="";return z+="<img",z+=' src="',z+=W.createDataURL(K,N),z+='"',z+=' width="',z+=J,z+='"',z+=' height="',z+=J,z+='"',R&&(z+=' alt="',z+=ee(R),z+='"'),z+"/>"};var ee=function(K){for(var N="",R=0;R<K.length;R+=1){var J=K.charAt(R);switch(J){case"<":N+="<";break;case">":N+=">";break;case"&":N+="&";break;case'"':N+=""";break;default:N+=J}}return N};return W.createASCII=function(K,N){if((K=K||1)<2)return(function(ae){ae=ae===void 0?2:ae;var he,xe,Pe,ot,$e,ht=1*W.getModuleCount()+2*ae,wt=ae,Et=ht-ae,En={"██":"█","█ ":"▀"," █":"▄"," ":" "},Yt={"██":"▀","█ ":"▀"," █":" "," ":" "},Kt="";for(he=0;he<ht;he+=2){for(Pe=Math.floor((he-wt)/1),ot=Math.floor((he+1-wt)/1),xe=0;xe<ht;xe+=1)$e="█",wt<=xe&&xe<Et&&wt<=he&&he<Et&&W.isDark(Pe,Math.floor((xe-wt)/1))&&($e=" "),wt<=xe&&xe<Et&&wt<=he+1&&he+1<Et&&W.isDark(ot,Math.floor((xe-wt)/1))?$e+=" ":$e+="█",Kt+=ae<1&&he+1>=Et?Yt[$e]:En[$e];Kt+=`
|
|
171
|
+
}`,wq=function(t){Bq(t,"."+Tv+gq+zS+`
|
|
172
|
+
.`+Mv+vq+zS)},Bq=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},WS=(function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t})(),yq=(function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(Uv(e)||kq(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return vr(this,void 0,void 0,function(){var n,r,A,i,o=this;return rr(this,function(a){switch(a.label){case 0:return n=WS.isSameOrigin(e),r=!Iv(e)&&this._options.useCORS===!0&&Gn.SUPPORT_CORS_IMAGES&&!n,A=!Iv(e)&&!n&&!Uv(e)&&typeof this._options.proxy=="string"&&Gn.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!Iv(e)&&!Uv(e)&&!A&&!r?[2]:(i=e,A?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,u){var d=new Image;d.onload=function(){return l(d)},d.onerror=u,(Sq(i)||r)&&(d.crossOrigin="anonymous"),d.src=i,d.complete===!0&&setTimeout(function(){return l(d)},500),o._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var A=e.substring(0,256);return new Promise(function(i,o){var a=Gn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(a==="text")i(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(p){return o(p)},!1),h.readAsDataURL(l.response)}else o("Failed to proxy resource "+A+" with status code "+l.status)},l.onerror=o;var u=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=a),n._options.imageTimeout){var d=n._options.imageTimeout;l.timeout=d,l.ontimeout=function(){return o("Timed out ("+d+"ms) proxying "+A)}}l.send()})},t})(),Cq=/^data:image\/svg\+xml/i,bq=/^data:image\/.*;base64,/i,Eq=/^data:image\/.*/i,kq=function(t){return Gn.SUPPORT_SVG_DRAWING||!xq(t)},Iv=function(t){return Eq.test(t)},Sq=function(t){return bq.test(t)},Uv=function(t){return t.substr(0,4)==="blob"},xq=function(t){return t.substr(-3).toLowerCase()==="svg"||Cq.test(t)},_e=(function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t})(),Ia=function(t,e,n){return new _e(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Rf=(function(){function t(e,n,r,A){this.type=1,this.start=e,this.startControl=n,this.endControl=r,this.end=A}return t.prototype.subdivide=function(e,n){var r=Ia(this.start,this.startControl,e),A=Ia(this.startControl,this.endControl,e),i=Ia(this.endControl,this.end,e),o=Ia(r,A,e),a=Ia(A,i,e),l=Ia(o,a,e);return n?new t(this.start,r,o,l):new t(l,a,i,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t})(),sA=function(t){return t.type===1},Fq=(function(){function t(e){var n=e.styles,r=e.bounds,A=vc(n.borderTopLeftRadius,r.width,r.height),i=A[0],o=A[1],a=vc(n.borderTopRightRadius,r.width,r.height),l=a[0],u=a[1],d=vc(n.borderBottomRightRadius,r.width,r.height),h=d[0],p=d[1],m=vc(n.borderBottomLeftRadius,r.width,r.height),v=m[0],B=m[1],y=[];y.push((i+l)/r.width),y.push((v+h)/r.width),y.push((o+B)/r.height),y.push((u+p)/r.height);var w=Math.max.apply(Math,y);w>1&&(i/=w,o/=w,l/=w,u/=w,h/=w,p/=w,v/=w,B/=w);var C=r.width-l,S=r.height-p,Q=r.width-h,_=r.height-B,D=n.borderTopWidth,I=n.borderRightWidth,$=n.borderBottomWidth,Y=n.borderLeftWidth,de=$t(n.paddingTop,e.bounds.width),ge=$t(n.paddingRight,e.bounds.width),me=$t(n.paddingBottom,e.bounds.width),we=$t(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?jt(r.left+Y/3,r.top+D/3,i-Y/3,o-D/3,Mt.TOP_LEFT):new _e(r.left+Y/3,r.top+D/3),this.topRightBorderDoubleOuterBox=i>0||o>0?jt(r.left+C,r.top+D/3,l-I/3,u-D/3,Mt.TOP_RIGHT):new _e(r.left+r.width-I/3,r.top+D/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?jt(r.left+Q,r.top+S,h-I/3,p-$/3,Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I/3,r.top+r.height-$/3),this.bottomLeftBorderDoubleOuterBox=v>0||B>0?jt(r.left+Y/3,r.top+_,v-Y/3,B-$/3,Mt.BOTTOM_LEFT):new _e(r.left+Y/3,r.top+r.height-$/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?jt(r.left+Y*2/3,r.top+D*2/3,i-Y*2/3,o-D*2/3,Mt.TOP_LEFT):new _e(r.left+Y*2/3,r.top+D*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?jt(r.left+C,r.top+D*2/3,l-I*2/3,u-D*2/3,Mt.TOP_RIGHT):new _e(r.left+r.width-I*2/3,r.top+D*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?jt(r.left+Q,r.top+S,h-I*2/3,p-$*2/3,Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I*2/3,r.top+r.height-$*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||B>0?jt(r.left+Y*2/3,r.top+_,v-Y*2/3,B-$*2/3,Mt.BOTTOM_LEFT):new _e(r.left+Y*2/3,r.top+r.height-$*2/3),this.topLeftBorderStroke=i>0||o>0?jt(r.left+Y/2,r.top+D/2,i-Y/2,o-D/2,Mt.TOP_LEFT):new _e(r.left+Y/2,r.top+D/2),this.topRightBorderStroke=i>0||o>0?jt(r.left+C,r.top+D/2,l-I/2,u-D/2,Mt.TOP_RIGHT):new _e(r.left+r.width-I/2,r.top+D/2),this.bottomRightBorderStroke=h>0||p>0?jt(r.left+Q,r.top+S,h-I/2,p-$/2,Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I/2,r.top+r.height-$/2),this.bottomLeftBorderStroke=v>0||B>0?jt(r.left+Y/2,r.top+_,v-Y/2,B-$/2,Mt.BOTTOM_LEFT):new _e(r.left+Y/2,r.top+r.height-$/2),this.topLeftBorderBox=i>0||o>0?jt(r.left,r.top,i,o,Mt.TOP_LEFT):new _e(r.left,r.top),this.topRightBorderBox=l>0||u>0?jt(r.left+C,r.top,l,u,Mt.TOP_RIGHT):new _e(r.left+r.width,r.top),this.bottomRightBorderBox=h>0||p>0?jt(r.left+Q,r.top+S,h,p,Mt.BOTTOM_RIGHT):new _e(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=v>0||B>0?jt(r.left,r.top+_,v,B,Mt.BOTTOM_LEFT):new _e(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||o>0?jt(r.left+Y,r.top+D,Math.max(0,i-Y),Math.max(0,o-D),Mt.TOP_LEFT):new _e(r.left+Y,r.top+D),this.topRightPaddingBox=l>0||u>0?jt(r.left+Math.min(C,r.width-I),r.top+D,C>r.width+I?0:Math.max(0,l-I),Math.max(0,u-D),Mt.TOP_RIGHT):new _e(r.left+r.width-I,r.top+D),this.bottomRightPaddingBox=h>0||p>0?jt(r.left+Math.min(Q,r.width-Y),r.top+Math.min(S,r.height-$),Math.max(0,h-I),Math.max(0,p-$),Mt.BOTTOM_RIGHT):new _e(r.left+r.width-I,r.top+r.height-$),this.bottomLeftPaddingBox=v>0||B>0?jt(r.left+Y,r.top+Math.min(_,r.height-$),Math.max(0,v-Y),Math.max(0,B-$),Mt.BOTTOM_LEFT):new _e(r.left+Y,r.top+r.height-$),this.topLeftContentBox=i>0||o>0?jt(r.left+Y+we,r.top+D+de,Math.max(0,i-(Y+we)),Math.max(0,o-(D+de)),Mt.TOP_LEFT):new _e(r.left+Y+we,r.top+D+de),this.topRightContentBox=l>0||u>0?jt(r.left+Math.min(C,r.width+Y+we),r.top+D+de,C>r.width+Y+we?0:l-Y+we,u-(D+de),Mt.TOP_RIGHT):new _e(r.left+r.width-(I+ge),r.top+D+de),this.bottomRightContentBox=h>0||p>0?jt(r.left+Math.min(Q,r.width-(Y+we)),r.top+Math.min(S,r.height+D+de),Math.max(0,h-(I+ge)),p-($+me),Mt.BOTTOM_RIGHT):new _e(r.left+r.width-(I+ge),r.top+r.height-($+me)),this.bottomLeftContentBox=v>0||B>0?jt(r.left+Y+we,r.top+_,Math.max(0,v-(Y+we)),B-($+me),Mt.BOTTOM_LEFT):new _e(r.left+Y+we,r.top+r.height-($+me))}return t})(),Mt;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Mt||(Mt={}));var jt=function(t,e,n,r,A){var i=4*((Math.sqrt(2)-1)/3),o=n*i,a=r*i,l=t+n,u=e+r;switch(A){case Mt.TOP_LEFT:return new Rf(new _e(t,u),new _e(t,u-a),new _e(l-o,e),new _e(l,e));case Mt.TOP_RIGHT:return new Rf(new _e(t,e),new _e(t+o,e),new _e(l,u-a),new _e(l,u));case Mt.BOTTOM_RIGHT:return new Rf(new _e(l,e),new _e(l,e+a),new _e(t+o,u),new _e(t,u));case Mt.BOTTOM_LEFT:default:return new Rf(new _e(l,u),new _e(l-o,u),new _e(t,e+a),new _e(t,e))}},Hf=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Qq=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Pf=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Tq=(function(){function t(e,n,r){this.offsetX=e,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return t})(),$f=(function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t})(),Mq=(function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t})(),Iq=function(t){return t.type===0},GS=function(t){return t.type===1},Uq=function(t){return t.type===2},YS=function(t,e){return t.length===e.length?t.some(function(n,r){return n===e[r]}):!1},_q=function(t,e,n,r,A){return t.map(function(i,o){switch(o){case 0:return i.add(e,n);case 1:return i.add(e+r,n);case 2:return i.add(e+r,n+A);case 3:return i.add(e,n+A)}return i})},qS=(function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t})(),XS=(function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new Fq(this.container),this.container.styles.opacity<1&&this.effects.push(new Mq(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Tq(r,A,i))}if(this.container.styles.overflowX!==0){var o=Hf(this.curves),a=Pf(this.curves);YS(o,a)?this.effects.push(new $f(o,6)):(this.effects.push(new $f(o,2)),this.effects.push(new $f(a,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,A=this.effects.slice(0);r;){var i=r.effects.filter(function(l){return!GS(l)});if(n||r.container.styles.position!==0||!r.parent){if(A.unshift.apply(A,i),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=Hf(r.curves),a=Pf(r.curves);YS(o,a)||A.unshift(new $f(a,6))}}else A.unshift.apply(A,i);r=r.parent}return A.filter(function(l){return Fn(l.target,e)})},t})(),_v=function(t,e,n,r){t.container.elements.forEach(function(A){var i=Fn(A.flags,4),o=Fn(A.flags,2),a=new XS(A,t);Fn(A.styles.display,2048)&&r.push(a);var l=Fn(A.flags,8)?[]:r;if(i||o){var u=i||A.styles.isPositioned()?n:e,d=new qS(a);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var h=A.styles.zIndex.order;if(h<0){var p=0;u.negativeZIndex.some(function(v,B){return h>v.element.container.styles.zIndex.order?(p=B,!1):p>0}),u.negativeZIndex.splice(p,0,d)}else if(h>0){var m=0;u.positiveZIndex.some(function(v,B){return h>=v.element.container.styles.zIndex.order?(m=B+1,!1):m>0}),u.positiveZIndex.splice(m,0,d)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else A.styles.isFloating()?u.nonPositionedFloats.push(d):u.nonPositionedInlineLevel.push(d);_v(a,d,i?d:n,l)}else A.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),_v(a,e,n,l);Fn(A.flags,8)&&JS(A,l)})},JS=function(t,e){for(var n=t instanceof bv?t.start:1,r=t instanceof bv?t.reversed:!1,A=0;A<e.length;A++){var i=e[A];i.container instanceof yS&&typeof i.container.value=="number"&&i.container.value!==0&&(n=i.container.value),i.listValue=Ec(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},Dq=function(t){var e=new XS(t,null),n=new qS(e),r=[];return _v(e,n,n,r),JS(e.container,r),n},jS=function(t,e){switch(e){case 0:return aA(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return aA(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return aA(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return aA(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Oq=function(t,e){switch(e){case 0:return aA(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return aA(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return aA(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return aA(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Nq=function(t,e){switch(e){case 0:return aA(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return aA(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return aA(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return aA(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Lq=function(t,e){switch(e){case 0:return Kf(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Kf(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Kf(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Kf(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Kf=function(t,e){var n=[];return sA(t)?n.push(t.subdivide(.5,!1)):n.push(t),sA(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},aA=function(t,e,n,r){var A=[];return sA(t)?A.push(t.subdivide(.5,!1)):A.push(t),sA(n)?A.push(n.subdivide(.5,!0)):A.push(n),sA(r)?A.push(r.subdivide(.5,!0).reverse()):A.push(r),sA(e)?A.push(e.subdivide(.5,!1).reverse()):A.push(e),A},ZS=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},zf=function(t){var e=t.styles,n=t.bounds,r=$t(e.paddingLeft,n.width),A=$t(e.paddingRight,n.width),i=$t(e.paddingTop,n.width),o=$t(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+A),-(e.borderTopWidth+e.borderBottomWidth+i+o))},Rq=function(t,e){return t===0?e.bounds:t===2?zf(e):ZS(e)},Hq=function(t,e){return t===0?e.bounds:t===2?zf(e):ZS(e)},Dv=function(t,e,n){var r=Rq(_a(t.styles.backgroundOrigin,e),t),A=Hq(_a(t.styles.backgroundClip,e),t),i=Pq(_a(t.styles.backgroundSize,e),n,r),o=i[0],a=i[1],l=vc(_a(t.styles.backgroundPosition,e),r.width-o,r.height-a),u=$q(_a(t.styles.backgroundRepeat,e),l,i,r,A),d=Math.round(r.left+l[0]),h=Math.round(r.top+l[1]);return[u,d,h,o,a]},Ua=function(t){return Rt(t)&&t.value===Fa.AUTO},Wf=function(t){return typeof t=="number"},Pq=function(t,e,n){var r=e[0],A=e[1],i=e[2],o=t[0],a=t[1];if(!o)return[0,0];if(bn(o)&&a&&bn(a))return[$t(o,n.width),$t(a,n.height)];var l=Wf(i);if(Rt(o)&&(o.value===Fa.CONTAIN||o.value===Fa.COVER)){if(Wf(i)){var u=n.width/n.height;return u<i!=(o.value===Fa.COVER)?[n.width,n.width/i]:[n.height*i,n.height]}return[n.width,n.height]}var d=Wf(r),h=Wf(A),p=d||h;if(Ua(o)&&(!a||Ua(a))){if(d&&h)return[r,A];if(!l&&!p)return[n.width,n.height];if(p&&l){var m=d?r:A*i,v=h?A:r/i;return[m,v]}var B=d?r:n.width,y=h?A:n.height;return[B,y]}if(l){var w=0,C=0;return bn(o)?w=$t(o,n.width):bn(a)&&(C=$t(a,n.height)),Ua(o)?w=C*i:(!a||Ua(a))&&(C=w/i),[w,C]}var S=null,Q=null;if(bn(o)?S=$t(o,n.width):a&&bn(a)&&(Q=$t(a,n.height)),S!==null&&(!a||Ua(a))&&(Q=d&&h?S/r*A:n.height),Q!==null&&Ua(o)&&(S=d&&h?Q/A*r:n.width),S!==null&&Q!==null)return[S,Q];throw new Error("Unable to calculate background-size for element")},_a=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},$q=function(t,e,n,r,A){var i=e[0],o=e[1],a=n[0],l=n[1];switch(t){case 2:return[new _e(Math.round(r.left),Math.round(r.top+o)),new _e(Math.round(r.left+r.width),Math.round(r.top+o)),new _e(Math.round(r.left+r.width),Math.round(l+r.top+o)),new _e(Math.round(r.left),Math.round(l+r.top+o))];case 3:return[new _e(Math.round(r.left+i),Math.round(r.top)),new _e(Math.round(r.left+i+a),Math.round(r.top)),new _e(Math.round(r.left+i+a),Math.round(r.height+r.top)),new _e(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new _e(Math.round(r.left+i),Math.round(r.top+o)),new _e(Math.round(r.left+i+a),Math.round(r.top+o)),new _e(Math.round(r.left+i+a),Math.round(r.top+o+l)),new _e(Math.round(r.left+i),Math.round(r.top+o+l))];default:return[new _e(Math.round(A.left),Math.round(A.top)),new _e(Math.round(A.left+A.width),Math.round(A.top)),new _e(Math.round(A.left+A.width),Math.round(A.height+A.top)),new _e(Math.round(A.left),Math.round(A.height+A.top))]}},Kq="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",VS="Hidden Text",zq=(function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var r=this._document.createElement("div"),A=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),A.src=Kq,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=n,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(VS)),r.appendChild(i),r.appendChild(A);var a=A.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(VS)),r.style.lineHeight="normal",A.style.verticalAlign="super";var l=A.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:l}},t.prototype.getMetrics=function(e,n){var r=e+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,n)),this._data[r]},t})(),ex=(function(){function t(e,n){this.context=e,this.options=n}return t})(),Wq=1e4,Gq=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A._activeEffects=[],A.canvas=r.canvas?r.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),r.canvas||(A.canvas.width=Math.floor(r.width*r.scale),A.canvas.height=Math.floor(r.height*r.scale),A.canvas.style.width=r.width+"px",A.canvas.style.height=r.height+"px"),A.fontMetrics=new zq(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-r.x,-r.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),A}return e.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(A){return r.applyEffect(A)})},e.prototype.applyEffect=function(n){this.ctx.save(),Uq(n)&&(this.ctx.globalAlpha=n.opacity),Iq(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),GS(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return vr(this,void 0,void 0,function(){var r;return rr(this,function(A){switch(A.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return vr(this,void 0,void 0,function(){return rr(this,function(r){switch(r.label){case 0:if(Fn(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,r,A){var i=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+A);else{var o=Cv(n.text);o.reduce(function(a,l){return i.ctx.fillText(l,a,n.bounds.top+A),a+i.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),A=jq(n.fontFamily).join(", "),i=gc(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,i,A].join(" "),A,i]},e.prototype.renderTextNode=function(n,r){return vr(this,void 0,void 0,function(){var A,i,o,a,l,u,d,h,p=this;return rr(this,function(m){return A=this.createFontStyle(r),i=A[0],o=A[1],a=A[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,a),u=l.baseline,d=l.middle,h=r.paintOrder,n.textBounds.forEach(function(v){h.forEach(function(B){switch(B){case 0:p.ctx.fillStyle=Ln(r.color),p.renderTextWithLetterSpacing(v,r.letterSpacing,u);var y=r.textShadow;y.length&&v.text.trim().length&&(y.slice(0).reverse().forEach(function(w){p.ctx.shadowColor=Ln(w.color),p.ctx.shadowOffsetX=w.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=w.offsetY.number*p.options.scale,p.ctx.shadowBlur=w.blur.number,p.renderTextWithLetterSpacing(v,r.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),r.textDecorationLine.length&&(p.ctx.fillStyle=Ln(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(w){switch(w){case 1:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+u),v.bounds.width,1);break;case 2:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:p.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+d),v.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&v.text.trim().length&&(p.ctx.strokeStyle=Ln(r.webkitTextStrokeColor),p.ctx.lineWidth=r.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,r,A){if(A&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var i=zf(n),o=Pf(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,n.intrinsicWidth,n.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return vr(this,void 0,void 0,function(){var r,A,i,o,a,l,C,C,u,d,h,p,Q,m,v,_,B,y,w,C,S,Q,_;return rr(this,function(D){switch(D.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,A=n.curves,i=r.styles,o=0,a=r.textNodes,D.label=1;case 1:return o<a.length?(l=a[o],[4,this.renderTextNode(l,i)]):[3,4];case 2:D.sent(),D.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof vS))return[3,8];D.label=5;case 5:return D.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return C=D.sent(),this.renderReplacedElement(r,A,C),[3,8];case 7:return D.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof wS&&this.renderReplacedElement(r,A,r.canvas),!(r instanceof BS))return[3,12];D.label=9;case 9:return D.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return C=D.sent(),this.renderReplacedElement(r,A,C),[3,12];case 11:return D.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof kS&&r.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,u.render(r.tree)]):[3,14];case 13:d=D.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),D.label=14;case 14:if(r instanceof Ev&&(h=Math.min(r.bounds.width,r.bounds.height),r.type===Uf?r.checked&&(this.ctx.save(),this.path([new _e(r.bounds.left+h*.39363,r.bounds.top+h*.79),new _e(r.bounds.left+h*.16,r.bounds.top+h*.5549),new _e(r.bounds.left+h*.27347,r.bounds.top+h*.44071),new _e(r.bounds.left+h*.39694,r.bounds.top+h*.5649),new _e(r.bounds.left+h*.72983,r.bounds.top+h*.23),new _e(r.bounds.left+h*.84,r.bounds.top+h*.34085),new _e(r.bounds.left+h*.39363,r.bounds.top+h*.79)]),this.ctx.fillStyle=Ln(CS),this.ctx.fill(),this.ctx.restore()):r.type===_f&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+h/2,r.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ln(CS),this.ctx.fill(),this.ctx.restore())),Yq(r)&&r.value.length){switch(p=this.createFontStyle(i),Q=p[0],m=p[1],v=this.fontMetrics.getMetrics(Q,m).baseline,this.ctx.font=Q,this.ctx.fillStyle=Ln(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Xq(r.styles.textAlign),_=zf(r),B=0,r.styles.textAlign){case 1:B+=_.width/2;break;case 2:B+=_.width;break}y=_.add(B,0,0,-_.height/2+1),this.ctx.save(),this.path([new _e(_.left,_.top),new _e(_.left+_.width,_.top),new _e(_.left+_.width,_.top+_.height),new _e(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cc(r.value,y),i.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fn(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(w=r.styles.listStyleImage,w.type!==0)return[3,18];C=void 0,S=w.url,D.label=15;case 15:return D.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return C=D.sent(),this.ctx.drawImage(C,r.bounds.left-(C.width+10),r.bounds.top),[3,18];case 17:return D.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(Q=this.createFontStyle(i)[0],this.ctx.font=Q,this.ctx.fillStyle=Ln(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_=new Ni(r.bounds.left,r.bounds.top+$t(r.styles.paddingTop,r.bounds.width),r.bounds.width,Vk(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cc(n.listValue,_),i.letterSpacing,Vk(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),D.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return vr(this,void 0,void 0,function(){var r,A,w,i,o,w,a,l,w,u,d,w,h,p,w,m,v,w,B,y,w;return rr(this,function(C){switch(C.label){case 0:if(Fn(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:C.sent(),r=0,A=n.negativeZIndex,C.label=2;case 2:return r<A.length?(w=A[r],[4,this.renderStack(w)]):[3,5];case 3:C.sent(),C.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:C.sent(),i=0,o=n.nonInlineLevel,C.label=7;case 7:return i<o.length?(w=o[i],[4,this.renderNode(w)]):[3,10];case 8:C.sent(),C.label=9;case 9:return i++,[3,7];case 10:a=0,l=n.nonPositionedFloats,C.label=11;case 11:return a<l.length?(w=l[a],[4,this.renderStack(w)]):[3,14];case 12:C.sent(),C.label=13;case 13:return a++,[3,11];case 14:u=0,d=n.nonPositionedInlineLevel,C.label=15;case 15:return u<d.length?(w=d[u],[4,this.renderStack(w)]):[3,18];case 16:C.sent(),C.label=17;case 17:return u++,[3,15];case 18:h=0,p=n.inlineLevel,C.label=19;case 19:return h<p.length?(w=p[h],[4,this.renderNode(w)]):[3,22];case 20:C.sent(),C.label=21;case 21:return h++,[3,19];case 22:m=0,v=n.zeroOrAutoZIndexOrTransformedOrOpacity,C.label=23;case 23:return m<v.length?(w=v[m],[4,this.renderStack(w)]):[3,26];case 24:C.sent(),C.label=25;case 25:return m++,[3,23];case 26:B=0,y=n.positiveZIndex,C.label=27;case 27:return B<y.length?(w=y[B],[4,this.renderStack(w)]):[3,30];case 28:C.sent(),C.label=29;case 29:return B++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var r=this;n.forEach(function(A,i){var o=sA(A)?A.start:A;i===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),sA(A)&&r.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},e.prototype.renderRepeat=function(n,r,A,i){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(A,i),this.ctx.fill(),this.ctx.translate(-A,-i)},e.prototype.resizeImage=function(n,r,A){var i;if(n.width===r&&n.height===A)return n;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=o.createElement("canvas");a.width=Math.max(1,r),a.height=Math.max(1,A);var l=a.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,A),a},e.prototype.renderBackgroundImage=function(n){return vr(this,void 0,void 0,function(){var r,A,i,o,a,l;return rr(this,function(u){switch(u.label){case 0:r=n.styles.backgroundImage.length-1,A=function(d){var h,p,m,de,q,x,we,te,$,v,de,q,x,we,te,B,y,w,C,S,Q,_,D,I,$,Y,de,ge,me,we,te,V,q,x,T,P,F,E,W,ne,X,re;return rr(this,function(Ae){switch(Ae.label){case 0:if(d.type!==0)return[3,5];h=void 0,p=d.url,Ae.label=1;case 1:return Ae.trys.push([1,3,,4]),[4,i.context.cache.match(p)];case 2:return h=Ae.sent(),[3,4];case 3:return Ae.sent(),i.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(m=Dv(n,r,[h.width,h.height,h.width/h.height]),de=m[0],q=m[1],x=m[2],we=m[3],te=m[4],$=i.ctx.createPattern(i.resizeImage(h,we,te),"repeat"),i.renderRepeat(de,$,q,x)),[3,6];case 5:IG(d)?(v=Dv(n,r,[null,null,null]),de=v[0],q=v[1],x=v[2],we=v[3],te=v[4],B=xG(d.angle,we,te),y=B[0],w=B[1],C=B[2],S=B[3],Q=B[4],_=document.createElement("canvas"),_.width=we,_.height=te,D=_.getContext("2d"),I=D.createLinearGradient(w,S,C,Q),$k(d.stops,y).forEach(function(pe){return I.addColorStop(pe.stop,Ln(pe.color))}),D.fillStyle=I,D.fillRect(0,0,we,te),we>0&&te>0&&($=i.ctx.createPattern(_,"repeat"),i.renderRepeat(de,$,q,x))):UG(d)&&(Y=Dv(n,r,[null,null,null]),de=Y[0],ge=Y[1],me=Y[2],we=Y[3],te=Y[4],V=d.position.length===0?[sv]:d.position,q=$t(V[0],we),x=$t(V[V.length-1],te),T=FG(d,q,x,we,te),P=T[0],F=T[1],P>0&&F>0&&(E=i.ctx.createRadialGradient(ge+q,me+x,0,ge+q,me+x,P),$k(d.stops,P*2).forEach(function(pe){return E.addColorStop(pe.stop,Ln(pe.color))}),i.path(de),i.ctx.fillStyle=E,P!==F?(W=n.bounds.left+.5*n.bounds.width,ne=n.bounds.top+.5*n.bounds.height,X=F/P,re=1/X,i.ctx.save(),i.ctx.translate(W,ne),i.ctx.transform(1,0,0,X,0,0),i.ctx.translate(-W,-ne),i.ctx.fillRect(ge,re*(me-ne)+ne,we,te*re),i.ctx.restore()):i.ctx.fill())),Ae.label=6;case 6:return r--,[2]}})},i=this,o=0,a=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<a.length?(l=a[o],[5,A(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,r,A){return vr(this,void 0,void 0,function(){return rr(this,function(i){return this.path(jS(A,r)),this.ctx.fillStyle=Ln(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,r,A,i){return vr(this,void 0,void 0,function(){var o,a;return rr(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,A,i)]:[3,2];case 1:return l.sent(),[2];case 2:return o=Oq(i,A),this.path(o),this.ctx.fillStyle=Ln(n),this.ctx.fill(),a=Nq(i,A),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return vr(this,void 0,void 0,function(){var r,A,i,o,a,l,u,d,h=this;return rr(this,function(p){switch(p.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,A=!Do(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=qq(_a(r.backgroundClip,0),n.curves),A||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Do(r.backgroundColor)||(this.ctx.fillStyle=Ln(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var v=Hf(n.curves),B=m.inset?0:Wq,y=_q(v,-B+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(v),h.ctx.clip(),h.mask(y)):(h.mask(v),h.ctx.clip(),h.path(y)),h.ctx.shadowOffsetX=m.offsetX.number+B,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=Ln(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?Ln(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:a=0,l=0,u=i,p.label=3;case 3:return l<u.length?(d=u[l],d.style!==0&&!Do(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,a,n.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,a,n.curves,3)];case 6:return p.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,a,n.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,a,n.curves)];case 10:p.sent(),p.label=11;case 11:a++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,r,A,i,o){return vr(this,void 0,void 0,function(){var a,l,u,d,h,p,m,v,B,y,w,C,S,Q,_,D,_,D;return rr(this,function(I){return this.ctx.save(),a=Lq(i,A),l=jS(i,A),o===2&&(this.path(l),this.ctx.clip()),sA(l[0])?(u=l[0].start.x,d=l[0].start.y):(u=l[0].x,d=l[0].y),sA(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),A===0||A===2?m=Math.abs(u-h):m=Math.abs(d-p),this.ctx.beginPath(),o===3?this.formatPath(a):this.formatPath(l.slice(0,2)),v=r<3?r*3:r*2,B=r<3?r*2:r,o===3&&(v=r,B=r),y=!0,m<=v*2?y=!1:m<=v*2+B?(w=m/(2*v+B),v*=w,B*=w):(C=Math.floor((m+B)/(v+B)),S=(m-C*v)/(C-1),Q=(m-(C+1)*v)/C,B=Q<=0||Math.abs(B-S)<Math.abs(B-Q)?S:Q),y&&(o===3?this.ctx.setLineDash([0,v+B]):this.ctx.setLineDash([v,B])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Ln(n),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(sA(l[0])&&(_=l[3],D=l[0],this.ctx.beginPath(),this.formatPath([new _e(_.end.x,_.end.y),new _e(D.start.x,D.start.y)]),this.ctx.stroke()),sA(l[1])&&(_=l[1],D=l[2],this.ctx.beginPath(),this.formatPath([new _e(_.end.x,_.end.y),new _e(D.start.x,D.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return vr(this,void 0,void 0,function(){var r;return rr(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ln(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=Dq(n),[4,this.renderStack(r)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(ex),Yq=function(t){return t instanceof ES||t instanceof bS?!0:t instanceof Ev&&t.type!==_f&&t.type!==Uf},qq=function(t,e){switch(t){case 0:return Hf(e);case 2:return Qq(e);default:return Pf(e)}},Xq=function(t){switch(t){case 1:return"center";case 2:return"right";default:return"left"}},Jq=["-apple-system","system-ui"],jq=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return Jq.indexOf(e)===-1}):t},Zq=(function(t){UA(e,t);function e(n,r){var A=t.call(this,n,r)||this;return A.canvas=r.canvas?r.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=r,A.canvas.width=Math.floor(r.width*r.scale),A.canvas.height=Math.floor(r.height*r.scale),A.canvas.style.width=r.width+"px",A.canvas.style.height=r.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-r.x,-r.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),A}return e.prototype.render=function(n){return vr(this,void 0,void 0,function(){var r,A;return rr(this,function(i){switch(i.label){case 0:return r=yv(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Vq(r)];case 1:return A=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ln(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(ex),Vq=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},eX=(function(){function t(e){var n=e.id,r=e.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Zd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Zd([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Zd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Zd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t})(),tX=(function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new eX({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new yq(this,e)}return t.instanceCount=1,t})(),nX=function(t,e){return e===void 0&&(e={}),rX(t,e)};typeof window<"u"&&WS.setContext(window);var rX=function(t,e){return vr(void 0,void 0,void 0,function(){var n,r,A,i,o,a,l,u,d,h,p,m,v,B,y,w,C,S,Q,_,I,D,I,$,Y,de,ge,me,we,te,V,q,x,T,P,F,E,W,ne,X;return rr(this,function(re){switch(re.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return A={allowTaint:($=e.allowTaint)!==null&&$!==void 0?$:!1,imageTimeout:(Y=e.imageTimeout)!==null&&Y!==void 0?Y:15e3,proxy:e.proxy,useCORS:(de=e.useCORS)!==null&&de!==void 0?de:!1},i=Hg({logging:(ge=e.logging)!==null&&ge!==void 0?ge:!0,cache:e.cache},A),o={windowWidth:(me=e.windowWidth)!==null&&me!==void 0?me:r.innerWidth,windowHeight:(we=e.windowHeight)!==null&&we!==void 0?we:r.innerHeight,scrollX:(te=e.scrollX)!==null&&te!==void 0?te:r.pageXOffset,scrollY:(V=e.scrollY)!==null&&V!==void 0?V:r.pageYOffset},a=new Ni(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new tX(i,a),u=(q=e.foreignObjectRendering)!==null&&q!==void 0?q:!1,d={allowTaint:(x=e.allowTaint)!==null&&x!==void 0?x:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new KS(l,t,d),p=h.clonedReferenceElement,p?[4,h.toIFrame(n,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=re.sent(),v=Sv(p)||Aq(p)?_8(p.ownerDocument):Vd(l,p),B=v.width,y=v.height,w=v.left,C=v.top,S=AX(l,p,e.backgroundColor),Q={canvas:e.canvas,backgroundColor:S,scale:(P=(T=e.scale)!==null&&T!==void 0?T:r.devicePixelRatio)!==null&&P!==void 0?P:1,x:((F=e.x)!==null&&F!==void 0?F:0)+w,y:((E=e.y)!==null&&E!==void 0?E:0)+C,width:(W=e.width)!==null&&W!==void 0?W:Math.ceil(B),height:(ne=e.height)!==null&&ne!==void 0?ne:Math.ceil(y)},u?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Zq(l,Q),[4,I.render(p)]):[3,3];case 2:return _=re.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+w+","+C+" with size "+B+"x"+y+" using computed rendering"),l.logger.debug("Starting DOM parsing"),D=xS(l,p),S===D.styles.backgroundColor&&(D.styles.backgroundColor=Ri.TRANSPARENT),l.logger.debug("Starting renderer for element at "+Q.x+","+Q.y+" with size "+Q.width+"x"+Q.height),I=new Gq(l,Q),[4,I.render(D)];case 4:_=re.sent(),re.label=5;case 5:return(!((X=e.removeContainer)!==null&&X!==void 0)||X)&&(KS.destroy(m)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,_]}})})},AX=function(t,e,n){var r=e.ownerDocument,A=r.documentElement?wc(t,getComputedStyle(r.documentElement).backgroundColor):Ri.TRANSPARENT,i=r.body?wc(t,getComputedStyle(r.body).backgroundColor):Ri.TRANSPARENT,o=typeof n=="string"?wc(t,n):n===null?Ri.TRANSPARENT:4294967295;return e===r.documentElement?Do(A)?Do(i)?o:i:A:o};const iX=s.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},pending:{type:Boolean,default:!1},emitPending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(""),o=s.ref(),a=s.ref(!0);async function l(){if(!A.value||!a.value)return"";const d=A.value;if(!d.isConnected)return"";try{n.emitPending&&r("update:pending",!0);const h=d.firstElementChild;if(!h)return"";const p=await nX(h,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,...n.options});if(!a.value||!A.value||!d.isConnected)return"";const m=p.toDataURL();if(r("update:modelValue",m),n.emitPending&&r("update:pending",!1),n.debug){const v=new Image;v.src=m,document.body.appendChild(v)}return m}catch(h){return a.value&&n.emitPending&&r("update:pending",!1),console.warn("dom-renderer: Render failed",h),""}}const u=_g.debounce(async()=>{i.value=await l()},300,{trailing:!0,leading:!1});return s.onMounted(()=>{const d=A.value;n.renderUpdates&&(o.value=new MutationObserver(async h=>{!a.value||!d.isConnected||(n.emitPending&&r("update:pending",!0),u())}),o.value.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{n.emitPending&&r("update:pending",!0),u()},500)}),s.onBeforeUnmount(()=>{a.value=!1,o.value&&o.value.disconnect(),u.cancel()}),(d,h)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:A,style:s.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[s.renderSlot(d.$slots,"default")],6))}});var Gf={exports:{}},oX=Gf.exports,tx;function sX(){return tx||(tx=1,(function(t,e){(function(n,r){t.exports=r()})(oX,(()=>(()=>{var n={873:(o,a)=>{var l,u,d=(function(){var h=function(te,V){var q=te,x=w[V],T=null,P=0,F=null,E=[],W={},ne=function(K,N){T=(function(R){for(var J=new Array(R),z=0;z<R;z+=1){J[z]=new Array(R);for(var ce=0;ce<R;ce+=1)J[z][ce]=null}return J})(P=4*q+17),X(0,0),X(P-7,0),X(0,P-7),Ae(),re(),le(K,N),q>=7&&pe(K),F==null&&(F=G(q,x,E)),Ce(F,N)},X=function(K,N){for(var R=-1;R<=7;R+=1)if(!(K+R<=-1||P<=K+R))for(var J=-1;J<=7;J+=1)N+J<=-1||P<=N+J||(T[K+R][N+J]=0<=R&&R<=6&&(J==0||J==6)||0<=J&&J<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=J&&J<=4)},re=function(){for(var K=8;K<P-8;K+=1)T[K][6]==null&&(T[K][6]=K%2==0);for(var N=8;N<P-8;N+=1)T[6][N]==null&&(T[6][N]=N%2==0)},Ae=function(){for(var K=C.getPatternPosition(q),N=0;N<K.length;N+=1)for(var R=0;R<K.length;R+=1){var J=K[N],z=K[R];if(T[J][z]==null)for(var ce=-2;ce<=2;ce+=1)for(var k=-2;k<=2;k+=1)T[J+ce][z+k]=ce==-2||ce==2||k==-2||k==2||ce==0&&k==0}},pe=function(K){for(var N=C.getBCHTypeNumber(q),R=0;R<18;R+=1){var J=!K&&(N>>R&1)==1;T[Math.floor(R/3)][R%3+P-8-3]=J}for(R=0;R<18;R+=1)J=!K&&(N>>R&1)==1,T[R%3+P-8-3][Math.floor(R/3)]=J},le=function(K,N){for(var R=x<<3|N,J=C.getBCHTypeInfo(R),z=0;z<15;z+=1){var ce=!K&&(J>>z&1)==1;z<6?T[z][8]=ce:z<8?T[z+1][8]=ce:T[P-15+z][8]=ce}for(z=0;z<15;z+=1)ce=!K&&(J>>z&1)==1,z<8?T[8][P-z-1]=ce:z<9?T[8][15-z-1+1]=ce:T[8][15-z-1]=ce;T[P-8][8]=!K},Ce=function(K,N){for(var R=-1,J=P-1,z=7,ce=0,k=C.getMaskFunction(N),U=P-1;U>0;U-=2)for(U==6&&(U-=1);;){for(var O=0;O<2;O+=1)if(T[J][U-O]==null){var se=!1;ce<K.length&&(se=(K[ce]>>>z&1)==1),k(J,U-O)&&(se=!se),T[J][U-O]=se,(z-=1)==-1&&(ce+=1,z=7)}if((J+=R)<0||P<=J){J-=R,R=-R;break}}},G=function(K,N,R){for(var J=_.getRSBlocks(K,N),z=D(),ce=0;ce<R.length;ce+=1){var k=R[ce];z.put(k.getMode(),4),z.put(k.getLength(),C.getLengthInBits(k.getMode(),K)),k.write(z)}var U=0;for(ce=0;ce<J.length;ce+=1)U+=J[ce].dataCount;if(z.getLengthInBits()>8*U)throw"code length overflow. ("+z.getLengthInBits()+">"+8*U+")";for(z.getLengthInBits()+4<=8*U&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=8*U||(z.put(236,8),z.getLengthInBits()>=8*U));)z.put(17,8);return(function(O,se){for(var j=0,be=0,Be=0,ae=new Array(se.length),he=new Array(se.length),xe=0;xe<se.length;xe+=1){var Pe=se[xe].dataCount,ot=se[xe].totalCount-Pe;be=Math.max(be,Pe),Be=Math.max(Be,ot),ae[xe]=new Array(Pe);for(var $e=0;$e<ae[xe].length;$e+=1)ae[xe][$e]=255&O.getBuffer()[$e+j];j+=Pe;var ht=C.getErrorCorrectPolynomial(ot),wt=Q(ae[xe],ht.getLength()-1).mod(ht);for(he[xe]=new Array(ht.getLength()-1),$e=0;$e<he[xe].length;$e+=1){var Et=$e+wt.getLength()-he[xe].length;he[xe][$e]=Et>=0?wt.getAt(Et):0}}var En=0;for($e=0;$e<se.length;$e+=1)En+=se[$e].totalCount;var Yt=new Array(En),Kt=0;for($e=0;$e<be;$e+=1)for(xe=0;xe<se.length;xe+=1)$e<ae[xe].length&&(Yt[Kt]=ae[xe][$e],Kt+=1);for($e=0;$e<Be;$e+=1)for(xe=0;xe<se.length;xe+=1)$e<he[xe].length&&(Yt[Kt]=he[xe][$e],Kt+=1);return Yt})(z,J)};W.addData=function(K,N){var R=null;switch(N=N||"Byte"){case"Numeric":R=I(K);break;case"Alphanumeric":R=$(K);break;case"Byte":R=Y(K);break;case"Kanji":R=de(K);break;default:throw"mode:"+N}E.push(R),F=null},W.isDark=function(K,N){if(K<0||P<=K||N<0||P<=N)throw K+","+N;return T[K][N]},W.getModuleCount=function(){return P},W.make=function(){if(q<1){for(var K=1;K<40;K++){for(var N=_.getRSBlocks(K,x),R=D(),J=0;J<E.length;J++){var z=E[J];R.put(z.getMode(),4),R.put(z.getLength(),C.getLengthInBits(z.getMode(),K)),z.write(R)}var ce=0;for(J=0;J<N.length;J++)ce+=N[J].dataCount;if(R.getLengthInBits()<=8*ce)break}q=K}ne(!1,(function(){for(var k=0,U=0,O=0;O<8;O+=1){ne(!0,O);var se=C.getLostPoint(W);(O==0||k>se)&&(k=se,U=O)}return U})())},W.createTableTag=function(K,N){K=K||2;var R="";R+='<table style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: "+(N=N===void 0?4*K:N)+"px;",R+='">',R+="<tbody>";for(var J=0;J<W.getModuleCount();J+=1){R+="<tr>";for(var z=0;z<W.getModuleCount();z+=1)R+='<td style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: 0px;",R+=" width: "+K+"px;",R+=" height: "+K+"px;",R+=" background-color: ",R+=W.isDark(J,z)?"#000000":"#ffffff",R+=";",R+='"/>';R+="</tr>"}return(R+="</tbody>")+"</table>"},W.createSvgTag=function(K,N,R,J){var z={};typeof arguments[0]=="object"&&(K=(z=arguments[0]).cellSize,N=z.margin,R=z.alt,J=z.title),K=K||2,N=N===void 0?4*K:N,(R=typeof R=="string"?{text:R}:R||{}).text=R.text||null,R.id=R.text?R.id||"qrcode-description":null,(J=typeof J=="string"?{text:J}:J||{}).text=J.text||null,J.id=J.text?J.id||"qrcode-title":null;var ce,k,U,O,se=W.getModuleCount()*K+2*N,j="";for(O="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",j+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',j+=z.scalable?"":' width="'+se+'px" height="'+se+'px"',j+=' viewBox="0 0 '+se+" "+se+'" ',j+=' preserveAspectRatio="xMinYMin meet"',j+=J.text||R.text?' role="img" aria-labelledby="'+ee([J.id,R.id].join(" ").trim())+'"':"",j+=">",j+=J.text?'<title id="'+ee(J.id)+'">'+ee(J.text)+"</title>":"",j+=R.text?'<description id="'+ee(R.id)+'">'+ee(R.text)+"</description>":"",j+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',j+='<path d="',k=0;k<W.getModuleCount();k+=1)for(U=k*K+N,ce=0;ce<W.getModuleCount();ce+=1)W.isDark(k,ce)&&(j+="M"+(ce*K+N)+","+U+O);return(j+='" stroke="transparent" fill="black"/>')+"</svg>"},W.createDataURL=function(K,N){K=K||2,N=N===void 0?4*K:N;var R=W.getModuleCount()*K+2*N,J=N,z=R-N;return we(R,R,(function(ce,k){if(J<=ce&&ce<z&&J<=k&&k<z){var U=Math.floor((ce-J)/K),O=Math.floor((k-J)/K);return W.isDark(O,U)?0:1}return 1}))},W.createImgTag=function(K,N,R){K=K||2,N=N===void 0?4*K:N;var J=W.getModuleCount()*K+2*N,z="";return z+="<img",z+=' src="',z+=W.createDataURL(K,N),z+='"',z+=' width="',z+=J,z+='"',z+=' height="',z+=J,z+='"',R&&(z+=' alt="',z+=ee(R),z+='"'),z+"/>"};var ee=function(K){for(var N="",R=0;R<K.length;R+=1){var J=K.charAt(R);switch(J){case"<":N+="<";break;case">":N+=">";break;case"&":N+="&";break;case'"':N+=""";break;default:N+=J}}return N};return W.createASCII=function(K,N){if((K=K||1)<2)return(function(ae){ae=ae===void 0?2:ae;var he,xe,Pe,ot,$e,ht=1*W.getModuleCount()+2*ae,wt=ae,Et=ht-ae,En={"██":"█","█ ":"▀"," █":"▄"," ":" "},Yt={"██":"▀","█ ":"▀"," █":" "," ":" "},Kt="";for(he=0;he<ht;he+=2){for(Pe=Math.floor((he-wt)/1),ot=Math.floor((he+1-wt)/1),xe=0;xe<ht;xe+=1)$e="█",wt<=xe&&xe<Et&&wt<=he&&he<Et&&W.isDark(Pe,Math.floor((xe-wt)/1))&&($e=" "),wt<=xe&&xe<Et&&wt<=he+1&&he+1<Et&&W.isDark(ot,Math.floor((xe-wt)/1))?$e+=" ":$e+="█",Kt+=ae<1&&he+1>=Et?Yt[$e]:En[$e];Kt+=`
|
|
173
173
|
`}return ht%2&&ae>0?Kt.substring(0,Kt.length-ht-1)+Array(ht+1).join("▀"):Kt.substring(0,Kt.length-1)})(N);K-=1,N=N===void 0?2*K:N;var R,J,z,ce,k=W.getModuleCount()*K+2*N,U=N,O=k-N,se=Array(K+1).join("██"),j=Array(K+1).join(" "),be="",Be="";for(R=0;R<k;R+=1){for(z=Math.floor((R-U)/K),Be="",J=0;J<k;J+=1)ce=1,U<=J&&J<O&&U<=R&&R<O&&W.isDark(z,Math.floor((J-U)/K))&&(ce=0),Be+=ce?se:j;for(z=0;z<K;z+=1)be+=Be+`
|
|
174
|
-
`}return be.substring(0,be.length-1)},W.renderTo2dContext=function(K,N){N=N||2;for(var R=W.getModuleCount(),J=0;J<R;J++)for(var z=0;z<R;z++)K.fillStyle=W.isDark(J,z)?"black":"white",K.fillRect(J*N,z*N,N,N)},W};h.stringToBytes=(h.stringToBytesFuncs={default:function(te){for(var V=[],q=0;q<te.length;q+=1){var x=te.charCodeAt(q);V.push(255&x)}return V}}).default,h.createStringToBytes=function(te,V){var q=(function(){for(var T=me(te),P=function(){var re=T.read();if(re==-1)throw"eof";return re},F=0,E={};;){var W=T.read();if(W==-1)break;var ne=P(),X=P()<<8|P();E[String.fromCharCode(W<<8|ne)]=X,F+=1}if(F!=V)throw F+" != "+V;return E})(),x=63;return function(T){for(var P=[],F=0;F<T.length;F+=1){var E=T.charCodeAt(F);if(E<128)P.push(E);else{var W=q[T.charAt(F)];typeof W=="number"?(255&W)==W?P.push(W):(P.push(W>>>8),P.push(255&W)):P.push(x)}}return P}};var p,m,v,B,y,w={L:1,M:0,Q:3,H:2},C=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],m=1335,v=7973,y=function(te){for(var V=0;te!=0;)V+=1,te>>>=1;return V},(B={}).getBCHTypeInfo=function(te){for(var V=te<<10;y(V)-y(m)>=0;)V^=m<<y(V)-y(m);return 21522^(te<<10|V)},B.getBCHTypeNumber=function(te){for(var V=te<<12;y(V)-y(v)>=0;)V^=v<<y(V)-y(v);return te<<12|V},B.getPatternPosition=function(te){return p[te-1]},B.getMaskFunction=function(te){switch(te){case 0:return function(V,q){return(V+q)%2==0};case 1:return function(V,q){return V%2==0};case 2:return function(V,q){return q%3==0};case 3:return function(V,q){return(V+q)%3==0};case 4:return function(V,q){return(Math.floor(V/2)+Math.floor(q/3))%2==0};case 5:return function(V,q){return V*q%2+V*q%3==0};case 6:return function(V,q){return(V*q%2+V*q%3)%2==0};case 7:return function(V,q){return(V*q%3+(V+q)%2)%2==0};default:throw"bad maskPattern:"+te}},B.getErrorCorrectPolynomial=function(te){for(var V=Q([1],0),q=0;q<te;q+=1)V=V.multiply(Q([1,S.gexp(q)],0));return V},B.getLengthInBits=function(te,V){if(1<=V&&V<10)switch(te){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+te}else if(V<27)switch(te){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+te}else{if(!(V<41))throw"type:"+V;switch(te){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+te}}},B.getLostPoint=function(te){for(var V=te.getModuleCount(),q=0,x=0;x<V;x+=1)for(var T=0;T<V;T+=1){for(var P=0,F=te.isDark(x,T),E=-1;E<=1;E+=1)if(!(x+E<0||V<=x+E))for(var W=-1;W<=1;W+=1)T+W<0||V<=T+W||E==0&&W==0||F==te.isDark(x+E,T+W)&&(P+=1);P>5&&(q+=3+P-5)}for(x=0;x<V-1;x+=1)for(T=0;T<V-1;T+=1){var ne=0;te.isDark(x,T)&&(ne+=1),te.isDark(x+1,T)&&(ne+=1),te.isDark(x,T+1)&&(ne+=1),te.isDark(x+1,T+1)&&(ne+=1),ne!=0&&ne!=4||(q+=3)}for(x=0;x<V;x+=1)for(T=0;T<V-6;T+=1)te.isDark(x,T)&&!te.isDark(x,T+1)&&te.isDark(x,T+2)&&te.isDark(x,T+3)&&te.isDark(x,T+4)&&!te.isDark(x,T+5)&&te.isDark(x,T+6)&&(q+=40);for(T=0;T<V;T+=1)for(x=0;x<V-6;x+=1)te.isDark(x,T)&&!te.isDark(x+1,T)&&te.isDark(x+2,T)&&te.isDark(x+3,T)&&te.isDark(x+4,T)&&!te.isDark(x+5,T)&&te.isDark(x+6,T)&&(q+=40);var X=0;for(T=0;T<V;T+=1)for(x=0;x<V;x+=1)te.isDark(x,T)&&(X+=1);return q+Math.abs(100*X/V/V-50)/5*10},B),S=(function(){for(var te=new Array(256),V=new Array(256),q=0;q<8;q+=1)te[q]=1<<q;for(q=8;q<256;q+=1)te[q]=te[q-4]^te[q-5]^te[q-6]^te[q-8];for(q=0;q<255;q+=1)V[te[q]]=q;return{glog:function(x){if(x<1)throw"glog("+x+")";return V[x]},gexp:function(x){for(;x<0;)x+=255;for(;x>=256;)x-=255;return te[x]}}})();function Q(te,V){if(te.length===void 0)throw te.length+"/"+V;var q=(function(){for(var T=0;T<te.length&&te[T]==0;)T+=1;for(var P=new Array(te.length-T+V),F=0;F<te.length-T;F+=1)P[F]=te[F+T];return P})(),x={getAt:function(T){return q[T]},getLength:function(){return q.length},multiply:function(T){for(var P=new Array(x.getLength()+T.getLength()-1),F=0;F<x.getLength();F+=1)for(var E=0;E<T.getLength();E+=1)P[F+E]^=S.gexp(S.glog(x.getAt(F))+S.glog(T.getAt(E)));return Q(P,0)},mod:function(T){if(x.getLength()-T.getLength()<0)return x;for(var P=S.glog(x.getAt(0))-S.glog(T.getAt(0)),F=new Array(x.getLength()),E=0;E<x.getLength();E+=1)F[E]=x.getAt(E);for(E=0;E<T.getLength();E+=1)F[E]^=S.gexp(S.glog(T.getAt(E))+P);return Q(F,0).mod(T)}};return x}var _=(function(){var te=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],V=function(x,T){var P={};return P.totalCount=x,P.dataCount=T,P},q={getRSBlocks:function(x,T){var P=(function(pe,le){switch(le){case w.L:return te[4*(pe-1)+0];case w.M:return te[4*(pe-1)+1];case w.Q:return te[4*(pe-1)+2];case w.H:return te[4*(pe-1)+3];default:return}})(x,T);if(P===void 0)throw"bad rs block @ typeNumber:"+x+"/errorCorrectionLevel:"+T;for(var F=P.length/3,E=[],W=0;W<F;W+=1)for(var ne=P[3*W+0],X=P[3*W+1],re=P[3*W+2],ie=0;ie<ne;ie+=1)E.push(V(X,re));return E}};return q})(),D=function(){var te=[],V=0,q={getBuffer:function(){return te},getAt:function(x){var T=Math.floor(x/8);return(te[T]>>>7-x%8&1)==1},put:function(x,T){for(var P=0;P<T;P+=1)q.putBit((x>>>T-P-1&1)==1)},getLengthInBits:function(){return V},putBit:function(x){var T=Math.floor(V/8);te.length<=T&&te.push(0),x&&(te[T]|=128>>>V%8),V+=1}};return q},I=function(te){var V=te,q={getMode:function(){return 1},getLength:function(P){return V.length},write:function(P){for(var F=V,E=0;E+2<F.length;)P.put(x(F.substring(E,E+3)),10),E+=3;E<F.length&&(F.length-E==1?P.put(x(F.substring(E,E+1)),4):F.length-E==2&&P.put(x(F.substring(E,E+2)),7))}},x=function(P){for(var F=0,E=0;E<P.length;E+=1)F=10*F+T(P.charAt(E));return F},T=function(P){if("0"<=P&&P<="9")return P.charCodeAt(0)-48;throw"illegal char :"+P};return q},$=function(te){var V=te,q={getMode:function(){return 2},getLength:function(T){return V.length},write:function(T){for(var P=V,F=0;F+1<P.length;)T.put(45*x(P.charAt(F))+x(P.charAt(F+1)),11),F+=2;F<P.length&&T.put(x(P.charAt(F)),6)}},x=function(T){if("0"<=T&&T<="9")return T.charCodeAt(0)-48;if("A"<=T&&T<="Z")return T.charCodeAt(0)-65+10;switch(T){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+T}};return q},Y=function(te){var V=h.stringToBytes(te);return{getMode:function(){return 4},getLength:function(q){return V.length},write:function(q){for(var x=0;x<V.length;x+=1)q.put(V[x],8)}}},de=function(te){var V=h.stringToBytesFuncs.SJIS;if(!V)throw"sjis not supported.";(function(){var T=V("友");if(T.length!=2||(T[0]<<8|T[1])!=38726)throw"sjis not supported."})();var q=V(te),x={getMode:function(){return 8},getLength:function(T){return~~(q.length/2)},write:function(T){for(var P=q,F=0;F+1<P.length;){var E=(255&P[F])<<8|255&P[F+1];if(33088<=E&&E<=40956)E-=33088;else{if(!(57408<=E&&E<=60351))throw"illegal char at "+(F+1)+"/"+E;E-=49472}E=192*(E>>>8&255)+(255&E),T.put(E,13),F+=2}if(F<P.length)throw"illegal char at "+(F+1)}};return x},ge=function(){var te=[],V={writeByte:function(q){te.push(255&q)},writeShort:function(q){V.writeByte(q),V.writeByte(q>>>8)},writeBytes:function(q,x,T){x=x||0,T=T||q.length;for(var P=0;P<T;P+=1)V.writeByte(q[P+x])},writeString:function(q){for(var x=0;x<q.length;x+=1)V.writeByte(q.charCodeAt(x))},toByteArray:function(){return te},toString:function(){var q="";q+="[";for(var x=0;x<te.length;x+=1)x>0&&(q+=","),q+=te[x];return q+"]"}};return V},me=function(te){var V=te,q=0,x=0,T=0,P={read:function(){for(;T<8;){if(q>=V.length){if(T==0)return-1;throw"unexpected end of file./"+T}var E=V.charAt(q);if(q+=1,E=="=")return T=0,-1;E.match(/^\s$/)||(x=x<<6|F(E.charCodeAt(0)),T+=6)}var W=x>>>T-8&255;return T-=8,W}},F=function(E){if(65<=E&&E<=90)return E-65;if(97<=E&&E<=122)return E-97+26;if(48<=E&&E<=57)return E-48+52;if(E==43)return 62;if(E==47)return 63;throw"c:"+E};return P},we=function(te,V,q){for(var x=(function(X,re){var ie=X,pe=re,le=new Array(X*re),Ce={setPixel:function(K,N,R){le[N*ie+K]=R},write:function(K){K.writeString("GIF87a"),K.writeShort(ie),K.writeShort(pe),K.writeByte(128),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(255),K.writeByte(255),K.writeByte(255),K.writeString(","),K.writeShort(0),K.writeShort(0),K.writeShort(ie),K.writeShort(pe),K.writeByte(0);var N=G(2);K.writeByte(2);for(var R=0;N.length-R>255;)K.writeByte(255),K.writeBytes(N,R,255),R+=255;K.writeByte(N.length-R),K.writeBytes(N,R,N.length-R),K.writeByte(0),K.writeString(";")}},G=function(K){for(var N=1<<K,R=1+(1<<K),J=K+1,z=ee(),ce=0;ce<N;ce+=1)z.add(String.fromCharCode(ce));z.add(String.fromCharCode(N)),z.add(String.fromCharCode(R));var k,U,O,se=ge(),j=(k=se,U=0,O=0,{write:function(he,xe){if(he>>>xe)throw"length over";for(;U+xe>=8;)k.writeByte(255&(he<<U|O)),xe-=8-U,he>>>=8-U,O=0,U=0;O|=he<<U,U+=xe},flush:function(){U>0&&k.writeByte(O)}});j.write(N,J);var be=0,Be=String.fromCharCode(le[be]);for(be+=1;be<le.length;){var ae=String.fromCharCode(le[be]);be+=1,z.contains(Be+ae)?Be+=ae:(j.write(z.indexOf(Be),J),z.size()<4095&&(z.size()==1<<J&&(J+=1),z.add(Be+ae)),Be=ae)}return j.write(z.indexOf(Be),J),j.write(R,J),j.flush(),se.toByteArray()},ee=function(){var K={},N=0,R={add:function(J){if(R.contains(J))throw"dup key:"+J;K[J]=N,N+=1},size:function(){return N},indexOf:function(J){return K[J]},contains:function(J){return K[J]!==void 0}};return R};return Ce})(te,V),T=0;T<V;T+=1)for(var P=0;P<te;P+=1)x.setPixel(P,T,q(P,T));var F=ge();x.write(F);for(var E=(function(){var X=0,re=0,ie=0,pe="",le={},Ce=function(ee){pe+=String.fromCharCode(G(63&ee))},G=function(ee){if(!(ee<0)){if(ee<26)return 65+ee;if(ee<52)return ee-26+97;if(ee<62)return ee-52+48;if(ee==62)return 43;if(ee==63)return 47}throw"n:"+ee};return le.writeByte=function(ee){for(X=X<<8|255&ee,re+=8,ie+=1;re>=6;)Ce(X>>>re-6),re-=6},le.flush=function(){if(re>0&&(Ce(X<<6-re),X=0,re=0),ie%3!=0)for(var ee=3-ie%3,K=0;K<ee;K+=1)pe+="="},le.toString=function(){return pe},le})(),W=F.toByteArray(),ne=0;ne<W.length;ne+=1)E.writeByte(W[ne]);return E.flush(),"data:image/gif;base64,"+E};return h})();d.stringToBytesFuncs["UTF-8"]=function(h){return(function(p){for(var m=[],v=0;v<p.length;v++){var B=p.charCodeAt(v);B<128?m.push(B):B<2048?m.push(192|B>>6,128|63&B):B<55296||B>=57344?m.push(224|B>>12,128|B>>6&63,128|63&B):(v++,B=65536+((1023&B)<<10|1023&p.charCodeAt(v)),m.push(240|B>>18,128|B>>12&63,128|B>>6&63,128|63&B))}return m})(h)},(u=typeof(l=function(){return d})=="function"?l.apply(a,[]):l)===void 0||(o.exports=u)}},r={};function A(o){var a=r[o];if(a!==void 0)return a.exports;var l=r[o]={exports:{}};return n[o](l,l.exports,A),l.exports}A.n=o=>{var a=o&&o.__esModule?()=>o.default:()=>o;return A.d(a,{a}),a},A.d=(o,a)=>{for(var l in a)A.o(a,l)&&!A.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})},A.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var i={};return(()=>{A.d(i,{default:()=>V});const o=q=>!!q&&typeof q=="object"&&!Array.isArray(q);function a(q,...x){if(!x.length)return q;const T=x.shift();return T!==void 0&&o(q)&&o(T)?(q=Object.assign({},q),Object.keys(T).forEach((P=>{const F=q[P],E=T[P];Array.isArray(F)&&Array.isArray(E)?q[P]=E:o(F)&&o(E)?q[P]=a(Object.assign({},F),E):q[P]=E})),a(q,...x)):q}function l(q,x){const T=document.createElement("a");T.download=x,T.href=q,document.body.appendChild(T),T.click(),document.body.removeChild(T)}const u={L:.07,M:.15,Q:.25,H:.3};class d{constructor({svg:x,type:T,window:P}){this._svg=x,this._type=T,this._window=P}draw(x,T,P,F){let E;switch(this._type){case"dots":E=this._drawDot;break;case"classy":E=this._drawClassy;break;case"classy-rounded":E=this._drawClassyRounded;break;case"rounded":E=this._drawRounded;break;case"extra-rounded":E=this._drawExtraRounded;break;default:E=this._drawSquare}E.call(this,{x,y:T,size:P,getNeighbor:F})}_rotateFigure({x,y:T,size:P,rotation:F=0,draw:E}){var W;const ne=x+P/2,X=T+P/2;E(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*F/Math.PI},${ne},${X})`)}_basicDot(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(P+T/2)),this._element.setAttribute("cy",String(F+T/2)),this._element.setAttribute("r",String(T/2))}}))}_basicSquare(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(P)),this._element.setAttribute("y",String(F)),this._element.setAttribute("width",String(T)),this._element.setAttribute("height",String(T))}}))}_basicSideRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h `+T/2+`a ${T/2} ${T/2}, 0, 0, 0, 0 ${-T}`)}}))}_basicCornerRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h ${T}v `+-T/2+`a ${T/2} ${T/2}, 0, 0, 0, ${-T/2} ${-T/2}`)}}))}_basicCornerExtraRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h ${T}a ${T} ${T}, 0, 0, 0, ${-T} ${-T}`)}}))}_basicCornersRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v `+T/2+`a ${T/2} ${T/2}, 0, 0, 0, ${T/2} ${T/2}h `+T/2+"v "+-T/2+`a ${T/2} ${T/2}, 0, 0, 0, ${-T/2} ${-T/2}`)}}))}_drawDot({x,y:T,size:P}){this._basicDot({x,y:T,size:P,rotation:0})}_drawSquare({x,y:T,size:P}){this._basicSquare({x,y:T,size:P,rotation:0})}_drawRounded({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0,re=E+W+ne+X;if(re!==0)if(re>2||E&&W||ne&&X)this._basicSquare({x,y:T,size:P,rotation:0});else{if(re===2){let ie=0;return E&&ne?ie=Math.PI/2:ne&&W?ie=Math.PI:W&&X&&(ie=-Math.PI/2),void this._basicCornerRounded({x,y:T,size:P,rotation:ie})}if(re===1){let ie=0;return ne?ie=Math.PI/2:W?ie=Math.PI:X&&(ie=-Math.PI/2),void this._basicSideRounded({x,y:T,size:P,rotation:ie})}}else this._basicDot({x,y:T,size:P,rotation:0})}_drawExtraRounded({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0,re=E+W+ne+X;if(re!==0)if(re>2||E&&W||ne&&X)this._basicSquare({x,y:T,size:P,rotation:0});else{if(re===2){let ie=0;return E&&ne?ie=Math.PI/2:ne&&W?ie=Math.PI:W&&X&&(ie=-Math.PI/2),void this._basicCornerExtraRounded({x,y:T,size:P,rotation:ie})}if(re===1){let ie=0;return ne?ie=Math.PI/2:W?ie=Math.PI:X&&(ie=-Math.PI/2),void this._basicSideRounded({x,y:T,size:P,rotation:ie})}}else this._basicDot({x,y:T,size:P,rotation:0})}_drawClassy({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0;E+W+ne+X!==0?E||ne?W||X?this._basicSquare({x,y:T,size:P,rotation:0}):this._basicCornerRounded({x,y:T,size:P,rotation:Math.PI/2}):this._basicCornerRounded({x,y:T,size:P,rotation:-Math.PI/2}):this._basicCornersRounded({x,y:T,size:P,rotation:Math.PI/2})}_drawClassyRounded({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0;E+W+ne+X!==0?E||ne?W||X?this._basicSquare({x,y:T,size:P,rotation:0}):this._basicCornerExtraRounded({x,y:T,size:P,rotation:Math.PI/2}):this._basicCornerExtraRounded({x,y:T,size:P,rotation:-Math.PI/2}):this._basicCornersRounded({x,y:T,size:P,rotation:Math.PI/2})}}const h={dot:"dot",square:"square",extraRounded:"extra-rounded"},p=Object.values(h);class m{constructor({svg:x,type:T,window:P}){this._svg=x,this._type=T,this._window=P}draw(x,T,P,F){let E;switch(this._type){case h.square:E=this._drawSquare;break;case h.extraRounded:E=this._drawExtraRounded;break;default:E=this._drawDot}E.call(this,{x,y:T,size:P,rotation:F})}_rotateFigure({x,y:T,size:P,rotation:F=0,draw:E}){var W;const ne=x+P/2,X=T+P/2;E(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*F/Math.PI},${ne},${X})`)}_basicDot(x){const{size:T,x:P,y:F}=x,E=T/7;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${P+T/2} ${F}a ${T/2} ${T/2} 0 1 0 0.1 0zm 0 ${E}a ${T/2-E} ${T/2-E} 0 1 1 -0.1 0Z`)}}))}_basicSquare(x){const{size:T,x:P,y:F}=x,E=T/7;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h ${T}v `+-T+`zM ${P+E} ${F+E}h `+(T-2*E)+"v "+(T-2*E)+"h "+(2*E-T)+"z")}}))}_basicExtraRounded(x){const{size:T,x:P,y:F}=x,E=T/7;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${P} ${F+2.5*E}v `+2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*E} ${2.5*E}h `+2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*E} ${2.5*-E}v `+-2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*-E} ${2.5*-E}h `+-2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*-E} ${2.5*E}M ${P+2.5*E} ${F+E}h `+2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*E} ${1.5*E}v `+2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*-E} ${1.5*E}h `+-2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*-E} ${1.5*-E}v `+-2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*E} ${1.5*-E}`)}}))}_drawDot({x,y:T,size:P,rotation:F}){this._basicDot({x,y:T,size:P,rotation:F})}_drawSquare({x,y:T,size:P,rotation:F}){this._basicSquare({x,y:T,size:P,rotation:F})}_drawExtraRounded({x,y:T,size:P,rotation:F}){this._basicExtraRounded({x,y:T,size:P,rotation:F})}}const v={dot:"dot",square:"square"},B=Object.values(v);class y{constructor({svg:x,type:T,window:P}){this._svg=x,this._type=T,this._window=P}draw(x,T,P,F){let E;E=this._type===v.square?this._drawSquare:this._drawDot,E.call(this,{x,y:T,size:P,rotation:F})}_rotateFigure({x,y:T,size:P,rotation:F=0,draw:E}){var W;const ne=x+P/2,X=T+P/2;E(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*F/Math.PI},${ne},${X})`)}_basicDot(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(P+T/2)),this._element.setAttribute("cy",String(F+T/2)),this._element.setAttribute("r",String(T/2))}}))}_basicSquare(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(P)),this._element.setAttribute("y",String(F)),this._element.setAttribute("width",String(T)),this._element.setAttribute("height",String(T))}}))}_drawDot({x,y:T,size:P,rotation:F}){this._basicDot({x,y:T,size:P,rotation:F})}_drawSquare({x,y:T,size:P,rotation:F}){this._basicSquare({x,y:T,size:P,rotation:F})}}const w="circle",C=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],S=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class Q{constructor(x,T){this._roundSize=P=>this._options.dotsOptions.roundSize?Math.floor(P):P,this._window=T,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(x.width)),this._element.setAttribute("height",String(x.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),x.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${x.width} ${x.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=x.image,this._instanceId=Q.instanceCount++,this._options=x}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(x){const T=x.getModuleCount(),P=Math.min(this._options.width,this._options.height)-2*this._options.margin,F=this._options.shape===w?P/Math.sqrt(2):P,E=this._roundSize(F/T);let W={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=x,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:ne,qrOptions:X}=this._options,re=ne.imageSize*u[X.errorCorrectionLevel],ie=Math.floor(re*T*T);W=(function({originalHeight:pe,originalWidth:le,maxHiddenDots:Ce,maxHiddenAxisDots:G,dotSize:ee}){const K={x:0,y:0},N={x:0,y:0};if(pe<=0||le<=0||Ce<=0||ee<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const R=pe/le;return K.x=Math.floor(Math.sqrt(Ce/R)),K.x<=0&&(K.x=1),G&&G<K.x&&(K.x=G),K.x%2==0&&K.x--,N.x=K.x*ee,K.y=1+2*Math.ceil((K.x*R-1)/2),N.y=Math.round(N.x*R),(K.y*K.x>Ce||G&&G<K.y)&&(G&&G<K.y?(K.y=G,K.y%2==0&&K.x--):K.y-=2,N.y=K.y*ee,K.x=1+2*Math.ceil((K.y/R-1)/2),N.x=Math.round(N.y/R)),{height:N.y,width:N.x,hideYDots:K.y,hideXDots:K.x}})({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ie,maxHiddenAxisDots:T-14,dotSize:E})}this.drawBackground(),this.drawDots(((ne,X)=>{var re,ie,pe,le,Ce,G;return!(this._options.imageOptions.hideBackgroundDots&&ne>=(T-W.hideYDots)/2&&ne<(T+W.hideYDots)/2&&X>=(T-W.hideXDots)/2&&X<(T+W.hideXDots)/2||!((re=C[ne])===null||re===void 0)&&re[X]||!((ie=C[ne-T+7])===null||ie===void 0)&&ie[X]||!((pe=C[ne])===null||pe===void 0)&&pe[X-T+7]||!((le=S[ne])===null||le===void 0)&&le[X]||!((Ce=S[ne-T+7])===null||Ce===void 0)&&Ce[X]||!((G=S[ne])===null||G===void 0)&&G[X-T+7])})),this.drawCorners(),this._options.image&&await this.drawImage({width:W.width,height:W.height,count:T,dotSize:E})}drawBackground(){var x,T,P;const F=this._element,E=this._options;if(F){const W=(x=E.backgroundOptions)===null||x===void 0?void 0:x.gradient,ne=(T=E.backgroundOptions)===null||T===void 0?void 0:T.color;let X=E.height,re=E.width;if(W||ne){const ie=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((P=E.backgroundOptions)===null||P===void 0)&&P.round&&(X=re=Math.min(E.width,E.height),ie.setAttribute("rx",String(X/2*E.backgroundOptions.round))),ie.setAttribute("x",String(this._roundSize((E.width-re)/2))),ie.setAttribute("y",String(this._roundSize((E.height-X)/2))),ie.setAttribute("width",String(re)),ie.setAttribute("height",String(X)),this._backgroundClipPath.appendChild(ie),this._createColor({options:W,color:ne,additionalRotation:0,x:0,y:0,height:E.height,width:E.width,name:`background-color-${this._instanceId}`})}}}drawDots(x){var T,P;if(!this._qr)throw"QR code is not defined";const F=this._options,E=this._qr.getModuleCount();if(E>F.width||E>F.height)throw"The canvas is too small.";const W=Math.min(F.width,F.height)-2*F.margin,ne=F.shape===w?W/Math.sqrt(2):W,X=this._roundSize(ne/E),re=this._roundSize((F.width-E*X)/2),ie=this._roundSize((F.height-E*X)/2),pe=new d({svg:this._element,type:F.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(T=F.dotsOptions)===null||T===void 0?void 0:T.gradient,color:F.dotsOptions.color,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:`dot-color-${this._instanceId}`});for(let le=0;le<E;le++)for(let Ce=0;Ce<E;Ce++)x&&!x(le,Ce)||!((P=this._qr)===null||P===void 0)&&P.isDark(le,Ce)&&(pe.draw(re+Ce*X,ie+le*X,X,((G,ee)=>!(Ce+G<0||le+ee<0||Ce+G>=E||le+ee>=E)&&!(x&&!x(le+ee,Ce+G))&&!!this._qr&&this._qr.isDark(le+ee,Ce+G))),pe._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(pe._element));if(F.shape===w){const le=this._roundSize((W/X-E)/2),Ce=E+2*le,G=re-le*X,ee=ie-le*X,K=[],N=this._roundSize(Ce/2);for(let R=0;R<Ce;R++){K[R]=[];for(let J=0;J<Ce;J++)R>=le-1&&R<=Ce-le&&J>=le-1&&J<=Ce-le||Math.sqrt((R-N)*(R-N)+(J-N)*(J-N))>N?K[R][J]=0:K[R][J]=this._qr.isDark(J-2*le<0?J:J>=E?J-2*le:J-le,R-2*le<0?R:R>=E?R-2*le:R-le)?1:0}for(let R=0;R<Ce;R++)for(let J=0;J<Ce;J++)K[R][J]&&(pe.draw(G+J*X,ee+R*X,X,((z,ce)=>{var k;return!!(!((k=K[R+ce])===null||k===void 0)&&k[J+z])})),pe._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(pe._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const x=this._element,T=this._options;if(!x)throw"Element code is not defined";const P=this._qr.getModuleCount(),F=Math.min(T.width,T.height)-2*T.margin,E=T.shape===w?F/Math.sqrt(2):F,W=this._roundSize(E/P),ne=7*W,X=3*W,re=this._roundSize((T.width-P*W)/2),ie=this._roundSize((T.height-P*W)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((([pe,le,Ce])=>{var G,ee,K,N,R,J,z,ce,k,U,O,se,j,be;const Be=re+pe*W*(P-7),ae=ie+le*W*(P-7);let he=this._dotsClipPath,xe=this._dotsClipPath;if((!((G=T.cornersSquareOptions)===null||G===void 0)&&G.gradient||!((ee=T.cornersSquareOptions)===null||ee===void 0)&&ee.color)&&(he=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),he.setAttribute("id",`clip-path-corners-square-color-${pe}-${le}-${this._instanceId}`),this._defs.appendChild(he),this._cornersSquareClipPath=this._cornersDotClipPath=xe=he,this._createColor({options:(K=T.cornersSquareOptions)===null||K===void 0?void 0:K.gradient,color:(N=T.cornersSquareOptions)===null||N===void 0?void 0:N.color,additionalRotation:Ce,x:Be,y:ae,height:ne,width:ne,name:`corners-square-color-${pe}-${le}-${this._instanceId}`})),((R=T.cornersSquareOptions)===null||R===void 0?void 0:R.type)&&p.includes(T.cornersSquareOptions.type)){const Pe=new m({svg:this._element,type:T.cornersSquareOptions.type,window:this._window});Pe.draw(Be,ae,ne,Ce),Pe._element&&he&&he.appendChild(Pe._element)}else{const Pe=new d({svg:this._element,type:((J=T.cornersSquareOptions)===null||J===void 0?void 0:J.type)||T.dotsOptions.type,window:this._window});for(let ot=0;ot<C.length;ot++)for(let $e=0;$e<C[ot].length;$e++)!((z=C[ot])===null||z===void 0)&&z[$e]&&(Pe.draw(Be+$e*W,ae+ot*W,W,((ht,wt)=>{var Et;return!!(!((Et=C[ot+wt])===null||Et===void 0)&&Et[$e+ht])})),Pe._element&&he&&he.appendChild(Pe._element))}if((!((ce=T.cornersDotOptions)===null||ce===void 0)&&ce.gradient||!((k=T.cornersDotOptions)===null||k===void 0)&&k.color)&&(xe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),xe.setAttribute("id",`clip-path-corners-dot-color-${pe}-${le}-${this._instanceId}`),this._defs.appendChild(xe),this._cornersDotClipPath=xe,this._createColor({options:(U=T.cornersDotOptions)===null||U===void 0?void 0:U.gradient,color:(O=T.cornersDotOptions)===null||O===void 0?void 0:O.color,additionalRotation:Ce,x:Be+2*W,y:ae+2*W,height:X,width:X,name:`corners-dot-color-${pe}-${le}-${this._instanceId}`})),((se=T.cornersDotOptions)===null||se===void 0?void 0:se.type)&&B.includes(T.cornersDotOptions.type)){const Pe=new y({svg:this._element,type:T.cornersDotOptions.type,window:this._window});Pe.draw(Be+2*W,ae+2*W,X,Ce),Pe._element&&xe&&xe.appendChild(Pe._element)}else{const Pe=new d({svg:this._element,type:((j=T.cornersDotOptions)===null||j===void 0?void 0:j.type)||T.dotsOptions.type,window:this._window});for(let ot=0;ot<S.length;ot++)for(let $e=0;$e<S[ot].length;$e++)!((be=S[ot])===null||be===void 0)&&be[$e]&&(Pe.draw(Be+$e*W,ae+ot*W,W,((ht,wt)=>{var Et;return!!(!((Et=S[ot+wt])===null||Et===void 0)&&Et[$e+ht])})),Pe._element&&xe&&xe.appendChild(Pe._element))}}))}loadImage(){return new Promise(((x,T)=>{var P;const F=this._options;if(!F.image)return T("Image is not defined");if(!((P=F.nodeCanvas)===null||P===void 0)&&P.loadImage)F.nodeCanvas.loadImage(F.image).then((E=>{var W,ne;if(this._image=E,this._options.imageOptions.saveAsBlob){const X=(W=F.nodeCanvas)===null||W===void 0?void 0:W.createCanvas(this._image.width,this._image.height);(ne=X?.getContext("2d"))===null||ne===void 0||ne.drawImage(E,0,0),this._imageUri=X?.toDataURL()}x()})).catch(T);else{const E=new this._window.Image;typeof F.imageOptions.crossOrigin=="string"&&(E.crossOrigin=F.imageOptions.crossOrigin),this._image=E,E.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await(async function(W,ne){return new Promise((X=>{const re=new ne.XMLHttpRequest;re.onload=function(){const ie=new ne.FileReader;ie.onloadend=function(){X(ie.result)},ie.readAsDataURL(re.response)},re.open("GET",W),re.responseType="blob",re.send()}))})(F.image||"",this._window)),x()},E.src=F.image}}))}async drawImage({width:x,height:T,count:P,dotSize:F}){const E=this._options,W=this._roundSize((E.width-P*F)/2),ne=this._roundSize((E.height-P*F)/2),X=W+this._roundSize(E.imageOptions.margin+(P*F-x)/2),re=ne+this._roundSize(E.imageOptions.margin+(P*F-T)/2),ie=x-2*E.imageOptions.margin,pe=T-2*E.imageOptions.margin,le=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");le.setAttribute("href",this._imageUri||""),le.setAttribute("xlink:href",this._imageUri||""),le.setAttribute("x",String(X)),le.setAttribute("y",String(re)),le.setAttribute("width",`${ie}px`),le.setAttribute("height",`${pe}px`),this._element.appendChild(le)}_createColor({options:x,color:T,additionalRotation:P,x:F,y:E,height:W,width:ne,name:X}){const re=ne>W?ne:W,ie=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ie.setAttribute("x",String(F)),ie.setAttribute("y",String(E)),ie.setAttribute("height",String(W)),ie.setAttribute("width",String(ne)),ie.setAttribute("clip-path",`url('#clip-path-${X}')`),x){let pe;if(x.type==="radial")pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),pe.setAttribute("id",X),pe.setAttribute("gradientUnits","userSpaceOnUse"),pe.setAttribute("fx",String(F+ne/2)),pe.setAttribute("fy",String(E+W/2)),pe.setAttribute("cx",String(F+ne/2)),pe.setAttribute("cy",String(E+W/2)),pe.setAttribute("r",String(re/2));else{const le=((x.rotation||0)+P)%(2*Math.PI),Ce=(le+2*Math.PI)%(2*Math.PI);let G=F+ne/2,ee=E+W/2,K=F+ne/2,N=E+W/2;Ce>=0&&Ce<=.25*Math.PI||Ce>1.75*Math.PI&&Ce<=2*Math.PI?(G-=ne/2,ee-=W/2*Math.tan(le),K+=ne/2,N+=W/2*Math.tan(le)):Ce>.25*Math.PI&&Ce<=.75*Math.PI?(ee-=W/2,G-=ne/2/Math.tan(le),N+=W/2,K+=ne/2/Math.tan(le)):Ce>.75*Math.PI&&Ce<=1.25*Math.PI?(G+=ne/2,ee+=W/2*Math.tan(le),K-=ne/2,N-=W/2*Math.tan(le)):Ce>1.25*Math.PI&&Ce<=1.75*Math.PI&&(ee+=W/2,G+=ne/2/Math.tan(le),N-=W/2,K-=ne/2/Math.tan(le)),pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),pe.setAttribute("id",X),pe.setAttribute("gradientUnits","userSpaceOnUse"),pe.setAttribute("x1",String(Math.round(G))),pe.setAttribute("y1",String(Math.round(ee))),pe.setAttribute("x2",String(Math.round(K))),pe.setAttribute("y2",String(Math.round(N)))}x.colorStops.forEach((({offset:le,color:Ce})=>{const G=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");G.setAttribute("offset",100*le+"%"),G.setAttribute("stop-color",Ce),pe.appendChild(G)})),ie.setAttribute("fill",`url('#${X}')`),this._defs.appendChild(pe)}else T&&ie.setAttribute("fill",T);this._element.appendChild(ie)}}Q.instanceCount=0;const _=Q,D="canvas",I={};for(let q=0;q<=40;q++)I[q]=q;const $={type:D,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:I[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function Y(q){const x=Object.assign({},q);if(!x.colorStops||!x.colorStops.length)throw"Field 'colorStops' is required in gradient";return x.rotation?x.rotation=Number(x.rotation):x.rotation=0,x.colorStops=x.colorStops.map((T=>Object.assign(Object.assign({},T),{offset:Number(T.offset)}))),x}function de(q){const x=Object.assign({},q);return x.width=Number(x.width),x.height=Number(x.height),x.margin=Number(x.margin),x.imageOptions=Object.assign(Object.assign({},x.imageOptions),{hideBackgroundDots:!!x.imageOptions.hideBackgroundDots,imageSize:Number(x.imageOptions.imageSize),margin:Number(x.imageOptions.margin)}),x.margin>Math.min(x.width,x.height)&&(x.margin=Math.min(x.width,x.height)),x.dotsOptions=Object.assign({},x.dotsOptions),x.dotsOptions.gradient&&(x.dotsOptions.gradient=Y(x.dotsOptions.gradient)),x.cornersSquareOptions&&(x.cornersSquareOptions=Object.assign({},x.cornersSquareOptions),x.cornersSquareOptions.gradient&&(x.cornersSquareOptions.gradient=Y(x.cornersSquareOptions.gradient))),x.cornersDotOptions&&(x.cornersDotOptions=Object.assign({},x.cornersDotOptions),x.cornersDotOptions.gradient&&(x.cornersDotOptions.gradient=Y(x.cornersDotOptions.gradient))),x.backgroundOptions&&(x.backgroundOptions=Object.assign({},x.backgroundOptions),x.backgroundOptions.gradient&&(x.backgroundOptions.gradient=Y(x.backgroundOptions.gradient))),x}var ge=A(873),me=A.n(ge);function we(q){if(!q)throw new Error("Extension must be defined");q[0]==="."&&(q=q.substring(1));const x={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[q.toLowerCase()];if(!x)throw new Error(`Extension "${q}" is not supported`);return x}class te{constructor(x){x?.jsdom?this._window=new x.jsdom("",{resources:"usable"}).window:this._window=window,this._options=x?de(a($,x)):$,this.update()}static _clearContainer(x){x&&(x.innerHTML="")}_setupSvg(){if(!this._qr)return;const x=new _(this._options,this._window);this._svg=x.getElement(),this._svgDrawingPromise=x.drawQR(this._qr).then((()=>{var T;this._svg&&((T=this._extension)===null||T===void 0||T.call(this,x.getElement(),this._options))}))}_setupCanvas(){var x,T;this._qr&&(!((x=this._options.nodeCanvas)===null||x===void 0)&&x.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(T=this._svgDrawingPromise)===null||T===void 0?void 0:T.then((()=>{var P;if(!this._svg)return;const F=this._svg,E=new this._window.XMLSerializer().serializeToString(F),W=btoa(E),ne=`data:${we("svg")};base64,${W}`;if(!((P=this._options.nodeCanvas)===null||P===void 0)&&P.loadImage)return this._options.nodeCanvas.loadImage(ne).then((X=>{var re,ie;X.width=this._options.width,X.height=this._options.height,(ie=(re=this._nodeCanvas)===null||re===void 0?void 0:re.getContext("2d"))===null||ie===void 0||ie.drawImage(X,0,0)}));{const X=new this._window.Image;return new Promise((re=>{X.onload=()=>{var ie,pe;(pe=(ie=this._domCanvas)===null||ie===void 0?void 0:ie.getContext("2d"))===null||pe===void 0||pe.drawImage(X,0,0),re()},X.src=ne}))}})))}async _getElement(x="png"){if(!this._qr)throw"QR code is empty";return x.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(x){te._clearContainer(this._container),this._options=x?de(a(this._options,x)):this._options,this._options.data&&(this._qr=me()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||(function(T){switch(!0){case/^[0-9]*$/.test(T):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(T):return"Alphanumeric";default:return"Byte"}})(this._options.data)),this._qr.make(),this._options.type===D?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(x){if(x){if(typeof x.appendChild!="function")throw"Container should be a single DOM node";this._options.type===D?this._domCanvas&&x.appendChild(this._domCanvas):this._svg&&x.appendChild(this._svg),this._container=x}}applyExtension(x){if(!x)throw"Extension function should be defined.";this._extension=x,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(x="png"){if(!this._qr)throw"QR code is empty";const T=await this._getElement(x),P=we(x);if(!T)return null;if(x.toLowerCase()==="svg"){const F=`<?xml version="1.0" standalone="no"?>\r
|
|
174
|
+
`}return be.substring(0,be.length-1)},W.renderTo2dContext=function(K,N){N=N||2;for(var R=W.getModuleCount(),J=0;J<R;J++)for(var z=0;z<R;z++)K.fillStyle=W.isDark(J,z)?"black":"white",K.fillRect(J*N,z*N,N,N)},W};h.stringToBytes=(h.stringToBytesFuncs={default:function(te){for(var V=[],q=0;q<te.length;q+=1){var x=te.charCodeAt(q);V.push(255&x)}return V}}).default,h.createStringToBytes=function(te,V){var q=(function(){for(var T=me(te),P=function(){var re=T.read();if(re==-1)throw"eof";return re},F=0,E={};;){var W=T.read();if(W==-1)break;var ne=P(),X=P()<<8|P();E[String.fromCharCode(W<<8|ne)]=X,F+=1}if(F!=V)throw F+" != "+V;return E})(),x=63;return function(T){for(var P=[],F=0;F<T.length;F+=1){var E=T.charCodeAt(F);if(E<128)P.push(E);else{var W=q[T.charAt(F)];typeof W=="number"?(255&W)==W?P.push(W):(P.push(W>>>8),P.push(255&W)):P.push(x)}}return P}};var p,m,v,B,y,w={L:1,M:0,Q:3,H:2},C=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],m=1335,v=7973,y=function(te){for(var V=0;te!=0;)V+=1,te>>>=1;return V},(B={}).getBCHTypeInfo=function(te){for(var V=te<<10;y(V)-y(m)>=0;)V^=m<<y(V)-y(m);return 21522^(te<<10|V)},B.getBCHTypeNumber=function(te){for(var V=te<<12;y(V)-y(v)>=0;)V^=v<<y(V)-y(v);return te<<12|V},B.getPatternPosition=function(te){return p[te-1]},B.getMaskFunction=function(te){switch(te){case 0:return function(V,q){return(V+q)%2==0};case 1:return function(V,q){return V%2==0};case 2:return function(V,q){return q%3==0};case 3:return function(V,q){return(V+q)%3==0};case 4:return function(V,q){return(Math.floor(V/2)+Math.floor(q/3))%2==0};case 5:return function(V,q){return V*q%2+V*q%3==0};case 6:return function(V,q){return(V*q%2+V*q%3)%2==0};case 7:return function(V,q){return(V*q%3+(V+q)%2)%2==0};default:throw"bad maskPattern:"+te}},B.getErrorCorrectPolynomial=function(te){for(var V=Q([1],0),q=0;q<te;q+=1)V=V.multiply(Q([1,S.gexp(q)],0));return V},B.getLengthInBits=function(te,V){if(1<=V&&V<10)switch(te){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+te}else if(V<27)switch(te){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+te}else{if(!(V<41))throw"type:"+V;switch(te){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+te}}},B.getLostPoint=function(te){for(var V=te.getModuleCount(),q=0,x=0;x<V;x+=1)for(var T=0;T<V;T+=1){for(var P=0,F=te.isDark(x,T),E=-1;E<=1;E+=1)if(!(x+E<0||V<=x+E))for(var W=-1;W<=1;W+=1)T+W<0||V<=T+W||E==0&&W==0||F==te.isDark(x+E,T+W)&&(P+=1);P>5&&(q+=3+P-5)}for(x=0;x<V-1;x+=1)for(T=0;T<V-1;T+=1){var ne=0;te.isDark(x,T)&&(ne+=1),te.isDark(x+1,T)&&(ne+=1),te.isDark(x,T+1)&&(ne+=1),te.isDark(x+1,T+1)&&(ne+=1),ne!=0&&ne!=4||(q+=3)}for(x=0;x<V;x+=1)for(T=0;T<V-6;T+=1)te.isDark(x,T)&&!te.isDark(x,T+1)&&te.isDark(x,T+2)&&te.isDark(x,T+3)&&te.isDark(x,T+4)&&!te.isDark(x,T+5)&&te.isDark(x,T+6)&&(q+=40);for(T=0;T<V;T+=1)for(x=0;x<V-6;x+=1)te.isDark(x,T)&&!te.isDark(x+1,T)&&te.isDark(x+2,T)&&te.isDark(x+3,T)&&te.isDark(x+4,T)&&!te.isDark(x+5,T)&&te.isDark(x+6,T)&&(q+=40);var X=0;for(T=0;T<V;T+=1)for(x=0;x<V;x+=1)te.isDark(x,T)&&(X+=1);return q+Math.abs(100*X/V/V-50)/5*10},B),S=(function(){for(var te=new Array(256),V=new Array(256),q=0;q<8;q+=1)te[q]=1<<q;for(q=8;q<256;q+=1)te[q]=te[q-4]^te[q-5]^te[q-6]^te[q-8];for(q=0;q<255;q+=1)V[te[q]]=q;return{glog:function(x){if(x<1)throw"glog("+x+")";return V[x]},gexp:function(x){for(;x<0;)x+=255;for(;x>=256;)x-=255;return te[x]}}})();function Q(te,V){if(te.length===void 0)throw te.length+"/"+V;var q=(function(){for(var T=0;T<te.length&&te[T]==0;)T+=1;for(var P=new Array(te.length-T+V),F=0;F<te.length-T;F+=1)P[F]=te[F+T];return P})(),x={getAt:function(T){return q[T]},getLength:function(){return q.length},multiply:function(T){for(var P=new Array(x.getLength()+T.getLength()-1),F=0;F<x.getLength();F+=1)for(var E=0;E<T.getLength();E+=1)P[F+E]^=S.gexp(S.glog(x.getAt(F))+S.glog(T.getAt(E)));return Q(P,0)},mod:function(T){if(x.getLength()-T.getLength()<0)return x;for(var P=S.glog(x.getAt(0))-S.glog(T.getAt(0)),F=new Array(x.getLength()),E=0;E<x.getLength();E+=1)F[E]=x.getAt(E);for(E=0;E<T.getLength();E+=1)F[E]^=S.gexp(S.glog(T.getAt(E))+P);return Q(F,0).mod(T)}};return x}var _=(function(){var te=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],V=function(x,T){var P={};return P.totalCount=x,P.dataCount=T,P},q={getRSBlocks:function(x,T){var P=(function(pe,le){switch(le){case w.L:return te[4*(pe-1)+0];case w.M:return te[4*(pe-1)+1];case w.Q:return te[4*(pe-1)+2];case w.H:return te[4*(pe-1)+3];default:return}})(x,T);if(P===void 0)throw"bad rs block @ typeNumber:"+x+"/errorCorrectionLevel:"+T;for(var F=P.length/3,E=[],W=0;W<F;W+=1)for(var ne=P[3*W+0],X=P[3*W+1],re=P[3*W+2],Ae=0;Ae<ne;Ae+=1)E.push(V(X,re));return E}};return q})(),D=function(){var te=[],V=0,q={getBuffer:function(){return te},getAt:function(x){var T=Math.floor(x/8);return(te[T]>>>7-x%8&1)==1},put:function(x,T){for(var P=0;P<T;P+=1)q.putBit((x>>>T-P-1&1)==1)},getLengthInBits:function(){return V},putBit:function(x){var T=Math.floor(V/8);te.length<=T&&te.push(0),x&&(te[T]|=128>>>V%8),V+=1}};return q},I=function(te){var V=te,q={getMode:function(){return 1},getLength:function(P){return V.length},write:function(P){for(var F=V,E=0;E+2<F.length;)P.put(x(F.substring(E,E+3)),10),E+=3;E<F.length&&(F.length-E==1?P.put(x(F.substring(E,E+1)),4):F.length-E==2&&P.put(x(F.substring(E,E+2)),7))}},x=function(P){for(var F=0,E=0;E<P.length;E+=1)F=10*F+T(P.charAt(E));return F},T=function(P){if("0"<=P&&P<="9")return P.charCodeAt(0)-48;throw"illegal char :"+P};return q},$=function(te){var V=te,q={getMode:function(){return 2},getLength:function(T){return V.length},write:function(T){for(var P=V,F=0;F+1<P.length;)T.put(45*x(P.charAt(F))+x(P.charAt(F+1)),11),F+=2;F<P.length&&T.put(x(P.charAt(F)),6)}},x=function(T){if("0"<=T&&T<="9")return T.charCodeAt(0)-48;if("A"<=T&&T<="Z")return T.charCodeAt(0)-65+10;switch(T){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+T}};return q},Y=function(te){var V=h.stringToBytes(te);return{getMode:function(){return 4},getLength:function(q){return V.length},write:function(q){for(var x=0;x<V.length;x+=1)q.put(V[x],8)}}},de=function(te){var V=h.stringToBytesFuncs.SJIS;if(!V)throw"sjis not supported.";(function(){var T=V("友");if(T.length!=2||(T[0]<<8|T[1])!=38726)throw"sjis not supported."})();var q=V(te),x={getMode:function(){return 8},getLength:function(T){return~~(q.length/2)},write:function(T){for(var P=q,F=0;F+1<P.length;){var E=(255&P[F])<<8|255&P[F+1];if(33088<=E&&E<=40956)E-=33088;else{if(!(57408<=E&&E<=60351))throw"illegal char at "+(F+1)+"/"+E;E-=49472}E=192*(E>>>8&255)+(255&E),T.put(E,13),F+=2}if(F<P.length)throw"illegal char at "+(F+1)}};return x},ge=function(){var te=[],V={writeByte:function(q){te.push(255&q)},writeShort:function(q){V.writeByte(q),V.writeByte(q>>>8)},writeBytes:function(q,x,T){x=x||0,T=T||q.length;for(var P=0;P<T;P+=1)V.writeByte(q[P+x])},writeString:function(q){for(var x=0;x<q.length;x+=1)V.writeByte(q.charCodeAt(x))},toByteArray:function(){return te},toString:function(){var q="";q+="[";for(var x=0;x<te.length;x+=1)x>0&&(q+=","),q+=te[x];return q+"]"}};return V},me=function(te){var V=te,q=0,x=0,T=0,P={read:function(){for(;T<8;){if(q>=V.length){if(T==0)return-1;throw"unexpected end of file./"+T}var E=V.charAt(q);if(q+=1,E=="=")return T=0,-1;E.match(/^\s$/)||(x=x<<6|F(E.charCodeAt(0)),T+=6)}var W=x>>>T-8&255;return T-=8,W}},F=function(E){if(65<=E&&E<=90)return E-65;if(97<=E&&E<=122)return E-97+26;if(48<=E&&E<=57)return E-48+52;if(E==43)return 62;if(E==47)return 63;throw"c:"+E};return P},we=function(te,V,q){for(var x=(function(X,re){var Ae=X,pe=re,le=new Array(X*re),Ce={setPixel:function(K,N,R){le[N*Ae+K]=R},write:function(K){K.writeString("GIF87a"),K.writeShort(Ae),K.writeShort(pe),K.writeByte(128),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(255),K.writeByte(255),K.writeByte(255),K.writeString(","),K.writeShort(0),K.writeShort(0),K.writeShort(Ae),K.writeShort(pe),K.writeByte(0);var N=G(2);K.writeByte(2);for(var R=0;N.length-R>255;)K.writeByte(255),K.writeBytes(N,R,255),R+=255;K.writeByte(N.length-R),K.writeBytes(N,R,N.length-R),K.writeByte(0),K.writeString(";")}},G=function(K){for(var N=1<<K,R=1+(1<<K),J=K+1,z=ee(),ce=0;ce<N;ce+=1)z.add(String.fromCharCode(ce));z.add(String.fromCharCode(N)),z.add(String.fromCharCode(R));var k,U,O,se=ge(),j=(k=se,U=0,O=0,{write:function(he,xe){if(he>>>xe)throw"length over";for(;U+xe>=8;)k.writeByte(255&(he<<U|O)),xe-=8-U,he>>>=8-U,O=0,U=0;O|=he<<U,U+=xe},flush:function(){U>0&&k.writeByte(O)}});j.write(N,J);var be=0,Be=String.fromCharCode(le[be]);for(be+=1;be<le.length;){var ae=String.fromCharCode(le[be]);be+=1,z.contains(Be+ae)?Be+=ae:(j.write(z.indexOf(Be),J),z.size()<4095&&(z.size()==1<<J&&(J+=1),z.add(Be+ae)),Be=ae)}return j.write(z.indexOf(Be),J),j.write(R,J),j.flush(),se.toByteArray()},ee=function(){var K={},N=0,R={add:function(J){if(R.contains(J))throw"dup key:"+J;K[J]=N,N+=1},size:function(){return N},indexOf:function(J){return K[J]},contains:function(J){return K[J]!==void 0}};return R};return Ce})(te,V),T=0;T<V;T+=1)for(var P=0;P<te;P+=1)x.setPixel(P,T,q(P,T));var F=ge();x.write(F);for(var E=(function(){var X=0,re=0,Ae=0,pe="",le={},Ce=function(ee){pe+=String.fromCharCode(G(63&ee))},G=function(ee){if(!(ee<0)){if(ee<26)return 65+ee;if(ee<52)return ee-26+97;if(ee<62)return ee-52+48;if(ee==62)return 43;if(ee==63)return 47}throw"n:"+ee};return le.writeByte=function(ee){for(X=X<<8|255&ee,re+=8,Ae+=1;re>=6;)Ce(X>>>re-6),re-=6},le.flush=function(){if(re>0&&(Ce(X<<6-re),X=0,re=0),Ae%3!=0)for(var ee=3-Ae%3,K=0;K<ee;K+=1)pe+="="},le.toString=function(){return pe},le})(),W=F.toByteArray(),ne=0;ne<W.length;ne+=1)E.writeByte(W[ne]);return E.flush(),"data:image/gif;base64,"+E};return h})();d.stringToBytesFuncs["UTF-8"]=function(h){return(function(p){for(var m=[],v=0;v<p.length;v++){var B=p.charCodeAt(v);B<128?m.push(B):B<2048?m.push(192|B>>6,128|63&B):B<55296||B>=57344?m.push(224|B>>12,128|B>>6&63,128|63&B):(v++,B=65536+((1023&B)<<10|1023&p.charCodeAt(v)),m.push(240|B>>18,128|B>>12&63,128|B>>6&63,128|63&B))}return m})(h)},(u=typeof(l=function(){return d})=="function"?l.apply(a,[]):l)===void 0||(o.exports=u)}},r={};function A(o){var a=r[o];if(a!==void 0)return a.exports;var l=r[o]={exports:{}};return n[o](l,l.exports,A),l.exports}A.n=o=>{var a=o&&o.__esModule?()=>o.default:()=>o;return A.d(a,{a}),a},A.d=(o,a)=>{for(var l in a)A.o(a,l)&&!A.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})},A.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var i={};return(()=>{A.d(i,{default:()=>V});const o=q=>!!q&&typeof q=="object"&&!Array.isArray(q);function a(q,...x){if(!x.length)return q;const T=x.shift();return T!==void 0&&o(q)&&o(T)?(q=Object.assign({},q),Object.keys(T).forEach((P=>{const F=q[P],E=T[P];Array.isArray(F)&&Array.isArray(E)?q[P]=E:o(F)&&o(E)?q[P]=a(Object.assign({},F),E):q[P]=E})),a(q,...x)):q}function l(q,x){const T=document.createElement("a");T.download=x,T.href=q,document.body.appendChild(T),T.click(),document.body.removeChild(T)}const u={L:.07,M:.15,Q:.25,H:.3};class d{constructor({svg:x,type:T,window:P}){this._svg=x,this._type=T,this._window=P}draw(x,T,P,F){let E;switch(this._type){case"dots":E=this._drawDot;break;case"classy":E=this._drawClassy;break;case"classy-rounded":E=this._drawClassyRounded;break;case"rounded":E=this._drawRounded;break;case"extra-rounded":E=this._drawExtraRounded;break;default:E=this._drawSquare}E.call(this,{x,y:T,size:P,getNeighbor:F})}_rotateFigure({x,y:T,size:P,rotation:F=0,draw:E}){var W;const ne=x+P/2,X=T+P/2;E(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*F/Math.PI},${ne},${X})`)}_basicDot(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(P+T/2)),this._element.setAttribute("cy",String(F+T/2)),this._element.setAttribute("r",String(T/2))}}))}_basicSquare(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(P)),this._element.setAttribute("y",String(F)),this._element.setAttribute("width",String(T)),this._element.setAttribute("height",String(T))}}))}_basicSideRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h `+T/2+`a ${T/2} ${T/2}, 0, 0, 0, 0 ${-T}`)}}))}_basicCornerRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h ${T}v `+-T/2+`a ${T/2} ${T/2}, 0, 0, 0, ${-T/2} ${-T/2}`)}}))}_basicCornerExtraRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h ${T}a ${T} ${T}, 0, 0, 0, ${-T} ${-T}`)}}))}_basicCornersRounded(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${P} ${F}v `+T/2+`a ${T/2} ${T/2}, 0, 0, 0, ${T/2} ${T/2}h `+T/2+"v "+-T/2+`a ${T/2} ${T/2}, 0, 0, 0, ${-T/2} ${-T/2}`)}}))}_drawDot({x,y:T,size:P}){this._basicDot({x,y:T,size:P,rotation:0})}_drawSquare({x,y:T,size:P}){this._basicSquare({x,y:T,size:P,rotation:0})}_drawRounded({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0,re=E+W+ne+X;if(re!==0)if(re>2||E&&W||ne&&X)this._basicSquare({x,y:T,size:P,rotation:0});else{if(re===2){let Ae=0;return E&&ne?Ae=Math.PI/2:ne&&W?Ae=Math.PI:W&&X&&(Ae=-Math.PI/2),void this._basicCornerRounded({x,y:T,size:P,rotation:Ae})}if(re===1){let Ae=0;return ne?Ae=Math.PI/2:W?Ae=Math.PI:X&&(Ae=-Math.PI/2),void this._basicSideRounded({x,y:T,size:P,rotation:Ae})}}else this._basicDot({x,y:T,size:P,rotation:0})}_drawExtraRounded({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0,re=E+W+ne+X;if(re!==0)if(re>2||E&&W||ne&&X)this._basicSquare({x,y:T,size:P,rotation:0});else{if(re===2){let Ae=0;return E&&ne?Ae=Math.PI/2:ne&&W?Ae=Math.PI:W&&X&&(Ae=-Math.PI/2),void this._basicCornerExtraRounded({x,y:T,size:P,rotation:Ae})}if(re===1){let Ae=0;return ne?Ae=Math.PI/2:W?Ae=Math.PI:X&&(Ae=-Math.PI/2),void this._basicSideRounded({x,y:T,size:P,rotation:Ae})}}else this._basicDot({x,y:T,size:P,rotation:0})}_drawClassy({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0;E+W+ne+X!==0?E||ne?W||X?this._basicSquare({x,y:T,size:P,rotation:0}):this._basicCornerRounded({x,y:T,size:P,rotation:Math.PI/2}):this._basicCornerRounded({x,y:T,size:P,rotation:-Math.PI/2}):this._basicCornersRounded({x,y:T,size:P,rotation:Math.PI/2})}_drawClassyRounded({x,y:T,size:P,getNeighbor:F}){const E=F?+F(-1,0):0,W=F?+F(1,0):0,ne=F?+F(0,-1):0,X=F?+F(0,1):0;E+W+ne+X!==0?E||ne?W||X?this._basicSquare({x,y:T,size:P,rotation:0}):this._basicCornerExtraRounded({x,y:T,size:P,rotation:Math.PI/2}):this._basicCornerExtraRounded({x,y:T,size:P,rotation:-Math.PI/2}):this._basicCornersRounded({x,y:T,size:P,rotation:Math.PI/2})}}const h={dot:"dot",square:"square",extraRounded:"extra-rounded"},p=Object.values(h);class m{constructor({svg:x,type:T,window:P}){this._svg=x,this._type=T,this._window=P}draw(x,T,P,F){let E;switch(this._type){case h.square:E=this._drawSquare;break;case h.extraRounded:E=this._drawExtraRounded;break;default:E=this._drawDot}E.call(this,{x,y:T,size:P,rotation:F})}_rotateFigure({x,y:T,size:P,rotation:F=0,draw:E}){var W;const ne=x+P/2,X=T+P/2;E(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*F/Math.PI},${ne},${X})`)}_basicDot(x){const{size:T,x:P,y:F}=x,E=T/7;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${P+T/2} ${F}a ${T/2} ${T/2} 0 1 0 0.1 0zm 0 ${E}a ${T/2-E} ${T/2-E} 0 1 1 -0.1 0Z`)}}))}_basicSquare(x){const{size:T,x:P,y:F}=x,E=T/7;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${P} ${F}v ${T}h ${T}v `+-T+`zM ${P+E} ${F+E}h `+(T-2*E)+"v "+(T-2*E)+"h "+(2*E-T)+"z")}}))}_basicExtraRounded(x){const{size:T,x:P,y:F}=x,E=T/7;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${P} ${F+2.5*E}v `+2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*E} ${2.5*E}h `+2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*E} ${2.5*-E}v `+-2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*-E} ${2.5*-E}h `+-2*E+`a ${2.5*E} ${2.5*E}, 0, 0, 0, ${2.5*-E} ${2.5*E}M ${P+2.5*E} ${F+E}h `+2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*E} ${1.5*E}v `+2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*-E} ${1.5*E}h `+-2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*-E} ${1.5*-E}v `+-2*E+`a ${1.5*E} ${1.5*E}, 0, 0, 1, ${1.5*E} ${1.5*-E}`)}}))}_drawDot({x,y:T,size:P,rotation:F}){this._basicDot({x,y:T,size:P,rotation:F})}_drawSquare({x,y:T,size:P,rotation:F}){this._basicSquare({x,y:T,size:P,rotation:F})}_drawExtraRounded({x,y:T,size:P,rotation:F}){this._basicExtraRounded({x,y:T,size:P,rotation:F})}}const v={dot:"dot",square:"square"},B=Object.values(v);class y{constructor({svg:x,type:T,window:P}){this._svg=x,this._type=T,this._window=P}draw(x,T,P,F){let E;E=this._type===v.square?this._drawSquare:this._drawDot,E.call(this,{x,y:T,size:P,rotation:F})}_rotateFigure({x,y:T,size:P,rotation:F=0,draw:E}){var W;const ne=x+P/2,X=T+P/2;E(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*F/Math.PI},${ne},${X})`)}_basicDot(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(P+T/2)),this._element.setAttribute("cy",String(F+T/2)),this._element.setAttribute("r",String(T/2))}}))}_basicSquare(x){const{size:T,x:P,y:F}=x;this._rotateFigure(Object.assign(Object.assign({},x),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(P)),this._element.setAttribute("y",String(F)),this._element.setAttribute("width",String(T)),this._element.setAttribute("height",String(T))}}))}_drawDot({x,y:T,size:P,rotation:F}){this._basicDot({x,y:T,size:P,rotation:F})}_drawSquare({x,y:T,size:P,rotation:F}){this._basicSquare({x,y:T,size:P,rotation:F})}}const w="circle",C=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],S=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class Q{constructor(x,T){this._roundSize=P=>this._options.dotsOptions.roundSize?Math.floor(P):P,this._window=T,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(x.width)),this._element.setAttribute("height",String(x.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),x.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${x.width} ${x.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=x.image,this._instanceId=Q.instanceCount++,this._options=x}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(x){const T=x.getModuleCount(),P=Math.min(this._options.width,this._options.height)-2*this._options.margin,F=this._options.shape===w?P/Math.sqrt(2):P,E=this._roundSize(F/T);let W={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=x,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:ne,qrOptions:X}=this._options,re=ne.imageSize*u[X.errorCorrectionLevel],Ae=Math.floor(re*T*T);W=(function({originalHeight:pe,originalWidth:le,maxHiddenDots:Ce,maxHiddenAxisDots:G,dotSize:ee}){const K={x:0,y:0},N={x:0,y:0};if(pe<=0||le<=0||Ce<=0||ee<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const R=pe/le;return K.x=Math.floor(Math.sqrt(Ce/R)),K.x<=0&&(K.x=1),G&&G<K.x&&(K.x=G),K.x%2==0&&K.x--,N.x=K.x*ee,K.y=1+2*Math.ceil((K.x*R-1)/2),N.y=Math.round(N.x*R),(K.y*K.x>Ce||G&&G<K.y)&&(G&&G<K.y?(K.y=G,K.y%2==0&&K.x--):K.y-=2,N.y=K.y*ee,K.x=1+2*Math.ceil((K.y/R-1)/2),N.x=Math.round(N.y/R)),{height:N.y,width:N.x,hideYDots:K.y,hideXDots:K.x}})({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Ae,maxHiddenAxisDots:T-14,dotSize:E})}this.drawBackground(),this.drawDots(((ne,X)=>{var re,Ae,pe,le,Ce,G;return!(this._options.imageOptions.hideBackgroundDots&&ne>=(T-W.hideYDots)/2&&ne<(T+W.hideYDots)/2&&X>=(T-W.hideXDots)/2&&X<(T+W.hideXDots)/2||!((re=C[ne])===null||re===void 0)&&re[X]||!((Ae=C[ne-T+7])===null||Ae===void 0)&&Ae[X]||!((pe=C[ne])===null||pe===void 0)&&pe[X-T+7]||!((le=S[ne])===null||le===void 0)&&le[X]||!((Ce=S[ne-T+7])===null||Ce===void 0)&&Ce[X]||!((G=S[ne])===null||G===void 0)&&G[X-T+7])})),this.drawCorners(),this._options.image&&await this.drawImage({width:W.width,height:W.height,count:T,dotSize:E})}drawBackground(){var x,T,P;const F=this._element,E=this._options;if(F){const W=(x=E.backgroundOptions)===null||x===void 0?void 0:x.gradient,ne=(T=E.backgroundOptions)===null||T===void 0?void 0:T.color;let X=E.height,re=E.width;if(W||ne){const Ae=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((P=E.backgroundOptions)===null||P===void 0)&&P.round&&(X=re=Math.min(E.width,E.height),Ae.setAttribute("rx",String(X/2*E.backgroundOptions.round))),Ae.setAttribute("x",String(this._roundSize((E.width-re)/2))),Ae.setAttribute("y",String(this._roundSize((E.height-X)/2))),Ae.setAttribute("width",String(re)),Ae.setAttribute("height",String(X)),this._backgroundClipPath.appendChild(Ae),this._createColor({options:W,color:ne,additionalRotation:0,x:0,y:0,height:E.height,width:E.width,name:`background-color-${this._instanceId}`})}}}drawDots(x){var T,P;if(!this._qr)throw"QR code is not defined";const F=this._options,E=this._qr.getModuleCount();if(E>F.width||E>F.height)throw"The canvas is too small.";const W=Math.min(F.width,F.height)-2*F.margin,ne=F.shape===w?W/Math.sqrt(2):W,X=this._roundSize(ne/E),re=this._roundSize((F.width-E*X)/2),Ae=this._roundSize((F.height-E*X)/2),pe=new d({svg:this._element,type:F.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(T=F.dotsOptions)===null||T===void 0?void 0:T.gradient,color:F.dotsOptions.color,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:`dot-color-${this._instanceId}`});for(let le=0;le<E;le++)for(let Ce=0;Ce<E;Ce++)x&&!x(le,Ce)||!((P=this._qr)===null||P===void 0)&&P.isDark(le,Ce)&&(pe.draw(re+Ce*X,Ae+le*X,X,((G,ee)=>!(Ce+G<0||le+ee<0||Ce+G>=E||le+ee>=E)&&!(x&&!x(le+ee,Ce+G))&&!!this._qr&&this._qr.isDark(le+ee,Ce+G))),pe._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(pe._element));if(F.shape===w){const le=this._roundSize((W/X-E)/2),Ce=E+2*le,G=re-le*X,ee=Ae-le*X,K=[],N=this._roundSize(Ce/2);for(let R=0;R<Ce;R++){K[R]=[];for(let J=0;J<Ce;J++)R>=le-1&&R<=Ce-le&&J>=le-1&&J<=Ce-le||Math.sqrt((R-N)*(R-N)+(J-N)*(J-N))>N?K[R][J]=0:K[R][J]=this._qr.isDark(J-2*le<0?J:J>=E?J-2*le:J-le,R-2*le<0?R:R>=E?R-2*le:R-le)?1:0}for(let R=0;R<Ce;R++)for(let J=0;J<Ce;J++)K[R][J]&&(pe.draw(G+J*X,ee+R*X,X,((z,ce)=>{var k;return!!(!((k=K[R+ce])===null||k===void 0)&&k[J+z])})),pe._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(pe._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const x=this._element,T=this._options;if(!x)throw"Element code is not defined";const P=this._qr.getModuleCount(),F=Math.min(T.width,T.height)-2*T.margin,E=T.shape===w?F/Math.sqrt(2):F,W=this._roundSize(E/P),ne=7*W,X=3*W,re=this._roundSize((T.width-P*W)/2),Ae=this._roundSize((T.height-P*W)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((([pe,le,Ce])=>{var G,ee,K,N,R,J,z,ce,k,U,O,se,j,be;const Be=re+pe*W*(P-7),ae=Ae+le*W*(P-7);let he=this._dotsClipPath,xe=this._dotsClipPath;if((!((G=T.cornersSquareOptions)===null||G===void 0)&&G.gradient||!((ee=T.cornersSquareOptions)===null||ee===void 0)&&ee.color)&&(he=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),he.setAttribute("id",`clip-path-corners-square-color-${pe}-${le}-${this._instanceId}`),this._defs.appendChild(he),this._cornersSquareClipPath=this._cornersDotClipPath=xe=he,this._createColor({options:(K=T.cornersSquareOptions)===null||K===void 0?void 0:K.gradient,color:(N=T.cornersSquareOptions)===null||N===void 0?void 0:N.color,additionalRotation:Ce,x:Be,y:ae,height:ne,width:ne,name:`corners-square-color-${pe}-${le}-${this._instanceId}`})),((R=T.cornersSquareOptions)===null||R===void 0?void 0:R.type)&&p.includes(T.cornersSquareOptions.type)){const Pe=new m({svg:this._element,type:T.cornersSquareOptions.type,window:this._window});Pe.draw(Be,ae,ne,Ce),Pe._element&&he&&he.appendChild(Pe._element)}else{const Pe=new d({svg:this._element,type:((J=T.cornersSquareOptions)===null||J===void 0?void 0:J.type)||T.dotsOptions.type,window:this._window});for(let ot=0;ot<C.length;ot++)for(let $e=0;$e<C[ot].length;$e++)!((z=C[ot])===null||z===void 0)&&z[$e]&&(Pe.draw(Be+$e*W,ae+ot*W,W,((ht,wt)=>{var Et;return!!(!((Et=C[ot+wt])===null||Et===void 0)&&Et[$e+ht])})),Pe._element&&he&&he.appendChild(Pe._element))}if((!((ce=T.cornersDotOptions)===null||ce===void 0)&&ce.gradient||!((k=T.cornersDotOptions)===null||k===void 0)&&k.color)&&(xe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),xe.setAttribute("id",`clip-path-corners-dot-color-${pe}-${le}-${this._instanceId}`),this._defs.appendChild(xe),this._cornersDotClipPath=xe,this._createColor({options:(U=T.cornersDotOptions)===null||U===void 0?void 0:U.gradient,color:(O=T.cornersDotOptions)===null||O===void 0?void 0:O.color,additionalRotation:Ce,x:Be+2*W,y:ae+2*W,height:X,width:X,name:`corners-dot-color-${pe}-${le}-${this._instanceId}`})),((se=T.cornersDotOptions)===null||se===void 0?void 0:se.type)&&B.includes(T.cornersDotOptions.type)){const Pe=new y({svg:this._element,type:T.cornersDotOptions.type,window:this._window});Pe.draw(Be+2*W,ae+2*W,X,Ce),Pe._element&&xe&&xe.appendChild(Pe._element)}else{const Pe=new d({svg:this._element,type:((j=T.cornersDotOptions)===null||j===void 0?void 0:j.type)||T.dotsOptions.type,window:this._window});for(let ot=0;ot<S.length;ot++)for(let $e=0;$e<S[ot].length;$e++)!((be=S[ot])===null||be===void 0)&&be[$e]&&(Pe.draw(Be+$e*W,ae+ot*W,W,((ht,wt)=>{var Et;return!!(!((Et=S[ot+wt])===null||Et===void 0)&&Et[$e+ht])})),Pe._element&&xe&&xe.appendChild(Pe._element))}}))}loadImage(){return new Promise(((x,T)=>{var P;const F=this._options;if(!F.image)return T("Image is not defined");if(!((P=F.nodeCanvas)===null||P===void 0)&&P.loadImage)F.nodeCanvas.loadImage(F.image).then((E=>{var W,ne;if(this._image=E,this._options.imageOptions.saveAsBlob){const X=(W=F.nodeCanvas)===null||W===void 0?void 0:W.createCanvas(this._image.width,this._image.height);(ne=X?.getContext("2d"))===null||ne===void 0||ne.drawImage(E,0,0),this._imageUri=X?.toDataURL()}x()})).catch(T);else{const E=new this._window.Image;typeof F.imageOptions.crossOrigin=="string"&&(E.crossOrigin=F.imageOptions.crossOrigin),this._image=E,E.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await(async function(W,ne){return new Promise((X=>{const re=new ne.XMLHttpRequest;re.onload=function(){const Ae=new ne.FileReader;Ae.onloadend=function(){X(Ae.result)},Ae.readAsDataURL(re.response)},re.open("GET",W),re.responseType="blob",re.send()}))})(F.image||"",this._window)),x()},E.src=F.image}}))}async drawImage({width:x,height:T,count:P,dotSize:F}){const E=this._options,W=this._roundSize((E.width-P*F)/2),ne=this._roundSize((E.height-P*F)/2),X=W+this._roundSize(E.imageOptions.margin+(P*F-x)/2),re=ne+this._roundSize(E.imageOptions.margin+(P*F-T)/2),Ae=x-2*E.imageOptions.margin,pe=T-2*E.imageOptions.margin,le=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");le.setAttribute("href",this._imageUri||""),le.setAttribute("xlink:href",this._imageUri||""),le.setAttribute("x",String(X)),le.setAttribute("y",String(re)),le.setAttribute("width",`${Ae}px`),le.setAttribute("height",`${pe}px`),this._element.appendChild(le)}_createColor({options:x,color:T,additionalRotation:P,x:F,y:E,height:W,width:ne,name:X}){const re=ne>W?ne:W,Ae=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ae.setAttribute("x",String(F)),Ae.setAttribute("y",String(E)),Ae.setAttribute("height",String(W)),Ae.setAttribute("width",String(ne)),Ae.setAttribute("clip-path",`url('#clip-path-${X}')`),x){let pe;if(x.type==="radial")pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),pe.setAttribute("id",X),pe.setAttribute("gradientUnits","userSpaceOnUse"),pe.setAttribute("fx",String(F+ne/2)),pe.setAttribute("fy",String(E+W/2)),pe.setAttribute("cx",String(F+ne/2)),pe.setAttribute("cy",String(E+W/2)),pe.setAttribute("r",String(re/2));else{const le=((x.rotation||0)+P)%(2*Math.PI),Ce=(le+2*Math.PI)%(2*Math.PI);let G=F+ne/2,ee=E+W/2,K=F+ne/2,N=E+W/2;Ce>=0&&Ce<=.25*Math.PI||Ce>1.75*Math.PI&&Ce<=2*Math.PI?(G-=ne/2,ee-=W/2*Math.tan(le),K+=ne/2,N+=W/2*Math.tan(le)):Ce>.25*Math.PI&&Ce<=.75*Math.PI?(ee-=W/2,G-=ne/2/Math.tan(le),N+=W/2,K+=ne/2/Math.tan(le)):Ce>.75*Math.PI&&Ce<=1.25*Math.PI?(G+=ne/2,ee+=W/2*Math.tan(le),K-=ne/2,N-=W/2*Math.tan(le)):Ce>1.25*Math.PI&&Ce<=1.75*Math.PI&&(ee+=W/2,G+=ne/2/Math.tan(le),N-=W/2,K-=ne/2/Math.tan(le)),pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),pe.setAttribute("id",X),pe.setAttribute("gradientUnits","userSpaceOnUse"),pe.setAttribute("x1",String(Math.round(G))),pe.setAttribute("y1",String(Math.round(ee))),pe.setAttribute("x2",String(Math.round(K))),pe.setAttribute("y2",String(Math.round(N)))}x.colorStops.forEach((({offset:le,color:Ce})=>{const G=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");G.setAttribute("offset",100*le+"%"),G.setAttribute("stop-color",Ce),pe.appendChild(G)})),Ae.setAttribute("fill",`url('#${X}')`),this._defs.appendChild(pe)}else T&&Ae.setAttribute("fill",T);this._element.appendChild(Ae)}}Q.instanceCount=0;const _=Q,D="canvas",I={};for(let q=0;q<=40;q++)I[q]=q;const $={type:D,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:I[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function Y(q){const x=Object.assign({},q);if(!x.colorStops||!x.colorStops.length)throw"Field 'colorStops' is required in gradient";return x.rotation?x.rotation=Number(x.rotation):x.rotation=0,x.colorStops=x.colorStops.map((T=>Object.assign(Object.assign({},T),{offset:Number(T.offset)}))),x}function de(q){const x=Object.assign({},q);return x.width=Number(x.width),x.height=Number(x.height),x.margin=Number(x.margin),x.imageOptions=Object.assign(Object.assign({},x.imageOptions),{hideBackgroundDots:!!x.imageOptions.hideBackgroundDots,imageSize:Number(x.imageOptions.imageSize),margin:Number(x.imageOptions.margin)}),x.margin>Math.min(x.width,x.height)&&(x.margin=Math.min(x.width,x.height)),x.dotsOptions=Object.assign({},x.dotsOptions),x.dotsOptions.gradient&&(x.dotsOptions.gradient=Y(x.dotsOptions.gradient)),x.cornersSquareOptions&&(x.cornersSquareOptions=Object.assign({},x.cornersSquareOptions),x.cornersSquareOptions.gradient&&(x.cornersSquareOptions.gradient=Y(x.cornersSquareOptions.gradient))),x.cornersDotOptions&&(x.cornersDotOptions=Object.assign({},x.cornersDotOptions),x.cornersDotOptions.gradient&&(x.cornersDotOptions.gradient=Y(x.cornersDotOptions.gradient))),x.backgroundOptions&&(x.backgroundOptions=Object.assign({},x.backgroundOptions),x.backgroundOptions.gradient&&(x.backgroundOptions.gradient=Y(x.backgroundOptions.gradient))),x}var ge=A(873),me=A.n(ge);function we(q){if(!q)throw new Error("Extension must be defined");q[0]==="."&&(q=q.substring(1));const x={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[q.toLowerCase()];if(!x)throw new Error(`Extension "${q}" is not supported`);return x}class te{constructor(x){x?.jsdom?this._window=new x.jsdom("",{resources:"usable"}).window:this._window=window,this._options=x?de(a($,x)):$,this.update()}static _clearContainer(x){x&&(x.innerHTML="")}_setupSvg(){if(!this._qr)return;const x=new _(this._options,this._window);this._svg=x.getElement(),this._svgDrawingPromise=x.drawQR(this._qr).then((()=>{var T;this._svg&&((T=this._extension)===null||T===void 0||T.call(this,x.getElement(),this._options))}))}_setupCanvas(){var x,T;this._qr&&(!((x=this._options.nodeCanvas)===null||x===void 0)&&x.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(T=this._svgDrawingPromise)===null||T===void 0?void 0:T.then((()=>{var P;if(!this._svg)return;const F=this._svg,E=new this._window.XMLSerializer().serializeToString(F),W=btoa(E),ne=`data:${we("svg")};base64,${W}`;if(!((P=this._options.nodeCanvas)===null||P===void 0)&&P.loadImage)return this._options.nodeCanvas.loadImage(ne).then((X=>{var re,Ae;X.width=this._options.width,X.height=this._options.height,(Ae=(re=this._nodeCanvas)===null||re===void 0?void 0:re.getContext("2d"))===null||Ae===void 0||Ae.drawImage(X,0,0)}));{const X=new this._window.Image;return new Promise((re=>{X.onload=()=>{var Ae,pe;(pe=(Ae=this._domCanvas)===null||Ae===void 0?void 0:Ae.getContext("2d"))===null||pe===void 0||pe.drawImage(X,0,0),re()},X.src=ne}))}})))}async _getElement(x="png"){if(!this._qr)throw"QR code is empty";return x.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(x){te._clearContainer(this._container),this._options=x?de(a(this._options,x)):this._options,this._options.data&&(this._qr=me()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||(function(T){switch(!0){case/^[0-9]*$/.test(T):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(T):return"Alphanumeric";default:return"Byte"}})(this._options.data)),this._qr.make(),this._options.type===D?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(x){if(x){if(typeof x.appendChild!="function")throw"Container should be a single DOM node";this._options.type===D?this._domCanvas&&x.appendChild(this._domCanvas):this._svg&&x.appendChild(this._svg),this._container=x}}applyExtension(x){if(!x)throw"Extension function should be defined.";this._extension=x,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(x="png"){if(!this._qr)throw"QR code is empty";const T=await this._getElement(x),P=we(x);if(!T)return null;if(x.toLowerCase()==="svg"){const F=`<?xml version="1.0" standalone="no"?>\r
|
|
175
175
|
${new this._window.XMLSerializer().serializeToString(T)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(F):new Blob([F],{type:P})}return new Promise((F=>{const E=T;if("toBuffer"in E)if(P==="image/png")F(E.toBuffer(P));else if(P==="image/jpeg")F(E.toBuffer(P));else{if(P!=="application/pdf")throw Error("Unsupported extension");F(E.toBuffer(P))}else"toBlob"in E&&E.toBlob(F,P,1)}))}async download(x){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let T="png",P="qr";typeof x=="string"?(T=x,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof x=="object"&&x!==null&&(x.name&&(P=x.name),x.extension&&(T=x.extension));const F=await this._getElement(T);if(F)if(T.toLowerCase()==="svg"){let E=new XMLSerializer().serializeToString(F);E=`<?xml version="1.0" standalone="no"?>\r
|
|
176
|
-
`+E,l(`data:${we(T)};charset=utf-8,${encodeURIComponent(E)}`,`${P}.svg`)}else l(F.toDataURL(we(T)),`${P}.${T}`)}}const V=te})(),i.default})()))})(Gf)),Gf.exports}var aX=sX();const tx=b5(aX),lX={class:"qr-code"},cX=["innerHTML"],uX=s.defineComponent({__name:"qr-code",props:{data:null,image:null,download:{type:Boolean,default:!1},filename:{type:String,default:"qr-code"}},emits:["update:dataUrl"],setup(t,{expose:e,emit:n}){const r=t,A=s.ref(),i=s.computed(()=>({width:300,height:300,type:"canvas",data:r.data,...r.image?{image:r.image}:{},margin:10,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,margin:20,crossOrigin:"anonymous"},dotsOptions:{type:"rounded"},backgroundOptions:{color:"#ffffff"},cornersSquareOptions:{color:"#333333",type:"extra-rounded"},cornersDotOptions:{color:"#333333",type:"dot"}}));function o(l=null,u=null){typeof window<"u"&&(A.value&&(A.value.innerHTML=""),new tx(l||i.value).append(A.value))}function a(){new tx({...i.value,width:1200,height:1200}).download({name:r.filename,extension:"png"})}return s.watch(()=>i.value,o,{deep:!0,immediate:!0}),s.onMounted(()=>{typeof window<"u"&&o()}),e({download:a}),(l,u)=>(s.openBlock(),s.createElementBlock("div",lX,[r.download?(s.openBlock(),s.createElementBlock("button",{key:0,class:"btn btn-outline-contrast mb-3",onClick:a,innerHTML:l.$t("qrlink.download")},null,8,cX)):(s.openBlock(),s.createElementBlock("div",{key:1,ref_key:"canvas",ref:A},null,512))]))}}),dX={class:"link-sharing"},fX={key:0,class:"link-sharing__links container"},hX={class:"row"},pX={key:0,class:"col-12 col-md-6"},mX=["href"],gX={class:"caption"},vX={key:1,class:"col-12 col-md-6"},wX=["href"],BX={class:"caption"},yX={key:2,class:"col-12 col-md-6"},CX={class:"caption"},bX={key:3,class:"col-12 col-md-6"},EX=["href"],kX={class:"caption"},SX={key:4,class:"col-12 col-md-6"},xX=["href"],FX={class:"caption"},QX={key:5,class:"col-12 col-md-6"},TX={class:"caption"},MX={key:6,class:"col-12 col-md-6"},IX=["href"],UX={class:"caption"},_X={key:1,class:"link-sharing__instructions pt-5"},DX={class:"row"},OX={class:"col-12 text-center py-0"},NX={class:"mb-5"},LX=t=>t.replace(/<(?:.|\n)*?>/gm,""),RX=s.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,n=s.ref(!1),r=s.computed(()=>encodeURIComponent(e.url));s.computed(()=>encodeURIComponent(e.media));const A=s.computed(()=>LX(e.text)),i=s.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function o(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,l)=>{const u=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",dX,[n.value?(s.openBlock(),s.createElementBlock("div",_X,[s.createElementVNode("div",DX,[s.createElementVNode("div",OX,[s.createElementVNode("div",NX,[s.createElementVNode("p",null,s.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),s.createElementVNode("p",null,[s.createElementVNode("strong",null,s.toDisplayString(Array.isArray(t.hashtags)?t.hashtags.join(", "):t.hashtags),1)]),s.createElementVNode("button",{type:"button",class:"btn btn-text",onClick:l[1]||(l[1]=s.withModifiers(d=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"arrow-left"}),s.createTextVNode(" "+s.toDisplayString(a.$t("common.back")),1)])])])])])):(s.openBlock(),s.createElementBlock("div",fX,[s.createElementVNode("div",hX,[t.services.facebook?(s.openBlock(),s.createElementBlock("div",pX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${r.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"facebook"}),s.createElementVNode("span",gX,s.toDisplayString(a.$t("sharing.facebook")),1)],8,mX)])):s.createCommentVNode("",!0),t.services.bluesky?(s.openBlock(),s.createElementBlock("div",vX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${A.value}${A.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"bluesky-logo"}),s.createElementVNode("span",BX,s.toDisplayString(a.$t("sharing.bluesky")),1)],8,wX)])):s.createCommentVNode("",!0),t.services.instagram?(s.openBlock(),s.createElementBlock("div",yX,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:l[0]||(l[0]=s.withModifiers(d=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"instagram"}),s.createElementVNode("span",CX,s.toDisplayString(a.$t("sharing.instagram")),1)])])):s.createCommentVNode("",!0),t.services.linkedin?(s.openBlock(),s.createElementBlock("div",bX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${r.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"linkedin"}),s.createElementVNode("span",kX,s.toDisplayString(a.$t("sharing.linkedin")),1)],8,EX)])):s.createCommentVNode("",!0),t.services.whatsapp&&i.value?(s.openBlock(),s.createElementBlock("div",SX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${r.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"whatsapp"}),s.createElementVNode("span",FX,s.toDisplayString(a.$t("sharing.whatsapp")),1)],8,xX)])):s.createCommentVNode("",!0),t.services.clipboard?(s.openBlock(),s.createElementBlock("div",QX,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(u,{symbol:"copy"}),s.createElementVNode("span",TX,s.toDisplayString(a.$t("sharing.clipboard")),1)])])):s.createCommentVNode("",!0),t.services.mailto?(s.openBlock(),s.createElementBlock("div",MX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${A.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"mail"}),s.createElementVNode("span",UX,s.toDisplayString(a.$t("sharing.mailto")),1)],8,IX)])):s.createCommentVNode("",!0)])]))])}}}),HX={class:"base-form"},PX=s.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(A){console.log("input",A)}function n(A){console.log("reset",A)}function r(A){console.log("submit",A)}return(A,i)=>(s.openBlock(),s.createElementBlock("div",HX,[s.createElementVNode("form",{ref:"form",onInput:e,onReset:n,onSubmit:s.withModifiers(r,["prevent"])},[s.renderSlot(A.$slots,"default")],544)]))}}),$X={class:"modal-dialog__content d-flex flex-column"},KX={class:"modal-dialog__header d-flex p-3 border-bottom"},zX={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},WX={class:"modal-dialog__body"},GX={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},YX=s.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:n}){const r=t,A=n,i=s.ref();function o(){document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),r.modal?i.value?.showModal():i.value?.show(),A("update:modelValue",!0)}function a(){const p=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(p,document.timeline);m.play(),m.addEventListener("finish",()=>{i.value?.close(),l()}),A("update:modelValue",!1)}function l(){const p=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(p,10),behavior:"instant"}),A("update:modelValue",!1)}function u(p){o(),A("confirm",p)}function d(){a(),A("cancel")}function h(p){const m=p.target;m&&m.nodeName==="DIALOG"&&a()}return s.watch(()=>r.modelValue,(p,m)=>{p&&p!==m?o():m&&a()},{immediate:!0}),s.onMounted(()=>{i.value?.addEventListener("cancel",p=>{p.preventDefault(),a()}),r.dismiss&&document.addEventListener("click",h),r.modelValue&&o()}),s.onBeforeUnmount(()=>{r.dismiss&&document.removeEventListener("click",h)}),e({show:o,close:a,confirm:u,cancel:d}),(p,m)=>(s.openBlock(),s.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:s.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:l},[s.createElementVNode("div",$X,[s.createElementVNode("div",KX,[t.title?(s.openBlock(),s.createElementBlock("h5",zX,s.toDisplayString(t.title),1)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),s.createElementVNode("div",WX,[s.renderSlot(p.$slots,"default")]),t.footer?(s.openBlock(),s.createElementBlock("div",GX,[s.renderSlot(p.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},s.toDisplayString(p.$t("common.close")),1)])):s.createCommentVNode("",!0)])],34))}}),qX=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],XX=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],JX={key:0,class:"sortable-list__drag-handle"},jX={type:"button",class:"btn"},ZX={key:0,class:"sortable-list__item"},VX=s.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue","update:isDragging","update:dragIndex","update:dragOverIndex"],setup(t,{emit:e}){const n=t,r=s.ref(!1),A=s.ref(null),i=s.ref(null),o=e,a=s.computed({get(){return n.modelValue},set(C){o("update:modelValue",C)}}),l=s.computed(()=>{const C=document.querySelector(".is-drag-item")?.outerHTML;return C?Ur(C):""}),u=s.useSlots(),d=s.computed(()=>u["list-append"]);function h(C,S){C.dataTransfer&&(C.dataTransfer.dropEffect="move",C.dataTransfer.effectAllowed="move",C.dataTransfer.setData("index",S.toLocaleString()),r.value=!0,A.value=S)}function p(C,S){r.value=!1,A.value=null,i.value=null}function m(C,S){}function v(C,S){i.value=A.value!==S?S:null}function B(C,S){i.value=A.value!==S?S:null}function y(C,S){}function w(C,S){if(C.dataTransfer){C.preventDefault();const Q=Number(C.dataTransfer.getData("index")),_=S,D=[...a.value];(_||_===0)&&(Q||Q===0)&&D.splice(_,0,D.splice(Q,1)[0]),a.value=D}}return s.watch(()=>r.value,C=>{o("update:isDragging",C)},{immediate:!0}),s.watch(()=>A.value,C=>{o("update:dragIndex",C)},{immediate:!0}),s.watch(()=>i.value,C=>{o("update:dragOverIndex",C)},{immediate:!0}),(C,S)=>{const Q=s.resolveComponent("svg-icon");return s.openBlock(),s.createBlock(s.TransitionGroup,{name:"list",tag:"ul",class:s.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=s.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(_,D)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:D},[t.showPreview&&r.value&&i.value===D?(s.openBlock(),s.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:I=>v(I,D),onDragover:I=>B(I,D),onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>w(I,D),innerHTML:l.value},null,40,qX)):s.createCommentVNode("",!0),s.createElementVNode("li",{class:s.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":r.value&&A.value===D,"is-drop-target":r.value&&i.value===D&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:I=>h(I,D),onDrag:I=>void 0,onDragenter:I=>v(I,D),onDragover:I=>B(I,D),onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>w(I,D)},[t.showDragHandle?(s.openBlock(),s.createElementBlock("div",JX,[s.createElementVNode("button",jX,[s.createVNode(Q,{symbol:"drag"})])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[s.renderSlot(C.$slots,"list-item",{item:_,index:D},()=>[s.createTextVNode(s.toDisplayString(_),1)])],2)],42,XX)],64))),128)),d.value?(s.openBlock(),s.createElementBlock("li",ZX,[s.renderSlot(C.$slots,"list-append")])):s.createCommentVNode("",!0)]),_:3},8,["class"])}}}),eJ={class:"touch-wrapper__controls"},tJ={class:"btn-group",role:"group"},nJ=s.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.getCurrentInstance(),r=n&&n.appContext.config.globalProperties.$config,A=t,i=e,o=s.ref();function a(d){const h=A.modelValue+d;i("update:modelValue",d===0?1:h>=1?h:1)}function l(d){if(d.ctrlKey){d.preventDefault();const h=0-d.deltaY*.01;a(h)}}function u(d){d.preventDefault();const{scale:h}=d,p=h>1?h*.01:0-h;a(p)}return s.onMounted(()=>{o.value&&(o.value.addEventListener("wheel",l,!1),o.value.addEventListener("gesturestart",u,!1),o.value.addEventListener("gesturechange",u,!1),o.value.addEventListener("gestureend",u,!1))}),(d,h)=>{const p=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"touchElement",ref:o,class:"touch-wrapper"},[s.renderSlot(d.$slots,"controls",{on:{setScale:a}},()=>[s.createElementVNode("div",eJ,[s.createElementVNode("div",tJ,[s.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=m=>a(-1))},[s.createVNode(p,{symbol:"minus","base-path":s.unref(r).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=m=>a(0))},[s.createVNode(p,{symbol:"maximize","base-path":s.unref(r).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=m=>a(1))},[s.createVNode(p,{symbol:"plus","base-path":s.unref(r).iconSprite},null,8,["base-path"])])])])]),s.renderSlot(d.$slots,"default")],512)}}});var Ov={};(function t(e,n,r,A){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=(function(){if(!e.OffscreenCanvas)return!1;try{var F=new OffscreenCanvas(1,1),E=F.getContext("2d");E.fillRect(0,0,1,1);var W=F.transferToImageBitmap();E.createPattern(W,"no-repeat")}catch{return!1}return!0})();function l(){}function u(F){var E=n.exports.Promise,W=E!==void 0?E:e.Promise;return typeof W=="function"?new W(F):(F(l,l),null)}var d=(function(F,E){return{transform:function(W){if(F)return W;if(E.has(W))return E.get(W);var ne=new OffscreenCanvas(W.width,W.height),X=ne.getContext("2d");return X.drawImage(W,0,0),E.set(W,ne),ne},clear:function(){E.clear()}}})(a,new Map),h=(function(){var F=Math.floor(16.666666666666668),E,W,ne={},X=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(E=function(re){var ie=Math.random();return ne[ie]=requestAnimationFrame(function pe(le){X===le||X+F-1<le?(X=le,delete ne[ie],re()):ne[ie]=requestAnimationFrame(pe)}),ie},W=function(re){ne[re]&&cancelAnimationFrame(ne[re])}):(E=function(re){return setTimeout(re,F)},W=function(re){return clearTimeout(re)}),{frame:E,cancel:W}})(),p=(function(){var F,E,W={};function ne(X){function re(ie,pe){X.postMessage({options:ie||{},callback:pe})}X.init=function(pe){var le=pe.transferControlToOffscreen();X.postMessage({canvas:le},[le])},X.fire=function(pe,le,Ce){if(E)return re(pe,null),E;var G=Math.random().toString(36).slice(2);return E=u(function(ee){function K(N){N.data.callback===G&&(delete W[G],X.removeEventListener("message",K),E=null,d.clear(),Ce(),ee())}X.addEventListener("message",K),re(pe,G),W[G]=K.bind(null,{data:{callback:G}})}),E},X.reset=function(){X.postMessage({reset:!0});for(var pe in W)W[pe](),delete W[pe]}}return function(){if(F)return F;if(!r&&i){var X=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
|
|
177
|
-
`);try{F=new Worker(URL.createObjectURL(new Blob([X])))}catch(re){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",re),null}ne(F)}return F}})(),m={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function v(F,E){return E?E(F):F}function B(F){return F!=null}function y(F,E,W){return v(F&&B(F[E])?F[E]:m[E],W)}function w(F){return F<0?0:Math.floor(F)}function C(F,E){return Math.floor(Math.random()*(E-F))+F}function S(F){return parseInt(F,16)}function Q(F){return F.map(_)}function _(F){var E=String(F).replace(/[^0-9a-f]/gi,"");return E.length<6&&(E=E[0]+E[0]+E[1]+E[1]+E[2]+E[2]),{r:S(E.substring(0,2)),g:S(E.substring(2,4)),b:S(E.substring(4,6))}}function D(F){var E=y(F,"origin",Object);return E.x=y(E,"x",Number),E.y=y(E,"y",Number),E}function I(F){F.width=document.documentElement.clientWidth,F.height=document.documentElement.clientHeight}function $(F){var E=F.getBoundingClientRect();F.width=E.width,F.height=E.height}function Y(F){var E=document.createElement("canvas");return E.style.position="fixed",E.style.top="0px",E.style.left="0px",E.style.pointerEvents="none",E.style.zIndex=F,E}function de(F,E,W,ne,X,re,ie,pe,le){F.save(),F.translate(E,W),F.rotate(re),F.scale(ne,X),F.arc(0,0,1,ie,pe,le),F.restore()}function ge(F){var E=F.angle*(Math.PI/180),W=F.spread*(Math.PI/180);return{x:F.x,y:F.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:F.startVelocity*.5+Math.random()*F.startVelocity,angle2D:-E+(.5*W-Math.random()*W),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:F.color,shape:F.shape,tick:0,totalTicks:F.ticks,decay:F.decay,drift:F.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:F.gravity*3,ovalScalar:.6,scalar:F.scalar,flat:F.flat}}function me(F,E){E.x+=Math.cos(E.angle2D)*E.velocity+E.drift,E.y+=Math.sin(E.angle2D)*E.velocity+E.gravity,E.velocity*=E.decay,E.flat?(E.wobble=0,E.wobbleX=E.x+10*E.scalar,E.wobbleY=E.y+10*E.scalar,E.tiltSin=0,E.tiltCos=0,E.random=1):(E.wobble+=E.wobbleSpeed,E.wobbleX=E.x+10*E.scalar*Math.cos(E.wobble),E.wobbleY=E.y+10*E.scalar*Math.sin(E.wobble),E.tiltAngle+=.1,E.tiltSin=Math.sin(E.tiltAngle),E.tiltCos=Math.cos(E.tiltAngle),E.random=Math.random()+2);var W=E.tick++/E.totalTicks,ne=E.x+E.random*E.tiltCos,X=E.y+E.random*E.tiltSin,re=E.wobbleX+E.random*E.tiltCos,ie=E.wobbleY+E.random*E.tiltSin;if(F.fillStyle="rgba("+E.color.r+", "+E.color.g+", "+E.color.b+", "+(1-W)+")",F.beginPath(),o&&E.shape.type==="path"&&typeof E.shape.path=="string"&&Array.isArray(E.shape.matrix))F.fill(x(E.shape.path,E.shape.matrix,E.x,E.y,Math.abs(re-ne)*.1,Math.abs(ie-X)*.1,Math.PI/10*E.wobble));else if(E.shape.type==="bitmap"){var pe=Math.PI/10*E.wobble,le=Math.abs(re-ne)*.1,Ce=Math.abs(ie-X)*.1,G=E.shape.bitmap.width*E.scalar,ee=E.shape.bitmap.height*E.scalar,K=new DOMMatrix([Math.cos(pe)*le,Math.sin(pe)*le,-Math.sin(pe)*Ce,Math.cos(pe)*Ce,E.x,E.y]);K.multiplySelf(new DOMMatrix(E.shape.matrix));var N=F.createPattern(d.transform(E.shape.bitmap),"no-repeat");N.setTransform(K),F.globalAlpha=1-W,F.fillStyle=N,F.fillRect(E.x-G/2,E.y-ee/2,G,ee),F.globalAlpha=1}else if(E.shape==="circle")F.ellipse?F.ellipse(E.x,E.y,Math.abs(re-ne)*E.ovalScalar,Math.abs(ie-X)*E.ovalScalar,Math.PI/10*E.wobble,0,2*Math.PI):de(F,E.x,E.y,Math.abs(re-ne)*E.ovalScalar,Math.abs(ie-X)*E.ovalScalar,Math.PI/10*E.wobble,0,2*Math.PI);else if(E.shape==="star")for(var R=Math.PI/2*3,J=4*E.scalar,z=8*E.scalar,ce=E.x,k=E.y,U=5,O=Math.PI/U;U--;)ce=E.x+Math.cos(R)*z,k=E.y+Math.sin(R)*z,F.lineTo(ce,k),R+=O,ce=E.x+Math.cos(R)*J,k=E.y+Math.sin(R)*J,F.lineTo(ce,k),R+=O;else F.moveTo(Math.floor(E.x),Math.floor(E.y)),F.lineTo(Math.floor(E.wobbleX),Math.floor(X)),F.lineTo(Math.floor(re),Math.floor(ie)),F.lineTo(Math.floor(ne),Math.floor(E.wobbleY));return F.closePath(),F.fill(),E.tick<E.totalTicks}function we(F,E,W,ne,X){var re=E.slice(),ie=F.getContext("2d"),pe,le,Ce=u(function(G){function ee(){pe=le=null,ie.clearRect(0,0,ne.width,ne.height),d.clear(),X(),G()}function K(){r&&!(ne.width===A.width&&ne.height===A.height)&&(ne.width=F.width=A.width,ne.height=F.height=A.height),!ne.width&&!ne.height&&(W(F),ne.width=F.width,ne.height=F.height),ie.clearRect(0,0,ne.width,ne.height),re=re.filter(function(N){return me(ie,N)}),re.length?pe=h.frame(K):ee()}pe=h.frame(K),le=ee});return{addFettis:function(G){return re=re.concat(G),Ce},canvas:F,promise:Ce,reset:function(){pe&&h.cancel(pe),le&&le()}}}function te(F,E){var W=!F,ne=!!y(E||{},"resize"),X=!1,re=y(E,"disableForReducedMotion",Boolean),ie=i&&!!y(E||{},"useWorker"),pe=ie?p():null,le=W?I:$,Ce=F&&pe?!!F.__confetti_initialized:!1,G=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ee;function K(R,J,z){for(var ce=y(R,"particleCount",w),k=y(R,"angle",Number),U=y(R,"spread",Number),O=y(R,"startVelocity",Number),se=y(R,"decay",Number),j=y(R,"gravity",Number),be=y(R,"drift",Number),Be=y(R,"colors",Q),ae=y(R,"ticks",Number),he=y(R,"shapes"),xe=y(R,"scalar"),Pe=!!y(R,"flat"),ot=D(R),$e=ce,ht=[],wt=F.width*ot.x,Et=F.height*ot.y;$e--;)ht.push(ge({x:wt,y:Et,angle:k,spread:U,startVelocity:O,color:Be[$e%Be.length],shape:he[C(0,he.length)],ticks:ae,decay:se,gravity:j,drift:be,scalar:xe,flat:Pe}));return ee?ee.addFettis(ht):(ee=we(F,ht,le,J,z),ee.promise)}function N(R){var J=re||y(R,"disableForReducedMotion",Boolean),z=y(R,"zIndex",Number);if(J&&G)return u(function(O){O()});W&&ee?F=ee.canvas:W&&!F&&(F=Y(z),document.body.appendChild(F)),ne&&!Ce&&le(F);var ce={width:F.width,height:F.height};pe&&!Ce&&pe.init(F),Ce=!0,pe&&(F.__confetti_initialized=!0);function k(){if(pe){var O={getBoundingClientRect:function(){if(!W)return F.getBoundingClientRect()}};le(O),pe.postMessage({resize:{width:O.width,height:O.height}});return}ce.width=ce.height=null}function U(){ee=null,ne&&(X=!1,e.removeEventListener("resize",k)),W&&F&&(document.body.contains(F)&&document.body.removeChild(F),F=null,Ce=!1)}return ne&&!X&&(X=!0,e.addEventListener("resize",k,!1)),pe?pe.fire(R,ce,U):K(R,ce,U)}return N.reset=function(){pe&&pe.reset(),ee&&ee.reset()},N}var V;function q(){return V||(V=te(null,{useWorker:!0,resize:!0})),V}function x(F,E,W,ne,X,re,ie){var pe=new Path2D(F),le=new Path2D;le.addPath(pe,new DOMMatrix(E));var Ce=new Path2D;return Ce.addPath(le,new DOMMatrix([Math.cos(ie)*X,Math.sin(ie)*X,-Math.sin(ie)*re,Math.cos(ie)*re,W,ne])),Ce}function T(F){if(!o)throw new Error("path confetti are not supported in this browser");var E,W;typeof F=="string"?E=F:(E=F.path,W=F.matrix);var ne=new Path2D(E),X=document.createElement("canvas"),re=X.getContext("2d");if(!W){for(var ie=1e3,pe=ie,le=ie,Ce=0,G=0,ee,K,N=0;N<ie;N+=2)for(var R=0;R<ie;R+=2)re.isPointInPath(ne,N,R,"nonzero")&&(pe=Math.min(pe,N),le=Math.min(le,R),Ce=Math.max(Ce,N),G=Math.max(G,R));ee=Ce-pe,K=G-le;var J=10,z=Math.min(J/ee,J/K);W=[z,0,0,z,-Math.round(ee/2+pe)*z,-Math.round(K/2+le)*z]}return{type:"path",path:E,matrix:W}}function P(F){var E,W=1,ne="#000000",X='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof F=="string"?E=F:(E=F.text,W="scalar"in F?F.scalar:W,X="fontFamily"in F?F.fontFamily:X,ne="color"in F?F.color:ne);var re=10*W,ie=""+re+"px "+X,pe=new OffscreenCanvas(re,re),le=pe.getContext("2d");le.font=ie;var Ce=le.measureText(E),G=Math.ceil(Ce.actualBoundingBoxRight+Ce.actualBoundingBoxLeft),ee=Math.ceil(Ce.actualBoundingBoxAscent+Ce.actualBoundingBoxDescent),K=2,N=Ce.actualBoundingBoxLeft+K,R=Ce.actualBoundingBoxAscent+K;G+=K+K,ee+=K+K,pe=new OffscreenCanvas(G,ee),le=pe.getContext("2d"),le.font=ie,le.fillStyle=ne,le.fillText(E,N,R);var J=1/W;return{type:"bitmap",bitmap:pe.transferToImageBitmap(),matrix:[J,0,0,J,-G*J/2,-ee*J/2]}}n.exports=function(){return q().apply(this,arguments)},n.exports.reset=function(){q().reset()},n.exports.create=te,n.exports.shapeFromPath=T,n.exports.shapeFromText=P})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),Ov,!1);const nx=Ov.exports;Ov.exports.create;const rx={default:{items:[{particleCount:80,spread:120,origin:{y:.625,x:.5}},{timeout:400,particleCount:80,spread:120,origin:{y:.625,x:.625}},{timeout:800,particleCount:80,spread:120,origin:{y:.625,x:.375}}]},randomDirection:{items:[{angle:Nv(55,125),spread:Nv(50,70),particleCount:Nv(50,100),origin:{y:.6}}]},pride:{items:[{timeout:20,particleCount:2,spread:32,origin:{x:0},colors:["#ff0000"]},{timeout:20,particleCount:2,spread:32,origin:{x:1},colors:["#ff0000"]}]}};function Nv(t,e){return Math.random()*(e-t)+t}const rJ=s.defineComponent({__name:"canvas-confetti",props:{preset:{type:String,default:"default"},items:{default:()=>[{}]},colors:{type:Array,default:()=>[]},loop:{type:Boolean,default:!1}},setup(t){const e=t,n=s.ref(null),r=s.computed(()=>({...rx[e.preset],items:rx[e.preset].items.map((o,a)=>({...o,...e.items[a],...e.colors.length?{colors:e.colors}:{}}))}));async function A(o){return new Promise(a=>{requestAnimationFrame(()=>nx(JSON.parse(JSON.stringify(o)))),setTimeout(()=>a(),0)})}async function i(){await Promise.all(r.value.items.map(o=>new Promise(a=>setTimeout(()=>{a(A(o))},o.timeout||0)))),e.loop&&i()}return s.onMounted(()=>{typeof window<"u"&&n.value&&(n.value,n.value.confetti=n.value?.confetti||nx.create(n.value,{resize:!0}),i())}),(o,a)=>(s.openBlock(),s.createElementBlock("canvas",{class:"canvas-confetti",ref_key:"canvas",ref:n},null,512))}});function Ax(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(A){return Object.getOwnPropertyDescriptor(t,A).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ax(Object(n),!0).forEach((function(r){lA(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ax(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function lA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function AJ(t,e){if(t==null)return{};var n,r,A=(function(o,a){if(o==null)return{};var l,u,d={},h=Object.keys(o);for(u=0;u<h.length;u++)l=h[u],a.indexOf(l)>=0||(d[l]=o[l]);return d})(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(A[n]=t[n])}return A}function Is(t){return(function(e){if(Array.isArray(e))return Lv(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,n){if(e){if(typeof e=="string")return Lv(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lv(e,n)}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
178
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Lv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ix,iJ,Yf,Qn=(ix=function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],A=0;A<arguments.length;A++){var i=arguments[A];if(i){var o=typeof i;if(o==="string"||o==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(o==="object")if(i.toString===Object.prototype.toString)for(var l in i)e.call(i,l)&&i[l]&&r.push(l);else r.push(i.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},ix(Yf={path:iJ,exports:{},require:function(t,e){return(function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})(e==null&&Yf.path)}},Yf.exports),Yf.exports),DA=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var A=t;return r&&(A+="__"+r),A+(n?Object.keys(n).reduce((function(i,o){var a=n[o];return a&&(i+=" "+(typeof a=="boolean"?A+"--"+o:A+"--"+o+"_"+a)),i}),""):"")}};function Rv(t,e,n){var r,A,i,o,a;function l(){var d=Date.now()-o;d<e&&d>=0?r=setTimeout(l,e-d):(r=null,n||(a=t.apply(i,A),i=A=null))}e==null&&(e=100);var u=function(){i=this,A=arguments,o=Date.now();var d=n&&!r;return r||(r=setTimeout(l,e)),d&&(a=t.apply(i,A),i=A=null),a};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(a=t.apply(i,A),i=A=null,clearTimeout(r),r=null)},u}Rv.debounce=Rv;var Hv=Rv,qe=function(){return qe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var A in e=arguments[n])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t},qe.apply(this,arguments)};function ox(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function sx(t){return/^blob:/.test(t)}function ax(t){return sx(t)||(function(e){return/^data:/.test(e)})(t)}function Da(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Rn(t){return t===void 0}function qf(t){return typeof t=="object"&&t!==null}function Pv(t,e,n){var r={};return qf(t)?(Object.keys(e).forEach((function(A){Rn(t[A])?r[A]=e[A]:qf(e[A])?qf(t[A])?r[A]=Pv(t[A],e[A],n[A]):r[A]=t[A]?e[A]:n[A]:e[A]===!0||e[A]===!1?r[A]=!!t[A]:r[A]=t[A]})),r):t?e:n}function Xf(t){var e=Number(t);return Number.isNaN(e)?t:e}function lx(t){return typeof(t=="number"||(function(e){return typeof e=="object"&&e!==null})(t)&&toString.call(t)=="[object Number]")&&!cx(t)}function cx(t){return t!=t}function ux(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Sc=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},oJ=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},$v=function(t){this.type="move",this.directions=t},sJ=(function(){function t(e,n,r,A,i){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=A,this.element=n,this.anchor=i}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,A=e.position;if(n){var i=n.getBoundingClientRect(),o=i.left,a=i.top;return{left:A.left-o-r.left,top:A.top-a-r.top}}return{left:0,top:0}},t})(),Kv={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=Is(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce((function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}}),{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,r=e.right,A=e.bottom,i=e.top;this.anchor={left:t.clientX-n,top:t.clientY-i,bottom:A-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=Is(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new sJ(t,r,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Kv.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return i.onTouchStart&&i.onTouchStart.apply(i,arguments)}),onMousedown:e[2]||(e[2]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)}),onMouseover:e[3]||(e[3]=function(){return i.onMouseOver&&i.onMouseOver.apply(i,arguments)}),onMouseleave:e[4]||(e[4]=function(){return i.onMouseLeave&&i.onMouseLeave.apply(i,arguments)})},[s.renderSlot(t.$slots,"default")],34)};var zv=DA("vue-handler-wrapper"),dx={name:"HandlerWrapper",components:{DraggableElement:Kv},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=ox(this.horizontalPosition,this.verticalPosition);t=zv((lA(e={},n.classname,!0),lA(e,"disabled",this.disabled),e))}else t=zv({disabled:this.disabled});return{root:t,draggable:zv("draggable")}}},emits:["leave","enter","drag","drag-end"]};dx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("DraggableElement");return s.openBlock(),s.createBlock("div",{class:i.classes.root},[s.createVNode(o,{class:i.classes.draggable,onDrag:e[1]||(e[1]=function(a){return t.$emit("drag",a)}),onDragEnd:e[2]||(e[2]=function(a){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(a){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(a){return t.$emit("enter")})},{default:s.withCtx((function(){return[s.renderSlot(t.$slots,"default")]})),_:3},8,["class"])],2)};var aJ=DA("vue-line-wrapper"),fx={name:"LineWrapper",components:{DraggableElement:Kv},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return aJ((lA(t={},this.position,!0),lA(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};fx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("DraggableElement");return s.openBlock(),s.createBlock(o,{class:i.classname,onDrag:e[1]||(e[1]=function(a){return t.$emit("drag",a)}),onDragEnd:e[2]||(e[2]=function(a){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(a){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(a){return t.$emit("enter")})},{default:s.withCtx((function(){return[s.renderSlot(t.$slots,"default")]})),_:3},8,["class"])};var di=["left","right","top","bottom"],lJ=["left","right"],cJ=["top","bottom"],uJ=["left","top"],dJ=["fill-area","fit-area","stencil","none"],hx={left:0,top:0,width:0,height:0};function px(t,e,n){return!(n=n||["width","height","left","top"]).some((function(r){return t[r]!==e[r]}))}function fi(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function Oa(t,e){return{left:t.left-e.left,top:t.top-e.top}}function Yn(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function xc(t,e){var n={left:0,top:0,right:0,bottom:0};return di.forEach((function(r){var A=e[r],i=fi(t)[r];n[r]=A!==void 0&&i!==void 0?r==="left"||r==="top"?Math.max(0,A-i):Math.max(0,i-A):0})),n}function hi(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function Jf(t){return{left:-t.left,top:-t.top}}function xr(t,e){return qe(qe({},t),{left:t.left+e.left,top:t.top+e.top})}function cA(t,e,n,r){if(e!==1){if(n){var A=Yn(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-A.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-A.top)*(1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function Ft(t){return t.width/t.height}function Na(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function La(t,e){var n={left:0,top:0},r=xc(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function Wv(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function mx(t,e){var n=Ft(t),r=Ft(e);return e.width<1/0&&e.height<1/0?n>r?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function gx(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function Ro(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function jf(t,e){var n=xc(qn(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,Na(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,Na(t,e)):1}function qn(t,e,n){n===void 0&&(n=!1);var r=La(t,e);return xr(t,n?Jf(r):r)}function Gv(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function fJ(t,e){return qe(qe({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function vx(t,e,n){n===void 0&&(n=!0);var r={};return di.forEach((function(A){var i=t[A],o=e[A];i!==void 0&&o!==void 0?r[A]=A==="left"||A==="top"?n?Math.max(i,o):Math.min(i,o):n?Math.min(i,o):Math.max(i,o):o!==void 0?r[A]=o:i!==void 0&&(r[A]=i)})),r}function Zf(t,e){return vx(t,e,!0)}function wx(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,A=t.sizeRestrictions;return!!((e.correctRatio||Ft(e)>=n.minimum&&Ft(e)<=n.maximum)&&e.height<=A.maxHeight&&e.width<=A.maxWidth&&e.width&&e.height&&(r||e.height>=A.minHeight&&e.width>=A.minWidth))}function Bx(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function Pi(t){var e=t.width,n=t.height,r=t.sizeRestrictions,A={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},i={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function o(u,d){return d===void 0&&(d=!1),u.reduce((function(h,p){return wx({size:p,aspectRatio:A,sizeRestrictions:r,ignoreMinimum:d})&&(!h||Bx(p,{width:e,height:n})<Bx(h,{width:e,height:n}))?p:h}),null)}var a=[];A&&[A.minimum,A.maximum].forEach((function(u){u&&a.push({width:i.width,height:i.width/u,correctRatio:!0},{width:i.height*u,height:i.height,correctRatio:!0})})),wx({size:i,aspectRatio:A,sizeRestrictions:r})&&a.push(i);var l=o(a)||o(a,!0);return l&&{width:l.width,height:l.height}}function Yv(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,A=r===void 0?{}:r,i=xr(n,e.directions);return xr(i,La(i,A))}function hJ(t){var e=t.coordinates,n=t.transform,r=t.imageSize,A=t.sizeRestrictions,i=t.positionRestrictions,o=t.aspectRatio,a=t.visibleArea,l=function(d,h){return Yv({coordinates:d,positionRestrictions:i,event:new $v({left:h.left-d.left,top:h.top-d.top})})},u=qe({},e);return(Array.isArray(n)?n:[n]).forEach((function(d){var h={};Rn((h=typeof d=="function"?d({coordinates:u,imageSize:r,visibleArea:a}):d).width)&&Rn(h.height)||(u=(function(p,m){var v=qe(qe(qe({},p),Pi({width:m.width,height:m.height,sizeRestrictions:A,aspectRatio:o})),{left:0,top:0});return l(v,{left:p.left,top:p.top})})(u,qe(qe({},u),h))),Rn(h.left)&&Rn(h.top)||(u=l(u,qe(qe({},u),h)))})),u}function pJ(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,A=t.visibleArea;t.aspectRatio;var i=t.stencilSize,o=t.sizeRestrictions,a=t.positionRestrictions;t.stencilReference;var l,u,d,h=qe({},r),p=qe({},A),m=qe({},i);l=Ft(m),u=Ft(h),d===void 0&&(d=.001),(l===0||u===0?Math.abs(u-l)<d:Math.abs(u/l)<1+d&&Math.abs(u/l)>1-d)||(h=qe(qe({},h),Pi({sizeRestrictions:o,width:h.width,height:h.height,aspectRatio:{minimum:Ft(m),maximum:Ft(m)}})));var v=jf(p=cA(p,h.width*n.width/(p.width*m.width)),e({visibleArea:p,type:"resize"}));return v!==1&&(p=cA(p,v),h=cA(h,v)),p=qn(p=xr(p,Oa(Yn(h),Yn(p))),e({visibleArea:p,type:"move"})),{coordinates:h=qn(h,Zf(fi(p),a)),visibleArea:p}}function mJ(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,A=t.coordinates,i=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var o=t.positionRestrictions;t.stencilReference;var a=qe({},A),l=qe({},i);if(A&&i&&e.type!=="manipulateImage"){var u={width:0,height:0};l.width,r.width,Ft(r)>Ft(a)?(u.height=.8*r.height,u.width=u.height*Ft(a)):(u.width=.8*r.width,u.height=u.width*Ft(a));var d=jf(l=cA(l,a.width*r.width/(l.width*u.width)),n({visibleArea:l,type:"resize"}));l=cA(l,d),d!==1&&(u.height/=d,u.width/=d),l=qn(l=xr(l,Oa(Yn(a),Yn(l))),n({visibleArea:l,type:"move"})),a=qn(a,Zf(fi(l),o))}return{coordinates:a,visibleArea:l}}function gJ(t){var e=t.event,n=t.coordinates,r=t.visibleArea,A=t.getAreaRestrictions,i=qe({},r),o=qe({},n);if(e.type==="setCoordinates"){var a=Math.max(0,o.width-i.width),l=Math.max(0,o.height-i.height);a>l?i=cA(i,Math.min(o.width/i.width,Na(i,A({visibleArea:i,type:"resize"})))):l>a&&(i=cA(i,Math.min(o.height/i.height,Na(i,A({visibleArea:i,type:"resize"}))))),i=qn(i=xr(i,Jf(La(o,fi(i)))),A({visibleArea:i,type:"move"}))}return{visibleArea:i,coordinates:o}}function vJ(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,A=n||e;return{left:(n?n.left:0)+A.width/2-r.width/2,top:(n?n.top:0)+A.height/2-r.height/2}}function wJ(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,A=t.sizeRestrictions,i=n||e,o=Math.min(r.maximum||1/0,Math.max(r.minimum||0,Ft(i))),a=i.width<i.height?{width:.8*i.width,height:.8*i.width/o}:{height:.8*i.height,width:.8*i.height*o};return Pi(qe(qe({},a),{aspectRatio:r,sizeRestrictions:A}))}function BJ(t){var e,n,r=t.imageSize,A=t.visibleArea,i=t.boundaries,o=t.aspectRatio,a=t.sizeRestrictions,l=t.stencilSize,u=A||r;return Ft(u)>Ft(i)?n=(e=l.height*u.height/i.height)*Ft(l):e=(n=l.width*u.width/i.width)/Ft(l),Pi({width:n,height:e,aspectRatio:o,sizeRestrictions:a})}function yJ(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,A=Ft(t.boundaries);if(n){var i={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},o=mx({width:Ft(i)>A?i.width:i.height*A,height:Ft(i)>A?i.width/A:i.height},Gv(e())),a={left:n.left+n.width/2-o.width/2,top:n.top+n.height/2-o.height/2,width:o.width,height:o.height},l=xc(n,fi(qe({left:0,top:0},r))),u={};return!l.left&&!l.right&&a.width<=r.width&&(u.left=0,u.right=r.width),!l.top&&!l.bottom&&a.height<=r.height&&(u.top=0,u.bottom=r.height),qn(a,u)}var d=Ft(r);return o={height:d>A?r.height:r.width/A,width:d>A?r.height*A:r.width},{left:r.width/2-o.width/2,top:r.height/2-o.height/2,width:o.width,height:o.height}}function Vf(t,e){return vx(t,fi(e))}function CJ(t){var e=t.event,n=t.coordinates,r=t.visibleArea,A=t.sizeRestrictions,i=t.getAreaRestrictions,o=t.positionRestrictions,a=t.adjustStencil,l=e.scale,u=e.move,d=qe({},r),h=qe({},n),p=1,m=1,v=l.factor&&Math.abs(l.factor-1)>.001;d=xr(d,{left:u.left||0,top:u.top||0});var B={stencil:{minimum:Math.max(A.minWidth?A.minWidth/h.width:0,A.minHeight?A.minHeight/h.height:0),maximum:Math.min(A.maxWidth?A.maxWidth/h.width:1/0,A.maxHeight?A.maxHeight/h.height:1/0,Na(h,o))},area:{maximum:Na(d,i({visibleArea:d,type:"resize"}))}};l.factor&&v&&(l.factor<1?(m=Math.max(l.factor,B.stencil.minimum))>1&&(m=1):l.factor>1&&(m=Math.min(l.factor,Math.min(B.area.maximum,B.stencil.maximum)))<1&&(m=1)),m&&(d=cA(d,m,l.center));var y=n.left-r.left,w=r.width+r.left-(n.width+n.left),C=n.top-r.top,S=r.height+r.top-(n.height+n.top);return d=qn(d=xr(d,La(d,{left:o.left!==void 0?o.left-y*m:void 0,top:o.top!==void 0?o.top-C*m:void 0,bottom:o.bottom!==void 0?o.bottom+S*m:void 0,right:o.right!==void 0?o.right+w*m:void 0})),i({visibleArea:d,type:"move"})),h.width=h.width*m,h.height=h.height*m,h.left=d.left+y*m,h.top=d.top+C*m,h=qn(h,Zf(fi(d),o)),l.factor&&v&&a&&(l.factor>1?p=Math.min(B.area.maximum,l.factor)/m:l.factor<1&&(p=Math.max(h.height/d.height,h.width/d.width,l.factor/m)),p!==1&&(d=xr(d=qn(d=cA(d,p,l.factor>1?l.center:Yn(h)),i({visibleArea:d,type:"move"})),Jf(La(h,fi(d)))))),{coordinates:h,visibleArea:d}}function bJ(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,A=t.visibleArea,i=t.sizeRestrictions,o=t.positionRestrictions,a=t.imageSize,l=t.previousImageSize,u=t.angle,d=qe({},r),h=qe({},A),p=Ro(Yn(qe({left:0,top:0},l)),u);return(d=qe(qe({},Pi({sizeRestrictions:i,aspectRatio:e,width:d.width,height:d.height})),Ro(Yn(d),u))).left-=p.left-a.width/2+d.width/2,d.top-=p.top-a.height/2+d.height/2,h=cA(h,jf(h,n({visibleArea:h,type:"resize"}))),{coordinates:d=qn(d,o),visibleArea:h=qn(h=xr(h,Oa(Yn(d),Yn(r))),n({visibleArea:h,type:"move"}))}}function EJ(t){var e=t.flip,n=t.previousFlip,r=t.rotate,A=t.getAreaRestrictions,i=t.coordinates,o=t.visibleArea,a=t.imageSize,l=qe({},i),u=qe({},o),d=n.horizontal!==e.horizontal,h=n.vertical!==e.vertical;if(d||h){var p=Ro({left:a.width/2,top:a.height/2},-r),m=Ro(Yn(l),-r),v=Ro({left:d?p.left-(m.left-p.left):m.left,top:h?p.top-(m.top-p.top):m.top},r);l=xr(l,Oa(v,Yn(l))),m=Ro(Yn(u),-r),u=qn(u=xr(u,Oa(v=Ro({left:d?p.left-(m.left-p.left):m.left,top:h?p.top-(m.top-p.top):m.top},r),Yn(u))),A({visibleArea:u,type:"move"}))}return{coordinates:l,visibleArea:u}}function yx(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,A=r===void 0?{}:r,i=t.sizeRestrictions,o=t.preserveRatio,a=t.compensate,l=qe({},e),u=hi(n,l).width,d=hi(n,l).height;u<0&&(l.left<0&&l.right<0?(l.left=-(n.width-i.minWidth)/(l.left/l.right),l.right=-(n.width-i.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-i.minWidth):l.right<0&&(l.right=-(n.width-i.minWidth))),d<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-i.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-i.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-i.minHeight):l.bottom<0&&(l.bottom=-(n.height-i.minHeight)));var h=xc(hi(n,l),A);a&&(h.left&&h.left>0&&h.right===0?(l.right+=h.left,l.left-=h.left):h.right&&h.right>0&&h.left===0&&(l.left+=h.right,l.right-=h.right),h.top&&h.top>0&&h.bottom===0?(l.bottom+=h.top,l.top-=h.top):h.bottom&&h.bottom>0&&h.top===0&&(l.top+=h.bottom,l.bottom-=h.bottom),h=xc(hi(n,l),A));var p={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(di.forEach((function(B){var y=h[B];y&&l[B]&&(p[B]=Math.max(0,1-y/l[B]))})),o){var m=Math.min.apply(null,di.map((function(B){return p[B]})));m!==1/0&&di.forEach((function(B){l[B]*=m}))}else di.forEach((function(B){p[B]!==1/0&&(l[B]*=p[B])}));if(u=hi(n,l).width,d=hi(n,l).height,l.right+l.left&&(u>i.maxWidth?p.width=(i.maxWidth-n.width)/(l.right+l.left):u<i.minWidth&&(p.width=(i.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(d>i.maxHeight?p.height=(i.maxHeight-n.height)/(l.bottom+l.top):d<i.minHeight&&(p.height=(i.minHeight-n.height)/(l.bottom+l.top))),o){var v=Math.min(p.width,p.height);v!==1/0&&di.forEach((function(B){l[B]*=v}))}else p.width!==1/0&&lJ.forEach((function(B){l[B]*=p.width})),p.height!==1/0&&cJ.forEach((function(B){l[B]*=p.height}));return l}function eh(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var kJ=DA("vue-simple-handler"),SJ=DA("vue-simple-handler-wrapper"),qv={name:"SimpleHandler",components:{HandlerWrapper:dx},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(lA(t={},this.horizontalPosition,!!this.horizontalPosition),lA(t,this.verticalPosition,!!this.verticalPosition),lA(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),lA(t,"hover",this.hover),t);return{default:Qn(kJ(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:Qn(SJ(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};qv.render=function(t,e,n,r,A,i){var o=s.resolveComponent("HandlerWrapper");return s.openBlock(),s.createBlock(o,{class:i.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:i.onDrag,onDragEnd:i.onDragEnd,onEnter:i.onEnter,onLeave:i.onLeave},{default:s.withCtx((function(){return[s.createVNode("div",{class:i.classes.default},null,2)]})),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var xJ=DA("vue-simple-line"),FJ=DA("vue-simple-line-wrapper"),Xv={name:"SimpleLine",components:{LineWrapper:fx},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Qn(xJ(lA({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Qn(FJ(lA({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Xv.render=function(t,e,n,r,A,i){var o=s.resolveComponent("LineWrapper");return s.openBlock(),s.createBlock(o,{class:i.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:i.onDrag,onDragEnd:i.onDragEnd,onEnter:i.onEnter,onLeave:i.onLeave},{default:s.withCtx((function(){return[s.createVNode("div",{class:i.classes.root},null,2)]})),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Jv=DA("vue-bounding-box"),QJ=["east","west",null],TJ=["south","north",null],Cx={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return qv}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return Xv}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return QJ.forEach((function(e){TJ.forEach((function(n){if(e!==n){var r=ox(e,n),A=r.name,i=r.classname;t.push({name:A,classname:i,verticalDirection:n,horizontalDirection:e})}}))})),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,r=this.linesWrappersClasses;return{root:Jv(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},lineNodes:function(){var t=this,e=[];return this.points.forEach((function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:Qn(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:Qn(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})})),e},handlerNodes:function(){var t=this,e=[],n=this.width,r=this.height;return this.points.forEach((function(A){if(t.handlers[A.name]){var i={name:A.name,component:t.handlersComponent,class:Qn(t.classes.handlers.default,t.classes.handlers[A.name]),wrapperClass:Qn(t.classes.handlersWrappers.default,t.classes.handlersWrappers[A.name]),hoverClass:t.classes.handlers.hover,verticalDirection:A.verticalDirection,horizontalDirection:A.horizontalDirection,disabled:!t.resizable};if(n&&r){var o=A.horizontalDirection,a=A.verticalDirection,l=o==="east"?n:o==="west"?0:n/2,u=a==="south"?r:a==="north"?0:r/2;i.wrapperClass=Jv("handler"),i.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(i.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else i.wrapperClass=Jv("handler",lA({},A.classname,!0));e.push(i)}})),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var r,A=t.shift(),i=A.left,o=A.top,a={left:0,right:0,top:0,bottom:0};e==="west"?a.left-=i:e==="east"&&(a.right+=i),n==="north"?a.top-=o:n==="south"&&(a.bottom+=o),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new oJ(a,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};Cx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"box",class:i.classes.root,style:i.style},[s.renderSlot(t.$slots,"default"),s.createVNode("div",null,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.lineNodes,(function(o){return s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.component),{key:o.name,"default-class":o.class,"hover-class":o.hoverClass,"wrapper-class":o.wrapperClass,position:o.name,disabled:o.disabled,onDrag:function(a){return i.onHandlerDrag(a,o.horizontalDirection,o.verticalDirection)},onDragEnd:e[1]||(e[1]=function(a){return i.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])})),128))]),(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.handlerNodes,(function(o){return s.openBlock(),s.createBlock("div",{key:o.name,style:o.wrapperStyle,class:o.wrapperClass},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.component),{"default-class":o.class,"hover-class":o.hoverClass,"wrapper-class":o.wrapperClass,"horizontal-position":o.horizontalDirection,"vertical-position":o.verticalDirection,disabled:o.disabled,onDrag:function(a){return i.onHandlerDrag(a,o.horizontalDirection,o.verticalDirection)},onDragEnd:e[2]||(e[2]=function(a){return i.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)})),128))],6)};var MJ=DA("vue-draggable-area"),bx={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:MJ()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=Is(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):ux({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=Is(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),A=r.left,i=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new $v({left:n[0].clientX-(A+this.anchor.x),top:n[0].clientY-(i+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};bx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return i.onTouchStart&&i.onTouchStart.apply(i,arguments)}),onMousedown:e[2]||(e[2]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)})},[s.renderSlot(t.$slots,"default")],544)};function jv(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t?.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t?.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function IJ(t){return new Promise((function(e,n){try{if(t)if(/^data:/i.test(t))e((function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(l),d=u.length,h=new ArrayBuffer(d),p=new Uint8Array(h),m=0;m<d;m++)p[m]=u.charCodeAt(m);return h})(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(l){e(l.target.result)},i=t,o=function(l){r.readAsArrayBuffer(l)},(a=new XMLHttpRequest).open("GET",i,!0),a.responseType="blob",a.onload=function(){this.status!=200&&this.status!==0||o(this.response)},a.send()}else{var A=new XMLHttpRequest;A.onreadystatechange=function(){A.readyState===4&&(A.status===200||A.status===0?e(A.response):n("Warning: could not load an image to parse its orientation"),A=null)},A.onprogress=function(){A.getResponseHeader("content-type")!=="image/jpeg"&&A.abort()},A.withCredentials=!1,A.open("GET",t,!0),A.responseType="arraybuffer",A.send(null)}else n("Error: the image is empty")}catch(l){n(l)}var i,o,a}))}function Ex(t){var e=t.rotate,n=t.flip,r=t.scaleX,A=t.scaleY,i="";return i+=" rotate("+e+"deg) ",i+=" scaleX("+r*(n.horizontal?-1:1)+") ",i+=" scaleY("+A*(n.vertical?-1:1)+") "}function UJ(t){try{var e,n=new DataView(t),r=void 0,A=void 0,i=void 0,o=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var a=n.byteLength,l=2;l+1<a;){if(n.getUint8(l)===255&&n.getUint8(l+1)===225){i=l;break}l++}if(i&&(r=i+10,(function(m,v,B){var y,w="";for(y=v,B+=v;y<B;y++)w+=String.fromCharCode(m.getUint8(y));return w})(n,i+4,4)==="Exif")){var u=n.getUint16(r);if(((A=u===18761)||u===19789)&&n.getUint16(r+2,A)===42){var d=n.getUint32(r+4,A);d>=8&&(o=r+d)}}if(o){for(var h=n.getUint16(o,A),p=0;p<h;p++)if(l=o+12*p+2,n.getUint16(l,A)===274){l+=8,e=n.getUint16(l,A),n.setUint16(l,1,A);break}}return e}catch{return null}}function kx(t,e){var n=e.getBoundingClientRect(),r=n.left,A=n.top,i={left:0,top:0},o=0;return t.forEach((function(a){i.left+=(a.clientX-r)/t.length,i.top+=(a.clientY-A)/t.length})),t.forEach((function(a){o+=ux({x:i.left,y:i.top},{x:a.clientX-r,y:a.clientY-A})})),{centerMass:i,spread:o,count:t.length}}var Sx={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Hv(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new Sc({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=kx(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new Sc({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),r=n.left,A=n.top,i=n.bottom,o=n.right;this.touches=Is(t.touches).filter((function(a){return a.clientX>r&&a.clientX<o&&a.clientY>A&&a.clientY<i})),this.oldGeometricProperties=kx(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=Is(t.touches).filter((function(r){return!r.identifier||e.touches.find((function(A){return A.identifier===r.identifier}))}));this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top,A=1+this.wheelResize.ratio*(o=t.deltaY||t.detail||t.wheelDelta,(a=+o)==0||cx(a)?a:a>0?1:-1),i={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new Sc({},{factor:A,center:i})),this.touches.length||this.debouncedProcessEnd()}var o,a}},emits:["resize","move","transform-end"]};Sx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return i.onTouchStart&&i.onTouchStart.apply(i,arguments)}),onMousedown:e[2]||(e[2]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)}),onWheel:e[3]||(e[3]=function(){return i.onWheel&&i.onWheel.apply(i,arguments)})},[s.renderSlot(t.$slots,"default")],544)};var Zv={components:{TransformableImage:Sx},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};Zv.render=function(t,e,n,r,A,i){var o=s.resolveComponent("transformable-image");return s.openBlock(),s.createBlock(o,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(a){return t.$emit("move",a)}),onResize:e[2]||(e[2]=function(a){return t.$emit("resize",a)})},{default:s.withCtx((function(){return[s.renderSlot(t.$slots,"default")]})),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var th=DA("vue-preview"),xx={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:th({fill:this.fill}),wrapper:th("wrapper"),imageWrapper:th("image-wrapper"),image:Qn(th("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=xt(xt({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,A=gx({width:n,height:r},e.rotate),i={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},o={rotate:{left:(n-A.width)*e.scaleX/2,top:(r-A.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return i.transform=`translate(
|
|
179
|
-
`.concat(-this.coordinates.left/t-o.rotate.left-o.scale.left,"px,").concat(-this.coordinates.top/t-o.rotate.top-o.scale.top,"px) ")+Ex(e),this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",(function(){t.refreshImage()})),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};xx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"root",class:i.classes.root,style:i.style},[s.createVNode("div",{ref:"wrapper",class:i.classes.wrapper,style:i.wrapperStyle},[s.withDirectives(s.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:i.classes.image,style:i.imageStyle},null,14,["src"]),[[s.vShow,n.image&&n.image.src]])],6)],6)};var Fx={components:{Preview:xx},inheritAttrs:!1};Fx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("preview");return s.openBlock(),s.createBlock(o,s.mergeProps(t.$attrs,{fill:!0}),null,16)};var Vv=DA("vue-rectangle-stencil"),Qx={name:"RectangleStencil",components:{StencilPreview:Fx,BoundingBox:Cx,DraggableArea:bx},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return qv}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Xv}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Qn(Vv({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Qn(Vv("preview"),this.previewClass),boundingBox:Qn(Vv("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,A=t.top,i={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(A,"px)")};return this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Qx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("stencil-preview"),a=s.resolveComponent("draggable-area"),l=s.resolveComponent("bounding-box");return s.openBlock(),s.createBlock("div",{class:i.classes.stencil,style:i.style},[s.createVNode(l,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:i.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:i.onResize,onResizeEnd:i.onResizeEnd},{default:s.withCtx((function(){return[s.createVNode(a,{movable:n.movable,onMove:i.onMove,onMoveEnd:i.onMoveEnd},{default:s.withCtx((function(){return[s.createVNode(o,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:i.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]})),_:1},8,["movable","onMove","onMoveEnd"])]})),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var _J=["transitions"],$i=DA("vue-advanced-cropper"),Tx={name:"Cropper",components:{BackgroundWrapper:Zv},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Qx}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Zv}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return dJ.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,r=t.aspectRatio,A=t.positionRestrictions,i=t.sizeRestrictions,o=qe(qe({},n),{right:n.left+n.width,bottom:n.top+n.height}),a=e.params||{},l=qe({},e.directions),u=a.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};i.widthFrozen&&(l.left=0,l.right=0),i.heightFrozen&&(l.top=0,l.bottom=0),di.forEach((function(Q){u[Q]||(l[Q]=0)}));var d=hi(o,l=yx({coordinates:o,directions:l,sizeRestrictions:i,positionRestrictions:A})).width,h=hi(o,l).height,p=a.preserveRatio?Ft(o):Wv(d/h,r);if(p){var m=a.respectDirection;if(m||(m=o.width>=o.height||p===1?"width":"height"),m==="width"){var v=d/p-o.height;if(u.top&&u.bottom){var B=l.top,y=l.bottom;l.bottom=eh(v,y,B),l.top=eh(v,B,y)}else u.bottom?l.bottom=v:u.top?l.top=v:u.right?l.right=0:u.left&&(l.left=0)}else if(m==="height"){var w=o.width-h*p;if(u.left&&u.right){var C=l.left,S=l.right;l.left=-eh(w,C,S),l.right=-eh(w,S,C)}else u.left?l.left=-w:u.right?l.right=-w:u.top?l.top=0:u.bottom&&(l.bottom=0)}l=yx({directions:l,coordinates:o,sizeRestrictions:i,positionRestrictions:A,preserveRatio:!0,compensate:a.compensate})}return d=hi(o,l).width,h=hi(o,l).height,(p=a.preserveRatio?Ft(o):Wv(d/h,r))&&Math.abs(p-d/h)>.001&&di.forEach((function(Q){u[Q]||(l[Q]=0)})),Yv({event:new $v({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:A})}},moveAlgorithm:{type:Function,default:Yv},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=Ft(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,A=t.sizeRestrictions,i=t.positionRestrictions,o=qe(qe({},n),Pi({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,A.minHeight),minWidth:Math.min(e.width,A.minWidth)}}));return o=qn(o=xr(o,Oa(Yn(n),Yn(o))),Zf(fi(e),i))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,A=t.coordinates,i=qe({},e);i.height=i.width/Ft(n),i.top+=(e.height-i.height)/2,(A.height-i.height>0||A.width-i.width>0)&&(i=cA(i,Math.max(A.height/i.height,A.width/i.width)));var o=Jf(La(A,fi(i=cA(i,jf(i,r({visibleArea:i,type:"resize"}))))));return i.width<A.width&&(o.left=0),i.height<A.height&&(o.top=0),i=qn(i=xr(i,o),r({visibleArea:i,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,A=t.imageRestriction,i=t.type,o={};return A==="fill-area"?o={left:0,top:0,right:r.width,bottom:r.height}:A==="fit-area"&&(Ft(n)>Ft(r)?(o={top:0,bottom:r.height},e&&i==="move"&&(e.width>r.width?(o.left=-(e.width-r.width)/2,o.right=r.width-o.left):(o.left=0,o.right=r.width))):(o={left:0,right:r.width},e&&i==="move"&&(e.height>r.height?(o.top=-(e.height-r.height)/2,o.bottom=r.height-o.top):(o.top=0,o.bottom=r.height)))),o}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:xt({},hx)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=(function(e){return e*Math.PI/180})(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=Pv(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Pv(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:Rn(this.minWidth)?0:Xf(this.minWidth),minHeight:Rn(this.minHeight)?0:Xf(this.minHeight),maxWidth:Rn(this.maxWidth)?1/0:Xf(this.maxWidth),maxHeight:Rn(this.maxHeight)?1/0:Xf(this.maxHeight)});if(t=(function(r){var A=r.areaRestrictions,i=r.sizeRestrictions,o=r.boundaries,a=r.positionRestrictions,l=qe(qe({},i),{minWidth:i.minWidth!==void 0?i.minWidth:0,minHeight:i.minHeight!==void 0?i.minHeight:0,maxWidth:i.maxWidth!==void 0?i.maxWidth:1/0,maxHeight:i.maxHeight!==void 0?i.maxHeight:1/0});a.left!==void 0&&a.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,a.right-a.left)),a.bottom!==void 0&&a.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,a.bottom-a.top));var u=Gv(A),d=mx(o,u);return u.width<1/0&&(!l.maxWidth||l.maxWidth>d.width)&&(l.maxWidth=Math.min(l.maxWidth,d.width)),u.height<1/0&&(!l.maxHeight||l.maxHeight>d.height)&&(l.maxHeight=Math.min(l.maxHeight,d.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l})({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Gv(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:$i(),image:Qn($i("image"),this.imageClass),stencil:$i("stencil"),boundaries:Qn($i("boundaries"),this.boundariesClass),stretcher:Qn($i("stretcher")),background:Qn($i("background"),this.backgroundClass),foreground:Qn($i("foreground"),this.foregroundClass),imageWrapper:Qn($i("image-wrapper")),cropperWrapper:Qn($i("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,A=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(A-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},r=xt(xt({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),A={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+Ex(r)};return this.transitionsOptions.enabled&&(A.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),A}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick((function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()}))},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find((function(n){return t[n]!==e[n]}))&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Hv(this.update,this.debounce),this.debouncedDisableTransitions=Hv(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(xt({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:xt({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?xt({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?xt({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,A=r===void 0||r;this.onManipulateImage(new Sc({},{factor:1/t,center:e}),{normalize:!1,transitions:A})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,A=r===void 0||r;this.onManipulateImage(new Sc({left:t||0,top:e||0}),{normalize:!1,transitions:A})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,A=r===void 0||r,i=n.transitions,o=i===void 0||i;this.$nextTick((function(){e.imageLoaded?(e.transitionsActive||(o&&e.enableTransitions(),e.coordinates=e.applyTransform(t),A&&e.runAutoZoom("setCoordinates"),o&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t}))},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then((function(){t.onChange()})):this.resetVisibleArea().then((function(){t.onChange()}))},reset:function(){var t=this;return this.resetVisibleArea().then((function(){t.onChange(!1)}))},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick((function(){t(),e.awaiting=!1})))},prepareResult:function(t){return this.roundResult?(function(e){var n=e.coordinates,r=e.sizeRestrictions,A=e.positionRestrictions,i={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return i.width>r.maxWidth?i.width=Math.floor(n.width):i.width<r.minWidth&&(i.width=Math.ceil(n.width)),i.height>r.maxHeight?i.height=Math.floor(n.height):i.height<r.minHeight&&(i.height=Math.ceil(n.height)),qn(i,A)})(xt(xt({},this.getPublicProperties()),{},{positionRestrictions:Vf(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var A=this.autoZoomAlgorithm;A||(A=this.stencilSize?pJ:this.autoZoom?mJ:gJ);var i=A({event:{type:t,params:r},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return xt(xt({},i),{},{changed:!px(i.visibleArea,e)||!px(i.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,A=AJ(e,_J),i=this.processAutoZoom(t,this.visibleArea,this.coordinates,A),o=i.visibleArea,a=i.coordinates,l=i.changed;r&&l&&this.enableTransitions(),this.visibleArea=o,this.coordinates=a,r&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return(function(e){var n=e.event,r=e.visibleArea,A=e.coefficient;if(n.type==="manipulateImage")return qe(qe({},n),{move:{left:n.move&&n.move.left?A*n.move.left:0,top:n.move&&n.move.top?A*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*A+r.left,top:n.scale.center.top*A+r.top}:null}});if(n.type==="resize"){var i=qe(qe({},n),{directions:qe({},n.directions)});return di.forEach((function(a){i.directions[a]*=A})),i}if(n.type==="move"){var o=qe(qe({},n),{directions:qe({},n.directions)});return uJ.forEach((function(a){o.directions[a]*=A})),o}return n})(xt(xt({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?(function(a,l,u){var d=u.rotate,h=u.flip,p={width:l.naturalWidth,height:l.naturalHeight},m=gx(p,d),v=a.getContext("2d");a.height=m.height,a.width=m.width,v.save();var B=Ro(Yn(qe({left:0,top:0},p)),d);return v.translate(-(B.left-m.width/2),-(B.top-m.height/2)),v.rotate(d*Math.PI/180),v.translate(h.horizontal?p.width:0,h.vertical?p.height:0),v.scale(h.horizontal?-1:1,h.vertical?-1:1),v.drawImage(l,0,0,p.width,p.height),v.restore(),a})(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=xt({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),A=function(a){return a.find((function(l){return u=l,!Number.isNaN(parseFloat(u))&&isFinite(u);var u}))},i=Pi({sizeRestrictions:{minWidth:A([r.width,r.minWidth])||0,minHeight:A([r.height,r.minHeight])||0,maxWidth:A([r.width,r.maxWidth])||1/0,maxHeight:A([r.height,r.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(r.maxArea&&i.width*i.height>r.maxArea){var o=Math.sqrt(r.maxArea/(i.width*i.height));i={width:Math.round(o*i.width),height:Math.round(o*i.height)}}return(function(a,l,u,d,h){a.width=d?d.width:u.width,a.height=d?d.height:u.height;var p=a.getContext("2d");p.clearRect(0,0,a.width,a.height),h&&(h.imageSmoothingEnabled&&(p.imageSmoothingEnabled=h.imageSmoothingEnabled),h.imageSmoothingQuality&&(p.imageSmoothingQuality=h.imageSmoothingQuality),h.fillColor&&(p.fillStyle=h.fillColor,p.fillRect(0,0,a.width,a.height),p.save()));var m=u.left<0?-u.left:0,v=u.top<0?-u.top:0;p.drawImage(l,u.left+m,u.top+v,u.width,u.height,m*(a.width/u.width),v*(a.height/u.height),a.width,a.height)})(t,n,this.coordinates,i,r),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?fJ(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?Vf(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return hJ({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?BJ:wJ);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=Da(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,A=this.defaultPosition||vJ,i=[r,function(o){var a=o.coordinates;return xt({},Da(A)?A({coordinates:a,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&i.push.apply(i,Is(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(i,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout((function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}}),this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then((function(){var r={cropper:n,imageSize:t.imageSize};if(Da(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=(function(A){var i=A.cropper,o=A.imageSize,a=i.clientHeight,l=i.clientWidth,u=a,d=o.width*a/o.height;return d>l&&(d=l,u=o.height*l/o.width),{width:d,height:u}})(r):t.boundaries=(function(A){var i=A.cropper;return{width:i.clientWidth,height:i.clientHeight}})(r),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")}))},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=xt(xt({},this.defaultImageTransforms),{},{flip:xt({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then((function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,A,i,o,a=t.defaultVisibleArea||yJ;t.visibleArea=Da(a)?a({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,r=e.boundaries,A=e.getAreaRestrictions,i=qe({},n),o=Ft(r),i.width/i.height!==o&&(i.height=i.width/o),qn(i,A({visibleArea:i,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")})).catch((function(){t.visibleArea=null}))},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then((function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")})).catch((function(){t.visibleArea=null}))},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if((function(A){if(ax(A))return!1;var i=window.location,o=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(A)||[],a={protocol:o[1]||"",host:o[2]||"",port:o[3]||""},l=function(u){return u.port||((u.protocol||i.protocol)==="http"?80:433)};return!(!a.protocol&&!a.host&&!a.port||a.protocol&&a.protocol==i.protocol&&a.host&&a.host==i.host&&a.host&&l(a)==l(i))})(this.src)){var n=Rn(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise((function(A){IJ(t).then((function(i){var o=UJ(i);A(i?{source:t,arrayBuffer:i,orientation:o}:{source:t,arrayBuffer:null,orientation:null})})).catch((function(i){console.warn(i),A({source:t,arrayBuffer:null,orientation:null})}))})));setTimeout((function(){r.then(e.onParseImage)}),this.transitionTime)}else setTimeout((function(){e.onParseImage({source:e.src})}),this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then((function(){t.$emit("ready"),t.onChange(!1)})))},onParseImage:function(t){var e=this,n=t.source,r=t.arrayBuffer,A=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&A&&A>1?sx(n)||!ax(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=(function(i){for(var o=[],a=new Uint8Array(i);a.length>0;){var l=a.subarray(0,8192);o.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),a=a.subarray(8192)}return"data:image/jpeg;base64,"+btoa(o.join(""))})(r):this.imageAttributes.src=n,Da(this.defaultTransforms)?this.appliedImageTransforms=jv(this.defaultTransforms()):qf(this.defaultTransforms)?this.appliedImageTransforms=jv(this.defaultTransforms):this.appliedImageTransforms=(function(i){var o=jv({});if(i)switch(i){case 2:o.flip.horizontal=!0;break;case 3:o.rotate=-180;break;case 4:o.flip.vertical=!0;break;case 5:o.rotate=90,o.flip.vertical=!0;break;case 6:o.rotate=90;break;case 7:o.rotate=90,o.flip.horizontal=!0;break;case 8:o.rotate=-90}return o})(A),this.defaultImageTransforms=xt(xt({},this.appliedImageTransforms),{},{flip:xt({},this.appliedImageTransforms.flip)}),this.$nextTick((function(){var i=e.$refs.image;i&&i.complete&&((function(o){return!!o.naturalWidth})(i)?e.onSuccessLoadImage():e.onFailLoadImage())}))},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender((function(){e.coordinates=e.moveAlgorithm(xt(xt({},e.getPublicProperties()),{},{positionRestrictions:Vf(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()}))},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender((function(){var n=e.sizeRestrictions,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(xt(xt({},e.getPublicProperties()),{},{positionRestrictions:Vf(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,r),minHeight:Math.max(n.minHeight,r)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1}))},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,r=n!==void 0&&n,A=e.normalize,i=A===void 0||A;r&&this.enableTransitions();var o=CJ(xt(xt({},this.getPublicProperties()),{},{event:i?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),a=o.visibleArea,l=o.coordinates;this.visibleArea=a,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),r&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,A=r.aspectRatio,i=r.minAspectRatio,o=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var a=this.$refs.stencil.aspectRatios();e=a.minimum,n=a.maximum}if(Rn(e)&&(e=Rn(A)?i:A),Rn(n)&&(n=Rn(A)?o:A),!t&&(Rn(e)||Rn(n))){var l=this.getStencilSize(),u=l?Ft(l):null;Rn(e)&&(e=lx(u)?u:void 0),Rn(n)&&(n=lx(u)?u:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,r=t.aspectRatio,Wv(Ft(A=Da(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(A=Pi({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:A.width,height:A.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(A.width>e.width||A.height>e.height)&&(A=Pi({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:A.width,height:A.height,aspectRatio:{minimum:Ft(A),maximum:Ft(A)}})),A;var t,e,n,r,A},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return xt({},hx)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,A=r===void 0||r;if(!this.transitionsActive){A&&this.enableTransitions();var i=xt({},this.imageTransforms.flip),o=EJ({flip:{horizontal:t?!i.horizontal:i.horizontal,vertical:e?!i.vertical:i.vertical},previousFlip:i,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=o.visibleArea,l=o.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=a,this.coordinates=l,this.onChange(),A&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var A=xt({},this.imageSize);this.appliedImageTransforms.rotate+=t;var i=bJ({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:A,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),o=i.visibleArea,a=i.coordinates,l=this.processAutoZoom("rotateImage",o,a);o=l.visibleArea,a=l.coordinates,this.visibleArea=o,this.coordinates=a,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},DJ={key:0,ref:"canvas",style:{display:"none"}},OJ={key:1,ref:"sourceCanvas",style:{display:"none"}};Tx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"cropper",class:i.classes.cropper},[s.createVNode("div",{ref:"stretcher",class:i.classes.stretcher},null,2),s.createVNode("div",{class:i.classes.boundaries,style:i.boundariesStyle},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.backgroundWrapperComponent),{class:i.classes.cropperWrapper,"wheel-resize":i.settings.resizeImage.wheel,"touch-resize":i.settings.resizeImage.touch,"touch-move":i.settings.moveImage.touch,"mouse-move":i.settings.moveImage.mouse,onMove:i.onManipulateImage,onResize:i.onManipulateImage},{default:s.withCtx((function(){return[s.createVNode("div",{class:i.classes.background,style:i.boundariesStyle},null,6),s.createVNode("div",{class:i.classes.imageWrapper},[s.createVNode("img",{ref:"image",crossorigin:A.imageAttributes.crossOrigin,src:A.imageAttributes.src,class:i.classes.image,style:i.imageStyle,onMousedown:e[1]||(e[1]=s.withModifiers((function(){}),["prevent"]))},null,46,["crossorigin","src"])],2),s.createVNode("div",{class:i.classes.foreground,style:i.boundariesStyle},null,6),s.withDirectives((s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.stencilComponent),s.mergeProps({ref:"stencil",image:i.image,coordinates:A.coordinates,"stencil-coordinates":i.stencilCoordinates,transitions:i.transitionsOptions},n.stencilProps,{onResize:i.onResize,onResizeEnd:i.onResizeEnd,onMove:i.onMove,onMoveEnd:i.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[s.vShow,A.imageLoaded]]),n.canvas?(s.openBlock(),s.createBlock("canvas",DJ,null,512)):s.createCommentVNode("",!0),n.canvas?(s.openBlock(),s.createBlock("canvas",OJ,null,512)):s.createCommentVNode("",!0)]})),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const NJ={key:0,class:"image-crop"},LJ={class:"row mb-4"},RJ={class:"col"},HJ={class:"row"},PJ={class:"col d-flex gap-2 justify-content-end gap-2"},Mx=s.defineComponent({__name:"image-crop",props:{modelValue:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},spinner:{type:Boolean,default:!1},ready:{type:Boolean,default:!1},aspectRatioOptions:{type:Array,default:()=>[{value:0,text:"Free"},{value:1,text:"1:1"},{value:4/3,text:"4:3"},{value:16/9,text:"16:9"},{value:3/4,text:"3:4"},{value:9/16,text:"9:16"}]},suggestedAspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.useTemplateRef("cropper"),i=s.ref(0);function o(){const{canvas:a}=A.value?.getResult(),l=a.toDataURL();r("update:modelValue",l)}return s.onBeforeMount(()=>{i.value=n.suggestedAspectRatio||0}),(a,l)=>{const u=s.resolveComponent("input-dropdown");return t.modelValue?(s.openBlock(),s.createElementBlock("div",NJ,[s.createElementVNode("div",LJ,[s.createElementVNode("div",RJ,[s.createVNode(s.unref(Tx),{ref:"cropper",class:"cropper",src:t.modelValue,"stencil-props":{...i.value!==0?{aspectRatio:i.value}:{}},"resize-image":!1},null,8,["src","stencil-props"])])]),l[1]||(l[1]=s.createElementVNode("hr",null,null,-1)),s.createElementVNode("div",HJ,[s.createElementVNode("div",PJ,[s.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=d=>i.value=d),options:t.aspectRatioOptions,class:"mb-0"},null,8,["modelValue","options"]),s.renderSlot(a.$slots,"actions"),s.createElementVNode("button",{class:"btn btn-sm btn-primary",onClick:s.withModifiers(o,["prevent","stop"])},s.toDisplayString(a.$t("common.apply")),1)])])])):s.createCommentVNode("",!0)}}}),$J={key:0,class:"image-editor position-relative"},KJ={class:"row mb-3"},zJ={class:"col"},WJ={class:"row gap-2 mb-4"},GJ={class:"col-12"},YJ={class:"input mb-2"},qJ={class:"col"},XJ={class:"input mb-0"},JJ={class:"col"},jJ={class:"input mb-0"},ZJ={class:"row"},VJ={class:"col d-flex justify-content-end gap-2"},ej=["disabled"],Ix=s.defineComponent({__name:"image-resize",props:{modelValue:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},spinner:{type:Boolean,default:!1},ready:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=s.useTemplateRef("image"),A=s.ref(1),i=s.ref(0),o=s.ref(0),a=s.ref(null),l=s.ref(0),u=s.ref(0);function d(){a.value&&(n("update:modelValue",a.value),A.value=1)}const h=()=>{if(!l.value||!u.value)return;i.value=Math.round(l.value*A.value);const m=u.value/l.value;o.value=Math.round(i.value*m);const v=r.value?.$el;if(!v)return;const B=v.querySelector("img");B&&(a.value=SB(B,i.value,o.value,"image/png"))},p=_g.debounce(h,300);return s.watch(A,()=>{l.value&&(i.value=Math.round(l.value*A.value),p())}),s.watch(i,()=>{if(!l.value||i.value===0)return;const m=i.value/l.value;Math.abs(m-A.value)>1e-4&&(A.value=Number(m.toFixed(4)));const v=u.value/l.value;o.value=Math.round(i.value*v),p()}),s.watch(o,()=>{if(!u.value||o.value===0)return;const m=o.value/u.value;Math.abs(m-A.value)>1e-4&&(A.value=Number(m.toFixed(4)));const v=l.value/u.value;i.value=Math.round(o.value*v),p()}),s.onMounted(()=>{const m=r.value?.$el;if(!m)return;const v=m.querySelector("img");if(!v)return;const B=()=>{l.value=v.naturalWidth,u.value=v.naturalHeight,h()};v.complete?B():v.addEventListener("load",B)}),(m,v)=>{const B=s.resolveComponent("base-image"),y=s.resolveComponent("base-input");return t.modelValue?(s.openBlock(),s.createElementBlock("div",$J,[s.createElementVNode("div",KJ,[s.createElementVNode("div",zJ,[s.createVNode(B,{ref_key:"image",ref:r,class:"d-none",src:t.modelValue,animate:!1},null,8,["src"]),a.value?(s.openBlock(),s.createBlock(B,{key:0,ref:"targetImage",class:"",src:a.value,animate:!1},null,8,["src"])):s.createCommentVNode("",!0)])]),s.createElementVNode("div",WJ,[s.createElementVNode("div",GJ,[s.createElementVNode("div",YJ,[s.withDirectives(s.createElementVNode("input",{type:"range",class:"form-range",id:"scaleRange","onUpdate:modelValue":v[0]||(v[0]=w=>A.value=w),min:"0",max:"2",step:"0.0001"},null,512),[[s.vModelText,A.value]])])]),s.createElementVNode("div",qJ,[s.createElementVNode("div",XJ,[s.createVNode(y,{type:"number",class:"form-input mb-0",id:"targetWidth",modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=w=>i.value=w)},null,8,["modelValue"])])]),v[3]||(v[3]=s.createElementVNode("div",{class:"col-auto d-flex align-items-center"},[s.createElementVNode("output",null,"×")],-1)),s.createElementVNode("div",JJ,[s.createElementVNode("div",jJ,[s.createVNode(y,{type:"number",class:"form-input mb-0",id:"targetHeight",modelValue:o.value,"onUpdate:modelValue":v[2]||(v[2]=w=>o.value=w)},null,8,["modelValue"])])])]),s.createElementVNode("div",ZJ,[s.createElementVNode("div",VJ,[s.renderSlot(m.$slots,"actions"),s.createElementVNode("button",{class:"btn btn-sm btn-primary",disabled:!a.value,onClick:s.withModifiers(d,["prevent","stop"])},s.toDisplayString(m.$t("common.apply")),9,ej)])])])):s.createCommentVNode("",!0)}}}),tj={key:0,class:"image-crop-resize position-relative"},nj={class:"row"},rj={class:"col"},Aj={key:3,class:"alert alert-warning mt-4 small p-2"},ij={key:4},oj={class:"row"},sj={class:"col-12"},aj={class:"d-flex"},lj={key:0,class:"d-flex gap-3"},cj={class:"caption"},uj={class:"caption"},dj={key:1,class:"ms-auto"},Ux=s.defineComponent({__name:"image-crop-resize",props:{modelValue:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},spinner:{type:Boolean,default:!1},ready:{type:Boolean,default:!1},aspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=s.ref(!1),o=s.computed({get:()=>n.modelValue,set:l=>r("update:modelValue",l)}),a=s.computed(()=>n.modelValue.startsWith("data:image/svg+xml"));return s.watch(()=>[A.value,o.value],(l,u)=>{l[0]&&l[0]===u[0]&&(A.value=!1)}),s.watch(()=>[i.value,o.value],(l,u)=>{l[0]&&l[0]===u[0]&&(i.value=!1)}),s.onMounted(()=>{}),(l,u)=>{const d=s.resolveComponent("base-image"),h=s.resolveComponent("svg-icon");return t.modelValue?(s.openBlock(),s.createElementBlock("div",tj,[s.createElementVNode("div",nj,[s.createElementVNode("div",rj,[A.value||i.value?A.value?(s.openBlock(),s.createBlock(Ix,{key:1,modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p)},{actions:s.withCtx(()=>[s.createElementVNode("button",{class:"btn btn-outline-ccontrast",onClick:u[0]||(u[0]=s.withModifiers(p=>A.value=!1,["prevent","stop"]))},s.toDisplayString(l.$t("common.cancel")),1)]),_:1},8,["modelValue"])):i.value?(s.openBlock(),s.createBlock(Mx,{key:2,modelValue:o.value,"onUpdate:modelValue":u[3]||(u[3]=p=>o.value=p),"suggested-aspect-ratio":t.aspectRatio},{actions:s.withCtx(()=>[s.createElementVNode("button",{class:"btn btn-sm btn-outline-ccontrast",onClick:u[2]||(u[2]=s.withModifiers(p=>i.value=!1,["prevent","stop"]))},s.toDisplayString(l.$t("common.cancel")),1)]),_:1},8,["modelValue","suggested-aspect-ratio"])):s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(d,{key:0,ref:"targetImage",class:"",animate:!1,src:t.modelValue},null,8,["src"])),a.value?(s.openBlock(),s.createElementBlock("div",Aj,s.toDisplayString(l.$t("common.svgWarning")),1)):s.createCommentVNode("",!0),!i.value&&!A.value?(s.openBlock(),s.createElementBlock("hr",ij)):s.createCommentVNode("",!0),s.createElementVNode("div",oj,[s.createElementVNode("div",sj,[s.createElementVNode("div",aj,[!i.value&&!A.value?(s.openBlock(),s.createElementBlock("div",lj,[s.createElementVNode("button",{type:"button",class:"btn btn-light",onClick:u[4]||(u[4]=s.withModifiers(p=>i.value=!i.value,["prevent","stop"]))},[s.createVNode(h,{symbol:"crop"}),s.createElementVNode("span",cj,s.toDisplayString(l.$t("common.crop")),1)]),s.createElementVNode("button",{type:"button",class:"btn btn-light",onClick:u[5]||(u[5]=s.withModifiers(p=>A.value=!A.value,["prevent","stop"]))},[s.createVNode(h,{symbol:"image-upscale"}),s.createElementVNode("span",uj,s.toDisplayString(l.$t("common.resize")),1)])])):s.createCommentVNode("",!0),!i.value&&!A.value?(s.openBlock(),s.createElementBlock("div",dj,[s.renderSlot(l.$slots,"submit")])):s.createCommentVNode("",!0)])])])])])])):s.createCommentVNode("",!0)}}}),fj={class:"image-upload__controls"},hj={class:"d-flex gap-1 align-items-center"},pj={key:1,class:"image-upload__controls"},mj=["for"],gj=["innerHTML"],vj={key:0,class:"image-upload__loading-spinner"},wj=s.defineComponent({__name:"image-upload",props:{modelValue:{type:Object,default:void 0},src:{type:String},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},accept:{type:String,default:"image/*"},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/api/v1/assets"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0},dropFiles:{type:Boolean,default:!1},enableReview:{type:Boolean,default:!0},maxImageWidth:{type:Number,default:4096},aspectRatio:Number},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=s.ref(null),o=s.ref(null),a=s.ref(null),{pending:l,files:u,imgLoaded:d,isDragging:h,uploadFile:p,setupDragAndDrop:m,cleanupDragAndDrop:v}=XE(n,r),B=s.computed(()=>n.modelValue?n.modelValue:n.src?{type:"",src:n.src}:i.value);function y(){i.value=null,u.value=[],d.value=!1,r("update:modelValue",void 0),r("update:src","")}s.watch(()=>u.value,async S=>{if(!S||!S.length||!S[0])return;d.value=!1;const Q=await KT(S[0],n.maxImageWidth);n.enableReview?(o.value={src:await Xc(Q),type:Q.type},A.value=!0):i.value={src:n.toDataUrl?await Xc(Q):await p(Q),type:Q.type}}),s.watch(()=>i.value,S=>{r("update:modelValue",S||void 0),r("update:src",S?.src||"")}),s.watch(()=>a.value,async S=>{S&&(i.value={src:await p(S),type:S.type},a.value=null)}),s.watch(()=>A.value,(S,Q)=>{!S&&Q&&o.value&&(o.value=null)}),s.watch(()=>n.src,S=>{!S&&i.value&&(i.value=null,u.value=[],d.value=!1)});function w(S,Q){o.value={src:S,type:Q},A.value=!0}async function C(){o.value&&(a.value=await kB(o.value.src,"file",o.value.type)),o.value=null,A.value=!1}return s.onMounted(()=>{m()}),s.onBeforeUnmount(()=>{v()}),(S,Q)=>{const _=s.resolveComponent("base-image"),D=s.resolveComponent("svg-icon"),I=s.resolveComponent("input-file"),$=s.resolveComponent("modal-dialog");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["image-upload",{"has-dragging":t.dropFiles,"is-dragging":s.unref(h)}])},[!A.value&&B.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["mb-2",t.enablePreview?"image-upload__thumbnail":"image-upload__reset"])},[t.enablePreview?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(_,{src:`${B.value.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded",ready:s.unref(d),"onUpdate:ready":Q[0]||(Q[0]=Y=>s.isRef(d)?d.value=Y:null),animate:!1,style:s.normalizeStyle({maxWidth:t.previewWidth?`${t.previewWidth}px`:"auto",height:"auto"})},null,8,["src","ready","style"]),s.createElementVNode("div",fj,[s.createElementVNode("div",hj,[s.createElementVNode("button",{type:"button",onClick:Q[1]||(Q[1]=s.withModifiers(Y=>w(B.value.src,B.value.type),["prevent","stop"])),class:"btn btn--edit btn-sm btn-light"},[s.createVNode(D,{symbol:"edit-2"})]),s.createElementVNode("button",{type:"button",onClick:Q[2]||(Q[2]=s.withModifiers(Y=>y(),["prevent","stop"])),class:"btn btn--close btn-sm btn-light"},[s.createVNode(D,{symbol:"x"})])])])],64)):(s.openBlock(),s.createElementBlock("div",pj,[s.createElementVNode("button",{onClick:Q[3]||(Q[3]=s.withModifiers(Y=>y(),["prevent","stop"])),class:"btn btn--close btn-outline-contrast"},[s.createVNode(D,{symbol:"x"})])]))],2)):s.createCommentVNode("",!0),s.createVNode(I,{modelValue:s.unref(u),"onUpdate:modelValue":Q[4]||(Q[4]=Y=>s.isRef(u)?u.value=Y:null),id:t.id,name:t.name,accept:t.accept,"max-file-size":t.maxFileSize,class:"d-none"},null,8,["modelValue","id","name","accept","max-file-size"]),t.src?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("label",{key:1,for:t.id,class:"image-upload__label"},[s.renderSlot(S.$slots,"button",{},()=>[s.createElementVNode("span",{class:"btn btn-outline-contrast",innerHTML:t.label||S.$t("common.selectFile")},null,8,gj)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[s.unref(l)?(s.openBlock(),s.createElementBlock("span",vj,[...Q[7]||(Q[7]=[s.createElementVNode("span",{class:"spinner-border",role:"status"},[s.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)])])):s.createCommentVNode("",!0)]),_:1})],8,mj)),s.createVNode($,{modelValue:A.value,"onUpdate:modelValue":Q[6]||(Q[6]=Y=>A.value=Y),footer:!1},{default:s.withCtx(()=>[A.value&&o.value?(s.openBlock(),s.createBlock(Ux,{key:0,modelValue:o.value.src,"onUpdate:modelValue":Q[5]||(Q[5]=Y=>o.value.src=Y),"aspect-ratio":t.aspectRatio},{submit:s.withCtx(()=>[s.createElementVNode("button",{class:"btn btn-primary",onClick:s.withModifiers(C,["prevent","stop"])},s.toDisplayString(S.$t("common.save")),1)]),_:1},8,["modelValue","aspect-ratio"])):s.createCommentVNode("",!0)]),_:1},8,["modelValue"])],2)}}});Xe.Accordion=tM,Xe.AccordionItem=JT,Xe.AssetUploader=r8,Xe.AutoSuggest=C5,Xe.BaseButton=rM,Xe.BaseCamera=z5,Xe.BaseCarousel=jE,Xe.BaseForm=PX,Xe.BaseHeadline=mT,Xe.BaseImage=hT,Xe.BaseInput=aM,Xe.BaseParagraph=RT,Xe.CanvasConfetti=rJ,Xe.CheckGroup=gR,Xe.ColorPalette=A5,Xe.CustomHtml=DR,Xe.DomRenderer=iX,Xe.FileUpload=GW,Xe.ImageCrop=Mx,Xe.ImageCropResize=Ux,Xe.ImageResize=Ix,Xe.ImageUpload=wj,Xe.InputCheckbox=mM,Xe.InputColor=t5,Xe.InputDatepicker=uR,Xe.InputDatetime=BM,Xe.InputDropdown=g5,Xe.InputFile=IR,Xe.InputPassword=fR,Xe.InputTextarea=dM,Xe.LinkSharing=RX,Xe.LoadingSpinner=dT,Xe.MediaThumbnails=l8,Xe.ModalDialog=YX,Xe.PopoverDialog=Lg,Xe.PopoverNotifications=U8,Xe.PopoverTooltip=F8,Xe.ProgressSteps=v8,Xe.QrCode=uX,Xe.RadioButtons=ER,Xe.RadioGroup=xu,Xe.RteEditor=jz,Xe.SelectMedia=LR,Xe.SortableList=VX,Xe.SvgIcon=cT,Xe.TouchWrapper=nJ,Xe.UploadGroup=JE,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})}));
|
|
176
|
+
`+E,l(`data:${we(T)};charset=utf-8,${encodeURIComponent(E)}`,`${P}.svg`)}else l(F.toDataURL(we(T)),`${P}.${T}`)}}const V=te})(),i.default})()))})(Gf)),Gf.exports}var aX=sX();const nx=b5(aX),lX={class:"qr-code"},cX=["innerHTML"],uX=s.defineComponent({__name:"qr-code",props:{data:null,image:null,download:{type:Boolean,default:!1},filename:{type:String,default:"qr-code"}},emits:["update:dataUrl"],setup(t,{expose:e,emit:n}){const r=t,A=s.ref(),i=s.computed(()=>({width:300,height:300,type:"canvas",data:r.data,...r.image?{image:r.image}:{},margin:10,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,margin:20,crossOrigin:"anonymous"},dotsOptions:{type:"rounded"},backgroundOptions:{color:"#ffffff"},cornersSquareOptions:{color:"#333333",type:"extra-rounded"},cornersDotOptions:{color:"#333333",type:"dot"}}));function o(l=null,u=null){typeof window<"u"&&(A.value&&(A.value.innerHTML=""),new nx(l||i.value).append(A.value))}function a(){new nx({...i.value,width:1200,height:1200}).download({name:r.filename,extension:"png"})}return s.watch(()=>i.value,o,{deep:!0,immediate:!0}),s.onMounted(()=>{typeof window<"u"&&o()}),e({download:a}),(l,u)=>(s.openBlock(),s.createElementBlock("div",lX,[r.download?(s.openBlock(),s.createElementBlock("button",{key:0,class:"btn btn-outline-contrast mb-3",onClick:a,innerHTML:l.$t("qrlink.download")},null,8,cX)):(s.openBlock(),s.createElementBlock("div",{key:1,ref_key:"canvas",ref:A},null,512))]))}}),dX={class:"link-sharing"},fX={key:0,class:"link-sharing__links container"},hX={class:"row"},pX={key:0,class:"col-12 col-md-6"},mX=["href"],gX={class:"caption"},vX={key:1,class:"col-12 col-md-6"},wX=["href"],BX={class:"caption"},yX={key:2,class:"col-12 col-md-6"},CX={class:"caption"},bX={key:3,class:"col-12 col-md-6"},EX=["href"],kX={class:"caption"},SX={key:4,class:"col-12 col-md-6"},xX=["href"],FX={class:"caption"},QX={key:5,class:"col-12 col-md-6"},TX={class:"caption"},MX={key:6,class:"col-12 col-md-6"},IX=["href"],UX={class:"caption"},_X={key:1,class:"link-sharing__instructions pt-5"},DX={class:"row"},OX={class:"col-12 text-center py-0"},NX={class:"mb-5"},LX=t=>t.replace(/<(?:.|\n)*?>/gm,""),RX=s.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,n=s.ref(!1),r=s.computed(()=>encodeURIComponent(e.url));s.computed(()=>encodeURIComponent(e.media));const A=s.computed(()=>LX(e.text)),i=s.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function o(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,l)=>{const u=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",dX,[n.value?(s.openBlock(),s.createElementBlock("div",_X,[s.createElementVNode("div",DX,[s.createElementVNode("div",OX,[s.createElementVNode("div",NX,[s.createElementVNode("p",null,s.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),s.createElementVNode("p",null,[s.createElementVNode("strong",null,s.toDisplayString(Array.isArray(t.hashtags)?t.hashtags.join(", "):t.hashtags),1)]),s.createElementVNode("button",{type:"button",class:"btn btn-text",onClick:l[1]||(l[1]=s.withModifiers(d=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"arrow-left"}),s.createTextVNode(" "+s.toDisplayString(a.$t("common.back")),1)])])])])])):(s.openBlock(),s.createElementBlock("div",fX,[s.createElementVNode("div",hX,[t.services.facebook?(s.openBlock(),s.createElementBlock("div",pX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${r.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"facebook"}),s.createElementVNode("span",gX,s.toDisplayString(a.$t("sharing.facebook")),1)],8,mX)])):s.createCommentVNode("",!0),t.services.bluesky?(s.openBlock(),s.createElementBlock("div",vX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${A.value}${A.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"bluesky-logo"}),s.createElementVNode("span",BX,s.toDisplayString(a.$t("sharing.bluesky")),1)],8,wX)])):s.createCommentVNode("",!0),t.services.instagram?(s.openBlock(),s.createElementBlock("div",yX,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:l[0]||(l[0]=s.withModifiers(d=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"instagram"}),s.createElementVNode("span",CX,s.toDisplayString(a.$t("sharing.instagram")),1)])])):s.createCommentVNode("",!0),t.services.linkedin?(s.openBlock(),s.createElementBlock("div",bX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${r.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"linkedin"}),s.createElementVNode("span",kX,s.toDisplayString(a.$t("sharing.linkedin")),1)],8,EX)])):s.createCommentVNode("",!0),t.services.whatsapp&&i.value?(s.openBlock(),s.createElementBlock("div",SX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${r.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"whatsapp"}),s.createElementVNode("span",FX,s.toDisplayString(a.$t("sharing.whatsapp")),1)],8,xX)])):s.createCommentVNode("",!0),t.services.clipboard?(s.openBlock(),s.createElementBlock("div",QX,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(u,{symbol:"copy"}),s.createElementVNode("span",TX,s.toDisplayString(a.$t("sharing.clipboard")),1)])])):s.createCommentVNode("",!0),t.services.mailto?(s.openBlock(),s.createElementBlock("div",MX,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${A.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"mail"}),s.createElementVNode("span",UX,s.toDisplayString(a.$t("sharing.mailto")),1)],8,IX)])):s.createCommentVNode("",!0)])]))])}}}),HX={class:"base-form"},PX=s.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(A){console.log("input",A)}function n(A){console.log("reset",A)}function r(A){console.log("submit",A)}return(A,i)=>(s.openBlock(),s.createElementBlock("div",HX,[s.createElementVNode("form",{ref:"form",onInput:e,onReset:n,onSubmit:s.withModifiers(r,["prevent"])},[s.renderSlot(A.$slots,"default")],544)]))}}),$X={class:"modal-dialog__content d-flex flex-column"},KX={class:"modal-dialog__header d-flex p-3 border-bottom"},zX={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},WX={class:"modal-dialog__body"},GX={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},YX=s.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:n}){const r=t,A=n,i=s.ref();function o(){document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),r.modal?i.value?.showModal():i.value?.show(),A("update:modelValue",!0)}function a(){const p=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(p,document.timeline);m.play(),m.addEventListener("finish",()=>{i.value?.close(),l()}),A("update:modelValue",!1)}function l(){const p=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(p,10),behavior:"instant"}),A("update:modelValue",!1)}function u(p){o(),A("confirm",p)}function d(){a(),A("cancel")}function h(p){const m=p.target;m&&m.nodeName==="DIALOG"&&a()}return s.watch(()=>r.modelValue,(p,m)=>{p&&p!==m?o():m&&a()},{immediate:!0}),s.onMounted(()=>{i.value?.addEventListener("cancel",p=>{p.preventDefault(),a()}),r.dismiss&&document.addEventListener("click",h),r.modelValue&&o()}),s.onBeforeUnmount(()=>{r.dismiss&&document.removeEventListener("click",h)}),e({show:o,close:a,confirm:u,cancel:d}),(p,m)=>(s.openBlock(),s.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:s.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:l},[s.createElementVNode("div",$X,[s.createElementVNode("div",KX,[t.title?(s.openBlock(),s.createElementBlock("h5",zX,s.toDisplayString(t.title),1)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),s.createElementVNode("div",WX,[s.renderSlot(p.$slots,"default")]),t.footer?(s.openBlock(),s.createElementBlock("div",GX,[s.renderSlot(p.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},s.toDisplayString(p.$t("common.close")),1)])):s.createCommentVNode("",!0)])],34))}}),qX=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],XX=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],JX={key:0,class:"sortable-list__drag-handle"},jX={type:"button",class:"btn"},ZX={key:0,class:"sortable-list__item"},VX=s.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue","update:isDragging","update:dragIndex","update:dragOverIndex"],setup(t,{emit:e}){const n=t,r=s.ref(!1),A=s.ref(null),i=s.ref(null),o=e,a=s.computed({get(){return n.modelValue},set(C){o("update:modelValue",C)}}),l=s.computed(()=>{const C=document.querySelector(".is-drag-item")?.outerHTML;return C?Ur(C):""}),u=s.useSlots(),d=s.computed(()=>u["list-append"]);function h(C,S){C.dataTransfer&&(C.dataTransfer.dropEffect="move",C.dataTransfer.effectAllowed="move",C.dataTransfer.setData("index",S.toLocaleString()),r.value=!0,A.value=S)}function p(C,S){r.value=!1,A.value=null,i.value=null}function m(C,S){}function v(C,S){i.value=A.value!==S?S:null}function B(C,S){i.value=A.value!==S?S:null}function y(C,S){}function w(C,S){if(C.dataTransfer){C.preventDefault();const Q=Number(C.dataTransfer.getData("index")),_=S,D=[...a.value];(_||_===0)&&(Q||Q===0)&&D.splice(_,0,D.splice(Q,1)[0]),a.value=D}}return s.watch(()=>r.value,C=>{o("update:isDragging",C)},{immediate:!0}),s.watch(()=>A.value,C=>{o("update:dragIndex",C)},{immediate:!0}),s.watch(()=>i.value,C=>{o("update:dragOverIndex",C)},{immediate:!0}),(C,S)=>{const Q=s.resolveComponent("svg-icon");return s.openBlock(),s.createBlock(s.TransitionGroup,{name:"list",tag:"ul",class:s.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=s.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(_,D)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:D},[t.showPreview&&r.value&&i.value===D?(s.openBlock(),s.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:I=>v(I,D),onDragover:I=>B(I,D),onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>w(I,D),innerHTML:l.value},null,40,qX)):s.createCommentVNode("",!0),s.createElementVNode("li",{class:s.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":r.value&&A.value===D,"is-drop-target":r.value&&i.value===D&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:I=>h(I,D),onDrag:I=>void 0,onDragenter:I=>v(I,D),onDragover:I=>B(I,D),onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>w(I,D)},[t.showDragHandle?(s.openBlock(),s.createElementBlock("div",JX,[s.createElementVNode("button",jX,[s.createVNode(Q,{symbol:"drag"})])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[s.renderSlot(C.$slots,"list-item",{item:_,index:D},()=>[s.createTextVNode(s.toDisplayString(_),1)])],2)],42,XX)],64))),128)),d.value?(s.openBlock(),s.createElementBlock("li",ZX,[s.renderSlot(C.$slots,"list-append")])):s.createCommentVNode("",!0)]),_:3},8,["class"])}}}),eJ={class:"touch-wrapper__controls"},tJ={class:"btn-group",role:"group"},nJ=s.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.getCurrentInstance(),r=n&&n.appContext.config.globalProperties.$config,A=t,i=e,o=s.ref();function a(d){const h=A.modelValue+d;i("update:modelValue",d===0?1:h>=1?h:1)}function l(d){if(d.ctrlKey){d.preventDefault();const h=0-d.deltaY*.01;a(h)}}function u(d){d.preventDefault();const{scale:h}=d,p=h>1?h*.01:0-h;a(p)}return s.onMounted(()=>{o.value&&(o.value.addEventListener("wheel",l,!1),o.value.addEventListener("gesturestart",u,!1),o.value.addEventListener("gesturechange",u,!1),o.value.addEventListener("gestureend",u,!1))}),(d,h)=>{const p=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"touchElement",ref:o,class:"touch-wrapper"},[s.renderSlot(d.$slots,"controls",{on:{setScale:a}},()=>[s.createElementVNode("div",eJ,[s.createElementVNode("div",tJ,[s.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=m=>a(-1))},[s.createVNode(p,{symbol:"minus","base-path":s.unref(r).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=m=>a(0))},[s.createVNode(p,{symbol:"maximize","base-path":s.unref(r).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=m=>a(1))},[s.createVNode(p,{symbol:"plus","base-path":s.unref(r).iconSprite},null,8,["base-path"])])])])]),s.renderSlot(d.$slots,"default")],512)}}});var Ov={};(function t(e,n,r,A){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=(function(){if(!e.OffscreenCanvas)return!1;try{var F=new OffscreenCanvas(1,1),E=F.getContext("2d");E.fillRect(0,0,1,1);var W=F.transferToImageBitmap();E.createPattern(W,"no-repeat")}catch{return!1}return!0})();function l(){}function u(F){var E=n.exports.Promise,W=E!==void 0?E:e.Promise;return typeof W=="function"?new W(F):(F(l,l),null)}var d=(function(F,E){return{transform:function(W){if(F)return W;if(E.has(W))return E.get(W);var ne=new OffscreenCanvas(W.width,W.height),X=ne.getContext("2d");return X.drawImage(W,0,0),E.set(W,ne),ne},clear:function(){E.clear()}}})(a,new Map),h=(function(){var F=Math.floor(16.666666666666668),E,W,ne={},X=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(E=function(re){var Ae=Math.random();return ne[Ae]=requestAnimationFrame(function pe(le){X===le||X+F-1<le?(X=le,delete ne[Ae],re()):ne[Ae]=requestAnimationFrame(pe)}),Ae},W=function(re){ne[re]&&cancelAnimationFrame(ne[re])}):(E=function(re){return setTimeout(re,F)},W=function(re){return clearTimeout(re)}),{frame:E,cancel:W}})(),p=(function(){var F,E,W={};function ne(X){function re(Ae,pe){X.postMessage({options:Ae||{},callback:pe})}X.init=function(pe){var le=pe.transferControlToOffscreen();X.postMessage({canvas:le},[le])},X.fire=function(pe,le,Ce){if(E)return re(pe,null),E;var G=Math.random().toString(36).slice(2);return E=u(function(ee){function K(N){N.data.callback===G&&(delete W[G],X.removeEventListener("message",K),E=null,d.clear(),Ce(),ee())}X.addEventListener("message",K),re(pe,G),W[G]=K.bind(null,{data:{callback:G}})}),E},X.reset=function(){X.postMessage({reset:!0});for(var pe in W)W[pe](),delete W[pe]}}return function(){if(F)return F;if(!r&&i){var X=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
|
|
177
|
+
`);try{F=new Worker(URL.createObjectURL(new Blob([X])))}catch(re){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",re),null}ne(F)}return F}})(),m={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function v(F,E){return E?E(F):F}function B(F){return F!=null}function y(F,E,W){return v(F&&B(F[E])?F[E]:m[E],W)}function w(F){return F<0?0:Math.floor(F)}function C(F,E){return Math.floor(Math.random()*(E-F))+F}function S(F){return parseInt(F,16)}function Q(F){return F.map(_)}function _(F){var E=String(F).replace(/[^0-9a-f]/gi,"");return E.length<6&&(E=E[0]+E[0]+E[1]+E[1]+E[2]+E[2]),{r:S(E.substring(0,2)),g:S(E.substring(2,4)),b:S(E.substring(4,6))}}function D(F){var E=y(F,"origin",Object);return E.x=y(E,"x",Number),E.y=y(E,"y",Number),E}function I(F){F.width=document.documentElement.clientWidth,F.height=document.documentElement.clientHeight}function $(F){var E=F.getBoundingClientRect();F.width=E.width,F.height=E.height}function Y(F){var E=document.createElement("canvas");return E.style.position="fixed",E.style.top="0px",E.style.left="0px",E.style.pointerEvents="none",E.style.zIndex=F,E}function de(F,E,W,ne,X,re,Ae,pe,le){F.save(),F.translate(E,W),F.rotate(re),F.scale(ne,X),F.arc(0,0,1,Ae,pe,le),F.restore()}function ge(F){var E=F.angle*(Math.PI/180),W=F.spread*(Math.PI/180);return{x:F.x,y:F.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:F.startVelocity*.5+Math.random()*F.startVelocity,angle2D:-E+(.5*W-Math.random()*W),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:F.color,shape:F.shape,tick:0,totalTicks:F.ticks,decay:F.decay,drift:F.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:F.gravity*3,ovalScalar:.6,scalar:F.scalar,flat:F.flat}}function me(F,E){E.x+=Math.cos(E.angle2D)*E.velocity+E.drift,E.y+=Math.sin(E.angle2D)*E.velocity+E.gravity,E.velocity*=E.decay,E.flat?(E.wobble=0,E.wobbleX=E.x+10*E.scalar,E.wobbleY=E.y+10*E.scalar,E.tiltSin=0,E.tiltCos=0,E.random=1):(E.wobble+=E.wobbleSpeed,E.wobbleX=E.x+10*E.scalar*Math.cos(E.wobble),E.wobbleY=E.y+10*E.scalar*Math.sin(E.wobble),E.tiltAngle+=.1,E.tiltSin=Math.sin(E.tiltAngle),E.tiltCos=Math.cos(E.tiltAngle),E.random=Math.random()+2);var W=E.tick++/E.totalTicks,ne=E.x+E.random*E.tiltCos,X=E.y+E.random*E.tiltSin,re=E.wobbleX+E.random*E.tiltCos,Ae=E.wobbleY+E.random*E.tiltSin;if(F.fillStyle="rgba("+E.color.r+", "+E.color.g+", "+E.color.b+", "+(1-W)+")",F.beginPath(),o&&E.shape.type==="path"&&typeof E.shape.path=="string"&&Array.isArray(E.shape.matrix))F.fill(x(E.shape.path,E.shape.matrix,E.x,E.y,Math.abs(re-ne)*.1,Math.abs(Ae-X)*.1,Math.PI/10*E.wobble));else if(E.shape.type==="bitmap"){var pe=Math.PI/10*E.wobble,le=Math.abs(re-ne)*.1,Ce=Math.abs(Ae-X)*.1,G=E.shape.bitmap.width*E.scalar,ee=E.shape.bitmap.height*E.scalar,K=new DOMMatrix([Math.cos(pe)*le,Math.sin(pe)*le,-Math.sin(pe)*Ce,Math.cos(pe)*Ce,E.x,E.y]);K.multiplySelf(new DOMMatrix(E.shape.matrix));var N=F.createPattern(d.transform(E.shape.bitmap),"no-repeat");N.setTransform(K),F.globalAlpha=1-W,F.fillStyle=N,F.fillRect(E.x-G/2,E.y-ee/2,G,ee),F.globalAlpha=1}else if(E.shape==="circle")F.ellipse?F.ellipse(E.x,E.y,Math.abs(re-ne)*E.ovalScalar,Math.abs(Ae-X)*E.ovalScalar,Math.PI/10*E.wobble,0,2*Math.PI):de(F,E.x,E.y,Math.abs(re-ne)*E.ovalScalar,Math.abs(Ae-X)*E.ovalScalar,Math.PI/10*E.wobble,0,2*Math.PI);else if(E.shape==="star")for(var R=Math.PI/2*3,J=4*E.scalar,z=8*E.scalar,ce=E.x,k=E.y,U=5,O=Math.PI/U;U--;)ce=E.x+Math.cos(R)*z,k=E.y+Math.sin(R)*z,F.lineTo(ce,k),R+=O,ce=E.x+Math.cos(R)*J,k=E.y+Math.sin(R)*J,F.lineTo(ce,k),R+=O;else F.moveTo(Math.floor(E.x),Math.floor(E.y)),F.lineTo(Math.floor(E.wobbleX),Math.floor(X)),F.lineTo(Math.floor(re),Math.floor(Ae)),F.lineTo(Math.floor(ne),Math.floor(E.wobbleY));return F.closePath(),F.fill(),E.tick<E.totalTicks}function we(F,E,W,ne,X){var re=E.slice(),Ae=F.getContext("2d"),pe,le,Ce=u(function(G){function ee(){pe=le=null,Ae.clearRect(0,0,ne.width,ne.height),d.clear(),X(),G()}function K(){r&&!(ne.width===A.width&&ne.height===A.height)&&(ne.width=F.width=A.width,ne.height=F.height=A.height),!ne.width&&!ne.height&&(W(F),ne.width=F.width,ne.height=F.height),Ae.clearRect(0,0,ne.width,ne.height),re=re.filter(function(N){return me(Ae,N)}),re.length?pe=h.frame(K):ee()}pe=h.frame(K),le=ee});return{addFettis:function(G){return re=re.concat(G),Ce},canvas:F,promise:Ce,reset:function(){pe&&h.cancel(pe),le&&le()}}}function te(F,E){var W=!F,ne=!!y(E||{},"resize"),X=!1,re=y(E,"disableForReducedMotion",Boolean),Ae=i&&!!y(E||{},"useWorker"),pe=Ae?p():null,le=W?I:$,Ce=F&&pe?!!F.__confetti_initialized:!1,G=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ee;function K(R,J,z){for(var ce=y(R,"particleCount",w),k=y(R,"angle",Number),U=y(R,"spread",Number),O=y(R,"startVelocity",Number),se=y(R,"decay",Number),j=y(R,"gravity",Number),be=y(R,"drift",Number),Be=y(R,"colors",Q),ae=y(R,"ticks",Number),he=y(R,"shapes"),xe=y(R,"scalar"),Pe=!!y(R,"flat"),ot=D(R),$e=ce,ht=[],wt=F.width*ot.x,Et=F.height*ot.y;$e--;)ht.push(ge({x:wt,y:Et,angle:k,spread:U,startVelocity:O,color:Be[$e%Be.length],shape:he[C(0,he.length)],ticks:ae,decay:se,gravity:j,drift:be,scalar:xe,flat:Pe}));return ee?ee.addFettis(ht):(ee=we(F,ht,le,J,z),ee.promise)}function N(R){var J=re||y(R,"disableForReducedMotion",Boolean),z=y(R,"zIndex",Number);if(J&&G)return u(function(O){O()});W&&ee?F=ee.canvas:W&&!F&&(F=Y(z),document.body.appendChild(F)),ne&&!Ce&&le(F);var ce={width:F.width,height:F.height};pe&&!Ce&&pe.init(F),Ce=!0,pe&&(F.__confetti_initialized=!0);function k(){if(pe){var O={getBoundingClientRect:function(){if(!W)return F.getBoundingClientRect()}};le(O),pe.postMessage({resize:{width:O.width,height:O.height}});return}ce.width=ce.height=null}function U(){ee=null,ne&&(X=!1,e.removeEventListener("resize",k)),W&&F&&(document.body.contains(F)&&document.body.removeChild(F),F=null,Ce=!1)}return ne&&!X&&(X=!0,e.addEventListener("resize",k,!1)),pe?pe.fire(R,ce,U):K(R,ce,U)}return N.reset=function(){pe&&pe.reset(),ee&&ee.reset()},N}var V;function q(){return V||(V=te(null,{useWorker:!0,resize:!0})),V}function x(F,E,W,ne,X,re,Ae){var pe=new Path2D(F),le=new Path2D;le.addPath(pe,new DOMMatrix(E));var Ce=new Path2D;return Ce.addPath(le,new DOMMatrix([Math.cos(Ae)*X,Math.sin(Ae)*X,-Math.sin(Ae)*re,Math.cos(Ae)*re,W,ne])),Ce}function T(F){if(!o)throw new Error("path confetti are not supported in this browser");var E,W;typeof F=="string"?E=F:(E=F.path,W=F.matrix);var ne=new Path2D(E),X=document.createElement("canvas"),re=X.getContext("2d");if(!W){for(var Ae=1e3,pe=Ae,le=Ae,Ce=0,G=0,ee,K,N=0;N<Ae;N+=2)for(var R=0;R<Ae;R+=2)re.isPointInPath(ne,N,R,"nonzero")&&(pe=Math.min(pe,N),le=Math.min(le,R),Ce=Math.max(Ce,N),G=Math.max(G,R));ee=Ce-pe,K=G-le;var J=10,z=Math.min(J/ee,J/K);W=[z,0,0,z,-Math.round(ee/2+pe)*z,-Math.round(K/2+le)*z]}return{type:"path",path:E,matrix:W}}function P(F){var E,W=1,ne="#000000",X='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof F=="string"?E=F:(E=F.text,W="scalar"in F?F.scalar:W,X="fontFamily"in F?F.fontFamily:X,ne="color"in F?F.color:ne);var re=10*W,Ae=""+re+"px "+X,pe=new OffscreenCanvas(re,re),le=pe.getContext("2d");le.font=Ae;var Ce=le.measureText(E),G=Math.ceil(Ce.actualBoundingBoxRight+Ce.actualBoundingBoxLeft),ee=Math.ceil(Ce.actualBoundingBoxAscent+Ce.actualBoundingBoxDescent),K=2,N=Ce.actualBoundingBoxLeft+K,R=Ce.actualBoundingBoxAscent+K;G+=K+K,ee+=K+K,pe=new OffscreenCanvas(G,ee),le=pe.getContext("2d"),le.font=Ae,le.fillStyle=ne,le.fillText(E,N,R);var J=1/W;return{type:"bitmap",bitmap:pe.transferToImageBitmap(),matrix:[J,0,0,J,-G*J/2,-ee*J/2]}}n.exports=function(){return q().apply(this,arguments)},n.exports.reset=function(){q().reset()},n.exports.create=te,n.exports.shapeFromPath=T,n.exports.shapeFromText=P})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),Ov,!1);const rJ=Ov.exports;Ov.exports.create;const rx={default:{items:[{particleCount:80,spread:120,origin:{y:.625,x:.5}},{timeout:400,particleCount:80,spread:120,origin:{y:.625,x:.625}},{timeout:800,particleCount:80,spread:120,origin:{y:.625,x:.375}}]},randomDirection:{items:[{angle:Nv(55,125),spread:Nv(50,70),particleCount:Nv(50,100),origin:{y:.6}}]},pride:{items:[{timeout:20,particleCount:2,spread:32,origin:{x:0},colors:["#ff0000"]},{timeout:20,particleCount:2,spread:32,origin:{x:1},colors:["#ff0000"]}]}};function Nv(t,e){return Math.random()*(e-t)+t}const AJ=s.defineComponent({__name:"canvas-confetti",props:{preset:{type:String,default:"default"},items:{default:()=>[{}]},colors:{type:Array,default:()=>[]},loop:{type:Boolean,default:!1}},setup(t){const e=t,n=s.ref(null),r=s.computed(()=>({...rx[e.preset],items:rx[e.preset].items.map((o,a)=>({...o,...e.items[a],...e.colors.length?{colors:e.colors}:{}}))}));async function A(o){return new Promise(a=>{requestAnimationFrame(()=>n.value?.confetti(JSON.parse(JSON.stringify(o)))),setTimeout(()=>a(),0)})}async function i(){await Promise.all(r.value.items.map(o=>new Promise(a=>setTimeout(()=>{a(A(o))},o.timeout||0)))),e.loop&&i()}return s.onMounted(()=>{typeof window<"u"&&n.value&&(n.value,n.value.confetti=n.value?.confetti||rJ.create(n.value,{resize:!0}),i())}),(o,a)=>(s.openBlock(),s.createElementBlock("canvas",{class:"canvas-confetti",ref_key:"canvas",ref:n},null,512))}});function Ax(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(A){return Object.getOwnPropertyDescriptor(t,A).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ax(Object(n),!0).forEach((function(r){lA(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ax(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function lA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iJ(t,e){if(t==null)return{};var n,r,A=(function(o,a){if(o==null)return{};var l,u,d={},h=Object.keys(o);for(u=0;u<h.length;u++)l=h[u],a.indexOf(l)>=0||(d[l]=o[l]);return d})(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(A[n]=t[n])}return A}function Is(t){return(function(e){if(Array.isArray(e))return Lv(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,n){if(e){if(typeof e=="string")return Lv(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lv(e,n)}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
178
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Lv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ix,oJ,Yf,Qn=(ix=function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],A=0;A<arguments.length;A++){var i=arguments[A];if(i){var o=typeof i;if(o==="string"||o==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(o==="object")if(i.toString===Object.prototype.toString)for(var l in i)e.call(i,l)&&i[l]&&r.push(l);else r.push(i.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},ix(Yf={path:oJ,exports:{},require:function(t,e){return(function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})(e==null&&Yf.path)}},Yf.exports),Yf.exports),DA=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var A=t;return r&&(A+="__"+r),A+(n?Object.keys(n).reduce((function(i,o){var a=n[o];return a&&(i+=" "+(typeof a=="boolean"?A+"--"+o:A+"--"+o+"_"+a)),i}),""):"")}};function Rv(t,e,n){var r,A,i,o,a;function l(){var d=Date.now()-o;d<e&&d>=0?r=setTimeout(l,e-d):(r=null,n||(a=t.apply(i,A),i=A=null))}e==null&&(e=100);var u=function(){i=this,A=arguments,o=Date.now();var d=n&&!r;return r||(r=setTimeout(l,e)),d&&(a=t.apply(i,A),i=A=null),a};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(a=t.apply(i,A),i=A=null,clearTimeout(r),r=null)},u}Rv.debounce=Rv;var Hv=Rv,qe=function(){return qe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var A in e=arguments[n])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t},qe.apply(this,arguments)};function ox(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function sx(t){return/^blob:/.test(t)}function ax(t){return sx(t)||(function(e){return/^data:/.test(e)})(t)}function Da(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Rn(t){return t===void 0}function qf(t){return typeof t=="object"&&t!==null}function Pv(t,e,n){var r={};return qf(t)?(Object.keys(e).forEach((function(A){Rn(t[A])?r[A]=e[A]:qf(e[A])?qf(t[A])?r[A]=Pv(t[A],e[A],n[A]):r[A]=t[A]?e[A]:n[A]:e[A]===!0||e[A]===!1?r[A]=!!t[A]:r[A]=t[A]})),r):t?e:n}function Xf(t){var e=Number(t);return Number.isNaN(e)?t:e}function lx(t){return typeof(t=="number"||(function(e){return typeof e=="object"&&e!==null})(t)&&toString.call(t)=="[object Number]")&&!cx(t)}function cx(t){return t!=t}function ux(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Sc=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},sJ=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},$v=function(t){this.type="move",this.directions=t},aJ=(function(){function t(e,n,r,A,i){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=A,this.element=n,this.anchor=i}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,A=e.position;if(n){var i=n.getBoundingClientRect(),o=i.left,a=i.top;return{left:A.left-o-r.left,top:A.top-a-r.top}}return{left:0,top:0}},t})(),Kv={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=Is(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce((function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}}),{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,r=e.right,A=e.bottom,i=e.top;this.anchor={left:t.clientX-n,top:t.clientY-i,bottom:A-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=Is(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new aJ(t,r,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Kv.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return i.onTouchStart&&i.onTouchStart.apply(i,arguments)}),onMousedown:e[2]||(e[2]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)}),onMouseover:e[3]||(e[3]=function(){return i.onMouseOver&&i.onMouseOver.apply(i,arguments)}),onMouseleave:e[4]||(e[4]=function(){return i.onMouseLeave&&i.onMouseLeave.apply(i,arguments)})},[s.renderSlot(t.$slots,"default")],34)};var zv=DA("vue-handler-wrapper"),dx={name:"HandlerWrapper",components:{DraggableElement:Kv},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=ox(this.horizontalPosition,this.verticalPosition);t=zv((lA(e={},n.classname,!0),lA(e,"disabled",this.disabled),e))}else t=zv({disabled:this.disabled});return{root:t,draggable:zv("draggable")}}},emits:["leave","enter","drag","drag-end"]};dx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("DraggableElement");return s.openBlock(),s.createBlock("div",{class:i.classes.root},[s.createVNode(o,{class:i.classes.draggable,onDrag:e[1]||(e[1]=function(a){return t.$emit("drag",a)}),onDragEnd:e[2]||(e[2]=function(a){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(a){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(a){return t.$emit("enter")})},{default:s.withCtx((function(){return[s.renderSlot(t.$slots,"default")]})),_:3},8,["class"])],2)};var lJ=DA("vue-line-wrapper"),fx={name:"LineWrapper",components:{DraggableElement:Kv},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return lJ((lA(t={},this.position,!0),lA(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};fx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("DraggableElement");return s.openBlock(),s.createBlock(o,{class:i.classname,onDrag:e[1]||(e[1]=function(a){return t.$emit("drag",a)}),onDragEnd:e[2]||(e[2]=function(a){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(a){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(a){return t.$emit("enter")})},{default:s.withCtx((function(){return[s.renderSlot(t.$slots,"default")]})),_:3},8,["class"])};var di=["left","right","top","bottom"],cJ=["left","right"],uJ=["top","bottom"],dJ=["left","top"],fJ=["fill-area","fit-area","stencil","none"],hx={left:0,top:0,width:0,height:0};function px(t,e,n){return!(n=n||["width","height","left","top"]).some((function(r){return t[r]!==e[r]}))}function fi(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function Oa(t,e){return{left:t.left-e.left,top:t.top-e.top}}function Yn(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function xc(t,e){var n={left:0,top:0,right:0,bottom:0};return di.forEach((function(r){var A=e[r],i=fi(t)[r];n[r]=A!==void 0&&i!==void 0?r==="left"||r==="top"?Math.max(0,A-i):Math.max(0,i-A):0})),n}function hi(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function Jf(t){return{left:-t.left,top:-t.top}}function xr(t,e){return qe(qe({},t),{left:t.left+e.left,top:t.top+e.top})}function cA(t,e,n,r){if(e!==1){if(n){var A=Yn(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-A.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-A.top)*(1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function Ft(t){return t.width/t.height}function Na(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function La(t,e){var n={left:0,top:0},r=xc(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function Wv(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function mx(t,e){var n=Ft(t),r=Ft(e);return e.width<1/0&&e.height<1/0?n>r?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function gx(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function Ro(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function jf(t,e){var n=xc(qn(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,Na(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,Na(t,e)):1}function qn(t,e,n){n===void 0&&(n=!1);var r=La(t,e);return xr(t,n?Jf(r):r)}function Gv(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function hJ(t,e){return qe(qe({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function vx(t,e,n){n===void 0&&(n=!0);var r={};return di.forEach((function(A){var i=t[A],o=e[A];i!==void 0&&o!==void 0?r[A]=A==="left"||A==="top"?n?Math.max(i,o):Math.min(i,o):n?Math.min(i,o):Math.max(i,o):o!==void 0?r[A]=o:i!==void 0&&(r[A]=i)})),r}function Zf(t,e){return vx(t,e,!0)}function wx(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,A=t.sizeRestrictions;return!!((e.correctRatio||Ft(e)>=n.minimum&&Ft(e)<=n.maximum)&&e.height<=A.maxHeight&&e.width<=A.maxWidth&&e.width&&e.height&&(r||e.height>=A.minHeight&&e.width>=A.minWidth))}function Bx(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function Pi(t){var e=t.width,n=t.height,r=t.sizeRestrictions,A={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},i={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function o(u,d){return d===void 0&&(d=!1),u.reduce((function(h,p){return wx({size:p,aspectRatio:A,sizeRestrictions:r,ignoreMinimum:d})&&(!h||Bx(p,{width:e,height:n})<Bx(h,{width:e,height:n}))?p:h}),null)}var a=[];A&&[A.minimum,A.maximum].forEach((function(u){u&&a.push({width:i.width,height:i.width/u,correctRatio:!0},{width:i.height*u,height:i.height,correctRatio:!0})})),wx({size:i,aspectRatio:A,sizeRestrictions:r})&&a.push(i);var l=o(a)||o(a,!0);return l&&{width:l.width,height:l.height}}function Yv(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,A=r===void 0?{}:r,i=xr(n,e.directions);return xr(i,La(i,A))}function pJ(t){var e=t.coordinates,n=t.transform,r=t.imageSize,A=t.sizeRestrictions,i=t.positionRestrictions,o=t.aspectRatio,a=t.visibleArea,l=function(d,h){return Yv({coordinates:d,positionRestrictions:i,event:new $v({left:h.left-d.left,top:h.top-d.top})})},u=qe({},e);return(Array.isArray(n)?n:[n]).forEach((function(d){var h={};Rn((h=typeof d=="function"?d({coordinates:u,imageSize:r,visibleArea:a}):d).width)&&Rn(h.height)||(u=(function(p,m){var v=qe(qe(qe({},p),Pi({width:m.width,height:m.height,sizeRestrictions:A,aspectRatio:o})),{left:0,top:0});return l(v,{left:p.left,top:p.top})})(u,qe(qe({},u),h))),Rn(h.left)&&Rn(h.top)||(u=l(u,qe(qe({},u),h)))})),u}function mJ(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,A=t.visibleArea;t.aspectRatio;var i=t.stencilSize,o=t.sizeRestrictions,a=t.positionRestrictions;t.stencilReference;var l,u,d,h=qe({},r),p=qe({},A),m=qe({},i);l=Ft(m),u=Ft(h),d===void 0&&(d=.001),(l===0||u===0?Math.abs(u-l)<d:Math.abs(u/l)<1+d&&Math.abs(u/l)>1-d)||(h=qe(qe({},h),Pi({sizeRestrictions:o,width:h.width,height:h.height,aspectRatio:{minimum:Ft(m),maximum:Ft(m)}})));var v=jf(p=cA(p,h.width*n.width/(p.width*m.width)),e({visibleArea:p,type:"resize"}));return v!==1&&(p=cA(p,v),h=cA(h,v)),p=qn(p=xr(p,Oa(Yn(h),Yn(p))),e({visibleArea:p,type:"move"})),{coordinates:h=qn(h,Zf(fi(p),a)),visibleArea:p}}function gJ(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,A=t.coordinates,i=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var o=t.positionRestrictions;t.stencilReference;var a=qe({},A),l=qe({},i);if(A&&i&&e.type!=="manipulateImage"){var u={width:0,height:0};l.width,r.width,Ft(r)>Ft(a)?(u.height=.8*r.height,u.width=u.height*Ft(a)):(u.width=.8*r.width,u.height=u.width*Ft(a));var d=jf(l=cA(l,a.width*r.width/(l.width*u.width)),n({visibleArea:l,type:"resize"}));l=cA(l,d),d!==1&&(u.height/=d,u.width/=d),l=qn(l=xr(l,Oa(Yn(a),Yn(l))),n({visibleArea:l,type:"move"})),a=qn(a,Zf(fi(l),o))}return{coordinates:a,visibleArea:l}}function vJ(t){var e=t.event,n=t.coordinates,r=t.visibleArea,A=t.getAreaRestrictions,i=qe({},r),o=qe({},n);if(e.type==="setCoordinates"){var a=Math.max(0,o.width-i.width),l=Math.max(0,o.height-i.height);a>l?i=cA(i,Math.min(o.width/i.width,Na(i,A({visibleArea:i,type:"resize"})))):l>a&&(i=cA(i,Math.min(o.height/i.height,Na(i,A({visibleArea:i,type:"resize"}))))),i=qn(i=xr(i,Jf(La(o,fi(i)))),A({visibleArea:i,type:"move"}))}return{visibleArea:i,coordinates:o}}function wJ(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,A=n||e;return{left:(n?n.left:0)+A.width/2-r.width/2,top:(n?n.top:0)+A.height/2-r.height/2}}function BJ(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,A=t.sizeRestrictions,i=n||e,o=Math.min(r.maximum||1/0,Math.max(r.minimum||0,Ft(i))),a=i.width<i.height?{width:.8*i.width,height:.8*i.width/o}:{height:.8*i.height,width:.8*i.height*o};return Pi(qe(qe({},a),{aspectRatio:r,sizeRestrictions:A}))}function yJ(t){var e,n,r=t.imageSize,A=t.visibleArea,i=t.boundaries,o=t.aspectRatio,a=t.sizeRestrictions,l=t.stencilSize,u=A||r;return Ft(u)>Ft(i)?n=(e=l.height*u.height/i.height)*Ft(l):e=(n=l.width*u.width/i.width)/Ft(l),Pi({width:n,height:e,aspectRatio:o,sizeRestrictions:a})}function CJ(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,A=Ft(t.boundaries);if(n){var i={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},o=mx({width:Ft(i)>A?i.width:i.height*A,height:Ft(i)>A?i.width/A:i.height},Gv(e())),a={left:n.left+n.width/2-o.width/2,top:n.top+n.height/2-o.height/2,width:o.width,height:o.height},l=xc(n,fi(qe({left:0,top:0},r))),u={};return!l.left&&!l.right&&a.width<=r.width&&(u.left=0,u.right=r.width),!l.top&&!l.bottom&&a.height<=r.height&&(u.top=0,u.bottom=r.height),qn(a,u)}var d=Ft(r);return o={height:d>A?r.height:r.width/A,width:d>A?r.height*A:r.width},{left:r.width/2-o.width/2,top:r.height/2-o.height/2,width:o.width,height:o.height}}function Vf(t,e){return vx(t,fi(e))}function bJ(t){var e=t.event,n=t.coordinates,r=t.visibleArea,A=t.sizeRestrictions,i=t.getAreaRestrictions,o=t.positionRestrictions,a=t.adjustStencil,l=e.scale,u=e.move,d=qe({},r),h=qe({},n),p=1,m=1,v=l.factor&&Math.abs(l.factor-1)>.001;d=xr(d,{left:u.left||0,top:u.top||0});var B={stencil:{minimum:Math.max(A.minWidth?A.minWidth/h.width:0,A.minHeight?A.minHeight/h.height:0),maximum:Math.min(A.maxWidth?A.maxWidth/h.width:1/0,A.maxHeight?A.maxHeight/h.height:1/0,Na(h,o))},area:{maximum:Na(d,i({visibleArea:d,type:"resize"}))}};l.factor&&v&&(l.factor<1?(m=Math.max(l.factor,B.stencil.minimum))>1&&(m=1):l.factor>1&&(m=Math.min(l.factor,Math.min(B.area.maximum,B.stencil.maximum)))<1&&(m=1)),m&&(d=cA(d,m,l.center));var y=n.left-r.left,w=r.width+r.left-(n.width+n.left),C=n.top-r.top,S=r.height+r.top-(n.height+n.top);return d=qn(d=xr(d,La(d,{left:o.left!==void 0?o.left-y*m:void 0,top:o.top!==void 0?o.top-C*m:void 0,bottom:o.bottom!==void 0?o.bottom+S*m:void 0,right:o.right!==void 0?o.right+w*m:void 0})),i({visibleArea:d,type:"move"})),h.width=h.width*m,h.height=h.height*m,h.left=d.left+y*m,h.top=d.top+C*m,h=qn(h,Zf(fi(d),o)),l.factor&&v&&a&&(l.factor>1?p=Math.min(B.area.maximum,l.factor)/m:l.factor<1&&(p=Math.max(h.height/d.height,h.width/d.width,l.factor/m)),p!==1&&(d=xr(d=qn(d=cA(d,p,l.factor>1?l.center:Yn(h)),i({visibleArea:d,type:"move"})),Jf(La(h,fi(d)))))),{coordinates:h,visibleArea:d}}function EJ(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,A=t.visibleArea,i=t.sizeRestrictions,o=t.positionRestrictions,a=t.imageSize,l=t.previousImageSize,u=t.angle,d=qe({},r),h=qe({},A),p=Ro(Yn(qe({left:0,top:0},l)),u);return(d=qe(qe({},Pi({sizeRestrictions:i,aspectRatio:e,width:d.width,height:d.height})),Ro(Yn(d),u))).left-=p.left-a.width/2+d.width/2,d.top-=p.top-a.height/2+d.height/2,h=cA(h,jf(h,n({visibleArea:h,type:"resize"}))),{coordinates:d=qn(d,o),visibleArea:h=qn(h=xr(h,Oa(Yn(d),Yn(r))),n({visibleArea:h,type:"move"}))}}function kJ(t){var e=t.flip,n=t.previousFlip,r=t.rotate,A=t.getAreaRestrictions,i=t.coordinates,o=t.visibleArea,a=t.imageSize,l=qe({},i),u=qe({},o),d=n.horizontal!==e.horizontal,h=n.vertical!==e.vertical;if(d||h){var p=Ro({left:a.width/2,top:a.height/2},-r),m=Ro(Yn(l),-r),v=Ro({left:d?p.left-(m.left-p.left):m.left,top:h?p.top-(m.top-p.top):m.top},r);l=xr(l,Oa(v,Yn(l))),m=Ro(Yn(u),-r),u=qn(u=xr(u,Oa(v=Ro({left:d?p.left-(m.left-p.left):m.left,top:h?p.top-(m.top-p.top):m.top},r),Yn(u))),A({visibleArea:u,type:"move"}))}return{coordinates:l,visibleArea:u}}function yx(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,A=r===void 0?{}:r,i=t.sizeRestrictions,o=t.preserveRatio,a=t.compensate,l=qe({},e),u=hi(n,l).width,d=hi(n,l).height;u<0&&(l.left<0&&l.right<0?(l.left=-(n.width-i.minWidth)/(l.left/l.right),l.right=-(n.width-i.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-i.minWidth):l.right<0&&(l.right=-(n.width-i.minWidth))),d<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-i.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-i.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-i.minHeight):l.bottom<0&&(l.bottom=-(n.height-i.minHeight)));var h=xc(hi(n,l),A);a&&(h.left&&h.left>0&&h.right===0?(l.right+=h.left,l.left-=h.left):h.right&&h.right>0&&h.left===0&&(l.left+=h.right,l.right-=h.right),h.top&&h.top>0&&h.bottom===0?(l.bottom+=h.top,l.top-=h.top):h.bottom&&h.bottom>0&&h.top===0&&(l.top+=h.bottom,l.bottom-=h.bottom),h=xc(hi(n,l),A));var p={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(di.forEach((function(B){var y=h[B];y&&l[B]&&(p[B]=Math.max(0,1-y/l[B]))})),o){var m=Math.min.apply(null,di.map((function(B){return p[B]})));m!==1/0&&di.forEach((function(B){l[B]*=m}))}else di.forEach((function(B){p[B]!==1/0&&(l[B]*=p[B])}));if(u=hi(n,l).width,d=hi(n,l).height,l.right+l.left&&(u>i.maxWidth?p.width=(i.maxWidth-n.width)/(l.right+l.left):u<i.minWidth&&(p.width=(i.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(d>i.maxHeight?p.height=(i.maxHeight-n.height)/(l.bottom+l.top):d<i.minHeight&&(p.height=(i.minHeight-n.height)/(l.bottom+l.top))),o){var v=Math.min(p.width,p.height);v!==1/0&&di.forEach((function(B){l[B]*=v}))}else p.width!==1/0&&cJ.forEach((function(B){l[B]*=p.width})),p.height!==1/0&&uJ.forEach((function(B){l[B]*=p.height}));return l}function eh(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var SJ=DA("vue-simple-handler"),xJ=DA("vue-simple-handler-wrapper"),qv={name:"SimpleHandler",components:{HandlerWrapper:dx},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(lA(t={},this.horizontalPosition,!!this.horizontalPosition),lA(t,this.verticalPosition,!!this.verticalPosition),lA(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),lA(t,"hover",this.hover),t);return{default:Qn(SJ(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:Qn(xJ(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};qv.render=function(t,e,n,r,A,i){var o=s.resolveComponent("HandlerWrapper");return s.openBlock(),s.createBlock(o,{class:i.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:i.onDrag,onDragEnd:i.onDragEnd,onEnter:i.onEnter,onLeave:i.onLeave},{default:s.withCtx((function(){return[s.createVNode("div",{class:i.classes.default},null,2)]})),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var FJ=DA("vue-simple-line"),QJ=DA("vue-simple-line-wrapper"),Xv={name:"SimpleLine",components:{LineWrapper:fx},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Qn(FJ(lA({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Qn(QJ(lA({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Xv.render=function(t,e,n,r,A,i){var o=s.resolveComponent("LineWrapper");return s.openBlock(),s.createBlock(o,{class:i.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:i.onDrag,onDragEnd:i.onDragEnd,onEnter:i.onEnter,onLeave:i.onLeave},{default:s.withCtx((function(){return[s.createVNode("div",{class:i.classes.root},null,2)]})),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Jv=DA("vue-bounding-box"),TJ=["east","west",null],MJ=["south","north",null],Cx={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return qv}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return Xv}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return TJ.forEach((function(e){MJ.forEach((function(n){if(e!==n){var r=ox(e,n),A=r.name,i=r.classname;t.push({name:A,classname:i,verticalDirection:n,horizontalDirection:e})}}))})),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,r=this.linesWrappersClasses;return{root:Jv(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},lineNodes:function(){var t=this,e=[];return this.points.forEach((function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:Qn(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:Qn(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})})),e},handlerNodes:function(){var t=this,e=[],n=this.width,r=this.height;return this.points.forEach((function(A){if(t.handlers[A.name]){var i={name:A.name,component:t.handlersComponent,class:Qn(t.classes.handlers.default,t.classes.handlers[A.name]),wrapperClass:Qn(t.classes.handlersWrappers.default,t.classes.handlersWrappers[A.name]),hoverClass:t.classes.handlers.hover,verticalDirection:A.verticalDirection,horizontalDirection:A.horizontalDirection,disabled:!t.resizable};if(n&&r){var o=A.horizontalDirection,a=A.verticalDirection,l=o==="east"?n:o==="west"?0:n/2,u=a==="south"?r:a==="north"?0:r/2;i.wrapperClass=Jv("handler"),i.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(i.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else i.wrapperClass=Jv("handler",lA({},A.classname,!0));e.push(i)}})),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var r,A=t.shift(),i=A.left,o=A.top,a={left:0,right:0,top:0,bottom:0};e==="west"?a.left-=i:e==="east"&&(a.right+=i),n==="north"?a.top-=o:n==="south"&&(a.bottom+=o),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new sJ(a,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};Cx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"box",class:i.classes.root,style:i.style},[s.renderSlot(t.$slots,"default"),s.createVNode("div",null,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.lineNodes,(function(o){return s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.component),{key:o.name,"default-class":o.class,"hover-class":o.hoverClass,"wrapper-class":o.wrapperClass,position:o.name,disabled:o.disabled,onDrag:function(a){return i.onHandlerDrag(a,o.horizontalDirection,o.verticalDirection)},onDragEnd:e[1]||(e[1]=function(a){return i.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])})),128))]),(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.handlerNodes,(function(o){return s.openBlock(),s.createBlock("div",{key:o.name,style:o.wrapperStyle,class:o.wrapperClass},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.component),{"default-class":o.class,"hover-class":o.hoverClass,"wrapper-class":o.wrapperClass,"horizontal-position":o.horizontalDirection,"vertical-position":o.verticalDirection,disabled:o.disabled,onDrag:function(a){return i.onHandlerDrag(a,o.horizontalDirection,o.verticalDirection)},onDragEnd:e[2]||(e[2]=function(a){return i.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)})),128))],6)};var IJ=DA("vue-draggable-area"),bx={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:IJ()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=Is(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):ux({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=Is(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),A=r.left,i=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new $v({left:n[0].clientX-(A+this.anchor.x),top:n[0].clientY-(i+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};bx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return i.onTouchStart&&i.onTouchStart.apply(i,arguments)}),onMousedown:e[2]||(e[2]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)})},[s.renderSlot(t.$slots,"default")],544)};function jv(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t?.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t?.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function UJ(t){return new Promise((function(e,n){try{if(t)if(/^data:/i.test(t))e((function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(l),d=u.length,h=new ArrayBuffer(d),p=new Uint8Array(h),m=0;m<d;m++)p[m]=u.charCodeAt(m);return h})(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(l){e(l.target.result)},i=t,o=function(l){r.readAsArrayBuffer(l)},(a=new XMLHttpRequest).open("GET",i,!0),a.responseType="blob",a.onload=function(){this.status!=200&&this.status!==0||o(this.response)},a.send()}else{var A=new XMLHttpRequest;A.onreadystatechange=function(){A.readyState===4&&(A.status===200||A.status===0?e(A.response):n("Warning: could not load an image to parse its orientation"),A=null)},A.onprogress=function(){A.getResponseHeader("content-type")!=="image/jpeg"&&A.abort()},A.withCredentials=!1,A.open("GET",t,!0),A.responseType="arraybuffer",A.send(null)}else n("Error: the image is empty")}catch(l){n(l)}var i,o,a}))}function Ex(t){var e=t.rotate,n=t.flip,r=t.scaleX,A=t.scaleY,i="";return i+=" rotate("+e+"deg) ",i+=" scaleX("+r*(n.horizontal?-1:1)+") ",i+=" scaleY("+A*(n.vertical?-1:1)+") "}function _J(t){try{var e,n=new DataView(t),r=void 0,A=void 0,i=void 0,o=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var a=n.byteLength,l=2;l+1<a;){if(n.getUint8(l)===255&&n.getUint8(l+1)===225){i=l;break}l++}if(i&&(r=i+10,(function(m,v,B){var y,w="";for(y=v,B+=v;y<B;y++)w+=String.fromCharCode(m.getUint8(y));return w})(n,i+4,4)==="Exif")){var u=n.getUint16(r);if(((A=u===18761)||u===19789)&&n.getUint16(r+2,A)===42){var d=n.getUint32(r+4,A);d>=8&&(o=r+d)}}if(o){for(var h=n.getUint16(o,A),p=0;p<h;p++)if(l=o+12*p+2,n.getUint16(l,A)===274){l+=8,e=n.getUint16(l,A),n.setUint16(l,1,A);break}}return e}catch{return null}}function kx(t,e){var n=e.getBoundingClientRect(),r=n.left,A=n.top,i={left:0,top:0},o=0;return t.forEach((function(a){i.left+=(a.clientX-r)/t.length,i.top+=(a.clientY-A)/t.length})),t.forEach((function(a){o+=ux({x:i.left,y:i.top},{x:a.clientX-r,y:a.clientY-A})})),{centerMass:i,spread:o,count:t.length}}var Sx={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Hv(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new Sc({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=kx(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new Sc({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),r=n.left,A=n.top,i=n.bottom,o=n.right;this.touches=Is(t.touches).filter((function(a){return a.clientX>r&&a.clientX<o&&a.clientY>A&&a.clientY<i})),this.oldGeometricProperties=kx(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=Is(t.touches).filter((function(r){return!r.identifier||e.touches.find((function(A){return A.identifier===r.identifier}))}));this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top,A=1+this.wheelResize.ratio*(o=t.deltaY||t.detail||t.wheelDelta,(a=+o)==0||cx(a)?a:a>0?1:-1),i={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new Sc({},{factor:A,center:i})),this.touches.length||this.debouncedProcessEnd()}var o,a}},emits:["resize","move","transform-end"]};Sx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return i.onTouchStart&&i.onTouchStart.apply(i,arguments)}),onMousedown:e[2]||(e[2]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)}),onWheel:e[3]||(e[3]=function(){return i.onWheel&&i.onWheel.apply(i,arguments)})},[s.renderSlot(t.$slots,"default")],544)};var Zv={components:{TransformableImage:Sx},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};Zv.render=function(t,e,n,r,A,i){var o=s.resolveComponent("transformable-image");return s.openBlock(),s.createBlock(o,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(a){return t.$emit("move",a)}),onResize:e[2]||(e[2]=function(a){return t.$emit("resize",a)})},{default:s.withCtx((function(){return[s.renderSlot(t.$slots,"default")]})),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var th=DA("vue-preview"),xx={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:th({fill:this.fill}),wrapper:th("wrapper"),imageWrapper:th("image-wrapper"),image:Qn(th("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=xt(xt({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,A=gx({width:n,height:r},e.rotate),i={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},o={rotate:{left:(n-A.width)*e.scaleX/2,top:(r-A.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return i.transform=`translate(
|
|
179
|
+
`.concat(-this.coordinates.left/t-o.rotate.left-o.scale.left,"px,").concat(-this.coordinates.top/t-o.rotate.top-o.scale.top,"px) ")+Ex(e),this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",(function(){t.refreshImage()})),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};xx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"root",class:i.classes.root,style:i.style},[s.createVNode("div",{ref:"wrapper",class:i.classes.wrapper,style:i.wrapperStyle},[s.withDirectives(s.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:i.classes.image,style:i.imageStyle},null,14,["src"]),[[s.vShow,n.image&&n.image.src]])],6)],6)};var Fx={components:{Preview:xx},inheritAttrs:!1};Fx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("preview");return s.openBlock(),s.createBlock(o,s.mergeProps(t.$attrs,{fill:!0}),null,16)};var Vv=DA("vue-rectangle-stencil"),Qx={name:"RectangleStencil",components:{StencilPreview:Fx,BoundingBox:Cx,DraggableArea:bx},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return qv}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Xv}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Qn(Vv({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Qn(Vv("preview"),this.previewClass),boundingBox:Qn(Vv("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,A=t.top,i={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(A,"px)")};return this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Qx.render=function(t,e,n,r,A,i){var o=s.resolveComponent("stencil-preview"),a=s.resolveComponent("draggable-area"),l=s.resolveComponent("bounding-box");return s.openBlock(),s.createBlock("div",{class:i.classes.stencil,style:i.style},[s.createVNode(l,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:i.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:i.onResize,onResizeEnd:i.onResizeEnd},{default:s.withCtx((function(){return[s.createVNode(a,{movable:n.movable,onMove:i.onMove,onMoveEnd:i.onMoveEnd},{default:s.withCtx((function(){return[s.createVNode(o,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:i.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]})),_:1},8,["movable","onMove","onMoveEnd"])]})),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var DJ=["transitions"],$i=DA("vue-advanced-cropper"),Tx={name:"Cropper",components:{BackgroundWrapper:Zv},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Qx}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Zv}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return fJ.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,r=t.aspectRatio,A=t.positionRestrictions,i=t.sizeRestrictions,o=qe(qe({},n),{right:n.left+n.width,bottom:n.top+n.height}),a=e.params||{},l=qe({},e.directions),u=a.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};i.widthFrozen&&(l.left=0,l.right=0),i.heightFrozen&&(l.top=0,l.bottom=0),di.forEach((function(Q){u[Q]||(l[Q]=0)}));var d=hi(o,l=yx({coordinates:o,directions:l,sizeRestrictions:i,positionRestrictions:A})).width,h=hi(o,l).height,p=a.preserveRatio?Ft(o):Wv(d/h,r);if(p){var m=a.respectDirection;if(m||(m=o.width>=o.height||p===1?"width":"height"),m==="width"){var v=d/p-o.height;if(u.top&&u.bottom){var B=l.top,y=l.bottom;l.bottom=eh(v,y,B),l.top=eh(v,B,y)}else u.bottom?l.bottom=v:u.top?l.top=v:u.right?l.right=0:u.left&&(l.left=0)}else if(m==="height"){var w=o.width-h*p;if(u.left&&u.right){var C=l.left,S=l.right;l.left=-eh(w,C,S),l.right=-eh(w,S,C)}else u.left?l.left=-w:u.right?l.right=-w:u.top?l.top=0:u.bottom&&(l.bottom=0)}l=yx({directions:l,coordinates:o,sizeRestrictions:i,positionRestrictions:A,preserveRatio:!0,compensate:a.compensate})}return d=hi(o,l).width,h=hi(o,l).height,(p=a.preserveRatio?Ft(o):Wv(d/h,r))&&Math.abs(p-d/h)>.001&&di.forEach((function(Q){u[Q]||(l[Q]=0)})),Yv({event:new $v({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:A})}},moveAlgorithm:{type:Function,default:Yv},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=Ft(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,A=t.sizeRestrictions,i=t.positionRestrictions,o=qe(qe({},n),Pi({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,A.minHeight),minWidth:Math.min(e.width,A.minWidth)}}));return o=qn(o=xr(o,Oa(Yn(n),Yn(o))),Zf(fi(e),i))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,A=t.coordinates,i=qe({},e);i.height=i.width/Ft(n),i.top+=(e.height-i.height)/2,(A.height-i.height>0||A.width-i.width>0)&&(i=cA(i,Math.max(A.height/i.height,A.width/i.width)));var o=Jf(La(A,fi(i=cA(i,jf(i,r({visibleArea:i,type:"resize"}))))));return i.width<A.width&&(o.left=0),i.height<A.height&&(o.top=0),i=qn(i=xr(i,o),r({visibleArea:i,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,A=t.imageRestriction,i=t.type,o={};return A==="fill-area"?o={left:0,top:0,right:r.width,bottom:r.height}:A==="fit-area"&&(Ft(n)>Ft(r)?(o={top:0,bottom:r.height},e&&i==="move"&&(e.width>r.width?(o.left=-(e.width-r.width)/2,o.right=r.width-o.left):(o.left=0,o.right=r.width))):(o={left:0,right:r.width},e&&i==="move"&&(e.height>r.height?(o.top=-(e.height-r.height)/2,o.bottom=r.height-o.top):(o.top=0,o.bottom=r.height)))),o}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:xt({},hx)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=(function(e){return e*Math.PI/180})(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=Pv(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Pv(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:Rn(this.minWidth)?0:Xf(this.minWidth),minHeight:Rn(this.minHeight)?0:Xf(this.minHeight),maxWidth:Rn(this.maxWidth)?1/0:Xf(this.maxWidth),maxHeight:Rn(this.maxHeight)?1/0:Xf(this.maxHeight)});if(t=(function(r){var A=r.areaRestrictions,i=r.sizeRestrictions,o=r.boundaries,a=r.positionRestrictions,l=qe(qe({},i),{minWidth:i.minWidth!==void 0?i.minWidth:0,minHeight:i.minHeight!==void 0?i.minHeight:0,maxWidth:i.maxWidth!==void 0?i.maxWidth:1/0,maxHeight:i.maxHeight!==void 0?i.maxHeight:1/0});a.left!==void 0&&a.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,a.right-a.left)),a.bottom!==void 0&&a.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,a.bottom-a.top));var u=Gv(A),d=mx(o,u);return u.width<1/0&&(!l.maxWidth||l.maxWidth>d.width)&&(l.maxWidth=Math.min(l.maxWidth,d.width)),u.height<1/0&&(!l.maxHeight||l.maxHeight>d.height)&&(l.maxHeight=Math.min(l.maxHeight,d.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l})({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Gv(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:$i(),image:Qn($i("image"),this.imageClass),stencil:$i("stencil"),boundaries:Qn($i("boundaries"),this.boundariesClass),stretcher:Qn($i("stretcher")),background:Qn($i("background"),this.backgroundClass),foreground:Qn($i("foreground"),this.foregroundClass),imageWrapper:Qn($i("image-wrapper")),cropperWrapper:Qn($i("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,A=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(A-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},r=xt(xt({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),A={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+Ex(r)};return this.transitionsOptions.enabled&&(A.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),A}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick((function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()}))},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find((function(n){return t[n]!==e[n]}))&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Hv(this.update,this.debounce),this.debouncedDisableTransitions=Hv(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(xt({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:xt({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?xt({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?xt({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,A=r===void 0||r;this.onManipulateImage(new Sc({},{factor:1/t,center:e}),{normalize:!1,transitions:A})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,A=r===void 0||r;this.onManipulateImage(new Sc({left:t||0,top:e||0}),{normalize:!1,transitions:A})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,A=r===void 0||r,i=n.transitions,o=i===void 0||i;this.$nextTick((function(){e.imageLoaded?(e.transitionsActive||(o&&e.enableTransitions(),e.coordinates=e.applyTransform(t),A&&e.runAutoZoom("setCoordinates"),o&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t}))},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then((function(){t.onChange()})):this.resetVisibleArea().then((function(){t.onChange()}))},reset:function(){var t=this;return this.resetVisibleArea().then((function(){t.onChange(!1)}))},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick((function(){t(),e.awaiting=!1})))},prepareResult:function(t){return this.roundResult?(function(e){var n=e.coordinates,r=e.sizeRestrictions,A=e.positionRestrictions,i={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return i.width>r.maxWidth?i.width=Math.floor(n.width):i.width<r.minWidth&&(i.width=Math.ceil(n.width)),i.height>r.maxHeight?i.height=Math.floor(n.height):i.height<r.minHeight&&(i.height=Math.ceil(n.height)),qn(i,A)})(xt(xt({},this.getPublicProperties()),{},{positionRestrictions:Vf(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var A=this.autoZoomAlgorithm;A||(A=this.stencilSize?mJ:this.autoZoom?gJ:vJ);var i=A({event:{type:t,params:r},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return xt(xt({},i),{},{changed:!px(i.visibleArea,e)||!px(i.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,A=iJ(e,DJ),i=this.processAutoZoom(t,this.visibleArea,this.coordinates,A),o=i.visibleArea,a=i.coordinates,l=i.changed;r&&l&&this.enableTransitions(),this.visibleArea=o,this.coordinates=a,r&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return(function(e){var n=e.event,r=e.visibleArea,A=e.coefficient;if(n.type==="manipulateImage")return qe(qe({},n),{move:{left:n.move&&n.move.left?A*n.move.left:0,top:n.move&&n.move.top?A*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*A+r.left,top:n.scale.center.top*A+r.top}:null}});if(n.type==="resize"){var i=qe(qe({},n),{directions:qe({},n.directions)});return di.forEach((function(a){i.directions[a]*=A})),i}if(n.type==="move"){var o=qe(qe({},n),{directions:qe({},n.directions)});return dJ.forEach((function(a){o.directions[a]*=A})),o}return n})(xt(xt({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?(function(a,l,u){var d=u.rotate,h=u.flip,p={width:l.naturalWidth,height:l.naturalHeight},m=gx(p,d),v=a.getContext("2d");a.height=m.height,a.width=m.width,v.save();var B=Ro(Yn(qe({left:0,top:0},p)),d);return v.translate(-(B.left-m.width/2),-(B.top-m.height/2)),v.rotate(d*Math.PI/180),v.translate(h.horizontal?p.width:0,h.vertical?p.height:0),v.scale(h.horizontal?-1:1,h.vertical?-1:1),v.drawImage(l,0,0,p.width,p.height),v.restore(),a})(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=xt({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),A=function(a){return a.find((function(l){return u=l,!Number.isNaN(parseFloat(u))&&isFinite(u);var u}))},i=Pi({sizeRestrictions:{minWidth:A([r.width,r.minWidth])||0,minHeight:A([r.height,r.minHeight])||0,maxWidth:A([r.width,r.maxWidth])||1/0,maxHeight:A([r.height,r.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(r.maxArea&&i.width*i.height>r.maxArea){var o=Math.sqrt(r.maxArea/(i.width*i.height));i={width:Math.round(o*i.width),height:Math.round(o*i.height)}}return(function(a,l,u,d,h){a.width=d?d.width:u.width,a.height=d?d.height:u.height;var p=a.getContext("2d");p.clearRect(0,0,a.width,a.height),h&&(h.imageSmoothingEnabled&&(p.imageSmoothingEnabled=h.imageSmoothingEnabled),h.imageSmoothingQuality&&(p.imageSmoothingQuality=h.imageSmoothingQuality),h.fillColor&&(p.fillStyle=h.fillColor,p.fillRect(0,0,a.width,a.height),p.save()));var m=u.left<0?-u.left:0,v=u.top<0?-u.top:0;p.drawImage(l,u.left+m,u.top+v,u.width,u.height,m*(a.width/u.width),v*(a.height/u.height),a.width,a.height)})(t,n,this.coordinates,i,r),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?hJ(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?Vf(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return pJ({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?yJ:BJ);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=Da(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,A=this.defaultPosition||wJ,i=[r,function(o){var a=o.coordinates;return xt({},Da(A)?A({coordinates:a,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&i.push.apply(i,Is(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(i,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout((function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}}),this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then((function(){var r={cropper:n,imageSize:t.imageSize};if(Da(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=(function(A){var i=A.cropper,o=A.imageSize,a=i.clientHeight,l=i.clientWidth,u=a,d=o.width*a/o.height;return d>l&&(d=l,u=o.height*l/o.width),{width:d,height:u}})(r):t.boundaries=(function(A){var i=A.cropper;return{width:i.clientWidth,height:i.clientHeight}})(r),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")}))},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=xt(xt({},this.defaultImageTransforms),{},{flip:xt({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then((function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,A,i,o,a=t.defaultVisibleArea||CJ;t.visibleArea=Da(a)?a({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,r=e.boundaries,A=e.getAreaRestrictions,i=qe({},n),o=Ft(r),i.width/i.height!==o&&(i.height=i.width/o),qn(i,A({visibleArea:i,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")})).catch((function(){t.visibleArea=null}))},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then((function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")})).catch((function(){t.visibleArea=null}))},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if((function(A){if(ax(A))return!1;var i=window.location,o=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(A)||[],a={protocol:o[1]||"",host:o[2]||"",port:o[3]||""},l=function(u){return u.port||((u.protocol||i.protocol)==="http"?80:433)};return!(!a.protocol&&!a.host&&!a.port||a.protocol&&a.protocol==i.protocol&&a.host&&a.host==i.host&&a.host&&l(a)==l(i))})(this.src)){var n=Rn(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise((function(A){UJ(t).then((function(i){var o=_J(i);A(i?{source:t,arrayBuffer:i,orientation:o}:{source:t,arrayBuffer:null,orientation:null})})).catch((function(i){console.warn(i),A({source:t,arrayBuffer:null,orientation:null})}))})));setTimeout((function(){r.then(e.onParseImage)}),this.transitionTime)}else setTimeout((function(){e.onParseImage({source:e.src})}),this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then((function(){t.$emit("ready"),t.onChange(!1)})))},onParseImage:function(t){var e=this,n=t.source,r=t.arrayBuffer,A=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&A&&A>1?sx(n)||!ax(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=(function(i){for(var o=[],a=new Uint8Array(i);a.length>0;){var l=a.subarray(0,8192);o.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),a=a.subarray(8192)}return"data:image/jpeg;base64,"+btoa(o.join(""))})(r):this.imageAttributes.src=n,Da(this.defaultTransforms)?this.appliedImageTransforms=jv(this.defaultTransforms()):qf(this.defaultTransforms)?this.appliedImageTransforms=jv(this.defaultTransforms):this.appliedImageTransforms=(function(i){var o=jv({});if(i)switch(i){case 2:o.flip.horizontal=!0;break;case 3:o.rotate=-180;break;case 4:o.flip.vertical=!0;break;case 5:o.rotate=90,o.flip.vertical=!0;break;case 6:o.rotate=90;break;case 7:o.rotate=90,o.flip.horizontal=!0;break;case 8:o.rotate=-90}return o})(A),this.defaultImageTransforms=xt(xt({},this.appliedImageTransforms),{},{flip:xt({},this.appliedImageTransforms.flip)}),this.$nextTick((function(){var i=e.$refs.image;i&&i.complete&&((function(o){return!!o.naturalWidth})(i)?e.onSuccessLoadImage():e.onFailLoadImage())}))},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender((function(){e.coordinates=e.moveAlgorithm(xt(xt({},e.getPublicProperties()),{},{positionRestrictions:Vf(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()}))},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender((function(){var n=e.sizeRestrictions,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(xt(xt({},e.getPublicProperties()),{},{positionRestrictions:Vf(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,r),minHeight:Math.max(n.minHeight,r)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1}))},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,r=n!==void 0&&n,A=e.normalize,i=A===void 0||A;r&&this.enableTransitions();var o=bJ(xt(xt({},this.getPublicProperties()),{},{event:i?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),a=o.visibleArea,l=o.coordinates;this.visibleArea=a,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),r&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,A=r.aspectRatio,i=r.minAspectRatio,o=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var a=this.$refs.stencil.aspectRatios();e=a.minimum,n=a.maximum}if(Rn(e)&&(e=Rn(A)?i:A),Rn(n)&&(n=Rn(A)?o:A),!t&&(Rn(e)||Rn(n))){var l=this.getStencilSize(),u=l?Ft(l):null;Rn(e)&&(e=lx(u)?u:void 0),Rn(n)&&(n=lx(u)?u:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,r=t.aspectRatio,Wv(Ft(A=Da(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(A=Pi({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:A.width,height:A.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(A.width>e.width||A.height>e.height)&&(A=Pi({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:A.width,height:A.height,aspectRatio:{minimum:Ft(A),maximum:Ft(A)}})),A;var t,e,n,r,A},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return xt({},hx)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,A=r===void 0||r;if(!this.transitionsActive){A&&this.enableTransitions();var i=xt({},this.imageTransforms.flip),o=kJ({flip:{horizontal:t?!i.horizontal:i.horizontal,vertical:e?!i.vertical:i.vertical},previousFlip:i,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=o.visibleArea,l=o.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=a,this.coordinates=l,this.onChange(),A&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var A=xt({},this.imageSize);this.appliedImageTransforms.rotate+=t;var i=EJ({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:A,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),o=i.visibleArea,a=i.coordinates,l=this.processAutoZoom("rotateImage",o,a);o=l.visibleArea,a=l.coordinates,this.visibleArea=o,this.coordinates=a,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},OJ={key:0,ref:"canvas",style:{display:"none"}},NJ={key:1,ref:"sourceCanvas",style:{display:"none"}};Tx.render=function(t,e,n,r,A,i){return s.openBlock(),s.createBlock("div",{ref:"cropper",class:i.classes.cropper},[s.createVNode("div",{ref:"stretcher",class:i.classes.stretcher},null,2),s.createVNode("div",{class:i.classes.boundaries,style:i.boundariesStyle},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.backgroundWrapperComponent),{class:i.classes.cropperWrapper,"wheel-resize":i.settings.resizeImage.wheel,"touch-resize":i.settings.resizeImage.touch,"touch-move":i.settings.moveImage.touch,"mouse-move":i.settings.moveImage.mouse,onMove:i.onManipulateImage,onResize:i.onManipulateImage},{default:s.withCtx((function(){return[s.createVNode("div",{class:i.classes.background,style:i.boundariesStyle},null,6),s.createVNode("div",{class:i.classes.imageWrapper},[s.createVNode("img",{ref:"image",crossorigin:A.imageAttributes.crossOrigin,src:A.imageAttributes.src,class:i.classes.image,style:i.imageStyle,onMousedown:e[1]||(e[1]=s.withModifiers((function(){}),["prevent"]))},null,46,["crossorigin","src"])],2),s.createVNode("div",{class:i.classes.foreground,style:i.boundariesStyle},null,6),s.withDirectives((s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.stencilComponent),s.mergeProps({ref:"stencil",image:i.image,coordinates:A.coordinates,"stencil-coordinates":i.stencilCoordinates,transitions:i.transitionsOptions},n.stencilProps,{onResize:i.onResize,onResizeEnd:i.onResizeEnd,onMove:i.onMove,onMoveEnd:i.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[s.vShow,A.imageLoaded]]),n.canvas?(s.openBlock(),s.createBlock("canvas",OJ,null,512)):s.createCommentVNode("",!0),n.canvas?(s.openBlock(),s.createBlock("canvas",NJ,null,512)):s.createCommentVNode("",!0)]})),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const LJ={key:0,class:"image-crop"},RJ={class:"row mb-4"},HJ={class:"col"},PJ={class:"row"},$J={class:"col d-flex gap-2 justify-content-end gap-2"},Mx=s.defineComponent({__name:"image-crop",props:{modelValue:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},spinner:{type:Boolean,default:!1},ready:{type:Boolean,default:!1},aspectRatioOptions:{type:Array,default:()=>[{value:0,text:"Free"},{value:1,text:"1:1"},{value:4/3,text:"4:3"},{value:16/9,text:"16:9"},{value:3/4,text:"3:4"},{value:9/16,text:"9:16"}]},suggestedAspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.useTemplateRef("cropper"),i=s.ref(0);function o(){const{canvas:a}=A.value?.getResult(),l=a.toDataURL();r("update:modelValue",l)}return s.onBeforeMount(()=>{i.value=n.suggestedAspectRatio||0}),(a,l)=>{const u=s.resolveComponent("input-dropdown");return t.modelValue?(s.openBlock(),s.createElementBlock("div",LJ,[s.createElementVNode("div",RJ,[s.createElementVNode("div",HJ,[s.createVNode(s.unref(Tx),{ref:"cropper",class:"cropper",src:t.modelValue,"stencil-props":{...i.value!==0?{aspectRatio:i.value}:{}},"resize-image":!1},null,8,["src","stencil-props"])])]),l[1]||(l[1]=s.createElementVNode("hr",null,null,-1)),s.createElementVNode("div",PJ,[s.createElementVNode("div",$J,[s.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=d=>i.value=d),options:t.aspectRatioOptions,class:"mb-0"},null,8,["modelValue","options"]),s.renderSlot(a.$slots,"actions"),s.createElementVNode("button",{class:"btn btn-sm btn-primary",onClick:s.withModifiers(o,["prevent","stop"])},s.toDisplayString(a.$t("common.apply")),1)])])])):s.createCommentVNode("",!0)}}}),KJ={key:0,class:"image-editor position-relative"},zJ={class:"row mb-3"},WJ={class:"col"},GJ={class:"row gap-2 mb-4"},YJ={class:"col-12"},qJ={class:"input mb-2"},XJ={class:"col"},JJ={class:"input mb-0"},jJ={class:"col"},ZJ={class:"input mb-0"},VJ={class:"row"},ej={class:"col d-flex justify-content-end gap-2"},tj=["disabled"],Ix=s.defineComponent({__name:"image-resize",props:{modelValue:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},spinner:{type:Boolean,default:!1},ready:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=s.useTemplateRef("image"),A=s.ref(1),i=s.ref(0),o=s.ref(0),a=s.ref(null),l=s.ref(0),u=s.ref(0);function d(){a.value&&(n("update:modelValue",a.value),A.value=1)}const h=()=>{if(!l.value||!u.value)return;i.value=Math.round(l.value*A.value);const m=u.value/l.value;o.value=Math.round(i.value*m);const v=r.value?.$el;if(!v)return;const B=v.querySelector("img");B&&(a.value=SB(B,i.value,o.value,"image/png"))},p=_g.debounce(h,300);return s.watch(A,()=>{l.value&&(i.value=Math.round(l.value*A.value),p())}),s.watch(i,()=>{if(!l.value||i.value===0)return;const m=i.value/l.value;Math.abs(m-A.value)>1e-4&&(A.value=Number(m.toFixed(4)));const v=u.value/l.value;o.value=Math.round(i.value*v),p()}),s.watch(o,()=>{if(!u.value||o.value===0)return;const m=o.value/u.value;Math.abs(m-A.value)>1e-4&&(A.value=Number(m.toFixed(4)));const v=l.value/u.value;i.value=Math.round(o.value*v),p()}),s.onMounted(()=>{const m=r.value?.$el;if(!m)return;const v=m.querySelector("img");if(!v)return;const B=()=>{l.value=v.naturalWidth,u.value=v.naturalHeight,h()};v.complete?B():v.addEventListener("load",B)}),(m,v)=>{const B=s.resolveComponent("base-image"),y=s.resolveComponent("base-input");return t.modelValue?(s.openBlock(),s.createElementBlock("div",KJ,[s.createElementVNode("div",zJ,[s.createElementVNode("div",WJ,[s.createVNode(B,{ref_key:"image",ref:r,class:"d-none",src:t.modelValue,animate:!1},null,8,["src"]),a.value?(s.openBlock(),s.createBlock(B,{key:0,ref:"targetImage",class:"",src:a.value,animate:!1},null,8,["src"])):s.createCommentVNode("",!0)])]),s.createElementVNode("div",GJ,[s.createElementVNode("div",YJ,[s.createElementVNode("div",qJ,[s.withDirectives(s.createElementVNode("input",{type:"range",class:"form-range",id:"scaleRange","onUpdate:modelValue":v[0]||(v[0]=w=>A.value=w),min:"0",max:"2",step:"0.0001"},null,512),[[s.vModelText,A.value]])])]),s.createElementVNode("div",XJ,[s.createElementVNode("div",JJ,[s.createVNode(y,{type:"number",class:"form-input mb-0",id:"targetWidth",modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=w=>i.value=w)},null,8,["modelValue"])])]),v[3]||(v[3]=s.createElementVNode("div",{class:"col-auto d-flex align-items-center"},[s.createElementVNode("output",null,"×")],-1)),s.createElementVNode("div",jJ,[s.createElementVNode("div",ZJ,[s.createVNode(y,{type:"number",class:"form-input mb-0",id:"targetHeight",modelValue:o.value,"onUpdate:modelValue":v[2]||(v[2]=w=>o.value=w)},null,8,["modelValue"])])])]),s.createElementVNode("div",VJ,[s.createElementVNode("div",ej,[s.renderSlot(m.$slots,"actions"),s.createElementVNode("button",{class:"btn btn-sm btn-primary",disabled:!a.value,onClick:s.withModifiers(d,["prevent","stop"])},s.toDisplayString(m.$t("common.apply")),9,tj)])])])):s.createCommentVNode("",!0)}}}),nj={key:0,class:"image-crop-resize position-relative"},rj={class:"row"},Aj={class:"col"},ij={key:3,class:"alert alert-warning mt-4 small p-2"},oj={key:4},sj={class:"row"},aj={class:"col-12"},lj={class:"d-flex"},cj={key:0,class:"d-flex gap-3"},uj={class:"caption"},dj={class:"caption"},fj={key:1,class:"ms-auto"},Ux=s.defineComponent({__name:"image-crop-resize",props:{modelValue:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},spinner:{type:Boolean,default:!1},ready:{type:Boolean,default:!1},aspectRatio:Number},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=s.ref(!1),o=s.computed({get:()=>n.modelValue,set:l=>r("update:modelValue",l)}),a=s.computed(()=>n.modelValue.startsWith("data:image/svg+xml"));return s.watch(()=>[A.value,o.value],(l,u)=>{l[0]&&l[0]===u[0]&&(A.value=!1)}),s.watch(()=>[i.value,o.value],(l,u)=>{l[0]&&l[0]===u[0]&&(i.value=!1)}),s.onMounted(()=>{}),(l,u)=>{const d=s.resolveComponent("base-image"),h=s.resolveComponent("svg-icon");return t.modelValue?(s.openBlock(),s.createElementBlock("div",nj,[s.createElementVNode("div",rj,[s.createElementVNode("div",Aj,[A.value||i.value?A.value?(s.openBlock(),s.createBlock(Ix,{key:1,modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p)},{actions:s.withCtx(()=>[s.createElementVNode("button",{class:"btn btn-outline-ccontrast",onClick:u[0]||(u[0]=s.withModifiers(p=>A.value=!1,["prevent","stop"]))},s.toDisplayString(l.$t("common.cancel")),1)]),_:1},8,["modelValue"])):i.value?(s.openBlock(),s.createBlock(Mx,{key:2,modelValue:o.value,"onUpdate:modelValue":u[3]||(u[3]=p=>o.value=p),"suggested-aspect-ratio":t.aspectRatio},{actions:s.withCtx(()=>[s.createElementVNode("button",{class:"btn btn-sm btn-outline-ccontrast",onClick:u[2]||(u[2]=s.withModifiers(p=>i.value=!1,["prevent","stop"]))},s.toDisplayString(l.$t("common.cancel")),1)]),_:1},8,["modelValue","suggested-aspect-ratio"])):s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(d,{key:0,ref:"targetImage",class:"",animate:!1,src:t.modelValue},null,8,["src"])),a.value?(s.openBlock(),s.createElementBlock("div",ij,s.toDisplayString(l.$t("common.svgWarning")),1)):s.createCommentVNode("",!0),!i.value&&!A.value?(s.openBlock(),s.createElementBlock("hr",oj)):s.createCommentVNode("",!0),s.createElementVNode("div",sj,[s.createElementVNode("div",aj,[s.createElementVNode("div",lj,[!i.value&&!A.value?(s.openBlock(),s.createElementBlock("div",cj,[s.createElementVNode("button",{type:"button",class:"btn btn-light",onClick:u[4]||(u[4]=s.withModifiers(p=>i.value=!i.value,["prevent","stop"]))},[s.createVNode(h,{symbol:"crop"}),s.createElementVNode("span",uj,s.toDisplayString(l.$t("common.crop")),1)]),s.createElementVNode("button",{type:"button",class:"btn btn-light",onClick:u[5]||(u[5]=s.withModifiers(p=>A.value=!A.value,["prevent","stop"]))},[s.createVNode(h,{symbol:"image-upscale"}),s.createElementVNode("span",dj,s.toDisplayString(l.$t("common.resize")),1)])])):s.createCommentVNode("",!0),!i.value&&!A.value?(s.openBlock(),s.createElementBlock("div",fj,[s.renderSlot(l.$slots,"submit")])):s.createCommentVNode("",!0)])])])])])])):s.createCommentVNode("",!0)}}}),hj={class:"image-upload__controls"},pj={class:"d-flex gap-1 align-items-center"},mj={key:1,class:"image-upload__controls"},gj=["for"],vj=["innerHTML"],wj={key:0,class:"image-upload__loading-spinner"},Bj=s.defineComponent({__name:"image-upload",props:{modelValue:{type:Object,default:void 0},src:{type:String},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},accept:{type:String,default:"image/*"},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/api/v1/assets"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0},dropFiles:{type:Boolean,default:!1},enableReview:{type:Boolean,default:!0},maxImageWidth:{type:Number,default:4096},aspectRatio:Number},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=s.ref(null),o=s.ref(null),a=s.ref(null),{pending:l,files:u,imgLoaded:d,isDragging:h,uploadFile:p,setupDragAndDrop:m,cleanupDragAndDrop:v}=JE(n,r),B=s.computed(()=>n.modelValue?n.modelValue:n.src?{type:"",src:n.src}:i.value);function y(){i.value=null,u.value=[],d.value=!1,r("update:modelValue",void 0),r("update:src","")}s.watch(()=>u.value,async S=>{if(!S||!S.length||!S[0])return;d.value=!1;const Q=await KT(S[0],n.maxImageWidth);n.enableReview?(o.value={src:await Xc(Q),type:Q.type},A.value=!0):i.value={src:n.toDataUrl?await Xc(Q):await p(Q),type:Q.type}}),s.watch(()=>i.value,S=>{r("update:modelValue",S||void 0),r("update:src",S?.src||"")}),s.watch(()=>a.value,async S=>{S&&(i.value={src:await p(S),type:S.type},a.value=null)}),s.watch(()=>A.value,(S,Q)=>{!S&&Q&&o.value&&(o.value=null)}),s.watch(()=>n.src,S=>{!S&&i.value&&(i.value=null,u.value=[],d.value=!1)});function w(S,Q){o.value={src:S,type:Q},A.value=!0}async function C(){o.value&&(a.value=await kB(o.value.src,"file",o.value.type)),o.value=null,A.value=!1}return s.onMounted(()=>{m()}),s.onBeforeUnmount(()=>{v()}),(S,Q)=>{const _=s.resolveComponent("base-image"),D=s.resolveComponent("svg-icon"),I=s.resolveComponent("input-file"),$=s.resolveComponent("modal-dialog");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["image-upload",{"has-dragging":t.dropFiles,"is-dragging":s.unref(h)}])},[!A.value&&B.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["mb-2",t.enablePreview?"image-upload__thumbnail":"image-upload__reset"])},[t.enablePreview?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(_,{src:`${B.value.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded",ready:s.unref(d),"onUpdate:ready":Q[0]||(Q[0]=Y=>s.isRef(d)?d.value=Y:null),animate:!1,style:s.normalizeStyle({maxWidth:t.previewWidth?`${t.previewWidth}px`:"auto",height:"auto"})},null,8,["src","ready","style"]),s.createElementVNode("div",hj,[s.createElementVNode("div",pj,[s.createElementVNode("button",{type:"button",onClick:Q[1]||(Q[1]=s.withModifiers(Y=>w(B.value.src,B.value.type),["prevent","stop"])),class:"btn btn--edit btn-sm btn-light"},[s.createVNode(D,{symbol:"edit-2"})]),s.createElementVNode("button",{type:"button",onClick:Q[2]||(Q[2]=s.withModifiers(Y=>y(),["prevent","stop"])),class:"btn btn--close btn-sm btn-light"},[s.createVNode(D,{symbol:"x"})])])])],64)):(s.openBlock(),s.createElementBlock("div",mj,[s.createElementVNode("button",{onClick:Q[3]||(Q[3]=s.withModifiers(Y=>y(),["prevent","stop"])),class:"btn btn--close btn-outline-contrast"},[s.createVNode(D,{symbol:"x"})])]))],2)):s.createCommentVNode("",!0),s.createVNode(I,{modelValue:s.unref(u),"onUpdate:modelValue":Q[4]||(Q[4]=Y=>s.isRef(u)?u.value=Y:null),id:t.id,name:t.name,accept:t.accept,"max-file-size":t.maxFileSize,class:"d-none"},null,8,["modelValue","id","name","accept","max-file-size"]),t.src?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("label",{key:1,for:t.id,class:"image-upload__label"},[s.renderSlot(S.$slots,"button",{},()=>[s.createElementVNode("span",{class:"btn btn-outline-contrast",innerHTML:t.label||S.$t("common.selectFile")},null,8,vj)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[s.unref(l)?(s.openBlock(),s.createElementBlock("span",wj,[...Q[7]||(Q[7]=[s.createElementVNode("span",{class:"spinner-border",role:"status"},[s.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)])])):s.createCommentVNode("",!0)]),_:1})],8,gj)),s.createVNode($,{modelValue:A.value,"onUpdate:modelValue":Q[6]||(Q[6]=Y=>A.value=Y),footer:!1},{default:s.withCtx(()=>[A.value&&o.value?(s.openBlock(),s.createBlock(Ux,{key:0,modelValue:o.value.src,"onUpdate:modelValue":Q[5]||(Q[5]=Y=>o.value.src=Y),"aspect-ratio":t.aspectRatio},{submit:s.withCtx(()=>[s.createElementVNode("button",{class:"btn btn-primary",onClick:s.withModifiers(C,["prevent","stop"])},s.toDisplayString(S.$t("common.save")),1)]),_:1},8,["modelValue","aspect-ratio"])):s.createCommentVNode("",!0)]),_:1},8,["modelValue"])],2)}}});Xe.Accordion=tM,Xe.AccordionItem=JT,Xe.AssetUploader=r8,Xe.AutoSuggest=C5,Xe.BaseButton=rM,Xe.BaseCamera=z5,Xe.BaseCarousel=ZE,Xe.BaseForm=PX,Xe.BaseHeadline=mT,Xe.BaseImage=hT,Xe.BaseInput=aM,Xe.BaseParagraph=RT,Xe.CanvasConfetti=AJ,Xe.CheckGroup=gR,Xe.ColorPalette=A5,Xe.CustomHtml=DR,Xe.DomRenderer=iX,Xe.FileUpload=GW,Xe.ImageCrop=Mx,Xe.ImageCropResize=Ux,Xe.ImageResize=Ix,Xe.ImageUpload=Bj,Xe.InputCheckbox=mM,Xe.InputColor=t5,Xe.InputDatepicker=uR,Xe.InputDatetime=BM,Xe.InputDropdown=g5,Xe.InputFile=IR,Xe.InputPassword=fR,Xe.InputTextarea=dM,Xe.LinkSharing=RX,Xe.LoadingSpinner=dT,Xe.MediaThumbnails=l8,Xe.ModalDialog=YX,Xe.PopoverDialog=Lg,Xe.PopoverNotifications=U8,Xe.PopoverTooltip=F8,Xe.ProgressSteps=v8,Xe.QrCode=uX,Xe.RadioButtons=ER,Xe.RadioGroup=xu,Xe.RteEditor=jz,Xe.SelectMedia=LR,Xe.SortableList=VX,Xe.SvgIcon=cT,Xe.TouchWrapper=nJ,Xe.UploadGroup=jE,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})}));
|