PageSourceSearch

https://engeplus.com.br/build/assets/app-096f8646.js

js engeplus.com.br collected 2026-09-24 21:00:28 UTC 1,684,284 bytes, 3,197 lines download raw bytes

1var e,t,n=Object.defineProperty,r=Object.getOwnPropertyNames,i=(e,t,r)=>(((e,t,r)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),a=(e={"assets/app-096f8646.js"(e,t){var n,r,a,s,o,l,u,c,d,h,p,f,B;
2/**
3    * @vue/shared v3.5.43
4    * (c) 2018-present Yuxi (Evan) You and Vue contributors
5    * @license MIT
6    **/function m(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const g={},v=[],y=()=>{},C=()=>!1,_=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith("onUpdate:"),w=Object.assign,D=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},E=Object.prototype.hasOwnProperty,k=(e,t)=>E.call(e,t),S=Array.isArray,x=e=>"[object Map]"===F(e),T=e=>"[object Set]"===F(e),O=e=>"[object Date]"===F(e),A=e=>"function"==typeof e,I=e=>"string"==typeof e,P=e=>"symbol"==typeof e,N=e=>null!==e&&"object"==typeof e,R=e=>(N(e)||A(e))&&A(e.then)&&A(e.catch),M=Object.prototype.toString,F=e=>M.call(e),L=e=>"[object Object]"===F(e),j=e=>I(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,H=m(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=m("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),G=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y=/-\w/g,V=G(e=>e.replace(Y,e=>e.slice(1).toUpperCase())),q=/\B([A-Z])/g,$=G(e=>e.replace(q,"-$1").toLowerCase()),W=G(e=>e.charAt(0).toUpperCase()+e.slice(1)),z=G(e=>e?`on${W(e)}`:""),J=(e,t)=>!Object.is(e,t),K=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Q=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Z=e=>{const t=parseFloat(e);return isNaN(t)?e:t},X=e=>{const t=I(e)?Number(e):NaN;return isNaN(t)?e:t};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),ne=m("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function re(e){if(S(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=I(r)?oe(r):re(r);if(i)for(const e in i)t[e]=i[e]}return t}if(I(e)||N(e))return e}const ie=/;(?![^(]*\))/g,ae=/:([^]+)/,se=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function oe(e){const t={};return e.replace(se,e=>e.startsWith("/*")?"":e).split(ie).forEach(e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function le(e){let t="";if(I(e))t=e;else if(S(e))for(let n=0;n<e.length;n++){const r=le(e[n]);r&&(t+=r+" ")}else if(N(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ue(e){if(!e)return null;let{class:t,style:n}=e;
6return t&&!I(t)&&(e.class=le(t)),n&&(e.style=re(n)),e}const ce=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),de=m("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),he=m("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),pe=m("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),fe=m("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Be(e){return!!e||""===e}function me(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Ce(e[i],t[i],n);return r}function ge(e,t,n){if(e.size!==t.size)return!1;const r=Array.from(t),i=new Uint8Array(r.length);for(const a of e){let e=-1;for(let t=0;t<r.length;t++)if(!i[t]&&Ce(a,r[t],n)){e=t;break}if(e<0)return!1;i[e]=1}return!0}function ve(e,t,n){let r=x(e),i=x(t);if(r||i)return!(!r||!i)&&ge(e,t,n);if(r=T(e),i=T(t),r||i)return!(!r||!i)&&ge(e,t,n);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e){const r=e.hasOwnProperty(a),i=t.hasOwnProperty(a);if(r&&!i||!r&&i||!Ce(e[a],t[a],n))return!1}return String(e)===String(t)}function ye(e,t,n,r){n||(n=[new Map,new Map]);const[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);const s=r(e,t,n);return i.delete(e),a.delete(t),s}function Ce(e,t,n){if(e===t)return!0;let r=O(e),i=O(t);return r||i?!(!r||!i)&&e.getTime()===t.getTime():(r=P(e),i=P(t),r||i?e===t:(r=S(e),i=S(t),r||i?!(!r||!i)&&ye(e,t,n,me):(r=N(e),i=N(t),r||i?!(!r||!i)&&ye(e,t,n,ve):String(e)===String(t))))}function _e(e,t){return e.findIndex(e=>Ce(e,t))}const be=e=>!(!e||!0!==e.__v_isRef),we=e=>I(e)?e:null==e?"":S(e)||N(e)&&(e.toString===M||!A(e.toString))?be(e)?we(e.value):JSON.stringify(e,De,2):String(e),De=(e,t)=>be(t)?De(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ee(t,r)+" =>"]=n,e),{})}:T(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ee(e))}:P(t)?Ee(t):!N(t)||S(t)||L(t)?t:String(t),Ee=(e,t="")=>{var n;return P(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function ke(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:String(e)}
7/**
8    * @vue/reactivity v3.5.43
9    * (c) 2018-present Yuxi (Evan) You and Vue contributors
10    * @license MIT
11    **/let Se,xe;class Te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||(Se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=Se;try{return Se=this,e()}finally{Se=t}}}on(){1===++this._on&&(this.prevScope=Se,Se=this)}off(){if(this._on>0&&0===--this._on){if(Se===this)Se=this.prevScope;else{let e=Se;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function Oe(){return Se}function Ae(e,t=!1){Se&&Se.cleanups.push(e)}const Ie=new WeakSet;class Pe{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
11=void 0,Se&&(Se.active?Se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,Ie.has(this)&&(Ie.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||Fe(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Ke(this),He(this);const e=xe,t=$e;xe=this,$e=!0;try{return this.fn()}finally{Ue(this),xe=e,$e=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)Ve(e);this.deps=this.depsTail=void 0,Ke(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?Ie.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ge(this)&&this.run()}get dirty(){return Ge(this)}}let Ne,Re,Me=0;function Fe(e,t=!1){if(e.flags|=8,t)return e.next=Re,void(Re=e);e.next=Ne,Ne=e}function Le(){Me++}function je(){if(--Me>0)return;if(Re){let e=Re;for(Re=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let n=Ne;for(Ne=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function He(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ue(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),Ve(r),qe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ye(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Qe)return;if(e.globalVersion=Qe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!Ge(e)))return;e.flags|=2;const t=e.dep,n=xe,r=$e;xe=e,$e=!0;try{He(e);const n=e.fn(e._value);(0===t.version||J(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(i){throw t.version++,i}finally{xe=n,$e=r,Ue(e),e.flags&=-3}}function Ve(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ve(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function qe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let $e=!0;const We=[];function ze(){We.push($e),$e=!1}function Je(){const e=We.pop();$e=void 0===e||e}function Ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=xe;xe=void 0;try{t()}finally{xe=e}}}let Qe=0;class Ze{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xe{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!xe||!$e||xe===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==xe)t=this.activeLink=new Ze(xe,this),xe.deps?(t.prevDep=xe.depsTail,xe.depsTail.nextDep=t,xe.depsTail=t):xe.deps=xe.depsTail=t,et(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=xe.depsTail,t.nextDep=void 0,xe.depsTail.nextDep=t,xe.depsTail=t,xe.deps===t&&(xe.deps=e)}return t}trigger(e){this.version++,Qe++,this.notify(e)}notify(e){Le();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{je()}}}function et(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)et(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const tt=new WeakMap,nt=Symbol(""),rt=Symbol(""),it=Symbol("");function at(e,t,n){if($e&&xe){let t=tt.get(e);t||tt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Xe),r.map=t,r.key=n),r.track()}}function st(e,t,n,r,i,a){const s=tt.get(e);if(!s)return void Qe++;const o=e=>{e&&e.trigger()};if(Le(),"clear"===t)s.forEach(o);else{const i=S(e),a=i&&j(n);if(i&&"length"===n){const e=Number(r);s.forEach((t,n)=>{("length"===n||n===it||!P(n)&&n>=e)&&o(t)})}else switch((void 0!==n||s.has(void 0))&&o(s.get(n)),a&&o(s.get(it)),t){case"add":i?a&&o(s.get("length")):(o(s.get(nt)),x(e)&&o(s.get(rt)));break;case"delete":i||(o(s.get(nt)),x(e)&&o(s.get(rt)));break;case"set":x(e)&&o(s.get(nt))}}je()}function ot(e){const t=Jt(e);return t===e?t:(at(t,0,it),Wt(e)?t:$t(e)?qt(e)?t.map(e=>Zt(Qt(e))):t.map(Zt):t.map(Qt))}function lt(e){return at(e=Jt(e),0,it),e}function ut(e,t){return $t(e)?Zt(qt(e)?Qt(t):t):Qt(t)}const ct={__proto__:null,[Symbol.iterator](){return dt(this,Symbol.iterator,e=>ut(this,e))},concat(...e){return ot(this).concat(...e.map(e=>S(e)?ot(e):e))}
11,entries(){return dt(this,"entries",e=>(e[1]=ut(this,e[1]),e))},every(e,t){return pt(this,"every",e,t,void 0,arguments)},filter(e,t){return pt(this,"filter",e,t,e=>e.map(e=>ut(this,e)),arguments)},find(e,t){return pt(this,"find",e,t,e=>ut(this,e),arguments)},findIndex(e,t){return pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pt(this,"findLast",e,t,e=>ut(this,e),arguments)},findLastIndex(e,t){return pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bt(this,"includes",e)},indexOf(...e){return Bt(this,"indexOf",e)},join(e){return ot(this).join(e)},lastIndexOf(...e){return Bt(this,"lastIndexOf",e)},map(e,t){return pt(this,"map",e,t,void 0,arguments)},pop(){return mt(this,"pop")},push(...e){return mt(this,"push",e)},reduce(e,...t){return ft(this,"reduce",e,t)},reduceRight(e,...t){return ft(this,"reduceRight",e,t)},shift(){return mt(this,"shift")},some(e,t){return pt(this,"some",e,t,void 0,arguments)},splice(...e){return mt(this,"splice",e)},toReversed(){return ot(this).toReversed()},toSorted(e){return ot(this).toSorted(e)},toSpliced(...e){return ot(this).toSpliced(...e)},unshift(...e){return mt(this,"unshift",e)},values(){return dt(this,"values",e=>ut(this,e))}};function dt(e,t,n){const r=lt(e),i=r[t]();return r===e||Wt(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=n(e.value)),e}),i}const ht=Array.prototype;function pt(e,t,n,r,i,a){const s=lt(e),o=s!==e&&!Wt(e),l=s[t];if(l!==ht[t]){const t=l.apply(e,a);return o?Qt(t):t}let u=n;s!==e&&(o?u=function(t,r){return n.call(this,ut(e,t),r,e)}:n.length>2&&(u=function(t,r){return n.call(this,t,r,e)}));const c=l.call(s,u,r);return o&&i?i(c):c}function ft(e,t,n,r){const i=lt(e);let a=n,s=!1;i!==e&&(i===e||Wt(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):(s=0===r.length,a=function(t,r,i){return s&&(s=!1,t=ut(e,t)),n.call(this,t,ut(e,r),i,e)}));const o=i[t](a,...r);return s?ut(e,o):o}function Bt(e,t,n){const r=Jt(e);at(r,0,it);const i=r[t](...n);return-1!==i&&!1!==i||!zt(n[0])?i:(n[0]=Jt(n[0]),r[t](...n))}function mt(e,t,n=[]){ze(),Le();const r=Jt(e)[t].apply(e,n);return je(),Je(),r}const gt=m("__proto__,__v_isRef,__isVue"),vt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(P));function yt(e){P(e)||(e=String(e));const t=Jt(this);return at(t,0,e),t.hasOwnProperty(e)}class Ct{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?jt:Lt:i?Ft:Mt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=S(e);if(!r){let e;if(a&&(e=ct[t]))return e;if("hasOwnProperty"===t)return yt}const s=Reflect.get(e,t,Xt(e)?e:n);if(P(t)?vt.has(t):gt(t))return s;if(r||at(e,0,t),i)return s;if(Xt(s)){const e=a&&j(t)?s:s.value;return r&&N(e)?Gt(e):e}return N(s)?r?Gt(s):Ht(s):s}}class _t extends Ct{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];const a=S(e)&&j(t);if(!this._isShallow){const e=$t(i);if(Wt(n)||$t(n)||(i=Jt(i),n=Jt(n)),!a&&Xt(i)&&!Xt(n))return e||(i.value=n),!0}const s=a?Number(t)<e.length:k(e,t),o=Reflect.set(e,t,n,Xt(e)?e:r);return e===Jt(r)&&o&&(s?J(n,i)&&st(e,"set",t,n):st(e,"add",t,n)),o}deleteProperty(e,t){const n=k(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&st(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return P(t)&&vt.has(t)||at(e,0,t),n}ownKeys(e){return at(e,0,S(e)?"length":nt),Reflect.ownKeys(e)}}class bt extends Ct{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const wt=new _t,Dt=new bt,Et=new _t(!0),kt=new bt(!0),St=e=>e,xt=e=>Reflect.getPrototypeOf(e);function Tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ot(e,t){const n={get(n){const r=this.__v_raw,i=Jt(r),a=Jt(n);e||(J(n,a)&&at(i,0,n),at(i,0,a));const{has:s}=xt(i),o=t?St:e?Zt:Qt;return s.call(i,n)?o(r.get(n)):s.call(i,a)?o(r.get(a)):void(r!==i&&r.get(n))},get size(){const t=this.__v_raw;return!e&&at(Jt(t),0,nt),t.size},has(t){const n=this.__v_raw,r=Jt(n),i=Jt(t);return e||(J(t,i)&&at(r,0,t),at(r,0,i)),t===i?n.has(t):n.has(t)||n.has(i)}
11,forEach(n,r){const i=this,a=i.__v_raw,s=t?St:e?Zt:Qt;return!e&&at(Jt(a),0,nt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return w(n,e?{add:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("clear")}:{add(e){const n=Jt(this),r=xt(n),i=Jt(e),a=t||Wt(e)||$t(e)?e:i;return r.has.call(n,a)||J(e,a)&&r.has.call(n,e)||J(i,a)&&r.has.call(n,i)||(n.add(a),st(n,"add",a,a)),this},set(e,n){t||Wt(n)||$t(n)||(n=Jt(n));const r=Jt(this),{has:i,get:a}=xt(r);let s=i.call(r,e);s||(e=Jt(e),s=i.call(r,e));const o=a.call(r,e);return r.set(e,n),s?J(n,o)&&st(r,"set",e,n):st(r,"add",e,n),this},delete(e){const t=Jt(this),{has:n,get:r}=xt(t);let i=n.call(t,e);i||(e=Jt(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&st(t,"delete",e,void 0),a},clear(){const e=Jt(this),t=0!==e.size,n=e.clear();return t&&st(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const i=this.__v_raw,a=Jt(i),s=x(a),o="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,u=i[e](...r),c=n?St:t?Zt:Qt;return!t&&at(a,0,l?rt:nt),w(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}}})}}(r,e,t)}),n}function At(e,t){const n=Ot(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(k(n,r)&&r in t?n:t,r,i)}const It={get:At(!1,!1)},Pt={get:At(!1,!0)},Nt={get:At(!0,!1)},Rt={get:At(!0,!0)},Mt=new WeakMap,Ft=new WeakMap,Lt=new WeakMap,jt=new WeakMap;function Ht(e){return $t(e)?e:Vt(e,!1,wt,It,Mt)}function Ut(e){return Vt(e,!1,Et,Pt,Ft)}function Gt(e){return Vt(e,!0,Dt,Nt,Lt)}function Yt(e){return Vt(e,!0,kt,Rt,jt)}function Vt(e,t,n,r,i){if(!N(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const a=i.get(e);if(a)return a;const s=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(F(e).slice(8,-1));if(0===s)return e;const o=new Proxy(e,2===s?r:n);return i.set(e,o),o}function qt(e){return $t(e)?qt(e.__v_raw):!(!e||!e.__v_isReactive)}function $t(e){return!(!e||!e.__v_isReadonly)}function Wt(e){return!(!e||!e.__v_isShallow)}function zt(e){return!!e&&!!e.__v_raw}function Jt(e){const t=e&&e.__v_raw;return t?Jt(t):e}function Kt(e){return!k(e,"__v_skip")&&Object.isExtensible(e)&&Q(e,"__v_skip",!0),e}const Qt=e=>N(e)?Ht(e):e,Zt=e=>N(e)?Gt(e):e;function Xt(e){return!!e&&!0===e.__v_isRef}function en(e){return nn(e,!1)}function tn(e){return nn(e,!0)}function nn(e,t){return Xt(e)?e:new rn(e,t)}class rn{constructor(e,t){this.dep=new Xe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Jt(e),this._value=t?e:Qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Wt(e)||$t(e);J(e=n?e:Jt(e),t)&&(this._rawValue=e,this._value=n?e:Qt(e),this.dep.trigger())}}function an(e){return Xt(e)?e.value:e}function sn(e){return A(e)?e():an(e)}const on={get:(e,t,n)=>"__v_raw"===t?e:an(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Xt(i)&&!Xt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ln(e){return qt(e)?e:new Proxy(e,on)}class un{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Xe,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function cn(e){return new un(e)}function dn(e){const t=S(e)?new Array(e.length):{};for(const n in e)t[n]=Bn(e,n);return t}class hn{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=P(t)?t:String(t),this._raw=Jt(e);let r=!0,i=e;if(!S(e)||P(this._key)||!j(this._key))do{r=!zt(i)||Wt(i)}while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=an(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&Xt(this._raw[this._key])){const t=this._object[this._key];if(Xt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=tt.get(e);return n&&n.get(t)}(this._raw,this._key)}}class pn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function fn(e,t,n){return Xt(e)?e:A(e)?new pn(e):N(e)&&arguments.length>1?Bn(e,t,n):en(e)}function Bn(e,t,n){return new hn(e,t,n)}class mn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Xe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qe
11-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&xe!==this)return Fe(this,!0),!0}get value(){const e=this.dep.track();return Ye(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function gn(e,t,n=!1){let r,i;return A(e)?r=e:(r=e.get,i=e.set),new mn(r,i,n)}const vn={},yn=new WeakMap;let Cn;function _n(e,t=!1,n=Cn){if(n){let t=yn.get(n);t||yn.set(n,t=[]),t.push(e)}}function bn(e,t=1/0,n){if(t<=0||!N(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,Xt(e))bn(e.value,t,n);else if(S(e))for(let r=0;r<e.length;r++)bn(e[r],t,n);else if(T(e)||x(e))e.forEach(e=>{bn(e,t,n)});else if(L(e)){for(const r in e)bn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&bn(e[r],t,n)}return e}
12/**
13    * @vue/runtime-core v3.5.43
14    * (c) 2018-present Yuxi (Evan) You and Vue contributors
15    * @license MIT
16    **/const wn=[],Dn={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function En(e,t,n,r){try{return r?e(...r):e()}catch(i){Sn(i,t,n)}}function kn(e,t,n,r){if(A(e)){const i=En(e,t,n,r);return i&&R(i)&&i.catch(e=>{Sn(e,t,n)}),i}if(S(e)){const i=[];for(let a=0;a<e.length;a++)i.push(kn(e[a],t,n,r));return i}}function Sn(e,t,n,r=!0){t&&t.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||g;if(t){let r=t.parent;const a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,s))return;r=r.parent}if(i)return ze(),En(i,null,10,[e,a,s]),void Je()}!function(e,t,n,r=!0,i=!1){if(i)throw e}(e,0,0,r,a)}const xn=[];let Tn=-1;const On=[];let An=null,In=0;const Pn=Promise.resolve();let Nn=null;function Rn(e){const t=Nn||Pn;return e?t.then(this?e.bind(this):e):t}function Mn(e){if(!(1&e.flags)){const t=Un(e),n=xn[xn.length-1];!n||!(2&e.flags)&&t>=Un(n)?xn.push(e):xn.splice(function(e){let t=Tn+1,n=xn.length;for(;t<n;){const r=t+n>>>1,i=xn[r],a=Un(i);a<e||a===e&&2&i.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,Fn()}}function Fn(){Nn||(Nn=Pn.then(Gn))}function Ln(e){if(S(e))for(let t=0;t<e.length;t++)On.push(e[t]);else An&&-1===e.id?An.splice(In+1,0,e):1&e.flags||(On.push(e),e.flags|=1);Fn()}function jn(e,t,n=Tn+1){for(;n<xn.length;n++){const t=xn[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;xn.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Hn(e){if(On.length){const e=[...new Set(On)].sort((e,t)=>Un(e)-Un(t));if(On.length=0,An){for(let t=0;t<e.length;t++)An.push(e[t]);return}for(An=e,In=0;In<An.length;In++){const e=An[In];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}An=null,In=0}}const Un=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Gn(e){try{for(Tn=0;Tn<xn.length;Tn++){const e=xn[Tn];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),En(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Tn<xn.length;Tn++){const e=xn[Tn];e&&(e.flags&=-2)}
16Tn=-1,xn.length=0,Hn(),Nn=null,(xn.length||On.length)&&Gn()}}let Yn,Vn=[],qn=null,$n=null;function Wn(e){const t=qn;return qn=e,$n=e&&e.type.__scopeId||null,t}function zn(e,t=qn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&ns(-1);const i=Wn(t),a=Qa.length;let s;try{s=e(...n)}finally{for(let e=Qa.length;e>a;e--)es();Wn(i),r._d&&ns(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(null===qn)return e;const n=Us(qn),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,a,s,o=g]=t[i];e&&(A(e)&&(e={mounted:e,updated:e}),e.deep&&bn(a),r.push({dir:e,instance:n,value:a,oldValue:void 0,arg:s,modifiers:o}))}return e}function Kn(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const o=i[s];a&&(o.oldValue=a[s].value);let l=o.dir[r];l&&(ze(),kn(l,n,8,[e.el,o,e,t]),Je())}}function Qn(e,t){if(Es){let n=Es.provides;const r=Es.parent&&Es.parent.provides;r===n&&(n=Es.provides=Object.create(r)),n[e]=t}}function Zn(e,t,n=!1){const r=ks();if(r||na){let i=na?na._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&A(t)?t.call(r&&r.proxy):t}}const Xn=Symbol.for("v-scx"),er=()=>Zn(Xn);function tr(e,t){return ir(e,null,t)}function nr(e,t){return ir(e,null,{flush:"sync"})}function rr(e,t,n){return ir(e,t,n)}function ir(e,t,n=g){const{immediate:r,deep:i,flush:a,once:s}=n,o=w({},n),l=t&&r||!t&&"post"!==a;let u;if(Ns)if("sync"===a){const e=er();u=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=y,e.resume=y,e.pause=y,e}const c=Es;o.call=(e,t,n)=>kn(e,c,t,n);let d=!1;"post"===a?o.scheduler=e=>{xa(e,c&&c.suspense)}:"sync"!==a&&(d=!0,o.scheduler=(e,t)=>{t?e():Mn(e)}),o.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,c&&(e.id=c.uid,e.i=c))};const h=function(e,t,n=g){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:o,call:l}=n,u=e=>i?e:Wt(e)||!1===i||0===i?bn(e,1):bn(e);let c,d,h,p,f=!1,B=!1;if(Xt(e)?(d=()=>e.value,f=Wt(e)):qt(e)?(d=()=>u(e),f=!0):S(e)?(B=!0,f=e.some(e=>qt(e)||Wt(e)),d=()=>e.map(e=>Xt(e)?e.value:qt(e)?u(e):A(e)?l?l(e,2):e():void 0)):d=A(e)?t?l?()=>l(e,2):e:()=>{if(h){ze();try{h()}finally{Je()}}const t=Cn;Cn=c;try{return l?l(e,3,[p]):e(p)}finally{Cn=t}}:y,t&&i){const e=d,t=!0===i?1/0:i;d=()=>bn(e(),t)}const m=Oe(),v=()=>{c.stop(),m&&m.active&&D(m.effects,c)};if(a&&t){const e=t;t=(...t)=>{const n=e(...t);return v(),n}}let C=B?new Array(e.length).fill(vn):vn;const _=e=>{if(1&c.flags&&(c.dirty||e))if(t){const n=c.run();if(e||i||f||(B?n.some((e,t)=>J(e,C[t])):J(n,C))){h&&h();const e=Cn;Cn=c;try{const e=[n,C===vn?void 0:B&&C[0]===vn?[]:C,p];C=n,l?l(t,3,e):t(...e)}finally{Cn=e}}}else c.run()};
16return o&&o(_),c=new Pe(d),c.scheduler=s?()=>s(_,!1):_,p=e=>_n(e,!1,c),h=c.onStop=()=>{const e=yn.get(c);if(e){if(l)l(e,4);else for(const t of e)t();yn.delete(c)}},t?r?_(!0):C=c.run():s?s(_.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}(e,t,o);return Ns&&(u?u.push(h):l&&h()),h}function ar(e,t,n){const r=this.proxy,i=I(e)?e.includes(".")?sr(r,e):()=>r[e]:e.bind(r,r);let a;A(t)?a=t:(a=t.handler,n=t);const s=Ts(this),o=ir(i,a.bind(r),n);return s(),o}function sr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const or=new WeakMap,lr=Symbol("_vte"),ur=e=>e.__isTeleport,cr=e=>e&&(e.disabled||""===e.disabled),dr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,hr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,pr=(e,t)=>{const n=e&&e.to;return I(n)?t?t(n):null:n};function fr(e,t,n,{o:{insert:r},m:i},a=2){0===a&&r(e.targetAnchor,t,n);const{el:s,anchor:o,shapeFlag:l,children:u,props:c}=e,d=2===a;if(d&&r(s,t,n),!or.has(e)&&(!d||cr(c))&&16&l)for(let h=0;h<u.length;h++)i(u[h],t,n,2);d&&r(o,t,n)}const Br={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,o,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:B,createComment:m,parentNode:g}}=u,v=cr(t.props);let{dynamicChildren:y}=t;const C=(e,t,n)=>{16&e.shapeFlag&&c(e.children,t,n,i,a,s,o,l)},_=(e=t)=>{const n=cr(e.props),r=e.target=pr(e.props,f),a=gr(r,e,B,p);r&&("svg"!==s&&dr(r)?s="svg":"mathml"!==s&&hr(r)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(C(e,r,a),mr(e,!1)))},b=e=>{const t=()=>{if(or.get(e)===t){if(or.delete(e),cr(e.props)){const t=g(e.el)||n;C(e,t,e.anchor),mr(e,!0)}_(e)}};or.set(e,t),xa(t,a)};if(null==e){const e=t.el=B(""),i=t.anchor=B("");if(p(e,n,r),p(i,n,r),(w=t.props)&&(w.defer||""===w.defer)||a&&a.pendingBranch)return void b(t);v&&(C(t,n,i),mr(t,!0)),_()}else{t.el=e.el;const r=t.anchor=e.anchor,c=or.get(e);if(c)return c.flags|=8,or.delete(e),void b(t);t.targetStart=e.targetStart;const p=t.target=e.target,B=t.targetAnchor=e.targetAnchor,m=cr(e.props),g=m?n:p,C=m?r:B;if("svg"===s||dr(p)?s="svg":("mathml"===s||hr(p))&&(s="mathml"),y?(h(e.dynamicChildren,y,g,i,a,s,o),Ra(e,t,!0)):l||d(e,t,g,C,i,a,s,o,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fr(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=pr(t.props,f);e&&(t.target=e,fr(t,e,null,u,0))}else m&&fr(t,p,B,u,1);mr(t,v)}var w},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=e,p=cr(h),f=a||!p,B=or.get(e);if(B&&(B.flags|=8,or.delete(e)),d&&(i(u),i(c)),a&&i(l),!B&&(p||d)&&16&s)for(let m=0;m<o.length;m++){const e=o[m];r(e,t,n,f,!!e.dynamicChildren)}},move:fr,hydrate:function(e,t,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:u,createText:c}},d){function h(e,n){let r=n;for(;r;){if(r&&8===r.nodeType)if("teleport start anchor"===r.data)t.targetStart=r;else if("teleport anchor"===r.data){t.targetAnchor=r,e._lpa=t.targetAnchor&&s(t.targetAnchor);break}r=s(r)}}function p(e,t){t.anchor=d(s(e),t,o(e),n,r,i,a)}const f=t.target=pr(t.props,l),B=cr(t.props);if(f){const l=f._lpa||f.firstChild;16&t.shapeFlag&&(B?(p(e,t),h(f,l),t.targetAnchor||gr(f,t,c,u,o(e)===f?e:null)):(t.anchor=s(e),h(f,l),t.targetAnchor||gr(f,t,c,u),d(l&&s(l),t,f,n,r,i,a))),mr(t,B)}else B&&16&t.shapeFlag&&(p(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}};function mr(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function gr(e,t,n,r,i=null){const a=t.targetStart=n(""),s=t.targetAnchor=n("");return a[lr]=s,e&&(r(a,e,i),r(s,e,i)),s}const vr=Symbol("_leaveCb"),yr=Symbol("_enterCb");function Cr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return pi(()=>{e.isMounted=!0}),mi(()=>{e.isUnmounting=!0}),e}const _r=[Function,Array],br={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_r,onEnter:_r,onAfterEnter:_r,onEnterCancelled:_r,onBeforeLeave:_r,onLeave:_r,onAfterLeave:_r,onLeaveCancelled:_r,onBeforeAppear:_r,onAppear:_r,onAfterAppear:_r,onAppearCancelled:_r},wr=e=>{const t=e.subTree;return t.component?wr(t.component):t};function Dr(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==Ja){t=n;break}return t}const Er={name:"BaseTransition",props:br,setup(e,{slots:t}){const n=ks(),r=Cr();return()=>{const i=t.default&&Ar(t.default(),!0),a=i&&i.length?Dr(i):n.subTree?ms():void 0;if(!a)return;const s=Jt(e),{mode:o}=s;
16if(r.isLeaving)return xr(a);const l=Tr(a);if(!l)return xr(a);let u=Sr(l,s,r,n,e=>u=e);l.type!==Ja&&Or(l,u);let c=n.subTree&&Tr(n.subTree);if(c&&c.type!==Ja&&!os(c,l)&&wr(n).type!==Ja){let e=Sr(c,s,r,n);if(Or(c,e),"out-in"===o&&l.type!==Ja)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,c=void 0},xr(a);"in-out"===o&&l.type!==Ja?e.delayLeave=(e,t,n)=>{kr(r,c)[String(c.key)]=c,e[vr]=()=>{t(),e[vr]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function kr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Sr(e,t,n,r,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:f,onLeaveCancelled:B,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,C=String(e.key),_=kr(n,e),b=(e,t)=>{e&&kn(e,r,9,t)},w=(e,t)=>{const n=t[1];b(e,t),S(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},D={mode:s,persisted:o,beforeEnter(t){let r=l;if(!n.isMounted){if(!a)return;r=m||l}t[vr]&&t[vr](!0);const i=_[C];i&&os(e,i)&&i.el[vr]&&i.el[vr](),b(r,[t])},enter(t){if(_[C]===e)return;let r=u,i=c,s=d;if(!n.isMounted){if(!a)return;r=g||u,i=v||c,s=y||d}let o=!1;t[yr]=e=>{o||(o=!0,b(e?s:i,[t]),D.delayedLeave&&D.delayedLeave(),t[yr]=void 0)};const l=t[yr].bind(null,!1);r?w(r,[t,l]):l()},leave(t,r){const i=String(e.key);if(t[yr]&&t[yr](!0),n.isUnmounting)return r();b(h,[t]);let a=!1;t[vr]=n=>{a||(a=!0,r(),b(n?B:f,[t]),t[vr]=void 0,_[i]===e&&delete _[i])};const s=t[vr].bind(null,!1);_[i]=e,p?w(p,[t,s]):s()},clone(e){const a=Sr(e,t,n,r,i);return i&&i(a),a}};return D}function xr(e){if(ei(e))return(e=ps(e)).children=null,e}function Tr(e){if(!ei(e))return ur(e.type)&&e.children?Dr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&A(n.default))return n.default()}}function Or(e,t){if(6&e.shapeFlag&&e.component){e.transition=t;const n=e.component.subTree;Or(ur(n.type)&&Tr(n)||n,t)}else 128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ar(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let s=e[a];const o=null==n?s.key:String(n)+String(null!=s.key?s.key:a);s.type===Wa?(128&s.patchFlag&&i++,r=r.concat(Ar(s.children,t,o))):(t||s.type!==Ja)&&r.push(null!=o?ps(s,{key:o}):s)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Ir(e,t){return A(e)?(()=>w({name:e.name},t,{setup:e}))():e}function Pr(){const e=ks();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Nr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Rr(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Mr=new WeakMap;function Fr(e,t,n,r,i=!1){if(S(e))return void e.forEach((e,a)=>Fr(e,t&&(S(t)?t[a]:t),n,r,i));if(Zr(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&Fr(e,t,n,r.component.subTree));const a=4&r.shapeFlag?Us(r.component):r.el,s=i?null:a,{i:o,r:l}=e,u=t&&t.r,c=o.refs===g?o.refs={}:o.refs,d=o.setupState,h=Jt(d),p=d===g?C:e=>!Rr(c,e)&&k(h,e),f=(e,t)=>!t||!Rr(c,t);if(null!=u&&u!==l)if(Lr(t),I(u))c[u]=null,p(u)&&(d[u]=null);else if(Xt(u)){const e=t;f(0,e.k)&&(u.value=null),e.k&&(c[e.k]=null)}if(A(l))En(l,o,12,[s,c]);else{const t=I(l),r=Xt(l);if(t||r){const o=()=>{if(e.f){const n=t?p(l)?d[l]:c[l]:f()||!e.k?l.value:c[e.k];if(i)S(n)&&D(n,a);else if(S(n))n.includes(a)||n.push(a);else if(t)c[l]=[a],p(l)&&(d[l]=c[l]);else{const t=[a];f(0,e.k)&&(l.value=t),e.k&&(c[e.k]=t)}}else t?(c[l]=s,p(l)&&(d[l]=s)):r&&(f(0,e.k)&&(l.value=s),e.k&&(c[e.k]=s))};if(s){const t=()=>{o(),Mr.delete(e)};t.id=-1,Mr.set(e,t),xa(t,n)}else Lr(e),o()}}}function Lr(e){const t=Mr.get(e);t&&(t.flags|=8,Mr.delete(e))}let jr=!1;const Hr=()=>{jr||(jr=!0)},Ur=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Gr=e=>8===e.nodeType;function Yr(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:o,insert:l,createComment:u}}=e,c=(n,r,o,u,v,y=!1)=>{y=y||!!r.dynamicChildren;const C=Gr(n)&&"["===n.data,_=()=>f(n,r,o,u,v,C),{type:b,ref:w,shapeFlag:D,patchFlag:E}=r;let k=n.nodeType;r.el=n,-2===E&&(y=!1,r.dynamicChildren=null);let S=null;switch(b){case za:3!==k?""===r.children?(l(r.el=i(""),s(n),n),S=n):S=_():(n.data!==r.children&&(Hr(),n.data=r.children),S=a(n));break;case Ja:g(n)?(S=a(n),m(r.el=n.content.firstChild,n,o)):S=8!==k||C?_():a(n);break;case Ka:if(C&&(k=(n=a(n)).nodeType),1===k||3===k){S=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===S.nodeType?S.outerHTML:S.data),t===r.staticCount-1&&(r.anchor=S),S=a(S);return C?a(S):S}_();break;case Wa:S=C?p(n,r,o,u,v,y):_();break;default:if(1&D)S=1===k&&r.type.toLowerCase()===n.tagName.toLowerCase()||g(n)?d(n,r,o,u,v,y):_();else if(6&D){r.slotScopeIds=v;const e=s(n);if(S=C?B(n):Gr(n)&&"teleport start"===n.data?B(n,n.data,"teleport end"):a(n),t(r,e,null,o,u,Ur(e),y),(Zr(r)||r.component.asyncDep)&&!r.component.subTree){let t;C?(t=ds(Ka),t.anchor=S?S.previousSibling:e.lastChild):t=3===n.nodeType?fs(""):ds(8===n.nodeType?Ja:"div"),t.el=n,r.component.subTree=t}}else 64&D?S=8!==k?_():r.type.hydrate(n,r,o,u,v,y,e,h):128&D&&(S=r.type.hydrate(n,r,o,u,Ur(s(n)),v,y,e,c))}return null!=w&&Fr(w,null,u,r),S},d=(e,t,n,i,a,s)=>{s=s||!!t.dynamicChildren;const{type:l,dynamicProps:u,props:c,patchFlag:d,shapeFlag:p,dirs:f,transition:B}=t,v="input"===l||"option"===l,y=!!u;if(v||y||-1!==d){f&&Kn(t,null,n,"created");let l,C=!1;if(g(e)){C=Na(null,B)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;if(C){const e=r.getAttribute("class");e&&(r.$cls=e),B.beforeEnter(r)}m(r,e,n),t.el=e=r}if(16&p&&(!c||!c.innerHTML&&!c.textContent)){let r=h(e.firstChild,t,e,n,i,a,s);for(r&&!zr(e,1)&&Hr();r;){const e=r;r=r.nextSibling,o(e)}}else if(8&p){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,"\n")&&(zr(e,0)||Hr(),e.textContent=t.children)}if(c)if(v||y||!s||48&d){const t=e.tagName.includes("-"),i=e.namespaceURI.includes("svg")?"svg":e.namespaceURI.includes("MathML")?"mathml":void 0;for(const a in c)if(v&&(a.endsWith("value")||"indeterminate"===a)||_(a)&&!H(a)||"."===a[0]||t&&!H(a)||u&&u.includes(a)){if(qr(e,a,c[a]))continue;r(e,a,null,c[a],i,n)}}else if(c.onClick)r(e,"onClick",null,c.onClick,void 0,n);else if(4&d&&qt(c.style))for(const e in c.style)c.style[e];(l=c&&c.onVnodeBeforeMount)&&_s(l,n,t),f&&Kn(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||f||C)&&qa(()=>{l&&_s(l,n,t),C&&B.enter(e),f&&Kn(t,null,n,"mounted")},i)}return e.nextSibling},h=(e,t,r,s,o,u,d)=>
16{d=d||!!t.dynamicChildren;const h=t.children,p=h.length;let f=!1;for(let B=0;B<p;B++){const t=d?h[B]:h[B]=gs(h[B]),m=t.type===za;e?(m&&!d&&B+1<p&&gs(h[B+1]).type===za&&(l(i(e.data.slice(t.children.length)),r,a(e)),e.data=t.children),e=c(e,t,s,o,u,d)):m&&!t.children?l(t.el=i(""),r):(f||(f=!0,zr(r,1)||Hr()),n(null,t,r,null,s,o,Ur(r),u))}return e},p=(e,t,n,r,i,o)=>{const{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);const d=s(e),p=h(a(e),t,d,n,r,i,o);return p&&Gr(p)&&"]"===p.data?a(t.anchor=p):(Hr(),l(t.anchor=u("]"),d,p),p)},f=(e,t,r,i,l,u)=>{if(function(e,t){return zr(e.parentElement,1)||function(e){return 1===e.nodeType&&Jr(e.getAttribute($r),1)}(e)||function({props:e}){const t=e&&e[$r];return"string"==typeof t&&Jr(t,1)}(t)}(e,t)||Hr(),t.el=null,u){const t=B(e);for(;;){const n=a(e);if(!n||n===t)break;o(n)}}const c=a(e),d=s(e);return o(e),n(null,t,d,c,r,i,Ur(d),l),r&&(r.vnode.el=t.el,pa(r,t.el)),c},B=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&Gr(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},m=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},g=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Hn(),void(t._vnode=e);c(t.firstChild,e,null,null,null),Hn(),t._vnode=e},c]}const Vr=new Set(["src","srcset","href","poster"]);function qr(e,t,n){return!!Vr.has(t)&&e.getAttribute(t)===(null==n?null:`${n}`)}const $r="data-allow-mismatch",Wr={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function zr(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute($r);)e=e.parentElement;return Jr(e&&e.getAttribute($r),t)}function Jr(e,t){if(null==e)return!1;if(""===e)return!0;{const n=e.split(",");return!(0!==t||!n.includes("children"))||n.includes(Wr[t])}}const Kr=te().requestIdleCallback||(e=>setTimeout(e,1)),Qr=te().cancelIdleCallback||(e=>clearTimeout(e)),Zr=e=>!!e.type.__asyncLoader;function Xr(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=ds(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const ei=e=>e.type.__isKeepAlive,ti={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ks(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,a=new Set;let s=null;const o=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,h=d("div");function p(e){li(e),c(e,n,o,!0)}function f(e){i.forEach((t,n)=>{const r=Gs(Zr(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&B(n)})}function B(e){const t=i.get(e);!t||s&&os(t,s)?s&&li(s):p(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{const a=e.component;u(e,t,n,0,o),l(a.vnode,e,t,n,a,o,r,e.slotScopeIds,i),xa(()=>{a.isDeactivated=!1,a.a&&K(a.a);const t=e.props&&e.props.onVnodeMounted;t&&_s(t,a.parent,e)},o)},r.deactivate=e=>{const t=e.component;Fa(t.m),Fa(t.a),u(e,h,null,1,o),xa(()=>{t.da&&K(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&_s(n,t.parent,e),t.isDeactivated=!0},o)},rr(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>ri(e,t)),t&&f(e=>!ri(t,e))},{flush:"post",deep:!0});let m=null;const g=()=>{null!=m&&(ja(n.subTree.type)?xa(()=>{const e=ui(n.subTree);e.component&&i.set(m,e)},n.subTree.suspense):i.set(m,ui(n.subTree)))};return pi(g),Bi(g),mi(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,i=ui(t);if(e.type===i.type&&e.key===i.key){li(i);const e=i.component.da;return void(e&&xa(e,r))}p(e)})}),()=>{if(m=null,!t.default)return s=null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!ss(r)||!(4&r.shapeFlag||128&r.shapeFlag))return s=null,r;let o=ui(r);if(o.type===Ja)return s=null,o;const l=o.type,u=Gs(Zr(o)?o.type.__asyncResolved||{}:l),{include:c,exclude:d,max:h}=e;if(c&&(!u||!ri(c,u))||d&&u&&ri(d,u))return o.shapeFlag&=-257,s=o,r;const p=null==o.key?l:o.key,f=i.get(p);return o.el&&(o=ps(o),128&r.shapeFlag&&(r.ssContent=o)),m=p,f?(o.el=f.el,o.component=f.component,o.transition&&Or(o,o.transition),o.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),h&&a.size>parseInt(h,10)&&B(a.values().next().value)),o.shapeFlag|=256,s=o,ja(r.type)?r:o}}},ni=ti;function ri(e,t){return S(e)?e.some(e=>ri(e,t)):I(e)?e.split(",").includes(t):"[object RegExp]"===F(e)&&(e.lastIndex=0,e.test(t))}function ii(e,t){si(e,"a",t)}function ai(e,t){si(e,"da",t)}function si(e,t,n=Es){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ci(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ei(e.parent.vnode)&&oi(r,t,n,e),e=e.parent}}function oi(e,t,n,r){const i=ci(t,e,r,!0);gi(()=>{D(r[t],i)},n)}function li(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ui(e){return 128&e.shapeFlag?e.ssContent:e}function ci(e,t,n=Es,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{ze();const i=Ts(n),a=kn(t,n,e,r);return i(),Je(),a});return r?i.unshift(a):i.push(a),a}}const di=e=>(t,n=Es)=>{Ns&&"sp"!==e||ci(e,(...e)=>t(...e),n)},hi=di("bm"),pi=di("m"),fi=di("bu"),Bi=di("u"),mi=di("bum"),gi=di("um"),vi=di("sp"),yi=di("rtg"),Ci=di("rtc");function _i(e,t=Es){ci("ec",e,t)}const bi="components";function wi(e,t){return Si(bi,e,!0,t)||e}const Di=Symbol.for("v-ndc");function Ei(e){return I(e)?Si(bi,e,!1)||e:e||Di}function ki(e){return Si("directives",e)}function Si(e,t,n=!0,r=!1){const i=qn||Es;if(i){const n=i.type;if(e===bi){const e=Gs(n,!1);if(e&&(e===t||e===V(t)||e===W(V(t))))return n}const a=xi(i[e]||n[e],t)||xi(i.appContext[e],t);return!a&&r?n:a}}function xi(e,t){return e&&(e[t]||e[V(t)]||e[W(V(t))])}function Ti(e,t,n,r){let i;const a=n&&n[r],s=S(e);if(s||I(e)){let n=!1,r=!1;s&&qt(e)&&(n=!Wt(e),r=$t(e),e=lt(e)),i=new Array(e.length);for(let s=0,o=e.length;s<o;
16s++)i[s]=t(n?r?Zt(Qt(e[s])):Qt(e[s]):e[s],s,void 0,a&&a[s])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(N(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,s=n.length;r<s;r++){const s=n[r];i[r]=t(e[s],s,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Oi(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(S(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ai(e,t,n,r,i,a){if(null==n&&(n={}),qn.ce||qn.parent&&Zr(qn.parent)&&qn.parent.ce){const e=null!=a&&null==n.key?w({},n,{key:a}):n,i=Object.keys(e).length>0;return"default"!==t&&(e.name=t),Xa(),as(Wa,null,[ds("slot",e,r&&r())],i?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const o=Qa.length;let l;Xa();try{const i=s&&Ii(s(n)),o=n.key||a||i&&i.key;l=as(Wa,{key:(o&&!P(o)?o:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&1===e._?64:-2)}catch(u){for(let e=Qa.length;e>o;e--)es();throw u}finally{s&&s._c&&(s._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function Ii(e){return e.some(e=>!ss(e)||e.type!==Ja&&!(e.type===Wa&&!Ii(e.children)))?e:null}const Pi=e=>e?As(e)?Us(e):Pi(e.parent):null,Ni=w(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Pi(e.parent),$root:e=>Pi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qi(e),$forceUpdate:e=>e.f||(e.f=()=>{Mn(e.update)}),$nextTick:e=>e.n||(e.n=Rn.bind(e.proxy)),$watch:e=>ar.bind(e)}),Ri=(e,t)=>e!==g&&!e.__isScriptSetup&&k(e,t),Mi={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:l}=e;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(Ri(r,t))return s[t]=1,r[t];if(i!==g&&k(i,t))return s[t]=2,i[t];if(k(a,t))return s[t]=3,a[t];if(n!==g&&k(n,t))return s[t]=4,n[t];Ui&&(s[t]=0)}}const u=Ni[t];let c,d;return u?("$attrs"===t&&at(e.attrs,0,""),u(e)):(c=o.__cssModules)&&(c=c[t])?c:n!==g&&k(n,t)?(s[t]=4,n[t]):(d=l.config.globalProperties,k(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return Ri(i,t)?(i[t]=n,!0):r!==g&&k(r,t)?(r[t]=n,!0):!(k(e.props,t)||"$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:s}},o){let l;return!!(n[o]||e!==g&&"$"!==o[0]&&k(e,o)||Ri(t,o)||k(a,o)||k(r,o)||k(Ni,o)||k(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Fi=w({},Mi,{get(e,t){if(t!==Symbol.unscopables)return Mi.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!ne(t)});function Li(){return ji().slots}function ji(e){const t=ks();return t.setupContext||(t.setupContext=Hs(t))}function Hi(e){return S(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Ui=!0;function Gi(e){const t=qi(e),n=e.proxy,r=e.ctx;Ui=!1,t.beforeCreate&&Yi(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:o,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:p,updated:f,activated:B,deactivated:m,beforeDestroy:g,beforeUnmount:v,destroyed:C,unmounted:_,render:b,renderTracked:w,renderTriggered:D,errorCaptured:E,serverPrefetch:k,expose:x,inheritAttrs:T,components:O,directives:I,filters:P}=t;if(u&&function(e,t){S(e)&&(e=Ji(e));for(const n in e){const r=e[n];let i;i=N(r)?"default"in r?Zn(r.from||n,r.default,!0):Zn(r.from||n):Zn(r),Xt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(u,r),s)for(const y in s){const e=s[y];A(e)&&(r[y]=e.bind(n))}if(i){const t=i.call(n,n);N(t)&&(e.data=Ht(t))}if(Ui=!0,a)for(const S in a){const e=a[S],t=A(e)?e.bind(n,n):A(e.get)?e.get.bind(n,n):y,i=!A(e)&&A(e.set)?e.set.bind(n):y,s=Ys({get:t,set:i});Object.defineProperty(r,S,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(o)for(const y in o)Vi(o[y],r,n,y);if(l){const e=A(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Qn(t,e[t])})}function R(e,t){S(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(c&&Yi(c,e,"c"),R(hi,d),R(pi,h),R(fi,p),R(Bi,f),R(ii,B),R(ai,m),R(_i,E),R(Ci,w),R(yi,D),R(mi,v),R(gi,_),R(vi,k),S(x))if(x.length){const t=e.exposed||(e.exposed={});
16x.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===y&&(e.render=b),null!=T&&(e.inheritAttrs=T),O&&(e.components=O),I&&(e.directives=I),k&&Nr(e)}function Yi(e,t,n){kn(S(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vi(e,t,n,r){let i=r.includes(".")?sr(n,r):()=>n[r];if(I(e)){const n=t[e];A(n)&&rr(i,n)}else if(A(e))rr(i,e.bind(n));else if(N(e))if(S(e))e.forEach(e=>Vi(e,t,n,r));else{const r=A(e.handler)?e.handler.bind(n):t[e.handler];A(r)&&rr(i,r,e)}}function qi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let l;return o?l=o:i.length||n||r?(l={},i.length&&i.forEach(e=>$i(l,e,s,!0)),$i(l,t,s)):l=t,N(t)&&a.set(t,l),l}function $i(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&$i(e,a,n,!0),i&&i.forEach(t=>$i(e,t,n,!0));for(const s in t)if(r&&"expose"===s);else{const r=Wi[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}const Wi={data:zi,props:Zi,emits:Zi,methods:Qi,computed:Qi,beforeCreate:Ki,created:Ki,beforeMount:Ki,mounted:Ki,beforeUpdate:Ki,updated:Ki,beforeDestroy:Ki,beforeUnmount:Ki,destroyed:Ki,unmounted:Ki,activated:Ki,deactivated:Ki,errorCaptured:Ki,serverPrefetch:Ki,components:Qi,directives:Qi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=w(Object.create(null),e);for(const r in t)n[r]=Ki(e[r],t[r]);return n},provide:zi,inject:function(e,t){return Qi(Ji(e),Ji(t))}};function zi(e,t){return t?e?function(){return w(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function Ji(e){if(S(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ki(e,t){return e?[...new Set([].concat(e,t))]:t}function Qi(e,t){return e?w(Object.create(null),e,t):t}function Zi(e,t){return e?S(e)&&S(t)?[...new Set([...e,...t])]:w(Object.create(null),Hi(e),Hi(null!=t?t:{})):t}function Xi(){return{app:null,config:{isNativeTag:C,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ea=0;function ta(e,t){return function(n,r=null){A(n)||(n=w({},n)),null==r||N(r)||(r=null);const i=Xi(),a=new WeakSet,s=[];let o=!1;const l=i.app={_uid:ea++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:$s,get config(){return i.config},set config(e){},use:(e,...t)=>(a.has(e)||(e&&A(e.install)?(a.add(e),e.install(l,...t)):A(e)&&(a.add(e),e(l,...t))),l),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),l),component:(e,t)=>t?(i.components[e]=t,l):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,l):i.directives[e],mount(a,s,u){if(!o){const c=l._ceVNode||ds(n,r);return c.appContext=i,!0===u?u="svg":!1===u&&(u=void 0),s&&t?t(c,a):e(c,a,u),o=!0,l._container=a,a.__vue_app__=l,Us(c.component)}},onUnmount(e){s.push(e)},unmount(){o&&(kn(s,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,l),runWithContext(e){const t=na;na=l;try{return e()}finally{na=t}}};return l}}let na=null;const ra=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${V(t)}Modifiers`]||e[`${$(t)}Modifiers`];function ia(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||g;let i=n;const a=t.startsWith("update:"),s=a&&ra(r,t.slice(7));let o;s&&(s.trim&&(i=n.map(e=>I(e)?e.trim():e)),s.number&&(i=i.map(Z)));let l=r[o=z(t)]||r[o=z(V(t))];!l&&a&&(l=r[o=z($(t))]),l&&kn(l,e,6,i);const u=r[o+"Once"];if(u){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,kn(u,e,6,i)}}const aa=new WeakMap;function sa(e,t,n=!1){const r=n?aa:t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let s={},o=!1;if(!A(e)){const r=e=>{const n=sa(e,t,!0);n&&(o=!0,w(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||o?(S(a)?a.forEach(e=>s[e]=null):w(s,a),N(e)&&r.set(e,s),s):(N(e)&&r.set(e,null),null)}function oa(e,t){return!(!e||!_(t))&&(t="Once"===(t=t.slice(2))?t:t.replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,$(t))||k(e,t))}function la(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:l,render:u,renderCache:c,props:d,data:h,setupState:p,ctx:f,inheritAttrs:B}=e,m=Wn(e);let g,v;try{if(4&n.shapeFlag){const e=i||r,t=e;g=gs(u.call(t,e,c,d,p,h,f)),v=o}else{const e=t;g=gs(e.length>1?e(d,{attrs:o,slots:s,emit:l}):e(d,null)),v=t.props?o:ua(o)}}catch(C){Qa.length=0,Sn(C,e,1),g=ds(Ja)}let y=g;if(v&&!1!==B){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(a&&e.some(b)&&(v=ca(v,a)),y=ps(y,v,!1,!0))}return n.dirs&&(y=ps(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Or(ur(y.type)&&Tr(y)||y,n.transition),g=y,Wn(m),g}const ua=e=>{let t;for(const n in e)("class"===n||"style"===n||_(n))&&((t||(t={}))[n]=e[n]);return t},ca=(e,t)=>{const n={};for(const r in e)b(r)&&r.slice(9)in t||(n[r]=e[r]);return n};
16function da(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(ha(t,e,a)&&!oa(n,a))return!0}return!1}function ha(e,t,n){const r=e[n],i=t[n];return"style"===n&&N(r)&&N(i)?!Ce(r,i):r!==i}function pa({vnode:e,parent:t,suspense:n},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n!==e)break;(e=t.vnode).el=r,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=r)}const fa={},Ba=()=>Object.create(fa),ma=e=>Object.getPrototypeOf(e)===fa;function ga(e,t,n,r){const[i,a]=e.propsOptions;let s,o=!1;if(t)for(let l in t){if(H(l))continue;const u=t[l];let c;i&&k(i,c=V(l))?a&&a.includes(c)?(s||(s={}))[c]=u:n[c]=u:oa(e.emitsOptions,l)||l in r&&u===r[l]||(r[l]=u,o=!0)}if(a){const t=Jt(n),r=s||g;for(let s=0;s<a.length;s++){const o=a[s];n[o]=va(i,t,o,r[o],e,!k(r,o))}}return o}function va(e,t,n,r,i,a){const s=e[n];if(null!=s){const e=k(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&A(e)){const{propsDefaults:a}=i;if(n in a)r=a[n];else{const s=Ts(i);r=a[n]=e.call(null,t),s()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!e?r=!1:!s[1]||""!==r&&r!==$(n)||(r=!0))}return r}const ya=new WeakMap;function Ca(e,t,n=!1){const r=n?ya:t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},o=[];let l=!1;if(!A(e)){const r=e=>{l=!0;const[n,r]=Ca(e,t,!0);w(s,n),r&&o.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!l)return N(e)&&r.set(e,v),v;if(S(a))for(let c=0;c<a.length;c++){const e=V(a[c]);_a(e)&&(s[e]=g)}else if(a)for(const c in a){const e=V(c);if(_a(e)){const t=a[c],n=s[e]=S(t)||A(t)?{type:t}:w({},t),r=n.type;let i=!1,l=!0;if(S(r))for(let e=0;e<r.length;++e){const t=r[e],n=A(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(l=!1)}else i=A(r)&&"Boolean"===r.name;n[0]=i,n[1]=l,(i||k(n,"default"))&&o.push(e)}}const u=[s,o];return N(e)&&r.set(e,u),u}function _a(e){return"$"!==e[0]&&!H(e)}const ba=e=>"_"===e||"_ctx"===e||"$stable"===e,wa=e=>S(e)?e.map(gs):[gs(e)],Da=(e,t,n)=>{if(t._n)return t;const r=zn((...e)=>wa(t(...e)),n);return r._c=!1,r},Ea=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ba(i))continue;const n=e[i];if(A(n))t[i]=Da(0,n,r);else if(null!=n){const e=wa(n);t[i]=()=>e}}},ka=(e,t)=>{const n=wa(t);e.slots.default=()=>n},Sa=(e,t,n)=>{for(const r in t)!n&&ba(r)||(e[r]=t[r])},xa=qa;function Ta(e){return Aa(e)}function Oa(e){return Aa(e,Yr)}function Aa(e,t){te().__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:a,createText:s,createComment:o,setText:l,setElementText:u,parentNode:c,nextSibling:d,setScopeId:h=y,insertStaticContent:p}=e,f=(e,t,n,r=null,i=null,a=null,s=void 0,o=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(r=W(e),j(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===v&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case za:B(e,t,n,r);break;case Ja:m(e,t,n,r);break;case Ka:null==e&&C(t,n,r,s);break;case Wa:T(e,t,n,r,i,a,s,o,l);break;default:1&d?_(e,t,n,r,i,a,s,o,l):6&d?O(e,t,n,r,i,a,s,o,l):(64&d||128&d)&&u.process(e,t,n,r,i,a,s,o,l,Q)}null!=c&&i?Fr(c,e&&e.ref,a,t||e,!t):null==c&&e&&null!=e.ref&&Fr(e.ref,null,a,e,!0)},B=(e,t,r,i)=>{if(null==e)n(t.el=s(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},m=(e,t,r,i)=>{null==e?n(t.el=o(t.children||""),r,i):t.el=e.el},C=(e,t,n,r)=>{[e.el,e.anchor]=p(e.children,t,n,r,e.el,e.anchor)},_=(e,t,n,r,i,a,s,o,l)=>{if("svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e)b(t,n,r,i,a,s,o,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),E(e,t,i,a,s,o,l)}finally{n&&n._endPatch()}}},b=(e,t,r,s,o,l,c,d)=>{let h,p;const{props:f,shapeFlag:B,transition:m,dirs:g}=e;if(h=e.el=a(e.type,l,f&&f.is,f),8&B?u(h,e.children):16&B&&D(e.children,h,null,s,o,Ia(e,l),c,d),g&&Kn(e,null,s,"created"),w(h,e,e.scopeId,c,s),f){for(const e in f)"value"===e||H(e)||i(h,e,null,f[e],l,s);"value"in f&&i(h,"value",null,f.value,l),(p=f.onVnodeBeforeMount)&&_s(p,s,e)}g&&Kn(e,null,s,"beforeMount");const v=Na(o,m);v&&m.beforeEnter(h),n(h,t,r),((p=f&&f.onVnodeMounted)||v||g)&&xa(()=>{try{p&&_s(p,s,e),v&&m.enter(h),g&&Kn(e,null,s,"mounted")}finally{}},o)},w=(e,t,n,r,i)=>{if(n&&h(e,n),r)for(let a=0;a<r.length;a++)h(e,r[a]);if(i){let n=i.subTree;if(t===n||ja(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=i.vnode;w(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},D=(e,t,n,r,i,a,s,o,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=o?vs(e[u]):gs(e[u]);f(null,l,t,n,r,i,a,s,o)}},E=(e,t,n,r,a,s,o)=>{const l=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:h}=t;c|=16&e.patchFlag;const p=e.props||g,f=t.props||g;let B;if(n&&Pa(n,!1),(B=f.onVnodeBeforeUpdate)&&_s(B,n,t,e),h&&Kn(t,e,n,"beforeUpdate"),n&&Pa(n,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(c=0,o=!1,d=null),(p.innerHTML&&null==f.innerHTML||p.textContent&&null==f.textContent)&&u(l,""),d?S(e.dynamicChildren,d,l,n,r,Ia(t,a),s):o||R(e,t,l,null,n,r,Ia(t,a),s,!1),c>0){if(16&c)x(l,p,f,n,a);else if(2&c&&p.class!==f.class&&i(l,"class",null,f.class,a),4&c&&i(l,"style",p.style,f.style,a),8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],s=p[r],o=f[r];o===s&&"value"!==r||i(l,r,s,o,a,n)}}1&c&&e.children!==t.children&&u(l,t.children)}else o||null!=d||x(l,p,f,n,a);((B=f.onVnodeUpdated)||h)&&xa(()=>{B&&_s(B,n,t,e),h&&Kn(t,e,n,"updated")},r)},S=(e,t,n,r,i,a,s)=>{for(let o=0;o<t.length;o++){const l=e[o],u=t[o],d=l.el&&(l.type===Wa||!os(l,u)||198&l.shapeFlag)?c(l.el):n;f(l,u,d,null,r,i,a,s,!0)}},x=(e,t,n,r,a)=>{if(t!==n){if(t!==g)for(const s in t)H(s)||s in n||i(e,s,t[s],null,a,r);for(const s in n){if(H(s))continue;const o=n[s],l=t[s];o!==l&&"value"!==s&&i(e,s,l,o,a,r)}"value"in n&&i(e,"value",t.value,n.value,a)}},T=(e,t,r,i,a,o,l,u,c)=>{const d=t.el=e?e.el:s(""),h=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:B}=t;B&&(u=u?u.concat(B):B),null==e?(n(d,r,i),n(h,r,i),D(t.children||[],r,h,a,o,l,u,c)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(S(e.dynamicChildren,f,r,a,o,l,u),(null!=t.key||a&&t===a.subTree)&&Ra(e,t,!0)):R(e,t,r,h,a,o,l,u,c)},O=(e,t,n,r,i,a,s,o,l)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,l):A(t,n,r,i,a,s,l):I(e,t,l)},A=(e,t,n,r,i,a,s)=>
16{const o=e.component=Ds(e,r,i);if(ei(e)&&(o.ctx.renderer=Q),Rs(o,!1,s),o.asyncDep){if(i&&i.registerDep(o,P,s),!e.el){const r=o.subTree=ds(Ja);m(null,r,t,n),e.placeholder=r.el}}else P(o,e,t,n,i,a,s)},I=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!o||o&&o.$stable)||r!==s&&(r?!s||da(r,s,u):!!s);if(1024&l)return!0;if(16&l)return r?da(r,s,u):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ha(s,r,n)&&!oa(u,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return t.el=e.el,void N(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},P=(e,t,n,r,i,a,s)=>{e.scope.on();const o=e.effect=new Pe(()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:o,vnode:u}=e;{const n=Ma(e);if(n)return t&&(t.el=u.el,N(e,t,s)),void n.asyncDep.then(()=>{xa(()=>{e.isUnmounted||l()},i)})}let d,h=t;Pa(e,!1),t?(t.el=u.el,N(e,t,s)):t=u,n&&K(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&_s(d,o,t,u),Pa(e,!0);const p=la(e),B=e.subTree;e.subTree=p,f(B,p,c(B.el),W(B),e,i,a),t.el=p.el,null===h&&pa(e,p.el),r&&xa(r,i),(d=t.props&&t.props.onVnodeUpdated)&&xa(()=>_s(d,o,t,u),i)}else{let s;const{el:o,props:l}=t,{bm:u,m:c,parent:d,root:h,type:p}=e,B=Zr(t);if(Pa(e,!1),u&&K(u),!B&&(s=l&&l.onVnodeBeforeMount)&&_s(s,d,t),Pa(e,!0),o&&X){const t=()=>{e.subTree=la(e),X(o,e.subTree,e,i,null)};B&&p.__asyncHydrate?p.__asyncHydrate(o,e,t):t()}else{h.ce&&h.ce._hasShadowRoot()&&h.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const s=e.subTree=la(e);f(null,s,n,r,e,i,a),t.el=s.el}if(c&&xa(c,i),!B&&(s=l&&l.onVnodeMounted)){const e=t;xa(()=>_s(s,d,e),i)}(256&t.shapeFlag||d&&Zr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&xa(e.a,i),e.isMounted=!0,t=n=r=null}});e.scope.off();const l=e.update=o.run.bind(o),u=e.job=o.runIfDirty.bind(o);u.i=e,u.id=e.uid,o.scheduler=()=>Mn(u),Pa(e,!0),l()},N=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=Jt(i),[l]=e.propsOptions;let u=!1;if(!(r||s>0)||16&s){let r;ga(e,t,i,a)&&(u=!0);for(const a in o)t&&(k(t,a)||(r=$(a))!==a&&k(t,r))||(l?!n||void 0===n[a]&&void 0===n[r]||(i[a]=va(l,o,a,void 0,e,!0)):delete i[a]);if(a!==o)for(const e in a)t&&k(t,e)||(delete a[e],u=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(oa(e.emitsOptions,s))continue;const c=t[s];if(l)if(k(a,s))c!==a[s]&&(a[s]=c,u=!0);else{const t=V(s);i[t]=va(l,o,t,c,e,!1)}else c!==a[s]&&(a[s]=c,u=!0)}}u&&st(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=g;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:Sa(i,t,n):(a=!t.$stable,Ea(t,i)),s=t}else t&&(ka(e,t),s={default:1});if(a)for(const o in i)ba(o)||null!=s[o]||delete i[o]})(e,t.children,n),ze(),jn(e),Je()},R=(e,t,n,r,i,a,s,o,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void F(c,h,n,r,i,a,s,o,l);if(256&p)return void M(c,h,n,r,i,a,s,o,l)}8&f?(16&d&&q(c,i,a),h!==c&&u(n,h)):16&d?16&f?F(c,h,n,r,i,a,s,o,l):q(c,i,a,!0):(8&d&&u(n,""),16&f&&D(h,n,r,i,a,s,o,l))},M=(e,t,n,r,i,a,s,o,l)=>{t=t||v;const u=(e=e||v).length,c=t.length,d=Math.min(u,c);let h;for(h=0;h<d;h++){const r=t[h]=l?vs(t[h]):gs(t[h]);f(e[h],r,n,null,i,a,s,o,l)}u>c?q(e,i,a,!0,!1,d):D(t,n,r,i,a,s,o,l,d)},F=(e,t,n,r,i,a,s,o,l)=>{let u=0;const c=t.length;let d=e.length-1,h=c-1;for(;u<=d&&u<=h;){const r=e[u],c=t[u]=l?vs(t[u]):gs(t[u]);if(!os(r,c))break;f(r,c,n,null,i,a,s,o,l),u++}for(;u<=d&&u<=h;){const r=e[d],u=t[h]=l?vs(t[h]):gs(t[h]);if(!os(r,u))break;f(r,u,n,null,i,a,s,o,l),d--,h--}if(u>d){if(u<=h){const e=h+1,d=e<c?t[e].el:r;for(;u<=h;)f(null,t[u]=l?vs(t[u]):gs(t[u]),n,d,i,a,s,o,l),u++}}else if(u>h)for(;u<=d;)j(e[u],i,a,!0),u++;else{const p=u,B=u,m=new Map;for(u=B;u<=h;u++){const e=t[u]=l?vs(t[u]):gs(t[u]);null!=e.key&&m.set(e.key,u)}let g,y=0;const C=h-B+1;let _=!1,b=0;const w=new Array(C);for(u=0;u<C;u++)w[u]=0;for(u=p;u<=d;u++){const r=e[u];if(y>=C){j(r,i,a,!0);continue}let c;if(null!=r.key)c=m.get(r.key);else for(g=B;g<=h;g++)if(0===w[g-B]&&os(r,t[g])){c=g;break}void 0===c?j(r,i,a,!0):(w[c-B]=u+1,c>=b?b=c:_=!0,f(r,t[c],n,null,i,a,s,o,l),y++)}const D=_?function(e){const t=e.slice(),n=[0];let r,i,a,s,o;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,e[n[o]]<l?a=o+1:s=o;l<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}(w):v;for(g=D.length-1,u=C-1;u>=0;u--){const e=B+u,d=t[e],h=t[e+1],p=e+1<c?h.el||La(h):r;0===w[u]?f(null,d,n,p,i,a,s,o,l):_&&(g<0||u!==D[g]?L(d,n,p,2):g--)}}},L=(e,t,i,a,s=null)=>{const{el:o,type:l,transition:u,children:c,shapeFlag:h}=e;if(6&h)L(e.component.subTree,t,i,a);else if(128&h)e.suspense.move(t,i,a);else if(64&h)l.move(e,t,i,Q);else if(l!==Wa)if(l!==Ka)if(2!==a&&1&h&&u)if(0===a)u.persisted&&!o[vr]?n(o,t,i):(u.beforeEnter(o),n(o,t,i),xa(()=>u.enter(o),s));else{const{leave:a,delayLeave:s,afterLeave:l}=u,c=()=>{e.ctx.isUnmounted?r(o):n(o,t,i)},d=()=>{const e=o._isLeaving||!!o[vr];o._isLeaving&&o[vr](!0),u.persisted&&!e?c():a(o,()=>{c(),l&&l()})};s?s(o,c,d):d()}else n(o,t,i);else(({el:e,anchor:t},r,i)=>{let a;for(;e&&e!==t;)a=d(e),n(e,r,i),e=a;n(t,r,i)})(e,t,i);else{n(o,t,i);for(let e=0;e<c.length;e++)L(c[e],t,i,a);n(e.anchor,t,i)}},j=(e,t,n,r=!1,i=!1)=>{const{type:a,props:s,ref:o,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h,cacheIndex:p,memo:f}=e;if((-2===d||u&&u.hasOnce)&&(i=!1),null!=o&&(ze(),Fr(o,null,n,e,!0),Je()),null==p||e.ctx&&e.ctx!==t||(t.renderCache[p]=void 0),256&c)return void t.ctx.deactivate(e);const B=1&c&&h,m=!Zr(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&_s(g,t,e),6&c)Y(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);B&&Kn(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,Q,r):u&&!u.hasOnce&&(a!==Wa||d>0&&64&d)?q(u,t,n,!1,!0):(a===Wa&&384&d||!i&&16&c)&&q(l,t,n),r&&U(e)}const v=null!=f&&null==p;(m&&(g=s&&s.onVnodeUnmounted)||B||v)&&xa(()=>{g&&_s(g,t,e),B&&Kn(e,null,t,"unmounted"),v&&(e.el=null)},n)},U=e=>{const{type:t,el:n,anchor:i,transition:a}=e;if(t===Wa)return void G(n,i);if(t===Ka)return(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)})(e),void(a&&!a.persisted&&a.afterLeave&&a.afterLeave());const s=()=>{r(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:r}=a,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},G=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)}
16,Y=(e,t,n)=>{const{bum:r,scope:i,job:a,subTree:s,um:o,m:l,a:u}=e;Fa(l),Fa(u),r&&K(r),i.stop(),a?(a.flags|=8,j(s,e,t,n)):e.vnode.el&&s&&(s.transition=e.vnode.transition,j(s,e,t,n)),o&&xa(o,t),xa(()=>{e.isUnmounted=!0},t)},q=(e,t,n,r=!1,i=!1,a=0)=>{for(let s=a;s<e.length;s++)j(e[s],t,n,r,i)},W=e=>{if(6&e.shapeFlag)return W(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=d(e.anchor||e.el),n=t&&t[lr];return n?d(n):t};let z=!1;const J=(e,t,n)=>{let r;null==e?t._vnode&&(j(t._vnode,null,null,!0),r=t._vnode.component):f(t._vnode||null,e,t,null,null,null,n),t._vnode=e,z||(z=!0,jn(r),Hn(),z=!1)},Q={p:f,um:j,m:L,r:U,mt:A,mc:D,pc:R,pbc:S,n:W,o:e};let Z,X;return t&&([Z,X]=t(Q)),{render:J,hydrate:Z,createApp:ta(J,Z)}}function Ia({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Na(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ra(e,t,n=!1){const r=e.children,i=t.children;if(S(r)&&S(i))for(let a=0;a<r.length;a++){const e=r[a];let t=i[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[a]=vs(i[a]),t.el=e.el),n||-2===t.patchFlag||Ra(e,t)),t.type===za&&(-1===t.patchFlag&&(t=i[a]=vs(t)),t.el=e.el),t.type!==Ja||t.el||(t.el=e.el)}}function Ma(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ma(t)}function Fa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function La(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?La(t.subTree):null}const ja=e=>e.__isSuspense;let Ha=0;const Ua={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,o,l,u){if(null==e)!function(e,t,n,r,i,a,s,o,l){const{p:u,o:{createElement:c}}=l,d=c("div"),h=e.suspense=Ya(e,i,r,t,d,n,a,s,o,l);u(null,h.pendingBranch=e.ssContent,d,null,r,h,a,s),h.deps>0?(Ga(e,"onPending"),Ga(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,a,s),$a(h,e.ssFallback)):h.resolve(!1,!0)}(t,n,r,i,a,s,o,l,u);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,i,a,s,o,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:B,isInFallback:m,isHydrating:g}=d;if(B)d.pendingBranch=h,os(B,h)?(d.deps++,l(B,h,g?n:d.hiddenContainer,null,i,d,a,s,o),d.deps--,d.deps<=0?d.resolve():m&&(g||d.isFallbackMountPending||(l(f,p,n,r,i,null,a,s,o),$a(d,p)))):(d.pendingId=Ha++,g?(d.isHydrating=!1,d.activeBranch=B):u(B,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),m?(l(null,h,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0?d.resolve():d.isFallbackMountPending||(l(f,p,n,r,i,null,a,s,o),$a(d,p))):f&&os(f,h)?(l(f,h,n,r,i,d,a,s,o),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0&&d.resolve()));else if(f&&os(f,h))l(f,h,n,r,i,d,a,s,o),$a(d,h);else if(Ga(t,"onPending"),d.pendingBranch=h,512&h.shapeFlag?d.pendingId=h.component.suspenseId:d.pendingId=Ha++,l(null,h,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,i,s,o,l,u)}},hydrate:function(e,t,n,r,i,a,s,o,l){const u=t.suspense=Ya(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,o,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,a,s);return 0===u.deps&&u.resolve(!1,!0),c},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Va(r?n.default:n),e.ssFallback=r?Va(n.fallback):ds(Ja)}};function Ga(e,t){const n=e.props&&e.props[t];A(n)&&n()}function Ya(e,t,n,r,i,a,s,o,l,u,c=!1){const{p:d,m:h,um:p,n:f,o:{parentNode:B,remove:m}}=u;let g;const v=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);v&&t&&t.pendingBranch&&(g=t.pendingId,t.deps++);const y=e.props?X(e.props.timeout):void 0,C=a,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:Ha++,timeout:"number"==typeof y?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:i,pendingBranch:s,pendingId:o,effects:l,parentComponent:u,container:c,isInFallback:d}=_;let m=!1;if(_.isHydrating)_.isHydrating=!1;else if(!e){m=i&&s.transition&&"out-in"===s.transition.mode;let e=!1;m&&(i.transition.afterLeave=()=>{o===_.pendingId&&(h(s,c,a!==C||e?a:f(i),0),Ln(l),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!_.isFallbackMountPending&&(B(i.el)===c&&(a=f(i),e=!0),p(i,u,_,!0),!m&&d&&r.ssFallback&&xa(()=>
16r.ssFallback.el=null,_)),m||h(s,c,a,0)}_.isFallbackMountPending=!1,$a(_,s),_.pendingBranch=null,_.isInFallback=!1;let y=_.parent,b=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<l.length;e++)y.effects.push(l[e]);b=!0;break}y=y.parent}b||m||Ln(l),_.effects=[],v&&t&&t.pendingBranch&&g===t.pendingId&&(g=void 0,t.deps--,0!==t.deps||n||t.resolve()),Ga(r,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=_;Ga(t,"onFallback");const s=f(n),u=()=>{if(_.isFallbackMountPending=!1,!_.isInFallback)return;const e=_.vnode.ssFallback;d(null,e,i,s,r,null,a,o,l),$a(_,e)},c=e.transition&&"out-in"===e.transition.mode;c&&(_.isFallbackMountPending=!0,n.transition.afterLeave=u),_.isInFallback=!0,p(n,r,null,!0),c||u()},move(e,t,n){_.activeBranch&&h(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const r=!!_.pendingBranch;r&&_.deps++;const i=e.vnode.el;e.asyncDep.catch(t=>{Sn(t,e,0)}).then(a=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;if(Os(),i&&!e.scope.active)return void(r&&0===--_.deps&&_.resolve());e.asyncResolved=!0;const{vnode:o}=e;Ms(e,a,!1),i&&(o.el=i);const l=!i&&e.subTree.el;t(e,o,B(i||e.subTree.el),i?null:f(e.subTree),_,s,n),l&&(o.placeholder=null,m(l)),pa(e,o.el),r&&0===--_.deps&&_.resolve()})},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&p(_.activeBranch,n,e,t),_.pendingBranch&&p(_.pendingBranch,n,e,t)}};return _}function Va(e){let t;if(A(e)){const n=ts&&e._c;n&&(e._d=!1,Xa()),e=e(),n&&(e._d=!0,t=Za,es())}if(S(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!ss(r))return;if(r.type!==Ja||"v-if"===r.children){if(t)return;t=r}}return t}(e);e=t}return e=gs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function qa(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Ln(e)}function $a(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,pa(r,i))}const Wa=Symbol.for("v-fgt"),za=Symbol.for("v-txt"),Ja=Symbol.for("v-cmt"),Ka=Symbol.for("v-stc"),Qa=[];let Za=null;function Xa(e=!1){Qa.push(Za=e?null:[])}function es(){Qa.pop(),Za=Qa[Qa.length-1]||null}let ts=1;function ns(e,t=!1){ts+=e,e<0&&Za&&t&&(Za.hasOnce=!0)}function rs(e){return e.dynamicChildren=ts>0?Za||v:null,es(),ts>0&&Za&&Za.push(e),e}function is(e,t,n,r,i,a){return rs(cs(e,t,n,r,i,a,!0))}function as(e,t,n,r,i){return rs(ds(e,t,n,r,i,!0))}function ss(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}const ls=({key:e})=>null!=e?e:null,us=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?I(e)||Xt(e)||A(e)?{i:qn,r:e,k:t,f:!!n}:e:null);function cs(e,t=null,n=null,r=0,i=null,a=(e===Wa?0:1),s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ls(t),ref:t&&us(t),scopeId:$n,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:qn};return o?(ys(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=I(n)?8:16),ts>0&&!s&&Za&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&Za.push(l),l}const ds=function(e,t=null,n=null,r=0,i=null,a=!1){if(e&&e!==Di||(e=Ja),ss(e)){const r=ps(e,t,!0);return n&&ys(r,n),ts>0&&!a&&Za&&(6&r.shapeFlag?Za[Za.indexOf(e)]=r:Za.push(r)),r.patchFlag=-2,r}var s;if(A(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=hs(t);let{class:e,style:n}=t;e&&!I(e)&&(t.class=le(e)),N(n)&&(zt(n)&&!S(n)&&(n=w({},n)),t.style=re(n))}const o=I(e)?1:ja(e)?128:ur(e)?64:N(e)?4:A(e)?2:0;return cs(e,t,n,r,i,o,a,!0)};function hs(e){return e?zt(e)||ma(e)?w({},e):e:null}function ps(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?Cs(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ls(u),ref:t&&t.ref?n&&a?S(a)?a.concat(us(t)):[a,us(t)]:us(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Wa?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ps(e.ssContent),ssFallback:e.ssFallback&&ps(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return l&&r&&Or(c,l.clone(c)),c}function fs(e=" ",t=0){return ds(za,null,e,t)}function Bs(e,t){const n=ds(Ka,null,e);return n.staticCount=t,n}
16function ms(e="",t=!1){return t?(Xa(),as(Ja,null,e)):ds(Ja,null,e)}function gs(e){return null==e||"boolean"==typeof e?ds(Ja):S(e)?ds(Wa,null,e.slice()):ss(e)?vs(e):ds(za,null,String(e))}function vs(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ps(e)}function ys(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(S(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ys(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||ma(t)?3===r&&qn&&(1===qn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=qn}}else if(A(t)){if(65&r)return void ys(e,{default:t});t={default:t,_ctx:qn},n=32}else t=String(t),64&r?(n=16,t=[fs(t)]):n=8;e.children=t,e.shapeFlag|=n}function Cs(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=le([t.class,r.class]));else if("style"===e)t.style=re([t.style,r.style]);else if(_(e)){const n=t[e],i=r[e];!i||n===i||S(n)&&n.includes(i)?null!=i||null!=n||b(e)||(t[e]=i):t[e]=n?[].concat(n,i):i}else""!==e&&(t[e]=r[e])}return t}function _s(e,t,n,r=null){kn(e,t,7,[n,r])}const bs=Xi();let ws=0;function Ds(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||bs,a={uid:ws++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ca(r,i),emitsOptions:sa(r,i),emit:null,emitted:null,propsDefaults:g,inheritAttrs:r.inheritAttrs,ctx:g,data:g,props:g,attrs:g,slots:g,refs:g,setupState:g,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=ia.bind(null,a),e.ce&&e.ce(a),a}let Es=null;const ks=()=>Es||qn;let Ss,xs;{const e=te(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ss=t("__VUE_INSTANCE_SETTERS__",e=>Es=e),xs=t("__VUE_SSR_SETTERS__",e=>Ns=e)}const Ts=e=>{const t=Es;return Ss(e),e.scope.on(),()=>{e.scope.off(),Ss(t)}},Os=()=>{Es&&Es.scope.off(),Ss(null)};function As(e){return 4&e.vnode.shapeFlag}let Is,Ps,Ns=!1;function Rs(e,t=!1,n=!1){t&&xs(t);const{props:r,children:i}=e.vnode,a=As(e);!function(e,t,n,r=!1){const i={},a=Ba();e.propsDefaults=Object.create(null),ga(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:Ut(i):e.type.props?e.props=i:e.props=a,e.attrs=a}(e,r,a,t),((e,t,n)=>{const r=e.slots=Ba();if(32&e.vnode.shapeFlag){const e=t._;e?(Sa(r,t,n),n&&Q(r,"_",e,!0)):Ea(t,r)}else t&&ka(e,t)})(e,i,n||t);const s=a?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mi);const{setup:r}=n;if(r){ze();const n=e.setupContext=r.length>1?Hs(e):null,i=Ts(e),a=En(r,e,0,[e.props,n]),s=R(a);if(Je(),i(),!s&&!e.sp||Zr(e)||Nr(e),s){if(a.then(Os,Os),t)return a.then(n=>{xs(!0);try{Ms(e,n,t)}finally{xs(!1)}}).catch(t=>{Sn(t,e,0)});e.asyncDep=a}else Ms(e,a,t)}else Ls(e,t)}(e,t):void 0;return t&&xs(!1),s}function Ms(e,t,n){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:N(t)&&(e.setupState=ln(t)),Ls(e,n)}function Fs(e){Is=e,Ps=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Fi))}}function Ls(e,t,n){const r=e.type;if(!e.render){if(!t&&Is&&!r.render){const t=r.template||qi(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=r,o=w(w({isCustomElement:n,delimiters:a},i),s);r.render=Is(t,o)}}e.render=r.render||y,Ps&&Ps(e)}{const t=Ts(e);ze();try{Gi(e)}finally{Je(),t()}}}const js={get:(e,t)=>(at(e,0,""),e[t])};function Hs(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,js),slots:e.slots,emit:e.emit,expose:t}}function Us(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ln(Kt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ni?Ni[n](e):void 0,has:(e,t)=>t in e||t in Ni})):e.proxy}function Gs(e,t=!0){return A(e)?e.displayName||e.name:e.name||t&&e.__name}const Ys=(e,t)=>gn(e,0,Ns);function Vs(e,t,n){try{ns(-1);const r=arguments.length;return 2===r?N(t)&&!S(t)?ss(t)?ds(e,null,[t]):ds(e,t):ds(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&ss(n)&&(n=[n]),ds(e,t,n))}finally{ns(1)}}function qs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(J(n[r],t[r]))return!1;return ts>0&&Za&&Za.push(e),!0}const $s="3.5.43",Ws=y,zs=Dn,Js=Yn,Ks=function e(t,n){var r,i;Yn=t,Yn?(Yn.enabled=!0,Vn.forEach(({event:e,args:t})=>Yn.emit(e,...t)),Vn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{Yn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vn=[])},3e3)):Vn=[]},Qs={createComponentInstance:Ds,setupComponent:Rs,renderComponentRoot:la,setCurrentRenderingInstance:Wn,isVNode:ss,normalizeVNode:gs,getComponentPublicInstance:Us,ensureValidVNode:Ii,pushWarningContext:function(e){wn.push(e)},popWarningContext:function(){wn.pop()}};
17/**
18    * @vue/runtime-dom v3.5.43
19    * (c) 2018-present Yuxi (Evan) You and Vue contributors
20    * @license MIT
21    **/
22let Zs;const Xs="undefined"!=typeof window&&window.trustedTypes;if(Xs)try{Zs=Xs.createPolicy("vue",{createHTML:e=>e})}catch(zle){}const eo=Zs?e=>Zs.createHTML(e):e=>e,to="undefined"!=typeof document?document:null,no=to&&to.createElement("template"),ro={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?to.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?to.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?to.createElement(e,{is:n}):to.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>to.createTextNode(e),createComment:e=>to.createComment(e),setText:(e,t)=>
vendor: 4,508 bytes, line 22
22{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>to.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{no.innerHTML=eo("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const i=no.content;if("svg"===r||"mathml"===r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},io="transition",ao="animation",so=Symbol("_vtc"),oo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},lo=w({},br,oo),uo=(e=>(e.displayName="Transition",e.props=lo,e))((e,{slots:t})=>Vs(Er,po(e),t)),co=(e,t=[])=>{S(e)?e.forEach(e=>e(...t)):e&&e(...t)},ho=e=>!!e&&(S(e)?e.some(e=>e.length>1):e.length>1);function po(e){const t={};for(const w in e)w in oo||(t[w]=e[w]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:c=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(N(e))return[fo(e.enter),fo(e.leave)];{const t=fo(e);return[t,t]}}(i),B=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:v,onEnterCancelled:y,onLeave:C,onLeaveCancelled:_,onBeforeAppear:b=g,onAppear:D=v,onAppearCancelled:E=y}=t,k=(e,t,n,r)=>{e._enterCancelled=r,mo(e,t?c:o),mo(e,t?u:s),n&&n()},S=(e,t)=>{e._isLeaving=!1,mo(e,d),mo(e,p),mo(e,h),t&&t()},x=e=>(t,n)=>{const i=e?D:v,s=()=>k(t,e,n);co(i,[t,s]),go(()=>{mo(t,e?l:a),Bo(t,e?c:o),ho(i)||yo(t,r,B,s)})};return w(t,{onBeforeEnter(e){co(g,[e]),Bo(e,a),Bo(e,s)},onBeforeAppear(e){co(b,[e]),Bo(e,l),Bo(e,u)},onEnter:x(!1),onAppear:x(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>S(e,t);Bo(e,d),e._enterCancelled?(Bo(e,h),wo(e)):(wo(e),Bo(e,h)),go(()=>{e._isLeaving&&(mo(e,d),Bo(e,p),ho(C)||yo(e,r,m,n))}),co(C,[e,n])},onEnterCancelled(e){k(e,!1,void 0,!0),co(y,[e])},onAppearCancelled(e){k(e,!0,void 0,!0),co(E,[e])},onLeaveCancelled(e){S(e),co(_,[e])}})}function fo(e){return X(e)}function Bo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[so]||(e[so]=new Set)).add(t)}function mo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[so];n&&(n.delete(t),n.size||(e[so]=void 0))}function go(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vo=0;function yo(e,t,n,r){const i=e._endId=++vo,a=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(a,n);const{type:s,timeout:o,propCount:l}=Co(e,t);if(!s)return r();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,h),a()},h=t=>{t.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},o+1),e.addEventListener(u,h)}function Co(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${io}Delay`),a=r(`${io}Duration`),s=_o(i,a),o=r(`${ao}Delay`),l=r(`${ao}Duration`),u=_o(o,l);let c=null,d=0,h=0;return t===io?s>0&&(c=io,d=s,h=a.length):t===ao?u>0&&(c=ao,d=u,h=l.length):(d=Math.max(s,u),c=d>0?s>u?io:ao:null,h=c?c===io?a.length:l.length:0),{type:c,timeout:d,propCount:h,hasTransform:c===io&&/\b(?:transform|all)(?:,|$)/.test(r(`${io}Property`).toString())}}function _o(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>bo(t)+bo(e[n])))}function bo(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function wo(e){return(e?e.ownerDocument:document).body.offsetHeight}const Do=Symbol("_vod"),Eo=Symbol("_vsh"),ko={name:"show",beforeMount(e,{value:t},{transition:n}){e[Do]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):So(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),So(e,!0),r.enter(e)):r.leave(e,()=>{So(e,!1)}):So(e,t))},beforeUnmount(e,{value:t}){So(e,t)}};function So(e,t){e.style.display=t?e[Do]:"none",e[Eo]=!t}const xo=Symbol("");function To(e){const t=ks();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}
22"]`)).forEach(e=>Ao(e,n))},r=()=>{const r=e(t.proxy);t.ce?Ao(t.ce,r):Oo(t.subTree,r),n(r)};fi(()=>{Ln(r)}),pi(()=>{rr(r,y,{flush:"post"});const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),gi(()=>e.disconnect())})}function Oo(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Oo(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ao(e.el,t);else if(e.type===Wa)e.children.forEach(e=>Oo(e,t));else if(e.type===Ka){let{el:n,anchor:r}=e;for(;n&&(Ao(n,t),n!==r);)n=n.nextSibling}}function Ao(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t){const i=ke(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[xo]=r}}const Io=/(?:^|;)\s*display\s*:/,Po=/\s*!important$/;function No(e,t,n){if(S(n))n.forEach(n=>No(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))Po.test(n)?e.setProperty(t,n.replace(Po,""),"important"):e.setProperty(t,n);else{const r=function(e,t){const n=Mo[t];if(n)return n;let r=V(t);if("filter"!==r&&r in e)return Mo[t]=r;r=W(r);for(let i=0;i<Ro.length;i++){const n=Ro[i]+r;if(n in e)return Mo[t]=n}return t}(e,t);Po.test(n)?e.setProperty($(r),n.replace(Po,""),"important"):e[r]=n}}const Ro=["Webkit","Moz","ms"],Mo={};function Fo(e,t,n,r){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&I(r)&&n===r}const Lo="http://www.w3.org/1999/xlink";function jo(e,t,n,r,i,a=fe(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Lo,t.slice(6,t.length)):e.setAttributeNS(Lo,t,n):null==n||a&&!Be(n)?e.removeAttribute(t):e.setAttribute(t,a?"":P(n)?String(n):n)}function Ho(e,t,n,r,i){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?eo(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const r="OPTION"===a?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=Be(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(zle){}s&&e.removeAttribute(i||t)}function Uo(e,t,n,r){e.addEventListener(t,n,r)}const Go=Symbol("_vei");function Yo(e,t,n,r,i=null){const a=e[Go]||(e[Go]={}),s=a[t];if(r&&s)s.value=r;else{const[n,o]=function(e){let t,n;for(;(n=e.match(Vo))&&!qo.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;const r=":"===e[2]?e.slice(3):$(e.slice(2));return[r,t]}(t);if(r){const s=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const r=n.value;if(S(r)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const i=r.slice(),a=[e];for(let r=0;r<i.length&&!e._stopped;r++){const e=i[r];e&&kn(e,t,5,a)}}else kn(r,t,5,[e])};return n.value=e,n.attached=$o||(Wo.then(()=>$o=0),$o=Date.now()),n}(r,i);Uo(e,n,s,o)}else s&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),a[t]=void 0)}}const Vo=/(Once|Passive|Capture)$/,qo=/^on:?(?:Once|Passive|Capture)$/;let $o=0;const Wo=Promise.resolve(),zo=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jo=(e,t,n,r,i,a)=>{const s="svg"===i;"class"===t?function(e,t,n){const r=e[so];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){const r=e.style,i=I(n);let a=!1;if(n&&!i){if(t)if(I(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&No(r,t,"")}else for(const e in t)null==n[e]&&No(r,e,"");for(const i in n){"display"===i&&(a=!0);const s=n[i];null!=s?Fo(e,i,!I(t)&&t?t[i]:void 0,s)||No(r,i,s):No(r,i,"")}}else if(i){if(t!==n){const e=r[xo];e&&(n+=";"+e),r.cssText=n,a=Io.test(n)}}else t&&e.removeAttribute("style");Do in e&&(e[Do]=a?r.display:"",e[Eo]&&(r.display="none"))}(e,n,r):_(t)?b(t)||Yo(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&zo(t)&&A(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!zo(t)||!I(n))&&t in e}(e,t,r,s))?(Ho(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||jo(e,t,r,s,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const r=V(t);return Array.isArray(n)?n.some(e=>V(e)===r):Object.keys(n).some(e=>V(e)===r)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!I(r)))?Ho(e,V(t),r,0,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),jo(e,t,r,s))},Ko={};
vendor: 3,775 bytes, line 22
22function Qo(e,t,n){let r=Ir(e,t);L(r)&&(r=w({},r,t));class i extends Xo{constructor(e){super(r,e,n)}}return i.def=r,i}const Zo="undefined"!=typeof HTMLElement?HTMLElement:class{};class Xo extends Zo{constructor(e,t={},n=jl){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==jl?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(w({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof Xo){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Rn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let i;if(n&&!S(n))for(const a in n){const e=n[a];(e===Number||e&&e.type===Number)&&(a in this._props&&(this._props[a]=X(this._props[a])),(i||(i=Object.create(null)))[V(a)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)k(this,n)||Object.defineProperty(this,n,{get:()=>an(t[n])})}_resolveProps(e){const{props:t}=e,n=S(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r]);for(const r of n.map(V))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Ko;const r=V(e);t&&this._numberProps&&this._numberProps[r]&&(n=X(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Ko?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute($(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute($(e),t+""):t||this.removeAttribute($(e)),n&&n.observe(this,{attributes:!0})}}
22_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Ll(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=ds(this._def,w(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,L(t[0])?w({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),$(e)!==e&&t($(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let s=null;for(let o=e.length-1;o>=0;o--){const l=document.createElement("style");r&&l.setAttribute("nonce",r),l.textContent=e[o],i.insertBefore(l,s||a),s=l,0===o&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],i=r.getAttribute("name")||"default",a=this._slots[i],s=r.parentNode;if(a)for(const e of a){if(t&&1===e.nodeType){const n=t+"-s",r=document.createTreeWalker(e,1);let i;for(e.setAttribute(n,"");i=r.nextNode();)i.setAttribute(n,"")}s.insertBefore(e,r)}else for(;r.firstChild;)s.insertBefore(r.firstChild,r);s.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}function el(e){const t=ks(),n=t&&t.ce;return n||null}const tl=new WeakMap,nl=new WeakMap,rl=Symbol("_moveCb"),il=Symbol("_enterCb"),al=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:w({},lo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ks(),r=Cr();let i,a;return Bi(()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),i=e[so];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=Co(r);return a.removeChild(r),s}(i[0].el,n.vnode.el,t))return void(i=[]);i.forEach(ol),i.forEach(ll);const r=i.filter(ul);wo(n.vnode.el),r.forEach(e=>{const n=e.el,r=n.style;Bo(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[rl]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",i),n[rl]=null,mo(n,t))};n.addEventListener("transitionend",i)}),i=[]}
22),()=>{const s=Jt(e),o=po(s);let l=s.tag||Wa;if(i=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&!t.el[Eo]&&(i.push(t),Or(t,Sr(t,o,r,n)),tl.set(t,cl(t.el)))}a=t.default?Ar(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&Or(t,Sr(t,o,r,n))}return ds(l,null,a)}}}),sl=al;function ol(e){const t=e.el;t[rl]&&t[rl](),t[il]&&t[il]()}function ll(e){nl.set(e,cl(e.el))}function ul(e){const t=tl.get(e),n=nl.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el,n=t.style,a=t.getBoundingClientRect();let s=1,o=1;return t.offsetWidth&&(s=a.width/t.offsetWidth),t.offsetHeight&&(o=a.height/t.offsetHeight),Number.isFinite(s)&&0!==s||(s=1),Number.isFinite(o)&&0!==o||(o=1),Math.abs(s-1)<.01&&(s=1),Math.abs(o-1)<.01&&(o=1),n.transform=n.webkitTransform=`translate(${r/s}px,${i/o}px)`,n.transitionDuration="0s",e}}function cl(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const dl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return S(t)?e=>K(t,e):t};function hl(e){e.target.composing=!0}function pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const fl=Symbol("_assign"),Bl=Symbol("_initialValue");function ml(e,t,n){return t&&(e=e.trim()),n&&(e=Z(e)),e}const gl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&("text"===e.type?e[Bl]=e.defaultValue.replace(/[\r\n]/g,""):"textarea"===e.type&&(e[Bl]=e.defaultValue.replace(/\r\n?/g,"\n"))),e[fl]=dl(i);const a=r||i.props&&"number"===i.props.type;Uo(e,t?"change":"input",t=>{t.target.composing||e[fl](ml(e.value,n,a))}),(n||a)&&Uo(e,"change",()=>{e.value=ml(e.value,n,a)}),t||(Uo(e,"compositionstart",hl),Uo(e,"compositionend",pl),Uo(e,"change",pl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const i=null==t?"":t,a=e[Bl];delete e[Bl],void 0===a||"text"!==e.type&&"textarea"!==e.type||e.value===a?e.value=i:e[fl](ml(e.value,n,r))},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[fl]=dl(s),e.composing)return;const o=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Z(e.value))===o)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(i&&e.value.trim()===o)return}e.value=o}},vl={deep:!0,created(e,t,n){e[fl]=dl(n),Uo(e,"change",()=>{const t=e._modelValue,n=wl(e),r=e.checked,i=e[fl];if(S(t)){const e=_e(t,n),a=-1!==e;if(r&&!a)i(t.concat(n));else if(!r&&a){const n=[...t];n.splice(e,1),i(n)}}else if(T(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Dl(e,r))})},mounted:yl,beforeUpdate(e,t,n){e[fl]=dl(n),yl(e,t,n)}};function yl(e,{value:t,oldValue:n},r){let i;if(e._modelValue=t,S(t))i=_e(t,r.props.value)>-1;else if(T(t))i=t.has(r.props.value);else{if(t===n)return;i=Ce(t,Dl(e,!0))}e.checked!==i&&(e.checked=i)}const Cl={created(e,{value:t},n){e.checked=Ce(t,n.props.value),e[fl]=dl(n),Uo(e,"change",()=>{e[fl](wl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[fl]=dl(r),t!==n&&(e.checked=Ce(t,r.props.value))}},_l={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Uo(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Z(wl(e)):wl(e)),r=e.multiple,i=r?T(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?S(i)?t.slice():t:i];try{e[fl](i)}finally{Rn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[fl]=dl(r)},mounted(e,{value:t}){bl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[fl]=dl(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,n&&n[0]===e.multiple&&function(e,t,n){if(!n)return Ce(e,t);if(S(e))return Ce(e,t);if(T(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}(t,n[1],n[0])||bl(e,t)}};function bl(e,t){const n=e.multiple,r=S(t);if(!n||r||T(t)){for(let i=0,a=e.options.length;i<a;i++){const a=e.options[i],s=wl(a);if(n)if(r){const e=typeof s;a.selected="string"===e||"number"===e?t.some(e=>String(e)===String(s)):_e(t,s)>-1}else a.selected=t.has(s);else if(Ce(wl(a),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function wl(e){return"_value"in e?e._value:e.value}function Dl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const El={created(e,t,n){Sl(e,t,n,null,"created")},mounted(e,t,n){Sl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Sl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Sl(e,t,n,r,"updated")}};function kl(e,t){switch(e){case"SELECT":return _l;case"TEXTAREA":return gl;default:switch(t){case"checkbox":return vl;case"radio":return Cl;default:return gl}}}function Sl(e,t,n,r,i){const a=kl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}const xl=["ctrl","shift","alt","meta"],Tl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>
22xl.some(n=>e[`${n}Key`]&&!t.includes(n))},Ol=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Tl[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Al={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Il=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=$(n.key);return t.some(e=>e===r||Al[e]===r)?e(n):void 0})},Pl=w({patchProp:Jo},ro);let Nl,Rl=!1;function Ml(){return Nl||(Nl=Ta(Pl))}function Fl(){return Nl=Rl?Nl:Oa(Pl),Rl=!0,Nl}const Ll=(...e)=>{Ml().render(...e)},jl=(...e)=>{const t=Ml().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Gl(e);if(!r)return;const i=t._component;A(i)||i.render||i.template||(i.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const a=n(r,!1,Ul(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t},Hl=(...e)=>{const t=Fl().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Gl(e);if(t)return n(t,!0,Ul(t))},t};function Ul(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Gl(e){return I(e)?document.querySelector(e):e}let Yl=!1;const Vl=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Er,BaseTransitionPropsValidators:br,Comment:Ja,DeprecationTypes:null,EffectScope:Te,ErrorCodes:{SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ErrorTypeStrings:zs,Fragment:Wa,KeepAlive:ni,ReactiveEffect:Pe,Static:Ka,Suspense:Ua,Teleport:Br,Text:za,TrackOpTypes:{GET:"get",HAS:"has",ITERATE:"iterate"},Transition:uo,TransitionGroup:sl,TriggerOpTypes:{SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},VueElement:Xo,assertNumber:function(e,t){},callWithAsyncErrorHandling:kn,callWithErrorHandling:En,camelize:V,capitalize:W,cloneVNode:ps,compatUtils:null,computed:Ys,createApp:jl,createBlock:as,createCommentVNode:ms,createElementBlock:is,createElementVNode:cs,createHydrationRenderer:Oa,createPropsRestProxy:function(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},createRenderer:Ta,createSSRApp:Hl,createSlots:Oi,createStaticVNode:Bs,createTextVNode:fs,createVNode:ds,customRef:cn,defineAsyncComponent:function(e){A(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:s,suspensible:o=!0,onError:l}=e;let u,c=null,d=0;const h=()=>{let e;return c||(e=c=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>
22t((d++,c=null,h())),()=>n(e),d+1)});throw e}).then(t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return Ir({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(e,t,n){const r=e.isConnected;let i=!1;(t.bu||(t.bu=[])).push(()=>i=!0);const s=()=>{i||!e.parentNode||r&&!e.isConnected||n()},o=a?()=>{const n=a(s,t=>function(e,t){if(Gr(e)&&"["===e.data){let n=1,r=e.nextSibling;for(;r;){if(1===r.nodeType){if(!1===t(r))break}else if(Gr(r))if("]"===r.data){if(0===--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:s;u?o():h().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){const e=Es;if(Nr(e),u)return()=>Xr(u,e);const t=t=>{c=null,Sn(t,e,13,!r)};if(o&&e.suspense||Ns)return h().then(t=>()=>Xr(t,e)).catch(e=>(t(e),()=>r?ds(r,{error:e}):null));const a=en(!1),l=en(),d=en(!!i);let p,f;return gi(()=>{null!=p&&clearTimeout(p),null!=f&&clearTimeout(f)}),i&&(f=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),null!=s&&(p=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!l.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),l.value=e}},s)),h().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&ei(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?c=null:(t(n),l.value=n)}),()=>a.value&&u?Xr(u,e):l.value&&r?ds(r,{error:l.value}):n&&!d.value?Xr(n,e):void 0}})},defineComponent:Ir,defineCustomElement:Qo,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:(e,t)=>Qo(e,t,Hl),defineSlots:function(){return null},devtools:Js,effect:function(e,t){e.effect instanceof Pe&&(e=e.effect.fn);const n=new Pe(e);t&&w(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r},effectScope:function(e){return new Te(e)},getCurrentInstance:ks,getCurrentScope:Oe,getCurrentWatcher:function(){return Cn},getTransitionRawChildren:Ar,guardReactiveProps:hs,h:Vs,handleError:Sn,hasInjectionContext:function(){return!(!ks()&&!na)},hydrate:(...e)=>{Fl().hydrate(...e)},hydrateOnIdle:(e=1e4)=>t=>{const n=Kr(t,{timeout:e});return()=>Qr(n)},hydrateOnInteraction:(e=[])=>(t,n)=>{I(e)&&(e=[e]);let r=!1;const i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(const n of e)t.removeEventListener(n,i)})};return n(t=>{for(const n of e)t.addEventListener(n,i,{once:!0})}),a},hydrateOnMediaQuery:e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},hydrateOnVisible:e=>(t,n)=>{const r=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<s||i>0&&i<s)}(e)?(t(),r.disconnect(),!1):void r.observe(e)}),()=>r.disconnect()},initCustomFormatter:function(){},initDirectivesForSSR:()=>{Yl||(Yl=!0,gl.getSSRProps=({value:e})=>({value:e}),Cl.getSSRProps=({value:e},t)=>{if(t.props&&Ce(t.props.value,e))return{checked:!0}},vl.getSSRProps=({value:e},t)=>
22{if(S(e)){if(t.props&&_e(e,t.props.value)>-1)return{checked:!0}}else if(T(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},El.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=kl(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},ko.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:Zn,isMemoSame:qs,isProxy:zt,isReactive:qt,isReadonly:$t,isRef:Xt,isRuntimeOnly:()=>!Is,isShallow:Wt,isVNode:ss,markRaw:Kt,mergeDefaults:function(e,t){const n=Hi(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?S(e)||A(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?S(e)&&S(t)?e.concat(t):w({},Hi(e),Hi(t)):e||t},mergeProps:Cs,nextTick:Rn,nodeOps:ro,normalizeClass:le,normalizeProps:ue,normalizeStyle:re,onActivated:ii,onBeforeMount:hi,onBeforeUnmount:mi,onBeforeUpdate:fi,onDeactivated:ai,onErrorCaptured:_i,onMounted:pi,onRenderTracked:Ci,onRenderTriggered:yi,onScopeDispose:Ae,onServerPrefetch:vi,onUnmounted:gi,onUpdated:Bi,onWatcherCleanup:_n,openBlock:Xa,patchProp:Jo,popScopeId:function(){$n=null},provide:Qn,proxyRefs:ln,pushScopeId:function(e){$n=e},queuePostFlushCb:Ln,reactive:Ht,readonly:Gt,ref:en,registerRuntimeCompiler:Fs,render:Ll,renderList:Ti,renderSlot:Ai,resolveComponent:wi,resolveDirective:ki,resolveDynamicComponent:Ei,resolveFilter:null,resolveTransitionHooks:Sr,setBlockTracking:ns,setDevtoolsHook:Ks,setTransitionHooks:Or,shallowReactive:Ut,shallowReadonly:Yt,shallowRef:tn,ssrContextKey:Xn,ssrUtils:Qs,stop:function(e){e.effect.stop()},toDisplayString:we,toHandlerKey:z,toHandlers:function(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:z(r)]=e[r];return n},toRaw:Jt,toRef:fn,toRefs:dn,toValue:sn,transformVNodeArgs:function(e){},triggerRef:function(e){e.dep&&e.dep.trigger()},unref:an,useAttrs:function(){return ji().attrs},useCssModule:function(e="$style"){{const t=ks();if(!t)return g;const n=t.type.__cssModules;if(!n)return g;const r=n[e];return r||g}},useCssVars:To,useHost:el,useId:Pr,useModel:function(e,t,n=g){const r=ks(),i=V(t),a=$(t),s=ra(e,i),o=cn((s,o)=>{let l,u,c=g;return nr(()=>{const t=e[i];J(l,t)&&(l=t,o())}),{get:()=>(s(),n.get?n.get(l):l),set(e){const s=n.set?n.set(e):e;if(!(J(s,l)||c!==g&&J(e,c)))return;const d=r.vnode.props,h=!!(d&&(t in d||i in d||a in d)&&(`onUpdate:${t}
22`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d));h||(l=e,o()),r.emit(`update:${t}`,s),J(e,c)&&(J(e,s)&&!J(s,u)||h&&c!==g&&!J(s,l))&&o(),c=e,u=s}}});return o[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||g:o,done:!1}:{done:!0}}},o},useSSRContext:er,useShadowRoot:function(){const e=el();return e&&e.shadowRoot},useSlots:Li,useTemplateRef:function(e){const t=ks(),n=tn(null);if(t){const r=t.refs===g?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n},useTransitionState:Cr,vModelCheckbox:vl,vModelDynamic:El,vModelRadio:Cl,vModelSelect:_l,vModelText:gl,vShow:ko,version:$s,warn:Ws,watch:rr,watchEffect:tr,watchPostEffect:function(e,t){return ir(e,null,{flush:"post"})},watchSyncEffect:nr,withAsyncContext:function(e){const t=ks(),n=Ns;let r=e();Os(),n&&xs(!1);const i=()=>{Ts(t),n&&xs(!0)},a=()=>{ks()!==t&&t.scope.off(),Os(),n&&xs(!1)};return R(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]},withCtx:zn,withDefaults:function(e,t){return null},withDirectives:Jn,withKeys:Il,withMemo:function(e,t,n,r){const i=n[r];if(i&&qs(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a},withModifiers:Ol,withScopeId:e=>zn},Symbol.toStringTag,{value:"Module"})),ql="https://engeplus.com.br/build/assets/404-e13ebdca.png",$l="object"==typeof global&&global&&global.Object===Object&&global;var Wl="object"==typeof self&&self&&self.Object===Object&&self;const zl=$l||Wl||Function("return this")(),Jl=zl.Symbol;var Kl=Object.prototype,Ql=Kl.hasOwnProperty,Zl=Kl.toString,Xl=Jl?Jl.toStringTag:void 0,eu=Object.prototype.toString,tu=Jl?Jl.toStringTag:void 0;function nu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tu&&tu in Object(e)?function(e){var t=Ql.call(e,Xl),n=e[Xl];try{e[Xl]=void 0;var r=!0}catch(zle){}var i=Zl.call(e);return r&&(t?e[Xl]=n:delete e[Xl]),i}(e):function(e){return eu.call(e)}(e)}function ru(e){return null!=e&&"object"==typeof e}function iu(e){return"symbol"==typeof e||ru(e)&&"[object Symbol]"==nu(e)}const au=Array.isArray;var su=Jl?Jl.prototype:void 0,ou=su?su.toString:void 0;function lu(e){if("string"==typeof e)return e;if(au(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(e,lu)+"";if(iu(e))return ou?ou.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var uu=/\s/,cu=/^\s+/;function du(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&uu.test(e.charAt(t)););return t}(e)+1).replace(cu,""):e}function hu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var pu=/^[-+]0x[0-9a-f]+$/i,fu=/^0b[01]+$/i,Bu=/^0o[0-7]+$/i,mu=parseInt;function gu(e){if("number"==typeof e)return e;if(iu(e))return NaN;if(hu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=du(e);var n=fu.test(e);return n||Bu.test(e)?mu(e.slice(2),n?2:8):pu.test(e)?NaN:+e}function vu(e){return e}function yu(e){if(!hu(e))return!1;var t=nu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Cu=zl["__core-js_shared__"];var _u,bu=(_u=/[^.]+$/.exec(Cu&&Cu.keys&&Cu.keys.IE_PROTO||""))?"Symbol(src)_1."+_u:"",wu=Function.prototype.toString;function Du(e){if(null!=e){try{return wu.call(e)}catch(zle){}try{return e+""}catch(zle){}}return""}var Eu=/^\[object .+?Constructor\]$/,ku=Function.prototype,Su=Object.prototype,xu=ku.toString,Tu=Su.hasOwnProperty,Ou=RegExp("^"+xu.call(Tu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Au(e){return!(!hu(e)||(t=e,bu&&bu in t))&&(yu(e)?Ou:Eu).test(Du(e));var t}function Iu(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Au(n)?n:void 0}const Pu=Iu(zl,"WeakMap");var Nu=Object.create,Ru=function(){function e(){}return function(t){if(!hu(t))return{};if(Nu)return Nu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Mu=Ru;function Fu(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Lu=Date.now,ju=function(){try{var e=Iu(Object,"defineProperty");return e({},"",{}),e}catch(zle){}}();const Hu=ju;var Uu,Gu,Yu,Vu=Hu?function(e,t){return Hu(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:vu,qu=(Uu=Vu,Gu=0,Yu=0,function(){var e=Lu(),t=16-(e-Yu);if(Yu=e,t>0){if(++Gu>=800)return arguments[0]}else Gu=0;return Uu.apply(void 0,arguments)});const $u=qu;var Wu=/^(?:0|[1-9]\d*)$/;function zu(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Wu.test(e))&&e>-1&&e%1==0&&e<t}function Ju(e,t,n){"__proto__"==t&&Hu?Hu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ku(e,t){return e===t||e!=e&&t!=t}var Qu=Object.prototype.hasOwnProperty;function Zu(e,t,n){var r=e[t];Qu.call(e,t)&&Ku(r,n)&&(void 0!==n||t in e)||Ju(e,t,n)}function Xu(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=r?r(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),i?Ju(n,o,l):Zu(n,o,l)}return n}var ec=Math.max;function tc(e,t){return $u(function(e,t,n){return t=ec(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ec(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,o)}}(e,t,vu),e+"")}function nc(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function rc(e){return null!=e&&nc(e.length)&&!yu(e)}var ic=Object.prototype;function ac(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ic)}function sc(e){return ru(e)&&"[object Arguments]"==nu(e)}var oc=Object.prototype,lc=oc.hasOwnProperty,uc=oc.propertyIsEnumerable,cc=sc(function(){return arguments}())?sc:function(e){return ru(e)&&lc.call(e,"callee")&&!uc.call(e,"callee")};const dc=cc;var hc="object"==typeof e&&e&&!e.nodeType&&e,pc=hc&&"object"==typeof t&&t&&!t.nodeType&&t,fc=pc&&pc.exports===hc?zl.Buffer:void 0;const Bc=(fc?fc.isBuffer:void 0)||function(){return!1};var mc={};function gc(e){return function(t){return e(t)}}
vendor: 7,575 bytes, line 22
22mc["[object Float32Array]"]=mc["[object Float64Array]"]=mc["[object Int8Array]"]=mc["[object Int16Array]"]=mc["[object Int32Array]"]=mc["[object Uint8Array]"]=mc["[object Uint8ClampedArray]"]=mc["[object Uint16Array]"]=mc["[object Uint32Array]"]=!0,mc["[object Arguments]"]=mc["[object Array]"]=mc["[object ArrayBuffer]"]=mc["[object Boolean]"]=mc["[object DataView]"]=mc["[object Date]"]=mc["[object Error]"]=mc["[object Function]"]=mc["[object Map]"]=mc["[object Number]"]=mc["[object Object]"]=mc["[object RegExp]"]=mc["[object Set]"]=mc["[object String]"]=mc["[object WeakMap]"]=!1;var vc="object"==typeof e&&e&&!e.nodeType&&e,yc=vc&&"object"==typeof t&&t&&!t.nodeType&&t,Cc=yc&&yc.exports===vc&&$l.process;const _c=function(){try{var e=yc&&yc.require&&yc.require("util").types;return e||Cc&&Cc.binding&&Cc.binding("util")}catch(zle){}}();var bc=_c&&_c.isTypedArray;const wc=bc?gc(bc):function(e){return ru(e)&&nc(e.length)&&!!mc[nu(e)]};var Dc=Object.prototype.hasOwnProperty;function Ec(e,t){var n=au(e),r=!n&&dc(e),i=!n&&!r&&Bc(e),a=!n&&!r&&!i&&wc(e),s=n||r||i||a,o=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=o.length;for(var u in e)!t&&!Dc.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||zu(u,l))||o.push(u);return o}function kc(e,t){return function(n){return e(t(n))}}const Sc=kc(Object.keys,Object);var xc=Object.prototype.hasOwnProperty;function Tc(e){return rc(e)?Ec(e):function(e){if(!ac(e))return Sc(e);var t=[];for(var n in Object(e))xc.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Oc=Object.prototype.hasOwnProperty;function Ac(e){if(!hu(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ac(e),n=[];for(var r in e)("constructor"!=r||!t&&Oc.call(e,r))&&n.push(r);return n}function Ic(e){return rc(e)?Ec(e,!0):Ac(e)}var Pc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nc=/^\w*$/;const Rc=Iu(Object,"create");var Mc=Object.prototype.hasOwnProperty,Fc=Object.prototype.hasOwnProperty;function Lc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jc(e,t){for(var n=e.length;n--;)if(Ku(e[n][0],t))return n;return-1}Lc.prototype.clear=function(){this.__data__=Rc?Rc(null):{},this.size=0},Lc.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Lc.prototype.get=function(e){var t=this.__data__;if(Rc){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Mc.call(t,e)?t[e]:void 0},Lc.prototype.has=function(e){var t=this.__data__;return Rc?void 0!==t[e]:Fc.call(t,e)},Lc.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rc&&void 0===t?"__lodash_hash_undefined__":t,this};var Hc=Array.prototype.splice;function Uc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uc.prototype.clear=function(){this.__data__=[],this.size=0},Uc.prototype.delete=function(e){var t=this.__data__,n=jc(t,e);return!(n<0||(n==t.length-1?t.pop():Hc.call(t,n,1),--this.size,0))},Uc.prototype.get=function(e){var t=this.__data__,n=jc(t,e);return n<0?void 0:t[n][1]},Uc.prototype.has=function(e){return jc(this.__data__,e)>-1},Uc.prototype.set=function(e,t){var n=this.__data__,r=jc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Gc=Iu(zl,"Map");function Yc(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Vc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(qc.Cache||Vc),n}Vc.prototype.clear=function(){this.size=0,this.__data__={hash:new Lc,map:new(Gc||Uc),string:new Lc}},Vc.prototype.delete=function(e){var t=Yc(this,e).delete(e);return this.size-=t?1:0,t},Vc.prototype.get=function(e){return Yc(this,e).get(e)},Vc.prototype.has=function(e){return Yc(this,e).has(e)},Vc.prototype.set=function(e,t){var n=Yc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qc.Cache=Vc;var $c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wc=/\\(\\)?/g,zc=function(e){var t=qc(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace($c,function(e,n,r,i){t.push(r?i.replace(Wc,"$1"):n||e)}),t});const Jc=zc;function Kc(e){return null==e?"":lu(e)}function Qc(e,t){return au(e)?e:function(e,t){if(au(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!iu(e))||Nc.test(e)||!Pc.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Jc(Kc(e))}function Zc(e){if("string"==typeof e||iu(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xc(e,t,n){var r=null==e?void 0:function(e,t){for(var n=0,r=(t=Qc(t,e)).length;null!=e&&n<r;)e=e[Zc(t[n++])];return n&&n==r?e:void 0}(e,t);return void 0===r?n:r}function ed(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}const td=kc(Object.getPrototypeOf,Object);var nd=Function.prototype,rd=Object.prototype,id=nd.toString,ad=rd.hasOwnProperty,sd=id.call(Object);function od(e){var t=this.__data__=new Uc(e);this.size=t.size}od.prototype.clear=function(){this.__data__=new Uc,this.size=0},od.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},od.prototype.get=function(e){return this.__data__.get(e)},od.prototype.has=function(e){return this.__data__.has(e)},od.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Uc){var r=n.__data__;if(!Gc||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vc(r)}return n.set(e,t),this.size=n.size,this};var ld="object"==typeof e&&e&&!e.nodeType&&e,ud=ld&&"object"==typeof t&&t&&!t.nodeType&&t,cd=ud&&ud.exports===ld?zl.Buffer:void 0,dd=cd?cd.allocUnsafe:void 0;function hd(e,t){if(t)return e.slice();var n=e.length,r=dd?dd(n):new e.constructor(n);return e.copy(r),r}function pd(){return[]}var fd=Object.prototype.propertyIsEnumerable,Bd=Object.getOwnPropertySymbols,md=Bd?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}(Bd(e),function(t){return fd.call(e,t)}))}:pd;const gd=md;var vd=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ed(t,gd(e)),e=td(e);return t}:pd;const yd=vd;function Cd(e,t,n){var r=t(e);return au(e)?r:ed(r,n(e))}function _d(e){return Cd(e,Tc,gd)}function bd(e){return Cd(e,Ic,yd)}const wd=Iu(zl,"DataView"),Dd=Iu(zl,"Promise"),Ed=Iu(zl,"Set");var kd="[object Map]",Sd="[object Promise]",xd="[object Set]",Td="[object WeakMap]",Od="[object DataView]",Ad=Du(wd),Id=Du(Gc),Pd=Du(Dd),Nd=Du(Ed),Rd=Du(Pu),Md=nu;(wd&&Md(new wd(new ArrayBuffer(1)))!=Od||Gc&&Md(new Gc)!=kd||Dd&&Md(Dd.resolve())!=Sd||Ed&&Md(new Ed)!=xd||Pu&&Md(new Pu)!=Td)&&(Md=function(e){var t=nu(e),n="[object Object]"==t?e.constructor:void 0,r=n?Du(n):"";if(r)switch(r){case Ad:return Od;case Id:return kd;case Pd:return Sd;case Nd:return xd;case Rd:return Td}return t});const Fd=Md;var Ld=Object.prototype.hasOwnProperty;const jd=zl.Uint8Array;function Hd(e){var t=new e.constructor(e.byteLength);return new jd(t).set(new jd(e)),t}
vendor: 5,096 bytes, line 22
22var Ud=/\w*$/,Gd=Jl?Jl.prototype:void 0,Yd=Gd?Gd.valueOf:void 0;function Vd(e,t){var n=t?Hd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function qd(e,t,n){var r,i,a,s=e.constructor;switch(t){case"[object ArrayBuffer]":return Hd(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?Hd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Vd(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(a=new(i=e).constructor(i.source,Ud.exec(i))).lastIndex=i.lastIndex,a;case"[object Symbol]":return r=e,Yd?Object(Yd.call(r)):{}}}function $d(e){return"function"!=typeof e.constructor||ac(e)?{}:Mu(td(e))}var Wd=_c&&_c.isMap;const zd=Wd?gc(Wd):function(e){return ru(e)&&"[object Map]"==Fd(e)};var Jd=_c&&_c.isSet;const Kd=Jd?gc(Jd):function(e){return ru(e)&&"[object Set]"==Fd(e)};var Qd="[object Arguments]",Zd="[object Function]",Xd="[object Object]",eh={};function th(e,t,n,r,i,a){var s,o=1&t,l=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),void 0!==s)return s;if(!hu(e))return e;var c=au(e);if(c){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ld.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!o)return Fu(e,s)}else{var d=Fd(e),h=d==Zd||"[object GeneratorFunction]"==d;if(Bc(e))return hd(e,o);if(d==Xd||d==Qd||h&&!i){if(s=l||h?{}:$d(e),!o)return l?function(e,t){return Xu(e,yd(e),t)}(e,function(e,t){return e&&Xu(t,Ic(t),e)}(s,e)):function(e,t){return Xu(e,gd(e),t)}(e,function(e,t){return e&&Xu(t,Tc(t),e)}(s,e))}else{if(!eh[d])return i?e:{};s=qd(e,d,o)}}a||(a=new od);var p=a.get(e);if(p)return p;a.set(e,s),Kd(e)?e.forEach(function(r){s.add(th(r,t,n,r,e,a))}):zd(e)&&e.forEach(function(r,i){s.set(i,th(r,t,n,i,e,a))});var f=c?void 0:(u?l?bd:_d:l?Ic:Tc)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||e,function(r,i){f&&(r=e[i=r]),Zu(s,i,th(r,t,n,i,e,a))}),s}function nh(e){return th(e,5)}function rh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vc;++t<n;)this.add(e[t])}function ih(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ah(e,t,n,r,i,a){var s=1&n,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,p=2&n?new rh:void 0;for(a.set(e,t),a.set(t,e);++d<o;){var f=e[d],B=t[d];if(r)var m=s?r(B,f,d,t,e,a):r(f,B,d,e,t,a);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!ih(t,function(e,t){if(s=t,!p.has(s)&&(f===e||i(f,e,n,r,a)))return p.push(t);var s})){h=!1;break}}else if(f!==B&&!i(f,B,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function sh(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function oh(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}eh[Qd]=eh["[object Array]"]=eh["[object ArrayBuffer]"]=eh["[object DataView]"]=eh["[object Boolean]"]=eh["[object Date]"]=eh["[object Float32Array]"]=eh["[object Float64Array]"]=eh["[object Int8Array]"]=eh["[object Int16Array]"]=eh["[object Int32Array]"]=eh["[object Map]"]=eh["[object Number]"]=eh[Xd]=eh["[object RegExp]"]=eh["[object Set]"]=eh["[object String]"]=eh["[object Symbol]"]=eh["[object Uint8Array]"]=eh["[object Uint8ClampedArray]"]=eh["[object Uint16Array]"]=eh["[object Uint32Array]"]=!0,eh["[object Error]"]=eh[Zd]=eh["[object WeakMap]"]=!1,rh.prototype.add=rh.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},rh.prototype.has=function(e){return this.__data__.has(e)};var lh=Jl?Jl.prototype:void 0,uh=lh?lh.valueOf:void 0,ch=Object.prototype.hasOwnProperty,dh="[object Arguments]",hh="[object Array]",ph="[object Object]",fh=Object.prototype.hasOwnProperty;function Bh(e,t,n,r,i,a){var s=au(e),o=au(t),l=s?hh:Fd(e),u=o?hh:Fd(t),c=(l=l==dh?ph:l)==ph,d=(u=u==dh?ph:u)==ph,h=l==u;if(h&&Bc(e)){if(!Bc(t))return!1;s=!0,c=!1}if(h&&!c)return a||(a=new od),s||wc(e)?ah(e,t,n,r,i,a):function(e,t,n,r,i,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new jd(e),new jd(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ku(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=sh;case"[object Set]":var l=1&r;if(o||(o=oh),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=ah(o(e),o(t),r,i,a,s);return s.delete(e),c;case"[object Symbol]":if(uh)return uh.call(e)==uh.call(t)}return!1}(e,t,l,n,r,i,a);if(!(1&n)){var p=c&&fh.call(e,"__wrapped__"),f=d&&fh.call(t,"__wrapped__");
vendor: 4,315 bytes, line 22
22if(p||f){var B=p?e.value():e,m=f?t.value():t;return a||(a=new od),i(B,m,n,r,a)}}return!!h&&(a||(a=new od),function(e,t,n,r,i,a){var s=1&n,o=_d(e),l=o.length;if(l!=_d(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:ch.call(t,c)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var f=s;++u<l;){var B=e[c=o[u]],m=t[c];if(r)var g=s?r(m,B,c,t,e,a):r(B,m,c,e,t,a);if(!(void 0===g?B===m||i(B,m,n,r,a):g)){p=!1;break}f||(f="constructor"==c)}if(p&&!f){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,i,a))}function mh(e,t,n,r,i){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!=e&&t!=t:Bh(e,t,n,r,mh,i))}var gh,vh=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),s=a.length;s--;){var o=a[gh?s:++r];if(!1===t(i[o],o,i))break}return e};const yh=vh,Ch=function(){return zl.Date.now()};var _h,bh=Math.max,wh=Math.min;function Dh(e,t,n){var r,i,a,s,o,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,a=i;return r=i=void 0,u=t,s=e.apply(a,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=a}function B(){var e=Ch();if(f(e))return m(e);o=setTimeout(B,function(e){var n=t-(e-l);return d?wh(n,a-(e-u)):n}(e))}function m(e){return o=void 0,h&&r?p(e):(r=i=void 0,s)}function g(){var e=Ch(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===o)return function(e){return u=e,o=setTimeout(B,t),c?p(e):s}(l);if(d)return clearTimeout(o),o=setTimeout(B,t),p(l)}return void 0===o&&(o=setTimeout(B,t)),s}return t=gu(t)||0,hu(n)&&(c=!!n.leading,a=(d="maxWait"in n)?bh(gu(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==o&&clearTimeout(o),u=0,r=l=i=o=void 0},g.flush=function(){return void 0===o?s:m(Ch())},g}function Eh(e,t,n){(void 0!==n&&!Ku(e[t],n)||void 0===n&&!(t in e))&&Ju(e,t,n)}function kh(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Sh(e,t,n,r,i,a,s){var o=kh(e,n),l=kh(t,n),u=s.get(l);if(u)Eh(e,n,u);else{var c,d=a?a(o,l,n+"",e,t,s):void 0,h=void 0===d;if(h){var p=au(l),f=!p&&Bc(l),B=!p&&!f&&wc(l);d=l,p||f||B?au(o)?d=o:ru(c=o)&&rc(c)?d=Fu(o):f?(h=!1,d=hd(l,!0)):B?(h=!1,d=Vd(l,!0)):d=[]:function(e){if(!ru(e)||"[object Object]"!=nu(e))return!1;var t=td(e);if(null===t)return!0;var n=ad.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&id.call(n)==sd}(l)||dc(l)?(d=o,dc(o)?d=function(e){return Xu(e,Ic(e))}(o):hu(o)&&!yu(o)||(d=$d(l))):h=!1}h&&(s.set(l,d),i(d,l,r,a,s),s.delete(l)),Eh(e,n,d)}}function xh(e,t,n,r,i){e!==t&&yh(t,function(a,s){if(i||(i=new od),hu(a))Sh(e,t,s,n,xh,r,i);else{var o=r?r(kh(e,s),a,s+"",e,t,i):void 0;void 0===o&&(o=a),Eh(e,s,o)}},Ic)}const Th=(_h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==_h?void 0:_h[e]});var Oh=/[&<>"']/g,Ah=RegExp(Oh.source);function Ih(e){return(e=Kc(e))&&Ah.test(e)?e.replace(Oh,Th):e}var Ph=Object.prototype.hasOwnProperty;function Nh(e,t){return null!=e&&Ph.call(e,t)}function Rh(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=Qc(t,e)).length,a=!1;++r<i;){var s=Zc(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&nc(i)&&zu(s,i)&&(au(e)||dc(e))}(e,t,Nh)}function Mh(e,t){return mh(e,t)}var Fh,Lh=(Fh=function(e,t,n){xh(e,t,n)},tc(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=Fh.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!hu(n))return!1;var r=typeof t;return!!("number"==r?rc(n)&&zu(t,n.length):"string"==r&&t in n)&&Ku(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&Fh(e,s,n,i)}return e}));const jh=Lh;function Hh(e,t,n){return null==e?e:function(e,t,n,r){if(!hu(e))return e;for(var i=-1,a=(t=Qc(t,e)).length,s=a-1,o=e;null!=o&&++i<a;){var l=Zc(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var c=o[l];void 0===(u=r?r(c,l,o):void 0)&&(u=hu(c)?c:zu(t[i+1])?[]:{})}Zu(o,l,u),o=o[l]}return e}(e,t,n)}var Uh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
vendor: 5,128 bytes, line 22
22function Gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yh(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Vh=TypeError;const qh=Yh(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var $h="function"==typeof Map&&Map.prototype,Wh=Object.getOwnPropertyDescriptor&&$h?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zh=$h&&Wh&&"function"==typeof Wh.get?Wh.get:null,Jh=$h&&Map.prototype.forEach,Kh="function"==typeof Set&&Set.prototype,Qh=Object.getOwnPropertyDescriptor&&Kh?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Zh=Kh&&Qh&&"function"==typeof Qh.get?Qh.get:null,Xh=Kh&&Set.prototype.forEach,ep="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,tp="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,np="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,rp=Boolean.prototype.valueOf,ip=Object.prototype.toString,ap=Function.prototype.toString,sp=String.prototype.match,op=String.prototype.slice,lp=String.prototype.replace,up=String.prototype.toUpperCase,cp=String.prototype.toLowerCase,dp=RegExp.prototype.test,hp=Array.prototype.concat,pp=Array.prototype.join,fp=Array.prototype.slice,Bp=Math.floor,mp="function"==typeof BigInt?BigInt.prototype.valueOf:null,gp=Object.getOwnPropertySymbols,vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,yp="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Cp="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,_p=Object.prototype.propertyIsEnumerable,bp=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function wp(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-Bp(-e):Bp(e);if(r!==e){var i=String(r),a=op.call(t,i.length+1);return lp.call(i,n,"$&_")+"."+lp.call(lp.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lp.call(t,n,"$&_")}var Dp=qh,Ep=Dp.custom,kp=Rp(Ep)?Ep:null,Sp={__proto__:null,double:'"',single:"'"},xp={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Tp=function e(t,n,r,i){var a=n||{};if(Fp(a,"quoteStyle")&&!Fp(Sp,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Fp(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!Fp(a,"customInspect")||a.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Fp(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Fp(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Hp(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return o?wp(t,l):l}if("bigint"==typeof t){var u=String(t)+"n";return o?wp(t,u):u}var c=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=c&&c>0&&"object"==typeof t)return Pp(t)?"[Array]":"[Object]";var d,h=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=pp.call(Array(e.indent+1)," ")}return{base:n,prev:pp.call(Array(t+1),n)}}(a,r);if(void 0===i)i=[];else if(jp(i,t)>=0)return"[Circular]";function p(t,n,s){if(n&&(i=fp.call(i)).push(n),s){var o={depth:a.depth};return Fp(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,r+1,i)}return e(t,a,r+1,i)}if("function"==typeof t&&!Np(t)){var f=function(e){if(e.name)return e.name;var t=sp.call(ap.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),B=$p(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(B.length>0?" { "+pp.call(B,", ")+" }":"")}if(Rp(t)){var m=yp?lp.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):vp.call(t);return"object"!=typeof t||yp?m:Gp(m)}if((d=t)&&"object"==typeof d&&("undefined"!=typeof HTMLElement&&d instanceof HTMLElement||"string"==typeof d.nodeName&&"function"==typeof d.getAttribute)){for(var g="<"+cp.call(String(t.nodeName)),v=t.attributes||[],y=0;y<v.length;y++)g+=" "+v[y].name+"="+Op(Ap(v[y].value),"double",a);return g+=">
22",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+cp.call(String(t.nodeName))+">"}if(Pp(t)){if(0===t.length)return"[]";var C=$p(t,p);return h&&!function(e){for(var t=0;t<e.length;t++)if(jp(e[t],"\n")>=0)return!1;return!0}(C)?"["+qp(C,h)+"]":"[ "+pp.call(C,", ")+" ]"}if(function(e){return"[object Error]"===Lp(e)&&Ip(e)}(t)){var _=$p(t,p);return"cause"in Error.prototype||!("cause"in t)||_p.call(t,"cause")?0===_.length?"["+String(t)+"]":"{ ["+String(t)+"] "+pp.call(_,", ")+" }":"{ ["+String(t)+"] "+pp.call(hp.call("[cause]: "+p(t.cause),_),", ")+" }"}if("object"==typeof t&&s){if(kp&&"function"==typeof t[kp]&&Dp)return Dp(t,{depth:c-r});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!zh||!e||"object"!=typeof e)return!1;try{zh.call(e);try{Zh.call(e)}catch(g){return!0}return e instanceof Map}catch(zle){}return!1}(t)){var b=[];return Jh&&Jh.call(t,function(e,n){b.push(p(n,t,!0)+" => "+p(e,t))}),Vp("Map",zh.call(t),b,h)}if(function(e){if(!Zh||!e||"object"!=typeof e)return!1;try{Zh.call(e);try{zh.call(e)}catch(t){return!0}return e instanceof Set}catch(zle){}return!1}(t)){var w=[];return Xh&&Xh.call(t,function(e){w.push(p(e,t))}),Vp("Set",Zh.call(t),w,h)}if(function(e){if(!ep||!e||"object"!=typeof e)return!1;try{ep.call(e,ep);try{tp.call(e,tp)}catch(g){return!0}return e instanceof WeakMap}catch(zle){}return!1}(t))return Yp("WeakMap");if(function(e){if(!tp||!e||"object"!=typeof e)return!1;try{tp.call(e,tp);try{ep.call(e,ep)}catch(g){return!0}return e instanceof WeakSet}catch(zle){}return!1}(t))return Yp("WeakSet");if(function(e){if(!np||!e||"object"!=typeof e)return!1;try{return np.call(e),!0}catch(zle){}return!1}(t))return Yp("WeakRef");if(function(e){return"[object Number]"===Lp(e)&&Ip(e)}(t))return Gp(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!mp)return!1;try{return mp.call(e),!0}catch(zle){}return!1}(t))return Gp(p(mp.call(t)));if(function(e){return"[object Boolean]"===Lp(e)&&Ip(e)}(t))return Gp(rp.call(t));if(function(e){return"[object String]"===Lp(e)&&Ip(e)}(t))return Gp(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Uh&&t===Uh)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Lp(e)&&Ip(e)}(t)&&!Np(t)){var D=$p(t,p),E=bp?bp(t)===Object.prototype:t instanceof Object||t.constructor===Object,k=t instanceof Object?"":"null prototype",S=!E&&Cp&&Object(t)===t&&Cp in t?op.call(Lp(t),8,-1):k?"Object":"",x=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||k?"["+pp.call(hp.call([],S||[],k||[]),": ")+"] ":"");return 0===D.length?x+"{}":h?x+"{"+qp(D,h)+"}":x+"{ "+pp.call(D,", ")+" }"}return String(t)};function Op(e,t,n){var r=n.quoteStyle||t,i=Sp[r];return i+e+i}function Ap(e){return lp.call(String(e),/"/g,"&quot;")}function Ip(e){return!Cp||!("object"==typeof e&&(Cp in e||void 0!==e[Cp]))}function Pp(e){return"[object Array]"===Lp(e)&&Ip(e)}function Np(e){return"[object RegExp]"===Lp(e)&&Ip(e)}function Rp(e){if(yp)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!vp)return!1;try{return vp.call(e),!0}catch(zle){}return!1}var Mp=Object.prototype.hasOwnProperty||function(e){return e in this};function Fp(e,t){return Mp.call(e,t)}function Lp(e){return ip.call(e)}function jp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Hp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Hp(op.call(e,0,t.maxStringLength),t)+r}var i=xp[t.quoteStyle||"single"];return i.lastIndex=0,Op(lp.call(lp.call(e,i,"\\$1"),/[\x00-\x1f]/g,Up),"single",t)}function Up(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+up.call(t.toString(16))}function Gp(e){return"Object("+e+")"}function Yp(e){return e+" { ? }"}function Vp(e,t,n,r){return e+" ("+t+") {"+(r?qp(n,r):pp.call(n,", "))+"}"}function qp(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+pp.call(e,","+n)+"\n"+t.prev}function $p(e,t){var n=Pp(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Fp(e,i)?t(e[i],e):""}var a,s="function"==typeof gp?gp(e):[];if(yp){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var l in e)Fp(e,l)&&(n&&String(Number(l))===l&&l<e.length||yp&&a["$"+l]instanceof Symbol||(dp.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof gp)for(var u=0;u<s.length;u++)_p.call(e,s[u])&&r.push("["+t(s[u])+"]: "+t(e[s[u]],e));return r}var Wp=Tp,zp=Vh,Jp=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r},Kp=Object,Qp=Error,Zp=EvalError,Xp=RangeError,ef=ReferenceError,tf=SyntaxError,nf=URIError,rf=Math.abs,af=Math.floor,sf=Math.max,of=Math.min,lf=Math.pow,uf=Math.round,cf=Number.isNaN||function(e){return e!=e},df=Object.getOwnPropertyDescriptor;if(df)try{df([],"length")}catch(zle){df=null}var hf=df,pf=Object.defineProperty||!1;if(pf)try{pf({},"a",{value:1})}catch(zle){pf=!1}var ff,Bf,mf,gf,vf,yf,Cf,_f,bf,wf,Df,Ef,kf,Sf,xf,Tf,Of=pf;function Af(){return yf?vf:(yf=1,vf="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function If(){return _f?Cf:(_f=1,Cf=Kp.getPrototypeOf||null)}function Pf(){if(Ef)return Df;Ef=1;var e=function(){if(wf)return bf;wf=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};return bf=function(r){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var a,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),o=t(0,i.length-s.length),l=[],u=0;u<o;u++)l[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=i.apply(this,n(s,arguments));return Object(e)===e?e:this}return i.apply(r,n(s,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,a.prototype=new c,c.prototype=null}return a},bf}();return Df=Function.prototype.bind||e}function Nf(){return Sf?kf:(Sf=1,kf=Function.prototype.call)}function Rf(){return Tf?xf:(Tf=1,xf=Function.prototype.apply)}var Mf,Ff,Lf,jf,Hf,Uf,Gf,Yf="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Vf=Pf(),qf=Rf
22(),$f=Nf(),Wf=Yf||Vf.call($f,qf),zf=Pf(),Jf=Vh,Kf=Nf(),Qf=Wf,Zf=function(e){if(e.length<1||"function"!=typeof e[0])throw new Jf("a function is required");return Qf(zf,Kf,e)},Xf=Kp,eB=Qp,tB=Zp,nB=Xp,rB=ef,iB=tf,aB=Vh,sB=nf,oB=rf,lB=af,uB=sf,cB=of,dB=lf,hB=uf,pB=function(e){return cf(e)||0===e?e:e<0?-1:1},fB=Function,BB=function(e){try{return fB('"use strict"; return ('+e+").constructor;")()}catch(zle){}},mB=hf,gB=Of,vB=function(){throw new aB},yB=mB?function(){try{return vB}catch(e){try{return mB(arguments,"callee").get}catch(t){return vB}}}():vB,CB=function(){if(gf)return mf;gf=1;var e="undefined"!=typeof Symbol&&Symbol,t=Bf?ff:(Bf=1,ff=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return mf=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),_B=function(){if(jf)return Lf;jf=1;var e=Af(),t=If(),n=function(){if(Ff)return Mf;Ff=1;var e,t=Zf,n=hf;try{e=[].__proto__===Array.prototype}catch(zle){if(!zle||"object"!=typeof zle||!("code"in zle)||"ERR_PROTO_ACCESS"!==zle.code)throw zle}var r=!!e&&n&&n(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return Mf=r&&"function"==typeof r.get?t([r.get]):"function"==typeof a&&function(e){return a(null==e?e:i(e))}}();return Lf=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),bB=If(),wB=Af(),DB=Rf(),EB=Nf(),kB={},SB="undefined"!=typeof Uint8Array&&_B?_B(Uint8Array):Gf,xB={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Gf:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Gf:ArrayBuffer,"%ArrayIteratorPrototype%":CB&&_B?_B([][Symbol.iterator]()):Gf,"%AsyncFromSyncIteratorPrototype%":Gf,"%AsyncFunction%":kB,"%AsyncGenerator%":kB,"%AsyncGeneratorFunction%":kB,"%AsyncIteratorPrototype%":kB,"%Atomics%":"undefined"==typeof Atomics?Gf:Atomics,"%BigInt%":"undefined"==typeof BigInt?Gf:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Gf:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Gf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Gf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":eB,"%eval%":eval,"%EvalError%":tB,"%Float16Array%":"undefined"==typeof Float16Array?Gf:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Gf:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Gf:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Gf:FinalizationRegistry,"%Function%":fB,"%GeneratorFunction%":kB,"%Int8Array%":"undefined"==typeof Int8Array?Gf:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Gf:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Gf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
22IteratorPrototype%":CB&&_B?_B(_B([][Symbol.iterator]())):Gf,"%JSON%":"object"==typeof JSON?JSON:Gf,"%Map%":"undefined"==typeof Map?Gf:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&CB&&_B?_B((new Map)[Symbol.iterator]()):Gf,"%Math%":Math,"%Number%":Number,"%Object%":Xf,"%Object.getOwnPropertyDescriptor%":mB,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Gf:Promise,"%Proxy%":"undefined"==typeof Proxy?Gf:Proxy,"%RangeError%":nB,"%ReferenceError%":rB,"%Reflect%":"undefined"==typeof Reflect?Gf:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Gf:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&CB&&_B?_B((new Set)[Symbol.iterator]()):Gf,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Gf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":CB&&_B?_B(""[Symbol.iterator]()):Gf,"%Symbol%":CB?Symbol:Gf,"%SyntaxError%":iB,"%ThrowTypeError%":yB,"%TypedArray%":SB,"%TypeError%":aB,"%Uint8Array%":"undefined"==typeof Uint8Array?Gf:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Gf:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Gf:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Gf:Uint32Array,"%URIError%":sB,"%WeakMap%":"undefined"==typeof WeakMap?Gf:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Gf:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Gf:WeakSet,"%Function.prototype.call%":EB,"%Function.prototype.apply%":DB,"%Object.defineProperty%":gB,"%Object.getPrototypeOf%":bB,"%Math.abs%":oB,"%Math.floor%":lB,"%Math.max%":uB,"%Math.min%":cB,"%Math.pow%":dB,"%Math.round%":hB,"%Math.sign%":pB,"%Reflect.getPrototypeOf%":wB};if(_B)try{null.error}catch(zle){var TB=_B(_B(zle));xB["%Error.prototype%"]=TB}var OB=function e(t){var n;if("%AsyncFunction%"===t)n=BB("async function () {}");else if("%GeneratorFunction%"===t)n=BB("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=BB("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&_B&&(n=_B(i.prototype))}return xB[t]=n,n},AB={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},IB=Pf(),PB=function(){if(Uf)return Hf;Uf=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Pf();return Hf=n.call(e,t)}
vendor: 14,156 bytes, line 22
22(),NB=IB.call(EB,Array.prototype.concat),RB=IB.call(DB,Array.prototype.splice),MB=IB.call(EB,String.prototype.replace),FB=IB.call(EB,String.prototype.slice),LB=IB.call(EB,RegExp.prototype.exec),jB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,HB=/\\(\\)?/g,UB=function(e,t){var n,r=e;if(PB(AB,r)&&(r="%"+(n=AB[r])[0]+"%"),PB(xB,r)){var i=xB[r];if(i===kB&&(i=OB(r)),void 0===i&&!t)throw new aB("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new iB("intrinsic "+e+" does not exist!")},GB=function(e,t){if("string"!=typeof e||0===e.length)throw new aB("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new aB('"allowMissing" argument must be a boolean');if(null===LB(/^%?[^%]*%?$/,e))throw new iB("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=FB(e,0,1),n=FB(e,-1);if("%"===t&&"%"!==n)throw new iB("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new iB("invalid intrinsic syntax, expected opening `%`");var r=[];return MB(e,jB,function(e,t,n,i){r[r.length]=n?MB(i,HB,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=UB("%"+r+"%",t),a=i.name,s=i.value,o=!1,l=i.alias;l&&(r=l[0],RB(n,NB([0,1],l)));for(var u=1,c=!0;u<n.length;u+=1){var d=n[u],h=FB(d,0,1),p=FB(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new iB("property names with quotes must have matching quotes");if("constructor"!==d&&c||(o=!0),PB(xB,a="%"+(r+="."+d)+"%"))s=xB[a];else if(null!=s){if(!(d in s)){if(!t)throw new aB("base intrinsic for "+e+" exists, but the property is not available.");return}if(mB&&u+1>=n.length){var f=mB(s,d);s=(c=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:s[d]}else c=PB(s,d),s=s[d];c&&!o&&(xB[a]=s)}}return s},YB=GB,VB=Zf,qB=VB([YB("%String.prototype.indexOf%")]),$B=function(e,t){var n=YB(e,!!t);return"function"==typeof n&&qB(e,".prototype.")>-1?VB([n]):n},WB=$B,zB=Tp,JB=Vh,KB=GB("%Map%",!0),QB=WB("Map.prototype.get",!0),ZB=WB("Map.prototype.set",!0),XB=WB("Map.prototype.has",!0),em=WB("Map.prototype.delete",!0),tm=WB("Map.prototype.size",!0),nm=!!KB&&function(){var e,t={assert:function(e){if(!t.has(e))throw new JB("Side channel does not contain "+zB(e))},delete:function(t){if(e){var n=em(e,t);return 0===tm(e)&&(e=void 0),n}return!1},get:function(t){if(e)return QB(e,t)},has:function(t){return!!e&&XB(e,t)},set:function(t,n){e||(e=new KB),ZB(e,t,n)}};return t},rm=$B,im=Tp,am=nm,sm=Vh,om=GB("%WeakMap%",!0),lm=rm("WeakMap.prototype.get",!0),um=rm("WeakMap.prototype.set",!0),cm=rm("WeakMap.prototype.has",!0),dm=rm("WeakMap.prototype.delete",!0),hm=Vh,pm=Tp,fm=(om?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new sm("Side channel does not contain "+im(e))},delete:function(n){if(om&&n&&("object"==typeof n||"function"==typeof n)){if(e)return dm(e,n)}else if(am&&t)return t.delete(n);return!1},get:function(n){return om&&n&&("object"==typeof n||"function"==typeof n)&&e?lm(e,n):t&&t.get(n)},has:function(n){return om&&n&&("object"==typeof n||"function"==typeof n)&&e?cm(e,n):!!t&&t.has(n)},set:function(n,r){om&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new om),um(e,n,r)):am&&(t||(t=am()),t.set(n,r))}};return n}:am)||nm||function(){var e,t={assert:function(e){if(!t.has(e))throw new zp("Side channel does not contain "+Wp(e))},delete:function(t){var n=function(e,t){if(e)return Jp(e,t,!0)}(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var n=Jp(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Jp(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=Jp(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},Bm=function(){var e,t={assert:function(e){if(!t.has(e)){var n=e&&Object(e)===e?"the given object key":pm(e);throw new hm("Side channel does not contain "+n)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=fm()),e.set(t,n)}};return t},mm=String.prototype.replace,gm=/%20/g,vm="RFC3986",ym={default:vm,formatters:{RFC1738:function(e){return mm.call(e,gm,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:vm},Cm=ym,_m=Bm,bm=Of,wm=Object.prototype.hasOwnProperty,Dm=Array.isArray,Em=_m(),km=function(e,t){return Em.set(e,t),e},Sm=function(e){return Em.has(e)},xm=function(e){return Em.get(e)},Tm=function(e,t){Em.set(e,t)},Om=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Am=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Im=function(e,t,n){"__proto__"===t&&bm?bm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Pm=1024,Nm={arrayToObject:Am,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return Im(e,n,t[n]),e},e)},combine:function(e,t,n,r,i){if(Sm(e)){if(i)throw new RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");for(var a=Dm(t)?t:[t],s=xm(e),o=0;o<a.length;++o)e[s+=1]=a[o];return Tm(e,s),e}var l=[].concat(e,t);if(l.length>n){if(i)throw new RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");return km(Am(l,{plainObjects:r}),l.length-1)}return l},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=_m(),r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),o=0;o<s.length;++o){var l=s[o],u=a[l];"object"!=typeof u||null===u||n.has(u)||(t[t.length]={obj:a,prop:l},n.set(u,!0))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Dm(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&(r[r.length]=n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(zle){return r}},encode:function(e,t,n,r,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",o=0;o<a.length;o+=Pm){var l=a.length>=Pm?a.slice(o,o+Pm):a;if(o+Pm<a.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),o-=1)}for(var c=[],d=0;d<l.length;++d){var h=l.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===Cm.RFC1738&&(40===h||41===h)?c[c.length]=l.charAt(d):h<128?c[c.length]=Om[h]:h<2048?c[c.length]=Om[192|h>>6]+Om[128|63&h]:h<55296||h>=57344?c[c.length]=Om[224|h>>12]+Om[128|h>>6&63]+Om[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&l.charCodeAt(d)),c[c.length]=Om[240|h>>18]+Om[128|h>>12&63]+Om[128|h>>6&63]+Om[128|63&h])}s+=c.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},isOverflow:Sm,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:km,maybeMap:function(e,t){if(Dm(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(Dm(t)){var i=t.length;if(r&&"number"==typeof r.arrayLimit&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return km(Am(t.concat(n),r),i)}t[i]=n}else{if(!t||"object"!=typeof t)return[t,n];if(Sm(t)){var a=xm(t)+1;t[a]=n,Tm(t,a)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!wm.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(Sm(n)){for(var s=Object.keys(n),o=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},l=0;l<s.length;l++)o[parseInt(s[l],10)+1]=n[s[l]];return km(o,xm(n)+1)}var u=[t].concat(n);if(r&&"number"==typeof r.arrayLimit&&u.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return km(Am(u,r),u.length-1)}return u}var c=t;if(Dm(t)&&!Dm(n)&&(c=Am(t,r)),Dm(t)&&Dm(n)){if(n.forEach(function(n,i){if(wm.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t[t.length]=n}else t[i]=n}),r&&"number"==typeof r.arrayLimit&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return km(Am(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var a=n[i];if(wm.call(t,i)?Im(t,i,e(t[i],a,r)):Im(t,i,a),Sm(n)&&!Sm(t)&&km(t,xm(n)),Sm(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>xm(t)&&Tm(t,s)}return t},c)}},Rm=Bm,Mm=Nm,Fm=ym,Lm=Object.prototype.hasOwnProperty,jm={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Hm=Array.isArray,Um=Array.prototype.push,Gm=function(e,t){Um.apply(e,Hm(t)?t:[t])},Ym=Date.prototype.toISOString,Vm=Fm.default,qm={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:Mm.encode,encodeValuesOnly:!1,filter:void 0,format:Vm,formatter:Fm.formatters[Vm],indices:!1,serializeDate:function(e){return Ym.call(e)},skipNulls:!1,strictNullHandling:!1},$m={},Wm=function e(t,n,r,i,a,s,o,l,u,c,d,h,p,f,B,m,g,v,y,C){var _=t;if(C>y)throw new RangeError("Input depth exceeded depth option of "+y);for(var b,w=v,D=0,E=!1;void 0!==(w=w.get($m))&&!E;){var k=w.get(t);if(D+=1,void 0!==k){if(k===D)throw new RangeError("Cyclic object value");E=!0}void 0===w.get($m)&&(D=0)}if((_="function"==typeof c?c(n,_):_)instanceof Date?_=p(_):"comma"===r&&Hm(_)&&(_=Mm.maybeMap(_,function(e){return e instanceof Date?p(e):e})),null===_){if(s)return B(u&&!m?u(n,qm.encoder,g,"key",f):n);_=""}if("string"==typeof(b=_)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Mm.isBuffer(_))return u?[B(m?n:u(n,qm.encoder,g,"key",f))+"="+B(u(_,qm.encoder,g,"value",f))]:[B(n)+"="+B(String(_))];var S,x=[];if(void 0===_)return x;if("comma"===r&&Hm(_))m&&u&&(_=Mm.maybeMap(_,function(e){return null==e?e:u(e)})),S=[{value:_.length>0?_.join(",")||null:void 0}];else if(Hm(c))S=c;else{var T=Object.keys(_);S=d?T.sort(d):T}var O=l?String(n).replace(/\./g,"%2E"):String(n),A=i&&Hm(_)&&1===_.length?O+"[]":O;if(a&&Hm(_)&&0===_.length&&0===Object.keys(_).length)return A+"[]";for(var I=0;I<S.length;++I){var P=S[I],N="object"==typeof P&&P&&void 0!==P.value?P.value:_[P];if(!o||null!==N){var R=h&&l?String(P).replace(/\./g,"%2E"):String(P),M=Hm(_)?"function"==typeof r?r(A,R):A:A+(h?"."+R:"["+R+"]");v.set(t,D);var F=Rm();F.set($m,v),Gm(x,e(N,M,r,i,a,s,o,l,"comma"===r&&m&&Hm(_)?null:u,c,d,h,p,f,B,m,g,F,y,C+1))}}return x},zm=Nm,Jm=Object.prototype.hasOwnProperty,Km=Array.isArray,Qm={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:zm.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Zm=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Xm=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var r=0,i=e.indexOf(",");i>-1;){if((r+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");i=e.indexOf(",",i+1)}return e.split(",")}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},eg=function(e,t,n,r){if(e){var i=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&Jm.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=[],i=n.indexOf("["),a=i>=0?n.slice(0,i):n;if(a){if(!t.plainObjects&&Jm.call(Object.prototype,a)&&!t.allowPrototypes)return;r[r.length]=a}for(var s=n.length,o=i,l=0;o>=0&&l<t.depth;){for(var u=1,c=o+1,d=-1;c<s&&d<0;){var h=n.charCodeAt(c);91===h?u+=1:93===h&&0==(u-=1)&&(d=c),c+=1}if(d<0)return r[r.length]="["+n.slice(o)+"]",r;var p=n.slice(o,d+1),f=p.slice(1,-1);if(!t.plainObjects&&Jm.call(Object.prototype,f)&&!t.allowPrototypes)return;r[r.length]=p,l+=1,o=n.indexOf("[",d+1)}if(o>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");r[r.length]="["+n.slice(o)+"]"}return r}(e,n);if(i)return function(e,t,n,r){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=r?t:Xm(t,n,i),o=e.length-1;o>=0;--o){var l,u=e[o];if("[]"===u&&n.parseArrays)l=zm.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:zm.combine([],s,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{l=n.plainObjects?{__proto__:null}:{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,d=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,h=parseInt(d,10),p=!isNaN(h)&&u!==d&&String(h)===d&&h>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(p&&h<n.arrayLimit)(l=[])[h]=s;else{if(p&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");p?(l[h]=s,zm.markOverflow(l,h)):"__proto__"!==d&&(l[d]=s)}else l={0:s}}s=l}return s}(i,t,n,r)}},tg=function(e,t){var n,r=e,i=function(e){if(!e)return qm;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
vendor: 4,328 bytes, line 22
22if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||qm.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Fm.default;if(void 0!==e.format){if(!Lm.call(Fm.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=Fm.formatters[n],a=qm.filter;if(("function"==typeof e.filter||Hm(e.filter))&&(a=e.filter),r=e.arrayFormat in jm?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":qm.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=void 0===e.allowDots?!0===e.encodeDotInKeys||qm.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:qm.addQueryPrefix,allowDots:s,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:qm.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qm.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?qm.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:qm.depth,encode:"boolean"==typeof e.encode?e.encode:qm.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:qm.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:qm.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:qm.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:qm.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:qm.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qm.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):Hm(i.filter)&&(n=i.filter);var a=[];if("object"!=typeof r||null===r)return"";var s=jm[i.arrayFormat],o="comma"===s&&i.commaRoundTrip;n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var l=Rm(),u=0;u<n.length;++u){var c=n[u];if(null!=c){var d=r[c];if(!i.skipNulls||null!==d){var h=i.encodeDotInKeys?String(c).replace(/\./g,"%2E"):String(c);Gm(a,Wm(d,h,s,o,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,l,i.depth,0))}}}var p=a.join(i.delimiter),f=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?f+="utf8=%26%2310003%3B"+i.delimiter:f+="utf8=%E2%9C%93"+i.delimiter),p.length>0?f+p:""},ng=function(e,t){var n=function(e){if(!e)return Qm;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?Qm.charset:e.charset,n=void 0===e.duplicates?Qm.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Qm.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Qm.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Qm.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Qm.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Qm.arrayLimit,charset
vendor: 5,665 bytes, line 22
22:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qm.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Qm.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Qm.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Qm.decoder,delimiter:"string"==typeof e.delimiter||zm.isRegExp(e.delimiter)?e.delimiter:Qm.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Qm.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Qm.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Qm.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Qm.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Qm.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:Qm.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qm.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==i?i+1:i);if(t.throwOnLimitExceeded&&void 0!==i&&a.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(1===i?"":"s")+" allowed.");var s,o=-1,l=t.charset;if(t.charsetSentinel)for(s=0;s<a.length;++s)0===a[s].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[s]?l="utf-8":"utf8=%26%2310003%3B"===a[s]&&(l="iso-8859-1"),o=s,s=a.length);for(s=0;s<a.length;++s)if(s!==o){var u,c,d=a[s],h=d.indexOf("]="),p=-1===h?d.indexOf("="):h+1;if(-1===p?(u=t.decoder(d,Qm.decoder,l,"key"),c=t.strictNullHandling?null:""):null!==(u=t.decoder(d.slice(0,p),Qm.decoder,l,"key"))&&(c=zm.maybeMap(Xm(d.slice(p+1),t,Km(n[u])?n[u].length:0),function(e){return t.decoder(e,Qm.decoder,l,"value")})),c&&t.interpretNumericEntities&&"iso-8859-1"===l&&(c=Zm(String(c))),d.indexOf("[]=")>-1&&(c=Km(c)?[c]:c),t.comma&&Km(c)&&c.length>t.arrayLimit&&(c=zm.combine([],c,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==u){var f=Jm.call(n,u);f&&("combine"===t.duplicates||d.indexOf("[]=")>-1)?n[u]=zm.combine(n[u],c,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):f&&"last"!==t.duplicates||(n[u]=c)}}return n}(e,n):e,i=n.plainObjects?{__proto__:null}:{},a=Object.keys(r),s=0;s<a.length;++s){var o=a[s],l=eg(o,r[o],n,"string"==typeof e);i=zm.merge(i,l,n)}return!0===n.allowSparse?i:zm.compact(i)},rg={formats:ym,parse:ng,stringify:tg};function ig(e,t){return function(){return e.apply(t,arguments)}}const{toString:ag}=Object.prototype,{getPrototypeOf:sg}=Object,{iterator:og,toStringTag:lg}=Symbol,ug=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cg=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),dg=(e,t,n)=>e===Object.prototype||!n&&null===t,hg=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const i=sg(n);if(dg(n,i,n===e))return!1;if(ug(n,t))return!0;n=i}return!1},pg=(fg=Object.create(null),e=>{const t=ag.call(e);return fg[t]||(fg[t]=t.slice(8,-1).toLowerCase())});var fg;const Bg=e=>(e=e.toLowerCase(),t=>pg(t)===e),mg=e=>t=>typeof t===e,{isArray:gg}=Array,vg=mg("undefined");function yg(e){return null!==e&&!vg(e)&&null!==e.constructor&&!vg(e.constructor)&&bg(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cg=Bg("ArrayBuffer"),_g=mg("string"),bg=mg("function"),wg=mg("number"),Dg=e=>null!==e&&"object"==typeof e,Eg=e=>{if(!Dg(e))return!1;const t=sg(e);return!(null!==t&&t!==Object.prototype&&null!==sg(t)||hg(e,lg)||hg(e,og))},kg=Bg("Date"),Sg=Bg("File"),xg=Bg("Blob"),Tg=Bg("FileList"),Og=Bg("Set"),Ag="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ig=void 0!==Ag.FormData?Ag.FormData:void 0,Pg=Bg("URLSearchParams"),[Ng,Rg,Mg,Fg]=["ReadableStream","Request","Response","Headers"].map(Bg);function Lg(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),gg(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(yg(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function jg(e,t){if(yg(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Hg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ug=e=>!vg(e)&&e!==Hg,Gg=(Yg="undefined"!=typeof Uint8Array&&sg(Uint8Array),e=>Yg&&e instanceof Yg);var Yg;const Vg=Bg("HTMLFormElement"),{propertyIsEnumerable:qg}=Object.prototype,$g=Bg("RegExp"),Wg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lg(n,(n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)}),Object.defineProperties(e,r)},zg=Bg("AsyncFunction"),Jg=(Kg="function"==typeof setImmediate,Qg=bg(Hg.postMessage),Kg?setImmediate:Qg?(Zg=`axios@${Math.random()}`,Xg=[],Hg.addEventListener("message",({source:e,data:t})=>{e===Hg&&t===Zg&&Xg.length&&Xg.shift()()},!1),e=>{Xg.push(e),Hg.postMessage(Zg,"*")}):e=>setTimeout(e));var Kg,Qg,Zg,Xg;const ev="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Hg):"undefined"!=typeof process&&process.nextTick||Jg,tv=e=>null!=e&&bg(e[og]),nv={isArray:gg,isArrayBuffer:Cg,isBuffer:yg,is
vendor: 5,124 bytes, line 22
22FormData:e=>{if(!e)return!1;if(Ig&&e instanceof Ig)return!0;const t=sg(e);if(!t||t===Object.prototype)return!1;if(!bg(e.append))return!1;const n=pg(e);return"formdata"===n||"object"===n&&bg(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Cg(e.buffer),t},isString:_g,isNumber:wg,isBoolean:e=>!0===e||!1===e,isObject:Dg,isPlainObject:Eg,isEmptyObject:e=>{if(!Dg(e)||yg(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(zle){return!1}},isReadableStream:Ng,isRequest:Rg,isResponse:Mg,isHeaders:Fg,isUndefined:vg,isDate:kg,isFile:Sg,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:xg,isRegExp:$g,isFunction:bg,isStream:e=>Dg(e)&&bg(e.pipe),isURLSearchParams:Pg,isTypedArray:Gg,isFileList:Tg,forEach:Lg,merge:function e(...t){const{caseless:n,skipUndefined:r}=Ug(this)&&this||{},i={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const s=n&&"string"==typeof a&&jg(i,a)||a,o=ug(i,s)?i[s]:void 0;Eg(o)&&Eg(t)?i[s]=e(o,t):Eg(t)?i[s]=e({},t):gg(t)?i[s]=t.slice():r&&vg(t)||(i[s]=t)};for(let s=0,o=t.length;s<o;s++){const e=t[s];if(!e||yg(e))continue;if(Lg(e,a),"object"!=typeof e||gg(e))continue;const n=Object.getOwnPropertySymbols(e);for(let t=0;t<n.length;t++){const r=n[t];qg.call(e,r)&&a(e[r],r)}}return i},extend:(e,t,n,{allOwnKeys:r}={})=>(Lg(t,(t,r)=>{n&&bg(t)?Object.defineProperty(e,r,{__proto__:null,value:ig(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],r&&!r(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&sg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:pg,kindOfTest:Bg,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(gg(e))return e;let t=e.length;if(!wg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[og]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Vg,hasOwnProperty:ug,hasOwnProp:ug,hasOwnInPrototypeChain:hg,getSafeProp:(e,t)=>null!=e&&hg(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=sg(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(cg(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),i=[];let a=e;for(;null!=a&&-1===i.indexOf(a);){i.push(a);const s=a===e?t:sg(a);if(dg(a,s,a===e))break;const o=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&o.push(...Object.getOwnPropertySymbols(a));for(const t of o)cg(t)||ug(r,t)||(n[t]=e[t],r[t]=!0);a=s}return n},reduceDescriptors:Wg,freezeMethods:e=>{Wg(e,(t,n)=>{if(bg(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];bg(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return gg(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:jg,global:Hg,isContextDefined:Ug,isSpecCompliantForm:function(e){return!!(e&&bg(e.append)&&"FormData"===e[lg]&&e[og])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Dg(e)){if(t.has(e))return;if(yg(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),Og(e)){r=[];for(const t of e){const e=n(t);!vg(e)&&r.push(e)}}else r=gg(e)?[]:{},Lg(e,(e,t)=>{const i=n(e);!vg(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:zg,isThenable:e=>e&&(Dg(e)||bg(e))&&bg(e.then)&&bg(e.catch),setImmediate:Jg,asap:ev,isIterable:tv,isSafeIterable:e=>null!=e&&hg(e,og)&&tv(e)},rv=nv.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iv=new RegExp("[\\u0000-\\u
220008\\u000a-\\u001f\\u007f]+","g"),av=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function sv(e,t){return nv.isArray(e)?e.map(e=>sv(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ov(e){const t=Object.create(null);return nv.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>sv(e,av))(e)}),t}const lv=Symbol("internals");function uv(e){return e&&String(e).trim().toLowerCase()}function cv(e){return!1===e||null==e?e:nv.isArray(e)?e.map(cv):(e=>sv(e,iv))(String(e))}const dv=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function hv(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function pv(e,t,n,r,i){return nv.isFunction(r)?r.call(this,t,n):(i&&(t=n),nv.isString(t)?nv.isString(r)?-1!==t.indexOf(r):nv.isRegExp(r)?r.test(t):void 0:void 0)}let fv=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=uv(t);if(!i)return;const a=nv.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=cv(e))}const a=(e,t)=>nv.forEach(e,(e,n)=>i(e,n,t));if(nv.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(nv.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();const a=nv.hasOwnProp(t,n);!n||a&&nv.hasOwnProp(rv,n)||("set-cookie"===n?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t})(e),t);else if(nv.isObject(e)&&nv.isSafeIterable(e)){let n,r,i=Object.create(null);for(const t of e){if(!nv.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],nv.hasOwnProp(i,r)?(n=i[r],i[r]=nv.isArray(n)?[...n,t[1]]:[n,t[1]]):i[r]=t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=uv(e)){const n=nv.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(nv.isFunction(t))return t.call(this,e,n);if(nv.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=uv(e)){const n=nv.findKey(this,e);return!(!n||void 0===this[n]||t&&!pv(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=uv(e)){const i=nv.findKey(n,e);!i||t&&!pv(0,n[i],i,t)||(delete n[i],r=!0)}}return nv.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!pv(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return nv.forEach(this,(r,i)=>{const a=nv.findKey(n,i);if(a)return t[a]=cv(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=cv(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return nv.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&nv.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return nv.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,i=!1,a=!1;function s(e){const i=hv(n.slice(r,e)),a=i.indexOf("=");if(a<1)return;const s=hv(i.slice(0,a));if(!dv.test(s))return;const o=s.toLowerCase();if("__proto__"===o||"constructor"===o||"prototype"===o)return;const l=hv(i.slice(a+1));t[o]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(34===i)return e;if(92===i&&(r+=1,r>=t))return e;n+=e[r]}return n}(l)}for(let o=0;o<n.length;o++){const e=n.charCodeAt(o);i?a?a=!1:92===e?a=!0:34===e&&(i=!1):34===e?i=!0:44!==e&&59!==e||(s(o),r
vendor: 4,793 bytes, line 22
22=o+1)}return s(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[lv]=this[lv]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=uv(e);t[r]||(function(e,t){const n=nv.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return nv.isArray(e)?e.forEach(r):r(e),this}};fv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nv.reduceDescriptors(fv.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),nv.freezeMethods(fv);const Bv=fv,mv="[REDACTED ****]";function gv(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(null===e||"object"!=typeof e)return e;if(nv.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof Bv&&(e=e.toJSON()),r.push(e),nv.isArray(e))t=[],e.forEach((e,n)=>{const r=i(e);nv.isUndefined(r)||(t[n]=r)});else{if(!nv.isPlainObject(e)&&function(e){if(nv.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(nv.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,a]of Object.entries(e)){const e=n.has(r.toLowerCase())?mv:i(a);nv.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function vv(e){try{return String(e)}catch(t){return""}}let yv=class e extends Error{static from(t,n,r,i,a,s){let o=t.message;!o&&nv.isArray(t.errors)&&t.errors.length&&(o=function(e){return e.errors.map(e=>{try{return e&&e.message?vv(e.message):vv(e)}catch(t){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(t));const l=new e(o,n||t.code,r,i,a);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,null!=t.status&&null==l.status&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&nv.hasOwnProp(e,"redact")?e.redact:void 0,n=nv.isArray(t)&&t.length>0?gv(e,t):nv.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};yv.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",yv.ERR_BAD_OPTION="ERR_BAD_OPTION",yv.ECONNABORTED="ECONNABORTED",yv.ETIMEDOUT="ETIMEDOUT",yv.ECONNREFUSED="ECONNREFUSED",yv.ERR_NETWORK="ERR_NETWORK",yv.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",yv.ERR_DEPRECATED="ERR_DEPRECATED",yv.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",yv.ERR_BAD_REQUEST="ERR_BAD_REQUEST",yv.ERR_CANCELED="ERR_CANCELED",yv.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",yv.ERR_INVALID_URL="ERR_INVALID_URL",yv.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Cv=yv;function _v(e){return nv.isPlainObject(e)||nv.isArray(e)}function bv(e){return nv.endsWith(e,"[]")?e.slice(0,-2):e}function wv(e,t,n){return e?e.concat(t).map(function(e,t){return e=bv(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Dv=nv.toFlatObject(nv,{},null,function(e){return/^is[A-Z]/.test(e)});function Ev(e,t,n){if(!nv.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=nv.getSafeProp(n,e);return nv.isUndefined(r)?t:r},i=r("metaTokens",!0),a=r("visitor")||f,s=r("dots",!1),o=r("indexes",!1),l=r("Blob")||"undefined"!=typeof Blob&&Blob,u=r("maxDepth",100),c=l&&nv.isSpecCompliantForm(t),d=[];if(!nv.isFunction(a))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(nv.isDate(e))return e.toISOString();if(nv.isBoolean(e))return e.toString();if(!c&&nv.isBlob(e))throw new Cv("Blob is not supported. Use a Buffer instead.");if(nv.isArrayBuffer(e)||nv.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new Cv("Blob is not supported. Use a Buffer instead.",Cv.ERR_NOT_SUPPORT)}return e}function p(e){if(e>u)throw new Cv("Object is too deeply nested ("+e+" levels). Max depth: "+u,Cv.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,r){let a=e;if(nv.isReactNative(t)&&nv.isReactNativeBlob(e))return t.append(wv(r,n,s),h(e)),!1;if(e&&!r&&"object"==typeof e)if(nv.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!nv.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();
vendor: 9,140 bytes, line 22
22return n.push(r),p(t+n.length-1),r})}(e,1);else if(nv.isArray(e)&&function(e){return nv.isArray(e)&&!e.some(_v)}(e)||(nv.isFileList(e)||nv.endsWith(n,"[]"))&&(a=nv.toArray(e)))return n=bv(n),a.forEach(function(e,r){!nv.isUndefined(e)&&null!==e&&t.append(!0===o?wv([n],r,s):null===o?n:n+"[]",h(e))}),!1;return!!_v(e)||(t.append(wv(r,n,s),h(e)),!1)}const B=Object.assign(Dv,{defaultVisitor:f,convertValue:h,isVisitable:_v});if(!nv.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!nv.isUndefined(n)){if(p(i),-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),nv.forEach(n,function(n,s){!0===(!(nv.isUndefined(n)||null===n)&&a.call(t,n,nv.isString(s)?s.trim():s,r,B))&&e(n,r?r.concat(s):[s],i+1)}),d.pop()}}(e),t}function kv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Sv(e,t){this._pairs=[],e&&Ev(e,this,t)}const xv=Sv.prototype;function Tv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ov(e,t,n){if(!t)return e;e=e||"";const r=nv.isFunction(n)?{serialize:n}:n,i=nv.getSafeProp(r,"encode")||Tv,a=nv.getSafeProp(r,"serialize");let s;if(s=a?a(t,r):nv.isURLSearchParams(t)?t.toString():new Sv(t,r).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}xv.append=function(e,t){this._pairs.push([e,t])},xv.toString=function(e){const t=e?t=>e.call(this,t,kv):kv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Av=Symbol("internals");function Iv(e){return e?e.length:0}function Pv(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Nv(e,t){const n=e.handlers,r=Iv(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}const Rv=class{constructor(){this.handlers=[],this[Av]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[Av];null==this.handlers&&(this.handlers=[]),Nv(this,i);const a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){const t=this[Av];Nv(this,t);const n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Pv(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Nv(this,this[Av]))}forEach(e){const t=this[Av];Nv(this,t),t.iterationDepth++;try{nv.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Nv(this,t),Pv(this.handlers),t.handlersLength=Iv(this.handlers))}}},Mv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Fv={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Sv,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Lv="undefined"!=typeof window&&"undefined"!=typeof document,jv="object"==typeof navigator&&navigator||void 0,Hv=Lv&&(!jv||["ReactNative","NativeScript","NS"].indexOf(jv.product)<0),Uv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Gv=Lv&&window.location.href||"http://localhost",Yv={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lv,hasStandardBrowserEnv:Hv,hasStandardBrowserWebWorkerEnv:Uv,navigator:jv,origin:Gv},Symbol.toStringTag,{value:"Module"})),...Fv};function Vv(e){if(e>100)throw new Cv("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Cv.ERR_FORM_DATA_DEPTH_EXCEEDED)}function qv(e){function t(e,n,r,i){Vv(i);let a=e[i++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),o=i>=e.length;return a=!a&&nv.isArray(r)?r.length:a,o?(nv.hasOwnProp(r,a)?r[a]=nv.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!s):(nv.hasOwnProp(r,a)&&nv.isObject(r[a])||(r[a]=[]),t(e,n,r[a],i)&&nv.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!s)}if(nv.isFormData(e)&&nv.isFunction(e.entries)){const n={};return nv.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)Vv(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),n}return null}const $v=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Wv=(e,t)=>null!=e&&nv.hasOwnProp(e,t)?e[t]:void 0,zv={transitional:Mv,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=nv.isObject(e);if(i&&nv.isHTMLForm(e)&&(e=new FormData(e)),nv.isFormData(e))return r?JSON.stringify(qv(e)):e;if(nv.isArrayBuffer(e)||nv.isBuffer(e)||nv.isStream(e)||nv.isFile(e)||nv.isBlob(e)||nv.isReadableStream(e))return e;if(nv.isArrayBufferView(e))return e.buffer;if(nv.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){const t=Wv(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ev(e,new Yv.classes.URLSearchParams,{visitor:function(e,t,n,r){return Yv.isNode&&nv.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((a=nv.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Wv(this,"env"),r=n&&n.FormData;return Ev(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(nv.isString(e))try{return(t||JSON.parse)(e),nv.trim(e)}catch(zle){if("SyntaxError"!==zle.name)throw zle}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Wv(this,"transitional")||zv.transitional,n=t&&t.forcedJSONParsing,r=Wv(this,"responseType"),i="json"===r;if(nv.isResponse(e)||nv.isReadableStream(e))return e;if(e&&nv.isString(e)&&(n&&!r||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Wv(this,"parseReviver"))}catch(zle){if(n){if("SyntaxError"===zle.name)throw Cv.from(zle,Cv.ERR_BAD_RESPONSE,this,null,Wv(this,"response"));throw zle}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yv.classes.FormData,Blob:Yv.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};nv.forEach($v,e=>{zv.headers[e]={}});const Jv=zv;function Kv(e,t){const n=this||Jv,r=t||n,i=Bv.from(r.headers);let a=r.data;return nv.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Qv(e){return!(!e||!e.__CANCEL__)}const Zv=class extends Cv{constructor(e,t,n){super(null==e?"canceled":e,Cv.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Xv(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Cv("Request failed with status code "+n.status,n.status>=400&&n.status<500?Cv.ERR_BAD_REQUEST:Cv.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const ey=/[\t\n\r]/g;function ty(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(ey,"")}function ny(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}const ry=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,s=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),u=r[s];i||(i=l),n[a]=o,r[a]=l;let c=s,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-i<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,r,i=0,a=1e3/t;const s=(t,a=Date.now())=>{i=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),o=t-i;o>=a?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},a-o)))},()=>n&&s(n),(...e)=>s(e)]}(n=>{if(!n||!nv.isNumber(n.loaded))return;const a=n.loaded,s=n.lengthComputable?n.total:void 0,o=Math.max(0,null!=s?Math.min(a,s):a),l=Math.max(0,o-r),u=i(l);r=Math.max(r,o),e({loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-o)/u:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},iy=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ay=(e,t=nv.asap)=>(...n)=>t(()=>e(...n)),sy=Yv.hasStandardBrowserEnv?(oy=new URL(Yv.origin),ly=Yv.navigator&&/(msie|trident)/i.test(Yv.navigator.userAgent),e=>(e=new URL(e,Yv.origin),oy.protocol===e.protocol&&oy.host===e.host&&(ly||oy.port===e.port))):()=>!0;var oy,ly;
vendor: 3,622 bytes, line 22
22const uy=Yv.hasStandardBrowserEnv?{write(e,t,n,r,i,a,s){if("undefined"==typeof document)return;const o=[`${e}=${encodeURIComponent(t)}`];nv.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),nv.isString(r)&&o.push(`path=${r}`),nv.isString(i)&&o.push(`domain=${i}`),!0===a&&o.push("secure"),nv.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch(zle){return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},cy=/^https?:(?!\/\/)/i;function dy(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${mv}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${mv}`);return-1===n?r:`${r}#${i=t.slice(n+1),i?i.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${mv}`):i}`;var i}function hy(e,t){if("string"==typeof e){const n=ty(e);if(cy.test(n))throw new Cv(`Invalid URL ${JSON.stringify(dy(n))}: missing "//" after protocol`,Cv.ERR_INVALID_URL,t)}}function py(e,t,n,r){hy(t,r);let i=!("string"==typeof(a=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a));var a;return e&&(i||!1===n)?(hy(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const fy=e=>e instanceof Bv?{...e}:e;function By(e,t){e=e||{},t=t||{};const n=Object.create(null);function r(e,t,n,r){return nv.isPlainObject(e)&&nv.isPlainObject(t)?nv.merge.call({caseless:r},e,t):nv.isPlainObject(t)?nv.merge({},t):nv.isArray(t)?t.slice():t}function i(e,t,n,i){return nv.isUndefined(t)?nv.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!nv.isUndefined(t))return r(void 0,t)}function s(e,t){return nv.isUndefined(t)?nv.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,i,a){return nv.hasOwnProp(t,a)?r(n,i):nv.hasOwnProp(e,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(e,t,n)=>i(fy(e),fy(t),0,!0)};var u;return nv.forEach((u={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(u).concat(Object.getOwnPropertySymbols(u).filter(e=>Object.getOwnPropertyDescriptor(u,e).enumerable)):Object.keys(u)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=nv.hasOwnProp(l,r)?l[r]:i,s=a(nv.hasOwnProp(e,r)?e[r]:void 0,nv.hasOwnProp(t,r)?t[r]:void 0,r);nv.isUndefined(s)&&a!==o||(n[r]=s)}),nv.hasOwnProp(t,"validateStatus")&&nv.isUndefined(t.validateStatus)&&!1===function(n){const r=nv.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!nv.isUndefined(r)){if(!nv.isPlainObject(r))return;if(nv.hasOwnProp(r,n))return r[n]}const i=nv.hasOwnProp(e,"transitional")?e.transitional:void 0;if(nv.isPlainObject(i)&&nv.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(nv.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 4,112 bytes, line 22
22idateStatus),n}const my=["content-type","content-length"];function gy(e){const t=By({},e),n=e=>nv.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const a=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=Bv.from(o),t.url=Ov(py(u,d,c,t),n("params"),n("paramsSerializer")),l){const t=nv.getSafeProp(l,"username")||"",n=nv.getSafeProp(l,"password")||"";try{o.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(zle){throw Cv.from(zle,Cv.ERR_BAD_OPTION_VALUE,e)}}if(nv.isFormData(r)){const e=nv.getSafeProp(r,"getHeaders");Yv.hasStandardBrowserEnv||Yv.hasStandardBrowserWebWorkerEnv||nv.isReactNative(r)?o.setContentType(void 0):nv.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{my.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(o,e.call(r),n("formDataHeaderPolicy"))}if(Yv.hasStandardBrowserEnv&&(nv.isFunction(i)&&(i=i(t)),!0===i||null==i&&sy(t.url))){const e=a&&s&&uy.read(s);e&&o.set(a,e)}return t}const vy="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=gy(e);let i=r.data;const a=Bv.from(r.headers).normalize();let s,o,l,u,c,d,{responseType:h,onUploadProgress:p,onDownloadProgress:f}=r;function B(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(i){if(!m)return;if(!(0!==m.status||"file"===(ny(ty(r.url))||ny(Yv.origin))||m.responseURL&&m.responseURL.startsWith("file:")))return n(new Cv("Request aborted",Cv.ECONNABORTED,e,m)),B(),void(m=null);try{i?d&&d(i):c&&c()}catch(s){setTimeout(()=>{throw s})}if(!m)return;const a=Bv.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Xv(function(e){t(e),B()},function(e){n(e),B()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:a,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Cv("Request aborted",Cv.ECONNABORTED,e,m)),B(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new Cv(r,Cv.ERR_NETWORK,e,m);i.event=t||null,n(i),B(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Mv;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Cv(t,i.clarifyTimeoutError?Cv.ETIMEDOUT:Cv.ECONNABORTED,e,m)),B(),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&nv.forEach(ov(a),function(e,t){m.setRequestHeader(t,e)}),nv.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),h&&"json"!==h&&(m.responseType=r.responseType),f&&([l,c,d]=ry(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([o,u]=ry(p),m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Zv(null,e,m):t),m.abort(),B(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const v=ny(r.url);if(v&&!Yv.protocols.includes(v))return n(new Cv("Unsupported protocol "+v+":",Cv.ERR_BAD_REQUEST,e)),void B();m.send(i||null)})},yy=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Cv?t:new Zv(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,i(new Cv(`timeout of ${t}ms exceeded`,Cv.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener("abort",i,{once:!0}))});const{signal:o}=n;return o.unsubscribe=()=>nv.asap(s),o}
vendor: 14,482 bytes, line 22
22,Cy=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},_y=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},by=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of _y(e))yield*Cy(n,t)}(e,t);let a,s=0,o=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return o(),void e.close();let a=r.byteLength;if(n){let e=s+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw o(t),t}},cancel:e=>(o(e),i.return())},{highWaterMark:2})},wy=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Dy=(e,t,n)=>t+2<n&&wy(e.charCodeAt(t+1))&&wy(e.charCodeAt(t+2)),Ey=e=>e<=57?e-48:(223&e)-55,ky=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Sy=e=>9===e||10===e||12===e||13===e||32===e,xy=e=>{const t=e.length;let n=0,r=0,i=!1;for(let a=0;a<t;a++){let s=e.charCodeAt(a);37===s&&Dy(e,a,t)&&(s=16*Ey(e.charCodeAt(a+1))+Ey(e.charCodeAt(a+2)),a+=2),Sy(s)||(61!==s?!ky(s)||r>0?i=!0:n++:r++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)};function Ty(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let s=0,o=i.length;s<o;s++){const e=i.charCodeAt(s);if(37===e&&Dy(i,s,o))a+=1,s+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&s+1<o){const e=i.charCodeAt(s+1);e>=56320&&e<=57343?(a+=4,s++):a+=3}else a+=3}return a})(-1===t?e:e.slice(0,t),xy)}const Oy="1.20.0",Ay={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Iy}=nv,Py=e=>{if(!nv.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Ny=(e,...t)=>{try{return!!e(...t)}catch(zle){return!1}},Ry=e=>{const t=void 0!==nv.global&&null!==nv.global?nv.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=nv.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:a,Response:s}=e,o=i?Iy(i):"function"==typeof fetch,l=Iy(a),u=Iy(s);if(!o)return!1;const c=o&&Iy(n),d=o&&("function"==typeof r?(h=new r,e=>h.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer()));var h;const p=l&&c&&Ny(()=>{let e=!1;const t=new a(Yv.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=u&&c&&Ny(()=>nv.isReadableStream(new s("").body)),B={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!B[e]&&(B[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Cv(`Response type '${e}' is not supported`,Cv.ERR_NOT_SUPPORT,n)})});const m=async e=>{if(null==e)return 0;if(nv.isBlob(e))return e.size;if(nv.isSpecCompliantForm(e)){const t=new a(Yv.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return nv.isArrayBufferView(e)||nv.isArrayBuffer(e)?e.byteLength:(nv.isURLSearchParams(e)&&(e+=""),nv.isString(e)?(await d(e)).byteLength:void 0)};return async e=>{let{url:t,method:n,data:o,signal:u,cancelToken:d,timeout:h,onDownloadProgress:g,onUploadProgress:v,responseType:y,headers:C,withCredentials:_="same-origin",fetchOptions:b,maxContentLength:w,maxBodyLength:D,maxRedirects:E}=gy(e);const k=nv.isNumber(w)&&w>-1,S=nv.isNumber(D)&&D>-1;let x=i||fetch;y=y?(y+"").toLowerCase():"text";let T=yy([u,d&&d.toAbortSignal()],h),O=null;const A=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let I,P=null;const N=()=>new Cv("Request body larger than maxBodyLength limit",Cv.ERR_BAD_REQUEST,e,O);try{let i;const u=(M="auth",nv.hasOwnProp(e,M)?e[M]:void 0);if(u){const e=nv.getSafeProp(u,"username")||"";i={username:e,password:nv.getSafeProp(u,"password")||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Yv.origin);if(!i&&(e.username||e.password)){const t=Py(e.username);i={username:t,password:Py(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(i&&(C.delete("authorization"),C.set("Authorization","Basic "+btoa((R=(i.username||"")+":"+(i.password||""),encodeURIComponent(R).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),k&&"string"==typeof t&&t.startsWith("data:")&&Ty(t)>w)throw new Cv("maxContentLength size of "+w+" exceeded",Cv.ERR_BAD_RESPONSE,e,O);if(S&&"get"!==n&&"head"!==n){const e=await m(o);if("number"==typeof e&&isFinite(e)&&(I=e,e>D))throw N()}const d=S&&(nv.isReadableStream(o)||nv.isStream(o)),h=(e,t,n)=>by(e,65536,e=>{if(S&&e>D)throw P=N();t&&t(e)},n);if(p&&"get"!==n&&"head"!==n&&(v||d)){if(I=null==I?await(async(e,t)=>{const n=nv.toFiniteNumber(e.getContentLength());return null==n?m(t):n})(C,o):I,0!==I||d){let e,n=new a(t,{method:"POST",body:o,duplex:"half"});if(nv.isFormData(o)&&(e=n.headers.get("content-type"))&&C.setContentType(e),n.body){const[e,t]=v&&iy(I,ry(ay(v)))||[];o=h(n.body,e,t)}}}else if(d&&!l&&c&&"get"!==n&&"head"!==n)o=h(o);else if(d&&l&&!p&&"get"!==n&&"head"!==n)throw new Cv("Stream request bodies are not supported by the current fetch implementation",Cv.ERR_NOT_SUPPORT,e,O);nv.isString(_)||(_=_?"include":"omit");const F=l&&"credentials"in a.prototype;if(nv.isFormData(o)){const e=C.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&C.delete("content-type")}C.set("User-Agent","axios/"+Oy,!1);const L=null==b?b:Object.assign(Object.create(null),b);L&&(delete L.body,delete L.headers,delete L.method,delete L.signal,delete L.duplex,delete L.credentials);const j=Object.assign(Object.create(null),L,{signal:T,method:n.toUpperCase(),headers:ov(C.normalize()),body:o,duplex:"half",credentials:F?_:void 0});l&&(nv.forEach(Ay,(e,t)=>{void 0===j[t]&&(j[t]=e)}),void 0===j.signal&&(j.signal=null),void 0===j.body&&(j.body=null)),0===E&&(j.redirect="manual",L&&(L.redirect="manual")),O=l&&new a(t,j);let H=await(l?x(O,L):x(t,j));const U=Bv.from(H.headers);if(k){const t=nv.toFiniteNumber(U.getContentLength());if(null!=t&&t>w)throw new Cv("maxContentLength size of "+w+" exceeded",Cv.ERR_BAD_RESPONSE,e,O)}const G=f&&("stream"===y||"response"===y);if(f&&H.body&&(g||k||G&&A)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=H[e]});const n=nv.toFiniteNumber(U.getContentLength()),[r,i]=g&&iy(n,ry(ay(g),!0))||[];let a=0;const o=t=>{if(k&&(a=t,a>w))throw new Cv("maxContentLength size of "+w+" exceeded",Cv.ERR_BAD_RESPONSE,e,O);r&&r(t)};H=new s(by(H.body,65536,o,()=>{i&&i(),A&&A()}),t)}y=y||"text";let Y=await B[nv.findKey(B,y)||"text"](H,e);if(k&&!f&&!G){let t;if(null!=Y&&("number"==typeof Y.byteLength?t=Y.byteLength:"number"==typeof Y.size?t=Y.size:"string"==typeof Y&&(t="function"==typeof r?(new r).encode(Y).byteLength:Y.length)),"number"==typeof t&&t>w)throw new Cv("maxContentLength size of "+w+" exceeded",Cv.ERR_BAD_RESPONSE,e,O)}return!G&&A&&A(),await new Promise((t,n)=>{Xv(t,n,{data:Y,headers:Bv.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:O})})}catch(F){if(A&&A(),T&&T.aborted&&T.reason instanceof Cv){const t=T.reason;throw t.config=e,O&&(t.request=O),F!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:F,writable:!0,enumerable:!1,configurable:!0}),t}if(P)throw O&&!P.request&&(P.request=O),P;if(F instanceof Cv)throw O&&!F.request&&(F.request=O),F;if(F&&"TypeError"===F.name&&/Load failed|fetch/i.test(F.message)){const t=new Cv("Network Error",Cv.ERR_NETWORK,e,O,F&&F.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:F.cause||F,writable:!0,enumerable:!1,configurable:!0}),t}throw Cv.from(F,F&&F.code,e,O,F&&F.response)}var R,M}},My=new Map,Fy=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let s,o,l=a.length,u=My;for(;l--;)s=a[l],o=u.get(s),void 0===o&&u.set(s,o=l?new Map:Ry(t)),u=o;return o};Fy();const Ly={http:null,xhr:vy,fetch:{get:Fy}};nv.forEach(Ly,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(zle){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const jy=e=>`- ${e}`,Hy=e=>nv.isFunction(e)||null===e||!1===e,Uy={getAdapter:function(e,t){e=nv.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let s=0;s<n;s++){let n;if(r=e[s],i=r,!Hy(r)&&(i=Ly[(n=String(r)).toLowerCase()],void 0===i))throw new Cv(`Unknown adapter '${n}'`);if(i&&(nv.isFunction(i)||(i=i.get(t))))break;a[n||"#"+s]=i}if(!i){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(jy).join("\n"):" "+jy(e[0]):"as no adapter specified";throw new Cv("There is no suitable adapter to dispatch the request "+t,Cv.ERR_NOT_SUPPORT)}return i},adapters:Ly};function Gy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zv(null,e)}function Yy(e){const t=nv.toSafeFlatObject(e);return Gy(t),t.headers=Bv.from(nv.getSafeProp(t,"headers")),t.data=Kv.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Uy.getAdapter(t.adapter||Jv.adapter,t)(t).then(function(e){Gy(t),t.response=e;try{e.data=Kv.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Bv.from(e.headers),e},function(e){if(!Qv(e)&&(Gy(t),e&&e.response)){t.response=e.response;try{e.response.data=Kv.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Bv.from(e.response.headers)}return Promise.reject(e)})}const Vy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vy[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const qy={};Vy.transitional=function(e,t,n){return(r,i,a)=>{if(!1===e)throw new Cv(function(e,t){return"[Axios v"+Oy+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(i," has been removed"+(t?" in "+t:"")),Cv.ERR_DEPRECATED);return t&&!qy[i]&&(qy[i]=!0),!e||e(r,i,a)}},Vy.spelling=function(e){return(e,t)=>!0};const $y={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new Cv("options must be an object",Cv.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new Cv("option "+a+" must be "+n,Cv.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Cv("Unknown option "+a,Cv.ERR_BAD_OPTION)}},validators:Vy},Wy=$y.validators;let zy=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Rv,response:new Rv}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error)try{let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack;let r="";if("string"==typeof t){const e=t.indexOf("\n");r=-1===e?"":t.slice(e+1)}if(n.stack){if(r){const e=r.indexOf("\n"),t=-1===e?-1:r.indexOf("\n",e+1),i=-1===t?"":r.slice(t+1);String(n.stack).endsWith(i)||(n.stack+="\n"+r)}}else n.stack=r}catch(zle){}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=By(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&$y.assertOptions(n,{silentJSONParsing:Wy.transitional(Wy.boolean),forcedJSONParsing:Wy.transitional(Wy.boolean),clarifyTimeoutError:Wy.transitional(Wy.boolean),legacyInterceptorReqResOrdering:Wy.transitional(Wy.boolean),advertiseZstdAcceptEncoding:Wy.transitional(Wy.boolean),validateStatusUndefinedResolves:Wy.transitional(Wy.boolean)},!1),null!=r&&(nv.isFunction(r)?t.paramsSerializer={serialize:r}:$y.assertOptions(r,{encode:Wy.function,serialize:Wy.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),$y.assertOptions(t,{baseUrl:Wy.spelling("baseURL"),withXsrfToken:Wy.spelling("withXSRFToken")},!0),t.method=(nv.getSafeProp(t,"method")||nv.getSafeProp(this.defaults,"method")||"get").toLowerCase();let a=i&&nv.merge(i.common,i[t.method]);i&&nv.forEach($v.concat("common"),e=>{delete i[e]}),t.headers=Bv.concat(a,i);const s=[];let o=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;o=o&&e.synchronous;const n=t.transitional||Mv;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!o){const e=[Yy.bind(this),void 0];for(e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=s.length;let h=t;for(;d<c;){const e=s[d++],t=s[d++];try{h=e?e(h):h}catch(p){if(!t){u=Promise.reject(p);break}try{const e=t.call(this,p);nv.isThenable(e)&&(u=Promise.resolve(e).then(()=>Yy.call(this,h)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=Yy.call(this,h)}catch(p){u=Promise.reject(p)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return Ov(py((e=By(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};nv.forEach(["delete","get","head","options"],function(e){zy.prototype[e]=function(t,n){return this.request(By(n||{},{method:e,url:t,data:n&&nv.hasOwnProp(n,"data")?n.data:void 0}))}}),nv.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,i){return this.request(By(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}zy.prototype[e]=t(),"query"!==e&&(zy.prototype[e+"Form"]=t(!0))});const Jy=zy,Ky=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Zv(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
22subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Qy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Qy).forEach(([e,t])=>{void 0===Qy[t]&&(Qy[t]=e)});const Zy=Qy,Xy=function e(t){const n=new Jy(t),r=ig(Jy.prototype.request,n);return nv.extend(r,Jy.prototype,n,{allOwnKeys:!0}),nv.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(By(t,n))},r}(Jv);Xy.Axios=Jy,Xy.CanceledError=Zv,Xy.CancelToken=Ky,Xy.isCancel=Qv,Xy.VERSION=Oy,Xy.toFormData=Ev,Xy.AxiosError=Cv,Xy.Cancel=Xy.CanceledError,Xy.all=function(e){return Promise.all(e)},Xy.spread=function(e){return function(t){return e.apply(null,t)}},Xy.isAxiosError=function(e){return nv.isObject(e)&&!0===e.isAxiosError},Xy.mergeConfig=By,Xy.AxiosHeaders=Bv,Xy.formToJSON=e=>qv(nv.isHTMLForm(e)?new FormData(e):e),Xy.getAdapter=Uy.getAdapter,Xy.HttpStatusCode=Zy,Xy.default=Xy;const eC=Xy,{Axios:tC,AxiosError:nC,CanceledError:rC,isCancel:iC,CancelToken:aC,VERSION:sC,all:oC,Cancel:lC,isAxiosError:uC,spread:cC,toFormData:dC,AxiosHeaders:hC,HttpStatusCode:pC,formToJSON:fC,getAdapter:BC,mergeConfig:mC,create:gC}=eC;var vC=new class{constructor(e){this.config={},this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Rh(this.config,e)?Xc(this.config,e):Xc(this.defaults,e)}set(e,t){"string"==typeof e?Hh(this.config,e,t):Object.entries(e).forEach(([e,t])=>{Hh(this.config,e,t)})}}({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},future:{preserveEqualProps:!1,useDataInertiaHeadAttribute:!1,useDialogForErrorModal:!1,useScriptElementForInitialPage:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function yC(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function CC(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var _C=e=>CC("before",{cancelable:!0,detail:{visit:e}}),bC=e=>CC("navigate",{detail:{page:e}}),wC=e=>CC("flash",{detail:{flash:e}}),DC=class{static set(e,t){"undefined"!=typeof window&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if("undefined"!=typeof window)return JSON.parse(window.sessionStorage.getItem(e)||"null")}static merge(e,t){const n=this.get(e);null===n?this.set(e,t):this.set(e,{...n,...t})}static remove(e){"undefined"!=typeof window&&window.sessionStorage.removeItem(e)}static removeNested(e,t){const n=this.get(e);null!==n&&(delete n[t],this.set(e,n))}static exists(e){try{return null!==this.get(e)}catch(t){return!1}}static clear(){"undefined"!=typeof window&&window.sessionStorage.clear()}};DC.locationVisitKey="inertiaLocationVisit";var EC="historyKey",kC="historyIv",SC=async(e,t,n)=>{if("undefined"==typeof window)throw new Error("Unable to encrypt history");if(void 0===window.crypto.subtle)return Promise.resolve(n);const r=new TextEncoder,i=JSON.stringify(n),a=new Uint8Array(3*i.length),s=r.encodeInto(i,a);return window.crypto.subtle.encrypt({name:"AES-GCM",iv:e},t,a.subarray(0,s.written))},xC=async(e,t,n)=>{if(void 0===window.crypto.subtle)return Promise.resolve(n);
22const r=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,n);return JSON.parse((new TextDecoder).decode(r))},TC=()=>{const e=DC.get(kC);if(e)return new Uint8Array(e);const t=window.crypto.getRandomValues(new Uint8Array(12));return DC.set(kC,Array.from(t)),t},OC=async e=>{if(e)return e;const t=await(async()=>void 0===window.crypto.subtle?Promise.resolve(null):window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]))();return t?(await(async e=>{if(void 0===window.crypto.subtle)return Promise.resolve();const t=await window.crypto.subtle.exportKey("raw",e);DC.set(EC,Array.from(new Uint8Array(t)))})(t),t):null},AC=async()=>{const e=DC.get(EC);return e?await window.crypto.subtle.importKey("raw",new Uint8Array(e),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]):null},IC=e=>{const t={};for(const n of Object.keys(e))void 0!==e[n]&&(t[n]=e[n]);return t},PC=(e,t,n)=>{if(e===t)return!0;for(const r in e)if(!n.includes(r)&&e[r]!==t[r]&&!NC(e[r],t[r]))return!1;for(const r in t)if(!n.includes(r)&&!(r in e))return!1;return!0},NC=(e,t)=>{switch(typeof e){case"object":return PC(e,t,[]);case"function":return e.toString()===t.toString();default:return e===t}},RC={ms:1,s:1e3,m:6e4,h:36e5,d:864e5},MC=e=>{if("number"==typeof e)return e;for(const[t,n]of Object.entries(RC))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},FC=new class{constructor(){this.cached=[],this.inFlightRequests=[],this.removalTimers=[],this.currentUseId=null}add(e,t,{cacheFor:n,cacheTags:r}){if(this.findInFlight(e))return Promise.resolve();const i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();const[a,s]=this.extractStaleValues(n),o=new Promise((n,r)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),r()},onError:t=>{this.remove(e),e.onError(t),r()},onPrefetching(t){e.onPrefetching(t)},onPrefetched(t,n){e.onPrefetched(t,n)},onPrefetchResponse(e){n(e)},onPrefetchError(t){FC.removeFromInFlight(e),r(t)}})}).then(t=>{this.remove(e);const n=t.getPageResponse();XC.mergeOncePropsIntoResponse(n),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,expiresAt:Date.now()+s,response:o,singleUse:0===s,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(r)?r:[r]});const i=this.getShortestOncePropTtl(n);return this.scheduleForRemoval(e,i?Math.min(s,i):s),this.removeFromInFlight(e),t.handlePrefetch(),t});return this.inFlightRequests.push({params:{...e},response:o,staleTimestamp:null,inFlight:!0}),o}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(t=>e.includes(t)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){const[t,n]=this.cacheForToStaleAndExpires(e);return[MC(t),MC(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){const t=this.removalTimers.find(t=>this.paramsAreEqual(t.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(e=>e!==t))}scheduleForRemoval(e,t){if("undefined"!=typeof window&&(this.clearTimer(e),t>0)){const n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){const n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=n,e.response.then(e=>{if(this.currentUseId===n)return e.mergeParams({...t,onPrefetched:()=>{}}),this.removeSingleUseItems(t),e.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)||!t.singleUse)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){const t=nh(e);return"prefetch"===t.headers.Purpose&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return PC(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),["showProgress","replace","prefetch","preserveScroll","preserveState","onBefore","onBeforeUpdate","onStart","onProgress","onFinish","onCancel","onSuccess","onError","onFlash","onPrefetched","onCancelToken","onPrefetching","async","viewTransition"])}
22updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{const n=t.getPageResponse();XC.mergeOncePropsIntoResponse(n,{force:!0});for(const[e,s]of Object.entries(n.deferredProps??{})){const t=s.filter(e=>void 0===n.props[e]);t.length>0?n.deferredProps[e]=t:delete n.deferredProps[e]}const r=this.getShortestOncePropTtl(n);if(null===r)return;const i=e.expiresAt-Date.now(),a=Math.min(i,r);a>0?this.scheduleForRemoval(e.params,a):this.remove(e.params)})})}getShortestOncePropTtl(e){const t=Object.values(e.onceProps??{}).map(e=>e.expiresAt).filter(e=>!!e);return 0===t.length?null:Math.min(...t)-Date.now()}},LC=(e,t=1)=>{window.requestAnimationFrame(()=>{t>1?LC(e,t-1):e()})},jC="undefined"==typeof window,HC=!jC&&/Firefox/i.test(window.navigator.userAgent),UC=class{static save(){i_.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll("[scroll-region]")}static scrollToTop(){if(HC&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior)return LC(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){(jC?null:window.location.hash)||this.scrollToTop(),this.regions().forEach(e=>{"function"==typeof e.scrollTo?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){const e=jC?null:window.location.hash;e&&setTimeout(()=>{const t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){jC||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){jC||this.regions().forEach((t,n)=>{const r=e[n];r&&("function"==typeof t.scrollTo?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))})}static restoreDocument(){const e=i_.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){const t=e.target;"function"==typeof t.hasAttribute&&t.hasAttribute("scroll-region")&&this.save()}static onWindowScroll(){i_.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}};function GC(e){return t=e,"undefined"!=typeof File&&t instanceof File||t instanceof Blob||"undefined"!=typeof FileList&&t instanceof FileList&&t.length>0||e instanceof FormData&&Array.from(e.values()).some(e=>GC(e))||"object"==typeof e&&null!==e&&Object.values(e).some(e=>GC(e));var t}var YC=e=>e instanceof FormData;function VC(e,t=new FormData,n=null,r="brackets"){e=e||{};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&$C(t,qC(n,i,"indices"),e[i],r);return t}function qC(e,t,n){return e?"brackets"===n?`${e}[]`:`${e}[${t}]`:t}function $C(e,t,n,r){return Array.isArray(n)?Array.from(n.keys()).forEach(i=>$C(e,qC(t,i.toString(),r),n[i],r)):n instanceof Date?e.append(t,n.toISOString()):n instanceof File?e.append(t,n,n.name):n instanceof Blob?e.append(t,n):"boolean"==typeof n?e.append(t,n?"1":"0"):"string"==typeof n?e.append(t,n):"number"==typeof n?e.append(t,`${n}`):null==n?e.append(t,""):void VC(n,e,t,r)}function WC(e){return new URL(e.toString(),"undefined"==typeof window?void 0:window.location.toString())}var zC=(e,t,n,r,i)=>{let a="string"==typeof e?WC(e):e;if(!GC(t)&&!r||YC(t)||(vC.get("form.forceIndicesArrayFormatInFormData")&&(i="indices"),t=VC(t,new FormData,null,i)),YC(t))return[a,t];const[s,o]=function(e,t,n,r="brackets"){const i="get"===e&&!YC(n)&&Object.keys(n).length>0,a=function(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}(t.toString()),s=a||t.toString().startsWith("/")||""===t.toString(),o=!s&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=/^[.]{1,2}([/]|$)/.test(t.toString()),u=t.toString().includes("?")||i,c=t.toString().includes("#"),d=new URL(t.toString(),"undefined"==typeof window?"http://localhost":window.location.toString());if(i){const e=/\[\d+\]/.test(decodeURIComponent(d.search)),t={ignoreQueryPrefix:!0,allowSparse:!0};d.search=rg.stringify({...rg.parse(d.search,t),...n},{encodeValuesOnly:!0,arrayFormat:e?"indices":r})}return[[a?`${d.protocol}//${d.host}`:"",s?d.pathname:"",o?d.pathname.substring(l?0:1):"",u?d.search:"",c?d.hash:""].join(""),i?{}:n]}(n,a,t,i);return[WC(s),o]};
22function JC(e){return(e=new URL(e.href)).hash="",e}var KC=(e,t)=>{e.hash&&!t.hash&&JC(e).href===t.href&&(t.hash=e.hash)},QC=(e,t)=>JC(e).href===JC(t).href;function ZC(e){return null!==e&&"object"==typeof e&&void 0!==e&&"url"in e&&"method"in e}var XC=new class{constructor(){this.componentId={},this.listeners=[],this.isFirstPageLoad=!0,this.cleared=!1,this.pendingDeferredProps=null,this.historyQuotaExceeded=!1}init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:r}){return this.page={...e,flash:e.flash??{}},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=r,a_.on("historyQuotaExceeded",()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:r=!1,viewTransition:i=!1,initialRender:a=!1}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},void 0===e.initialDeferredProps&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};const s=this.componentId;return e.clearHistory&&i_.clear(),this.resolve(e.component).then(o=>{if(s!==this.componentId)return;e.rememberedState??(e.rememberedState={});const l="undefined"==typeof window,u=l?new URL(e.url):window.location,c=!l&&n?UC.getScrollRegions():[];t=t||QC(WC(e.url),u);const d={...e,flash:{}};return new Promise(e=>t?i_.replaceState(d,e):i_.pushState(d,e)).then(()=>{const s=!this.isTheSame(e);if(!s&&Object.keys(e.props.errors||{}).length>0&&(i=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&FC.updateCachedOncePropsFromCurrentPage(),s&&this.fireEventsFor("newComponent"),this.isFirstPageLoad&&this.fireEventsFor("firstLoad"),this.isFirstPageLoad=!1,!this.historyQuotaExceeded)return this.swap({component:o,page:e,preserveState:r,viewTransition:i,initialRender:a}).then(()=>{n?window.requestAnimationFrame(()=>UC.restoreScrollRegions(c)):UC.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&a_.fireInternalEvent("loadDeferredProps",this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||bC(e)});this.historyQuotaExceeded=!1})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component).then(n=>(this.page=e,this.cleared=!1,i_.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setFlash(e){var t;this.page={...this.page,flash:e},null==(t=this.onFlashCallback)||t.call(this,e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:r,initialRender:i=!1}){const a=()=>this.swapComponent({component:e,page:t,preserveState:n,initialRender:i});if(!r||!(null==document?void 0:document.startViewTransition)||"hidden"===document.visibilityState)return a();const s="boolean"==typeof r?()=>null:r;return new Promise(e=>{const t=document.startViewTransition(()=>a().then(e));t.ready.catch(()=>{}),s(t)})}resolve(e){return Promise.resolve(this.resolveComponent(e))}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(e=>e.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,r])=>{var i;const a=null==(i=this.page.onceProps)?void 0:i[n];void 0!==a&&(t||void 0===e.props[r.prop])&&(e.props[r.prop]=this.page.props[a.prop],e.onceProps[n].expiresAt=a.expiresAt)})}},e_=class{constructor(){this.items=[],this.processingPromise=null}add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??(this.processingPromise=this.processNext().finally(()=>{this.processingPromise=null})),this.processingPromise}processNext(){const e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},t_="undefined"==typeof window,n_=new e_,r_=!t_&&/CriOS/.test(window.navigator.userAgent);"undefined"!=typeof window&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual");var i_=new class{constructor(){this.rememberedState="rememberedState",this.scrollRegions="scrollRegions",this.preserveUrl=!1,this.current={},this.initialState=null}remember(e,t){var n;this.replaceState({...XC.getWithoutFlashData(),rememberedState:{...(null==(n=XC.get())?void 0:n.rememberedState)??{},[t]:e}})}restore(e){var t,n,r,i;if(!t_)return void 0!==(null==(t=this.current[this.rememberedState])?void 0:t[e])?null==(n=this.current[this.rememberedState])?void 0:n[e]:null==(i=null==(r=this.initialState)?void 0:r[this.rememberedState])?void 0:i[e]}pushState(e,t=null){t_||(this.preserveUrl?t&&t():(this.current=e,n_.add(()=>this.getPageData(e).then(n=>{const r=()=>this.doPushState({page:n},e.url).then(()=>null==t?void 0:t());return r_?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}
22))))}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:nh(e.props)}}}getPageData(e){const t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?(async e=>{if("undefined"==typeof window)throw new Error("Unable to encrypt history");const t=TC(),n=await AC(),r=await OC(n);if(!r)throw new Error("Unable to encrypt history");return await SC(t,r,e)})(t).then(n):n(t))}processQueue(){return n_.process()}decrypt(e=null){var t;if(t_)return Promise.resolve(e??XC.get());const n=e??(null==(t=window.history.state)?void 0:t.page);return this.decryptPageData(n).then(e=>{if(!e)throw new Error("Unable to decrypt history");return null===this.initialState?this.initialState=e??void 0:this.current=e??{},e})}decryptPageData(e){return e instanceof ArrayBuffer?(async e=>{const t=TC(),n=await AC();if(!n)throw new Error("Unable to decrypt history");return await xC(t,n,e)})(e):Promise.resolve(e)}saveScrollPositions(e){n_.add(()=>Promise.resolve().then(()=>{var t;if((null==(t=window.history.state)?void 0:t.page)&&!Mh(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){n_.add(()=>Promise.resolve().then(()=>{var t;if((null==(t=window.history.state)?void 0:t.page)&&!Mh(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){var e;return(null==(e=window.history.state)?void 0:e.scrollRegions)||[]}getDocumentScrollPosition(){var e;return(null==(e=window.history.state)?void 0:e.documentScrollPosition)||{top:0,left:0}}replaceState(e,t=null){if(Mh(this.current,e))return void(t&&t());const{flash:n,...r}=e;XC.merge(r),t_||(this.preserveUrl?t&&t():(this.current=e,n_.add(()=>this.getPageData(e).then(n=>{const r=()=>this.doReplaceState({page:n},e.url).then(()=>null==t?void 0:t());return r_?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))))}isHistoryThrottleError(e){return e instanceof Error&&"SecurityError"===e.name&&(e.message.includes("history.pushState")||e.message.includes("history.replaceState"))}isQuotaExceededError(e){return e instanceof Error&&"QuotaExceededError"===e.name}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(t){if(!this.isHistoryThrottleError(t))throw t}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{var n,r;window.history.replaceState({...e,scrollRegions:e.scrollRegions??(null==(n=window.history.state)?void 0:n.scrollRegions),documentScrollPosition:e.documentScrollPosition??(null==(r=window.history.state)?void 0:r.documentScrollPosition)},"",t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,"",t)}catch(n){if(!this.isQuotaExceededError(n))throw n;a_.fireInternalEvent("historyQuotaExceeded",t)}})}getState(e,t){var n;return(null==(n=this.current)?void 0:n[e])??t}deleteState(e){void 0!==this.current[e]&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&void 0!==this.initialState[e]&&delete this.initialState[e]}browserHasHistoryEntry(){var e;return!t_&&!!(null==(e=window.history.state)?void 0:e.page)}clear(){DC.remove(EC),DC.remove(kC)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}},a_=new class{constructor(){this.internalListeners=[]}init(){"undefined"!=typeof window&&(window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),window.addEventListener("pageshow",this.handlePageshowEvent.bind(this)),window.addEventListener("scroll",yC(UC.onWindowScroll.bind(UC),100),!0)),"undefined"!=typeof document&&document.addEventListener("scroll",yC(UC.onScroll.bind(UC),100),!0)}onGlobalEvent(e,t){return this.registerListener(`inertia:${e}`,e=>{const n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()})}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(e=>e.listener!==t)}}onMissingHistoryItem(){XC.clear(),this.fireInternalEvent("missingHistoryItem")}fireInternalEvent(e,...t){this.internalListeners.filter(t=>
22t.event===e).forEach(e=>e.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&i_.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){const t=e.state||null;if(null===t){const e=WC(XC.get().url);return e.hash=window.location.hash,i_.replaceState({...XC.getWithoutFlashData(),url:e.href}),void UC.reset()}if(!i_.isValidState(t))return this.onMissingHistoryItem();i_.decrypt(t.page).then(e=>{XC.get().version===e.version?(U_.cancelAll({prefetch:!1}),XC.setQuietly(e,{preserveState:!1}).then(()=>{UC.restore(i_.getScrollRegions()),bC(XC.get());const t={},n=XC.get().props;for(const[r,i]of Object.entries(e.initialDeferredProps??e.deferredProps??{})){const e=i.filter(e=>void 0===n[e]);e.length>0&&(t[r]=e)}Object.keys(t).length>0&&this.fireInternalEvent("loadDeferredProps",t)})):this.onMissingHistoryItem()}).catch(()=>{this.onMissingHistoryItem()})}},s_=new class{constructor(){this.type=this.resolveType()}resolveType(){return"undefined"==typeof window?"navigate":window.performance&&window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}get(){return this.type}isBackForward(){return"back_forward"===this.type}isReload(){return"reload"===this.type}},o_=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(e=>e.bind(this)())}static clearRememberedStateOnReload(){s_.isReload()&&(i_.deleteState(i_.rememberedState),i_.clearInitialState(i_.rememberedState))}static handleBackForward(){if(!s_.isBackForward()||!i_.browserHasHistoryEntry())return!1;const e=i_.getScrollRegions();return i_.decrypt().then(t=>{XC.set(t,{preserveScroll:!0,preserveState:!0}).then(()=>{UC.restore(e),bC(XC.get())})}).catch(()=>{a_.onMissingHistoryItem()}),!0}static handleLocation(){if(!DC.exists(DC.locationVisitKey))return!1;const e=DC.get(DC.locationVisitKey)||{};return DC.remove(DC.locationVisitKey),"undefined"!=typeof window&&XC.setUrlHash(window.location.hash),i_.decrypt(XC.get()).then(()=>{const t=i_.getState(i_.rememberedState,{}),n=i_.getScrollRegions();XC.remember(t),XC.set(XC.get(),{preserveScroll:e.preserveScroll,preserveState:!0,initialRender:!0}).then(()=>{e.preserveScroll&&UC.restore(n),bC(XC.get())})}).catch(()=>{a_.onMissingHistoryItem()}),!0}static handleDefault(){"undefined"!=typeof window&&XC.setUrlHash(window.location.hash),XC.set(XC.get(),{preserveScroll:!0,preserveState:!0,initialRender:!0}).then(()=>{s_.isReload()?UC.restore(i_.getScrollRegions()):UC.scrollToAnchor();const e=XC.get();bC(e);const t=e.flash;Object.keys(t).length>0&&queueMicrotask(()=>wC(t))})}},l_=class{constructor(e,t,n){this.intervalId=null,this.timeoutId=null,this.throttle=!1,this.keepAlive=!1,this.cbCount=0,this.inFlight=!1,this.currentCancel=null,this.stopped=!0,this.instanceId=0,this.keepAlive=n.keepAlive??!1,this.mode=n.mode??"overlap",this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.stopped=!0,this.instanceId++,this.inFlight=!1,this.currentCancel=null,this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}start(){"undefined"!=typeof window&&(this.stop(),this.stopped=!1,"rest"!==this.mode?this.intervalId=window.setInterval(()=>this.tick(),this.interval):this.scheduleNext())}isInBackground(e){this.throttle=!this.keepAlive&&e,this.throttle&&(this.cbCount=0)}scheduleNext(){this.stopped||(this.timeoutId=window.setTimeout(()=>{this.timeoutId=null,this.tick()},this.interval))}tick(){this.throttle&&this.cbCount%10!=0?"rest"===this.mode&&this.scheduleNext():this.fire(),this.throttle&&this.cbCount++}fire(){var e;this.inFlight&&"cancel"===this.mode&&(null==(e=this.currentCancel)||e.call(this));const t=this.instanceId;this.cb({onStart:e=>{t===this.instanceId&&(this.inFlight=!0,this.currentCancel=e)},onFinish:()=>{t===this.instanceId&&(this.inFlight=!1,this.currentCancel=null,"rest"===this.mode&&this.scheduleNext())}})}},u_=new class{constructor(){this.polls=[],this.setupVisibilityListener()}get count(){return this.polls.length}add(e,t,n){const r=new l_(e,t,n);return this.polls.push(r),{stop:()=>r.stop(),start:()=>r.start(),destroy:()=>{r.stop(),this.polls=this.polls.filter(e=>e!==r)}}}
22clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){"undefined"!=typeof document&&document.addEventListener("visibilitychange",()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},c_=class e{constructor(e){if(this.callbacks=[],e.prefetch){const t={onBefore:this.wrapCallback(e,"onBefore"),onBeforeUpdate:this.wrapCallback(e,"onBeforeUpdate"),onStart:this.wrapCallback(e,"onStart"),onProgress:this.wrapCallback(e,"onProgress"),onFinish:this.wrapCallback(e,"onFinish"),onCancel:this.wrapCallback(e,"onCancel"),onSuccess:this.wrapCallback(e,"onSuccess"),onError:this.wrapCallback(e,"onError"),onFlash:this.wrapCallback(e,"onFlash"),onCancelToken:this.wrapCallback(e,"onCancelToken"),onPrefetched:this.wrapCallback(e,"onPrefetched"),onPrefetching:this.wrapCallback(e,"onPrefetching")};this.params={...e,...t,onPrefetchResponse:e.onPrefetchResponse||(()=>{}),onPrefetchError:e.onPrefetchError||(()=>{})}}else this.params=e}static create(t){return new e(t)}data(){return"get"===this.params.method?null:this.params.data}queryParams(){return"get"===this.params.method?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return!0===this.params.prefetch}isDeferredPropsRequest(){return!0===this.params.deferredProps}onCancelToken(e){this.params.onCancelToken({cancel:e})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:e=!0,interrupted:t=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=e,this.params.interrupted=t}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(e){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(e)}onPrefetchError(e){this.params.onPrefetchError&&this.params.onPrefetchError(e)}all(){return this.params}headers(){const e={...this.params.headers};this.isPartial()&&(e["X-Inertia-Partial-Component"]=XC.get().component);const t=this.params.only.concat(this.params.reset);return t.length>0&&(e["X-Inertia-Partial-Data"]=t.join(",")),this.params.except.length>0&&(e["X-Inertia-Partial-Except"]=this.params.except.join(",")),this.params.reset.length>0&&(e["X-Inertia-Reset"]=this.params.reset.join(",")),this.params.errorBag&&this.params.errorBag.length>0&&(e["X-Inertia-Error-Bag"]=this.params.errorBag),e}setPreserveOptions(t){this.params.preserveScroll=e.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=e.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:e,args:t})=>{this.params[e](...t)})}merge(e){this.params={...this.params,...e}}wrapCallback(e,t){return(...n)=>{this.recordCallback(t,n),e[t](...n)}}recordCallback(e,t){this.callbacks.push({name:e,args:t})}static resolvePreserveOption(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e}},d_={modal:null,listener:null,previousBodyOverflow:null,createIframeAndPage(e){"object"==typeof e&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>${JSON.stringify(e)}`);const t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(e=>e.setAttribute("target","_top"));const n=document.createElement("iframe");return n.style.backgroundColor="white",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",n.setAttribute("sandbox","allow-scripts"),{iframe:n,page:t}},show(e){const{iframe:t,page:n}=this.createIframeAndPage(e);this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide()),this.modal.appendChild(t),document.body.prepend(this.modal),this.previousBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",t.srcdoc=n.outerHTML,this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow=this.previousBodyOverflow??"",this.previousBodyOverflow=null,document.removeEventListener("keydown",this.listener)}
22,hideOnEscape(e){27===e.keyCode&&this.hide()}},h_={show(e){const{iframe:t,page:n}=d_.createIframeAndPage(e);t.style.boxSizing="border-box",t.style.display="block";const r=document.createElement("dialog");r.id="inertia-error-dialog",Object.assign(r.style,{width:"calc(100vw - 100px)",height:"calc(100vh - 100px)",padding:"0",margin:"auto",border:"none",backgroundColor:"transparent"});const i=document.createElement("style");i.textContent="\n      dialog#inertia-error-dialog::backdrop {\n        background-color: rgba(0, 0, 0, 0.6);\n      }\n\n      dialog#inertia-error-dialog:focus {\n        outline: none;\n      }\n    ",document.head.appendChild(i),r.addEventListener("click",e=>{e.target===r&&r.close()}),r.addEventListener("close",()=>{i.remove(),r.remove()}),r.appendChild(t),document.body.prepend(r),r.showModal(),r.focus(),t.srcdoc=n.outerHTML}},p_=new e_,f_=class e{constructor(e,t,n){this.requestParams=e,this.response=t,this.originatingPage=n,this.wasPrefetched=!1}static create(t,n,r){return new e(t,n,r)}async handlePrefetch(){QC(this.requestParams.all().url,window.location)&&this.handle()}async handle(){return p_.add(()=>this.process())}async process(){if(this.requestParams.all().prefetch)return this.wasPrefetched=!0,this.requestParams.all().prefetch=!1,this.requestParams.all().onPrefetched(this.response,this.requestParams.all()),e=this.response,t=this.requestParams.all(),CC("prefetched",{detail:{fetchedAt:Date.now(),response:e.data,visit:t}}),Promise.resolve();var e,t;if(this.requestParams.runCallbacks(),!this.isInertiaResponse())return this.handleNonInertiaResponse();await i_.processQueue(),i_.preserveUrl=this.requestParams.all().preserveUrl,await this.setPage();const n=XC.get().props.errors||{};if(Object.keys(n).length>0){const e=this.getScopedErrors(n);return(e=>{CC("error",{detail:{errors:e}})})(e),this.requestParams.all().onError(e)}U_.flushByCacheTags(this.requestParams.all().invalidateCacheTags||[]),this.wasPrefetched||U_.flush(XC.get().url);const{flash:r}=XC.get();Object.keys(r).length>0&&!this.requestParams.isDeferredPropsRequest()&&(wC(r),this.requestParams.all().onFlash(r)),CC("success",{detail:{page:XC.get()}}),await this.requestParams.all().onSuccess(XC.get()),i_.preserveUrl=!1}mergeParams(e){this.requestParams.merge(e)}getPageResponse(){const e=this.getDataFromResponse(this.response.data);return this.response.data="object"==typeof e?{...e,flash:e.flash??{}}:e}async handleNonInertiaResponse(){if(this.isLocationVisit()){const e=WC(this.getHeader("x-inertia-location"));return KC(this.requestParams.all().url,e),this.locationVisit(e)}const e={...this.response,data:this.getDataFromResponse(this.response.data)};if((e=>CC("invalid",{cancelable:!0,detail:{response:e}}))(e))return vC.get("future.useDialogForErrorModal")?h_.show(e.data):d_.show(e.data)}isInertiaResponse(){return this.hasHeader("x-inertia")}hasStatus(e){return this.response.status===e}getHeader(e){return this.response.headers[e]}hasHeader(e){return void 0!==this.getHeader(e)}isLocationVisit(){return this.hasStatus(409)&&this.hasHeader("x-inertia-location")}locationVisit(e){try{if(DC.set(DC.locationVisitKey,{preserveScroll:!0===this.requestParams.all().preserveScroll}),"undefined"==typeof window)return;QC(window.location,e)?window.location.reload():window.location.href=e.href}catch(t){return!1}}async setPage(){const e=this.getPageResponse();return this.shouldSetPage(e)?(this.mergeProps(e),XC.mergeOncePropsIntoResponse(e),this.preserveEqualProps(e),await this.setRememberedState(e),this.requestParams.setPreserveOptions(e),e.url=i_.preserveUrl?XC.get().url:this.pageUrl(e),this.requestParams.all().onBeforeUpdate(e),CC("beforeUpdate",{detail:{page:e}}),XC.set(e,{replace:this.requestParams.all().replace,preserveScroll:this.requestParams.all().preserveScroll,preserveState:this.requestParams.all().preserveState,viewTransition:this.requestParams.all().viewTransition})):Promise.resolve()}getDataFromResponse(e){if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}shouldSetPage(e){if(!this.requestParams.all().async)return!0;if(this.originatingPage.component!==e.component)return!0;
22if(this.originatingPage.component!==XC.get().component)return!1;const t=WC(this.originatingPage.url),n=WC(XC.get().url);return t.origin===n.origin&&t.pathname===n.pathname}pageUrl(e){const t=WC(e.url);return KC(this.requestParams.all().url,t),t.pathname+t.search+t.hash}preserveEqualProps(e){if(e.component!==XC.get().component||!0!==vC.get("future.preserveEqualProps"))return;const t=XC.get().props;Object.entries(e.props).forEach(([n,r])=>{Mh(r,t[n])&&(e.props[n]=t[n])})}mergeProps(e){if(!this.requestParams.isPartial()||e.component!==XC.get().component)return;const t=e.mergeProps||[],n=e.prependProps||[],r=e.deepMergeProps||[],i=e.matchPropsOn||[],a=(t,n)=>{const r=Xc(XC.get().props,t),a=Xc(e.props,t);if(Array.isArray(a)){const s=this.mergeOrMatchItems(r||[],a,t,i,n);Hh(e.props,t,s)}else if("object"==typeof a&&null!==a){const n={...r||{},...a};Hh(e.props,t,n)}};if(t.forEach(e=>a(e,!0)),n.forEach(e=>a(e,!1)),r.forEach(t=>{const n=XC.get().props[t],r=e.props[t],a=(e,t,n)=>Array.isArray(t)?this.mergeOrMatchItems(e,t,n,i):"object"==typeof t&&null!==t?Object.keys(t).reduce((r,i)=>(r[i]=a(e?e[i]:void 0,t[i],`${n}.${i}`),r),{...e}):t;e.props[t]=a(n,r,t)}),e.props={...XC.get().props,...e.props},this.requestParams.isDeferredPropsRequest()){const t=XC.get().props.errors;t&&Object.keys(t).length>0&&(e.props.errors=t)}XC.get().scrollProps&&(e.scrollProps={...XC.get().scrollProps||{},...e.scrollProps||{}}),XC.hasOnceProps()&&(e.onceProps={...XC.get().onceProps||{},...e.onceProps||{}}),this.requestParams.isDeferredPropsRequest()&&(e.flash={...XC.get().flash});const s=XC.get().initialDeferredProps;s&&Object.keys(s).length>0&&(e.initialDeferredProps=s)}mergeOrMatchItems(e,t,n,r,i=!0){const a=Array.isArray(e)?e:[],s=r.find(e=>e.split(".").slice(0,-1).join(".")===n);if(!s)return i?[...a,...t]:[...t,...a];const o=s.split(".").pop()||"",l=new Map;return t.forEach(e=>{this.hasUniqueProperty(e,o)&&l.set(e[o],e)}),i?this.appendWithMatching(a,t,l,o):this.prependWithMatching(a,t,l,o)}appendWithMatching(e,t,n,r){return[...e.map(e=>this.hasUniqueProperty(e,r)&&n.has(e[r])?n.get(e[r]):e),...t.filter(t=>!this.hasUniqueProperty(t,r)||!e.some(e=>this.hasUniqueProperty(e,r)&&e[r]===t[r]))]}prependWithMatching(e,t,n,r){return[...t,...e.filter(e=>!this.hasUniqueProperty(e,r)||!n.has(e[r]))]}hasUniqueProperty(e,t){return e&&"object"==typeof e&&t in e}async setRememberedState(e){const t=await i_.getState(i_.rememberedState,{});this.requestParams.all().preserveState&&t&&e.component===XC.get().component&&(e.rememberedState=t)}getScopedErrors(e){return this.requestParams.all().errorBag?e[this.requestParams.all().errorBag||""]||{}:e}},B_=class e{constructor(e,t){this.page=t,this.requestHasFinished=!1,this.requestParams=c_.create(e),this.cancelToken=new AbortController}static create(t,n){return new e(t,n)}isPrefetch(){return this.requestParams.isPrefetch()}async send(){this.requestParams.onCancelToken(()=>this.cancel({cancelled:!0})),CC("start",{detail:{visit:this.requestParams.all()}}),this.requestParams.onStart(),this.requestParams.all().prefetch&&(this.requestParams.onPrefetching(),(e=>{CC("prefetching",{detail:{visit:e}})})(this.requestParams.all()));const e=this.requestParams.all().prefetch;return eC({method:this.requestParams.all().method,url:JC(this.requestParams.all().url).href,data:this.requestParams.data(),params:this.requestParams.queryParams(),signal:this.cancelToken.signal,headers:this.getHeaders(),onUploadProgress:this.onProgress.bind(this),responseType:"text"}).then(e=>(this.response=f_.create(this.requestParams,e,this.page),this.response.handle())).catch(e=>(null==e?void 0:e.response)?(this.response=f_.create(this.requestParams,e.response,this.page),this.response.handle()):Promise.reject(e)).catch(t=>{if(!eC.isCancel(t))return CC("exception",{cancelable:!0,detail:{exception:t}})?(e&&this.requestParams.onPrefetchError(t),Promise.reject(t)):void 0}).finally(()=>{this.finish(),e&&this.response&&this.requestParams.onPrefetchResponse(this.response)})}finish(){this.requestParams.wasCancelledAtAll()||(this.requestParams.markAsFinished(),this.fireFinishEvents())}fireFinishEvents(){this.requestHasFinished||(this.requestHasFinished=!0,CC("finish",{detail:{visit:this.requestParam
22s.all()}}),this.requestParams.onFinish())}cancel({cancelled:e=!1,interrupted:t=!1}){this.requestHasFinished||(this.cancelToken.abort(),this.requestParams.markAsCancelled({cancelled:e,interrupted:t}),this.fireFinishEvents())}onProgress(e){this.requestParams.data()instanceof FormData&&(e.percentage=e.progress?Math.round(100*e.progress):0,(e=>{CC("progress",{detail:{progress:e}})})(e),this.requestParams.all().onProgress(e))}getHeaders(){const e={...this.requestParams.headers(),Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},t=XC.get();t.version&&(e["X-Inertia-Version"]=t.version);const n=Object.entries(t.onceProps||{}).filter(([,e])=>void 0!==t.props[e.prop]&&(!e.expiresAt||e.expiresAt>Date.now())).map(([e])=>e);return n.length>0&&(e["X-Inertia-Except-Once-Props"]=n.join(",")),e}},m_=class{constructor({maxConcurrent:e,interruptible:t}){this.requests=[],this.maxConcurrent=e,this.interruptible=t}send(e){this.requests.push(e),e.send().finally(()=>{this.requests=this.requests.filter(t=>t!==e)})}interruptInFlight(){this.cancel({interrupted:!0},!1)}cancelInFlight({prefetch:e=!0}={}){this.requests.filter(t=>e||!t.isPrefetch()).forEach(e=>e.cancel({cancelled:!0}))}cancel({cancelled:e=!1,interrupted:t=!1}={},n=!1){if(!n&&!this.shouldCancel())return;const r=this.requests.shift();null==r||r.cancel({cancelled:e,interrupted:t})}shouldCancel(){return this.interruptible&&this.requests.length>=this.maxConcurrent}},g_=class{static createWayfinderCallback(...e){return()=>1===e.length?ZC(e[0])?e[0]:e[0]():{method:"function"==typeof e[0]?e[0]():e[0],url:"function"==typeof e[1]?e[1]():e[1]}}static parseUseFormArguments(...e){return 0===e.length?{rememberKey:null,data:{},precognitionEndpoint:null}:1===e.length?{rememberKey:null,data:e[0],precognitionEndpoint:null}:2===e.length?"string"==typeof e[0]?{rememberKey:e[0],data:e[1],precognitionEndpoint:null}:{rememberKey:null,data:e[1],precognitionEndpoint:this.createWayfinderCallback(e[0])}:{rememberKey:null,data:e[2],precognitionEndpoint:this.createWayfinderCallback(e[0],e[1])}}static parseSubmitArguments(e,t){return 3===e.length||2===e.length&&"string"==typeof e[0]?{method:e[0],url:e[1],options:e[2]??{}}:ZC(e[0])?{...e[0],options:e[1]??{}}:{...t(),options:e[0]??{}}}static mergeHeadersForValidation(e,t,n){const r=e=>(e.headers={...n??{},...e.headers??{}},e);return e&&"object"==typeof e&&!("target"in e)?e=r(e):t&&"object"==typeof t?t=r(t):"string"==typeof e?t=r(t??{}):e=r(e??{}),[e,t]}},v_={preferredAttribute:()=>vC.get("future.useDataInertiaHeadAttribute")?"data-inertia":"inertia",buildDOMElement(e){const t=document.createElement("template");t.innerHTML=e;const n=t.content.firstChild;if(!e.startsWith("<script "))return n;const r=document.createElement("script");return r.innerHTML=n.innerHTML,n.getAttributeNames().forEach(e=>{r.setAttribute(e,n.getAttribute(e)||"")}),r},isInertiaManagedElement(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute(this.preferredAttribute())},findMatchingElementIndex(e,t){const n=this.preferredAttribute(),r=e.getAttribute(n);return null!==r?t.findIndex(e=>e.getAttribute(n)===r):-1},update:yC(function(e){const t=e.map(e=>this.buildDOMElement(e));Array.from(document.head.childNodes).filter(e=>
22this.isInertiaManagedElement(e)).forEach(e=>{var n,r;const i=this.findMatchingElementIndex(e,t);if(-1===i)return void(null==(n=null==e?void 0:e.parentNode)||n.removeChild(e));const a=t.splice(i,1)[0];a&&!e.isEqualNode(a)&&(null==(r=null==e?void 0:e.parentNode)||r.replaceChild(a,e))}),t.forEach(e=>document.head.appendChild(e))},1)};function y_(e,t,n){const r={};let i=0;function a(){const e=t(""),n=v_.preferredAttribute(),i={...e?{title:`<title ${n}="">${e}</title>`}:{}},a=Object.values(r).reduce((e,t)=>e.concat(t),[]).reduce((e,r)=>{if(-1===r.indexOf("<"))return e;if(0===r.indexOf("<title ")){const n=r.match(/(<title [^>]+>)(.*?)(<\/title>)/s);return e.title=n?`${n[1]}${t(n[2])}${n[3]}`:r,e}const i=r.match("inertia"===n?/ inertia="[^"]+"/:/ data-inertia="[^"]+"/);return i?e[i[0]]=r:e[Object.keys(e).length]=r,e},i);return Object.values(a)}function s(){e?n(a()):v_.update(a())}return s(),{forceUpdate:s,createProvider:function(){const e=function(){const e=i+=1;return r[e]=[],e.toString()}();return{preferredAttribute:v_.preferredAttribute,reconnect:()=>function(e){-1===Object.keys(r).indexOf(e)&&(r[e]=[])}(e),update:t=>function(e,t=[]){null!==e&&Object.keys(r).indexOf(e)>-1&&(r[e]=t),s()}(e,t),disconnect:()=>function(e){null!==e&&-1!==Object.keys(r).indexOf(e)&&(delete r[e],s())}(e)}}}}var C_,__="nprogress",b_={minimum:.08,easing:"linear",positionUsing:"translate3d",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",color:"#29d",includeCSS:!0,template:['<div class="bar" role="bar">','<div class="peg"></div>',"</div>",'<div class="spinner" role="spinner">','<div class="spinner-icon"></div>',"</div>"].join("")},w_=null,D_=e=>{const t=E_();e=P_(e,b_.minimum,1),w_=1===e?null:e;const n=x_(!t),r=n.querySelector(b_.barSelector),i=b_.speed,a=b_.easing;n.offsetWidth,R_(t=>{const s="translate3d"===b_.positionUsing?{transition:`all ${i}ms ${a}`,transform:`translate3d(${N_(e)}%,0,0)`}:"translate"===b_.positionUsing?{transition:`all ${i}ms ${a}`,transform:`translate(${N_(e)}%,0)`}:{marginLeft:`${N_(e)}%`};for(const e in s)r.style[e]=s[e];if(1!==e)return setTimeout(t,i);n.style.transition="none",n.style.opacity="1",n.offsetWidth,setTimeout(()=>{n.style.transition=`all ${i}ms linear`,n.style.opacity="0",setTimeout(()=>{O_(),n.style.transition="",n.style.opacity="",t()},i)},i)})},E_=()=>"number"==typeof w_,k_=()=>{w_||D_(0);const e=function(){setTimeout(function(){w_&&(S_(),e())},b_.trickleSpeed)};b_.trickle&&e()},S_=e=>{const t=w_;return null===t?k_():t>1?void 0:(e="number"==typeof e?e:(()=>{const e={.1:[0,.2],.04:[.2,.5],.02:[.5,.8],.005:[.8,.99]};for(const n in e)if(t>=e[n][0]&&t<e[n][1])return parseFloat(n);return 0})(),D_(P_(t+e,0,.994)))},x_=e=>{var t;if(A_())return document.getElementById(__);document.documentElement.classList.add(`${__}-busy`);const n=C_.querySelector(b_.barSelector),r=e?"-100":N_(w_||0),i=T_();return n.style.transition="all 0 linear",n.style.transform=`translate3d(${r}%,0,0)`,b_.showSpinner||null==(t=C_.querySelector(b_.spinnerSelector))||t.remove(),i!==document.body&&i.classList.add(`${__}-custom-parent`),i.appendChild(C_),C_},T_=()=>I_(b_.parent)?b_.parent:document.querySelector(b_.parent),O_=()=>{document.documentElement.classList.remove(`${__}-busy`),T_().classList.remove(`${__}-custom-parent`),null==C_||C_.remove()},A_=()=>null!==document.getElementById(__),I_=e=>"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName;function P_(e,t,n){return e<t?t:e>n?n:e}var N_=e=>100*(-1+e),R_=(()=>{const e=[],t=()=>{const n=e.shift();n&&n(t)};return n=>{e.push(n),1===e.length&&t()}})(),M_=e=>{const t=document.createElement("style");t.textContent=`\n    #${__} {\n      pointer-events: none;\n    }\n\n    #${__} .bar {\n      background: ${e};\n\n      position: fixed;\n      z-index: 1031;\n      top: 0;\n      left: 0;\n\n      width: 100%;\n      height: 2px;\n    }\n\n    #${__} .peg {\n      display: block;\n      position: absolute;\n      right: 0px;\n      width: 100px;\n      height: 100%;\n      box-shadow: 0 0 10px ${e}, 0 0 5px ${e};\n      opacity: 1.0;\n\n      transform: rotate(3deg) translate(0px, -4px);\n    }\n\n    #${__} .spinner {\n      display: block;\n      position: fixed;\n      z-index: 1031;\n      top: 15px;\n      right: 15px;\n    }\n\n    #${__} .spinner-icon {\n      width: 18px;\n      height: 18px;\n      box-sizing: border-box;\n\n      border: solid 2px transparent;\n      border-top-color: ${e};\n      border-left-color: ${e};\n      border-radius: 50%;\n\n      animation: ${__}-spinner 400ms linear infinite;\n    }\n\n    .${__}-custom-parent {\n      overflow: hidden;\n      position: relative;\n    }\n\n    .${__}-custom-parent #${__} .spinner,\n    .${__}-custom-parent #${__} .bar {\n      position: absolute;\n    }\n\n    @keyframes ${__}-spinner {\n      0%   { transform: rotate(0deg); }\n      100% { transform: rotate(360deg); }\n    }\n  `,document.head.appendChild(t)},F_={configure:e=>{Object.assign(b_,e),b_.includeCSS&&M_(b_.color),(C_=document.createElement("div")).id=__,C_.innerHTML=b_.template},isStarted:E_,done:e=>{(e||w_)&&(S_(.3+.5*Math.random()),D_(1))},set:D_,remove:O_,start:k_,status:w_,show:()=>{C_&&(C_.style.display="")},hide:()=>{C_&&(C_.style.display="none")}},L_=new class{constructor(){this.hideCount=0}start(){F_.start()}reveal(e=!1){this.hideCount=Math.max(0,this.hideCount-1),(e||0===this.hideCount)&&F_.show()}hide(){this.hideCount++,F_.hide()}set(e){F_.set(Math.max(0,Math.min(1,e)))}finish(){F_.done()}reset(){F_.set(0)}remove(){F_.done(),F_.remove()}isStarted(){return F_.isStarted()}getStatus(){return F_.status}};function j_(e){document.addEventListener("inertia:start",t=>function(e,t){e.detail.visit.showProgress||L_.hide();const n=setTimeout(()=>L_.start(),t);document.addEventListener("inertia:finish",e=>function(e,t){clearTimeout(t),L_.isStarted()&&(e.detail.visit.completed?L_.finish():e.detail.visit.interrupted?L_.reset():e.detail.visit.cancelled&&L_.remove())}(e,n),{once:!0})}(t,e)),document.addEventListener("inertia:progress",H_)}function H_(e){var t;L_.isStarted()&&(null==(t=e.detail.progress)?void 0:t.percentage)&&L_.set(Math.max(L_.getStatus(),e.detail.progress.percentage/100*.9))}L_.reveal,L_.hide;var U_=new class{constructor(){this.syncRequestStream=new m_({maxConcurrent:1,interruptible:!0}),this.asyncRequestStream=new m_({maxConcurrent:1/0,interruptible:!1}),this.clientVisitQueue=new e_}
22init({initialPage:e,resolveComponent:t,swapComponent:n,onFlash:r}){XC.init({initialPage:e,resolveComponent:t,swapComponent:n,onFlash:r}),o_.handle(),a_.init(),a_.on("missingHistoryItem",()=>{"undefined"!=typeof window&&this.visit(window.location.href,{preserveState:!0,preserveScroll:!0,replace:!0})}),a_.on("loadDeferredProps",e=>{this.loadDeferredProps(e)}),a_.on("historyQuotaExceeded",e=>{window.location.href=e})}get(e,t={},n={}){return this.visit(e,{...n,method:"get",data:t})}post(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"post",data:t})}put(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"put",data:t})}patch(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"patch",data:t})}delete(e,t={}){return this.visit(e,{preserveState:!0,...t,method:"delete"})}reload(e={}){return this.doReload(e)}doReload(e={}){if("undefined"!=typeof window)return this.visit(window.location.href,{...e,preserveScroll:!0,preserveState:!0,async:!0,headers:{...e.headers||{},"Cache-Control":"no-cache"}})}remember(e,t="default"){i_.remember(e,t)}restore(e="default"){return i_.restore(e)}on(e,t){return"undefined"==typeof window?()=>{}:a_.onGlobalEvent(e,t)}cancel(){this.syncRequestStream.cancelInFlight()}get activePolls(){return u_.count}cancelAll({async:e=!0,prefetch:t=!0,sync:n=!0}={}){e&&this.asyncRequestStream.cancelInFlight({prefetch:t}),n&&this.syncRequestStream.cancelInFlight()}poll(e,t={},n={}){return u_.add(e,({onStart:e,onFinish:n})=>{const r="function"==typeof t?t():t;this.reload({...r,onCancelToken:t=>{var n;e(t.cancel),null==(n=r.onCancelToken)||n.call(r,t)},onFinish:e=>{var t;n(),null==(t=r.onFinish)||t.call(r,e)}})},{autoStart:n.autoStart??!0,keepAlive:n.keepAlive??!1,mode:n.mode})}visit(e,t={}){const n=this.getPendingVisit(e,{...t,showProgress:t.showProgress??!t.async}),r=this.getVisitEvents(t);if(!1===r.onBefore(n)||!_C(n))return;const i=WC(XC.get().url);var a,s;(n.only.length>0||n.except.length>0||n.reset.length>0?(a=n.url,s=i,a.origin===s.origin&&a.pathname===s.pathname):QC(n.url,i))||this.asyncRequestStream.cancelInFlight({prefetch:!1}),n.async||this.syncRequestStream.interruptInFlight(),XC.isCleared()||n.preserveUrl||UC.save();const o={...n,...r},l=FC.get(o);l?(L_.reveal(l.inFlight),FC.use(l,o)):(L_.reveal(!0),(n.async?this.asyncRequestStream:this.syncRequestStream).send(B_.create(o,XC.get())))}getCached(e,t={}){return FC.findCached(this.getPrefetchParams(e,t))}flush(e,t={}){FC.remove(this.getPrefetchParams(e,t))}flushAll(){FC.removeAll()}flushByCacheTags(e){FC.removeByTags(Array.isArray(e)?e:[e])}getPrefetching(e,t={}){return FC.findInFlight(this.getPrefetchParams(e,t))}prefetch(e,t={},n={}){if("get"!==(t.method??(ZC(e)?e.method:"get")))throw new Error("Prefetch requests must use the GET method");const r=this.getPendingVisit(e,{...t,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1});if(r.url.origin+r.url.pathname+r.url.search===window.location.origin+window.location.pathname+window.location.search)return;const i=this.getVisitEvents(t);if(!1===i.onBefore(r)||!_C(r))return;L_.hide(),this.asyncRequestStream.interruptInFlight();const a={...r,...i};new Promise(e=>{const t=()=>{XC.get()?e():setTimeout(t,50)};t()}).then(()=>{FC.add(a,e=>{this.asyncRequestStream.send(B_.create(e,XC.get()))},{cacheFor:vC.get("prefetch.cacheFor"),cacheTags:[],...n})})}clearHistory(){i_.clear()}decryptHistory(){return i_.decrypt()}resolveComponent(e){return XC.resolve(e)}replace(e){this.clientVisit(e,{replace:!0})}replaceProp(e,t,n){this.replace({preserveScroll:!0,preserveState:!0,props(n){const r="function"==typeof t?t(Xc(n,e),n):t;return Hh(nh(n),e,r)},...n||{}})}appendToProp(e,t,n){this.replaceProp(e,(e,n)=>{const r="function"==typeof t?t(e,n):t;return Array.isArray(e)||(e=void 0!==e?[e]:[]),[...e,r]},n)}prependToProp(e,t,n){this.replaceProp(e,(e,n)=>{const r="function"==typeof t?t(e,n):t;return Array.isArray(e)||(e=void 0!==e?[e]:[]),[r,...e]},n)}push(e){this.clientVisit(e)}flash(e,t){const n=XC.get().flash;let r;if("function"==typeof e)r=e(n);else if("string"==typeof e)r={...n,[e]:t};else{if(!e||!Object.keys(e).length)return;r={...n,...e}}XC.setFlash(r),Object.keys(r).length&&wC(r)}clientVisit(e,{replace:t=!1}={}){this.clientVisitQueue.add(()=>this.performClientVisit(e,{replace:t}))}performClientVisit(e,{replace:t=!1}={}){const n=XC.get(),r="function"==typeof e.props?Object.fromEntries(Object.values(n.onceProps??{}).map(e=>
22[e.prop,n.props[e.prop]])):{},i="function"==typeof e.props?e.props(n.props,r):e.props??n.props,a="function"==typeof e.flash?e.flash(n.flash):e.flash,{viewTransition:s,onError:o,onFinish:l,onFlash:u,onSuccess:c,...d}=e,h={...n,...d,flash:a??{},props:i},p=c_.resolvePreserveOption(e.preserveScroll??!1,h),f=c_.resolvePreserveOption(e.preserveState??!1,h);return XC.set(h,{replace:t,preserveScroll:p,preserveState:f,viewTransition:s}).then(()=>{const t=XC.get().flash;Object.keys(t).length>0&&(wC(t),null==u||u(t));const n=XC.get().props.errors||{};if(0===Object.keys(n).length)return void(null==c||c(XC.get()));const r=e.errorBag?n[e.errorBag||""]||{}:n;null==o||o(r)}).finally(()=>null==l?void 0:l(e))}getPrefetchParams(e,t){return{...this.getPendingVisit(e,{...t,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),...this.getVisitEvents(t)}}getPendingVisit(e,t,n={}){if(ZC(e)){const n=e;e=n.url,t.method=t.method??n.method}const r=vC.get("visitOptions"),i=r&&r(e.toString(),nh(t))||{},a={method:"get",data:{},replace:!1,preserveScroll:!1,preserveState:!1,only:[],except:[],headers:{},errorBag:"",forceFormData:!1,queryStringArrayFormat:"brackets",async:!1,showProgress:!0,fresh:!1,reset:[],preserveUrl:!1,prefetch:!1,invalidateCacheTags:[],viewTransition:!1,...IC(t),...IC(i)},[s,o]=zC(e,a.data,a.method,a.forceFormData,a.queryStringArrayFormat),l={cancelled:!1,completed:!1,interrupted:!1,...a,...n,url:s,data:o};return l.prefetch&&(l.headers.Purpose="prefetch"),l}getVisitEvents(e){return{onCancelToken:e.onCancelToken||(()=>{}),onBefore:e.onBefore||(()=>{}),onBeforeUpdate:e.onBeforeUpdate||(()=>{}),onStart:e.onStart||(()=>{}),onProgress:e.onProgress||(()=>{}),onFinish:e.onFinish||(()=>{}),onCancel:e.onCancel||(()=>{}),onSuccess:e.onSuccess||(()=>{}),onError:e.onError||(()=>{}),onFlash:e.onFlash||(()=>{}),onPrefetched:e.onPrefetched||(()=>{}),onPrefetching:e.onPrefetching||(()=>{})}}loadDeferredProps(e){e&&Object.entries(e).forEach(([e,t])=>{this.doReload({only:t,deferredProps:!0})})}};
23/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
24     * @license MIT */let G_=eC.create(),Y_=(e,t)=>`${e.method}:${e.baseURL??t.defaults.baseURL??""}${e.url}`,V_=e=>204===e.status&&"true"===e.headers["precognition-success"];const q_={},$_={get:(e,t={},n={})=>z_(W_("get",e,t,n)),post:(e,t={},n={})=>z_(W_("post",e,t,n)),patch:(e,t={},n={})=>z_(W_("patch",e,t,n)),put:(e,t={},n={})=>z_(W_("put",e,t,n)),delete:(e,t={},n={})=>z_(W_("delete",e,t,n)),use:e=>(G_=e,$_),axios:()=>G_,fingerprintRequestsUsing:e=>(Y_=null===e?()=>null:e,$_),determineSuccessUsing:e=>(V_=e,$_)},W_=(e,t,n,r)=>({url:t,method:e,...r,...["get","delete"].includes(e)?{params:jh({},n,null==r?void 0:r.params)}:{data:jh({},n,null==r?void 0:r.data)}}),z_=(e={})=>{const t=[J_,Q_,Z_].reduce((e,t)=>t(e),e);return!1===(t.onBefore??(()=>!0))()?Promise.resolve(null):((t.onStart??(()=>null))(),G_.request(t).then(async e=>{t.precognitive&&X_(e);const n=e.status;let r=e;return t.precognitive&&t.onPrecognitionSuccess&&V_(r)&&(r=await Promise.resolve(t.onPrecognitionSuccess(r)??r)),t.onSuccess&&K_(n)&&(r=await Promise.resolve(t.onSuccess(r)??r)),(tb(t,n)??(e=>e))(r)??r},e=>eb(e)?Promise.reject(e):(t.precognitive&&X_(e.response),(tb(t,e.response.status)??((e,t)=>Promise.reject(t)))(e.response,e))).finally(t.onFinish??(()=>null)))},J_=e=>{const t=e.only??e.validate;return{...e,timeout:e.timeout??G_.defaults.timeout??3e4,precognitive:!1!==e.precognitive,fingerprint:void 0===e.fingerprint?Y_(e,G_):e.fingerprint,headers:{...e.headers,"Content-Type":nb(e),...!1!==e.precognitive?{Precognition:!0}:{},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},K_=e=>e>=200&&e<300,Q_=e=>{var t;return"string"!=typeof e.fingerprint||(null==(t=q_[e.fingerprint])||t.abort(),delete q_[e.fingerprint]),e},Z_=e=>"string"!=typeof e.fingerprint||e.signal||e.cancelToken||!e.precognitive?e:(q_[e.fingerprint]=new AbortController,{...e,signal:q_[e.fingerprint].signal}),X_=e=>{var t;if("true"!==(null==(t=e.headers)?void 0:t.precognition))throw Error("Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.")},eb=e=>{var t;return!uC(e)||"number"!=typeof(null==(t=e.response)?void 0:t.status)||iC(e)},tb=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked}[t]),nb=e=>{var t,n,r;return(null==(t=e.headers)?void 0:t["Content-Type"])??(null==(n=e.headers)?void 0:n["Content-type"])??(null==(r=e.headers)?void 0:r["content-type"])??(rb(e.data)?"multipart/form-data":"application/json")},rb=e=>ib(e)||"object"==typeof e&&null!==e&&Object.values(e).some(e=>rb(e)),ib=e=>"undefined"!=typeof File&&e instanceof File||e instanceof Blob||"undefined"!=typeof FileList&&e instanceof FileList&&e.length>0,ab=(e,t)=>
24Object.fromEntries(Object.entries(e).filter(([e])=>!t.some(t=>((e,t)=>t.includes("*")?new RegExp("^"+t.replace(/\./g,"\\.").replace(/\*/g,"[^.]+")+"$").test(e):e===t)(e,t)))),sb=(e,t={})=>{const n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]};let r=!1,i=!1;const a=e=>e!==i?(i=e,n.validatingChanged):[];let s=[];const o=e=>{const t=[...new Set(e)];return s.length===t.length&&t.every(e=>s.includes(e))?[]:(s=t,n.validatedChanged)};let l=[];const u=e=>{const t=[...new Set(e)];return l.length===t.length&&t.every(e=>l.includes(e))?[]:(l=t,n.touchedChanged)};let c={};const d=e=>{const t=ob(e);return Mh(c,t)?[]:(c=t,n.errorsChanged)};let h=1500,p=t,f=null,B=[],m=null;const g=()=>Dh(t=>{e({get:(e,n={},r={})=>$_.get(e,C(n),y(r,t,n)),post:(e,n={},r={})=>$_.post(e,C(n),y(r,t,n)),patch:(e,n={},r={})=>$_.patch(e,C(n),y(r,t,n)),put:(e,n={},r={})=>$_.put(e,C(n),y(r,t,n)),delete:(e,n={},r={})=>$_.delete(e,C(n),y(r,t,n))}).catch(e=>{var t;return iC(e)||uC(e)&&422===(null==(t=e.response)?void 0:t.status)?null:Promise.reject(e)})},h,{leading:!0,trailing:!0});let v=g();const y=(e,t,n={})=>{const r={...e,...t},i=Array.from(r.only??r.validate??l);return{...t,...mC(e,t),only:i,timeout:r.timeout??5e3,onValidationError:(e,t)=>([...o([...s,...i]),...d(jh(ab({...c},i),e.data.errors))].forEach(e=>e()),r.onValidationError?r.onValidationError(e,t):Promise.reject(t)),onSuccess:e=>(o([...s,...i]).forEach(e=>e()),r.onSuccess?r.onSuccess(e):e),onPrecognitionSuccess:e=>([...o([...s,...i]),...d(ab({...c},i))].forEach(e=>e()),r.onPrecognitionSuccess?r.onPrecognitionSuccess(e):e),onBefore:()=>{const e=l.some(e=>e.includes("*")),t=e?[...new Set(l.flatMap(e=>((e,t)=>{if(!e.includes("*"))return[e];const n=e.split(".");let r=[""];for(const i of n)if("*"===i){const e=[];for(const n of r){const r=n?Xc(t,n):t;if(Array.isArray(r))for(let t=0;t<r.length;t++)e.push(n?`${n}.${t}`:String(t));else if(null!==r&&"object"==typeof r)for(const t of Object.keys(r))e.push(n?`${n}.${t}`:t)}r=e}else r=r.map(e=>e?`${e}.${i}`:i);return r})(e,n)))]:l;return(!r.onBeforeValidation||!1!==r.onBeforeValidation({data:n,touched:t},{data:p,touched:B}))&&(!1!==(r.onBefore||(()=>!0))()&&(e&&u(t).forEach(e=>e()),m=l,f=n,!0))},onStart:()=>{a(!0).forEach(e=>e()),(r.onStart??(()=>null))()},onFinish:()=>{a(!1).forEach(e=>e()),B=m,p=f,m=f=null,(r.onFinish??(()=>null))()}}},C=e=>!1===r?ub(e):e,_={touched:()=>l,validate:(e,t,n)=>("object"!=typeof e||"target"in e||(n=e,e=t=void 0),((e,t,n)=>{if(void 0===e){const e=Array.from((null==n?void 0:n.only)??(null==n?void 0:n.validate)??[]);return u([...l,...e]).forEach(e=>e()),void v(n??{})}ib(t)&&!r||((e=lb(e)).includes("*")||Xc(p,e)!==t)&&(u([e,...l]).forEach(e=>e()),v(n??{}))})(e,t,n),_),touch(e){const t=Array.isArray(e)?e:[lb(e)];return u([...l,...t]).forEach(e=>e()),_},validating:()=>i,valid:()=>s.filter(e=>void 0===c[e]),errors:()=>c,hasErrors:()=>Object.keys(c).length>0,setErrors:e=>(d(e).forEach(e=>e()),_),forgetError:e=>((e=>{const t={...c};return delete t[lb(e)],d(t)})(e).forEach(e=>e()),_),defaults:e=>
24(t=e,p=e,_),reset(...e){if(0===e.length)u([]).forEach(e=>e());else{const n=[...l];e.forEach(e=>{n.includes(e)&&n.splice(n.indexOf(e),1),Hh(p,e,Xc(t,e))}),u(n).forEach(e=>e())}return _},setTimeout:e=>((e=>{h=e,v.cancel(),v=g()})(e),_),on:(e,t)=>(n[e].push(t),_),validateFiles:()=>(r=!0,_),withoutFileValidation:()=>(r=!1,_)};return _},ob=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:"string"==typeof e[n]?[e[n]]:e[n]}),{}),lb=e=>"string"!=typeof e?e.target.name:e,ub=e=>{const t={...e};return Object.keys(t).forEach(e=>{const n=t[e];null!==n&&(ib(n)?delete t[e]:Array.isArray(n)?t[e]=Object.values(ub({...n})):"object"!=typeof n||(t[e]=ub(t[e])))}),t};var cb={created(){if(!this.$options.remember)return;Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});const e=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,t=U_.restore(e),n=this.$options.remember.data.filter(e=>!(null!==this[e]&&"object"==typeof this[e]&&!1===this[e].__rememberable)),r=e=>null!==this[e]&&"object"==typeof this[e]&&"function"==typeof this[e].__remember&&"function"==typeof this[e].__restore;
24n.forEach(i=>{void 0!==this[i]&&void 0!==t&&void 0!==t[i]&&(r(i)?this[i].__restore(t[i]):this[i]=t[i]),this.$watch(i,()=>{U_.remember(n.reduce((e,t)=>({...e,[t]:nh(r(t)?this[t].__remember():this[t])}),{}),e)},{immediate:!0,deep:!0})})}},db=null,hb=!1;function pb(...e){let{rememberKey:t,data:n,precognitionEndpoint:r}=g_.parseUseFormArguments(...e);const i=t?U_.restore(t):null;let a=nh("function"==typeof n?n():n);!function(e){hb||(null===db&&(hb=!0,db=new Set(Object.keys(pb({}))),hb=!1),Object.keys(e).filter(e=>db.has(e)).length)}(a);let s,o=null,l=e=>e,u=null,c=[],d=!1;const h=Ht({...i?i.data:nh(a),isDirty:!1,errors:i?i.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,withPrecognition(...e){r=g_.createWayfinderCallback(...e);const t=this;let n=null;const i=sb(e=>{const{method:t,url:n}=r(),i=nh(l(this.data()));return e[t](n,i)},nh(a));u=i,i.on("validatingChanged",()=>{t.validating=i.validating()}).on("validatedChanged",()=>{t.__valid=i.valid()}).on("touchedChanged",()=>{t.__touched=i.touched()}).on("errorsChanged",()=>{const e=n??Db.get("form.withAllErrors")?i.errors():(r=i.errors(),Object.keys(r).reduce((e,t)=>({...e,[t]:Array.isArray(r[t])?r[t][0]:r[t]}),{}));var r;this.errors={},this.setError(e),t.__valid=i.valid()});const s=(e,t)=>(t(e),e);return Object.assign(t,{__touched:[],__valid:[],validating:!1,validator:()=>i,withAllErrors:()=>s(t,()=>n=!0),valid:e=>t.__valid.includes(e),invalid:e=>e in this.errors,setValidationTimeout:e=>s(t,()=>i.setTimeout(e)),validateFiles:()=>s(t,()=>i.validateFiles()),withoutFileValidation:()=>s(t,()=>i.withoutFileValidation()),touch:(e,...n)=>(Array.isArray(e)?i.touch(e):"string"==typeof e?i.touch([e,...n]):i.touch(e),t),touched:e=>"string"==typeof e?t.__touched.includes(e):t.__touched.length>0,validate:(e,n)=>{if("object"!=typeof e||"target"in e||(n=e,e=void 0),void 0===e)i.validate(n);else{const t=lb(e),r=l(this.data());i.validate(t,Xc(r,t),n)}return t},setErrors:e=>s(t,()=>this.setError(e)),forgetError:e=>s(t,()=>this.clearErrors(lb(e)))}),t},data(){return Object.keys(a).reduce((e,t)=>Hh(e,t,Xc(this,t)),{})},transform(e){return l=e,this},defaults(e,t){if("function"==typeof n)throw new Error("You cannot call `defaults()` when using a function to define your form data.");return d=!0,void 0===e?(a=nh(this.data()),this.isDirty=!1):a="string"==typeof e?Hh(nh(a),e,t):Object.assign({},nh(a),e),null==u||u.defaults(a),this},reset(...e){const t=nh("function"==typeof n?n():a),r=nh(t);return 0===e.length?(a=r,Object.assign(this,t)):e.filter(e=>Rh(r,e)).forEach(e=>{Hh(a,e,Xc(r,e)),Hh(this,e,Xc(t,e))}),null==u||u.reset(...e),this},setError(e,t){const n="string"==typeof e?{[e]:t}:e;return Object.assign(this.errors,n),this.hasErrors=Object.keys(this.errors).length>0,null==u||u.setErrors(n),this},clearErrors(...e){return this.errors=Object.keys(this.errors).reduce((t,n)=>({...t,...e.length>0&&!e.includes(n)?{[n]:this.errors[n]}:{}}),{}),this.hasErrors=Object.keys(this.errors).length>0,u&&(0===e.length?u.setErrors({}):e.forEach(u.forgetError)),this},resetAndClearErrors(...e){return this.reset(...e),this.clearErrors(...e),this},submit(...e){const{method:t,url:n,options:i}=g_.parseSubmitArguments(e,r);d=!1;const u={...i,onCancelToken:e=>{if(o=e,i.onCancelToken)return i.onCancelToken(e)},onBefore:e=>{if(this.wasSuccessful=!1,this.recentlySuccessful=!1,clearTimeout(s),i.onBefore)return i.onBefore(e)},onStart:e=>{if(this.processing=!0,i.onStart)return i.onStart(e)},onProgress:e=>{if(this.progress=e??null,i.onProgress)return i.onProgress(e)},onSuccess:async e=>{this.processing=!1,this.progress=null,this.clearErrors(),this.wasSuccessful=!0,this.recentlySuccessful=!0,s=setTimeout(()=>this.recentlySuccessful=!1,Db.get("form.recentlySuccessfulDuration"));const t=i.onSuccess?await i.onSuccess(e):null;return d||(a=nh(this.data()),this.isDirty=!1),t},onError:e=>{if(this.processing=!1,this.progress=null,this.clearErrors().setError(e),i.onError)return i.onError(e)},onCancel:()=>{if(this.processing=!1,this.progress=null,i.onCancel)return i.onCancel()},onFinish:e=>{if(this.processing=!1,this.progress=null,o=null,i.onFinish)return i.onFinish(e)}},c=l(this.data());"delete"===t?U_.delete(n,{...u,data:c}):U_[t](n,c,u)},get(e,t){this.submit("get",e,t)},post(e,t){this.submit("post",e,t)},put(e,t){this.submit("put",e,t)},patch(e,t){this.submit("patch",e,t)},delete(e,t){this.submit("delete",e,t)},cancel(){o&&o.cancel()},dontRemember(...e){return c=e,this},__rememberable:null===t,__remember(){const e=this.data();if(c.length>0){const t={...e};
24return c.forEach(e=>delete t[e]),{data:t,errors:this.errors}}return{data:e,errors:this.errors}},__restore(e){Object.assign(this,e.data),this.setError(e.errors)}}),p=h;return rr(p,e=>{p.isDirty=!Mh(p.data(),a);const n=U_.restore(t),r=nh(e.__remember());t&&!Mh(n,r)&&U_.remember(r,t)},{immediate:!0,deep:!0}),r?p.withPrecognition(r):p}var fb,Bb=en(void 0),mb=en(),gb=tn(null),vb=en(void 0),yb=Ir({name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:e=>e},onHeadUpdate:{type:Function,required:!1,default:()=>()=>{}}},setup({initialPage:e,initialComponent:t,resolveComponent:n,titleCallback:r,onHeadUpdate:i}){Bb.value=t?Kt(t):void 0,mb.value={...e,flash:e.flash??{}},vb.value=void 0;const a="undefined"==typeof window;return fb=y_(a,r||(e=>e),i||(()=>{})),a||(U_.init({initialPage:e,resolveComponent:n,swapComponent:async e=>{Bb.value=Kt(e.component),mb.value=e.page,vb.value=e.preserveState?vb.value:Date.now()},onFlash:e=>{mb.value={...mb.value,flash:e}}}),U_.on("navigate",()=>fb.forceUpdate())),()=>{if(Bb.value){Bb.value.inheritAttrs=!!Bb.value.inheritAttrs;const e=Vs(Bb.value,{...mb.value.props,key:vb.value});return gb.value&&(Bb.value.layout=gb.value,gb.value=null),Bb.value.layout?"function"==typeof Bb.value.layout?Bb.value.layout(Vs,e):(Array.isArray(Bb.value.layout)?Bb.value.layout:[Bb.value.layout]).concat(e).reverse().reduce((e,t)=>(t.inheritAttrs=!!t.inheritAttrs,Vs(t,{...mb.value.props},()=>e))):e}}}}),Cb={install(e){U_.form=pb,Object.defineProperty(e.config.globalProperties,"$inertia",{get:()=>U_}),Object.defineProperty(e.config.globalProperties,"$page",{get:()=>mb.value}),Object.defineProperty(e.config.globalProperties,"$headManager",{get:()=>fb}),e.mixin(cb)}};function _b(){return Ht({props:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.props}),url:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.url}),component:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.component}),version:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.version}),clearHistory:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.clearHistory}),deferredProps:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.deferredProps}),mergeProps:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.mergeProps}),prependProps:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.prependProps}),deepMergeProps:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.deepMergeProps}),matchPropsOn:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.matchPropsOn}),rememberedState:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.rememberedState}),encryptHistory:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.encryptHistory}),scrollProps:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.scrollProps}),flash:Ys(()=>{var e;return null==(e=mb.value)?void 0:e.flash})})}var bb=Ir({props:{title:{type:String,required:!1}},data(){return{provider:this.$headManager.createProvider()}},beforeUnmount(){this.provider.disconnect()},methods:{isUnaryTag:e=>"string"==typeof e.type&&["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1,renderTagStart(e){e.props=e.props||{},e.props[this.provider.preferredAttribute()]=void 0!==e.props["head-key"]?e.props["head-key"]:"";const t=Object.keys(e.props).reduce((t,n)=>{const r=String(e.props[n]);return["key","head-key"].includes(n)?t:""===r?t+` ${n}`:t+` ${n}="${Ih(r)}"`},"");return`<${String(e.type)}${t}>`},renderTagChildren(e){const{children:t}=e;return"string"==typeof t?t:Array.isArray(t)?t.reduce((e,t)=>e+this.renderTag(t),""):""},isFunctionNode:e=>"function"==typeof e.type,isComponentNode:e=>"object"==typeof e.type,isCommentNode:e=>/(comment|cmt)/i.test(e.type.toString()),isFragmentNode:e=>/(fragment|fgt|symbol\(\))/i.test(e.type.toString()),isTextNode:e=>/(text|txt)/i.test(e.type.toString()),renderTag(e){if(this.isTextNode(e))return String(e.children);if(this.isFragmentNode(e))return"";if(this.isCommentNode(e))return"";let t=this.renderTagStart(e);return e.children&&(t+=this.renderTagChildren(e)),this.isUnaryTag(e)||(t+=`</${String(e.type)}>`),t},addTitleElement(e){return this.title&&!e.find(e=>e.startsWith("<title"))&&e.push(`<title ${this.provider.preferredAttribute()}>${Ih(this.title)}</title>`),e},renderNodes(e){const t=e.flatMap(e=>this.resolveNode(e)).map(e=>this.renderTag(e)).filter(e=>e);return this.addTitleElement(t)},resolveNode(e){return this.isFunctionNode(e)?this.resolveNode(e.type()):this.isComponentNode(e)?[]:this.isTextNode(e)&&e.children?e:this.isFragmentNode(e)&&e.children?e.children.flatMap(e=>this.resolveNode(e)):this.isCommentNode(e)?[]:e}},render(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}}),wb=bb,Db=vC.extend({});const Eb={class:"container"},kb={class:"conteudo__container"},Sb={class:"mensagem__container mb-[34px]"},xb={class:"mensagem-solicitacao"},Tb={class:"mensagem-solicitacao__negrito"},Ob=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ab=Ob(Ir({__name:"404Page",setup(e){const t=en(_b().url);return pi(()=>{t.value=window.location.href}),(e,n)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Portal Engeplus"}),cs("div",Eb,[n[4]||(n[4]=cs("div",{class:"imagem__container"},[cs("img",{class:"imagem-404",src:ql})],-1)),cs("div",kb,[n[2]||(n[2]=cs("h1",{class:"titulo"},"Página não encontrada!",-1)),cs("div",Sb,[cs("p",xb,[n[0]||(n[0]=fs(" O endereço abaixo não existe na Engeplus: ",-1)),n[1]||(n[1]=cs("br",null,null,-1)),cs("span",Tb,we(t.value),1)])]),n[3]||(n[3]=cs("div",null,[cs("a",{href:"/",class:"botao-voltar roun
24ded-full"},"Voltar a página inicial")],-1))])])],64))}}),[["__scopeId","data-v-39d597e9"]]),Ib=Object.freeze(Object.defineProperty({__proto__:null,default:Ab},Symbol.toStringTag,{value:"Module"})),Pb={class:"flex footer-general__container"},Nb={class:"footer-item__container"},Rb=["href","target"],Mb={class:"footer-item__desc"},Fb={key:0,class:"footer-item__divider"},Lb=Ob(Ir({__name:"FooterLinks",props:{item:{}},setup:e=>(t,n)=>(Xa(),is("div",Pb,[cs("div",Nb,[cs("a",{href:e.item.link,target:e.item.openNewTab?"_blank":"",class:"footer-item__title"},we(e.item.title),9,Rb),cs("p",Mb,we(e.item.desc),1)]),e.item.hasDivider?(Xa(),is("div",Fb,[...n[0]||(n[0]=[cs("div",{class:"border-2 h-8 rounded-[2px]"},null,-1)])])):ms("",!0)]))}),[["__scopeId","data-v-5de977fb"]]);
25//! moment.js
26//! version : 2.31.0
27//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
28//! license : MIT
29//! momentjs.com
30var jb,Hb;function Ub(){return jb.apply(null,arguments)}function Gb(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function Yb(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function Vb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qb(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(Vb(e,t))return!1;return!0}function $b(e){return void 0===e}function Wb(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function zb(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Jb(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function Kb(e,t){for(var n in t)Vb(t,n)&&(e[n]=t[n]);return Vb(t,"toString")&&(e.toString=t.toString),Vb(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Qb(e,t,n,r){return mE(e,t,n,r,!0).utc()}function Zb(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidOffset:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function Xb(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=Zb(e),n=Hb.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidOffset&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function ew(e){var t=Qb(NaN);return null!=e?Kb(Zb(t),e):Zb(t).userInvalidated=!0,t}Hb=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var tw=Ub.momentProperties=[],nw=!1;function rw(e,t){var n,r,i,a=tw.length;if($b(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),$b(t._i)||(e._i=t._i),$b(t._f)||(e._f=t._f),$b(t._l)||(e._l=t._l),$b(t._strict)||(e._strict=t._strict),$b(t._tzm)||(e._tzm=t._tzm),$b(t._isUTC)||(e._isUTC=t._isUTC),$b(t._offset)||(e._offset=t._offset),$b(t._pf)||(e._pf=Zb(t)),$b(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)$b(i=t[r=tw[n]])||(e[r]=i);return e}function iw(e){rw(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===nw&&(nw=!0,Ub.updateOffset(this),nw=!1)}function aw(e){return e instanceof iw||null!=e&&null!=e._isAMomentObject}function sw(e){!1===Ub.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function ow(e,t){var n=!0;return Kb(function(){if(null!=Ub.deprecationHandler&&Ub.deprecationHandler(null,e),n){var r,i,a,s=[],o=arguments.length;for(i=0;i<o;i++){if(r="","object"==typeof arguments[i]){for(a in r+="\n["+i+"] ",arguments[0])Vb(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}sw((Array.prototype.slice.call(s).join(""),(new Error).stack)),n=!1}return t.apply(this,arguments)},t)}var lw={};function uw(e,t){null!=Ub.deprecationHandler&&Ub.deprecationHandler(e,t),lw[e]||(sw((new Error).stack),lw[e]=!0)}function cw(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}Ub.suppressDeprecationWarnings=!1,Ub.deprecationHandler=null;var dw={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function hw(e){return"string"==typeof e?dw[e]||dw[e.toLowerCase()]:void 0}function pw(e){var t,n,r={};for(n in e)Vb(e,n)&&(t=hw(n))&&(r[t]=e[n]);return r}var fw={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Bw(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var mw=/(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 56,957 bytes, lines 30-32
30|x|X|zz?|ZZ?|.)/g,gw=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vw={},yw={};function Cw(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(yw[e]=i),t&&(yw[t[0]]=function(){return Bw(i.apply(this,arguments),t[1],t[2])}),n&&(yw[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function _w(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bw(e,t){if(!e.isValid())return e.localeData().invalidDate();var n="$"+(t=ww(t,e.localeData()));return Vb(vw,n)||(vw[n]=function(e){var t,n,r=e.match(mw);for(t=0,n=r.length;t<n;t++)yw[r[t]]?r[t]=yw[r[t]]:r[t]=_w(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=cw(r[i])?r[i].call(t,e):r[i];return a}}(t)),vw[n](e)}function ww(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(gw.lastIndex=0;n>=0&&gw.test(e);)e=e.replace(gw,r),gw.lastIndex=0,n-=1;return e}var Dw,Ew=/\d/,kw=/\d\d/,Sw=/\d{3}/,xw=/\d{4}/,Tw=/[+-]?\d{6}/,Ow=/\d\d?/,Aw=/\d\d\d\d?/,Iw=/\d\d\d\d\d\d?/,Pw=/\d{1,3}/,Nw=/\d{1,4}/,Rw=/[+-]?\d{1,6}/,Mw=/\d+/,Fw=/[+-]?\d+/,Lw=/Z|[+-]\d\d:?\d\d/gi,jw=/Z|[+-]\d\d(?::?\d\d)?/gi,Hw=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Uw=/^[1-9]\d?/,Gw=/^([1-9]\d|\d)/;function Yw(e,t,n){Dw[e]=cw(t)?t:function(e,r){return e&&n?n:t}}function Vw(e,t){return Vb(Dw,e)?Dw[e](t._strict,t._locale):new RegExp(qw(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function qw(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ww(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=$w(t)),n}Dw={};var zw={};function Jw(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),Wb(t)&&(i=function(e,n){n[t]=Ww(e)}),r=e.length,n=0;n<r;n++)zw[e[n]]=i}function Kw(e,t){Jw(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Qw(e,t,n){null!=t&&Vb(zw,e)&&zw[e](t,n._a,n,e)}function Zw(e){return e%4==0&&e%100!=0||e%400==0}function Xw(e){return Zw(e)?366:365}Cw("Y",0,0,function(){var e=this.year();return e<=9999?Bw(e,4):"+"+e}),Cw(0,["YY",2],0,function(){return this.year()%100}),Cw(0,["YYYY",4],0,"year"),Cw(0,["YYYYY",5],0,"year"),Cw(0,["YYYYYY",6,!0],0,"year"),Yw("Y",Fw),Yw("YY",Ow,kw),Yw("YYYY",Nw,xw),Yw("YYYYY",Rw,Tw),Yw("YYYYYY",Rw,Tw),Jw(["YYYYY","YYYYYY"],0),Jw("YYYY",function(e,t){t[0]=2===e.length?Ub.parseTwoDigitYear(e):Ww(e)}),Jw("YY",function(e,t){t[0]=Ub.parseTwoDigitYear(e)}),Jw("Y",function(e,t){t[0]=parseInt(e,10)}),Ub.parseTwoDigitYear=function(e){return Ww(e)+(Ww(e)>68?1900:2e3)};var eD,tD=nD("FullYear",!0);function nD(e,t){return function(n){return null!=n?(iD(this,e,n),Ub.updateOffset(this,t),this):rD(this,e)}}function rD(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function iD(e,t,n){var r,i,a,s,o;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=29!==(o=e.date())||1!==s||Zw(a)?o:28,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function aD(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Zw(e)?29:28:31-r%7%2}eD=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Cw("M",["MM",2],"Mo",function(){return this.month()+1}),Cw("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Cw("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Yw("M",Ow,Uw),Yw("MM",Ow,kw),Yw("MMM",function(e,t){return t.monthsShortRegex(e)}),Yw("MMMM",function(e,t){return t.monthsRegex(e)}),Jw(["M","MM"],function(e,t){t[1]=Ww(e)-1}),Jw(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:Zb(n).invalidMonth=e});var sD="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),oD="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lD=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,uD=Hw,cD=Hw,dD=["monthsParse","longMonthsParse","shortMonthsParse","monthsRegex","monthsShortRegex","monthsStrictRegex","monthsShortStrictRegex"];function hD(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Qb([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=eD.call(this._shortMonthsParse,s))?i:null:-1!==(i=eD.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=eD.call(this._shortMonthsParse,s))||-1!==(i=eD.call(this._longMonthsParse,s))?i:null:-1!==(i=eD.call(this._longMonthsParse,s))||-1!==(i=eD.call(this._shortMonthsParse,s))?i:null}function pD(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ww(t);else if(!Wb(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,aD(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function fD(e){return null!=e?(pD(this,e),Ub.updateOffset(this,!0),this):rD(this,"Month")}function BD(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],s=[],o=[];for(t=0;t<12;t++)n=Qb([2e3,t]),r=qw(this.monthsShort(n,"")),i=qw(this.months(n,"")),a.push(r),s.push(i),o.push(i),o.push(r);a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function mD(e,t){return e.slice(t,7).concat(e.slice(0,t))}Cw("d",0,"do","day"),Cw("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Cw("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Cw("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Cw("e",0,0,"weekday"),Cw("E",0,0,"isoWeekday"),Cw("eHHmm",0,0,function(){return""+this.weekday()+Bw(this.hours(),2)+Bw(this.minutes(),2)}),Yw("d",Ow),Yw("e",Ow),Yw("E",Ow),Yw("eHHmm",Iw),Yw("dd",function(e,t){return t.weekdaysMinRegex(e)}),Yw("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Yw("dddd",function(e,t){return t.weekdaysRegex(e)}),Kw(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:Zb(n).invalidWeekday=e}),Kw(["d","e","E"],function(e,t,n,r){t[r]=Ww(e)}),Kw("eHHmm",function(e,t,n){var r=e.length-4;t.e=Ww(e.substr(0,r)),n._a[3]=Ww(e.substr(r,2)),n._a[4]=Ww(e.substr(r+2))});var gD,vD="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yD="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),CD="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_D=Hw,bD=Hw,wD=Hw,DD=["weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","minWeekdaysParse","weekdaysRegex","weekdaysShortRegex","weekdaysMinRegex","weekdaysStrictRegex","weekdaysShortStrictRegex","weekdaysMinStrictRegex"];function ED(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Qb([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=eD.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=eD.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=eD.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=eD.call(this._weekdaysParse,s))||-1!==(i=eD.call(this._shortWeekdaysParse,s))||-1!==(i=eD.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=eD.call(this._shortWeekdaysParse,s))||-1!==(i=eD.call(this._weekdaysParse,s))||-1!==(i=eD.call(this._minWeekdaysParse,s))?i:null:-1!==(i=eD.call(this._minWeekdaysParse,s))||-1!==(i=eD.call(this._weekdaysParse,s))||-1!==(i=eD.call(this._shortWeekdaysParse,s))?i:null}function kD(){function e(e,t){return t.length-e.length}var t,n,r,i,a,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=Qb([2e3,1]).day(t),r=qw(this.weekdaysMin(n,"")),i=qw(this.weekdaysShort(n,"")),a=qw(this.weekdays(n,"")),s.push(r),o.push(i),l.push(a),u.push(r),u.push(i),u.push(a);s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function SD(e,t){var n,r=Kb({},e);for(n in t)Vb(t,n)&&(Yb(e[n])&&Yb(t[n])?(r[n]={},Kb(r[n],e[n]),Kb(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)Vb(e,n)&&!Vb(t,n)&&Yb(e[n])&&(r[n]=Kb({},r[n]));return r}function xD(e){null!=e&&this.set(e)}function TD(e,t,n,r){var i=this._relativeTime[n];return cw(i)?i(e,t,n,r):i.replace(/%d/i,e)}function OD(e,t){var n=this._relativeTime[e>0?"future":"past"];return cw(n)?n(t):n.replace(/%s/i,t)}function AD(e,t,n,r,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function ID(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function PD(e,t,n){var r=7+t-n;return-(7+ID(e,0,r).getUTCDay()-t)%7+r-1}function ND(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+PD(e,r,i);return o<=0?s=Xw(a=e-1)+o:o>Xw(e)?(a=e+1,s=o-Xw(e)):(a=e,s=o),{year:a,dayOfYear:s}}function RD(e,t,n,r){var i,a,s=PD(e,n,r),o=Math.floor((t-s-1)/7)+1;return o<1?i=o+LD(a=e-1,n,r):o>LD(e,n,r)?(i=o-LD(e,n,r),a=e+1):(a=e,i=o),{week:i,year:a}}function MD(e,t,n){return RD(e.year(),e.dayOfYear(),t,n)}function FD(e,t,n,r,i){return RD(e,Math.round((ID(e,t,n)-ID(e,0,1))/864e5)+1,r,i)}function LD(e,t,n){var r=PD(e,t,n),i=PD(e+1,t,n);return(Xw(e)-r+i)/7}function jD(){return this.hours()%12||12}function HD(e,t){Cw(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function UD(e,t){return t._meridiemParse}gD=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)Vb(e,t)&&n.push(t);return n},Cw("w",["ww",2],"wo","week"),Cw("W",["WW",2],"Wo","isoWeek"),Yw("w",Ow,Uw),Yw("ww",Ow,kw),Yw("W",Ow,Uw),Yw("WW",Ow,kw),Kw(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ww(e)}),Cw("H",["HH",2],0,"hour"),Cw("h",["hh",2],0,jD),Cw("k",["kk",2],0,function(){return this.hours()||24}),Cw("hmm",0,0,function(){return""+jD.apply(this)+Bw(this.minutes(),2)}),Cw("hmmss",0,0,function(){return""+jD.apply(this)+Bw(this.minutes(),2)+Bw(this.seconds(),2)}),Cw("Hmm",0,0,function(){return""+this.hours()+Bw(this.minutes(),2)}),Cw("Hmmss",0,0,function(){return""+this.hours()+Bw(this.minutes(),2)+Bw(this.seconds(),2)}),HD("a",!0),HD("A",!1),Yw("a",UD),Yw("A",UD),Yw("H",Ow,Gw),Yw("h",Ow,Uw),Yw("k",Ow,Uw),Yw("HH",Ow,kw),Yw("hh",Ow,kw),Yw("kk",Ow,kw),Yw("hmm",Aw),Yw("hmmss",Iw),Yw("Hmm",Aw),Yw("Hmmss",Iw),Jw(["H","HH"],3),Jw(["k","kk"],function(e,t,n){var r=Ww(e);t[3]=24===r?0:r}),Jw(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Jw(["h","hh"],function(e,t,n){t[3]=Ww(e),Zb(n).bigHour=!0}),Jw("hmm",function(e,t,n){var r=e.length-2;t[3]=Ww(e.substr(0,r)),t[4]=Ww(e.substr(r)),Zb(n).bigHour=!0}),Jw("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=Ww(e.substr(0,r)),t[4]=Ww(e.substr(r,2)),t[5]=Ww(e.substr(i)),Zb(n).bigHour=!0}),Jw("Hmm",function(e,t,n){var r=e.length-2;t[3]=Ww(e.substr(0,r)),t[4]=Ww(e.substr(r))}),Jw("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=Ww(e.substr(0,r)),t[4]=Ww(e.substr(r,2)),t[5]=Ww(e.substr(i))});var GD,YD=nD("Hours",!0),VD={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:sD,monthsShort:oD,week:{dow:0,doy:6},weekdays:vD,weekdaysMin:CD,weekdaysShort:yD,meridiemParse:/[ap]\.?m?\.?/i},qD={},$D={};function WD(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function zD(e){return e?e.toLowerCase().replace("_","-"):e}function JD(e){var n,r=null;if(Vb(qD,e))return qD[e];if(n=zD(e),Vb(qD,n))return qD[n];if(void 0!==t&&t&&t.exports&&function(e){return"string"==typeof e&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e)}(n))try{r=GD._abbr,require("./locale/"+n),KD(r)}catch(zle){qD[n]=null}return Vb(qD,n)?qD[n]:void 0}function KD(e,t){var n;return e&&((n=$b(t)?ZD(e):QD(e,t))?GD=n:"undefined"!=typeof console&&console.warn),GD._abbr}function QD(e,t){if(null!==t){var n,r=VD;if(t.abbr=e,null!=qD[e])uw("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=qD[e]._config;else if(null!=t.parentLocale)if(null!=qD[t.parentLocale])r=qD[t.parentLocale]._config;else{if(null==(n=JD(t.parentLocale)))return $D[t.parentLocale]||($D[t.parentLocale]=[]),$D[t.parentLocale].push({name:e,config:t}),null;r=n._config}return qD[e]=new xD(SD(r,t)),$D[e]&&$D[e].forEach(function(e){QD(e.name,e.config)}),KD(e),qD[e]}return delete qD[e],null}function ZD(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return GD;if(!Gb(e)){if(t=JD(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=zD(e[a]).split("-")).length,n=(n=zD(e[a+1]))?n.split("-"):null;t>0;){if(r=JD(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&WD(i,n)>=t-1)break;t--}a++}return GD}(e)}function XD(e){var t,n=e._a;return n&&-2===Zb(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>aD(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,Zb(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),Zb(e)._overflowWeeks&&-1===t&&(t=7),Zb(e)._overflowWeekday&&-1===t&&(t=8),Zb(e).overflow=t),e}var eE=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tE=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nE=/Z|[+-]\d\d(?::?\d\d)?/,rE=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],iE=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aE=/^\/?Date\((-?\d+)/i,sE=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,oE={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lE(e){var t,n,r,i,a,s,o=e._i,l=eE.exec(o)||tE.exec(o),u=rE.length,c=iE.length;if(l){for(Zb(e).iso=!0,t=0,n=u;t<n;t++)if(rE[t][1].exec(l[1])){i=rE[t][0],r=!1!==rE[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(iE[t][1].exec(l[3])){a=(l[2]||" ")+iE[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!nE.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),fE(e)}else e._isValid=!1}function uE(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function cE(e){var t,n,r,i,a,s,o,l,u=sE.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],i=u[2],a=u[5],s=u[6],o=u[7],l=[uE(n),oD.indexOf(r),parseInt(i,10),parseInt(a,10),parseInt(s,10)],o&&l.push(parseInt(o,10)),t=l,!function(e,t,n){return!e||yD.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(Zb(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return oE[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(u[8],u[9],u[10]),e._d=ID.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Zb(e).rfc2822=!0}else e._isValid=!1}function dE(e,t,n){return null!=e?e:null!=t?t:n}function hE(e,t,n){var r=Object.prototype.hasOwnProperty.call(e,"_isDefaultDatePartsForWeek"),i=e._isDefaultDatePartsForWeek;e._isDefaultDatePartsForWeek=!!n;try{return Ub._getDefaultDateParts(e,t,n)}finally{r?e._isDefaultDatePartsForWeek=i:delete e._isDefaultDatePartsForWeek}}function pE(e){var t,n,r,i,a,s,o,l=[];if(!e._d){for(null!=e._a[0]&&null!=e._a[1]&&null!=e._a[2]||(r=function(e){var t=e._defaultDatePartsNow;return t?(t.hasValue||(t.value=Ub.now(),t.hasValue=!0),t.value):Ub.now()}(e),i=hE(e,r)),e._w&&null==e._a[2]&&null==e._a[1]&&function(e,t){var n,r,i,a,s,o,l,u,c;null!=(n=e._w).GG||null!=n.W||null!=n.E?(s=1,o=4,r=dE(n.GG,e._a[0],FD(t[0],t[1],t[2],1,4).year),i=dE(n.W,1),((a=dE(n.E,1))<1||a>7)&&(u=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,c=FD(t[0],t[1],t[2],s,o),r=dE(n.gg,e._a[0],c.year),i=dE(n.w,c.week),null!=n.d?((a=n.d)<0||a>6)&&(u=!0):null!=n.e?(a=n.e+s,(n.e<0||n.e>6)&&(u=!0)):a=s),i<1||i>LD(r,s,o)?Zb(e)._overflowWeeks=!0:null!=u?Zb(e)._overflowWeekday=!0:(l=ND(r,i,a,s,o),e._a[0]=l.year,e._dayOfYear=l.dayOfYear)}(e,hE(e,r,!0)),null!=e._dayOfYear&&(s=null!=e._a[0]?e._a[0]:i[0],(e._dayOfYear>Xw(s)||0===e._dayOfYear)&&(Zb(e)._overflowDayOfYear=!0),n=ID(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),o=null==e._a[0]||null==e._a[1]||null==e._a[2],t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=i[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?ID:AD).apply(null,l),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&!o&&e._w.d!==a&&(Zb(e).weekdayMismatch=!0)}}function fE(e){if(e._f!==Ub.ISO_8601)if(e._f!==Ub.RFC_2822){e._a=[],Zb(e).empty=!0;var t,n,r,i,a,s,o,l=""+e._i,u=l.length,c=0;for(o=(r=ww(e._f,e._locale).match(mw)||[]).length,t=0;t<o;t++)i=r[t],(n=(l.match(Vw(i,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&Zb(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),c+=n.length),yw[i]?(n?Zb(e).empty=!1:Zb(e).unusedTokens.push(i),Qw(i,n,e)):e._strict&&!n&&Zb(e).unusedTokens.push(i);Zb(e).charsLeftOver=u-c,l.length>0&&Zb(e).unusedInput.push(l),e._a[3]<=12&&!0===Zb(e).bigHour&&e._a[3]>0&&(Zb(e).bigHour=void 0),Zb(e).parsedDateParts=e._a.slice(0),Zb(e).meridiem=e._meridiem,e._a[3]=(d=e._locale,h=e._a[3],null==(p=e._meridiem)?h:null!=d.meridiemHour?d.meridiemHour(h,p):null!=d.isPM?((f=d.isPM(p))&&h<12&&(h+=12),f||12!==h||(h=0),h):h),null!==(s=Zb(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),pE(e),XD(e)}else cE(e);else lE(e);var d,h,p,f}function BE(e){var t=e._i,n=e._f;return e._locale=e._locale||ZD(e._l),null===t||void 0===n&&""===t?ew({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),aw(t)?new iw(XD(t)):(zb(t)?e._d=t:Gb(n)?function(e){var t,n,r,i,a,s,o=!1,l={},u=e._f.length;if(0===u)return Zb(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)a=0,s=!1,t=rw({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._defaultDatePartsNow=l,t._f=e._f[i],fE(t),Xb(t)&&(s=!0),a+=Zb(t).charsLeftOver,a+=10*Zb(t).unusedTokens.length,Zb(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));Kb(e,n||t)}(e):n?fE(e):function(e){var t=e._i;$b(t)?e._d=new Date(Ub.now()):zb(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=aE.exec(e._i);null===t?(lE(e),!1===e._isValid&&(delete e._isValid,cE(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:Ub.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):Gb(t)?(e._a=Jb(t.slice(0),function(e){return parseInt(e,10)}),pE(e)):Yb(t)?function(e){if(!e._d){var t=pw(e._i),n=void 0===t.day?t.date:t.day;e._a=Jb([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),pE(e)}}(e):Wb(t)?e._d=new Date(t):Ub.createFromInputFallback(e)}(e),Xb(e)||(e._d=null),e))}function mE(e,t,n,r,i){var a,s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(Yb(e)&&qb(e)||Gb(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(a=new iw(XD(BE(s))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function gE(e,t,n,r){return mE(e,t,n,r,!1)}Ub.createFromInputFallback=ow("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),Ub._getDefaultDateParts=function(e,t,n){var r=n||e._isDefaultDatePartsForWeek,i=r?gE(t):new Date(t);return r?[i.year(),i.month(),i.date()]:e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]},Ub.ISO_8601=function(){},Ub.RFC_2822=function(){};var vE=ow("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=gE.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ew()}),yE=ow("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=gE.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ew()});function CE(e,t){var n,r;if(1===t.length&&Gb(t[0])&&(t=t[0]),!t.length)return gE();for(r=0;r<t.length;++r)if(aw(t[r])){n=t[r];break}if(!n)return ew();for(++r;r<t.length;++r)!aw(t[r])||t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var _E=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bE(e){var t=pw(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=_E.length;for(t in e)if(Vb(e,t)&&(-1===eD.call(_E,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[_E[n]]){if(r)return!1;parseFloat(e[_E[n]])!==Ww(e[_E[n]])&&(r=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=ZD(),this._bubble()}function wE(e){return e instanceof bE}function DE(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function EE(e,t){Cw(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Bw(~~(e/60),2)+t+Bw(~~e%60,2)})}EE("Z",":"),EE("ZZ",""),Yw("Z",jw),Yw("ZZ",jw),Jw(["Z","ZZ"],function(e,t,n){var r=SE(jw,e);n._useUTC=!0,n._tzm=r,null===r&&(Zb(n).invalidOffset=e)});var kE=/([\+\-]|\d\d)/gi;function SE(e,t){var n,r,i=(t||"").match(e);return null===i?null:(r=60*(n=((i[i.length-1]||[])+"").match(kE)||["-",0,0])[1]+Ww(n[2]),Ww(n[2])>59||("+"===n[0]?r>840:r>720)?null:0===r?0:"+"===n[0]?r:-r)}function xE(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(aw(e)||zb(e)?e.valueOf():gE(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Ub.updateOffset(n,!1),n):gE(e).local()}function TE(e){return-Math.round(e._d.getTimezoneOffset())}function OE(){return!!this.isValid()&&this._isUTC&&0===this._offset}Ub.updateOffset=function(){};var AE=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,IE=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function PE(e,t){var n,r,i,a,s,o,l=e,u=null;return wE(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:Wb(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(u=AE.exec(e))?(n="-"===u[1]?-1:1,l={y:0,d:Ww(u[2])*n,h:Ww(u[3])*n,m:Ww(u[4])*n,s:Ww(u[5])*n,ms:Ww(DE(1e3*u[6]))*n}):(u=IE.exec(e))?(n="-"===u[1]?-1:1,l={y:NE(u[2],n),M:NE(u[3],n),w:NE(u[4],n),d:NE(u[5],n),h:NE(u[6],n),m:NE(u[7],n),s:NE(u[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=gE(l.from),s=gE(l.to),i=a.isValid()&&s.isValid()?(s=xE(s,a),a.isBefore(s)?o=RE(a,s):((o=RE(s,a)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new bE(l),wE(e)&&Vb(e,"_locale")&&(r._locale=e._locale),wE(e)&&Vb(e,"_isValid")&&(r._isValid=e._isValid),r}function NE(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function RE(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ME(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(uw(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),FE(this,PE(n,r),e),this}}function FE(e,t,n,r){var i=t._milliseconds,a=DE(t._days),s=DE(t._months);e.isValid()&&(r=null==r||r,s&&pD(e,rD(e,"Month")+s*n),a&&iD(e,"Date",rD(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Ub.updateOffset(e,a||s))}PE.fn=bE.prototype,PE.invalid=function(){return PE(NaN)};var LE=ME(1,"add"),jE=ME(-1,"subtract");function HE(e){return"string"==typeof e||e instanceof String}function UE(e){return aw(e)||zb(e)||HE(e)||Wb(e)||function(e){var t=Gb(e),n=!1;return t&&(n=0===e.filter(function(t){return!Wb(t)&&HE(e)}).length),t&&n}(e)||function(e){var t,n,r=Yb(e)&&!qb(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(t=0;t<s;t+=1)n=a[t],i=i||Vb(e,n);return r&&i}(e)||null==e}function GE(e,t){if(e.date()<t.date())return-GE(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function YE(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ZD(e))&&(this._locale=t),this)}Ub.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ub.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var VE=ow("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function qE(){return this._locale}var $E=1e3,WE=6e4,zE=36e5,JE=126227808e5;function KE(e,t){return(e%t+t)%t}function QE(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-JE:new Date(e,t,n).valueOf()}function ZE(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-JE:Date.UTC(e,t,n)}function XE(e,t){return t.erasAbbrRegex(e)}function ek(){var e,t,n,r,i,a=[],s=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=qw(u[e].name),r=qw(u[e].abbr),i=qw(u[e].narrow),s.push(n),a.push(r),o.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function tk(e,t){Cw(0,[e,e.length],0,t)}function nk(e,t,n,r,i){var a;return null==e?MD(this,r,i).year:(t>(a=LD(e,r,i))&&(t=a),rk.call(this,e,t,n,r,i))}function rk(e,t,n,r,i){var a=ND(e,t,n,r,i),s=ID(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Cw("N",0,0,"eraAbbr"),Cw("NN",0,0,"eraAbbr"),Cw("NNN",0,0,"eraAbbr"),Cw("NNNN",0,0,"eraName"),Cw("NNNNN",0,0,"eraNarrow"),Cw("y",["y",1],"yo","eraYear"),Cw("y",["yy",2],0,"eraYear"),Cw("y",["yyy",3],0,"eraYear"),Cw("y",["yyyy",4],0,"eraYear"),Yw("N",XE),Yw("NN",XE),Yw("NNN",XE),Yw("NNNN",function(e,t){return t.erasNameRegex(e)}),Yw("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),Jw(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Zb(n).era=i:Zb(n).invalidEra=e}),Yw("y",Mw),Yw("yy",Mw),Yw("yyy",Mw),Yw("yyyy",Mw),Yw("yo",function(e,t){return t._eraYearOrdinalRegex||Mw}),Jw(["y","yy","yyy","yyyy"],0),Jw(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),Cw(0,["gg",2],0,function(){return this.weekYear()%100}),Cw(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tk("gggg","weekYear"),tk("ggggg","weekYear"),tk("GGGG","isoWeekYear"),tk("GGGGG","isoWeekYear"),Yw("G",Fw),Yw("g",Fw),Yw("GG",Ow,kw),Yw("gg",Ow,kw),Yw("GGGG",Nw,xw),Yw("gggg",Nw,xw),Yw("GGGGG",Rw,Tw),Yw("ggggg",Rw,Tw),Kw(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ww(e)}),Kw(["gg","GG"],function(e,t,n,r){t[r]=Ub.parseTwoDigitYear(e)}),Cw("Q",0,"Qo","quarter"),Yw("Q",Ew),Jw("Q",function(e,t){t[1]=3*(Ww(e)-1)}),Cw("D",["DD",2],"Do","date"),Yw("D",Ow,Uw),Yw("DD",Ow,kw),Yw("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Jw(["D","DD"],2),Jw("Do",function(e,t){t[2]=Ww(e.match(Ow)[0])});var ik=nD("Date",!0);Cw("DDD",["DDDD",3],"DDDo","dayOfYear"),Yw("DDD",Pw),Yw("DDDD",Sw),Jw(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ww(e)}),Cw("m",["mm",2],0,"minute"),Yw("m",Ow,Gw),Yw("mm",Ow,kw),Jw(["m","mm"],4);var ak=nD("Minutes",!1);Cw("s",["ss",2],0,"second"),Yw("s",Ow,Gw),Yw("ss",Ow,kw),Jw(["s","ss"],5);var sk,ok,lk=nD("Seconds",!1);for(Cw("S",0,0,function(){return~~(this.millisecond()/100)}),Cw(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Cw(0,["SSS",3],0,"millisecond"),Cw(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Cw(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Cw(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Cw(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Cw(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Cw(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Yw("S",Pw,Ew),Yw("SS",Pw,kw),Yw("SSS",Pw,Sw),sk="SSSS";sk.length<=9;sk+="S")Yw(sk,Mw);function uk(e,t){t[6]=Ww(1e3*("0."+e))}for(sk="S";sk.length<=9;sk+="S")Jw(sk,uk);ok=nD("Milliseconds",!1),Cw("z",0,0,"zoneAbbr"),Cw("zz",0,0,"zoneName");var ck=iw.prototype;function dk(e){return e}ck.add=LE,ck.calendar=function(e,t){1===arguments.length&&(arguments[0]?UE(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=Yb(e)&&!qb(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||Vb(e,i[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||gE(),r=xE(n,this).startOf("day"),i=Ub.calendarFormat(this,r)||"sameElse",a=t&&(cw(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,gE(n)))},ck.clone=function(){return new iw(this)},ck.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=xE(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=hw(t)){case"year":a=GE(this,r)/12;break;case"month":a=GE(this,r);break;case"quarter":a=GE(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:$w(a)},ck.endOf=function(e){var t,n;if(void 0===(e=hw(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ZE:QE,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=zE-KE(t+(this._isUTC?0:this.utcOffset()*WE),zE)-1;break;case"minute":t=this._d.valueOf(),t+=WE-KE(t,WE)-1;break;case"second":t=this._d.valueOf(),t+=$E-KE(t,$E)-1}return this._d.setTime(t),Ub.updateOffset(this,!0),this},ck.format=function(e){e||(e=this.isUtc()?Ub.defaultFormatUtc:Ub.defaultFormat);var t=bw(this,e);return this.localeData().postformat(t)},ck.from=function(e,t){return this.isValid()&&(aw(e)&&e.isValid()||gE(e).isValid())?PE({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ck.fromNow=function(e){return this.from(gE(),e)},ck.to=function(e,t){return this.isValid()&&(aw(e)&&e.isValid()||gE(e).isValid())?PE({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ck.toNow=function(e){return this.to(gE(),e)},ck.get=function(e){return cw(this[e=hw(e)])?this[e]():this},ck.invalidAt=function(){return Zb(this).overflow},ck.isAfter=function(e,t){var n=aw(e)?e:gE(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=hw(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},ck.isBefore=function(e,t){var n=aw(e)?e:gE(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=hw(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},ck.isBetween=function(e,t,n,r){var i=aw(e)?e:gE(e),a=aw(t)?t:gE(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},ck.isSame=function(e,t){var n,r=aw(e)?e:gE(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=hw(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},ck.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ck.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ck.isValid=function(){return Xb(this)},ck.lang=VE,ck.locale=YE,ck.localeData=qE,ck.max=yE,ck.min=vE,ck.parsingFlags=function(){return Kb({},Zb(this))},ck.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)Vb(e,t)&&n.push({unit:t,priority:fw[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=pw(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(cw(this[e=hw(e)]))return this[e](t);return this},ck.startOf=function(e){var t,n;if(void 0===(e=hw(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ZE:QE,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=KE(t+(this._isUTC?0:this.utcOffset()*WE),zE);break;case"minute":t=this._d.valueOf(),t-=KE(t,WE);break;case"second":t=this._d.valueOf(),t-=KE(t,$E)}return this._d.setTime(t),Ub.updateOffset(this,!0),this},ck.subtract=jE,ck.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ck.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ck.toDate=function(){return new Date(this.valueOf())},ck.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?bw(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):cw(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",bw(n,"Z")):bw(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ck.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ck[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ck.toJSON=function(){return this.isValid()?this.toISOString():null},ck.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ck.unix=function(){return Math.floor(this.valueOf()/1e3)},ck.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ck.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ck.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},ck.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},ck.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},ck.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-Ub(i[e].since).year())*n+i[e].offset;return this.year()},ck.year=tD,ck.isLeapYear=function(){return Zw(this.year())},ck.weekYear=function(e){return nk.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},ck.isoWeekYear=function(e){return nk.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ck.quarter=ck.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ck.month=fD,ck.daysInMonth=function(){return aD(this.year(),this.month())},ck.week=ck.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ck.isoWeek=ck.isoWeeks=function(e){var t=MD(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ck.weeksInYear=function(){var e=this.localeData()._week;return LD(this.year(),e.dow,e.doy)},ck.weeksInWeekYear=function(){var e=this.localeData()._week;return LD(this.weekYear(),e.dow,e.doy)},ck.isoWeeksInYear=function(){return LD(this.year(),1,4)},ck.isoWeeksInISOWeekYear=function(){return LD(this.isoWeekYear(),1,4)},ck.date=ik,ck.day=ck.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=rD(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ck.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ck.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ck.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ck.hour=ck.hours=YD,ck.minute=ck.minutes=ak,ck.second=ck.seconds=lk,ck.millisecond=ck.milliseconds=ok,ck.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=SE(jw,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=TE(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?FE(this,PE(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ub.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:TE(this)},ck.utc=function(e){return this.utcOffset(0,e)},ck.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(TE(this),"m")),this},ck.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=SE(Lw,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ck.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?gE(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ck.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ck.isLocal=function(){return!!this.isValid()&&!this._isUTC},ck.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ck.isUtc=OE,ck.isUTC=OE,ck.zoneAbbr=function(){return this._isUTC?"UTC":""},ck.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ck.dates=ow("dates accessor is deprecated. Use date instead.",ik),ck.months=ow("months accessor is deprecated. Use month instead",fD),ck.years=ow("years accessor is deprecated. Use year instead",tD),ck.zone=ow("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ck.isDSTShifted=ow("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!$b(this._isDSTShifted))return this._isDSTShifted;var e,t={};return rw(t,this),(t=BE(t))._a?(e=t._isUTC?Qb(t._a):gE(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var n,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(n=0;n<r;n++)Ww(e[n])!==Ww(t[n])&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var hk=xD.prototype;function pk(e,t,n,r){var i=ZD(),a=Qb().set(r,t);return i[n](a,e)}function fk(e,t,n){if(Wb(e)&&(t=e,e=void 0),e=e||"",null!=t)return pk(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pk(e,r,n,"month");return i}function Bk(e,t,n,r){"boolean"==typeof e?(Wb(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,Wb(t)&&(n=t,t=void 0),t=t||"");var i,a=ZD(),s=e?a._week.dow:0,o=[];if(null!=n)return pk(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=pk(t,(i+s)%7,r,"day");return o}hk.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return cw(r)?r.call(t,n):r},hk.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()],r=this._longDateFormatCache;return t||!n?t:r&&r[e]&&r[e].formatUpper===n?r[e].format:(t=n.match(mw).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),r||(r=this._longDateFormatCache={}),r[e]={formatUpper:n,format:t},t)},hk.invalidDate=function(){return this._invalidDate},hk.ordinal=function(e){return this._ordinal.replace("%d",e)},hk.preparse=dk,hk.postformat=dk,hk.relativeTime=function(e,t,n,r){return this.postformat(TD.call(this,e,t,n,r))},hk.pastFuture=function(e,t){return this.postformat(OD.call(this,e,t))},hk.set=function(e){var t,n;for(n in function(e,t){var n,r;for(n=0;n<dD.length;n++)Vb(t,r=dD[n])||delete e["_"+r]}(this,e),function(e,t){var n,r;for(n=0;n<DD.length;n++)Vb(t,r=DD[n])||delete e["_"+r]}(this,e),e)Vb(e,n)&&(cw(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hk.eras=function(e,t){var n,r,i,a=this._eras||ZD("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(i=Ub(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=Ub(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a},hk.erasParse=function(e,t,n){var r,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),o=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(o===e)return l[r]}else if([a,s,o].indexOf(e)>=0)return l[r]},hk.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?Ub(e.since).year():Ub(e.since).year()+(t-e.offset)*n},hk.erasAbbrRegex=function(e){return Vb(this,"_erasAbbrRegex")||ek.call(this),e?this._erasAbbrRegex:this._erasRegex},hk.erasNameRegex=function(e){return Vb(this,"_erasNameRegex")||ek.call(this),e?this._erasNameRegex:this._erasRegex},hk.erasNarrowRegex=function(e){return Vb(this,"_erasNarrowRegex")||ek.call(this),e?this._erasNarrowRegex:this._erasRegex},hk.months=function(e,t){return e?Gb(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||lD).test(t)?"format":"standalone"][e.month()]:Gb(this._months)?this._months:this._months.standalone},hk.monthsShort=function(e,t){return e?Gb(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[lD.test(t)?"format":"standalone"][e.month()]:Gb(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hk.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return hD.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Qb([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hk.monthsRegex=function(e){return this._monthsParseExact?(Vb(this,"_monthsRegex")||BD.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Vb(this,"_monthsRegex")||(this._monthsRegex=cD),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hk.monthsShortRegex=function(e){return this._monthsParseExact?(Vb(this,"_monthsRegex")||BD.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Vb(this,"_monthsShortRegex")||(this._monthsShortRegex=uD),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hk.week=function(e){return MD(e,this._week.dow,this._week.doy).week},hk.firstDayOfYear=function(){return this._week.doy},hk.firstDayOfWeek=function(){return this._week.dow},hk.weekdays=function(e,t){var n=Gb(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?mD(n,this._week.dow):e?n[e.day()]:n},hk.weekdaysMin=function(e){return!0===e?mD(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},hk.weekdaysShort=function(e){return!0===e?mD(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},hk.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return ED.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Qb([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hk.weekdaysRegex=function(e){return this._weekdaysParseExact?(Vb(this,"_weekdaysRegex")||kD.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Vb(this,"_weekdaysRegex")||(this._weekdaysRegex=_D),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hk.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(Vb(this,"_weekdaysRegex")||kD.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Vb(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bD),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hk.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(Vb(this,"_weekdaysRegex")||kD.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Vb(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=wD),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hk.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hk.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},KD("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ww(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),Ub.lang=ow("moment.lang is deprecated. Use moment.locale instead.",KD),Ub.langData=ow("moment.langData is deprecated. Use moment.localeData instead.",ZD);var mk=Math.abs;function gk(e,t,n,r){var i=PE(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function vk(e){return e<0?Math.floor(e):Math.ceil(e)}function yk(e){return 4800*e/146097}function Ck(e){return 146097*e/4800}function _k(e){return function(){return this.as(e)}}var bk=_k("ms"),wk=_k("s"),Dk=_k("m"),Ek=_k("h"),kk=_k("d"),Sk=_k("w"),xk=_k("M"),Tk=_k("Q"),Ok=_k("y"),Ak=bk;function Ik(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pk=Ik("milliseconds"),Nk=Ik("seconds"),Rk=Ik("minutes"),Mk=Ik("hours"),Fk=Ik("days"),Lk=Ik("months"),jk=Ik("years"),Hk=Math.round,Uk={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gk(e,t,n,r,i){return TD.call(i,t||1,!!n,e,r)}function Yk(e,t,n,r){var i=PE(e).abs(),a=Hk(i.as("s")),s=Hk(i.as("m")),o=Hk(i.as("h")),l=Hk(i.as("d")),u=Hk(i.as("M")),c=Hk(i.as("w")),d=Hk(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,Gk.apply(null,h)}var Vk=Math.abs;function qk(e){return(e>0)-(e<0)||+e}function $k(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,s,o,l=Vk(this._milliseconds)/1e3,u=Vk(this._days),c=Vk(this._months),d=this.asSeconds();return d?(e=$w(l/60),t=$w(e/60),l%=60,e%=60,n=$w(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=qk(this._months)!==qk(d)?"-":"",s=qk(this._days)!==qk(d)?"-":"",o=qk(this._milliseconds)!==qk(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var Wk=bE.prototype;function zk(){function e(){return _b().props.redesSociais??{}}function t(t){return e()[t]}return{redesSociais:e,buscar:t,link:function(e){var n;return null==(n=t(e))?void 0:n.link},alvo:function(e){var n;return(null==(n=t(e))?void 0:n.nova_guia)?"_blank":"_self"}}}Wk.isValid=function(){return this._isValid},Wk.abs=function(){var e=this._data;return this._milliseconds=mk(this._milliseconds),this._days=mk(this._days),this._months=mk(this._months),e.milliseconds=mk(e.milliseconds),e.seconds=mk(e.seconds),e.minutes=mk(e.minutes),e.hours=mk(e.hours),e.months=mk(e.months),e.years=mk(e.years),this},Wk.add=function(e,t){return gk(this,e,t,1)},Wk.subtract=function(e,t){return gk(this,e,t,-1)},Wk.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=hw(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+yk(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ck(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Wk.asMilliseconds=bk,Wk.asSeconds=wk,Wk.asMinutes=Dk,Wk.asHours=Ek,Wk.asDays=kk,Wk.asWeeks=Sk,Wk.asMonths=xk,Wk.asQuarters=Tk,Wk.asYears=Ok,Wk.valueOf=Ak,Wk._bubble=function(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*vk(Ck(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=$w(a/1e3),l.seconds=e%60,t=$w(e/60),l.minutes=t%60,n=$w(t/60),l.hours=n%24,s+=$w(n/24),o+=i=$w(yk(s)),s-=vk(Ck(i)),r=$w(o/12),o%=12,l.days=s,l.months=o,l.years=r,this},Wk.clone=function(){return PE(this)},Wk.get=function(e){return e=hw(e),this.isValid()?this[e+"s"]():NaN},Wk.milliseconds=Pk,Wk.seconds=Nk,Wk.minutes=Rk,Wk.hours=Mk,Wk.days=Fk,Wk.weeks=function(){return $w(this.days()/7)},Wk.months=Lk,Wk.years=jk,Wk.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=Uk;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Kb(Kb({},Uk),t||{}),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=Yk(this,!i,a,n=this.localeData()),i&&(r=OD.call(n,+this,r)),n.postformat(r)},Wk.toISOString=$k,Wk.toString=$k,Wk.toJSON=$k,Wk.locale=YE,Wk.localeData=qE,Wk.toIsoString=ow("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$k),Wk.lang=VE,Cw("X",0,0,"unix"),Cw("x",0,0,"valueOf"),Yw("x",Fw),Yw("X",/[+-]?\d+(\.\d{1,3})?/),Jw("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Jw("x",function(e,t,n){n._d=new Date(Ww(e))}),
31//! moment.js
32Ub.version="2.31.0",jb=gE,Ub.fn=ck,Ub.min=function(){return CE("isBefore",[].slice.call(arguments,0))},Ub.max=function(){return CE("isAfter",[].slice.call(arguments,0))},Ub.now=function(){return Date.now?Date.now():+new Date},Ub.utc=Qb,Ub.unix=function(e){return gE(1e3*e)},Ub.months=function(e,t){return fk(e,t,"months")},Ub.isDate=zb,Ub.locale=KD,Ub.invalid=ew,Ub.duration=PE,Ub.isMoment=aw,Ub.weekdays=function(e,t,n){return Bk(e,t,n,"weekdays")},Ub.parseZone=function(){return gE.apply(null,arguments).parseZone()},Ub.localeData=ZD,Ub.isDuration=wE,Ub.monthsShort=function(e,t){return fk(e,t,"monthsShort")},Ub.weekdaysMin=function(e,t,n){return Bk(e,t,n,"weekdaysMin")},Ub.defineLocale=QD,Ub.updateLocale=function(e,t){var n,r=JD(e),i=VD;return null!=r&&(e=r._abbr),null!=t?(null!=qD[e]&&null!=qD[e].parentLocale?qD[e].set(SD(qD[e]._config,t)):(null!=r&&(i=r._config),t=SD(i,t),null==r&&(t.abbr=e),(n=new xD(t)).parentLocale=qD[e],qD[e]=n),KD(e)):null!=qD[e]&&(null!=qD[e].parentLocale?(qD[e]=qD[e].parentLocale,e===KD()&&KD(e)):null!=qD[e]&&delete qD[e]),qD[e]},Ub.locales=function(){return gD(qD)},Ub.weekdaysShort=function(e,t,n){return Bk(e,t,n,"weekdaysShort")},Ub.normalizeUnits=hw,Ub.relativeTimeRounding=function(e){return void 0===e?Hk:"function"==typeof e&&(Hk=e,!0)},Ub.relativeTimeThreshold=function(e,t){return void 0!==Uk[e]&&(void 0===t?Uk[e]:(Uk[e]=t,"
32s"===e&&(Uk.ss=t-1),!0))},Ub.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},Ub.prototype=ck,Ub.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Jk={class:"footer-info__container"},Kk={class:"social-media__container"},Qk=["href","target"],Zk={class:"sr-only"},Xk=["src"],eS={class:"logo__container"},tS={class:"text-center text-xs leading-5 text-white mt-1"},nS=Ob(Ir({__name:"FooterInfo",setup(e){const t=Ub().year(),{link:n,alvo:r,buscar:i}=zk(),a=[{slug:"youtube",name:"YouTube",href:"https://www.youtube.com/c/PortalEngeplusOficial",img:"https://engeplus.com.br/build/assets/youtube-08e6e90e.svg",color:"#c4302b",padding:"0"},{slug:"facebook",name:"Facebook",href:"https://www.facebook.com/portalengeplus",img:"https://engeplus.com.br/build/assets/facebook-5876618e.svg",color:"#3b5998",padding:"0"},{slug:"instagram",name:"Instagram",href:"https://www.instagram.com/portalengeplus/",img:"https://engeplus.com.br/build/assets/instagram-9512c95a.svg",color:"#833AB4",padding:"0"},{slug:"x",name:"X",href:"https://twitter.com/portalengeplus",img:"https://engeplus.com.br/build/assets/x-twitter-27a3d7af.svg",color:"#ffffff",padding:"0.4rem"},{slug:"linkedin",name:"LinkedIn",href:"https://www.linkedin.com/company/engelus/",img:"https://engeplus.com.br/build/assets/linkedin-87efd3b8.svg",color:"#0e76a8",padding:"0"}].map(e=>({name:e.name,href:n(e.slug)??e.href,target:i(e.slug)?r(e.slug):"_blank",img:e.img,color:e.color,padding:e.padding}));return(e,n)=>(Xa(),is("div",Jk,[n[1]||(n[1]=cs("div",{class:"address__container space-y-3"},[cs("div",{class:"footer-info__address mb-2"},[cs("p",null,we("Criciúma - SC: Rua Urussanga, 417. Centro")),cs("p",null,we("Fone: (48) 3431-4700"))]),cs("div",{class:"footer-info__address mb-2"},[cs("p",null,we("Tubarão - SC: Rua Porto Alegre, 537-4, Vila Moema")),cs("p",null,we("Fone: (48) 3631-4700"))])],-1)),cs("div",Kk,[(Xa(!0),is(Wa,null,Ti(an(a),e=>(Xa(),is("a",{key:e.name,href:e.href,target:e.target,class:"social-media__icon text-gray-400 hover:text-gray-500 rounded-full",style:re({backgroundColor:e.color})},[cs("span",Zk,we(e.name),1),cs("img",{src:e.img,alt:"icones de redes sociais",class:"h-12 w-12",style:re("0"!=e.padding?`padding: ${e.padding}`:"")},null,12,Xk)],12,Qk))),128))]),n[2]||(n[2]=cs("div",{class:"selo__container"},[cs("img",{src:"https://www.engeplus.com.br/assets/img/amigos_do_bairro.png","aria-hidden":"true",class:"w-full h-full"})],-1)),cs("div",eS,[n[0]||(n[0]=cs("img",{src:"https://engeplus.com.br/build/assets/logotipo-rodape-branco-ad563726.svg",alt:"logotipo do footer",class:"w-full h-full"},null,-1)),cs("p",tS," © "+we(`1995 - ${an(t)} Engeplus`),1)])]))}}),[["__scopeId","data-v-7fc91222"]]),rS={class:"mt-auto"},iS={class:"border-b-4 dark:border-gray-800",style:{"background-color":"#4a4a49"}},aS={class:"footer-item__container",style:{"margin-top":"51px","margin-bottom":"51px"}},sS={class:"footer-info__container"},oS=Ob(Ir({__name:"FooterComponent",setup(e){const t=[{title:"Quem somos",desc:"Conheça a história da Engeplus e saiba mais sobre a empresa",openNewTab:!0,hasDivider:!0,link:"https://www.engeplusempresas.com.br/"},{title:"Portal Engeplus",desc:"Anuncie no portal Engeplus\n Agência de notícias Engeplus",openNewTab:!0,hasDivider:!0,link:"https://mkt.engeplusempresas.com.br/anuncie-no-portal-engeplus"},{title:"Trabalhe conosco",desc:"Confira as vagas de trabalho desponível na Engeplus\n Clique aqui e inscreva-se",openNewTab:!0,hasDivider:!0,link:"https://br.linkedin.com/company/engeplusempresas"},{title:"Contato",desc:"SAC Criciúma:(48) 3431-4700\n SAC Tubarão:(44) 3631-4700\n [email protected]",openNewTab:!1,hasDivider:!0,link:"/fale-conosco"},{title:"Ouvidoria",desc:"Clique aqui e envie suas sugestões, elogios e criticas",hasDivider:!0,openNewTab:!1,link:"/fale-conosco"}
32,{title:"Contratos",desc:"Serviço de conexão à internet",openNewTab:!0,hasDivider:!1,link:"https://www.engeplusempresas.com.br/contratos"}];return(e,n)=>(Xa(),is("footer",rS,[cs("div",iS,[cs("div",aS,[(Xa(),is(Wa,null,Ti(t,(e,t)=>ds(Lb,{key:t,item:e},null,8,["item"])),64))])]),cs("div",sS,[ds(nS)])]))}}),[["__scopeId","data-v-8dd98c04"]]),lS="https://engeplus.com.br/build/assets/Logotipo_engeplus-f0547659.png",uS={class:"sticky top-0 z-50 w-full backdrop-blur bg-white"},cS=Ob({},[["render",function(e,t){return Xa(),is("nav",uS,[...t[0]||(t[0]=[Bs('<div class="bg-[#0075bf] menu-top__container" data-v-7a96eaa8><div class="container-geral" data-v-7a96eaa8><div class="header" style="border-bottom:1.5px solid #1970b5;" data-v-7a96eaa8><div class="logo__container" data-v-7a96eaa8><a href="/public" class="outline-0" data-v-7a96eaa8><span class="sr-only" data-v-7a96eaa8>Engeplus</span><img src="'+lS+'" alt="logotipo do navbar" data-v-7a96eaa8></a></div></div></div></div>',1)])])}],["__scopeId","data-v-7a96eaa8"]]),dS={id:"app"},hS={class:"container"},pS=Ob({layout:Ir({__name:"ExceptionLayout",setup:e=>(e,t)=>(Xa(),is("div",dS,[ds(cS),cs("div",null,[Ai(e.$slots,"default")]),ds(oS,{class:"z-30"})]))})},[["render",function(e,t,n,r,i,a){return Xa(),is("div",hS,[...t[0]||(t[0]=[Bs('<div class="imagem__container" data-v-e7c8d891><img class="imagem-404" src="'+ql+'" data-v-e7c8d891></div><div class="conteudo__container" data-v-e7c8d891><h1 class="titulo" data-v-e7c8d891>Tivemos um Problema!</h1><div class="mensagem__container mb-[34px]" data-v-e7c8d891><p class="mensagem-solicitacao" data-v-e7c8d891> Ocorreu um erro inesperado, tente novamente mais tarde </p></div><div data-v-e7c8d891><a href="/" class="botao-voltar rounded-full" data-v-e7c8d891>Voltar a página inicial</a></div></div>',2)])])}],["__scopeId","data-v-e7c8d891"]]),fS=Object.freeze(Object.defineProperty({__proto__:null,default:pS},Symbol.toStringTag,{value:"Module"}));function BS(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z","clip-rule":"evenodd"})])}function mS(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M12.78 7.595a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06l2.72-2.72-2.72-2.72a.75.75 0 0 1 1.06-1.06l3.25 3.25Zm-8.25-3.25 3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06l2.72-2.72-2.72-2.72a.75.75 0 0 1 1.06-1.06Z","clip-rule":"evenodd"})])}function gS(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}const vS={key:0,class:"text-black dark:text-gray-200 mr-1"},yS={class:"lista__container shadow shadow-slate-500 w-auto"},CS={class:"py-2 text-sm text-gray-700 dark:text-gray-200 max-h-[20rem] overflow-y-auto"},_S={key:0},bS=["onClick"],wS=Ir({__name:"PopoverButton",props:{items:{},className:{},aditionalLabel:{default:""},placeholder:{default:"selecione..."},selectedValue:{default:""},clearOptionLabel:{default:"Limpar seleção"},showClearOption:{type:Boolean,default:!0}},emits:["on-select","on-clear"],setup(e,{emit:t}){var n,r;const i=e,a=t;let s=tn(i.selectedValue?null==(n=i.items.find(e=>e.value==i.selectedValue))?void 0:n.value:null),o=tn(i.selectedValue?null==(r=i.items.find(e=>e.value==i.selectedValue))?void 0:r.label:null),l=tn(!1);const u=e=>{l.value=e},c=()=>{o.value=null,s.value=null,u(!1),a("on-clear")};return(t,n)=>(Xa(),is("div",{class:"flex flex-col min-w-[5rem] h-full",onMouseenter:n[0]||(n[0]=e=>u(!0)),onMouseleave:n[1]||(n[1]=e=>u(!1))}
32,[cs("button",{class:le(e.className?e.className+" flex items-center after:h-[2rem] after:bg-transparent":"dropdown__button after:h-[2rem] after:bg-transparent focus:ring-4 focus:outline-none focus:ring-blue-300 ")},[e.aditionalLabel?(Xa(),is("p",vS,we(e.aditionalLabel?e.aditionalLabel:""),1)):ms("",!0),cs("p",null,we(an(o)?an(o):e.placeholder),1),ds(an(gS),{class:"h-6 w-6 text-[#c6c6c6]"})],2),Jn(cs("div",yS,[cs("ul",CS,[e.showClearOption?(Xa(),is("li",_S,[cs("p",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700",onClick:c},we(e.clearOptionLabel),1)])):ms("",!0),(Xa(!0),is(Wa,null,Ti(e.items,e=>(Xa(),is("li",{key:e.value},[cs("p",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700",onClick:t=>(e=>{s.value=e.value,o.value=e.label,u(!1),a("on-select",e)})(e)},we(e.label),9,bS)]))),128))])],512),[[ko,an(l)]])],32))}}),DS=Ob(wS,[["__scopeId","data-v-89fd4c6c"]]),ES=en(Date.now());let kS,SS=0;function xS(){ES.value=Date.now()}const TS=Ir({__name:"CardDeAgora",props:{date:{}},setup(e){const t=e,n=(pi(()=>{SS+=1,xS(),1===SS&&(kS=setInterval(xS,3e4),document.addEventListener("visibilitychange",xS))}),gi(()=>{SS-=1,0===SS&&(clearInterval(kS),kS=void 0,document.removeEventListener("visibilitychange",xS))}),Gt(ES)),r=en(!1);pi(()=>{r.value=!0});const i=Ys(()=>{const e=Ub(t.date);return e.isValid()?r.value?function(e,t){const n=t.diff(e,"minutes"),r=t.diff(e,"hours"),i=t.diff(e,"days"),a=t.diff(e,"weeks"),s=t.diff(e,"months"),o=t.diff(e,"years");return n<1?"agora":n<60?1==n?`há ${n} minuto`:`há ${n} minutos`:r<24?1==r?`há ${r} hora`:`há ${r} horas`:i<7?1==i?`há ${i} dia`:`há ${i} dias`:a<=4&&s<1?1==a?`há ${a} semana`:`há ${a} semanas`:s<12&&s>=1?1==s?`há ${s} mês`:`há ${s} meses`:1==o?`há ${o} ano`:`há ${o} anos`}(e,Ub(n.value)):e.format("DD/MM/YYYY HH:mm"):""});return(e,t)=>(Xa(),is("span",null,we(i.value),1))}}),OS={class:"cartola"},AS=Ob(Ir({__name:"Categoria",props:{name:{},color:{}},setup:e=>(t,n)=>(Xa(),is("p",OS,[cs("span",{class:"inline-flex items-center px-[11px] pb-[1px] h-full rounded-[5px]",style:re({backgroundColor:e.color})},we(e.name),5)]))}),[["__scopeId","data-v-cca8c00e"]]),IS=new class{formatSmallSizeImage(e){return e.replace(/(\.webp)(\?.*)?$/,"-sm$1$2")}formatMediumSizeImage(e){return e.replace(/(\.webp)(\?.*)?$/,"-md$1$2")}getImageFallback(e,t){const n=e.target;n.dataset.fallback||(n.dataset.fallback="true",n.src="https://portal-arquivos.engeplus.com.br/"+t.pasta+t.imagem)}},PS={class:"flex flex-1 flex-col justify-between py-2 px-2 -z-10 static bg-gradient-to-t from-black to-transparent"},NS={class:"flex-1 ml-[12px] mt-[10px]"},RS={class:"mt-2 ml-[12px] mr-[10px] flex flex-col items-start"},MS={class:"mt-2 block"},FS={class:"noticia__titulo"},LS={key:0,class:"flex space-x-1 noticia_relacionada__titulo hover:text-blue-500"},jS=["href"],HS={class:"noticia-relacionada__texto"},US={key:1,class:"flex space-x-1 noticia_hora_entrada"},GS=Ob(Ir({__name:"NoticiaComImagem",props:{data:{}},setup(e){const t=e,n=IS.formatSmallSizeImage(t.data.imagem),r="https://portal-arquivos.engeplus.com.br/"+t.data.pasta+n;return(t,n)=>(Xa(),is(Wa,null,[n[0]||(ns(-1,!0),(n[0]=cs("img",{loading:"lazy",class:"h-full w-full object-cover absolute -z-20",src:r,alt:e.data.imagem_alt||e.data.titulo},null,8,["alt"])).cacheIndex=0,ns(1),n[0]),cs("div",PS,[cs("div",NS,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",RS,[cs("div",MS,[cs("p",FS,we(e.data.titulo),1)]),e.data.ultima_noticia_relacionada?(Xa(),is("div",LS,[cs("a",{href:e.data.ultima_noticia_relacionada.noticia_url},[cs("p",HS,[cs("span",{class:"float-left p-0",style:re(`color: ${e.data.categoria.cor}`)},[ds(an(mS),{class:"w-5 h-5 mr-1"}),n[1]||(n[1]=fs(" >",-1))],4),fs(" "+we(e.data.ultima_noticia_relacionada.titulo),1)])],8,jS)])):e.data.hora_entrada?(Xa(),is("div",US,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])])):ms("",!0)])])],64))}}),[["__scopeId","data-v-5e1d2098"]]),YS={class:"h-full w-full bg-neutral-200 dark:bg-gray-800"},VS={class:"flex flex-col justify-between py-2 px-2 static"},qS={class:"flex-1 ml-[12px] mt-[10px]"},$S={class:"mt-2 ml-[12px] mr-[3px] flex flex-col items-start"},WS={class:"mt-2 block"},zS={class:"noticia__titulo dark:text-white"},JS={key:0,class:"flex space-x-1 noticia_relacionada__titulo hover:text-blue-500"},KS=["href","target"],QS={class:"noticia-relacionada__texto"},ZS={key:1,class:"noticia-chamada-interna dark:text-gray-300"},XS={key:2,class:"flex space-x-1 absolute left-6 bottom-1 noticia_hora_entrada"},ex=Ob(Ir({__name:"NoticiaSemImagem",props:{data:{},showChamadaInterna:{type:Boolean,default:!1}},setup:e=>(t,n)=>(Xa(),is("div",YS,[cs("div",VS,[cs("div",qS,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",$S,[cs("div",WS,[cs("p",zS,we(e.data.titulo),1)]),e.data.ultima_noticia_relacionada&&e.data.titulo.length<=80?(Xa(),is("div",JS,[cs("a",{href:e.data.ultima_noticia_relacionada.url,target:e.data.ultima_noticia_relacionada.noticia_externa?"_blank":"_self",class:"flex"},[cs("p",QS,[cs("span",{class:"float-left p-0",style:re(`color: ${e.data.categoria.cor}`)},[ds(an(mS),{class:"w-5 h-5 mr-1"}),n[0]||(n[0]=fs(" >",-1))],4),fs(" "+we(e.data.ultima_noticia_relacionada.titulo),1)])],8,KS)])
32):e.showChamadaInterna?(Xa(),is("p",ZS,we(e.data.chamada_interna),1)):ms("",!0),e.data.hora_entrada&&!e.data.ultima_noticia_relacionada?(Xa(),is("div",XS,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])])):ms("",!0)])])]))}),[["__scopeId","data-v-c813faca"]]),tx=["href","target"],nx=Ob(Ir({__name:"CardNoticia",props:{data:{},showChamadaInterna:{type:Boolean,default:!1}},setup:e=>(t,n)=>(Xa(),is("a",{href:e.data.noticia_url,target:e.data.noticia_externa?"_blank":"_self",class:"noticia hover:scale-105 transition duration-300 ease-out hover:ease-in bg-white dark:bg-gray-900"},[e.data.imagem?(Xa(),as(GS,{key:0,data:e.data},null,8,["data"])):ms("",!0),e.data.imagem?ms("",!0):(Xa(),as(ex,{key:1,data:e.data,"show-chamada-interna":e.showChamadaInterna},null,8,["data","show-chamada-interna"]))],8,tx))}),[["__scopeId","data-v-eaf8abfa"]]);function rx(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function ix(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function ax(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z","clip-rule":"evenodd"})])}const sx=Ir({__name:"CustomPagination",props:{total:{},currentPage:{},perPage:{},maxPagesShown:{}},setup(e){const t=e,n=Ys(()=>t.currentPage);return(t,r)=>{const i=wi("vue-awesome-paginate");return Xa(),as(i,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),"total-items":e.total,"items-per-page":e.perPage,"max-pages-shown":e.maxPagesShown,"show-breakpoint-buttons":!1},null,8,["modelValue","total-items","items-per-page","max-pages-shown"])}}}),ox="https://engeplus.com.br/build/assets/seta-64d48ac3.svg";function lx(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ux,cx={exports:{}};(ux=cx).exports=function(){var e,t;function n(){return e.apply(null,arguments)}function r(t){e=t}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return rr(e,t,n,r,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidOffset:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function B(e){return null==e._pf&&(e._pf=f()),e._pf}function m(e){var n=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(n=B(e),r=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidOffset&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&r),e._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var t=p(NaN);return null!=e?h(B(t),e):B(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=n.momentProperties=[],y=!1;function C(e,t){var n,r,i,a=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=B(t)),l(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;
vendor: 4,476 bytes, line 32
32n++)l(i=t[r=v[n]])||(e[r]=i);return e}function _(e){C(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function b(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function w(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function D(e,t){var r=!0;return h(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),r){var i,a,o,l=[],u=arguments.length;for(a=0;a<u;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)},t)}var E={};function k(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),E[e]||(w(t+"\n"+(new Error).stack),E[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var x={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function T(e){return"string"==typeof e?x[e]||x[e.toLowerCase()]:void 0}function O(e){var t,n,r={};for(n in e)s(e,n)&&(t=T(n))&&(r[t]=e[n]);return r}var A={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function I(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:A[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function P(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},F={};function L(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(N);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=j(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=S(r[i])?r[i].call(t,e):r[i];return a}}function U(e,t){if(!e.isValid())return e.localeData().invalidDate();var n="$"+(t=G(t,e.localeData()));return s(M,n)||(M[n]=H(t)),M[n](e)}function G(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,r),R.lastIndex=0,n-=1;return e}var Y,V=/\d/,q=/\d\d/,$=/\d{3}/,W=/\d{4}/,z=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,X=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[+-]?\d+(\.\d{1,3})?/,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,le=/^([1-9]\d|\d)/;function ue(e,t,n){Y[e]=S(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return s(Y,e)?Y[e](t._strict,t._locale):new RegExp(de(e))}function de(e){return he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function fe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=pe(t)),n}Y={};var Be={};function me(e,t){var n,r,i=t;
vendor: 7,299 bytes, line 32
32for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=fe(e)}),r=e.length,n=0;n<r;n++)Be[e[n]]=i}function ge(e,t){me(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ve(e,t,n){null!=t&&s(Be,e)&&Be[e](t,n._a,n,e)}function ye(e){return e%4==0&&e%100!=0||e%400==0}var Ce=0,_e=1,be=2,we=3,De=4,Ee=5,ke=6,Se=7,xe=8;function Te(e){return ye(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),ue("Y",ne),ue("YY",J,q),ue("YYYY",X,W),ue("YYYYY",ee,z),ue("YYYYYY",ee,z),me(["YYYYY","YYYYYY"],Ce),me("YYYY",function(e,t){t[Ce]=2===e.length?n.parseTwoDigitYear(e):fe(e)}),me("YY",function(e,t){t[Ce]=n.parseTwoDigitYear(e)}),me("Y",function(e,t){t[Ce]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return fe(e)+(fe(e)>68?1900:2e3)};var Oe,Ae=Pe("FullYear",!0);function Ie(){return ye(this.year())}function Pe(e,t){return function(r){return null!=r?(Re(this,e,r),n.updateOffset(this,t),this):Ne(this,e)}}function Ne(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Re(e,t,n){var r,i,a,s,o;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=29!==(o=e.date())||1!==s||ye(a)?o:28,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function Me(e){return S(this[e=T(e)])?this[e]():this}function Fe(e,t){if("object"==typeof e){var n,r=I(e=O(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=T(e)]))return this[e](t);return this}function Le(e,t){return(e%t+t)%t}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Le(t,12);return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ue("M",J,oe),ue("MM",J,q),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),me(["M","MM"],function(e,t){t[_e]=fe(e)-1}),me(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[_e]=i:B(n).invalidMonth=e});var He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ue="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ge=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ye=se,Ve=se,qe=["monthsParse","longMonthsParse","shortMonthsParse","monthsRegex","monthsShortRegex","monthsStrictRegex","monthsShortStrictRegex"];function $e(e,t){var n,r;for(n=0;n<qe.length;n++)s(t,r=qe[n])||delete e["_"+r]}function We(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ge).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ze(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ge.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Je(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,s))?i:null:-1!==(i=Oe.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,s))||-1!==(i=Oe.call(this._longMonthsParse,s))?i:null:-1!==(i=Oe.call(this._longMonthsParse,s))||-1!==(i=Oe.call(this._shortMonthsParse,s))?i:null}function Ke(e,t,n){var r,i,a;if(this._monthsParseExact)return Je.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Qe(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=fe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,je(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Ze(e){return null!=e?(Qe(this,e),n.updateOffset(this,!0),this):Ne(this,"Month")}function Xe(){return je(this.year(),this.month())}function et(e){return this._monthsParseExact?(s(this,"_monthsRegex")||nt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function tt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||nt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function nt(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],s=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r=he(this.monthsShort(n,"")),i=he(this.months(n,"")),a.push(r),s.push(i),o.push(i),o.push(r);a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function it(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function at(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),L("eHHmm",0,0,function(){return""+this.weekday()+P(this.hours(),2)+P(this.minutes(),2)}
vendor: 7,977 bytes, line 32
32),ue("d",J),ue("e",J),ue("E",J),ue("eHHmm",Q),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:B(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,r){t[r]=fe(e)}),ge("eHHmm",function(e,t,n){var r=e.length-4;t.e=fe(e.substr(0,r)),n._a[we]=fe(e.substr(r,2)),n._a[De]=fe(e.substr(r+2))});var st,ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ct=se,dt=se,ht=se,pt=["weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","minWeekdaysParse","weekdaysRegex","weekdaysShortRegex","weekdaysMinRegex","weekdaysStrictRegex","weekdaysShortStrictRegex","weekdaysMinStrictRegex"];function ft(e,t){var n,r;for(n=0;n<pt.length;n++)s(t,r=pt[n])||delete e["_"+r]}function Bt(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?at(n,this._week.dow):e?n[e.day()]:n}function mt(e){return!0===e?at(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function gt(e){return!0===e?at(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function vt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,s))||-1!==(i=Oe.call(this._shortWeekdaysParse,s))||-1!==(i=Oe.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,s))||-1!==(i=Oe.call(this._weekdaysParse,s))||-1!==(i=Oe.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,s))||-1!==(i=Oe.call(this._weekdaysParse,s))||-1!==(i=Oe.call(this._shortWeekdaysParse,s))?i:null}function yt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ct(e){if(!this.isValid())return null!=e?this:NaN;var t=Ne(this,"Day");return null!=e?(e=rt(e,this.localeData()),this.add(e-t,"d")):t}function _t(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function bt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=it(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function wt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=ct),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Dt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Et(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function kt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=he(this.weekdaysMin(n,"")),i=he(this.weekdaysShort(n,"")),a=he(this.weekdays(n,"")),s.push(r),o.push(i),l.push(a),u.push(r),u.push(i),u.push(a);s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function St(e){var t,n;for(n in $e(this,e),ft(this,e),e)s(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xt(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function Tt(e){null!=e&&this.set(e)}st=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var Ot={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function At(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r}var It={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Pt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()],r=this._longDateFormatCache;return t||!n?t:r&&r[e]&&r[e].formatUpper===n?r[e].format:(t=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),r||(r=this._longDateFormatCache={}),r[e]={formatUpper:n,format:t},t)}var Nt="Invalid date";function Rt(){return this._invalidDate}var Mt="%d",Ft=/\d{1,2}/;function Lt(e){return this._ordinal.replace("%d",e)}var jt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ht(e,t,n,r){var i=this._relativeTime[n];return S(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Ut(e,t,n,r){return this.postformat(Ht.call(this,e,t,n,r))}function Gt(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function Yt(e,t){return this.postformat(Gt.call(this,e,t))}function Vt(e,t,n,r,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function qt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $t(e,t,n){var r=7+t-n;return-(7+qt(e,0,r).getUTCDay()-t)%7+r-1}function Wt(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+$t(e,r,i);return o<=0?s=Te(a=e-1)+o:o>Te(e)?(a=e+1,s=o-Te(e)):(a=e,s=o),{year:a,dayOfYear:s}}function zt(e,t,n,r){var i,a,s=$t(e,n,r),o=Math.floor((t-s-1)/7)+1;return o<1?i=o+Qt(a=e-1,n,r):o>
vendor: 7,568 bytes, line 32
32Qt(e,n,r)?(i=o-Qt(e,n,r),a=e+1):(a=e,i=o),{week:i,year:a}}function Jt(e,t,n){return zt(e.year(),e.dayOfYear(),t,n)}function Kt(e,t,n,r,i){return zt(e,Math.round((qt(e,t,n)-qt(e,0,1))/864e5)+1,r,i)}function Qt(e,t,n){var r=$t(e,t,n),i=$t(e+1,t,n);return(Te(e)-r+i)/7}function Zt(e){return Jt(e,this._week.dow,this._week.doy).week}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),ue("w",J,oe),ue("ww",J,q),ue("W",J,oe),ue("WW",J,q),ge(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=fe(e)});var Xt={dow:0,doy:6};function en(){return this._week.dow}function tn(){return this._week.doy}function nn(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function rn(e){var t=Jt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function an(){return this.hours()%12||12}function sn(){return this.hours()||24}function on(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ln(e,t){return t._meridiemParse}function un(e){return"p"===(e+"").toLowerCase().charAt(0)}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,an),L("k",["kk",2],0,sn),L("hmm",0,0,function(){return""+an.apply(this)+P(this.minutes(),2)}),L("hmmss",0,0,function(){return""+an.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),on("a",!0),on("A",!1),ue("a",ln),ue("A",ln),ue("H",J,le),ue("h",J,oe),ue("k",J,oe),ue("HH",J,q),ue("hh",J,q),ue("kk",J,q),ue("hmm",K),ue("hmmss",Q),ue("Hmm",K),ue("Hmmss",Q),me(["H","HH"],we),me(["k","kk"],function(e,t,n){var r=fe(e);t[we]=24===r?0:r}),me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(["h","hh"],function(e,t,n){t[we]=fe(e),B(n).bigHour=!0}),me("hmm",function(e,t,n){var r=e.length-2;t[we]=fe(e.substr(0,r)),t[De]=fe(e.substr(r)),B(n).bigHour=!0}),me("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=fe(e.substr(0,r)),t[De]=fe(e.substr(r,2)),t[Ee]=fe(e.substr(i)),B(n).bigHour=!0}),me("Hmm",function(e,t,n){var r=e.length-2;t[we]=fe(e.substr(0,r)),t[De]=fe(e.substr(r))}),me("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=fe(e.substr(0,r)),t[De]=fe(e.substr(r,2)),t[Ee]=fe(e.substr(i))});var cn=/[ap]\.?m?\.?/i,dn=Pe("Hours",!0);function hn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var pn,fn={calendar:Ot,longDateFormat:It,invalidDate:Nt,ordinal:Mt,dayOfMonthOrdinalParse:Ft,relativeTime:jt,months:He,monthsShort:Ue,week:Xt,weekdays:ot,weekdaysMin:ut,weekdaysShort:lt,meridiemParse:cn},Bn={},mn={};function gn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function vn(e){return e?e.toLowerCase().replace("_","-"):e}function yn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=vn(e[a]).split("-")).length,n=(n=vn(e[a+1]))?n.split("-"):null;t>0;){if(r=_n(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&gn(i,n)>=t-1)break;t--}a++}return pn}function Cn(e){return"string"==typeof e&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e)}function _n(e){var t,n=null;if(s(Bn,e))return Bn[e];if(t=vn(e),s(Bn,t))return Bn[t];if(ux&&ux.exports&&Cn(t))try{n=pn._abbr,lx("./locale/"+t),bn(n)}catch(zle){Bn[t]=null}return s(Bn,t)?Bn[t]:void 0}function bn(e,t){var n;return e&&((n=l(t)?En(e):wn(e,t))?pn=n:"undefined"!=typeof console&&console.warn),pn._abbr}function wn(e,t){if(null!==t){var n,r=fn;if(t.abbr=e,null!=Bn[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Bn[e]._config;else if(null!=t.parentLocale)if(null!=Bn[t.parentLocale])r=Bn[t.parentLocale]._config;else{if(null==(n=_n(t.parentLocale)))return mn[t.parentLocale]||(mn[t.parentLocale]=[]),mn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return Bn[e]=new Tt(xt(r,t)),mn[e]&&mn[e].forEach(function(e){wn(e.name,e.config)}),bn(e),Bn[e]}return delete Bn[e],null}function Dn(e,t){var n,r=_n(e),i=fn;return null!=r&&(e=r._abbr),null!=t?(null!=Bn[e]&&null!=Bn[e].parentLocale?Bn[e].set(xt(Bn[e]._config,t)):(null!=r&&(i=r._config),t=xt(i,t),null==r&&(t.abbr=e),(n=new Tt(t)).parentLocale=Bn[e],Bn[e]=n),bn(e)):null!=Bn[e]&&(null!=Bn[e].parentLocale?(Bn[e]=Bn[e].parentLocale,e===bn()&&bn(e)):null!=Bn[e]&&delete Bn[e]),Bn[e]}function En(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return pn;if(!i(e)){if(t=_n(e))return t;e=[e]}return yn(e)}function kn(){return st(Bn)}function Sn(e){var t,n=e._a;return n&&-2===B(e).overflow&&(t=n[_e]<0||n[_e]>11?_e:n[be]<1||n[be]>je(n[Ce],n[_e])?be:n[we]<0||n[we]>24||24===n[we]&&(0!==n[De]||0!==n[Ee]||0!==n[ke])?we:n[De]<0||n[De]>59?De:n[Ee]<0||n[Ee]>59?Ee:n[ke]<0||n[ke]>999?ke:-1,B(e)._overflowDayOfYear&&(t<Ce||t>be)&&(t=be),B(e)._overflowWeeks&&-1===t&&(t=Se),B(e)._overflowWeekday&&-1===t&&(t=xe),B(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,An=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],In=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pn=/^\/?Date\((-?\d+)/i,Nn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Rn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mn(e){var t,n,r,i,a,s,o=e._i,l=xn.exec(o)||Tn.exec(o),u=An.length,c=In.length;if(l){for(B(e).iso=!0,t=0,n=u;t<n;t++)if(An[t][1].exec(l[1])){i=An[t][0],r=!1!==An[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(In[t][1].exec(l[3])){a=(l[2]||" ")+In[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!On.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),Kn(e)}else e._isValid=!1}function Fn(e,t,n,r,i,a){var s=[Ln(e),Ue.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Ln(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function jn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Hn(e,t,n){return!e||lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(B(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Un(e,t,n){if(e)return Rn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Gn(e){var t,n=Nn.exec(jn(e._i));if(n){if(t=Fn(n[4],n[3],n[2],n[5],n[6],n[7]),!Hn(n[1],t,e))return;e._a=t,e._tzm=Un(n[8],n[9],n[10]),e._d=qt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),B(e).rfc2822=!0}else e._isValid=!1}function Yn(e){var t=Pn.exec(e._i);
vendor: 4,243 bytes, line 32
32null===t?(Mn(e),!1===e._isValid&&(delete e._isValid,Gn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Vn(e,t,n){return null!=e?e:null!=t?t:n}function qn(e,t,r){var i=Object.prototype.hasOwnProperty.call(e,"_isDefaultDatePartsForWeek"),a=e._isDefaultDatePartsForWeek;e._isDefaultDatePartsForWeek=!!r;try{return n._getDefaultDateParts(e,t,r)}finally{i?e._isDefaultDatePartsForWeek=a:delete e._isDefaultDatePartsForWeek}}function $n(e){var t=e._defaultDatePartsNow;return t?(t.hasValue||(t.value=n.now(),t.hasValue=!0),t.value):n.now()}function Wn(e,t,n){var r=n||e._isDefaultDatePartsForWeek,i=r?ir(t):new Date(t);return r?[i.year(),i.month(),i.date()]:e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function zn(e){var t,n,r,i,a,s,o,l=[];if(!e._d){for(null!=e._a[Ce]&&null!=e._a[_e]&&null!=e._a[be]||(i=qn(e,r=$n(e))),e._w&&null==e._a[be]&&null==e._a[_e]&&Jn(e,qn(e,r,!0)),null!=e._dayOfYear&&(s=null!=e._a[Ce]?e._a[Ce]:i[Ce],(e._dayOfYear>Te(s)||0===e._dayOfYear)&&(B(e)._overflowDayOfYear=!0),n=qt(s,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),o=null==e._a[Ce]||null==e._a[_e]||null==e._a[be],t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=i[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[De]&&0===e._a[Ee]&&0===e._a[ke]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?qt:Vt).apply(null,l),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&!o&&e._w.d!==a&&(B(e).weekdayMismatch=!0)}}function Jn(e,t){var n,r,i,a,s,o,l,u,c;null!=(n=e._w).GG||null!=n.W||null!=n.E?(s=1,o=4,r=Vn(n.GG,e._a[Ce],Kt(t[Ce],t[_e],t[be],1,4).year),i=Vn(n.W,1),((a=Vn(n.E,1))<1||a>7)&&(u=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,c=Kt(t[Ce],t[_e],t[be],s,o),r=Vn(n.gg,e._a[Ce],c.year),i=Vn(n.w,c.week),null!=n.d?((a=n.d)<0||a>6)&&(u=!0):null!=n.e?(a=n.e+s,(n.e<0||n.e>6)&&(u=!0)):a=s),i<1||i>Qt(r,s,o)?B(e)._overflowWeeks=!0:null!=u?B(e)._overflowWeekday=!0:(l=Wt(r,i,a,s,o),e._a[Ce]=l.year,e._dayOfYear=l.dayOfYear)}function Kn(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],B(e).empty=!0;var t,r,i,a,s,o,l,u=""+e._i,c=u.length,d=0;for(l=(i=G(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)a=i[t],(r=(u.match(ce(a,e))||[])[0])&&((s=u.substr(0,u.indexOf(r))).length>0&&B(e).unusedInput.push(s),u=u.slice(u.indexOf(r)+r.length),d+=r.length),F[a]?(r?B(e).empty=!1:B(e).unusedTokens.push(a),ve(a,r,e)):e._strict&&!r&&B(e).unusedTokens.push(a);B(e).charsLeftOver=c-d,u.length>0&&B(e).unusedInput.push(u),e._a[we]<=12&&!0===B(e).bigHour&&e._a[we]>0&&(B(e).bigHour=void 0),B(e).parsedDateParts=e._a.slice(0),B(e).meridiem=e._meridiem,e._a[we]=Qn(e._locale,e._a[we],e._meridiem),null!==(o=B(e).era)&&(e._a[Ce]=e._locale.erasConvertYear(o,e._a[Ce])),zn(e),Sn(e)}else Gn(e);else Mn(e)}function Qn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Zn(e){var t,n,r,i,a,s,o=!1,l={},u=e._f.length;if(0===u)return B(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)a=0,s=!1,t=C({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._defaultDatePartsNow=l,t._f=e._f[i],Kn(t),m(t)&&(s=!0),a+=B(t).charsLeftOver,a+=10*B(t).unusedTokens.length,B(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));h(e,n||t)}function Xn(e){if(!e._d){var t=O(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zn(e)}}function er(e){var t=new _(Sn(tr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function tr(e){var t=e._i,n=e._f;return e._locale=e._locale||En(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new _(Sn(t)):(c(t)?e._d=t:i(n)?Zn(e):n?Kn(e):nr(e),m(e)||(e._d=null),e))}function nr(e){var t=e._i;l(t)?e._d=new Date(n.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Yn(e):i(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),zn(e)):a(t)?Xn(e):u(t)?e._d=new Date(t):n.createFromInputFallback(e)}
vendor: 6,336 bytes, line 32
32function rr(e,t,n,r,s){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=r,er(l)}function ir(e,t,n,r){return rr(e,t,n,r,!1)}n.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n._getDefaultDateParts=Wn,n.ISO_8601=function(){},n.RFC_2822=function(){};var ar=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ir.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),sr=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ir.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function or(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return ir();for(r=0;r<t.length;++r)if(b(t[r])){n=t[r];break}if(!n)return g();for(++r;r<t.length;++r)!b(t[r])||t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function lr(){return or("isBefore",[].slice.call(arguments,0))}function ur(){return or("isAfter",[].slice.call(arguments,0))}var cr=function(){return Date.now?Date.now():+new Date},dr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hr(e){var t,n,r=!1,i=dr.length;for(t in e)if(s(e,t)&&(-1===Oe.call(dr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[dr[n]]){if(r)return!1;parseFloat(e[dr[n]])!==fe(e[dr[n]])&&(r=!0)}return!0}function pr(){return this._isValid}function fr(){return Fr(NaN)}function Br(e){var t=O(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=hr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=En(),this._bubble()}function mr(e){return e instanceof Br}function gr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function vr(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)fe(e[r])!==fe(t[r])&&s++;return s+a}function yr(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)})}yr("Z",":"),yr("ZZ",""),ue("Z",ie),ue("ZZ",ie),me(["Z","ZZ"],function(e,t,n){var r=_r(ie,e);n._useUTC=!0,n._tzm=r,null===r&&(B(n).invalidOffset=e)});var Cr=/([\+\-]|\d\d)/gi;function _r(e,t){var n,r,i=(t||"").match(e);return null===i?null:(r=60*(n=((i[i.length-1]||[])+"").match(Cr)||["-",0,0])[1]+fe(n[2]),fe(n[2])>59||("+"===n[0]?r>840:r>720)?null:0===r?0:"+"===n[0]?r:-r)}function br(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(b(e)||c(e)?e.valueOf():ir(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):ir(e).local()}function wr(e){return-Math.round(e._d.getTimezoneOffset())}function Dr(e,t,r){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=_r(ie,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=wr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Gr(this,Fr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:wr(this)}function Er(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function kr(e){return this.utcOffset(0,e)}function Sr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(wr(this),"m")),this}function xr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=_r(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Tr(e){return!!this.isValid()&&(e=e?ir(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Or(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ar(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return C(t,this),(t=tr(t))._a?(e=t._isUTC?p(t._a):ir(t._a),this._isDSTShifted=this.isValid()&&vr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ir(){return!!this.isValid()&&!this._isUTC}function Pr(){return!!this.isValid()&&this._isUTC}function Nr(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Rr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fr(e,t){var n,r,i,a=e,o=null;return mr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Rr.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:fe(o[be])*n,h:fe(o[we])*n,m:fe(o[De])*n,s:fe(o[Ee])*n,ms:fe(gr(1e3*o[ke]))*n}):(o=Mr.exec(e))?(n="-"===o[1]?-1:1,a={y:Lr(o[2],n),M:Lr(o[3],n),w:Lr(o[4],n),d:Lr(o[5],n),h:Lr(o[6],n),m:Lr(o[7],n),s:Lr(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Hr(ir(a.from),ir(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new Br(a),mr(e)&&s(e,"_locale")&&(r._locale=e._locale),mr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Lr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Hr(e,t){var n;return e.isValid()&&t.isValid()?(t=br(t,e),e.isBefore(t)?n=jr(e,t):((n=jr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ur(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Gr(this,Fr(n,r),e),this}}
vendor: 19,837 bytes, line 32
32function Gr(e,t,r,i){var a=t._milliseconds,s=gr(t._days),o=gr(t._months);e.isValid()&&(i=null==i||i,o&&Qe(e,Ne(e,"Month")+o*r),s&&Re(e,"Date",Ne(e,"Date")+s*r),a&&e._d.setTime(e._d.valueOf()+a*r),i&&n.updateOffset(e,s||o))}Fr.fn=Br.prototype,Fr.invalid=fr;var Yr=Ur(1,"add"),Vr=Ur(-1,"subtract");function qr(e){return"string"==typeof e||e instanceof String}function $r(e){return b(e)||c(e)||qr(e)||u(e)||zr(e)||Wr(e)||null==e}function Wr(e){var t,n,r=a(e)&&!o(e),i=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)n=l[t],i=i||s(e,n);return r&&i}function zr(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!u(t)&&qr(e)}).length),t&&n}function Jr(e){var t,n,r=a(e)&&!o(e),i=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)n=l[t],i=i||s(e,n);return r&&i}function Kr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qr(e,t){1===arguments.length&&(arguments[0]?$r(arguments[0])?(e=arguments[0],t=void 0):Jr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||ir(),i=br(r,this).startOf("day"),a=n.calendarFormat(this,i)||"sameElse",s=t&&(S(t[a])?t[a].call(this,r):t[a]);return this.format(s||this.localeData().calendar(a,this,ir(r)))}function Zr(){return new _(this)}function Xr(e,t){var n=b(e)?e:ir(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=T(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function ei(e,t){var n=b(e)?e:ir(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=T(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function ti(e,t,n,r){var i=b(e)?e:ir(e),a=b(t)?t:ir(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function ni(e,t){var n,r=b(e)?e:ir(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=T(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function ri(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ii(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ai(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=br(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=T(t)){case"year":a=si(this,r)/12;break;case"month":a=si(this,r);break;case"quarter":a=si(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:pe(a)}function si(e,t){if(e.date()<t.date())return-si(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function oi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function li(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ui(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ci(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)}function di(e,t){return this.isValid()&&(b(e)&&e.isValid()||ir(e).isValid())?Fr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hi(e){return this.from(ir(),e)}function pi(e,t){return this.isValid()&&(b(e)&&e.isValid()||ir(e).isValid())?Fr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fi(e){return this.to(ir(),e)}function Bi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=En(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var mi=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function gi(){return this._locale}var vi=1e3,yi=60*vi,Ci=60*yi,_i=3506328*Ci;function bi(e,t){return(e%t+t)%t}function wi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-_i:new Date(e,t,n).valueOf()}function Di(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-_i:Date.UTC(e,t,n)}function Ei(e){var t,r;if(void 0===(e=T(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Di:wi,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=bi(t+(this._isUTC?0:this.utcOffset()*yi),Ci);break;case"minute":t=this._d.valueOf(),t-=bi(t,yi);break;case"second":t=this._d.valueOf(),t-=bi(t,vi)}return this._d.setTime(t),n.updateOffset(this,!0),this}function ki(e){var t,r;if(void 0===(e=T(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Di:wi,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ci-bi(t+(this._isUTC?0:this.utcOffset()*yi),Ci)-1;break;case"minute":t=this._d.valueOf(),t+=yi-bi(t,yi)-1;break;case"second":t=this._d.valueOf(),t+=vi-bi(t,vi)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function Si(){return this._d.valueOf()-6e4*(this._offset||0)}function xi(){return Math.floor(this.valueOf()/1e3)}function Ti(){return new Date(this.valueOf())}function Oi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ai(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ii(){return this.isValid()?this.toISOString():null}function Pi(){return m(this)}function Ni(){return h({},B(this))}function Ri(){return B(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fi(e,t){var r,i,a,s=this._eras||En("en")._eras;for(r=0,i=s.length;r<i;++r)switch("string"==typeof s[r].since&&(a=n(s[r].since).startOf("day"),s[r].since=a.valueOf()),typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":a=n(s[r].until).startOf("day").valueOf(),s[r].until=a.valueOf()}return s}function Li(e,t,n){var r,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),o=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(o===e)return l[r]}else if([a,s,o].indexOf(e)>=0)return l[r]}function ji(e,t){var r=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ui(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Gi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Yi(){var e,t,r,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-n(a[e].since).year())*r+a[e].offset;return this.year()}function Vi(e){return s(this,"_erasNameRegex")||Qi.call(this),e?this._erasNameRegex:this._erasRegex}function qi(e){return s(this,"_erasAbbrRegex")||Qi.call(this),e?this._erasAbbrRegex:this._erasRegex}function $i(e){return s(this,"_erasNarrowRegex")||Qi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Wi(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function Ji(e,t){return t.erasNarrowRegex(e)}function Ki(e,t){return t._eraYearOrdinalRegex||te}function Qi(){var e,t,n,r,i,a=[],s=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=he(u[e].name),r=he(u[e].abbr),i=he(u[e].narrow),s.push(n),a.push(r),o.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Zi(e,t){L(0,[e,e.length],0,t)}function Xi(e){return aa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ea(e){return aa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ta(){return Qt(this.year(),1,4)}function na(){return Qt(this.isoWeekYear(),1,4)}function ra(){var e=this.localeData()._week;return Qt(this.year(),e.dow,e.doy)}function ia(){var e=this.localeData()._week;return Qt(this.weekYear(),e.dow,e.doy)}function aa(e,t,n,r,i){var a;return null==e?Jt(this,r,i).year:(t>(a=Qt(e,r,i))&&(t=a),sa.call(this,e,t,n,r,i))}function sa(e,t,n,r,i){var a=Wt(e,t,n,r,i),s=qt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function oa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),ue("N",Wi),ue("NN",Wi),ue("NNN",Wi),ue("NNNN",zi),ue("NNNNN",Ji),me(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?B(n).era=i:B(n).invalidEra=e}),ue("y",te),ue("yy",te),ue("yyy",te),ue("yyyy",te),ue("yo",Ki),me(["y","yy","yyy","yyyy"],Ce),me(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ce]=n._locale.eraYearOrdinalParse(e,i):t[Ce]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Zi("gggg","weekYear"),Zi("ggggg","weekYear"),Zi("GGGG","isoWeekYear"),Zi("GGGGG","isoWeekYear"),ue("G",ne),ue("g",ne),ue("GG",J,q),ue("gg",J,q),ue("GGGG",X,W),ue("gggg",X,W),ue("GGGGG",ee,z),ue("ggggg",ee,z),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=fe(e)}),ge(["gg","GG"],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),ue("Q",V),me("Q",function(e,t){t[_e]=3*(fe(e)-1)}),L("D",["DD",2],"Do","date"),ue("D",J,oe),ue("DD",J,q),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],be),me("Do",function(e,t){t[be]=fe(e.match(J)[0])});var la=Pe("Date",!0);function ua(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}L("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",Z),ue("DDDD",$),me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=fe(e)}),L("m",["mm",2],0,"minute"),ue("m",J,le),ue("mm",J,q),me(["m","mm"],De);var ca=Pe("Minutes",!1);L("s",["ss",2],0,"second"),ue("s",J,le),ue("ss",J,q),me(["s","ss"],Ee);var da,ha,pa=Pe("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ue("S",Z,V),ue("SS",Z,q),ue("SSS",Z,$),da="SSSS";da.length<=9;da+="S")ue(da,te);function fa(e,t){t[ke]=fe(1e3*("0."+e))}for(da="S";da.length<=9;da+="S")me(da,fa);function Ba(){return this._isUTC?"UTC":""}function ma(){return this._isUTC?"Coordinated Universal Time":""}ha=Pe("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var ga=_.prototype;function va(e){return ir(1e3*e)}function ya(){return ir.apply(null,arguments).parseZone()}function Ca(e){return e}ga.add=Yr,ga.calendar=Qr,ga.clone=Zr,ga.diff=ai,ga.endOf=ki,ga.format=ci,ga.from=di,ga.fromNow=hi,ga.to=pi,ga.toNow=fi,ga.get=Me,ga.invalidAt=Ri,ga.isAfter=Xr,ga.isBefore=ei,ga.isBetween=ti,ga.isSame=ni,ga.isSameOrAfter=ri,ga.isSameOrBefore=ii,ga.isValid=Pi,ga.lang=mi,ga.locale=Bi,ga.localeData=gi,ga.max=sr,ga.min=ar,ga.parsingFlags=Ni,ga.set=Fe,ga.startOf=Ei,ga.subtract=Vr,ga.toArray=Oi,ga.toObject=Ai,ga.toDate=Ti,ga.toISOString=li,ga.inspect=ui,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ga[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ga.toJSON=Ii,ga.toString=oi,ga.unix=xi,ga.valueOf=Si,ga.creationData=Mi,ga.eraName=Hi,ga.eraNarrow=Ui,ga.eraAbbr=Gi,ga.eraYear=Yi,ga.year=Ae,ga.isLeapYear=Ie,ga.weekYear=Xi,ga.isoWeekYear=ea,ga.quarter=ga.quarters=oa,ga.month=Ze,ga.daysInMonth=Xe,ga.week=ga.weeks=nn,ga.isoWeek=ga.isoWeeks=rn,ga.weeksInYear=ra,ga.weeksInWeekYear=ia,ga.isoWeeksInYear=ta,ga.isoWeeksInISOWeekYear=na,ga.date=la,ga.day=ga.days=Ct,ga.weekday=_t,ga.isoWeekday=bt,ga.dayOfYear=ua,ga.hour=ga.hours=dn,ga.minute=ga.minutes=ca,ga.second=ga.seconds=pa,ga.millisecond=ga.milliseconds=ha,ga.utcOffset=Dr,ga.utc=kr,ga.local=Sr,ga.parseZone=xr,ga.hasAlignedHourOffset=Tr,ga.isDST=Or,ga.isLocal=Ir,ga.isUtcOffset=Pr,ga.isUtc=Nr,ga.isUTC=Nr,ga.zoneAbbr=Ba,ga.zoneName=ma,ga.dates=D("dates accessor is deprecated. Use date instead.",la),ga.months=D("months accessor is deprecated. Use month instead",Ze),ga.years=D("years accessor is deprecated. Use year instead",Ae),ga.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Er),ga.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ar);var _a=Tt.prototype;function ba(e,t,n,r){var i=En(),a=p().set(r,t);return i[n](a,e)}function wa(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ba(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ba(e,r,n,"month");return i}function Da(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=En(),s=e?a._week.dow:0,o=[];if(null!=n)return ba(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=ba(t,(i+s)%7,r,"day");return o}function Ea(e,t){return wa(e,t,"months")}function ka(e,t){return wa(e,t,"monthsShort")}function Sa(e,t,n){return Da(e,t,n,"weekdays")}function xa(e,t,n){return Da(e,t,n,"weekdaysShort")}function Ta(e,t,n){return Da(e,t,n,"weekdaysMin")}_a.calendar=At,_a.longDateFormat=Pt,_a.invalidDate=Rt,_a.ordinal=Lt,_a.preparse=Ca,_a.postformat=Ca,_a.relativeTime=Ut,_a.pastFuture=Yt,_a.set=St,_a.eras=Fi,_a.erasParse=Li,_a.erasConvertYear=ji,_a.erasAbbrRegex=qi,_a.erasNameRegex=Vi,_a.erasNarrowRegex=$i,_a.months=We,_a.monthsShort=ze,_a.monthsParse=Ke,_a.monthsRegex=tt,_a.monthsShortRegex=et,_a.week=Zt,_a.firstDayOfYear=tn,_a.firstDayOfWeek=en,_a.weekdays=Bt,_a.weekdaysMin=gt,_a.weekdaysShort=mt,_a.weekdaysParse=yt,_a.weekdaysRegex=wt,_a.weekdaysShortRegex=Dt,_a.weekdaysMinRegex=Et,_a.isPM=un,_a.meridiem=hn,bn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===fe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",bn),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",En);var Oa=Math.abs;function Aa(){var e=this._data;return this._milliseconds=Oa(this._milliseconds),this._days=Oa(this._days),this._months=Oa(this._months),e.milliseconds=Oa(e.milliseconds),e.seconds=Oa(e.seconds),e.minutes=Oa(e.minutes),e.hours=Oa(e.hours),e.months=Oa(e.months),e.years=Oa(e.years),this}function Ia(e,t,n,r){var i=Fr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Pa(e,t){return Ia(this,e,t,1)}function Na(e,t){return Ia(this,e,t,-1)}function Ra(e){return e<0?Math.floor(e):Math.ceil(e)}function Ma(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ra(La(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=pe(a/1e3),l.seconds=e%60,t=pe(e/60),l.minutes=t%60,n=pe(t/60),l.hours=n%24,s+=pe(n/24),o+=i=pe(Fa(s)),s-=Ra(La(i)),r=pe(o/12),o%=12,l.days=s,l.months=o,l.years=r,this}function Fa(e){return 4800*e/146097}function La(e){return 146097*e/4800}function ja(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=T(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Fa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(La(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ha(e){return function(){return this.as(e)}}var Ua=Ha("ms"),Ga=Ha("s"),Ya=Ha("m"),Va=Ha("h"),qa=Ha("d"),$a=Ha("w"),Wa=Ha("M"),za=Ha("Q"),Ja=Ha("y"),Ka=Ua;function Qa(){return Fr(this)}function Za(e){return e=T(e),this.isValid()?this[e+"s"]():NaN}function Xa(e){return function(){return this.isValid()?this._data[e]:NaN}}var es=Xa("milliseconds"),ts=Xa("seconds"),ns=Xa("minutes"),rs=Xa("hours"),is=Xa("days"),as=Xa("months"),ss=Xa("years");function os(){return pe(this.days()/7)}var ls=Math.round,us={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cs(e,t,n,r,i){return Ht.call(i,t||1,!!n,e,r)}function ds(e,t,n,r){var i=Fr(e).abs(),a=ls(i.as("s")),s=ls(i.as("m")),o=ls(i.as("h")),l=ls(i.as("d")),u=ls(i.as("M")),c=ls(i.as("w")),d=ls(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];
32return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,cs.apply(null,h)}function hs(e){return void 0===e?ls:"function"==typeof e&&(ls=e,!0)}function ps(e,t){return void 0!==us[e]&&(void 0===t?us[e]:(us[e]=t,"s"===e&&(us.ss=t-1),!0))}function fs(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=us;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=h(h({},us),t||{}),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=ds(this,!i,a,n=this.localeData()),i&&(r=Gt.call(n,+this,r)),n.postformat(r)}var Bs=Math.abs;function ms(e){return(e>0)-(e<0)||+e}function gs(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,s,o,l=Bs(this._milliseconds)/1e3,u=Bs(this._days),c=Bs(this._months),d=this.asSeconds();return d?(e=pe(l/60),t=pe(e/60),l%=60,e%=60,n=pe(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=ms(this._months)!==ms(d)?"-":"",s=ms(this._days)!==ms(d)?"-":"",o=ms(this._milliseconds)!==ms(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var vs=Br.prototype;return vs.isValid=pr,vs.abs=Aa,vs.add=Pa,vs.subtract=Na,vs.as=ja,vs.asMilliseconds=Ua,vs.asSeconds=Ga,vs.asMinutes=Ya,vs.asHours=Va,vs.asDays=qa,vs.asWeeks=$a,vs.asMonths=Wa,vs.asQuarters=za,vs.asYears=Ja,vs.valueOf=Ka,vs._bubble=Ma,vs.clone=Qa,vs.get=Za,vs.milliseconds=es,vs.seconds=ts,vs.minutes=ns,vs.hours=rs,vs.days=is,vs.weeks=os,vs.months=as,vs.years=ss,vs.humanize=fs,vs.toISOString=gs,vs.toString=gs,vs.toJSON=gs,vs.locale=Bi,vs.localeData=gi,vs.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gs),vs.lang=mi,L("X",0,0,"unix"),L("x",0,0,"valueOf"),ue("x",ne),ue("X",ae),me("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),me("x",function(e,t,n){n._d=new Date(fe(e))}),
33//! moment.js
34n.version="2.31.0",r(ir),n.fn=ga,n.min=lr,n.max=ur,n.now=cr,n.utc=p,n.unix=va,n.months=Ea,n.isDate=c,n.locale=bn,n.invalid=g,n.duration=Fr,n.isMoment=b,n.weekdays=Sa,n.parseZone=ya,n.localeData=En,n.isDuration=mr,n.monthsShort=ka,n.weekdaysMin=Ta,n.defineLocale=wn,n.updateLocale=Dn,n.locales=kn,n.weekdaysShort=xa,n.normalizeUnits=T,n.relativeTimeRounding=hs,n.relativeTimeThreshold=ps,n.calendarFormat=Kr,n.prototype=ga,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}();var dx=cx.exports;const hx=Gh(dx);dx.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:function(){return"[Hoje "+(this.hours()>=2?"às":"à")+"] LT"},nextDay:function(){return"[Amanhã "+(this.hours()>=2?"às":"à")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()>=2?"às":"à")+"] LT"},lastDay:function(){return"[Ontem "+(this.hours()>=2?"às":"à")+"] LT"},lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd ["+(this.hours()>=2?"às":"à")+"] LT":"[Última] dddd ["+(this.hours()>=2?"às":"à")+"] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});const px={key:0,class:"fixed flex overflow-y-hidden bg-transparent z-[9998] overflow-x-hidden fixed justify-center items-center w-full max-w-full md:inset-0 max-h-full"},fx={class:"bg-white dark:bg-gray-900 rounded-lg shadow"},Bx={key:0,class:"flex items-center justify-between p-2 border-b dark:border-gray-700 rounded-t"},mx={class:"text-xl font-semibold text-gray-900 dark:text-white"},gx={class:"p-2 space-y-4 min-h-[12rem] dark:text-gray-100"},vx={key:1,class:"flex items-center justify-center p-2 border-t border-gray-200 dark:border-gray-700 rounded-b"},yx=Ob(Ir({__name:"Modal",props:{visibility:{type:Boolean},title:{},showCancelButton:{type:Boolean,default:!0},hasFooter:{type:Boolean,default:!0},className:{}},emits:["on-close"],setup(e,{emit:t}){const n=t,r=()=>{n("on-close")};return(t,n)=>(Xa(),is(Wa,null,[Jn(cs("div",{id:"default-modal",tabindex:"-1","aria-hidden":"true",class:"bg-gray-900 opacity-35 overflow-y-hidden overflow-x-hidden fixed z-[9997] max-w-full inset-0 h-full max-h-full",onClick:r},null,512),[[ko,e.visibility]]),e.visibility?(Xa(),is("div",px,[cs("div",{class:le
34(e.className?e.className+"min-w-[40rem] z-[9999] max-h-full mt-[9rem]":"min-w-[40rem] max-h-full mt-[9rem]")},[cs("div",fx,[e.showCancelButton?(Xa(),is("div",Bx,[cs("h3",mx,we(e.title),1),cs("button",{type:"button","data-modal-hide":"default-modal",class:"modal-close__button w-8 h-8 ms-auto",onClick:r},[...n[0]||(n[0]=[cs("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[cs("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1),cs("span",{class:"sr-only"},"Close modal",-1)])])])):ms("",!0),cs("div",gx,[Ai(t.$slots,"content",{},void 0,!0)]),e.hasFooter?(Xa(),is("div",vx,[Ai(t.$slots,"footer",{},void 0,!0)])):ms("",!0)])],2)])):ms("",!0)],64))}}),[["__scopeId","data-v-0f721b23"]]);function Cx(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function _x(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function bx(e,t){const n=Cx(e);return isNaN(t)?_x(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function wx(e,t){const n=Cx(e);if(isNaN(t))return _x(e,NaN);if(!t)return n;const r=n.getDate(),i=_x(e,n.getTime());return i.setMonth(n.getMonth()+t+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function Dx(e,t){const{years:n=0,months:r=0,weeks:i=0,days:a=0,hours:s=0,minutes:o=0,seconds:l=0}=t,u=Cx(e),c=r||n?wx(u,r+12*n):u,d=1e3*(l+60*(o+60*s));return _x(e,(a||i?bx(c,a+7*i):c).getTime()+d)}const Ex=6048e5,kx=36e5;function Sx(e,t){return function(e,t){return _x(e,+Cx(e)+t)}(e,t*kx)}let xx={};function Tx(){return xx}function Ox(e,t){var n,r,i,a;const s=Tx(),o=(null==t?void 0:t.weekStartsOn)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.weekStartsOn)??s.weekStartsOn??(null==(a=null==(i=s.locale)?void 0:i.options)?void 0:a.weekStartsOn)??0,l=Cx(e),u=l.getDay(),c=(u<o?7:0)+u-o;return l.setDate(l.getDate()-c),l.setHours(0,0,0,0),l}function Ax(e){return Ox(e,{weekStartsOn:1})}function Ix(e){const t=Cx(e),n=t.getFullYear(),r=_x(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ax(r),a=_x(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Ax(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Px(e){const t=Cx(e);return t.setHours(0,0,0,0),t}function Nx(e){const t=Cx(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Rx(e,t){const n=Px(e),r=Px(t),i=+n-Nx(n),a=+r-Nx(r);return Math.round((i-a)/864e5)}function Mx(e,t){return wx(e,3*t)}function Fx(e,t){return wx(e,12*t)}function Lx(e,t){const n=Cx(e),r=Cx(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function jx(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Hx(e){if(!jx(e)&&"number"!=typeof e)return!1;const t=Cx(e);return!isNaN(Number(t))}function Ux(e){const t=Cx(e);return Math.trunc(t.getMonth()/3)+1}function Gx(e,t){const n=Cx(e),r=Cx(t),i=Lx(n,r),a=Math.abs(function(e,t){const n=Cx(e),r=Cx(t);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);const s=i*(a-+(Lx(n,r)===-i));return 0===s?0:s}function Yx(e,t){const n=Cx(e.start),r=Cx(e.end);let i=+n>+r;const a=i?+n:+r,s=i?r:n;s.setHours(0,0,0,0);let o=(null==t?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,i=!i);const l=[];for(;+s<=a;)l.push(Cx(s)),s.setDate(s.getDate()+o),s.setHours(0,0,0,0);return i?l.reverse():l}function Vx(e){const t=Cx(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function qx(e){const t=Cx(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function $x(e){const t=Cx(e),n=_x(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Wx(e,t){var n,r,i,a;const s=Tx(),o=(null==t?void 0:t.weekStartsOn)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.weekStartsOn)??s.weekStartsOn??(null==(a=null==(i=s.locale)?void 0:i.options)?void 0:a.weekStartsOn)??0,l=Cx(e),u=l.getDay(),c=6+(u<o?-7:0)-(u-o);return l.setDate(l.getDate()+c),l.setHours(23,59,59,999),l}function zx(e){const t=Cx(e),n=t.getMonth(),r=n-n%3+3;return t.setMonth(r,0),t.setHours(23,59,59,999),t}const Jx={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"}};function Kx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qx={date:Kx({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Kx({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Kx({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Xx(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function eT(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(o,e=>e.test(s)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(o,e=>e.test(s));let u;return u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u,{value:u,rest:t.slice(s.length)}}}var tT;const nT={code:"en-US",formatDistance:(e,t,n)=>{let r;const i=Jx[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),(null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Qx,formatRelative:(e,t,n,r)=>Zx[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),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:Xx({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Xx({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xx({values:{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"]},defaultWidth:"wide"}),day:Xx({values:{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","Frid
34ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:Xx({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(tT={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(tT.matchPattern);if(!n)return null;const r=n[0],i=e.match(tT.parsePattern);if(!i)return null;let a=tT.valueCallback?tT.valueCallback(i[0]):i[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:eT({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:eT({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:eT({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:eT({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:eT({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function rT(e){const t=Cx(e),n=+Ax(t)-+function(e){const t=Ix(e),n=_x(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ax(n)}(t);return Math.round(n/Ex)+1}function iT(e,t){var n,r,i,a;const s=Cx(e),o=s.getFullYear(),l=Tx(),u=(null==t?void 0:t.firstWeekContainsDate)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??(null==(a=null==(i=l.locale)?void 0:i.options)?void 0:a.firstWeekContainsDate)??1,c=_x(e,0);c.setFullYear(o+1,0,u),c.setHours(0,0,0,0);const d=Ox(c,t),h=_x(e,0);h.setFullYear(o,0,u),h.setHours(0,0,0,0);const p=Ox(h,t);return s.getTime()>=d.getTime()?o+1:s.getTime()>=p.getTime()?o:o-1}function aT(e,t){const n=Cx(e),r=+Ox(n,t)-+function(e,t){var n,r,i,a;const s=Tx(),o=(null==t?void 0:t.firstWeekContainsDate)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??(null==(a=null==(i=s.locale)?void 0:i.options)?void 0:a.firstWeekContainsDate)??1,l=iT(e,t),u=_x(e,0);return u.setFullYear(l,0,o),u.setHours(0,0,0,0),Ox(u,t)}(n,t);return Math.round(r/Ex)+1}function sT(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}
vendor: 5,223 bytes, line 34
34const oT={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return sT("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):sT(n+1,2)},d:(e,t)=>sT(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>sT(e.getHours()%12||12,t.length),H:(e,t)=>sT(e.getHours(),t.length),m:(e,t)=>sT(e.getMinutes(),t.length),s:(e,t)=>sT(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return sT(Math.trunc(r*Math.pow(10,n-3)),t.length)}},lT="midnight",uT="noon",cT="morning",dT="afternoon",hT="evening",pT="night",fT={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){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(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return oT.y(e,t)},Y:function(e,t,n,r){const i=iT(e,r),a=i>0?i:1-i;return"YY"===t?sT(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):sT(a,t.length)},R:function(e,t){return sT(Ix(e),t.length)},u:function(e,t){return sT(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return sT(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(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return sT(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(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return oT.M(e,t);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(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return sT(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(e,t,n,r){const i=aT(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):sT(i,t.length)},I:function(e,t,n){const r=rT(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):sT(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):oT.d(e,t)},D:function(e,t,n){const r=function(e){const t=Cx(e);return Rx(t,$x(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):sT(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){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(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return sT(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return sT(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return sT(i,t.length);case"io":return n.ordinalNumber(i,{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(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?uT:0===r?lT:r/12>
34=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?hT:r>=12?dT:r>=4?cT:pT,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return oT.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):oT.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):sT(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):sT(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):oT.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):oT.s(e,t)},S:function(e,t){return oT.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return mT(r);case"XXXX":case"XX":return gT(r);default:return gT(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mT(r);case"xxxx":case"xx":return gT(r);default:return gT(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+BT(r,":");default:return"GMT"+gT(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+BT(r,":");default:return"GMT"+gT(r,":")}},t:function(e,t,n){return sT(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return sT(e.getTime(),t.length)}};function BT(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+sT(a,2)}function mT(e,t){return e%60==0?(e>0?"-":"+")+sT(Math.abs(e)/60,2):gT(e,t)}function gT(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+sT(Math.trunc(r/60),2)+t+sT(r%60,2)}const vT=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},yT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},CT={p:yT,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return vT(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",vT(r,t)).replace("{{time}}",yT(i,t))}},_T=/^D+$/,bT=/^Y+$/,wT=["D","DD","YY","YYYY"];function DT(e){return _T.test(e)}function ET(e){return bT.test(e)}function kT(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(wT.includes(e))throw new RangeError(r)}const ST=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TT=/^'([^]*?)'?$/,OT=/''/g,AT=/[a-zA-Z]/;function IT(e,t,n){var r,i,a,s,o,l,u,c;const d=Tx(),h=(null==n?void 0:n.locale)??d.locale??nT,p=(null==n?void 0:n.firstWeekContainsDate)??(null==(i=null==(r=null==n?void 0:n.locale)?void 0:r.options)?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??(null==(s=null==(a=d.locale)?void 0:a.options)?void 0:s.firstWeekContainsDate)??1,f=(null==n?void 0:n.weekStartsOn)??(null==(l=null==(o=null==n?void 0:n.locale)?void 0:o.options)?void 0:l.weekStartsOn)??d.weekStartsOn??(null==(c=null==(u=d.locale)?void 0:u.options)?void 0:c.weekStartsOn)??0,B=Cx(e);if(!Hx(B))throw new RangeError("Invalid time value");let m=t.match(xT).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,CT[t])(e,h.formatLong):e}).join("").match(ST).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:PT(e)};if(fT[t])return{isToken:!0,value:e};
34if(t.match(AT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});h.localize.preprocessor&&(m=h.localize.preprocessor(B,m));const g={firstWeekContainsDate:p,weekStartsOn:f,locale:h};return m.map(r=>{if(!r.isToken)return r.value;const i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&ET(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&DT(i))&&kT(i,t,String(e)),(0,fT[i[0]])(B,i,h.localize,g)}).join("")}function PT(e){const t=e.match(TT);return t?t[1].replace(OT,"'"):e}function NT(e){return Cx(e).getHours()}function RT(e){return Cx(e).getMinutes()}function MT(e){return Cx(e).getMonth()}function FT(e){return Cx(e).getSeconds()}function LT(e){return Cx(e).getFullYear()}function jT(e,t){const n=Cx(e),r=Cx(t);return n.getTime()>r.getTime()}function HT(e,t){return+Cx(e)<+Cx(t)}function UT(e,t){return+Cx(e)===+Cx(t)}class GT{constructor(){i(this,"subPriority",0)}validate(e,t){return!0}}class YT extends GT{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class VT extends GT{constructor(){super(...arguments),i(this,"priority",10),i(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:_x(e,function(e,t){const n=t instanceof Date?_x(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}let qT=class{run(e,t,n,r){const i=this.parse(e,t,n,r);return i?{setter:new YT(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}};const $T=/^(1[0-2]|0?\d)/,WT=/^(3[0-1]|[0-2]?\d)/,zT=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,JT=/^(5[0-3]|[0-4]?\d)/,KT=/^(2[0-3]|[0-1]?\d)/,QT=/^(2[0-4]|[0-1]?\d)/,ZT=/^(1[0-1]|0?\d)/,XT=/^(1[0-2]|0?\d)/,eO=/^[0-5]?\d/,tO=/^[0-5]?\d/,nO=/^\d/,rO=/^\d{1,2}/,iO=/^\d{1,3}/,aO=/^\d{1,4}/,sO=/^-?\d+/,oO=/^-?\d/,lO=/^-?\d{1,2}/,uO=/^-?\d{1,3}/,cO=/^-?\d{1,4}/,dO=/^([+-])(\d{2})(\d{2})?|Z/,hO=/^([+-])(\d{2})(\d{2})|Z/,pO=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,fO=/^([+-])(\d{2}):(\d{2})|Z/,BO=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function mO(e,t){return e?{value:t(e.value),rest:e.rest}:e}function gO(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function vO(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*kx+6e4*a+1e3*s),rest:t.slice(n[0].length)}}function yO(e){return gO(sO,e)}function CO(e,t){switch(e){case 1:return gO(nO,t);case 2:return gO(rO,t);case 3:return gO(iO,t);case 4:return gO(aO,t);default:return gO(new RegExp("^\\d{1,"+e+"}"),t)}}function _O(e,t){switch(e){case 1:return gO(oO,t);case 2:return gO(lO,t);case 3:return gO(uO,t);case 4:return gO(cO,t);default:return gO(new RegExp("^-?\\d{1,"+e+"}"),t)}}function bO(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function wO(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i}function DO(e){return e%400==0||e%4==0&&e%100!=0}const EO=[31,28,31,30,31,30,31,31,30,31,30,31],kO=[31,29,31,30,31,30,31,31,30,31,30,31];function SO(e,t,n){var r,i,a,s;const o=Tx(),l=(null==n?void 0:n.weekStartsOn)??(null==(i=null==(r=null==n?void 0:n.locale)?void 0:r.options)?void 0:i.weekStartsOn)??o.weekStartsOn??(null==(s=null==(a=o.locale)?void 0:a.options)?void 0:s.weekStartsOn)??0,u=Cx(e),c=u.getDay(),d=7-l;return bx(u,t<0||t>6?t-(c+d)%7:((t%7+7)%7+d)%7-(c+d)%7)}function xO(e,t){const n=Cx(e),r=function(e){let t=Cx(e).getDay();return 0===t&&(t=7),t}(n);return bx(n,t-r)}const TO={G:new class extends qT{constructor(){super(...arguments),i(this,"priority",140),i(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}},y:new class extends qT{constructor(){super(...arguments),i(this,"priority",130),i(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return mO(CO(4,e),r);case"yo":return mO(n.ordinalNumber(e,{unit:"year"}),r);default:return mO(CO(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=wO(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends qT{constructor(){super(...arguments),i(this,"priority",130),i(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return mO(CO(4,e),r);case"Yo":return mO(n.ordinalNumber(e,{unit:"year"}),r);default:return mO(CO(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const i=iT(e,r);if(n.isTwoDigitYear){const t=wO(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Ox(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Ox(e,r)}},R:new class extends qT{constructor(){super(...arguments),i(this,"priority",130),i(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return _O("R"===t?4:t.length,e)}set(e,t,n){const r=_x(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ax(r)}},u:new class extends qT{constructor(){super(...arguments),i(this,"priority",130),i(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return _O("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}},Q:new class extends qT{constructor(){super(...arguments),i(this,"priority",120),i(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return CO(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}},q:new class extends qT{constructor(){super(...arguments),i(this,"priority",120),i(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return CO(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}},M:new class extends qT{constructor(){super(...arguments),i(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),i(this,"priority",110)}parse(e,t,n){const r=e=>e-1;switch(t){case"M":return mO(gO($T,e),r);case"MM":return mO(CO(2,e),r);case"Mo":return mO(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends qT{constructor(){super(...arguments),i(this,"priority",110),i(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const r=e=>e-1;switch(t){case"L":return mO(gO($T,e),r);case"LL":return mO(CO(2,e),r);case"Lo":return mO(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},w:new class extends qT{constructor(){super(...arguments),i(this,"priority",100),i(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return gO(JT,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return CO(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Ox(function(e,t,n){const r=Cx(e),i=aT(r,n)-t;return r.setDate(r.getDate()-7*i),r}(e,n,r),r)}},I:new class extends qT{constructor(){super(...arguments),i(this,"priority",100),i(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return gO(JT,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return CO(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Ax(function(e,t){const n=Cx(e),r=rT(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}},d:new class extends qT{constructor(){super(...arguments),i(this,"priority",90),i(this,"subPriority",1),i(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return gO(WT,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return CO(t.length,e)}}validate(e,t){const n=DO(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=kO[r]:t>=1&&t<=EO[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}},D:new class extends qT{constructor(){super(...arguments),i(this,"priority",90),i(this,"subpriority",1),i(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return gO(zT,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return CO(t.length,e)}}validate(e,t){return DO(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}},E:new class extends qT{constructor(){super(...arguments),i(this,"priority",90),i(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=SO(e,n,r)).setHours(0,0,0,0),e}},e:new class extends qT{constructor(){super(...arguments),i(this,"priority",90),i(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return mO(CO(t.length,e),i);case"eo":return mO(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=SO(e,n,r)).setHours(0,0,0,0),e}},c:new class extends qT{constructor(){super(...arguments),i(this,"priority",90),i(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return mO(CO(t.length,e),i);case"co":return mO(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=SO(e,n,r)).setHours(0,0,0,0),e}},i:new class extends qT{constructor(){super(...arguments),i(this,"priority",90),i(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return CO(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return mO(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return mO(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return mO(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return mO(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=xO(e,n)).setHours(0,0,0,0),e}},a:new class extends qT{constructor(){super(...arguments),i(this,"priority",80),i(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(bO(n),0,0,0),e}},b:new class extends qT{constructor(){super(...arguments),i(this,"priority",80),i(this,"incompatibleTokens",["a","B","H","k","t","T"])}
34parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(bO(n),0,0,0),e}},B:new class extends qT{constructor(){super(...arguments),i(this,"priority",80),i(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(bO(n),0,0,0),e}},h:new class extends qT{constructor(){super(...arguments),i(this,"priority",70),i(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return gO(XT,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return CO(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}},H:new class extends qT{constructor(){super(...arguments),i(this,"priority",70),i(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return gO(KT,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return CO(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}},K:new class extends qT{constructor(){super(...arguments),i(this,"priority",70),i(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return gO(ZT,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return CO(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}},k:new class extends qT{constructor(){super(...arguments),i(this,"priority",70),i(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return gO(QT,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return CO(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}},m:new class extends qT{constructor(){super(...arguments),i(this,"priority",60),i(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return gO(eO,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return CO(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}},s:new class extends qT{constructor(){super(...arguments),i(this,"priority",50),i(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return gO(tO,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return CO(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}},S:new class extends qT{constructor(){super(...arguments),i(this,"priority",30),i(this,"incompatibleTokens",["t","T"])}parse(e,t){return mO(CO(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,n){return e.setMilliseconds(n),e}},X:new class extends qT{constructor(){super(...arguments),i(this,"priority",10),i(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return vO(dO,e);case"XX":return vO(hO,e);case"XXXX":return vO(pO,e);case"XXXXX":return vO(BO,e);default:return vO(fO,e)}}set(e,t,n){return t.timestampIsSet?e:_x(e,e.getTime()-Nx(e)-n)}},x:new class extends qT{constructor(){super(...arguments),i(this,"priority",10),i(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return vO(dO,e);case"xx":return vO(hO,e);case"xxxx":return vO(pO,e);case"xxxxx":return vO(BO,e);default:return vO(fO,e)}}set(e,t,n){return t.timestampIsSet?e:_x(e,e.getTime()-Nx(e)-n)}},t:new class extends qT{constructor(){super(...arguments),i(this,"priority",40),i(this,"incompatibleTokens","*")}parse(e){return yO(e)}set(e,t,n){return[_x(e,1e3*n),{timestampIsSet:!0}]}},T:new class extends qT{constructor(){super(...arguments),i(this,"priority",20),i(this,"incompatibleTokens","*")}parse(e){return yO(e)}set(e,t,n){return[_x(e,n),{timestampIsSet:!0}]}}},OO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IO=/^'([^]*?)'?$/,PO=/''/g,NO=/\S/,RO=/[a-zA-Z]/;function MO(e,t,n,r){var i,a,s,o,l,u,c,d;const h=Object.assign({},Tx()),p=(null==r?void 0:r.locale)??h.locale??nT,f=(null==r?void 0:r.firstWeekContainsDate)??(null==(a=null==(i=null==r?void 0:r.locale)?void 0:i.options)?void 0:a.firstWeekContainsDate)??h.firstWeekContainsDate??(null==(o=null==(s=h.locale)?void 0:s.options)?void 0:o.firstWeekContainsDate)??1,B=(null==r?void 0:r.weekStartsOn)??(null==(u=null==(l=null==r?void 0:r.locale)?void 0:l.options)?void 0:u.weekStartsOn)??h.weekStartsOn??(null==(d=null==(c=h.locale)?void 0:c.options)?void 0:d.weekStartsOn)??0;if(""===t)return""===e?Cx(n):_x(n,NaN);const m={firstWeekContainsDate:f,weekStartsOn:B,locale:p},g=[new VT],v=t.match(AO).map(e=>{const t=e[0];return t in CT?(0,CT[t])(e,p.formatLong):e}).join("").match(OO),y=[];for(let w of v){!(null==r?void 0:r.useAdditionalWeekYearTokens)&&ET(w)&&kT(w,t,e),!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&DT(w)&&kT(w,t,e);const i=w[0],a=TO[i];if(a){const{incompatibleTokens:t}=a;if(Array.isArray(t)){const e=y.find(e=>t.includes(e.token)||e.token===i);
34if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${w}\` at the same time`)}else if("*"===a.incompatibleTokens&&y.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);y.push({token:i,fullToken:w});const r=a.run(e,w,p.match,m);if(!r)return _x(n,NaN);g.push(r.setter),e=r.rest}else{if(i.match(RO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===w?w="'":"'"===i&&(w=FO(w)),0!==e.indexOf(w))return _x(n,NaN);e=e.slice(w.length)}}if(e.length>0&&NO.test(e))return _x(n,NaN);const C=g.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>g.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let _=Cx(n);if(isNaN(_.getTime()))return _x(n,NaN);const b={};for(const w of C){if(!w.validate(_,m))return _x(n,NaN);const e=w.set(_,b,m);Array.isArray(e)?(_=e[0],Object.assign(b,e[1])):_=e}return _x(n,_)}function FO(e){return e.match(IO)[1].replace(PO,"'")}function LO(e,t){return+Vx(e)===+Vx(t)}function jO(e,t){const n=Cx(e),r=n.getFullYear(),i=n.getDate(),a=_x(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const s=function(e){const t=Cx(e),n=t.getFullYear(),r=t.getMonth(),i=_x(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(t,Math.min(i,s)),n}function HO(e,t){let n=Cx(e);return isNaN(+n)?_x(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=jO(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function UO(e,t){const n=Cx(e);return n.setMilliseconds(t),n}function GO(e,t){const n=Cx(e);return n.setSeconds(t),n}function YO(e,t){const n=Cx(e);return isNaN(+n)?_x(e,NaN):(n.setFullYear(t),n)}function VO(e,t){return wx(e,-t)}function qO(e,t){const{years:n=0,months:r=0,weeks:i=0,days:a=0,hours:s=0,minutes:o=0,seconds:l=0}=t,u=function(e,t){return bx(e,-t)}(VO(e,r+12*n),a+7*i),c=1e3*(l+60*(o+60*s));return _x(e,u.getTime()-c)}function $O(e,t){return Fx(e,-t)}function WO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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"}),cs("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"}),cs("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"}),cs("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 zO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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"}),cs("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 JO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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 KO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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 QO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
34currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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"}),cs("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 ZO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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 XO(){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[cs("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"})])}WO.compatConfig={MODE:3},zO.compatConfig={MODE:3},JO.compatConfig={MODE:3},KO.compatConfig={MODE:3},QO.compatConfig={MODE:3},ZO.compatConfig={MODE:3},XO.compatConfig={MODE:3};const eA=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),tA=(e,t,n)=>nA(e,t,n)||OA(),nA=(e,t,n)=>{if(!e)return null;const r=n?AA(OA(e),!0):OA(e);return t?t.exactMatch?((e,t,n)=>{const r=t.dateInTz?eA(new Date(e),t.dateInTz):OA(e);return n?AA(r,!0):r})(e,t,n):eA(r,t.timezone):r};var rA=(e=>(e.month="month",e.year="year",e))(rA||{}),iA=(e=>(e.top="top",e.bottom="bottom",e))(iA||{}),aA=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(aA||{}),sA=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(sA||{});const oA=["timestamp","date","iso"];var lA=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(lA||{}),uA=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(uA||{});function cA(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}const dA=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let i;if(null!==e)try{i=r.map(function(e){return t=>IT(eA(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}(e))}catch{i=r.map(cA(t))}else i=r.map(cA(t));const a=i.slice(0,n),s=i.slice(n+1,i.length);return[i[n]].concat(...s).concat(...a)},hA=(e,t,n)=>{const r=[];for(let i=+e[0];i<=+e[1];i++)r.push({value:+i,text:DA(i,t)});return n?r.reverse():r},pA=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>new Date(`2017-${e<10?`0${e}`:e}-01T00:00:00+00:00`));if(null!==e)try{const t="long"===n?"LLLL":"LLL";return r.map((n,r)=>{const i=IT(eA(n,"UTC"),t,{locale:e});return{text:i.charAt(0).toUpperCase()+i.substring(1),value:r}})}catch{}const i=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((e,t)=>{const n=i.format(e);return{text:n.charAt(0).toUpperCase()+n.substring(1),value:t}})},fA=e=>{const t=an(e);return null!=t&&t.$el?null==t?void 0:t.$el:t},BA=e=>!!Array.isArray(e)&&!!e[0]&&!!e[1],mA=e=>`"${e}" prop must be enabled!`,gA=e=>`You need to use array as "model-value" binding in order to support "${e}"`,vA=e=>0===e?e:!e||isNaN(+e)?null:+e,yA=e=>null===e,CA=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},_A=(e,t,n)=>{const r=null!=n,i=null!=t;if(!r&&!i)return!1;const a=+n,s=+t;return r&&i?+e>a||+e<s:r?+e>a:!!i&&+e<s},bA=(e,t)=>(e=>{const t=[],n=e=>e.filter(e=>e);for(let r=0;r<e.length;r+=3){const i=[e[r],e[r+1],e[r+2]];t.push(n(i))}return t})(e).map(e=>e.map(e=>{const{active:n,disabled:r,isBetween:i,highlighted:a}=t(e);return{...e,active:n,disabled:r,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&n,dp__cell_in_between:i,"dp--highlighted":a}}})),wA=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},DA=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),EA=e=>IT(e,"dd-MM-yyyy"),kA=e=>Array.isArray(e),SA=(e,t)=>t.get(EA(e)),xA=(e,t,n=!1)=>
34{if(e.key===uA.enter||e.key===uA.space)return n&&e.preventDefault(),t()},TA=(e,t,n,r,i,a)=>{const s=MO(e,t.slice(0,e.length),new Date,{locale:a});return Hx(s)&&jx(s)?r||i?s:HO(s,{hours:+n.hours,minutes:+(null==n?void 0:n.minutes),seconds:+(null==n?void 0:n.seconds),milliseconds:0}):null},OA=e=>e?new Date(e):new Date,AA=(e,t)=>{const n=HO(OA(JSON.parse(JSON.stringify(e))),{hours:0,minutes:0,seconds:0,milliseconds:0});return t?function(e){const t=Cx(e);return t.setDate(1),t.setHours(0,0,0,0),t}(n):n},IA=(e,t,n,r)=>{let i=e?OA(e):OA();return(t||0===t)&&(i=function(e,t){const n=Cx(e);return n.setHours(t),n}(i,+t)),(n||0===n)&&(i=function(e,t){const n=Cx(e);return n.setMinutes(t),n}(i,+n)),(r||0===r)&&(i=GO(i,+r)),UO(i,0)},PA=(e,t)=>!(!e||!t)&&HT(AA(e),AA(t)),NA=(e,t)=>!(!e||!t)&&UT(AA(e),AA(t)),RA=(e,t)=>!(!e||!t)&&jT(AA(e),AA(t)),MA=(e,t,n)=>null!=e&&e[0]&&null!=e&&e[1]?RA(n,e[0])&&PA(n,e[1]):!(null==e||!e[0]||!t)&&(RA(n,e[0])&&PA(n,t)||PA(n,e[0])&&RA(n,t)),FA=e=>{const t=HO(new Date(e),{date:1});return AA(t)},LA=(e,t,n)=>t&&(n||0===n)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},jA=e=>({hours:NT(e),minutes:RT(e),seconds:FT(e)}),HA=(e,t)=>{if(t){const n=LT(OA(t));if(n>e)return 12;if(n===e)return MT(OA(t))}},UA=(e,t)=>{if(t){const n=LT(OA(t));return n<e?-1:n===e?MT(OA(t)):void 0}},GA=e=>{if(e)return LT(OA(e))},YA=(e,t)=>
34Yx({start:RA(e,t)?t:e,end:RA(t,e)?t:e}),VA=e=>{const t=wx(e,1);return{month:MT(t),year:LT(t)}},qA=(e,t)=>[Ox(e,{weekStartsOn:+t}),Wx(e,{weekStartsOn:+t})],$A=(e,t)=>{const n={hours:NT(OA()),minutes:RT(OA()),seconds:t?FT(OA()):0};return Object.assign(n,e)},WA=(e,t,n)=>[HO(OA(e),{date:1}),HO(OA(),{month:t,year:n,date:1})],zA=(e,t,n)=>{let r=e?OA(e):OA();return(t||0===t)&&(r=jO(r,t)),n&&(r=YO(r,n)),r},JA=(e,t,n,r,i)=>{if(!r||i&&!t||!i&&!n)return!1;const a=i?wx(e,1):VO(e,1),s=[MT(a),LT(a)];return i?!QA(...s,t):!KA(...s,n)},KA=(e,t,n)=>PA(...WA(n,e,t))||NA(...WA(n,e,t)),QA=(e,t,n)=>RA(...WA(n,e,t))||NA(...WA(n,e,t)),ZA=(e,t,n,r,i,a,s)=>{if("function"==typeof t&&!s)return t(e);const o=n?{locale:n}:void 0;return Array.isArray(e)?`${IT(e[0],a,o)}${i&&!e[1]?"":r}${e[1]?IT(e[1],a,o):""}`:IT(e,a,o)},XA=e=>{if(e)return null;throw new Error(mA("partial-range"))},eI=(e,t)=>{if(t)return e();throw new Error(mA("range"))},tI=e=>Array.isArray(e)?Hx(e[0])&&(!e[1]||Hx(e[1])):!!e&&Hx(e),nI=(e,t,n,r)=>{if(!e)return!0;if(r){const r={seconds:0,milliseconds:0};return("max"===n?HT(e,t):jT(e,t))||UT(HO(e,r),HO(t,r))}return"max"===n?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},rI=(e,t,n)=>e?((e,t)=>HO(t??OA(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}))(e,t):OA(n??t),iI=(e,t,n,r,i)=>{if(Array.isArray(r)){const a=rI(e,r[0],t),s=rI(e,r[1],t);return nI(r[0],a,n,!!t)&&nI(r[1],s,n,!!t)&&i}const a=rI(e,r,t);return nI(r,a,n,!!t)&&i},aI=e=>HO(OA(),jA(e)),sI=(e,t,n)=>"function"==typeof e?e({month:t,year:n}):!!e.months.find(e=>e.month===t&&e.year===n),oI=(e,t)=>"function"==typeof e?e(t):e.years.includes(t),lI=e=>IT(e,"yyyy-MM-dd"),uI=Ht({menuFocused:!1,shiftKeyInMenu:!1}),cI=()=>({control:Ys(()=>({shiftKeyInMenu:uI.shiftKeyInMenu,menuFocused:uI.menuFocused})),setMenuFocused:e=>{uI.menuFocused=e},setShiftKey:e=>{uI.shiftKeyInMenu!==e&&(uI.shiftKeyInMenu=e)}}),dI=Ht({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),hI=en(null),pI=en(!1),fI=en(!1),BI=en(!1),mI=en(!1),gI=en(0),vI=en(0),yI=()=>{const e=Ys(()=>pI.value?[...dI.selectionGrid,dI.actionRow].filter(e=>e.length):fI.value?[...dI.timePicker[0],...dI.timePicker[1],mI.value?[]:[hI.value],dI.actionRow].filter(e=>e.length):BI.value?[...dI.monthPicker,dI.actionRow]:[dI.monthYear,...dI.calendar,dI.time,dI.actionRow].filter(e=>e.length)),t=t=>{gI.value=t?gI.value+1:gI.value-1;let n=null;e.value[vI.value]&&(n=e.value[vI.value][gI.value]),!n&&e.value[vI.value+(t?1:-1)]?(vI.value=vI.value+(t?1:-1),gI.value=t?0:e.value[vI.value].length-1):n||(gI.value=t?gI.value-1:gI.value+1)},n=t=>{0===vI.value&&!t||vI.value===e.value.length&&t||(vI.value=t?vI.value+1:vI.value-1,e.value[vI.value]?e.value[vI.value]&&!e.value[vI.value][gI.value]&&0!==gI.value&&(gI.value=e.value[vI.value].length-1):vI.value=t?vI.value-1:vI.value+1)},r=t=>{let n=null;e.value[vI.value]&&(n=e.value[vI.value][gI.value]),n?n.focus({preventScroll:!pI.value}):gI.value=t?gI.value-1:gI.value+1},i=()=>{gI.value=0,vI.value=0};return{buildMatrix:(e,t)=>{dI[t]=e},buildMultiLevelMatrix:(e,t)=>{dI[t]=e},setTimePickerBackRef:e=>{hI.value=e},setSelectionGrid:e=>{pI.value=e,i(),e||(dI.selectionGrid=[])},setTimePicker:(e,t=!1)=>{fI.value=e,mI.value=t,i(),e||(dI.timePicker[0]=[],dI.timePicker[1]=[])},setTimePickerElements:(e,t=0)=>{dI.timePicker[t]=e},arrowRight:()=>{t(!0),r(!0)},arrowLeft:()=>{t(!1),r(!1)},arrowUp:()=>{n(!1),r(!0)},arrowDown:()=>{n(!0),r(!0)},clearArrowNav:()=>{dI.monthYear=[],dI.calendar=[],dI.time=[],dI.actionRow=[],dI.selectionGrid=[],dI.timePicker[0]=[],dI.timePicker[1]=[],pI.value=!1,fI.value=!1,mI.value=!1,BI.value=!1,i(),hI.value=null},setMonthPicker:e=>{BI.value=e,i()},refSets:dI}},CI=e=>({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",...e??{}}),_I=e=>e?"boolean"==typeof e?e?2:0:+e>=2?+e:2:0,bI=(e,t,n)=>new Map(e.map(e=>{const r=tA(e,t,n);return[EA(r),r]})),wI=(e,t)=>e.length?new Map(e.map(e=>{const n=tA(e.date,t);return[EA(n),e]})):null,DI=e=>{const t=()=>{const t=e.enableSeconds?":ss":"",n=e.enableMinutes?":mm":"";return e.is24?`HH${n}${t}`:`hh${n}${t} aa`},n=()=>{var n;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?("iso"===(null==(n=m.value)?void 0:n.type)?"RR":"ww")+"-yyyy":e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},r=t=>$A(t,e.enableSeconds),i=()=>C.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,a=Ys(()=>(e=>{const t="object"==typeof e&&e,n={static:!0,solo:!1};if(!e)return{...n,count:_I(!1)};const r=t?e:{},i=t?r.count??!0:e,a=_I(i);return Object.assign(n,r,{count:a})})(e.multiCalendars)),s=Ys(()=>i()),o=Ys(()=>(e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} 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,...e??{}}))(e.ariaLabels)),l=Ys(()=>(e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}))(e.filters)),u=Ys(()=>(e=>"boolean"==typeof e?!!e&&CI({}):CI(e))(e.transitions)),c=Ys(()=>(e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}))(e.actionRow)),d=Ys(()=>((e,t,n)=>e||("string"==typeof n?n:t))(e.previewFormat,e.format,n())),h=Ys(()=>(e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return"object"==typeof e?{...t,...e??{},enabled:!0}:{...t,enabled:e}})(e.textInput)),p=Ys(()=>(e=>{const t={input:!1};return"object"==typeof e?{...t,...e??{},enabled:!0}:{enabled:e,...t}})(e.inline)),f=Ys(()=>(e=>({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,...e??{}}))(e.config)),B=Ys(()=>(e=>{const t={dates:Array.isArray(e)?e.map(e=>OA(e)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return"function"==typeof e?e:{...t,...e??{}}})(e.highlight)),m=Ys(()=>(e=>"object"==typeof e?{type:(null==e?void 0:e.type)??"local",hideOnOffsetDates:(null==e?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1})(e.weekNumbers)),g=Ys(()=>((e,t)=>e?"string"==typeof e?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t})(e.timezone,e.emitTimezone)),v=Ys(()=>((e,t)=>"boolean"==typeof e?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0})(e.multiDates,e.multiDatesLimit)),y=Ys(()=>(e=>{var t;return{minDate:nA(e.minDate,e.timezone,e.isSpecific),maxDate:nA(e.maxDate,e.timezone,e.isSpecific),disabledDates:kA(e.disabledDates)?bI(e.disabledDates,e.t
34imezone,e.isSpecific):e.disabledDates,allowedDates:kA(e.allowedDates)?bI(e.allowedDates,e.timezone,e.isSpecific):null,highlight:"object"==typeof e.highlight&&kA(null==(t=e.highlight)?void 0:t.dates)?bI(e.highlight.dates,e.timezone):e.highlight,markers:wI(e.markers,e.timezone)}})({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:B.value,markers:e.markers,timezone:g.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),C=Ys(()=>((e,t)=>"object"==typeof e?{enabled:!0,noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1,...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd})(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd})),_=Ys(()=>(e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,r=e[n];return[t,"string"==typeof e[n]?{[r]:!0}:Object.fromEntries(r.map(e=>[e,!0]))]}))}))(e.ui));return{defaultedTransitions:u,defaultedMultiCalendars:a,defaultedStartTime:s,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:c,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:p,defaultedConfig:f,defaultedHighlight:B,defaultedWeekNumbers:m,defaultedRange:C,propDates:y,defaultedTz:g,defaultedMultiDates:v,defaultedUI:_,getDefaultPattern:n,getDefaultStartTime:i}},EI=(e,t,n)=>{const r=en(),{defaultedTextInput:i,defaultedRange:a,defaultedTz:s,defaultedMultiDates:o,getDefaultPattern:l}=DI(t),u=en(""),c=fn(t,"format"),d=fn(t,"formatLocale");rr(r,()=>{"function"==typeof t.onInternalModelChange&&e("internal-model-change",r.value,x(!0))},{deep:!0}),rr(a,(e,t)=>{e.enabled!==t.enabled&&(r.value=null)}),rr(c,()=>{b()});const h=e=>s.value.timezone&&s.value.convertModel?eA(e,s.value.timezone):e,p=e=>{if(s.value.timezone&&s.value.convertModel){const t=(e=>{if(!e)return 0;const t=new Date,n=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(t.toLocaleString("en-US",{timeZone:e})),i=r.getTimezoneOffset()/60;return(+n-+r)/36e5-i})(s.value.timezone);return Sx(e,t)}return e},f=(e,n,r=!1)=>ZA(e,t.format,t.formatLocale,i.value.rangeSeparator,t.modelAuto,n??l(),r),B=e=>e?t.modelType?D(e):{hours:NT(e),minutes:RT(e),seconds:t.enableSeconds?FT(e):0}:null,m=e=>t.modelType?D(e):{month:MT(e),year:LT(e)},g=(e,n)=>"string"!=typeof e&&"number"!=typeof e||!t.modelType?n:w(e),v=()=>{const e=r.value;return[D(e[0]),e[1]?D(e[1]):XA(a.value.partialRange)]},y=(e=!1)=>(e||Array.isArray(r.value)&&a.value.enabled&&1===r.value.length&&r.value.push(XA(a.value.partialRange)),t.modelAuto?r.value[1]?v():D(r.value[0]):o.value.enabled?(r.value||[]).map(e=>D(e)):Array.isArray(r.value)?eI(()=>v(),a.value.enabled):D(r.value)),C=e=>!e||Array.isArray(e)&&!e.length?null:t.timePicker?(e=>Array.isArray(e)?[g(e[0],IA(null,+e[0].hours,+e[0].minutes,e[0].seconds)),g(e[1],IA(null,+e[1].hours,+e[1].minutes,e[1].seconds))]:g(e,IA(null,e.hours,e.minutes,e.seconds)))(e):t.monthPicker?(e=>{const t=HO(OA(),{date:1});return Array.isArray(e)?o.value.enabled?e.map(e=>g(e,zA(t,+e.month,+e.year))):eI(()=>[g(e[0],zA(t,+e[0].month,+e[0].year)),g(e[1],e[1]?zA(t,+e[1].month,+e[1].year):XA(a.value.partialRange))],a.value.enabled):g(e,zA(t,+e.month,+e.year))})(e):t.yearPicker?(e=>Array.isArray(e)?o.value.enabled?e.map(e=>g(e,YO(OA(),e))):eI(()=>[YO(OA(),e[0]),e[1]?YO(OA(),e[1]):XA(a.value.partialRange)],a.value.enabled):YO(OA(),+e))(e):o.value.enabled?(e=>{if(Array.isArray(e))return e.map(e=>w(e));throw new Error(gA("multi-dates"))})(e):t.weekPicker?(e=>{if(Array.isArray(e)&&a.value.enabled){const t=e[0],n=e[1];return[OA(Array.isArray(t)?t[0]:null),OA(Array.isArray(n)?n[0]:null)]}return OA(e[0])})(e):(e=>t.modelAuto?Array.isArray(e)?[w(e[0]),w(e[1])]:t.autoApply?[w(e)]:[w(e),null]:Array.isArray(e)?eI(()=>e[1]?[w(e[0]),e[1]?w(e[1]):XA(a.value.partialRange)]:[w(e[0])],a.value.enabled):w(e))(e),_=()=>n.value&&r.value?Array.isArray(r.value)?(()=>{const e=e=>IT(e,i.value.format);return`${e(r.value[0])} ${i.value.rangeSeparator} ${r.value[1]?e(r.value[1]):""}`})():IT(r.value,i.value.format):f(r.value),b=()=>{!t.format||"string"==typeof t.format||i.value.enabled&&"string"==typeof i.value.format?u.value=r.value?o.value.enabled?r.value.map(e=>f(e)).join("; "):i.value.enabled&&"string"==typeof i.value.format?_():f(r.value):"":u.value=t.format(r.value)},w=e=>{if(t.utc){const n=new Date(e);return"preserve"===t.utc?new Date(n.getTime()+6e4*n.getTimezoneOffset()):n}return t.modelType?oA.includes(t.modelType)?h(new Date(e)):"format"!==t.modelType||"string"!=typeof t.format&&t.format?h(MO(e,t.modelType,new Date,{locale:d.value})):h(MO(e,l(),new Date,{locale:d.value})):h(new Date(e))},D=e=>
34e?t.utc?((e,t,n)=>{if(t){const t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0"),s=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${t}-${r}T${i}:${a}:${s}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()})(e,"preserve"===t.utc,t.enableSeconds):t.modelType?"timestamp"===t.modelType?+p(e):"iso"===t.modelType?p(e).toISOString():"format"!==t.modelType||"string"!=typeof t.format&&t.format?f(p(e),t.modelType,!0):f(p(e)):p(e):"",E=(t,n=!1,r=!1)=>{if(r)return t;if(e("update:model-value",t),s.value.emitTimezone&&n){const n=Array.isArray(t)?t.map(e=>eA(e,s.value.emitTimezone)):eA(t,s.value.emitTimezone);e("update:model-timezone-value",n)}},k=()=>{if(Array.isArray(r.value)){const e=qA(r.value[0],t.weekStart),n=r.value[1]?qA(r.value[1],t.weekStart):[];return[e.map(e=>OA(e)),n.map(e=>OA(e))]}return qA(r.value,t.weekStart).map(e=>OA(e))},S=(e,t)=>E((e=>Array.isArray(r.value)?o.value.enabled?r.value.map(t=>e(t)):[e(r.value[0]),r.value[1]?e(r.value[1]):XA(a.value.partialRange)]:e(r.value))(e),!1,t),x=(n=!1)=>(n||b(),t.monthPicker?S(m,n):t.timePicker?S(B,n):t.yearPicker?S(LT,n):t.weekPicker?(t=>{const n=k();return t?n:e("update:model-value",k())})(n):E(y(n),!0,n));return{inputValue:u,internalModelValue:r,checkBeforeEmit:()=>!!r.value&&(a.value.enabled?a.value.partialRange?r.value.length>=1:2===r.value.length:!!r.value),parseExternalModelValue:e=>{const t=C(e);tI(t)?(r.value=t,b()):(r.value=null,u.value="")},formatInputValue:b,emitModelValue:x}},kI={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null}
34,monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},SI={...kI,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},xI=["title"],TI=["disabled"],OI=Ir({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...SI},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,r=e,{defaultedActionRow:i,defaultedPreviewFormat:a,defaultedMultiCalendars:s,defaultedTextInput:o,defaultedInline:l,defaultedRange:u,defaultedMultiDates:c,getDefaultPattern:d}=DI(r),{isTimeValid:h,isMonthValid:p}=rN(r),{buildMatrix:f}=yI(),B=en(null),m=en(null),g=en(!1),v=en({}),y=en(null),C=en(null);pi(()=>{r.arrowNavigation&&f([fA(B),fA(m)],"actionRow"),_(),window.addEventListener("resize",_)}),gi(()=>{window.removeEventListener("resize",_)});const _=()=>{g.value=!1,setTimeout(()=>{var e,t;const n=null==(e=y.value)?void 0:e.getBoundingClientRect(),r=null==(t=C.value)?void 0:t.getBoundingClientRect();n&&r&&(v.value.maxWidth=r.width-n.width-20+"px"),g.value=!0},0)},b=Ys(()=>!(u.value.enabled&&!u.value.partialRange&&r.internalModelValue)||2===r.internalModelValue.length),w=Ys(()=>!h.value(r.internalModelValue)||!p.value(r.internalModelValue)||!b.value),D=e=>ZA(e,a.value,r.formatLocale,o.value.rangeSeparator,r.modelAuto,d()),E=Ys(()=>r.internalModelValue&&r.menuMount?"string"==typeof a.value?Array.isArray(r.internalModelValue)?2===r.internalModelValue.length&&r.internalModelValue[1]?(()=>{const e=r.internalModelValue;return s.value.count>0?`${D(e[0])} - ${D(e[1])}`:[D(e[0]),D(e[1])]})():c.value.enabled?r.internalModelValue.map(e=>`${D(e)}`):r.modelAuto?`${D(r.internalModelValue[0])}`:`${D(r.internalModelValue[0])} -`:D(r.internalModelValue):(()=>{const e=a.value;return r.timePicker||r.monthPicker,e(r.internalModelValue)})():""),k=Ys(()=>Array.isArray(E.value)?E.value.join(c.value.enabled?"; ":" - "):E.value),S=()=>{h.value(r.internalModelValue)&&p.value(r.internalModelValue)&&b.value?n("select-date"):n("invalid-select")};return(e,t)=>(Xa(),is("div",{ref_key:"actionRowRef",ref:C,class:"dp__action_row"}
34,[e.$slots["action-row"]?Ai(e.$slots,"action-row",ue(Cs({key:0},{internalModelValue:e.internalModelValue,disabled:w.value,selectDate:()=>e.$emit("select-date"),closePicker:()=>e.$emit("close-picker")}))):(Xa(),is(Wa,{key:1},[an(i).showPreview?(Xa(),is("div",{key:0,class:"dp__selection_preview",title:k.value,style:re(v.value)},[e.$slots["action-preview"]&&g.value?Ai(e.$slots,"action-preview",{key:0,value:e.internalModelValue}):ms("",!0),!e.$slots["action-preview"]&&g.value?(Xa(),is(Wa,{key:1},[fs(we(k.value),1)],64)):ms("",!0)],12,xI)):ms("",!0),cs("div",{ref_key:"actionBtnContainer",ref:y,class:"dp__action_buttons","data-dp-element":"action-row"},[e.$slots["action-buttons"]?Ai(e.$slots,"action-buttons",{key:0,value:e.internalModelValue}):ms("",!0),e.$slots["action-buttons"]?ms("",!0):(Xa(),is(Wa,{key:1},[!an(l).enabled&&an(i).showCancel?(Xa(),is("button",{key:0,ref_key:"cancelButtonRef",ref:B,type:"button",class:"dp__action_button dp__action_cancel",onClick:t[0]||(t[0]=t=>e.$emit("close-picker")),onKeydown:t[1]||(t[1]=t=>an(xA)(t,()=>e.$emit("close-picker")))},we(e.cancelText),545)):ms("",!0),an(i).showNow?(Xa(),is("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:t[2]||(t[2]=t=>e.$emit("select-now")),onKeydown:t[3]||(t[3]=t=>an(xA)(t,()=>e.$emit("select-now")))},we(e.nowButtonLabel),33)):ms("",!0),an(i).showSelect?(Xa(),is("button",{key:2,ref_key:"selectButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_select",disabled:w.value,"data-test":"select-button",onKeydown:t[4]||(t[4]=e=>an(xA)(e,()=>S())),onClick:S},we(e.selectText),41,TI)):ms("",!0)],64))],512)],64))],512))}}),AI={class:"dp__selection_grid_header"},II=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],PI=["aria-label"],NI=Ir({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:i,setMonthPicker:a}=yI(),s=n,o=e,{defaultedAriaLabels:l,defaultedTextInput:u,defaultedConfig:c}=DI(o),{hideNavigationButtons:d}=iN(),h=en(!1),p=en(null),f=en(null),B=en([]),m=en(),g=en(null),v=en(0),y=en(null);fi(()=>{p.value=null}),pi(()=>{Rn().then(()=>S()),o.noOverlayFocus||_(),C(!0)}),gi(()=>C(!1));const C=e=>{var t;o.arrowNavigation&&(null!=(t=o.headerRefs)&&t.length?a(e):r(e))},_=()=>{var e;const t=fA(f);t&&(u.value.enabled||(p.value?null==(e=p.value)||e.focus({preventScroll:!0}):t.focus({preventScroll:!0})),h.value=t.clientHeight<t.scrollHeight)},b=Ys(()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),w=Ys(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),D=Ys(()=>({dp__overlay_col:!0})),E=Ys(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:o.isLast})),k=Ys(()=>{var e,t;return{dp__overlay_container:!0,dp__container_flex:(null==(e=o.items)?void 0:e.length)<=6,dp__container_block:(null==(t=o.items)?void 0:t.length)>6}});rr(()=>o.items,()=>S(!1),{deep:!0});const S=(e=!0)=>{Rn().then(()=>{const t=fA(p),n=fA(f),r=fA(g),i=fA(y),a=r?r.getBoundingClientRect().height:0;n&&(n.getBoundingClientRect().height?v.value=n.getBoundingClientRect().height-a:v.value=c.value.modeHeight-a),t&&i&&e&&(i.scrollTop=t.offsetTop-i.offsetTop-(v.value/2-t.getBoundingClientRect().height)-a)})},x=e=>{e.disabled||s("selected",e.value)},T=()=>{s("toggle"),s("reset-flow")},O=()=>{var e,t;const n=null!=(e=o.headerRefs)&&e.length?[o.headerRefs].concat(B.value):B.value.concat([o.skipButtonRef?[]:[g.value]]);i(n,null!=(t=o.headerRefs)&&t.length?"monthPicker":"selectionGrid")},A=e=>{o.arrowNavigation||wA(e,c.value,!0)},I=e=>{switch(e.key){case uA.esc:return void(o.escClose&&T());case uA.arrowLeft:case uA.arrowRight:case uA.arrowUp:case uA.arrowDown:return A(e);default:return}},P=e=>e.key===uA.enter?T():e.key===uA.tab?(()=>{if(T(),!o.isLast){const e=((e,t)=>null==e?void 0:e.querySelector(`[data-dp-element="${t}"]`))(o.menuWrapRef??null,"action-row");if(e){const t=CA(e);null==t||t.focus()}}})():void 0;return t({focusGrid:_}),(e,t)=>{var n;
34return Xa(),is("div",{ref_key:"gridWrapRef",ref:f,class:le(b.value),style:re(w.value),role:"dialog",tabindex:"0",onKeydown:I,onClick:t[0]||(t[0]=Ol(()=>{},["prevent"]))},[cs("div",{ref_key:"containerRef",ref:y,class:le(k.value),role:"grid",style:re({"--dp-overlay-height":`${v.value}px`})},[cs("div",AI,[Ai(e.$slots,"header")]),e.$slots.overlay?Ai(e.$slots,"overlay",{key:0}):(Xa(!0),is(Wa,{key:1},Ti(e.items,(t,n)=>(Xa(),is("div",{key:n,class:le(["dp__overlay_row",{dp__flex_row:e.items.length>=3}]),role:"row"},[(Xa(!0),is(Wa,null,Ti(t,(t,r)=>(Xa(),is("div",{key:t.value,ref_for:!0,ref:e=>((e,t,n,r)=>{e&&((t.active||t.value===o.focusValue)&&(p.value=e),o.arrowNavigation&&(Array.isArray(B.value[n])?B.value[n][r]=e:B.value[n]=[e],O()))})(e,t,n,r),role:"gridcell",class:le(D.value),"aria-selected":t.active||void 0,"aria-disabled":t.disabled||void 0,tabindex:"0","data-test":t.text,onClick:Ol(e=>x(t),["prevent"]),onKeydown:e=>an(xA)(e,()=>x(t),!0),onMouseover:e=>(e=>{m.value=e,s("hover-value",e)})(t.value)},[cs("div",{class:le(t.className)},[e.$slots.item?Ai(e.$slots,"item",{key:0,item:t}):ms("",!0),e.$slots.item?ms("",!0):(Xa(),is(Wa,{key:1},[fs(we(t.text),1)],64))],2)],42,II))),128))],2))),128))],6),e.$slots["button-icon"]?Jn((Xa(),is("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":null==(n=an(l))?void 0:n.toggleOverlay,class:le(E.value),tabindex:"0",onClick:T,onKeydown:P},[Ai(e.$slots,"button-icon")],42,PI)),[[ko,!an(d)(e.hideNavigation,e.type)]]):ms("",!0)],38)}}}),RI=Ir({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,n=Ys(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),r=Ys(()=>({dp__instance_calendar:t.multiCalendars>0}));return(e,t)=>(Xa(),is("div",{class:le({dp__menu_inner:!e.stretch,"dp--menu--inner-stretched":e.stretch,dp__flex_display:e.multiCalendars>0,"dp--flex-display-collapsed":e.collapse})},[(Xa(!0),is(Wa,null,Ti(n.value,(t,n)=>(Xa(),is("div",{key:t,class:le(r.value)},[Ai(e.$slots,"default",{instance:t,index:n})],2))),128))],2))}}),MI=["aria-label","aria-disabled"],FI=Ir({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,r=en(null);return pi(()=>n("set-ref",r)),(e,t)=>(Xa(),is("button",{ref_key:"elRef",ref:r,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled||void 0,onClick:t[0]||(t[0]=t=>e.$emit("activate")),onKeydown:t[1]||(t[1]=t=>an(xA)(t,()=>e.$emit("activate"),!0))},[cs("span",{class:le(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[Ai(e.$slots,"default")],2)],40,MI))}}),LI={class:"dp--year-mode-picker"},jI=["aria-label","data-test"],HI=Ir({__name:"YearModePicker",props:{...SI,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,r=e,{showRightIcon:i,showLeftIcon:a}=iN(),{defaultedConfig:s,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:u,defaultedUI:c}=DI(r),{showTransition:d,transitionName:h}=eN(u),p=(e=!1,t)=>{n("toggle-year-picker",{flow:e,show:t})},f=(e=!1)=>{n("handle-year",e)};return(t,r)=>{var u,B,m,g,v;return Xa(),is("div",LI,[an(a)(an(o),e.instance)?(Xa(),as(FI,{key:0,ref:"mpPrevIconRef","aria-label":null==(u=an(l))?void 0:u.prevYear,disabled:e.isDisabled(!1),class:le(null==(B=an(c))?void 0:B.navBtnPrev),onActivate:r[0]||(r[0]=e=>f(!1))},{default:zn(()=>[t.$slots["arrow-left"]?Ai(t.$slots,"arrow-left",{key:0}):ms("",!0),t.$slots["arrow-left"]?ms("",!0):(Xa(),as(an(JO),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ms("",!0),cs("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":null==(m=an(l))?void 0:m.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:r[1]||(r[1]=()=>p(!1)),onKeydown:r[2]||(r[2]=Il(()=>p(!1),["enter"]))},[t.$slots.year?Ai(t.$slots,"year",{key:0,year:e.year}):ms("",!0),t.$slots.year?ms("",!0):(Xa(),is(Wa,{key:1},[fs(we(e.year),1)],64))],40,jI),an(i)(an(o),e.instance)?(Xa(),as(FI,{key:1,ref:"mpNextIconRef","aria-label":null==(g=an(l))?void 0:g.nextYear,disabled:e.isDisabled(!0),class:le
34(null==(v=an(c))?void 0:v.navBtnNext),onActivate:r[3]||(r[3]=e=>f(!0))},{default:zn(()=>[t.$slots["arrow-right"]?Ai(t.$slots,"arrow-right",{key:0}):ms("",!0),t.$slots["arrow-right"]?ms("",!0):(Xa(),as(an(KO),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ms("",!0),ds(uo,{name:an(h)(e.showYearPicker),css:an(d)},{default:zn(()=>[e.showYearPicker?(Xa(),as(NI,{key:0,items:e.items,"text-input":t.textInput,"esc-close":t.escClose,config:t.config,"is-last":t.autoApply&&!an(s).keepActionRow,"hide-navigation":t.hideNavigation,"aria-labels":t.ariaLabels,type:"year",onToggle:p,onSelected:r[4]||(r[4]=e=>(e=>{n("year-select",e)})(e))},Oi({"button-icon":zn(()=>[t.$slots["calendar-icon"]?Ai(t.$slots,"calendar-icon",{key:0}):ms("",!0),t.$slots["calendar-icon"]?ms("",!0):(Xa(),as(an(WO),{key:1}))]),_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:zn(({item:e})=>[Ai(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):ms("",!0)]),_:3},8,["name","css"])])}}}),UI=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(t=>NA(e,t))){const n=t.value.filter(t=>!NA(t,e));t.value=n.length?n:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},GI=(e,t,n)=>{let r=e.value?e.value.slice():[];return 2===r.length&&null!==r[1]&&(r=[]),r.length?PA(t,r[0])?(r.unshift(t),n("range-start",r[0]),n("range-start",r[1])):(r[1]=t,n("range-end",t)):(r=[t],n("range-start",t)),r},YI=(e,t,n,r)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&r&&n&&t("auto-apply"))},VI=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>eA(OA(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=eA(OA(e.value),e.timezone))},qI=(e,t,n,r)=>Array.isArray(t.value)&&(2===t.value.length||1===t.value.length&&r.value.partialRange)?r.value.fixedStart&&(RA(e,t.value[0])||NA(e,t.value[0]))?[t.value[0],e]:r.value.fixedEnd&&(PA(e,t.value[1])||NA(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],$I=({multiCalendars:e,range:t,highlight:n,propDates:r,calendars:i,modelValue:a,props:s,filters:o,year:l,month:u,emit:c})=>{const d=Ys(()=>hA(s.yearRange,s.locale,s.reverseYears)),h=en([!1]),p=Ys(()=>(e,t)=>{const n=HO(FA(new Date),{month:u.value(e),year:l.value(e)}),i=t?qx(n):$x(n);return JA(i,r.value.maxDate,r.value.minDate,s.preventMinMaxNavigation,t)}),f=()=>Array.isArray(a.value)&&e.value.solo&&a.value[1],B=()=>{for(let t=0;t<e.value.count;t++)if(0===t)i.value[t]=i.value[0];else if(t===e.value.count-1&&f())i.value[t]={month:MT(a.value[1]),year:LT(a.value[1])};else{const e=HO(OA(),i.value[t-1]);i.value[t]={month:MT(e),year:LT(Fx(e,1))}}},m=n=>s.focusStartDate||e.value.solo?n[0]:n[1]?((e,n)=>{const r=Gx(n,e);return t.value.showLastInRange&&r>1?n:e})(n[0],n[1]):n[0],g=()=>{(()=>{if(a.value){const e=Array.isArray(a.value)?m(a.value):a.value;i.value[0]={month:MT(e),year:LT(e)}}})(),e.value.count&&B()};rr(a,(e,t)=>{s.isTextInputDate&&JSON.stringify(e??{})!==JSON.stringify(t??{})&&g()}),pi(()=>{g()});const v=(t,n)=>{i.value[n].year=t,c("update-month-year",{instance:n,year:t,month:i.value[n].month}),e.value.count&&!e.value.solo&&(t=>{if(!t)return B();const n=HO(OA(),i.value[t]);i.value[0].year=LT($O(n,e.value.count-1)),B()})(n)},y=Ys(()=>e=>bA(d.value,t=>{var i;return{active:l.value(e)===t.value,disabled:_A(t.value,GA(r.value.minDate),GA(r.value.maxDate))||(null==(i=o.value.years)?void 0:i.includes(l.value(e))),highlighted:oI(n.value,t.value)}})),C=(e,t=!1,n)=>{t||c("reset-flow"),h.value[e]=void 0!==n?n:!h.value[e],h.value[e]?c("overlay-toggle",{open:!0,overlay:sA.year}):(c("overlay-closed"),c("overlay-toggle",{open:!1,overlay:sA.year}))};return{isDisabled:p,groupedYears:y,showYearPicker:h,selectYear:v,toggleYearPicker:C,handleYearSelect:(e,t)=>{v(e,t),C(t)},handleYear:(e,t=!1)=>{if(!p.value(e,t)){const n=t?l.value(e)+1:l.value(e)-1;v(n,e)}}}},WI=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:i,defaultedConfig:a,defaultedRange:s,defaultedHighlight:o,propDates:l,defaultedTz:u,defaultedFilters:c,defaultedMultiDates:d}=DI(e),{modelValue:h,year:p,month:f,calendars:B}=tN(e,t,()=>{e.isTextInputDate&&y(LT(OA(e.startDate)),0)}),m=Ys(()=>pA(e.formatLocale,e.locale,e.monthNameFormat)),g=en(null),{checkMinMaxRange:v}=rN(e),{selectYear:y,groupedYears:C,showYearPicker:_,toggleYearPicker:b,handleYearSelect:w,handleYear:D,isDisabled:E}=$I({modelValue:h,multiCalendars:n,range:s,highlight:o,calendars:B,year:p,propDates:l,month:f,filters:c,props:e,emit:t});pi(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&y(LT(OA(e.startDate)),0)});const k=e=>e?{month:MT(e),year:LT(e)}:{month:null,year:null},S=()=>h.value?Array.isArray(h.value)?h.value.map(e=>k(e)):k(h.value):k(),x=(e,t,n)=>{var r,i;const a=S();return!!Array.isArray(a)&&p.value(t)===(null==(r=a[n])?void 0:r.year)&&e===(null==(i=a[n])?void 0:i.month)},T=Ys(()=>e=>bA(m.value,t=>{var n;const r=((e,t)=>{const n=B.value[e],r=S();return Array.isArray(r)?r.some(e=>e.year===(null==n?void 0:n.year)&&e.month===t):(null==n?void 0:n.year)===r.year&&t===r.month})(e,t.value),i=_A(t.value,HA(p.value(e),l.value.minDate),UA(p.value(e),l.value.maxDate))||((e,t)=>e instanceof Map?Array.from(e.values()).filter(e=>LT(OA(e))===t).map(e=>MT(e)):[])(l.value.disabledDates,p.value(e)).includes(t.value)||(null==(n=c.value.months)?void 0:n.includes(t.value)),a=((e,t)=>{if(s.value.enabled){const n=S();if(Array.isArray(h.value)&&Array.isArray(n)){const n=x(e,t,0)||x(e,t,1),r
34=zA(FA(OA()),e,p.value(t));return MA(h.value,g.value,r)&&!n}return!1}return!1})(t.value,e);return{active:r,disabled:i,isBetween:a,highlighted:sI(o.value,t.value,p.value(e))}})),O=(e,t)=>zA(FA(OA()),e,p.value(t)),A=(e,n,r)=>{let i=r;if(!i&&0!==i){const t=S();i=Array.isArray(t)?t[e].month:t.month}t("update-month-year",{instance:e,year:n,month:i})};return{groupedMonths:T,groupedYears:C,year:p,isDisabled:E,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:i,defaultedConfig:a,showYearPicker:_,modelValue:h,presetDate:(e,n)=>{VI({value:e,modelValue:h,range:s.value.enabled,timezone:n?void 0:u.value.timezone}),t("auto-apply")},setHoverDate:(e,t)=>{g.value=O(e,t)},selectMonth:(n,r)=>(B.value[r].month=n,A(r,B.value[r].year,n),d.value.enabled?((e,n)=>{UI(O(e,n),h,d.value.limit),t("auto-apply",!0)})(n,r):s.value.enabled?((n,r)=>{const i=O(n,r);s.value.fixedEnd||s.value.fixedStart?h.value=qI(i,h,t,s):h.value?v(i,h.value)&&(h.value=GI(h,O(n,r),t)):h.value=[O(n,r)],Rn().then(()=>{YI(h.value,t,e.autoApply,e.modelAuto)})})(n,r):((e,n)=>{const r=h.value?h.value:FA(new Date);h.value=zA(r,e,p.value(n)),t("auto-apply"),t("update-flow-step")})(n,r)),selectYear:(e,t)=>{y(e,t),A(t,e,null)},toggleYearPicker:b,handleYearSelect:w,handleYear:D,getModelMonthYear:S}},zI=Ir({compatConfig:{MODE:3},__name:"MonthPicker",props:{...SI},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,i=Li(),a=XP(i,"yearMode"),s=e;pi(()=>{s.shadow||r("mount",null)});const{groupedMonths:o,groupedYears:l,year:u,isDisabled:c,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:p,modelValue:f,presetDate:B,setHoverDate:m,selectMonth:g,selectYear:v,toggleYearPicker:y,handleYearSelect:C,handleYear:_,getModelMonthYear:b}=WI(s,r);return t({getSidebarProps:()=>({modelValue:f,year:u,getModelMonthYear:b,selectMonth:g,selectYear:v,handleYear:_}),presetDate:B,toggleYearPicker:e=>y(0,e)}),(e,t)=>(Xa(),as(RI,{"multi-calendars":an(d).count,collapse:e.collapse,stretch:""},{default:zn(({instance:t})=>[e.$slots["top-extra"]?Ai(e.$slots,"top-extra",{key:0,value:e.internalModelValue}):ms("",!0),e.$slots["month-year"]?Ai(e.$slots,"month-year",ue(Cs({key:1},{year:an(u),months:an(o)(t),years:an(l)(t),selectMonth:an(g),selectYear:an(v),instance:t}))):(Xa(),as(NI,{key:2,items:an(o)(t),"arrow-navigation":e.arrowNavigation,"is-last":e.autoApply&&!an(h).keepActionRow,"esc-close":e.escClose,height:an(h).modeHeight,config:e.config,"no-overlay-focus":!(!e.noOverlayFocus&&!e.textInput),"use-relative":"",type:"month",onSelected:e=>an(g)(e,t),onHoverValue:e=>an(m)(e,t)},Oi({header:zn(()=>[ds(HI,Cs(e.$props,{items:an(l)(t),instance:t,"show-year-picker":an(p)[t],year:an(u)(t),"is-disabled":e=>an(c)(t,e),onHandleYear:e=>an(_)(t,e),onYearSelect:e=>an(C)(e,t),onToggleYearPicker:e=>an(y)(t,null==e?void 0:e.flow,null==e?void 0:e.show)}),Oi({_:2},[Ti(an(a),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs(n)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[e.$slots["month-overlay-value"]?{name:"item",fn:zn(({item:t})=>[Ai(e.$slots,"month-overlay-value",{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),JI=(e,t)=>{const{modelValue:n}=tN(e,t,()=>{e.isTextInputDate&&(u.value=LT(OA(e.startDate)))}),r=en(null),{defaultedHighlight:i,defaultedMultiDates:a,defaultedFilters:s,defaultedRange:o,propDates:l}=DI(e),u=en();pi(()=>{e.startDate&&(n.value&&e.focusStartDate||!n.value)&&(u.value=LT(OA(e.startDate)))});const c=Ys(()=>bA(hA(e.yearRange,e.locale,e.reverseYears),e=>{const t=(e=>Array.isArray(n.value)?n.value.some(t=>LT(t)===e):!!n.value&&LT(n.value)===e)(e.value),a=_A(e.value,GA(l.value.minDate),GA(l.value.maxDate))||s.value.years.includes(e.value),u=(e=>!(!o.value.enabled||!Array.isArray(n.value))&&MA(n.value,r.value,d(e)))(e.value)&&!t;return{active:t,disabled:a,isBetween:u,highlighted:oI(i.value,e.value)}})),d=e=>YO(FA($x(new Date)),e);return{groupedYears:c,modelValue:n,focusYear:u,setHoverValue:e=>
34{r.value=YO(FA(new Date),e)},selectYear:r=>{var i;if(t("update-month-year",{instance:0,year:r}),a.value.enabled)return n.value?Array.isArray(n.value)&&((null==(i=n.value)?void 0:i.map(e=>LT(e))).includes(r)?n.value=n.value.filter(e=>LT(e)!==r):n.value.push(YO(AA(OA()),r))):n.value=[YO(AA($x(OA())),r)],t("auto-apply",!0);o.value.enabled?(n.value=GI(n,d(r),t),Rn().then(()=>{YI(n.value,t,e.autoApply,e.modelAuto)})):(n.value=d(r),t("auto-apply"))}}},KI=Ir({compatConfig:{MODE:3},__name:"YearPicker",props:{...SI},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,i=e,{groupedYears:a,modelValue:s,focusYear:o,selectYear:l,setHoverValue:u}=JI(i,r),{defaultedConfig:c}=DI(i);return t({getSidebarProps:()=>({modelValue:s,selectYear:l})}),(e,t)=>(Xa(),is("div",null,[e.$slots["top-extra"]?Ai(e.$slots,"top-extra",{key:0,value:e.internalModelValue}):ms("",!0),e.$slots["month-year"]?Ai(e.$slots,"month-year",ue(Cs({key:1},{years:an(a),selectYear:an(l)}))):(Xa(),as(NI,{key:2,items:an(a),"is-last":e.autoApply&&!an(c).keepActionRow,height:an(c).modeHeight,config:e.config,"no-overlay-focus":!(!e.noOverlayFocus&&!e.textInput),"focus-value":an(o),type:"year","use-relative":"",onSelected:an(l),onHoverValue:an(u)},Oi({_:2},[e.$slots["year-overlay-value"]?{name:"item",fn:zn(({item:t})=>[Ai(e.$slots,"year-overlay-value",{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),QI={key:0,class:"dp__time_input"},ZI=["data-test","aria-label","onKeydown","onClick","onMousedown"],XI=cs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),eP=cs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),tP=["aria-label","disabled","data-test","onKeydown","onClick"],nP=["data-test","aria-label","onKeydown","onClick","onMousedown"],rP=cs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),iP=cs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),aP={key:0},sP=["aria-label"],oP=Ir({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...SI},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,i=e,{setTimePickerElements:a,setTimePickerBackRef:s}=yI(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:u,defaultedConfig:c,defaultedRange:d}=DI(i),{transitionName:h,showTransition:p}=eN(l),f=Ht({hours:!1,minutes:!1,seconds:!1}),B=en("AM"),m=en(null),g=en([]),v=en();pi(()=>{r("mounted")});const y=e=>HO(new Date,{hours:e.hours,minutes:e.minutes,seconds:i.enableSeconds?e.
34seconds:0,milliseconds:0}),C=Ys(()=>e=>I(e,i[e])||b(e,i[e])),_=Ys(()=>({hours:i.hours,minutes:i.minutes,seconds:i.seconds})),b=(e,t)=>!(!d.value.enabled||d.value.disableTimeRangeValidation||i.validateTime(e,t)),w=(e,t)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const n=t?+i[`${e}Increment`]:-+i[`${e}Increment`],r=i[e]+n;return!i.validateTime(e,r)}return!1},D=Ys(()=>e=>!R(+i[e]+ +i[`${e}Increment`],e)||w(e,!0)),E=Ys(()=>e=>!R(+i[e]-+i[`${e}Increment`],e)||w(e,!1)),k=(e,t)=>Dx(HO(OA(),e),t),S=(e,t)=>qO(HO(OA(),e),t),x=Ys(()=>({dp__time_col:!0,dp__time_col_block:!i.timePickerInline,dp__time_col_reg_block:!i.enableSeconds&&i.is24&&!i.timePickerInline,dp__time_col_reg_inline:!i.enableSeconds&&i.is24&&i.timePickerInline,dp__time_col_reg_with_button:!i.enableSeconds&&!i.is24,dp__time_col_sec:i.enableSeconds&&i.is24,dp__time_col_sec_with_button:i.enableSeconds&&!i.is24})),T=Ys(()=>{const e=[{type:"hours"}];return i.enableMinutes&&e.push({type:"",separator:!0},{type:"minutes"}),i.enableSeconds&&e.push({type:"",separator:!0},{type:"seconds"}),e}),O=Ys(()=>T.value.filter(e=>!e.separator)),A=Ys(()=>e=>{if("hours"===e){const e=H(+i.hours);return{text:e<10?`0${e}`:`${e}`,value:e}}return{text:i[e]<10?`0${i[e]}`:`${i[e]}`,value:i[e]}}),I=(e,t)=>{var n;if(!i.disabledTimesConfig)return!1;const r=i.disabledTimesConfig(i.order,"hours"===e?t:void 0);return!r[e]||!(null==(n=r[e])||!n.includes(t))},P=(e,t)=>"hours"!==t||"AM"===B.value?e:e+12,N=e=>{const t=i.is24?24:12,n="hours"===e?t:60,r=+i[`${e}GridIncrement`],a=[];for(let s="hours"!==e||i.is24?0:r;s<n;s+=r)a.push({value:i.is24?s:P(s,e),text:s<10?`0${s}`:`${s}`});return"hours"===e&&!i.is24&&a.unshift({value:"PM"===B.value?12:0,text:"12"}),bA(a,t=>({active:!1,disabled:u.value.times[e].includes(t.value)||!R(t.value,e)||I(e,t.value)||b(e,t.value)}))},R=(e,t)=>{const n=i.minTime?y(LA(i.minTime)):null,r=i.maxTime?y(LA(i.maxTime)):null,a=y(LA(_.value,t,"minutes"===t||"seconds"===t?(e=>e>=0?e:59)(e):(e=>e>=0?e:23)(e)));return n&&r?(HT(a,r)||UT(a,r))&&(jT(a,n)||UT(a,n)):n?jT(a,n)||UT(a,n):!r||HT(a,r)||UT(a,r)},M=e=>i[`no${e[0].toUpperCase()+e.slice(1)}Overlay`],F=e=>{M(e)||(f[e]=!f[e],f[e]?r("overlay-opened",e):r("overlay-closed",e))},L=()=>{v.value&&clearTimeout(v.value)},j=(e,t=!0,n)=>{const a=t?k:S,s=t?+i[`${e}Increment`]:-+i[`${e}Increment`];R(+i[e]+s,e)&&r(`update:${e}`,(e=>"hours"===e?NT:"minutes"===e?RT:FT)(e)(a({[e]:+i[e]},{[e]:+i[`${e}Increment`]}))),(null==n||!n.keyboard)&&c.value.timeArrowHoldThreshold&&(v.value=setTimeout(()=>{j(e,t)},c.value.timeArrowHoldThreshold))},H=e=>i.is24?e:(B.value=e>=12?"PM":"AM",(e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e])(e)),U=()=>{"PM"===B.value?(B.value="AM",r("update:hours",i.hours-12)):(B.value="PM",r("update:hours",i.hours+12)),r("am-pm-change",B.value)},G=(e,t,n)=>{if(e&&i.arrowNavigation){Array.isArray(g.value[t])?g.value[t][n]=e:g.value[t]=[e];const r=g.value.reduce((e,t)=>t.map((n,r)=>[...e[r]||[],t[r]]),[]);s(i.closeTimePickerBtn),m.value&&(r[1]=r[1].concat(m.value)),a(r,i.order)}};return t({openChildCmp:e=>{f[e]=!0}}),(e,t)=>{var n;return e.disabled?ms("",!0):(Xa(),is("div",QI,[(Xa(!0),is(Wa,null,Ti(T.value,(t,n)=>{var r,a,s;return Xa(),is("div",{key:n,class:le(x.value)},[t.separator?(Xa(),is(Wa,{key:0},[fs(" : ")],64)):(Xa(),is(Wa,{key:1},[cs("button",{ref_for:!0,ref:e=>G(e,n,0),type:"button",class:le({dp__btn:!0,dp__inc_dec_button:!e.timePickerInline,dp__inc_dec_button_inline:e.timePickerInline,dp__tp_inline_btn_top:e.timePickerInline,dp__inc_dec_button_disabled:D.value(t.type)}),"data-test":`${t.type}-time-inc-btn-${i.order}`,"aria-label":null==(r=an(o))?void 0:r.incrementValue(t.type),tabindex:"0",onKeydown:e=>an(xA)(e,()=>j(t.type,!0,{keyboard:!0}),!0),onClick:e=>an(c).timeArrowHoldThreshold?void 0:j(t.type,!0),onMousedown:e=>an(c).timeArrowHoldThreshold?j(t.type,!0):void 0,onMouseup:L},[i.timePickerInline?(Xa(),is(Wa,{key:1},[e.$slots["tp-inline-arrow-up"]?Ai(e.$slots,"tp-inline-arrow-up",{key:0}):(Xa(),is(Wa,{key:1},[XI,eP],64))],64)):(Xa(),is(Wa,{key:0},[e.$slots["arrow-up"]?Ai(e.$slots,"arrow-up",{key:0}):ms("",!0),e.$slots["arrow-up"]?ms("",!0):(Xa(),as(an(ZO),{key:1}))],64))],42,ZI),cs("button",{ref_for:!0,ref:e=>G(e,n,1),type:"button","aria-label":null==(a=an(o))?void 0:a.openTpOverlay(t.type),class:le
34({dp__time_display:!0,dp__time_display_block:!e.timePickerInline,dp__time_display_inline:e.timePickerInline,"dp--time-invalid":C.value(t.type),"dp--time-overlay-btn":!C.value(t.type)}),disabled:M(t.type),tabindex:"0","data-test":`${t.type}-toggle-overlay-btn-${i.order}`,onKeydown:e=>an(xA)(e,()=>F(t.type),!0),onClick:e=>F(t.type)},[e.$slots[t.type]?Ai(e.$slots,t.type,{key:0,text:A.value(t.type).text,value:A.value(t.type).value}):ms("",!0),e.$slots[t.type]?ms("",!0):(Xa(),is(Wa,{key:1},[fs(we(A.value(t.type).text),1)],64))],42,tP),cs("button",{ref_for:!0,ref:e=>G(e,n,2),type:"button",class:le({dp__btn:!0,dp__inc_dec_button:!e.timePickerInline,dp__inc_dec_button_inline:e.timePickerInline,dp__tp_inline_btn_bottom:e.timePickerInline,dp__inc_dec_button_disabled:E.value(t.type)}),"data-test":`${t.type}-time-dec-btn-${i.order}`,"aria-label":null==(s=an(o))?void 0:s.decrementValue(t.type),tabindex:"0",onKeydown:e=>an(xA)(e,()=>j(t.type,!1,{keyboard:!0}),!0),onClick:e=>an(c).timeArrowHoldThreshold?void 0:j(t.type,!1),onMousedown:e=>an(c).timeArrowHoldThreshold?j(t.type,!1):void 0,onMouseup:L},[i.timePickerInline?(Xa(),is(Wa,{key:1},[e.$slots["tp-inline-arrow-down"]?Ai(e.$slots,"tp-inline-arrow-down",{key:0}):(Xa(),is(Wa,{key:1},[rP,iP],64))],64)):(Xa(),is(Wa,{key:0},[e.$slots["arrow-down"]?Ai(e.$slots,"arrow-down",{key:0}):ms("",!0),e.$slots["arrow-down"]?ms("",!0):(Xa(),as(an(XO),{key:1}))],64))],42,nP)],64))],2)}),128)),e.is24?ms("",!0):(Xa(),is("div",aP,[e.$slots["am-pm-button"]?Ai(e.$slots,"am-pm-button",{key:0,toggle:U,value:B.value}):ms("",!0),e.$slots["am-pm-button"]?ms("",!0):(Xa(),is("button",{key:1,ref_key:"amPmButton",ref:m,type:"button",class:"dp__pm_am_button",role:"button","aria-label":null==(n=an(o))?void 0:n.amPmButton,tabindex:"0",onClick:U,onKeydown:t[0]||(t[0]=e=>an(xA)(e,()=>U(),!0))},we(B.value),41,sP))])),(Xa(!0),is(Wa,null,Ti(O.value,(n,i)=>(Xa(),as(uo,{key:i,name:an(h)(f[n.type]),css:an(p)},{default:zn(()=>[f[n.type]?(Xa(),as(NI,{key:0,items:N(n.type),"is-last":e.autoApply&&!an(c).keepActionRow,"esc-close":e.escClose,type:n.type,"text-input":e.textInput,config:e.config,"arrow-navigation":e.arrowNavigation,"aria-labels":e.ariaLabels,onSelected:e=>((e,t)=>(F(e),r(`update:${e}`,t)))(n.type,e),onToggle:e=>F(n.type),onResetFlow:t[1]||(t[1]=t=>e.$emit("reset-flow"))},Oi({"button-icon":zn(()=>[e.$slots["clock-icon"]?Ai(e.$slots,"clock-icon",{key:0}):ms("",!0),e.$slots["clock-icon"]?ms("",!0):(Xa(),as(Ei(e.timePickerInline?an(WO):an(QO)),{key:1}))]),_:2},[e.$slots[`${n.type}-overlay-value`]?{name:"item",fn:zn(({item:t})=>[Ai(e.$slots,`${n.type}-overlay-value`,{text:t.text,value:t.value})]),key:"0"}:void 0,e.$slots[`${n.type}-overlay-header`]?{name:"header",fn:zn(()=>[Ai(e.$slots,`${n.type}-overlay-header`,{toggle:()=>F(n.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):ms("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),lP={class:"dp--tp-wrap"},uP=["aria-label","tabindex"],cP=["tabindex"],dP=["aria-label"],hP=Ir({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...SI},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,i=e,{buildMatrix:a,setTimePicker:s}=yI(),o=Li(),{defaultedTransitions:l,defaultedAriaLabels:u,defaultedTextInput:c,defaultedConfig:d,defaultedRange:h}=DI(i),{transitionName:p,showTransition:f}=eN(l),{hideNavigationButtons:B}=iN(),m=en(null),g=en(null),v=en([]),y=en(null);pi(()=>{r("mount"),!i.timePicker&&i.arrowNavigation?a([fA(m.value)],"time"):s(!0,i.timePicker)});const C=Ys(()=>!h.value.enabled||!i.modelAuto||BA(i.internalModelValue)),_=en(!1),b=e=>({hours:Array.isArray(i.hours)?i.hours[e]:i.hours,minutes:Array.isArray(i.minutes)?i.minutes[e]:i.minutes,seconds:Array.isArray(i.seconds)?i.seconds[e]:i.seconds}),w=Ys(()=>{const e=[];
34if(h.value.enabled)for(let t=0;t<2;t++)e.push(b(t));else e.push(b(0));return e}),D=(e,t=!1,n="")=>{t||r("reset-flow"),_.value=e,r(e?"overlay-opened":"overlay-closed",sA.time),i.arrowNavigation&&s(e),Rn(()=>{""!==n&&v.value[0]&&v.value[0].openChildCmp(n)})},E=Ys(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:i.autoApply&&!d.value.keepActionRow})),k=XP(o,"timePicker"),S=(e,t,n)=>h.value.enabled?0===t?[e,w.value[1][n]]:[w.value[0][n],e]:e,x=e=>{r("update:hours",e)},T=e=>{r("update:minutes",e)},O=e=>{r("update:seconds",e)},A=()=>{if(y.value&&!c.value.enabled&&!i.noOverlayFocus){const e=CA(y.value);e&&e.focus({preventScroll:!0})}},I=e=>{r("overlay-closed",e)};return t({toggleTimePicker:D}),(t,n)=>{var r;return Xa(),is("div",lP,[t.timePicker||t.timePickerInline?ms("",!0):Jn((Xa(),is("button",{key:0,ref_key:"openTimePickerBtn",ref:m,type:"button",class:le(E.value),"aria-label":null==(r=an(u))?void 0:r.openTimePicker,tabindex:t.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:n[0]||(n[0]=e=>an(xA)(e,()=>D(!0))),onClick:n[1]||(n[1]=e=>D(!0))},[t.$slots["clock-icon"]?Ai(t.$slots,"clock-icon",{key:0}):ms("",!0),t.$slots["clock-icon"]?ms("",!0):(Xa(),as(an(QO),{key:1}))],42,uP)),[[ko,!an(B)(t.hideNavigation,"time")]]),ds(uo,{name:an(p)(_.value),css:an(f)&&!t.timePickerInline},{default:zn(()=>{var r;return[_.value||t.timePicker||t.timePickerInline?(Xa(),is("div",{key:0,ref_key:"overlayRef",ref:y,class:le({dp__overlay:!t.timePickerInline,"dp--overlay-absolute":!i.timePicker&&!t.timePickerInline,"dp--overlay-relative":i.timePicker}),style:re(t.timePicker?{height:`${an(d).modeHeight}px`}:void 0),tabindex:t.timePickerInline?void 0:0},[cs("div",{class:le(t.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[t.$slots["time-picker-overlay"]?Ai(t.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:x,setMinutes:T,setSeconds:O}):ms("",!0),t.$slots["time-picker-overlay"]?ms("",!0):(Xa(),is("div",{key:1,class:le(t.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(Xa(!0),is(Wa,null,Ti(w.value,(r,i)=>Jn((Xa(),as(oP,Cs({key:i,ref_for:!0},{...t.$props,order:i,hours:r.hours,minutes:r.minutes,seconds:r.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:0===i?t.fixedStart:t.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:v,"validate-time":(t,n)=>e.validateTime(t,S(n,i,t)),"onUpdate:hours":e=>x(S(e,i,"hours")),"onUpdate:minutes":e=>T(S(e,i,"minutes")),"onUpdate:seconds":e=>O(S(e,i,"seconds")),onMounted:A,onOverlayClosed:I,onOverlayOpened:n[2]||(n[2]=e=>t.$emit("overlay-opened",e)),onAmPmChange:n[3]||(n[3]=e=>t.$emit("am-pm-change",e))}),Oi({_:2},[Ti(an(k),(e,n)=>({name:e,fn:zn(n=>[Ai(t.$slots,e,Cs({ref_for:!0},n))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[ko,0===i||C.value]])),128))],2)),t.timePicker||t.timePickerInline?ms("",!0):Jn((Xa(),is("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:le(E.value),"aria-label":null==(r=an(u))?void 0:r.closeTimePicker,tabindex:"0",onKeydown:n[4]||(n[4]=e=>an(xA)(e,()=>D(!1))),onClick:n[5]||(n[5]=e=>D(!1))},[t.$slots["calendar-icon"]?Ai(t.$slots,"calendar-icon",{key:0}):ms("",!0),t.$slots["calendar-icon"]?ms("",!0):(Xa(),as(an(WO),{key:1}))],42,dP)),[[ko,!an(B)(t.hideNavigation,"time")]])],2)],14,cP)):ms("",!0)]}),_:3},8,["name","css"])])}}}),pP=(e,t,n,r)=>{const{defaultedRange:i}=DI(e),a=(e,n)=>Array.isArray(t[e])?t[e][n]:t[e],s=n=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[n]:t.seconds:0,o=(e,n)=>{t[e]=n},l=Ys(()=>e.modelAuto&&i.value.enabled?!!Array.isArray(n.value)&&n.value.length>1:i.value.enabled),u=(e,r)=>{const a=Object.fromEntries(Object.keys(t).map(n=>n===e?[n,r]:[n,t[n]].slice()));if(l.value&&!i.value.disableTimeRangeValidation){const e=e=>n.value?IA(n.value[e],a.hours[e],a.minutes[e],a.seconds[e]):null,t=e=>UO(n.value[e],0);return!(NA(e(0),e(1))&&(jT(e(0),t(1))||HT(e(1),t(0))))}return!0},c=(e,t)=>{u(e,t)&&(o(e,t),r&&r())},d=e=>{c("hours",e)},h=e=>{c("minutes",e)},p=e=>{c("seconds",e)},f=Ys(()=>(n,r)=>{var a;if(Array.isArray(e.disabledTimes)){const{disabledArr:s,hours:o}=((n,r)=>{const a={hours:Array.isArray(t.hours)?t.hours[n]:t.hours,disabledArr:[]};return(r||0===r)&&(a.hours=r),Array.isArray(e.disabledTimes)&&(a.disabledArr=i.value.enabled&&Array.isArray(e.disabledTimes[n])?e.disabledTimes[n]:e.disabledTimes),a})(n,r),l=s.filter(e=>+e.hours===o);return"*"===(null==(a=l[0])?void 0:a.minutes)?{hours:[o],minutes:void 0,seconds:void 0}:{hours:[],minutes:(null==l?void 0:l.map(e=>+e.minutes))??[],seconds:(null==l?void 0:l.map(e=>e.seconds?+e.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:o,updateHours:d,updateMinutes:h,updateSeconds:p,getSetDateTime:(e,n)=>e?void 0!==n?IA(e,a("hours",n),a("minutes",n),s(n)):IA(e,t.hours,t.minutes,s()):GO(OA(),s(n)),updateTimeValues:(e,t,r,i)=>{t&&d(e),!t&&!r&&h(e),r&&p(e),n.value&&i(n.value)},getSecondsValue:s,assignStartTime:t=>{if(t){const n=Array.isArray(t),r=n?[+t[0].hours,+t[1].hours]:+t.hours,i=n?[+t[0].minutes,+t[1].minutes]:+t.minutes,a=n?[+t[0].seconds,+t[1].seconds]:+t.seconds;o("hours",r),o("minutes",i),e.enableSeconds&&o("seconds",a)}},validateTime:u,disabledTimesConfig:f}},fP=(e,t)=>{const{modelValue:n,time:r}=tN(e,t,()=>{e.isTextInputDate&&m()}),{defaultedStartTime:i,defaultedRange:a,defaultedTz:s}=DI(e),{updateTimeValues:o,getSetDateTime:l,setTime:u,assignStartTime:c,disabledTimesConfig:d,validateTime:h}=pP(e,r,n,function(){t("update-flow-step")}),p=e=>{const{hours:t,minutes:n,seconds:r}=e;return{hours:+t,minutes:+n,seconds:r?+r:0}},f=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const t=p(e.startTime[0]),n=p(e.startTime[1]);return[HO(OA(),t),HO(OA(),n)]}const t=p(e.startTime);return HO(OA(),t)}return a.value.enabled?[null,null]:null},B=(t,n,r)=>{u("hours",t),u("minutes",n),u("seconds",e.enableSeconds?r:0)},m=()=>{const[e,t]=(e=>Array.isArray(e)?[jA(OA(e[0])),jA(OA(e[1]))]:[jA(e??OA())])(n.value);return a.value.enabled?B([e.hours,t.hours],[e.minutes,t.minutes],[e.seconds,t.seconds]):B(e.hours,e.minutes,e.seconds)};pi(()=>
34{if(!e.shadow)return c(i.value),n.value?m():(()=>{if(a.value.enabled){const[e,t]=f();n.value=[eA(l(e,0),s.value.timezone),eA(l(t,1),s.value.timezone)]}else n.value=eA(l(f()),s.value.timezone)})()});const g=()=>{Array.isArray(n.value)?n.value=n.value.map((e,t)=>e&&l(e,t)):n.value=l(n.value),t("time-update")};return{modelValue:n,time:r,disabledTimesConfig:d,updateTime:(e,t=!0,n=!1)=>{o(e,t,n,g)},validateTime:h}},BP=Ir({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...SI},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,i=e,a=Li(),s=XP(a,"timePicker"),o=en(null),{time:l,modelValue:u,disabledTimesConfig:c,updateTime:d,validateTime:h}=fP(i,r);return pi(()=>{i.shadow||r("mount",null)}),t({getSidebarProps:()=>({modelValue:u,time:l,updateTime:d}),toggleTimePicker:(e,t=!1,n="")=>{var r;null==(r=o.value)||r.toggleTimePicker(e,t,n)}}),(e,t)=>(Xa(),as(RI,{"multi-calendars":0,stretch:""},{default:zn(()=>[ds(hP,Cs({ref_key:"tpRef",ref:o},e.$props,{hours:an(l).hours,minutes:an(l).minutes,seconds:an(l).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":an(c),"validate-time":an(h),"onUpdate:hours":t[0]||(t[0]=e=>an(d)(e)),"onUpdate:minutes":t[1]||(t[1]=e=>an(d)(e,!1)),"onUpdate:seconds":t[2]||(t[2]=e=>an(d)(e,!1,!0)),onAmPmChange:t[3]||(t[3]=t=>e.$emit("am-pm-change",t)),onResetFlow:t[4]||(t[4]=t=>e.$emit("reset-flow")),onOverlayClosed:t[5]||(t[5]=t=>e.$emit("overlay-toggle",{open:!1,overlay:t})),onOverlayOpened:t[6]||(t[6]=t=>e.$emit("overlay-toggle",{open:!0,overlay:t}))}),Oi({_:2},[Ti(an(s),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs(n)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),mP={class:"dp--header-wrap"},gP={key:0,class:"dp__month_year_wrap"},vP={key:0},yP={class:"dp__month_year_wrap"},CP=["aria-label","data-test","onClick","onKeydown"],_P=Ir({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...SI},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const r=n,i=e,{defaultedTransitions:a,defaultedAriaLabels:s,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:u,defaultedHighlight:c,propDates:d,defaultedUI:h}=DI(i),{transitionName:p,showTransition:f}=eN(a),{buildMatrix:B}=yI(),{handleMonthYearChange:m,isDisabled:g,updateMonthYear:v}=((e,t)=>{const{defaultedFilters:n,propDates:r}=DI(e),{validateMonthYearInRange:i}=rN(e),a=(e,t)=>{let r=e;return n.value.months.includes(MT(r))?(r=t?wx(e,1):VO(e,1),a(r,t)):r},s=(e,t)=>{let r=e;return n.value.years.includes(LT(r))?(r=t?Fx(e,1):$O(e,1),s(r,t)):r},o=(e,n,r)=>{t("update-month-year",{month:e,year:n,fromNav:r})};return{handleMonthYearChange:(t,r=!1)=>{const l=HO(OA(),{month:e.month,year:e.year});let u=t?wx(l,1):VO(l,1);e.disableYearSelect&&(u=YO(u,e.year));let c=MT(u),d=LT(u);n.value.months.includes(c)&&(u=a(u,t),c=MT(u),d=LT(u)),n.value.years.includes(d)&&(u=s(u,t),d=LT(u)),i(c,d,t,e.preventMinMaxNavigation)&&o(c,d,r)},isDisabled:Ys(()=>t=>JA(HO(OA(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,t)),updateMonthYear:o}})(i,r),{showLeftIcon:y,showRightIcon:C}=iN(),_=en(!1),b=en(!1),w=en([null,null,null,null]);pi(()=>{r("mount")});const D=e=>({get:()=>i[e],set:t=>{const n=e===rA.month?rA.year:rA.month;r("update-month-year",{[e]:t,[n]:i[n]}),e===rA.month?I(!0):P(!0)}}),E=Ys(D(rA.month)),k=Ys(D(rA.year)),S=Ys(()=>e=>({month:i.month,year:i.year,items:e===rA.month?i.months:i.years,instance:i.instance,updateMonthYear:v,toggle:e===rA.month?I:P})),x=Ys(()=>i.months.find(e=>e.value===i.month)||{text:"",value:0}),T=Ys(()=>bA(i.months,e=>({active:i.month===e.value,disabled:_A(e.value,HA(i.year,d.value.minDate),UA(i.year,d.value.maxDate))||l.value.months.includes(e.value),highlighted:sI(c.value,e.value,i.year)}))),O=Ys(()=>bA(i.years,e=>({active:i.year===e.value,disabled:_A(e.value,GA(d.value.minDate),GA(d.value.maxDate))||l.value.years.includes(e.value),highlighted:oI(c.value,e.value)}
34))),A=(e,t,n)=>{e.value=void 0!==n?n:!e.value,e.value?r("overlay-opened",t):r("overlay-closed",t)},I=(e=!1,t)=>{N(e),A(_,sA.month,t)},P=(e=!1,t)=>{N(e),A(b,sA.year,t)},N=e=>{e||r("reset-flow")},R=(e,t)=>{i.arrowNavigation&&(w.value[t]=fA(e),B(w.value,"monthYear"))},M=Ys(()=>{var e,t;return[{type:rA.month,index:1,toggle:I,modelValue:E.value,updateModelValue:e=>E.value=e,text:x.value.text,showSelectionGrid:_.value,items:T.value,ariaLabel:null==(e=s.value)?void 0:e.openMonthsOverlay},{type:rA.year,index:2,toggle:P,modelValue:k.value,updateModelValue:e=>k.value=e,text:DA(i.year,i.locale),showSelectionGrid:b.value,items:O.value,ariaLabel:null==(t=s.value)?void 0:t.openYearsOverlay}]}),F=Ys(()=>i.disableYearSelect?[M.value[0]]:i.yearFirst?[...M.value].reverse():M.value);return t({toggleMonthPicker:I,toggleYearPicker:P,handleMonthYearChange:m}),(t,n)=>{var r,a,l,c,d,B;return Xa(),is("div",mP,[t.$slots["month-year"]?(Xa(),is("div",gP,[Ai(t.$slots,"month-year",ue(hs({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:an(v),handleMonthYearChange:an(m),instance:e.instance})))])):(Xa(),is(Wa,{key:1},[t.$slots["top-extra"]?(Xa(),is("div",vP,[Ai(t.$slots,"top-extra",{value:t.internalModelValue})])):ms("",!0),cs("div",yP,[an(y)(an(o),e.instance)&&!t.vertical?(Xa(),as(FI,{key:0,"aria-label":null==(r=an(s))?void 0:r.prevMonth,disabled:an(g)(!1),class:le(null==(a=an(h))?void 0:a.navBtnPrev),onActivate:n[0]||(n[0]=e=>an(m)(!1,!0)),onSetRef:n[1]||(n[1]=e=>R(e,0))},{default:zn(()=>[t.$slots["arrow-left"]?Ai(t.$slots,"arrow-left",{key:0}):ms("",!0),t.$slots["arrow-left"]?ms("",!0):(Xa(),as(an(JO),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ms("",!0),cs("div",{class:le(["dp__month_year_wrap",{dp__year_disable_select:t.disableYearSelect}])},[(Xa(!0),is(Wa,null,Ti(F.value,(n,r)=>(Xa(),is(Wa,{key:n.type},[cs("button",{ref_for:!0,ref:e=>R(e,r+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":n.ariaLabel,"data-test":`${n.type}-toggle-overlay-${e.instance}`,onClick:n.toggle,onKeydown:e=>an(xA)(e,()=>n.toggle(),!0)},[t.$slots[n.type]?Ai(t.$slots,n.type,{key:0,text:n.text,value:i[n.type]}):ms("",!0),t.$slots[n.type]?ms("",!0):(Xa(),is(Wa,{key:1},[fs(we(n.text),1)],64))],40,CP),ds(uo,{name:an(p)(n.showSelectionGrid),css:an(f)},{default:zn(()=>[n.showSelectionGrid?(Xa(),as(NI,{key:0,items:n.items,"arrow-navigation":t.arrowNavigation,"hide-navigation":t.hideNavigation,"is-last":t.autoApply&&!an(u).keepActionRow,"skip-button-ref":!1,config:t.config,type:n.type,"header-refs":[],"esc-close":t.escClose,"menu-wrap-ref":t.menuWrapRef,"text-input":t.textInput,"aria-labels":t.ariaLabels,onSelected:n.updateModelValue,onToggle:n.toggle},Oi({"button-icon":zn(()=>[t.$slots["calendar-icon"]?Ai(t.$slots,"calendar-icon",{key:0}):ms("",!0),t.$slots["calendar-icon"]?ms("",!0):(Xa(),as(an(WO),{key:1}))]),_:2},[t.$slots[`${n.type}-overlay-value`]?{name:"item",fn:zn(({item:e})=>[Ai(t.$slots,`${n.type}-overlay-value`,{text:e.text,value:e.value})]),key:"0"}:void 0,t.$slots[`${n.type}-overlay`]?{name:"overlay",fn:zn(()=>[Ai(t.$slots,`${n.type}-overlay`,Cs({ref_for:!0},S.value(n.type)))]),key:"1"}:void 0,t.$slots[`${n.type}-overlay-header`]?{name:"header",fn:zn(()=>[Ai(t.$slots,`${n.type}-overlay-header`,{toggle:n.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):ms("",!0)]),_:2},1032,["name","css"])],64))),128))],2),an(y)(an(o),e.instance)&&t.vertical?(Xa(),as(FI,{key:1,"aria-label":null==(l=an(s))?void 0:l.prevMonth,disabled:an(g)(!1),class:le(null==(c=an(h))?void 0:c.navBtnPrev),onActivate:n[2]||(n[2]=e=>an(m)(!1,!0))},{default:zn(()=>[t.$slots["arrow-up"]?Ai(t.$slots,"arrow-up",{key:0}):ms("",!0),t.$slots["arrow-up"]?ms("",!0):(Xa(),as(an(ZO),{key:1}))]),_:3},8,["aria-label","disabled","class"])):ms("",!0),an(C)(an(o),e.instance)?(Xa(),as(FI,{key:2,ref:"rightIcon",disabled:an(g)(!0),"aria-label":null==(d=an(s))?void 0:d.nextMonth,class:le(null==(B=an(h))?void 0:B.navBtnNext),onActivate:n[3]||(n[3]=e=>an(m)(!0,!0)),onSetRef:n[4]||(n[4]=e=>R(e,t.disableYearSelect?2:3))},{default:zn(()=>[t.$slots[t.vertical?"arrow-down":"arrow-right"]?Ai(t.$slots,t.vertical?"arrow-down":"arrow-right",{key:0}):ms("",!0),t.$slots[t.vertical?"arrow-down":"arrow-right"]?ms("",!0):(Xa(),as(Ei(t.vertical?an(XO):an(KO)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):ms("",!0)])],64))])}}}),bP=["aria-label"],wP={class:"dp__calendar_header",role:"row"},DP={key:0,class:"dp__calendar_header_item",role:"gridcell"},EP=["aria-label"],kP=cs("div",{class:"dp__calendar_header_separator"},null,-1),SP=["aria-label"],xP={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},TP={class:"dp__cell_inner"},OP=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],AP=Ir({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...SI},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=n,i=e,{buildMultiLevelMatrix:a}=yI(),{defaultedTransitions:s,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:u,defaultedWeekNumbers:c,defaultedMultiDates:d,defaultedUI:h}=DI(i),p=en(null),f=en({bottom:"",left:"",transform:""}),B=en([]),m=en(null),g=en(!0),v=en(""),y=en({startX:0,endX:0,startY:0,endY:0}),C=en([]),_=en({left:"50%"}),b=en(!1),w=Ys(()=>i.calendar?i.calendar(i.mappedDates):i.mappedDates),D=Ys(()=>i.dayNames?Array.isArray(i.dayNames)?i.dayNames:i.dayNames(i.locale,+i.weekStart):dA(i.formatLocale,i.locale,+i.weekStart));pi(()=>{r("mount",{cmp:"calendar",refs:B}),o.value.noSwipe||m.value&&(m.value.addEventListener("touchstart",I,{passive:!1}),m.value.addEventListener("touchend",P,{passive:!1}),m.value.addEventListener("touchmove",N,{passive:!1}
34)),i.monthChangeOnScroll&&m.value&&m.value.addEventListener("wheel",M,{passive:!1})});const E=e=>e?i.vertical?"vNext":"next":i.vertical?"vPrevious":"previous",k=Ys(()=>({[i.calendarClassName]:!!i.calendarClassName,...h.value.calendar??{}})),S=Ys(()=>e=>{const t=(e=>({type:"dot",...e??{}}))(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}}),x=Ys(()=>e=>NA(e,p.value)),T=Ys(()=>({dp__calendar:!0,dp__calendar_next:u.value.count>0&&0!==i.instance})),O=Ys(()=>e=>!i.hideOffsetDates||e.current),A=async(e,t,n)=>{var i,a;if(b.value&&d.value.enabled&&d.value.dragSelect)return r("select-date",e);r("set-hover-date",e),null!=(a=null==(i=e.marker)?void 0:i.tooltip)&&a.length&&await(async(e,t,n)=>{const i=fA(B.value[t][n]);if(i){const{width:t,height:n}=i.getBoundingClientRect();p.value=e.value;let a={left:t/2+"px"},s=-50;if(await Rn(),C.value[0]){const{left:e,width:n}=C.value[0].getBoundingClientRect();e<0&&(a={left:"0"},s=0,_.value.left=t/2+"px"),window.innerWidth<e+n&&(a={right:"0"},s=0,_.value.left=n-t/2+"px")}f.value={bottom:`${n}px`,...a,transform:`translateX(${s}%)`},r("tooltip-open",e.marker)}})(e,t,n)},I=e=>{y.value.startX=e.changedTouches[0].screenX,y.value.startY=e.changedTouches[0].screenY},P=e=>{y.value.endX=e.changedTouches[0].screenX,y.value.endY=e.changedTouches[0].screenY,R()},N=e=>{i.vertical&&!i.inline&&e.preventDefault()},R=()=>{const e=i.vertical?"Y":"X";Math.abs(y.value[`start${e}`]-y.value[`end${e}`])>10&&r("handle-swipe",y.value[`start${e}`]>y.value[`end${e}`]?"right":"left")},M=e=>{i.monthChangeOnScroll&&(e.preventDefault(),r("handle-scroll",e))},F=e=>"local"===c.value.type?aT(e.value,{weekStartsOn:+i.weekStart}):"iso"===c.value.type?rT(e.value):"function"==typeof c.value.type?c.value.type(e.value):"",L=e=>{const t=e[0];return c.value.hideOnOffsetDates?e.some(e=>e.current)?F(t):"":F(t)},j=e=>{wA(e,o.value)};return t({triggerTransition:(e,t)=>{if(i.transitions){const n=AA(zA(OA(),i.month,i.year));v.value=RA(AA(zA(OA(),e,t)),n)?s.value[E(!0)]:s.value[E(!1)],g.value=!1,Rn(()=>{g.value=!0})}}}),(e,t)=>{var n;return Xa(),is("div",{class:le(T.value)},[cs("div",{ref_key:"calendarWrapRef",ref:m,role:"grid",class:le(k.value),"aria-label":null==(n=an(l))?void 0:n.calendarWrap},[cs("div",wP,[e.weekNumbers?(Xa(),is("div",DP,we(e.weekNumName),1)):ms("",!0),(Xa(!0),is(Wa,null,Ti(D.value,(t,n)=>{var r,i;return Xa(),is("div",{key:n,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":null==(i=null==(r=an(l))?void 0:r.weekDay)?void 0:i.call(r,n)},[e.$slots["calendar-header"]?Ai(e.$slots,"calendar-header",{key:0,day:t,index:n}):ms("",!0),e.$slots["calendar-header"]?ms("",!0):(Xa(),is(Wa,{key:1},[fs(we(t),1)],64))],8,EP)}),128))]),kP,ds(uo,{name:v.value,css:!!e.transitions},{default:zn(()=>{var n;return[g.value?(Xa(),is("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":(null==(n=an(l))?void 0:n.calendarDays)||void 0,onMouseleave:t[1]||(t[1]=e=>b.value=!1)},[(Xa(!0),is(Wa,null,Ti(w.value,(n,s)=>(Xa(),is("div",{key:s,class:"dp__calendar_row",role:"row"},[e.weekNumbers?(Xa(),is("div",xP,[cs("div",TP,we(L(n.days)),1)])):ms("",!0),(Xa(!0),is(Wa,null,Ti(n.days,(n,u)=>{var c,h,m;return Xa(),is("div",{id:an(lI)(n.value),ref_for:!0,ref:e=>((e,t,n)=>{e&&(Array.isArray(B.value[t])?B.value[t][n]=e:B.value[t]=[e]),i.arrowNavigation&&a(B.value,"calendar")})(e,s,u),key:u+s,role:"gridcell",class:"dp__calendar_item","aria-selected":(n.classData.dp__active_date||n.classData.dp__range_start||n.classData.dp__range_start)??void 0,"aria-disabled":n.classData.dp__cell_disabled||void 0,"aria-label":null==(h=null==(c=an(l))?void 0:c.day)?void 0:h.call(c,n),tabindex:"0","data-test":n.value,onClick:Ol(e=>((e,t)=>{d.value.enabled||(wA(e,o.value),r("select-date",t))})(e,n),["prevent"]),onKeydown:t=>an(xA)(t,()=>e.$emit("select-date",n)),onMouseenter:e=>A(n,s,u),onMouseleave:e=>(e=>{p.value&&(p.value=null,f.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",e.marker))})(n),onMousedown:e=>(e=>{d.value.enabled&&d.value.dragSelect?(b.value=!0,r("select-date",e)):d.value.enabled&&r("select-date",e)})(n),onMouseup:t[0]||(t[0]=e=>b.value=!1)}
34,[cs("div",{class:le(["dp__cell_inner",n.classData])},[e.$slots.day&&O.value(n)?Ai(e.$slots,"day",{key:0,day:+n.text,date:n.value}):ms("",!0),e.$slots.day?ms("",!0):(Xa(),is(Wa,{key:1},[fs(we(n.text),1)],64)),n.marker&&O.value(n)?(Xa(),is(Wa,{key:2},[e.$slots.marker?Ai(e.$slots,"marker",{key:0,marker:n.marker,day:+n.text,date:n.value}):(Xa(),is("div",{key:1,class:le(S.value(n.marker)),style:re(n.marker.color?{backgroundColor:n.marker.color}:{})},null,6))],64)):ms("",!0),x.value(n.value)?(Xa(),is("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:C,class:"dp__marker_tooltip",style:re(f.value)},[null!=(m=n.marker)&&m.tooltip?(Xa(),is("div",{key:0,class:"dp__tooltip_content",onClick:j},[(Xa(!0),is(Wa,null,Ti(n.marker.tooltip,(t,r)=>(Xa(),is("div",{key:r,class:"dp__tooltip_text"},[e.$slots["marker-tooltip"]?Ai(e.$slots,"marker-tooltip",{key:0,tooltip:t,day:n.value}):ms("",!0),e.$slots["marker-tooltip"]?ms("",!0):(Xa(),is(Wa,{key:1},[cs("div",{class:"dp__tooltip_mark",style:re(t.color?{backgroundColor:t.color}:{})},null,4),cs("div",null,we(t.text),1)],64))]))),128)),cs("div",{class:"dp__arrow_bottom_tp",style:re(_.value)},null,4)])):ms("",!0)],4)):ms("",!0)],2)],40,OP)}),128))]))),128))],40,SP)):ms("",!0)]}),_:3},8,["name","css"])],10,bP)],2)}}}),IP=e=>Array.isArray(e),PP=(e,t,n,r)=>{const i=en([]),a=en(new Date),s=en(),{modelValue:o,calendars:l,time:u,today:c}=tN(e,t,()=>P(e.isTextInputDate)),{defaultedMultiCalendars:d,defaultedStartTime:h,defaultedRange:p,defaultedConfig:f,defaultedTz:B,propDates:m,defaultedMultiDates:g}=DI(e),{validateMonthYearInRange:v,isDisabled:y,isDateRangeAllowed:C,checkMinMaxRange:_}=rN(e),{updateTimeValues:b,getSetDateTime:w,setTime:D,assignStartTime:E,validateTime:k,disabledTimesConfig:S}=pP(e,u,o,r),x=Ys(()=>e=>l.value[e]?l.value[e].month:0),T=Ys(()=>e=>l.value[e]?l.value[e].year:0),O=(e,t,n,r=!1)=>{var i,a;(e=>!(f.value.keepViewOnOffsetClick&&!e&&s.value))(r)&&(l.value[e]||(l.value[e]={month:0,year:0}),l.value[e].month=yA(t)?null==(i=l.value[e])?void 0:i.month:t,l.value[e].year=yA(n)?null==(a=l.value[e])?void 0:a.year:n)},A=()=>{e.autoApply&&t("select-date")};pi(()=>{e.shadow||(o.value||(U(),h.value&&E(h.value)),P(!0),e.focusStartDate&&e.startDate&&U())});const I=Ys(()=>{var t;return!(null!=(t=e.flow)&&t.length&&!e.partialFlow)||e.flowStep===e.flow.length}),P=(t=!1)=>o.value?Array.isArray(o.value)?(i.value=o.value,F(t)):R(o.value,t):d.value.count&&t&&!e.startDate?N(OA(),t):void 0,N=(e=new Date,t=!1)=>{if((!d.value.count||!d.value.static||t)&&O(0,MT(e),LT(e)),d.value.count&&(!d.value.solo||!o.value||Array.isArray(o.value)&&p.value.enabled&&MT(o.value[0])===MT(o.value[1]??o.value[0])))for(let n=1;n<d.value.count;n++){const e=Dx(HO(OA(),{month:x.value(n-1),year:T.value(n-1)}),{months:1});l.value[n]={month:MT(e),year:LT(e)}}},R=(e,t)=>{N(e),D("hours",NT(e)),D("minutes",RT(e)),D("seconds",FT(e)),d.value.count&&t&&H()},M=(e,t)=>{e[1]&&p.value.showLastInRange?N(e[(e=>{if(d.value.count){if(d.value.solo)return 0;const t=MT(e[0]),n=MT(e[1]);return Math.abs(n-t)<d.value.count?0:1}return 1})(e)],t):N(e[0],t);const n=(t,n)=>[t(e[0]),e[1]?t(e[1]):u[n][1]];D("hours",n(NT,"hours")),D("minutes",n(RT,"minutes")),D("seconds",n(FT,"seconds"))},F=t=>{((t,n)=>{if((p.value.enabled||e.weekPicker)&&!g.value.enabled)return M(t,n);if(g.value.enabled&&n){const e=t[t.length-1];R(e,n)}})(o.value,t),d.value.count&&d.value.solo&&H()},L=(r,i)=>{const a=HO(OA(),{month:x.value(i),year:T.value(i)}),s=r<0?wx(a,1):VO(a,1);v(MT(s),LT(s),r<0,e.preventMinMaxNavigation)&&(O(i,MT(s),LT(s)),t("update-month-year",{instance:i,month:MT(s),year:LT(s)}),d.value.count&&!d.value.solo&&j(i),n())},j=e=>{for(let t=e-1;t>=0;t--){const e=VO(HO(OA(),{month:x.value(t+1),year:T.value(t+1)}),1);O(t,MT(e),LT(e))}for(let t=e+1;t<=d.value.count-1;t++){const e=wx(HO(OA(),{month:x.value(t-1),year:T.value(t-1)}),1);O(t,MT(e),LT(e))}},H=()=>{if(Array.isArray(o.value)&&2===o.value.length){const e=OA(OA(o.value[1]?o.value[1]:wx(o.value[0],1))),[t,n]=[MT(o.value[0]),LT(o.value[0])],[r,i]=[MT(o.value[1]),LT(o.value[1])];(t!==r||t===r&&n!==i)&&d.value.solo&&O(1,MT(e),LT(e))}else o.value&&!Array.isArray(o.value)&&(O(0,MT(o.value),LT(o.value)),N(OA()))},U=()=>{e.startDate&&(O(0,MT(OA(e.startDate)),LT(OA(e.startDate))),d.value.count&&j(0))},G=(e,t)=>{L("right"===e?-1:1,t)},Y=(t,n,r,i)=>{if(e.sixWeeks&&t.length<6){const a=6-t.length,s=(n.getDay()+7-i)%7,o=6-(r.getDay()+7-i)%7,[l,u]=((t,n)=>
34{switch(!0===e.sixWeeks?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==t,!0];case"fair":return[0==t||n>t,!0];default:return[!1,!1]}})(s,o);for(let e=1;e<=a;e++)if(u?!!(e%2)==l:l){const e=t[0].days[0],r=V(bx(e.value,-7),MT(n));t.unshift({days:r})}else{const e=t[t.length-1],r=e.days[e.days.length-1],i=V(bx(r.value,1),MT(n));t.push({days:i})}}return t},V=(t,n)=>{const r=OA(t),i=[];for(let a=0;a<7;a++){const t=bx(r,a),s=MT(t)!==n;i.push({text:e.hideOffsetDates&&s?"":t.getDate(),value:t,current:!s,classData:{}})}return i},q=n=>{const i=IA(OA(n.value),u.hours,u.minutes,J());t("date-update",i),g.value.enabled?UI(i,o,g.value.limit):o.value=i,r(),Rn().then(()=>{e.autoApply&&I.value&&t("auto-apply")})},$=e=>!!p.value.noDisabledRange&&YA(i.value[0],e).some(e=>y(e)),W=e=>{const t=MT(OA(e)),n=LT(OA(e));if(O(0,t,n),d.value.count>0)for(let r=1;r<d.value.count;r++){const t=VA(HO(OA(e),{year:x.value(r-1),month:T.value(r-1)}));O(r,t.month,t.year)}},z=(n,r)=>(i.value=o.value?o.value.slice():[],2===i.value.length&&!p.value.fixedStart&&!p.value.fixedEnd&&(i.value=[]),p.value.autoRange?((e,n)=>{const r=[OA(e.value),bx(OA(e.value),+p.value.autoRange)];C(r)?(n&&W(e.value),i.value=r):t("invalid-date",e.value)})(n,r):p.value.fixedStart||p.value.fixedEnd?(e=>{if($(e.value)||!_(e.value,o.value,p.value.fixedStart?0:1))return t("invalid-date",e.value);i.value=qI(OA(e.value),o,t,p)})(n):void(i.value[0]?_(OA(n.value),o.value)&&!$(n.value)?PA(OA(n.value),OA(i.value[0]))?(i.value.unshift(OA(n.value)),t("range-end",i.value[0])):(i.value[1]=OA(n.value),t("range-end",i.value[1])):(e.autoApply&&t("auto-apply-invalid",n.value),t("invalid-date",n.value)):(i.value[0]=OA(n.value),t("range-start",i.value[0])))),J=(t=!0)=>e.enableSeconds?Array.isArray(u.seconds)?t?u.seconds[0]:u.seconds[1]:u.seconds:0,K=e=>{i.value[e]=IA(i.value[e],u.hours[e],u.minutes[e],J(1!==e))},Q=()=>{var n,a;i.value.length&&(i.value[0]&&!i.value[1]?K(0):(K(0),K(1),r()),i.value[0]&&i.value[1]&&+(null==(n=i.value)?void 0:n[0])>+(null==(a=i.value)?void 0:a[1])&&(i.value.reverse(),t("range-start",i.value[0]),t("range-end",i.value[1])),o.value=i.value.slice(),YI(i.value,t,e.autoApply,e.modelAuto))},Z=()=>{if(Array.isArray(o.value))if(g.value.enabled){const e=X();o.value[o.value.length-1]=w(e)}else o.value=o.value.map((e,t)=>e&&w(e,t));else o.value=w(o.value);t("time-update")},X=()=>Array.isArray(o.value)&&o.value.length?o.value[o.value.length-1]:null;return{calendars:l,modelValue:o,month:x,year:T,time:u,disabledTimesConfig:S,today:c,validateTime:k,getCalendarDays:(t,n)=>{const r=[],i=new Date(n,t),a=new Date(n,t+1,0),s=e.weekStart,o=Ox(i,{weekStartsOn:s}),l=e=>{const n=V(e,t);if(r.push({days:n}),!r[r.length-1].days.some(e=>NA(AA(e.value),AA(a)))){const t=bx(e,7);l(t)}};return l(o),Y(r,i,a,s)},getMarker:e=>{if(m.value.markers)return SA(e.value,m.value.markers)},handleScroll:(t,n)=>{if(e.monthChangeOnScroll){const r=(new Date).getTime()-a.value.getTime(),i=Math.abs(t.deltaY);let s=500;i>1&&(s=100),i>100&&(s=0),r>s&&(a.value=new Date,L("inverse"!==e.monthChangeOnScroll?-t.deltaY:t.deltaY,n))}},handleSwipe:G,handleArrow:(t,n,r=!1)=>{e.monthChangeOnArrows&&e.vertical===r&&G(t,n)},selectDate:(n,r=!1)=>y(n.value)||!n.current&&e.hideOffsetDates?t("invalid-date",n.value):(s.value=JSON.parse(JSON.stringify(n)),p.value.enabled?void(IP(u.hours)&&IP(u.minutes)&&!g.value.enabled&&(z(n,r),Q())):q(n)),updateMonthYear:(i,a)=>{var s;O(i,a.month,a.year,!0),d.value.count&&!d.value.solo&&j(i),t("update-month-year",{instance:i,month:a.month,year:a.year}),n(d.value.solo?i:void 0);const o=null!=(s=e.flow)&&s.length?e.flow[e.flowStep]:void 0;!a.fromNav&&(o===sA.month||o===sA.year)&&r()},presetDate:(t,n)=>{VI({value:t,modelValue:o,range:p.value.enabled,timezone:n?void 0:B.value.timezone}),A(),e.multiCalendars&&Rn().then(()=>P(!0))},selectCurrentDate:()=>{const e=tA(OA(),B.value);p.value.enabled?o.value&&Array.isArray(o.value)&&o.value[0]?o.value=PA(e,o.value[0])?[e,o.value[0]]:[o.value[0],e]:o.value=[e]:o.value=e,A()},updateTime:(e,t=!0,n=!1)=>{b(e,t,n,Z)},assignMonthAndYear:N}},NP={key:0},RP=Ir({__name:"DatePicker",props:{...SI},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invali
34d-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,i=e,{calendars:a,month:s,year:o,modelValue:l,time:u,disabledTimesConfig:c,today:d,validateTime:h,getCalendarDays:p,getMarker:f,handleArrow:B,handleScroll:m,handleSwipe:g,selectDate:v,updateMonthYear:y,presetDate:C,selectCurrentDate:_,updateTime:b,assignMonthAndYear:w}=PP(i,r,function(e){var t;e||0===e?null==(t=O.value[e])||t.triggerTransition(s.value(e),o.value(e)):O.value.forEach((e,t)=>e.triggerTransition(s.value(t),o.value(t)))},function(){r("update-flow-step")}),D=Li(),{setHoverDate:E,getDayClassData:k,clearHoverDate:S}=nN(l,i),{defaultedMultiCalendars:x}=DI(i),T=en([]),O=en([]),A=en(null),I=XP(D,"calendar"),P=XP(D,"monthYear"),N=XP(D,"timePicker"),R=e=>{i.shadow||r("mount",e)};rr(a,()=>{i.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),rr(x,(e,t)=>{e.count-t.count>0&&w()},{deep:!0});const M=Ys(()=>e=>p(s.value(e),o.value(e)).map(e=>({...e,days:e.days.map(e=>(e.marker=f(e),e.classData=k(e),e))}))),F=(e,t)=>{e===sA.time&&r("time-picker-"+(t?"open":"close")),r("overlay-toggle",{open:t,overlay:e})},L=e=>{r("overlay-toggle",{open:!1,overlay:e}),r("focus-menu")};return t({clearHoverDate:S,presetDate:C,selectCurrentDate:_,toggleMonthPicker:(e,t,n=0)=>{var r;null==(r=T.value[n])||r.toggleMonthPicker(e,t)},toggleYearPicker:(e,t,n=0)=>{var r;null==(r=T.value[n])||r.toggleYearPicker(e,t)},toggleTimePicker:(e,t,n)=>{var r;null==(r=A.value)||r.toggleTimePicker(e,t,n)},handleArrow:B,updateMonthYear:y,getSidebarProps:()=>({modelValue:l,month:s,year:o,time:u,updateTime:b,updateMonthYear:y,selectDate:v,presetDate:C}),changeMonth:e=>{var t;null==(t=T.value[0])||t.handleMonthYearChange(e,!0)},changeYear:e=>{y(0,{month:s.value(0),year:o.value(0)+(e?1:-1),fromNav:!0})},selectWeekDate:(e,t)=>{var n;if(!i.range){const r=l.value?l.value:d,i=t?new Date(t):r,a=e?Ox(i,{weekStartsOn:1}):Wx(i,{weekStartsOn:1});v({value:a,current:MT(i)===s.value(0),text:"",classData:{}}),null==(n=document.getElementById(lI(a)))||n.focus()}}}),(e,t)=>(Xa(),is(Wa,null,[ds(RI,{"multi-calendars":an(x).count,collapse:e.collapse},{default:zn(({instance:n,index:a})=>[e.disableMonthYearSelect?ms("",!0):(Xa(),as(_P,Cs({key:0,ref:e=>{e&&(T.value[a]=e)},months:an(pA)(e.formatLocale,e.locale,e.monthNameFormat),years:an(hA)(e.yearRange,e.locale,e.reverseYears),month:an(s)(n),year:an(o)(n),instance:n},e.$props,{onMount:t[0]||(t[0]=e=>R(an(aA).header)),onResetFlow:t[1]||(t[1]=t=>e.$emit("reset-flow")),onUpdateMonthYear:e=>an(y)(n,e),onOverlayClosed:L,onOverlayOpened:t[2]||(t[2]=t=>e.$emit("overlay-toggle",{open:!0,overlay:t}))}),Oi({_:2},[Ti(an(P),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs(n)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),ds(AP,Cs({ref:e=>{e&&(O.value[a]=e)},"mapped-dates":M.value(n),month:an(s)(n),year:an(o)(n),instance:n},e.$props,{onSelectDate:e=>an(v)(e,1!==n),onHandleSpace:e=>((e,t=!1)=>{v(e,t),i.spaceConfirm&&r("select-date")})(e,1!==n),onSetHoverDate:t[3]||(t[3]=e=>an(E)(e)),onHandleScroll:e=>an(m)(e,n),onHandleSwipe:e=>an(g)(e,n),onMount:t[4]||(t[4]=e=>R(an(aA).calendar)),onResetFlow:t[5]||(t[5]=t=>e.$emit("reset-flow")),onTooltipOpen:t[6]||(t[6]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[7]||(t[7]=t=>e.$emit("tooltip-close",t))}),Oi({_:2},[Ti(an(I),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs({...n})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),e.enableTimePicker?(Xa(),is("div",NP,[e.$slots["time-picker"]?Ai(e.$slots,"time-picker",ue(Cs({key:0},{time:an(u),updateTime:an(b)}))):(Xa(),as(hP,Cs({key:1,ref_key:"timePickerRef",ref:A},e.$props,{hours:an(u).hours,minutes:an(u).minutes,seconds:an(u).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":an(c),"validate-time":an(h),onMount:t[8]||(t[8]=e=>R(an(aA).timePicker)),"onUpdate:hours":t[9]||(t[9]=e=>an(b)(e)),"onUpdate:minutes":t[10]||(t[10]=e=>an(b)(e,!1)),"onUpdate:seconds":t[11]||(t[11]=e=>an(b)(e,!1,!0)),onResetFlow:t[12]||(t[12]=t=>e.$emit("reset-flow")),onOverlayClosed:t[13]||(t[13]=e=>F(e,!1)),onOverlayOpened:t[14]||(t[14]=e=>F(e,!0)),onAmPmChange:t[15]||(t[15]=t=>e.$emit("am-pm-change",t))}),Oi({_:2},[Ti(an(N),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs(n)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):ms("",!0)],64))}}),MP=(e,t)=>
34{const n=en(),{defaultedMultiCalendars:r,defaultedConfig:i,defaultedHighlight:a,defaultedRange:s,propDates:o,defaultedFilters:l,defaultedMultiDates:u}=DI(e),{modelValue:c,year:d,month:h,calendars:p}=tN(e,t),{isDisabled:f}=rN(e),{selectYear:B,groupedYears:m,showYearPicker:g,isDisabled:v,toggleYearPicker:y,handleYearSelect:C,handleYear:_}=$I({modelValue:c,multiCalendars:r,range:s,highlight:a,calendars:p,propDates:o,month:h,year:d,filters:l,props:e,emit:t}),b=(t,n)=>[t,n].map(t=>IT(t,"MMMM",{locale:e.formatLocale})).join("-"),w=Ys(()=>e=>!!c.value&&(Array.isArray(c.value)?c.value.some(t=>LO(e,t)):LO(c.value,e))),D=e=>"function"==typeof a.value?a.value({quarter:Ux(e),year:LT(e)}):!!a.value.quarters.find(t=>((e,t)=>e.quarter===Ux(t)&&e.year===LT(t))(t,e)),E=Ys(()=>e=>{const t=HO(new Date,{year:d.value(e)});return function(e,t){const n=Cx(e.start),r=Cx(e.end);let i=+n>+r;const a=i?+Vx(n):+Vx(r);let s=Vx(i?r:n),o=(null==t?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,i=!i);const l=[];for(;+s<=a;)l.push(Cx(s)),s=Mx(s,o);return i?l.reverse():l}({start:$x(t),end:qx(t)}).map(e=>{const t=Vx(e),r=zx(e),i=f(e),a=(e=>{if(s.value.enabled){if(Array.isArray(c.value)){const t=NA(e,c.value[0])||NA(e,c.value[1]);return MA(c.value,n.value,e)&&!t}return!1}return!1})(t),o=D(t);return{text:b(t,r),value:t,active:w.value(t),highlighted:o,disabled:i,isBetween:a}})});return{defaultedConfig:i,defaultedMultiCalendars:r,groupedYears:m,year:d,isDisabled:v,quarters:E,showYearPicker:g,modelValue:c,setHoverDate:e=>{n.value=e},selectYear:B,selectQuarter:(n,r,i)=>{if(!i)return p.value[r].month=MT(zx(n)),u.value.enabled?(e=>{UI(e,c,u.value.limit),t("auto-apply",!0)})(n):s.value.enabled?(n=>{c.value=GI(c,n,t),YI(c.value,t,e.autoApply,e.modelAuto)})(n):(e=>{c.value=e,t("auto-apply")})(n)},toggleYearPicker:y,handleYearSelect:C,handleYear:_}},FP={class:"dp--quarter-items"},LP=["data-test","disabled","onClick","onMouseover"],jP=Ir({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...SI},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,i=e,a=Li(),s=XP(a,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:u,year:c,isDisabled:d,quarters:h,modelValue:p,showYearPicker:f,setHoverDate:B,selectQuarter:m,toggleYearPicker:g,handleYearSelect:v,handleYear:y}=MP(i,r);return t({getSidebarProps:()=>({modelValue:p,year:c,selectQuarter:m,handleYearSelect:v,handleYear:y})}),(e,t)=>(Xa(),as(RI,{"multi-calendars":an(o).count,collapse:e.collapse,stretch:""},{default:zn(({instance:t})=>[cs("div",{class:"dp-quarter-picker-wrap",style:re({minHeight:`${an(l).modeHeight}px`})},[e.$slots["top-extra"]?Ai(e.$slots,"top-extra",{key:0,value:e.internalModelValue}):ms("",!0),cs("div",null,[ds(HI,Cs(e.$props,{items:an(u)(t),instance:t,"show-year-picker":an(f)[t],year:an(c)(t),"is-disabled":e=>an(d)(t,e),onHandleYear:e=>an(y)(t,e),onYearSelect:e=>an(v)(e,t),onToggleYearPicker:e=>an(g)(t,null==e?void 0:e.flow,null==e?void 0:e.show)}),Oi({_:2},[Ti(an(s),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs(n)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),cs("div",FP,[(Xa(!0),is(Wa,null,Ti(an(h)(t),(n,r)=>(Xa(),is("div",{key:r},[cs("button",{type:"button",class:le(["dp--qr-btn",{"dp--qr-btn-active":n.active,"dp--qr-btn-between":n.isBetween,"dp--qr-btn-disabled":n.disabled,"dp--highlighted":n.highlighted}]),"data-test":n.value,disabled:n.disabled,onClick:e=>an(m)(n.value,t,n.disabled),onMouseover:e=>an(B)(n.value)},[e.$slots.quarter?Ai(e.$slots,"quarter",{key:0,value:n.value,text:n.text}):(Xa(),is(Wa,{key:1},[fs(we(n.text),1)],64))],42,LP)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),HP=["id","aria-label"],UP={key:0,class:"dp--menu-load-container"},GP=[cs("span",{class:"dp--menu-loader"},null,-1)],YP={key:0,class:"dp__sidebar_left"},VP=["data-test","onClick","onKeydown"],qP={key:2,class:"dp__sidebar_right"},$P={key:3,class:"dp__action_extra"},WP=Ir({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...kI,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invali
34d-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,i=e,a=en(null),s=Ys(()=>{const{openOnTop:e,...t}=i;return{...t,flowStep:E.value,collapse:i.collapse,noOverlayFocus:i.noOverlayFocus,menuWrapRef:a.value}}),{setMenuFocused:o,setShiftKey:l,control:u}=cI(),c=Li(),{defaultedTextInput:d,defaultedInline:h,defaultedConfig:p,defaultedUI:f}=DI(i),B=en(null),m=en(0),g=en(null),v=en(!1),y=en(null);pi(()=>{if(!i.shadow){v.value=!0,C(),window.addEventListener("resize",C);const e=fA(a);if(e&&!d.value.enabled&&!h.value.enabled&&(o(!0),I()),e){const t=e=>{p.value.allowPreventDefault&&e.preventDefault(),wA(e,p.value,!0)};e.addEventListener("pointerdown",t),e.addEventListener("mousedown",t)}}}),gi(()=>{window.removeEventListener("resize",C)});const C=()=>{const e=fA(g);e&&(m.value=e.getBoundingClientRect().width)},{arrowRight:_,arrowLeft:b,arrowDown:w,arrowUp:D}=yI(),{flowStep:E,updateFlowStep:k,childMount:S,resetFlow:x,handleFlow:T}=aN(i,r,y),O=Ys(()=>i.monthPicker?zI:i.yearPicker?KI:i.timePicker?BP:i.quarterPicker?jP:RP),A=Ys(()=>{var e;if(p.value.arrowLeft)return p.value.arrowLeft;const t=null==(e=a.value)?void 0:e.getBoundingClientRect(),n=i.getInputRect();return(null==n?void 0:n.width)<(null==m?void 0:m.value)&&(null==n?void 0:n.left)<=((null==t?void 0:t.left)??0)?(null==n?void 0:n.width)/2+"px":(null==n?void 0:n.right)>=((null==t?void 0:t.right)??0)&&(null==n?void 0:n.width)<(null==m?void 0:m.value)?(null==m?void 0:m.value)-(null==n?void 0:n.width)/2+"px":"50%"}),I=()=>{const e=fA(a);e&&e.focus({preventScroll:!0})},P=Ys(()=>{var e;return(null==(e=y.value)?void 0:e.getSidebarProps())||{}}),N=()=>{i.openOnTop&&r("recalculate-position")},R=XP(c,"action"),M=Ys(()=>i.monthPicker||i.yearPicker?XP(c,"monthYear"):i.timePicker?XP(c,"timePicker"):XP(c,"shared")),F=Ys(()=>i.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),L=Ys(()=>({dp__menu_disabled:i.disabled,dp__menu_readonly:i.readonly,"dp-menu-loading":i.loading})),j=Ys(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,[i.menuClassName]:!!i.menuClassName,...f.value.menu??{}})),H=e=>{wA(e,p.value,!0)},U=()=>{I(),r("time-picker-close")},G=(e,...t)=>{var n,r;null!=(n=y.value)&&n[e]&&(null==(r=y.value)||r[e](...t))},Y=()=>{G("selectCurrentDate")},V=(e,t)=>{G("presetDate",e,t)},q=()=>{G("clearHoverDate")},$=(e,t)=>{e.preventDefault(),(e=>{if(i.arrowNavigation){if(e===lA.up)return D();if(e===lA.down)return w();if(e===lA.left)return b();e===lA.right&&_()}else e===lA.left||e===lA.up?G("handleArrow",lA.left,0,e===lA.up):G("handleArrow",lA.right,0,e===lA.down)})(t)},W=e=>{var t;if((e=>{l(e.shiftKey),!i.disableMonthYearSelect&&e.code===uA.tab&&e.target.classList.contains("dp__menu")&&u.value.shiftKeyInMenu&&(e.preventDefault(),wA(e,p.value,!0),r("close-picker"))})(e),e.key===uA.home||e.key===uA.end)return G("selectWeekDate",e.key===uA.home,e.target.getAttribute("id"));switch((e.key===uA.pageUp||e.key===uA.pageDown)&&(e.shiftKey?G("changeYear",e.key===uA.pageUp):G("changeMonth",e.key===uA.pageUp),e.target.getAttribute("id")&&(null==(t=a.value)||t.focus({preventScroll:!0}))),e.key){case uA.esc:return void(i.escClose&&r("close-picker"));case uA.arrowLeft:return $(e,lA.left);case uA.arrowRight:return $(e,lA.right);case uA.arrowUp:return $(e,lA.up);case uA.arrowDown:return $(e,lA.down);default:return}};return t({updateMonthYear:(e,t)=>{G("updateMonthYear",e,t)},switchView:(e,t=0)=>{var n,r,i;return"month"===e?null==(n=y.value)?void 0:n.toggleMonthPicker(!1,!0,t):"year"===e?null==(r=y.value)?void 0:r.toggleYearPicker(!1,!0,t):"time"===e?null==(i=y.value)?void 0:i.toggleTimePicker(!0,!1):(e=>{var t,n,r;null==(t=y.value)||t.toggleTimePicker(!1,!1),null==(n=y.value)||n.toggleMonthPicker(!1,!1,e),null==(r=y.value)||r.toggleYearPicker(!1,!1,e)})(t)},handleFlow:T}),(t,n)=>{var r,i,o;return Xa(),is("div",{id:t.uid?`dp-menu-${t.uid}
34`:void 0,ref_key:"dpMenuRef",ref:a,tabindex:"0",role:"dialog","aria-label":null==(r=t.ariaLabels)?void 0:r.menu,class:le(j.value),style:re({"--dp-arrow-left":A.value}),onMouseleave:q,onClick:H,onKeydown:W},[(t.disabled||t.readonly)&&an(h).enabled||t.loading?(Xa(),is("div",{key:0,class:le(L.value)},[t.loading?(Xa(),is("div",UP,GP)):ms("",!0)],2)):ms("",!0),an(h).enabled||t.teleportCenter?ms("",!0):(Xa(),is("div",{key:1,class:le(F.value)},null,2)),cs("div",{ref_key:"innerMenuRef",ref:g,class:le({dp__menu_content_wrapper:(null==(i=t.presetDates)?void 0:i.length)||!!t.$slots["left-sidebar"]||!!t.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&((null==(o=t.presetDates)?void 0:o.length)||!!t.$slots["left-sidebar"]||!!t.$slots["right-sidebar"])}),style:re({"--dp-menu-width":`${m.value}px`})},[t.$slots["left-sidebar"]?(Xa(),is("div",YP,[Ai(t.$slots,"left-sidebar",ue(hs(P.value)))])):ms("",!0),t.presetDates.length?(Xa(),is("div",{key:1,class:le({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(Xa(!0),is(Wa,null,Ti(t.presetDates,(n,r)=>(Xa(),is(Wa,{key:r},[n.slot?Ai(t.$slots,n.slot,{key:0,presetDate:V,label:n.label,value:n.value}):(Xa(),is("button",{key:1,type:"button",style:re(n.style||{}
34),class:le(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":n.testId??void 0,onClick:Ol(e=>V(n.value,n.noTz),["prevent"]),onKeydown:e=>an(xA)(e,()=>V(n.value,n.noTz),!0)},we(n.label),47,VP))],64))),128))],2)):ms("",!0),cs("div",{ref_key:"calendarWrapperRef",ref:B,class:"dp__instance_calendar",role:"document"},[(Xa(),as(Ei(O.value),Cs({ref_key:"dynCmpRef",ref:y},s.value,{"flow-step":an(E),onMount:an(S),onUpdateFlowStep:an(k),onResetFlow:an(x),onFocusMenu:I,onSelectDate:n[0]||(n[0]=e=>t.$emit("select-date")),onDateUpdate:n[1]||(n[1]=e=>t.$emit("date-update",e)),onTooltipOpen:n[2]||(n[2]=e=>t.$emit("tooltip-open",e)),onTooltipClose:n[3]||(n[3]=e=>t.$emit("tooltip-close",e)),onAutoApply:n[4]||(n[4]=e=>t.$emit("auto-apply",e)),onRangeStart:n[5]||(n[5]=e=>t.$emit("range-start",e)),onRangeEnd:n[6]||(n[6]=e=>t.$emit("range-end",e)),onInvalidFixedRange:n[7]||(n[7]=e=>t.$emit("invalid-fixed-range",e)),onTimeUpdate:n[8]||(n[8]=e=>t.$emit("time-update")),onAmPmChange:n[9]||(n[9]=e=>t.$emit("am-pm-change",e)),onTimePickerOpen:n[10]||(n[10]=e=>t.$emit("time-picker-open",e)),onTimePickerClose:U,onRecalculatePosition:N,onUpdateMonthYear:n[11]||(n[11]=e=>t.$emit("update-month-year",e)),onAutoApplyInvalid:n[12]||(n[12]=e=>t.$emit("auto-apply-invalid",e)),onInvalidDate:n[13]||(n[13]=e=>t.$emit("invalid-date",e)),onOverlayToggle:n[14]||(n[14]=e=>t.$emit("overlay-toggle",e)),"onUpdate:internalModelValue":n[15]||(n[15]=e=>t.$emit("update:internal-model-value",e))}),Oi({_:2},[Ti(M.value,(e,n)=>({name:e,fn:zn(n=>[Ai(t.$slots,e,ue(hs({...n})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),t.$slots["right-sidebar"]?(Xa(),is("div",qP,[Ai(t.$slots,"right-sidebar",ue(hs(P.value)))])):ms("",!0),t.$slots["action-extra"]?(Xa(),is("div",$P,[t.$slots["action-extra"]?Ai(t.$slots,"action-extra",{key:0,selectCurrentDate:Y}):ms("",!0)])):ms("",!0)],6),!t.autoApply||an(p).keepActionRow?(Xa(),as(OI,Cs({key:2,"menu-mount":v.value},s.value,{"calendar-width":m.value,onClosePicker:n[16]||(n[16]=e=>t.$emit("close-picker")),onSelectDate:n[17]||(n[17]=e=>t.$emit("select-date")),onInvalidSelect:n[18]||(n[18]=e=>t.$emit("invalid-select")),onSelectNow:Y}),Oi({_:2},[Ti(an(R),(e,n)=>({name:e,fn:zn(n=>[Ai(t.$slots,e,ue(hs({...n})))])}))]),1040,["menu-mount","calendar-width"])):ms("",!0)],46,HP)}}});var zP=(e=>(e.center="center",e.left="left",e.right="right",e))(zP||{});const JP=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:r,inline:i,emit:a,props:s,slots:o})=>{const l=en({}),u=en(!1),c=en({top:"0",left:"0"}),d=en(!1),h=fn(s,"teleportCenter");rr(h,()=>{c.value=JSON.parse(JSON.stringify({})),g()});const p=(e,t)=>{c.value.left=e+t-l.value.width+"px"},f=e=>{c.value.left=`${e}px`},B=(e,t)=>{s.position===zP.left&&f(e),s.position===zP.right&&p(e,t),s.position===zP.center&&(c.value.left=e+t/2-l.value.width/2+"px")},m=e=>{const{width:t,height:n}=e.getBoundingClientRect(),{top:r,left:i}=s.altPosition?s.altPosition(e):(e=>{if(s.teleport){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}return{top:0,left:0}})(e);return{top:+r,left:+i,width:t,height:n}},g=(r=!0)=>{var o;if(!i.value.enabled){if(h.value)return c.value.left="50%",c.value.top="50%",c.value.transform="translate(-50%, -50%)",c.value.position="fixed",void delete c.value.opacity;if(null!==s.altPosition)return(()=>{const e=fA(n),{top:t,left:r,transform:i}=s.altPosition(e);c.value={top:`${t}px`,left:`${r}px`,transform:i??""}})();if(r){const n=s.teleport?null==(o=t.value)?void 0:o.$el:e.value;n&&(l.value=n.getBoundingClientRect()),a("recalculate-position")}return b()}},v=({inputEl:e,left:t,width:n})=>{window.screen.width>768&&!u.value&&B(t,n),C(e)},y=e=>{const{top:t,left:n,height:r,width:i}=m(e);c.value.top=`${r+t+ +s.offset}px`,d.value=!1,u.value||(c.value.left=n+i/2-l.value.width/2+"px"),v({inputEl:e,left:n,width:i})},C=e=>{if(s.autoPosition){const{left:t,width:n}=m(e),{left:r,right:i}=l.value;if(!u.value){if(Math.abs(r)!==Math.abs(i)){if(r<=0)return u.value=!0,f(t);if(i>=document.documentElement.clientWidth)return u.value=!0,p(t,n)}return B(t,n)}}},_=e=>(()=>{const e=fA(n);if(e){const{height:t}=l.value,{top:n,height:r}=e.getBoundingClientRect(),i=window.innerHeight-n-r,a=n;return t<=i?iA.bottom:t>i&&t<=a?iA.top:i>=a?iA.bottom:iA.top}return iA.bottom})()===iA.bottom?y(e):(e=>{const{top:t,left:n,width:r}=m(e);c.value.top=t-+s.offset-l.value.height+"px",d.value=!0,v({inputEl:e,left:n,width:r})})(e),b=()=>{const e=fA(n);if(e)return s.autoPosition?_(e):y(e)},w=function(e){return e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?function(e){if(e){const t=e.scrollHeight>e.clientHeight,n=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!n}return!0}(e)?e:w(e.assignedSlot?e.assignedSlot.parentNode:e.parentNode):window};return{openOnTop:d,menuStyle:c,xCorrect:u,setMenuPosition:g,getScrollableParent:w,shadowRender:(e,t)=>{var i,a,u;const c=document.createElement("div"),d=null==(i=fA(n))?void 0:i.getBoundingClientRect();
34c.setAttribute("id","dp--temp-container");const h=null!=(a=r.value)&&a.clientWidth?r.value:document.body;h.append(c);const p=(e=>{if(e)switch(s.position){case zP.left:return{left:0,transform:"translateX(0)"};case zP.right:return{left:`${e.width}px`,transform:"translateX(-100%)"};default:return{left:e.width/2+"px",transform:"translateX(-50%)"}}return{}})(d),f=Vs(e,{...t,shadow:!0,style:{opacity:0,position:"absolute",...p}},Object.fromEntries(Object.keys(o).filter(e=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(e)).map(e=>[e,o[e]])));Ll(f,c),l.value=null==(u=f.el)?void 0:u.getBoundingClientRect(),Ll(null,c),h.removeChild(c)}}},KP=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]}],QP=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],ZP={all:()=>KP,monthYear:()=>KP.filter(e=>e.use.includes("month-year")),input:()=>QP,timePicker:()=>KP.filter(e=>e.use.includes("time")),action:()=>KP.filter(e=>e.use.includes("action")),calendar:()=>KP.filter(e=>e.use.includes("calendar")),menu:()=>KP.filter(e=>e.use.includes("menu")),shared:()=>KP.filter(e=>e.use.includes("shared")),yearMode:()=>KP.filter(e=>e.use.includes("year-mode"))},XP=(e,t,n)=>{const r=[];return ZP[t]().forEach(t=>{e[t.name]&&r.push(t.name)}),null!=n&&n.length&&n.forEach(e=>{e.slot&&r.push(e.slot)}),r},eN=e=>{const t=Ys(()=>t=>e.value?t?e.value.open:e.value.close:""),n=Ys(()=>t=>e.value?t?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},tN=(e,t,n)=>{const{defaultedRange:r,defaultedTz:i}=DI(e),a=OA(eA(OA(),i.value.timezone)),s=en([{month:MT(a),year:LT(a)}]),o=e=>{const t={hours:NT(a),minutes:RT(a),seconds:0};return r.value.enabled?[t[e],t[e]]:t[e]},l=Ht({hours:o("hours"),minutes:o("minutes"),seconds:o("seconds")});rr(r,(e,t)=>{e.enabled!==t.enabled&&(l.hours=o("hours"),l.minutes=o("minutes"),l.seconds=o("seconds"))},{deep:!0});const u=Ys({get:()=>e.internalModelValue,set:n=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",n)}}),c=Ys(()=>e=>s.value[e]?s.value[e].month:0),d=Ys(()=>e=>s.value[e]?s.value[e].year:0);return rr(u,(e,t)=>{n&&JSON.stringify(e??{})!==JSON.stringify(t??{})&&n()},{deep:!0}),{calendars:s,time:l,modelValue:u,month:c,year:d,today:a}},nN=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:i,defaultedHighlight:a,defaultedTz:s,propDates:o,defaultedRange:l}=DI(t),{isDisabled:u}=rN(t),c=en(null),d=en(eA(new Date,s.value.timezone)),h=(n,r=!0)=>(l.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&2===e.value.length?!(t.hideOffsetDates&&!n.current)&&NA(OA(n.value),e.value[r?0:1]):!!l.value.enabled&&(((t,n)=>{const r=e.value&&Array.isArray(e.value)&&e.value?n?e.value[0]||null:e.value[1]:null;return NA(OA(t.value),r)})(n,r)&&(t=>{const n=Array.isArray(e.value)?e.value[0]:null;return!t||!PA(c.value??null,n)})(r)||NA(n.value,Array.isArray(e.value)?e.value[0]:null)&&(t=>!(Array.isArray(e.value)&&l.value.enabled&&e.value[0]&&c.value)||(t?RA(c.value,e.value[0]):PA(c.value,e.value[0])))(r)),p=(t,n)=>{if(Array.isArray(e.value)&&e.value[0]&&1===e.value.length){const r=NA(t.value,c.value);return n?RA(e.value[0],t.value)&&r:PA(e.value[0],t.value)&&r}return!1},f=n=>!(!e.value||t.hideOffsetDates&&!n.current)&&(l.value.enabled?!(!t.modelAuto||!Array.isArray(e.value))&&NA(n.value,e.value[0]?e.value[0]:d.value):r.value.enabled&&Array.isArray(e.value)?e.value.some(e=>NA(e,n.value)):NA(n.value,e.value?e.value:d.value)),B=e=>{if(l.value.autoRange||t.weekPicker){if(c.value){if(t.hideOffsetDates&&!e.current)return!1;const n=bx(c.value,+l.value.autoRange),r=qA(OA(c.value),t.weekStart);return t.weekPicker?NA(r[1],OA(e.value)):NA(n,OA(e.value))}return!1}return!1},m=e=>{if(l.value.autoRange||t.weekPicker){if(c.value){const n=bx(c.value,+l.value.autoRange);
34if(t.hideOffsetDates&&!e.current)return!1;const r=qA(OA(c.value),t.weekStart);return t.weekPicker?RA(e.value,r[0])&&PA(e.value,r[1]):RA(e.value,c.value)&&PA(e.value,n)}return!1}return!1},g=e=>{if(l.value.autoRange||t.weekPicker){if(c.value){if(t.hideOffsetDates&&!e.current)return!1;const n=qA(OA(c.value),t.weekStart);return t.weekPicker?NA(n[0],e.value):NA(c.value,e.value)}return!1}return!1},v=()=>!t.modelAuto||BA(t.internalModelValue),y=e=>{if(t.weekPicker)return!1;const n=!l.value.enabled||!h(e)&&!h(e,!1);return!u(e.value)&&!f(e)&&!(!e.current&&t.hideOffsetDates)&&n},C=e=>l.value.enabled?!!t.modelAuto&&!(!t.modelAuto||!Array.isArray(t.internalModelValue)||!t.internalModelValue[0])&&f(e):f(e),_=e=>!!a.value&&((e,t)=>!e||!!t&&(t instanceof Map?!!SA(e,t):t(OA(e))))(e.value,o.value.highlight),b=e=>{const t=u(e.value);return t&&("function"==typeof a.value?!a.value(e.value,t):!a.value.options.highlightDisabled)},w=e=>{var t;return"function"==typeof a.value?a.value(e.value):null==(t=a.value.weekdays)?void 0:t.includes(e.value.getDay())},D=r=>!(!l.value.enabled&&!t.weekPicker||n.value.count>0&&!r.current||!v()||!r.current&&t.hideOffsetDates||f(r))&&(t=>MA(e.value,c.value,t.value))(r),E=e=>{const{isRangeStart:n,isRangeEnd:r}=S(e),i=!!l.value.enabled&&(n||r);return{dp__cell_offset:!e.current,dp__pointer:!(t.disabled||!e.current&&t.hideOffsetDates||u(e.value)),dp__cell_disabled:u(e.value),dp__cell_highlight:!b(e)&&(_(e)||w(e))&&!C(e)&&!i&&!g(e)&&!(D(e)&&t.weekPicker)&&!r,dp__cell_highlight_active:!b(e)&&(_(e)||w(e))&&C(e),dp__today:!t.noToday&&NA(e.value,d.value)&&e.current,"dp--past":PA(e.value,d.value),"dp--future":RA(e.value,d.value)}},k=e=>({dp__active_date:C(e),dp__date_hover:y(e)}),S=e=>({isRangeStart:n.value.count>0?e.current&&h(e)&&v():h(e)&&v(),isRangeEnd:n.value.count>0?e.current&&h(e,!1)&&v():h(e,!1)&&v()}),x=e=>{const{isRangeStart:n,isRangeEnd:r}=S(e);return{dp__range_start:n,dp__range_end:r,dp__range_between:D(e),dp__date_hover:NA(e.value,c.value)&&!n&&!r&&!t.weekPicker,dp__date_hover_start:p(e,!0),dp__date_hover_end:p(e,!1)}},T=e=>({...x(e),dp__cell_auto_range:m(e),dp__cell_auto_range_start:g(e),dp__cell_auto_range_end:B(e)}),O=n=>l.value.enabled?l.value.autoRange?T(n):t.modelAuto?{...k(n),...x(n)}:t.weekPicker?(n=>{if(e.value&&Array.isArray(e.value)){const r=qA(e.value[0],t.weekStart),i=e.value[1]?qA(e.value[1],t.weekStart):[];return{...T(n),dp__range_start:NA(r[0],n.value)||NA(i[0],n.value),dp__range_end:NA(r[1],n.value)||NA(i[1],n.value),dp__range_between_week:RA(n.value,r[0])&&PA(n.value,r[1])||RA(n.value,i[0])&&PA(n.value,i[1]),dp__range_between:RA(n.value,r[1])&&PA(n.value,i[0])}}return{...T(n)}})(n):x(n):t.weekPicker?(n=>{if(e.value&&!Array.isArray(e.value)){const r=qA(e.value,t.weekStart);return{...T(n),dp__range_start:NA(r[0],n.value),dp__range_end:NA(r[1],n.value),dp__range_between_week:RA(n.value,r[0])&&PA(n.value,r[1])}}return{...T(n)}})(n):k(n);return{setHoverDate:e=>{!e.current&&t.hideOffsetDates||(c.value=e.value)},clearHoverDate:()=>{c.value=null},getDayClassData:e=>t.hideOffsetDates&&!e.current?{}:{...E(e),...O(e),[t.dayClass?t.dayClass(e.value,t.internalModelValue):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName,...i.value.calendarCell??{}}}},rN=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:r,defaultedMultiDates:i}=DI(e),a=n=>{const i=(t=>!!r.value.maxDate&&(e.yearPicker?LT(t)>LT(r.value.maxDate):RA(t,r.value.maxDate)))(n),a=(t=>!!r.value.minDate&&(e.yearPicker?LT(t)<LT(r.value.minDate):PA(t,r.value.minDate)))(n),s=(e=>!!r.value.disabledDates&&("function"==typeof r.value.disabledDates?r.value.disabledDates(OA(e)):!!SA(e,r.value.disabledDates)))(n),o=t.value.months.map(e=>+e).includes(MT(n)),u=!!e.disabledWeekDays.length&&e.disabledWeekDays.some(e=>+e===Cx(n).getDay()),c=l(n),d=LT(n),h=d<+e.yearRange[0]||d>+e.yearRange[1];return!(i||a||s||o||h||u||c)},s=(e,t)=>PA(...WA(r.value.minDate,e,t))||NA(...WA(r.value.minDate,e,t)),o=(e,t)=>RA(...WA(r.value.maxDate,e,t))||NA(...WA(r.value.maxDate,e,t)),l=e=>!(!Array.isArray(r.value.allowedDates)||r.value.allowedDates.length)||!!r.value.allowedDates&&!SA(e,r.value.allowedDates),u=e=>!a(e),c=t=>{if(t){const n=LT(t);return n>=+e.yearRange[0]&&n<=e.yearRange[1]}return!0},d=(e,t,n)=>e.find(e=>+e.hours===NT(t)&&"*"===e.minutes||+e.minutes===RT(t)&&+e.hours===NT(t))&&n,h=(t,n)=>{const r=Array.isArray(n)?n:[n];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?((e,t,n
34)=>{const[r,i]=e,[a,s]=t;return!d(r,a,n)&&!d(i,s,n)&&n})(e.disabledTimes,r,t):!r.some(n=>d(e.disabledTimes,n,t)):t},p=(t,n)=>e.disabledTimes?Array.isArray(e.disabledTimes)?h(n,t):((t,n)=>{const r=Array.isArray(n)?[jA(n[0]),n[1]?jA(n[1]):void 0]:jA(n),i=!e.disabledTimes(r);return t&&i})(n,t):n,f=t=>{let n=!0;if(!t||!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation)return!0;const i=r.value.minDate||r.value.maxDate?t:(e=>Array.isArray(e)?[e[0]?aI(e[0]):null,e[1]?aI(e[1]):null]:aI(e))(t);return(e.maxTime||r.value.maxDate)&&(n=iI(e.maxTime,r.value.maxDate,"max",i,n)),(e.minTime||r.value.minDate)&&(n=iI(e.minTime,r.value.minDate,"min",i,n)),p(t,n)},B=t=>{if(!e.monthPicker)return!0;let n=!0;const i=OA(FA(t));if(r.value.minDate&&r.value.maxDate){const e=OA(FA(r.value.minDate)),t=OA(FA(r.value.maxDate));return RA(i,e)&&PA(i,t)||NA(i,e)||NA(i,t)}if(r.value.minDate){const e=OA(FA(r.value.minDate));n=RA(i,e)||NA(i,e)}if(r.value.maxDate){const e=OA(FA(r.value.maxDate));n=PA(i,e)||NA(i,e)}return n},m=Ys(()=>t=>!(e.enableTimePicker&&!e.ignoreTimeValidation)||f(t)),g=Ys(()=>t=>!e.monthPicker||(Array.isArray(t)&&(n.value.enabled||i.value.enabled)?!t.filter(e=>!B(e)).length:B(t)));return{isDisabled:u,validateDate:a,validateMonthYearInRange:(e,t,n,i)=>{let a=!1;return i?r.value.minDate&&r.value.maxDate?a=((e,t,n)=>{let i=!1;return r.value.maxDate&&n&&o(e,t)&&(i=!0),r.value.minDate&&!n&&s(e,t)&&(i=!0),i})(e,t,n):(r.value.minDate&&s(e,t)||r.value.maxDate&&o(e,t))&&(a=!0):a=!0,a},isDateRangeAllowed:e=>!n.value.noDisabledRange||!Yx({start:e[0],end:e[1]}).some(e=>u(e)),checkMinMaxRange:(e,t,r=0)=>{if(((e,t)=>!!(Array.isArray(e)&&e[t]&&(n.value.maxRange||n.value.minRange)&&c(e[t])))(t,r)&&c(e)){const i=Rx(e,t[r]),a=YA(t[r],e),s=1===a.length?0:a.filter(e=>u(e)).length,o=Math.abs(i)-(n.value.minMaxRawRange?0:s);if(n.value.minRange&&n.value.maxRange)return o>=+n.value.minRange&&o<=+n.value.maxRange;if(n.value.minRange)return o>=+n.value.minRange;if(n.value.maxRange)return o<=+n.value.maxRange}return!0},isValidTime:f,isTimeValid:m,isMonthValid:g}},iN=()=>({hideNavigationButtons:Ys(()=>(e,t)=>null==e?void 0:e.includes(t)),showLeftIcon:Ys(()=>(e,t)=>!e.count||!!e.solo||0===t),showRightIcon:Ys(()=>(e,t)=>!e.count||!!e.solo||t===e.count-1)}),aN=(e,t,n)=>{const r=en(0),i=Ht({[aA.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[aA.calendar]:!1,[aA.header]:!1}),a=Ys(()=>e.monthPicker||e.timePicker),s=()=>{r.value=-1},o=(t,i,...a)=>{var s,o;e.flow[r.value]===t&&n.value&&(null==(o=(s=n.value)[i])||o.call(s,...a))},l=(t=0)=>{t&&(r.value+=t),o(sA.month,"toggleMonthPicker",!0),o(sA.year,"toggleYearPicker",!0),o(sA.calendar,"toggleTimePicker",!1,!0),o(sA.time,"toggleTimePicker",!0,!0);const n=e.flow[r.value];(n===sA.hours||n===sA.minutes||n===sA.seconds)&&o(n,"toggleTimePicker",!0,!0,n)};return{childMount:t=>{var n;if(null!=(n=e.flow)&&n.length){if(!t&&a.value)return l();i[t]=!0,Object.keys(i).filter(e=>!i[e]).length||l()}},updateFlowStep:()=>{var n,i;null!=(n=e.flow)&&n.length&&-1!==r.value&&(r.value+=1,t("flow-step",r.value),l()),(null==(i=e.flow)?void 0:i.length)===r.value&&Rn().then(()=>s())},resetFlow:s,handleFlow:l,flowStep:r}},sN={key:1,class:"dp__input_wrap"},oN=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],lN={key:2,class:"dp__clear_icon"},uN=Ir({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...kI},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=n,i=e,{defaultedTextInput:a,defaultedAriaLabels:s,defaultedInline:o,defaultedConfig:l,defaultedRange:u,defaultedMultiDates:c,defaultedUI:d,getDefaultPattern:h,getDefaultStartTime:p}=DI(i),{checkMinMaxRange:f}=rN(i),B=en(),m=en(null),g=en(!1),v=en(!1),y=Ys(()=>({dp__pointer:!i.disabled&&!i.readonly&&!a.value.enabled,dp__disabled:i.disabled,dp__input_readonly:!a.value.enabled,dp__input:!0,dp__input_icon_pad:!i.hideInputIcon,dp__input_valid:!!i.state,d
34p__input_invalid:!1===i.state,dp__input_focus:g.value||i.isMenuOpen,dp__input_reg:!a.value.enabled,[i.inputClassName]:!!i.inputClassName,...d.value.input??{}})),C=e=>{const t=p();return((e,t,n,r,i,a)=>{const s=Array.isArray(n)?n[0]:n;if("string"==typeof t)return TA(e,t,s,r,i,a);if(Array.isArray(t)){let n=null;for(const o of t)if(n=TA(e,o,s,r,i,a),n)break;return n}return"function"==typeof t?t(e):null})(e,a.value.format??h(),t??$A({},i.enableSeconds),i.inputValue,v.value,i.formatLocale)},_=()=>{v.value=!0},b=e=>{if(u.value.enabled)(e=>{const{rangeSeparator:t}=a.value,[n,r]=e.split(`${t}`);if(n){const e=C(n.trim()),t=r?C(r.trim()):null;if(jT(e,t))return;const i=e&&t?[e,t]:[e];f(t,i,0)&&(B.value=e?i:null)}})(e);else if(c.value.enabled){const t=e.split(";");B.value=t.map(e=>C(e.trim())).filter(e=>e)}else B.value=C(e)},w=e=>{var t;const n="string"==typeof e?e:null==(t=e.target)?void 0:t.value;""!==n?(a.value.openMenu&&!i.isMenuOpen&&r("open"),b(n),r("set-input-date",B.value)):(r("set-input-date",null),i.clearable&&i.autoApply&&(r("set-empty-date"),B.value=null)),v.value=!1,r("update:input-value",n)},D=e=>{a.value.enabled?(b(e.target.value),a.value.enterSubmit&&tI(B.value)&&""!==i.inputValue?(r("set-input-date",B.value,!0),B.value=null):a.value.enterSubmit&&""===i.inputValue&&(B.value=null,r("clear"))):S(e)},E=e=>{a.value.enabled&&a.value.tabSubmit&&b(e.target.value),a.value.tabSubmit&&tI(B.value)&&""!==i.inputValue?(r("set-input-date",B.value,!0,!0),B.value=null):a.value.tabSubmit&&""===i.inputValue&&(B.value=null,r("clear",!0))},k=()=>{g.value=!0,r("focus"),Rn().then(()=>{var e;a.value.enabled&&a.value.selectOnFocus&&(null==(e=m.value)||e.select())})},S=e=>{e.preventDefault(),wA(e,l.value,!0),a.value.enabled&&a.value.openMenu&&!o.value.input&&!i.isMenuOpen?r("open"):a.value.enabled||r("toggle")},x=()=>{r("real-blur"),g.value=!1,(!i.isMenuOpen||o.value.enabled&&o.value.input)&&r("blur"),i.autoApply&&a.value.enabled&&B.value&&!i.isMenuOpen&&(r("set-input-date",B.value),r("select-date"),B.value=null)},T=e=>{wA(e,l.value,!0),r("clear")},O=e=>{if("Tab"===e.key&&E(e),"Enter"===e.key&&D(e),!a.value.enabled){if("Tab"===e.code)return;e.preventDefault()}};return t({focusInput:()=>{var e;null==(e=m.value)||e.focus({preventScroll:!0})},setParsedDate:e=>{B.value=e}}),(t,n)=>{var i;return Xa(),is("div",{onClick:S},[!t.$slots.trigger||t.$slots["dp-input"]||an(o).enabled?ms("",!0):Ai(t.$slots,"trigger",{key:0}),t.$slots.trigger||an(o).enabled&&!an(o).input?ms("",!0):(Xa(),is("div",sN,[t.$slots["dp-input"]&&!t.$slots.trigger&&(!an(o).enabled||an(o).enabled&&an(o).input)?Ai(t.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:w,onEnter:D,onTab:E,onClear:T,onBlur:x,onKeypress:O,onPaste:_,onFocus:k,openMenu:()=>t.$emit("open"),closeMenu:()=>t.$emit("close"),toggleMenu:()=>t.$emit("toggle")}):ms("",!0),t.$slots["dp-input"]?ms("",!0):(Xa(),is("input",{key:1,id:t.uid?`dp-input-${t.uid}`:void 0,ref_key:"inputRef",ref:m,"data-test":"dp-input",name:t.name,class:le(y.value),inputmode:an(a).enabled?"text":"none",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:e.inputValue,autocomplete:t.autocomplete,"aria-label":null==(i=an(s))?void 0:i.input,"aria-disabled":t.disabled||void 0,"aria-invalid":!1===t.state||void 0,onInput:w,onBlur:x,onFocus:k,onKeypress:O,onKeydown:O,onPaste:_},null,42,oN)),cs("div",{onClick:n[2]||(n[2]=e=>r("toggle"))},[t.$slots["input-icon"]&&!t.hideInputIcon?(Xa(),is("span",{key:0,class:"dp__input_icon",onClick:n[0]||(n[0]=e=>r("toggle"))},[Ai(t.$slots,"input-icon")])):ms("",!0),t.$slots["input-icon"]||t.hideInputIcon||t.$slots["dp-input"]?ms("",!0):(Xa(),as(an(WO),{key:1,class:"dp__input_icon dp__input_icons",onClick:n[1]||(n[1]=e=>r("toggle"))}))]),t.$slots["clear-icon"]&&e.inputValue&&t.clearable&&!t.disabled&&!t.readonly?(Xa(),is("span",lN,[Ai(t.$slots,"clear-icon",{clear:T})])):ms("",!0),!t.clearable||t.$slots["clear-icon"]||!e.inputValue||t.disabled||t.readonly?ms("",!0):(Xa(),as(an(zO),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:n[3]||(n[3]=Ol(e=>T(e),["prevent"]))}))]))])}}}),cN=typeof window<"u"?window:void 0,dN=()=>{},hN=(e,t,n,r)=>{if(!e)return dN;let i=dN;const a=rr(()=>an(e),e=>{i(),e&&(e.addEventListener(t,n,r),i=()=>{e.removeEventListener(t,n,r),i=dN})},{immediate:!0,flush:"post"}),s=()=>{a(),i()};return(e=>{Oe()&&Ae(e)})(s),s},pN=Ir({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...kI},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invali
34d-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,i=e,a=Li(),s=en(!1),o=fn(i,"modelValue"),l=fn(i,"timezone"),u=en(null),c=en(null),d=en(null),h=en(!1),p=en(null),f=en(!1),B=en(!1),m=en(!1),g=en(!1),{setMenuFocused:v,setShiftKey:y}=cI(),{clearArrowNav:C}=yI(),{validateDate:_,isValidTime:b}=rN(i),{defaultedTransitions:w,defaultedTextInput:D,defaultedInline:E,defaultedConfig:k,defaultedRange:S,defaultedMultiDates:x}=DI(i),{menuTransition:T,showTransition:O}=eN(w);pi(()=>{U(i.modelValue),Rn().then(()=>{if(!E.value.enabled){const e=F(p.value);null==e||e.addEventListener("scroll",Q),null==window||window.addEventListener("resize",Z)}}),E.value.enabled&&(s.value=!0),null==window||window.addEventListener("keyup",X),null==window||window.addEventListener("keydown",ee)}),gi(()=>{if(!E.value.enabled){const e=F(p.value);null==e||e.removeEventListener("scroll",Q),null==window||window.removeEventListener("resize",Z)}null==window||window.removeEventListener("keyup",X),null==window||window.removeEventListener("keydown",ee)});const A=XP(a,"all",i.presetDates),I=XP(a,"input");rr([o,l],()=>{U(o.value)},{deep:!0});const{openOnTop:P,menuStyle:N,xCorrect:R,setMenuPosition:M,getScrollableParent:F,shadowRender:L}=JP({menuRef:u,menuRefInner:c,inputRef:d,pickerWrapperRef:p,inline:E,emit:r,props:i,slots:a}),{inputValue:j,internalModelValue:H,parseExternalModelValue:U,emitModelValue:G,formatInputValue:Y,checkBeforeEmit:V}=EI(r,i,h),q=Ys(()=>({dp__main:!0,dp__theme_dark:i.dark,dp__theme_light:!i.dark,dp__flex_display:E.value.enabled,"dp--flex-display-collapsed":m.value,dp__flex_display_with_input:E.value.input})),$=Ys(()=>i.dark?"dp__theme_dark":"dp__theme_light"),W=Ys(()=>i.teleport?{to:"boolean"==typeof i.teleport?"body":i.teleport,disabled:!i.teleport||E.value.enabled}:{}),z=Ys(()=>({class:"dp__outer_menu_wrap"})),J=Ys(()=>E.value.enabled&&(i.timePicker||i.monthPicker||i.yearPicker||i.quarterPicker)),K=()=>{var e,t;return null==(t=null==(e=d.value)?void 0:e.$el)?void 0:t.getBoundingClientRect()},Q=()=>{s.value&&(k.value.closeOnScroll?de():M())},Z=()=>{var e;s.value&&M();const t=null==(e=c.value)?void 0:e.$el.getBoundingClientRect().width;m.value=document.body.offsetWidth<=t},X=e=>{"Tab"===e.key&&!E.value.enabled&&!i.teleport&&k.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||de()),B.value=e.shiftKey},ee=e=>{B.value=e.shiftKey},te=()=>{!i.disabled&&!i.readonly&&(L(WP,i),M(!1),s.value=!0,s.value&&r("open"),s.value||ce(),U(i.modelValue))},ne=()=>{var e;j.value="",ce(),null==(e=d.value)||e.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),k.value.closeOnClearValue&&de()},re=()=>{const e=H.value;return!(e&&(Array.isArray(e)||!_(e)))||!!Array.isArray(e)&&(!!(x.value.enabled||2===e.length&&_(e[0])&&_(e[1]))||!(!S.value.partialRange||i.timePicker)&&_(e[0]))},ie=()=>{V()&&re()?(G(),de()):r("invalid-select",H.value)},ae=e=>{se(),G(),k.value.closeOnAutoApply&&!e&&de()},se=()=>{d.value&&D.value.enabled&&d.value.setParsedDate(H.value)},oe=(e=!1)=>{i.autoApply&&b(H.value)&&re()&&(S.value.enabled&&Array.isArray(H.value)?(S.value.partialRange||2===H.value.length)&&ae(e):ae(e))},ce=()=>{D.value.enabled||(H.value=null)},de=()=>{E.value.enabled||(s.value&&(s.value=!1,R.value=!1,v(!1),y(!1),C(),r("closed"),j.value&&U(o.value)),ce(),r("blur"))},he=(e,t,n=!1)=>
34{if(!e)return void(H.value=null);const i=Array.isArray(e)?!e.some(e=>!_(e)):_(e),a=b(e);i&&a&&(g.value=!0,H.value=e,t&&(f.value=n,ie(),r("text-submit")),Rn().then(()=>{g.value=!1}))},pe=()=>{i.autoApply&&b(H.value)&&G(),se()},fe=()=>s.value?de():te(),Be=()=>{D.value.enabled&&(h.value=!0,Y()),r("focus")},me=()=>{if(D.value.enabled&&(h.value=!1,U(i.modelValue),f.value)){const e=function(e,t){let n=[...document.querySelectorAll(["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(", "))];n=n.filter(t=>!e.contains(t)||t.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(t?r-1>=0:r+1<=n.length))return n[r+(t?-1:1)]}(p.value,B.value);null==e||e.focus()}r("blur")};return((e,t,n,r={})=>{const{window:i=cN,event:a="pointerdown"}=r;i&&hN(i,a,r=>{const i=fA(e),a=fA(t);!i||!a||i===r.target||r.composedPath().includes(i)||r.composedPath().includes(a)||n(r)},{passive:!0})})(u,d,()=>{return e=re,k.value.onClickOutside?k.value.onClickOutside(e):de();var e}),t({closeMenu:de,selectDate:ie,clearValue:ne,openMenu:te,onScroll:Q,formatInputValue:Y,updateInternalModelValue:e=>{H.value=e},setMonthYear:e=>{c.value&&c.value.updateMonthYear(0,{month:vA(e.month),year:vA(e.year)})},parseModel:e=>{U(e??i.modelValue)},switchView:(e,t)=>{var n;null==(n=c.value)||n.switchView(e,t)},toggleMenu:fe,handleFlow:(e=0)=>{var t;null==(t=c.value)||t.handleFlow(e)}}),(e,t)=>(Xa(),is("div",{ref_key:"pickerWrapperRef",ref:p,class:le(q.value),"data-datepicker-instance":""},[ds(uN,Cs({ref_key:"inputRef",ref:d,"input-value":an(j),"onUpdate:inputValue":t[0]||(t[0]=e=>Xt(j)?j.value=e:null),"is-menu-open":s.value},e.$props,{onClear:ne,onOpen:te,onSetInputDate:he,onSetEmptyDate:an(G),onSelectDate:ie,onToggle:fe,onClose:de,onFocus:Be,onBlur:me,onRealBlur:t[1]||(t[1]=e=>h.value=!1)}),Oi({_:2},[Ti(an(I),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs(n)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(Xa(),as(Ei(e.teleport?Br:"div"),ue(hs(W.value)),{default:zn(()=>[ds(uo,{name:an(T)(an(P)),css:an(O)&&!an(E).enabled},{default:zn(()=>[s.value?(Xa(),is("div",Cs({key:0,ref_key:"dpWrapMenuRef",ref:u},z.value,{class:{"dp--menu-wrapper":!an(E).enabled},style:an(E).enabled?void 0:an(N)}),[ds(WP,Cs({ref_key:"dpMenuRef",ref:c},e.$props,{"internal-model-value":an(H),"onUpdate:internalModelValue":t[2]||(t[2]=e=>Xt(H)?H.value=e:null),class:{[$.value]:!0,"dp--menu-wrapper":e.teleport},"open-on-top":an(P),"no-overlay-focus":J.value,collapse:m.value,"get-input-rect":K,"is-text-input-date":g.value,onClosePicker:de,onSelectDate:ie,onAutoApply:oe,onTimeUpdate:pe,onFlowStep:t[3]||(t[3]=t=>e.$emit("flow-step",t)),onUpdateMonthYear:t[4]||(t[4]=t=>e.$emit("update-month-year",t)),onInvalidSelect:t[5]||(t[5]=t=>e.$emit("invalid-select",an(H))),onAutoApplyInvalid:t[6]||(t[6]=t=>e.$emit("invalid-select",t)),onInvalidFixedRange:t[7]||(t[7]=t=>e.$emit("invalid-fixed-range",t)),onRecalculatePosition:an(M),onTooltipOpen:t[8]||(t[8]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[9]||(t[9]=t=>e.$emit("tooltip-close",t)),onTimePickerOpen:t[10]||(t[10]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:t[11]||(t[11]=t=>e.$emit("time-picker-close",t)),onAmPmChange:t[12]||(t[12]=t=>e.$emit("am-pm-change",t)),onRangeStart:t[13]||(t[13]=t=>e.$emit("range-start",t)),onRangeEnd:t[14]||(t[14]=t=>e.$emit("range-end",t)),onDateUpdate:t[15]||(t[15]=t=>e.$emit("date-update",t)),onInvalidDate:t[16]||(t[16]=t=>e.$emit("invalid-date",t)),onOverlayToggle:t[17]||(t[17]=t=>e.$emit("overlay-toggle",t))}),Oi({_:2},[Ti(an(A),(t,n)=>({name:t,fn:zn(n=>[Ai(e.$slots,t,ue(hs({...n})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):ms("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),fN=(()=>{const e=pN;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),BN=Object.freeze(Object.defineProperty({__proto__:null,default:fN},Symbol.toStringTag,{value:"Module"}));
34Object.entries(BN).forEach(([e,t])=>{"default"!==e&&(fN[e]=t)});const mN=Ht({visible:!1}),gN=[{name:"Internet",route:"https://www.engeplusempresas.com.br/telecom",bgColor:"bg-green-700",textColor:"text-white"},{name:"Data Center",route:"https://www.engeplusempresas.com.br/datacenter",bgColor:"bg-blue-600",textColor:"text-white"},{name:"Assinante",route:"https://assinante.engeplus.com.br/",bgColor:"bg-orange-500",textColor:"text-white"}],vN=Ht({visible:!1}),yN=Ht({ids:[]}),CN=Ht({ids:[]}),_N=Ht({value:!1}),bN=Ht({isDark:!1}),wN=()=>{bN.isDark=!bN.isDark,DN(),"undefined"!=typeof window&&localStorage.setItem("theme",bN.isDark?"dark":"light")},DN=()=>{"undefined"!=typeof window&&(bN.isDark?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},EN={class:"dropdown__button after:h-[2rem] after:bg-transparent background-transparent border-0 filtro-busca"},kN={key:0,class:"lista__container divide-y divide-gray-200 dark:divide-gray-700 shadow shadow-slate-500 w-auto"},SN={class:"py-2 text-sm text-gray-700 dark:text-gray-200 max-h-[30rem] overflow-y-auto"},xN=["onClick"],TN={class:"flex flex-col justify-center items-center w-full"},ON={id:"periodo"},AN=Ob(Ir({__name:"PopoverPeriodos",props:{defaultValue:{default:void 0}},emits:["on-select","on-clear"],setup(e,{emit:t}){const n=e;let r=tn(!1),i=tn("Filtrar por data"),a=tn();const s=tn(!1),o=t;rr(()=>n.defaultValue,e=>{e||(i.value="Filtrar por data")});const l=e=>{r.value=e},u=[{label:"Na última hora",value:{from:Ub(new Date).subtract(1,"hours").format("YYYY-MM-DD HH:mm:ss"),to:Ub(new Date).format("YYYY-MM-DD HH:mm:ss")}},{label:"Nas últimas 24 horas",value:{from:Ub(new Date).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),to:Ub(new Date).format("YYYY-MM-DD HH:mm:ss")}},{label:"Na última semana",value:{from:Ub(new Date).subtract(1,"week").utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),to:Ub(new Date).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")}},{label:"No último mês",value:{from:Ub(new Date).subtract(1,"month").utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),to:Ub(new Date).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")}},{label:"No último ano",value:{from:Ub(new Date).subtract(1,"year").utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),to:Ub(new Date).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")}}],c=()=>{s.value=!s.value},d=e=>{l(!1),i.value=e.label,o("on-select",e.value)},h=()=>{const e={from:Ub(a.value[0]).utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),to:Ub(a.value[1]).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")},t=Ub(a.value[0]).format("DD/MM/YYYY"),n=Ub(a.value[1]).format("DD/MM/YYYY");c(),d({value:e,label:`de ${t} à ${n}`})},p=()=>{i.value="Filtrar por data",l(!1),o("on-clear")};return(e,t)=>(Xa(),is("div",null,[cs("div",{class:"flex flex-col min-w-[5rem]",onMouseenter:t[0]||(t[0]=e=>l(!0)),onMouseleave:t[1]||(t[1]=e=>l(!1))},[cs("button",EN,[cs("p",null,we(an(i)),1),ds(an(gS),{class:"h-6 w-6 text-[#c6c6c6]"})]),an(r)?(Xa(),is("div",kN,[cs("ul",SN,[cs("li",null,[cs("p",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700",onClick:p}," Em qualquer data ")]),(Xa(),is(Wa,null,Ti(u,e=>cs("li",{key:e.label},[cs("p",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700",onClick:t=>d(e)},we(e.label),9,xN)])),64))]),cs("div",{class:"py-2 cursor-pointer"},[cs("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center space-x-5",onClick:c},[...t[3]||(t[3]=[cs("span",null,"Período personalizado",-1),cs("img",{class:"w-3 h-3 rotate-180 dark:invert",src:ox},null,-1)])])])])):ms("",!0)],32),ds(yx,{title:"Filtro por período","class-name":"p-20",visibility:s.value,onOnClose:c},{content:zn(()=>[cs("div",TN,[cs("p",ON,[ds(an(fN),{modelValue:an(a),"onUpdate:modelValue":t[2]||(t[2]=e=>Xt(a)?a.value=e:a=e),inline:"",range:"",locale:"pt-BR","auto-apply":"",dark:an(bN).isDark,"enable-time-picker":!1},null,8,["modelValue","dark"])])])]),footer:zn(()=>[cs("button",{type:"button",class:"modal__button focus:ring-4 focus:outline-none focus:ring-blue-300 px-5 py-2.5",onClick:h}," Aplicar filtro ")]),_:1},8,["visibility"])]))}}),[["__scopeId","data-v-7bd9f2a3"]]),IN=Object.freeze(Object.defineProperty({__proto__:null,default:AN},Symbol.toStringTag,{value:"Module"})),PN={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},NN={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},RN={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},MN={dangerouslyHTMLString:!1,multiple:!0,position:PN.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light",rtl:!1,newestOnTop:!1,toastClassName:""};var FN=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(FN||{}),LN=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(LN||{});const jN={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},HN={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},UN={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},GN={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},YN="Toastify--animate Toastify__none-enter";function VN(e,t=!1){var n;let r=jN;if(e&&"string"!=typeof e)r=e;else switch(e){case"flip":r=GN;break;case"zoom":r=UN;break;case"slide":r=HN}
34if(t)r.enter=YN;else if(r.enter===YN){const e=null==(n=r.exit.split("__")[1])?void 0:n.split("-")[0];r.enter=`Toastify--animate Toastify__${e}-enter`}return r}const qN="will-unmount";function $N(e){var t;const{position:n,containerClassName:r,rtl:i=!1,style:a={}}=e,s=FN.CSS_NAMESPACE,o=function(e=PN.TOP_RIGHT){return`${FN.CSS_NAMESPACE}__toast-container--${e}`}(n),l=document.querySelector(`.${s}`),u=document.querySelector(`.${o}`),c=!(!u||null!=(t=u.className)&&t.includes(qN)),d=l||document.createElement("div"),h=document.createElement("div");h.className=function(e,t,n=!1){const r=[`${FN.CSS_NAMESPACE}__toast-container`,`${FN.CSS_NAMESPACE}__toast-container--${e}`,n?`${FN.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return cR(t)?t({position:e,rtl:n,defaultClassName:r}):`${r} ${t||""}`}(n,r,i),h.dataset.testid=`${FN.CSS_NAMESPACE}__toast-container--${n}`,h.id=function(e){return e.containerId||String(e.position)}(e);for(const p in a)if(Object.prototype.hasOwnProperty.call(a,p)){const e=a[p];h.style[p]=e}return l||(d.className=FN.CSS_NAMESPACE,document.body.appendChild(d)),c||d.appendChild(h),h}function WN(e){var t,n,r;const i="string"==typeof e?e:(null==(t=e.currentTarget)?void 0:t.id)||(null==(n=e.target)?void 0:n.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",WN,!1);try{zN[i].unmount(),null==(r=document.getElementById(i))||r.remove(),delete zN[i],delete XN[i]}catch{}}const zN=Ht({});function JN(e,t=!0){const n=String(e);if(!zN[n])return;const r=document.getElementById(n);r&&r.classList.add(qN),t?(function(e){for(const t in XN)if(t===e)for(const e of XN[t]||[])KN(e)}(e),r&&r.addEventListener("animationend",WN,!1)):WN(n),eR.items=eR.items.filter(t=>t.containerId!==e)}function KN(e,t){const n=document.getElementById(e.toastId);if(n){let r=e;r={...r,...VN(r.transition)};const i=r.appendPosition?`${r.exit}--${r.position}`:r.exit;n.className+=` ${i}`,t&&t(n)}}function QN(e){return document.getElementById(e)}function ZN(e){var t;const n=ss(e.content)?Jt(e.content.props):null;return null!=n?n:Jt(null!=(t=e.data)?t:{})}const XN=Ht({}),eR=Ht({items:[]});function tR(){const e=Jt(XN);return Object.values(e).reduce((e,t)=>[...e,...t],[])}function nR(e,t={}){if(function(e){const t=QN(e.containerId);return t&&t.classList.contains(qN)}(t)){const n=QN(t.containerId);n&&n.addEventListener("animationend",rR.bind(null,e,t),!1)}else rR(e,t)}function rR(e,t={}){const n=QN(t.containerId);n&&n.removeEventListener("animationend",rR.bind(null,e,t),!1);const r=XN[t.containerId]||[],i=r.length>0;if(!i&&!function(e=PN.TOP_RIGHT){return!!document.querySelector(`.${FN.CSS_NAMESPACE}__toast-container--${e}`)}(t.position)){const e=$N(t),n=jl(xR,t);t.useHandler&&t.useHandler(n),n.mount(e),function(e,t){const n=document.getElementById(String(t));n&&(zN[n.id]=e)}(n,e.id)}i&&!t.updateId&&(t.position=r[0].position),Rn(()=>{t.updateId?iR.update(t):iR.add(e,t)})}const iR={add(e,t){const{containerId:n=""}=t;n&&(XN[n]=XN[n]||[],XN[n].find(e=>e.toastId===t.toastId)||setTimeout(()=>{var e,r;t.newestOnTop?null==(e=XN[n])||e.unshift(t):null==(r=XN[n])||r.push(t),t.onOpen&&t.onOpen(ZN(t))},t.delay||0))},remove(e){if(e){const t=function(e){const t=tR().find(t=>t.toastId===e);return null==t?void 0:t.containerId}(e);if(t){const n=XN[t];let r=n.find(t=>t.toastId===e);XN[t]=n.filter(t=>t.toastId!==e),!XN[t].length&&!function(e){return e?eR.items.filter(t=>t.containerId===e).length>0:eR.items.length>0}(t)&&JN(t,!1),function(){if(eR.items.length>0){const e=eR.items.shift();nR(null==e?void 0:e.toastContent,null==e?void 0:e.toastProps)}}(),Rn(()=>{null!=r&&r.onClose&&(r.onClose(ZN(r)),r=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){XN[t]=XN[t]||[];const n=XN[t].find(t=>t.toastId===e.toastId),r=(null==n?void 0:n.position)!==e.position||(null==n?void 0:n.transition)!==e.transition,i={...e,disabledEnterTransition:!r,updateId:void 0};iR.dismissForce(null==e?void 0:e.toastId),setTimeout(()=>{NR(i.content,i)},e.delay||0)}},clear(e,t=!0){e?JN(e,t):function(e){for(const t in zN)JN(t,e);eR.items=[]}(t)},dismissCallback(e){var t;const n=null==(t=e.currentTarget)?void 0:t.id,r=document.getElementById(n);
34r&&(r.removeEventListener("animationend",iR.dismissCallback,!1),setTimeout(()=>{iR.remove(n)}))},dismiss(e){if(e){const t=tR();for(const n of t)if(n.toastId===e){KN(n,e=>{e.addEventListener("animationend",iR.dismissCallback,!1)});break}}},dismissForce(e){if(e){const t=tR();for(const n of t)if(n.toastId===e){const t=document.getElementById(e);t&&(t.remove(),t.removeEventListener("animationend",iR.dismissCallback,!1),iR.remove(e));break}}}},aR=Ht({useHandler:void 0}),sR=Ht({}),oR=Ht({});function lR(){return Math.random().toString(36).substring(2,9)}function uR(e){return"string"==typeof e}function cR(e){return"function"==typeof e}function dR(...e){return Cs(...e)}function hR(e){return!("object"!=typeof e||!(null!=e&&e.render||null!=e&&e.setup||"object"==typeof(null==e?void 0:e.type)))}function pR(){return sR[`${FN.CSS_NAMESPACE}-default-options`]||MN}var fR=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(fR||{});const BR={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:PN.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default:()=>({})},progressStyle:{type:Object,required:!1,default:()=>({})},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:NN.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default:()=>({})},type:{type:String,required:!1,default:RN.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},mR=Ir({name:"ProgressBar",props:{autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:RN.DEFAULT},theme:{type:String,required:!1,default:NN.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},setup(e,{attrs:t}){const n=en(),r=Ys(()=>e.hide?"true":"false"),i=Ys(()=>({...t.style||{},animationDuration:`${!0===e.autoClose?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||!1===e.autoClose?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),a=Ys(()=>[`${FN.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${FN.CSS_NAMESPACE}__progress-bar--controlled`:`${FN.CSS_NAMESPACE}__progress-bar--animated`,`${FN.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${FN.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${FN.CSS_NAMESPACE}
34__progress-bar--rtl`:null].filter(Boolean).join(" ")),s=Ys(()=>`${a.value} ${(null==t?void 0:t.class)||""}`),o=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{e.isIn&&e.closeToast&&!1!==e.autoClose&&(e.closeToast(),o())},u=Ys(()=>e.controlledProgress?null:l),c=Ys(()=>e.controlledProgress?l:null);return tr(()=>{n.value&&(o(),n.value.onanimationend=u.value,n.value.ontransitionend=c.value)}),()=>ds("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:s.value,style:i.value},null)}}),gR=Ir({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:NN.AUTO},type:{type:String,required:!1,default:NN.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup:e=>()=>ds("button",{class:`${FN.CSS_NAMESPACE}__close-button ${FN.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[ds("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[ds("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}),vR=({theme:e,type:t,path:n,...r})=>ds("svg",Cs({viewBox:"0 0 24 24",width:"100%",height:"100%",style:{fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`}},r),[ds("path",{d:n},null)]),yR={info:function(e){return ds(vR,Cs(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)},warning:function(e){return ds(vR,Cs(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)},success:function(e){return ds(vR,Cs(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)},error:function(e){return ds(vR,Cs(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)},spinner:function(){return ds("div",{class:`${FN.CSS_NAMESPACE}__spinner`},null)}};function CR({theme:e,type:t,isLoading:n,icon:r}){let i;const a=!!n||"loading"===t,s={theme:e,type:t};if(a&&(void 0===r||"boolean"==typeof r))return yR.spinner();if(!1!==r){if(hR(r))i=Jt(r);else if(cR(r)){const e=r;s.type=a?"loading":t,i=e(s),i=!i&&a?yR.spinner():i}else ss(r)?i=ps(r,s):uR(r)||function(e){return"number"==typeof e&&!isNaN(e)}(r)?i=r:(e=>e in yR)(t)&&(i=yR[t](s));return i}}const _R=()=>{};function bR(e){const t=en(!1),n=en(!1),r=en(!1),i=en(fR.Enter),a=Ht({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"||e.collapse,collapseDuration:e.collapseDuration||FN.COLLAPSE_DURATION}),s=a.done||_R,o=Ys(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=Ys(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),u=Ys(()=>e.pauseOnHover?{onMouseenter:h,onMouseleave:d}:{});function c(){return e.toastRef.value}function d(){(!e.loading.value||void 0===e.isLoading)&&(t.value=!0)}function h(){t.value=!1}return tr(function(){if(!c())return;const e=()=>{const t=c();t.removeEventListener("animationend",e),a.collapse?function(e,t,n=FN.COLLAPSE_DURATION){const{scrollHeight:r,style:i}=e,a=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,a)})})}(t,s,a.collapseDuration):s()};n.value||(r.value?e():setTimeout(()=>{const t=c();i.value=fR.Exit,t&&(t.className+=` ${l.value}`,t.addEventListener("animationend",e))}))}),tr(()=>{const e=tR();n.value=e.findIndex(e=>e.toastId===a.toastId)>-1}),tr(()=>{void 0!==e.isLoading&&(e.loading.value?h():d())}),pi(function(){const t=o.value.split(" ");c().addEventListener(LN.ENTRANCE_ANIMATION_END,d,{once:!0});const n=e=>{const r=c();e.target===r&&(r.dispatchEvent(new Event(LN.ENTRANCE_ANIMATION_END)),r.removeEventListener("animationend",n),r.removeEventListener("animationcancel",n),i.value===fR.Enter&&"animationcancel"!==e.type&&r.classList.remove(...t))};e.pauseOnFocusLoss&&(document.hasFocus()||h(),window.addEventListener("focus",d),window.addEventListener("blur",h)),(()=>{const e=c();e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)})()}),gi(()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",d),window.removeEventListener("blur",h))}),{isIn:n,isRunning:t,hideToast:function(e){e&&(e.stopPropagation(),e.preventDefault()),n.value=!1},eventHandlers:u}}const wR=Ir({name:"ToastItem",inheritAttrs:!1,props:BR,setup(e){const t=en(),n=Ys(()=>!!e.isLoading),r=Ys(()=>void 0!==e.progress&&null!==e.progress),i=Ys(()=>CR(e)),a=Ys(()=>[`${FN.CSS_NAMESPACE}__toast`,`${FN.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${FN.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${FN.CSS_NAMESPACE}
34__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:s,isIn:o,hideToast:l,eventHandlers:u}=bR({toastRef:t,loading:n,done:()=>{iR.remove(e.toastId)},...VN(e.transition,e.disabledEnterTransition),...e});function c(){const t=e.content;if(function(e){if(!e||"object"!=typeof e||Array.isArray(e)||e.__v_isVNode)return!1;const t=e;return["title","content"].some(e=>e in t)}(t)){const e=[];return void 0!==t.title&&e.push(ds("div",{"data-testid":"toast-text-title",class:`${FN.CSS_NAMESPACE}__toast-text-title`},[t.title])),void 0!==t.content&&e.push(ds("div",{"data-testid":"toast-text-content",class:`${FN.CSS_NAMESPACE}__toast-text-content`},[t.content])),ds("div",{"data-testid":"toast-text-content-wrapper",class:`${FN.CSS_NAMESPACE}__toast-text`},[e])}return hR(t)?Vs(Jt(t),{toastProps:Jt(e),closeToast:l,data:e.data,...e.expandCustomProps?e.contentProps:{contentProps:e.contentProps||{}}}):cR(t)?t({toastProps:Jt(e),closeToast:l,data:e.data}):e.dangerouslyHTMLString?Vs("div",{innerHTML:t}):t}return()=>ds("div",Cs({id:e.toastId,class:a.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:t=>{e.closeOnClick&&l(),e.onClick&&e.onClick(t)}},u.value),[ds("div",{role:e.role,"data-testid":"toast-body",class:`${FN.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[null!=i.value&&ds("div",{"data-testid":`toast-icon-${e.type}`,class:[`${FN.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${FN.CSS_NAMESPACE}--animate-icon ${FN.CSS_NAMESPACE}__zoom-enter`].join(" ")},[hR(i.value)?Vs(Jt(i.value),{theme:e.theme,type:e.type}):cR(i.value)?i.value({theme:e.theme,type:e.type}):i.value]),ds("div",{"data-testid":"toast-content"},[c()])]),(void 0===e.closeButton||!0===e.closeButton)&&ds(gR,{theme:e.theme,closeToast:e=>{e.stopPropagation(),e.preventDefault(),l()}},null),hR(e.closeButton)?Vs(Jt(e.closeButton),{closeToast:l,type:e.type,theme:e.theme}):cR(e.closeButton)?e.closeButton({closeToast:l,type:e.type,theme:e.theme}):null,ds(mR,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:o.value,type:e.type,hide:e.hideProgressBar,isRunning:s.value,autoClose:e.autoClose,controlledProgress:r.value,progress:e.progress,closeToast:e.isLoading?void 0:l},null)])}}),DR="vue3-toastify:url-change";let ER,kR=0;function SR(){if(typeof window>"u"||ER)return;const e=function(){const{history:e}=window,t=e.pushState,n=e.replaceState;return e.pushState=function(...e){const n=t.apply(this,e);return window.dispatchEvent(new Event(DR)),n},e.replaceState=function(...e){const t=n.apply(this,e);return window.dispatchEvent(new Event(DR)),t},()=>{e.pushState=t,e.replaceState=n}}(),t=()=>function(){if(!(typeof window>"u")&&oR.lastUrl!==window.location.href){oR.lastUrl=window.location.href;const e=e=>"boolean"==typeof e.clearOnUrlChange?e.clearOnUrlChange:!1!==pR().clearOnUrlChange,t=Object.values(XN).reduce((e,t)=>(Array.isArray(t)&&e.push(...t),e),[]);for(const n of t)n.toastId&&e(n)&&iR.dismiss(n.toastId);eR.items=eR.items.filter(t=>!e(t.toastProps))}}();window.addEventListener(DR,t),window.addEventListener("popstate",t),window.addEventListener("hashchange",t),ER=()=>{e(),window.removeEventListener(DR,t),window.removeEventListener("popstate",t),window.removeEventListener("hashchange",t),ER=void 0}}const xR=Ir({name:"ToastifyContainer",inheritAttrs:!1,props:BR,setup(e){const t=Ys(()=>e.containerId),n=Ys(()=>XN[t.value]||[]),r=Ys(()=>n.value.filter(t=>t.position===e.position));return pi(()=>{typeof window<"u"&&(kR+=1,SR())}),gi(()=>{typeof window<"u"&&kR>0&&(kR-=1,0===kR&&ER&&(ER(),oR.lastUrl=""))}),()=>ds(Wa,null,[r.value.map(e=>{const{toastId:t=""}=e;return ds(wR,Cs({key:t},e),null)})])}});let TR=!1;const OR={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function AR(){const e=[];return tR().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(qN)&&e.push(t)}),e}function IR(e){(function(e){const t=AR().length,n=null!=e?e:0;return n>0&&t+eR.items.length>=n})(e.limit)&&!e.updateId&&eR.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function PR(e,t,n={}){if(TR)return;(!(n=dR(pR(),{type:t},Jt(n))).toastId||"string"!=typeof n.toastId&&"number"!=typeof n.toastId)&&(n.toastId=lR()),n={...n,..."loading"===n.type?OR:{},content:e,containerId:n.containerId||String(n.position)};const r=Number(null==n?void 0:n.progress);return!isNaN(r)&&r<0&&(n.progress=0),r>1&&(n.progress=1),"auto"===n.theme&&(n.theme=function(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||e?"dark":"light"}()),IR(n),oR.lastUrl=window.location.href,n.multiple?eR.items.length?n.updateId&&nR(e,n):nR(e,n
34):(TR=!0,NR.clearAll(void 0,!1),setTimeout(()=>{nR(e,n)},0),setTimeout(()=>{TR=!1},390)),n.toastId}const NR=(e,t)=>PR(e,RN.DEFAULT,t);NR.info=(e,t)=>PR(e,RN.DEFAULT,{...t,type:RN.INFO}),NR.error=(e,t)=>PR(e,RN.DEFAULT,{...t,type:RN.ERROR}),NR.warning=(e,t)=>PR(e,RN.DEFAULT,{...t,type:RN.WARNING}),NR.warn=NR.warning,NR.success=(e,t)=>PR(e,RN.DEFAULT,{...t,type:RN.SUCCESS}),NR.loading=(e,t)=>PR(e,RN.DEFAULT,dR(t,OR)),NR.dark=(e,t)=>PR(e,RN.DEFAULT,dR(t,{theme:NN.DARK})),NR.remove=e=>{e?iR.dismiss(e):iR.clear()},NR.clearAll=(e,t)=>{Rn(()=>{iR.clear(e,t)})},NR.isActive=e=>{let t=!1;return t=AR().findIndex(t=>t.toastId===e)>-1,t},NR.update=(e,t={})=>{setTimeout(()=>{const n=function(e){return tR().find(t=>t.toastId===e)}(e);if(n){const r=Jt(n),{content:i}=r,a={...r,...t,toastId:t.toastId||e,updateId:lR()},s=a.render||i;delete a.render,PR(s,a.type,a)}},0)},NR.done=e=>{NR.update(e,{isLoading:!1,progress:1})},NR.promise=function(e,{pending:t,error:n,success:r},i){var a,s,o;let l;const u={...i||{},autoClose:!1};t&&(l=uR(t)?NR.loading(t,u):NR.loading(t.render,{...u,...t}));const c={autoClose:null==(a=null==i?void 0:i.autoClose)||a,closeOnClick:null==(s=null==i?void 0:i.closeOnClick)||s,closeButton:null!=(o=null==i?void 0:i.autoClose)?o:null,isLoading:void 0,draggable:null,delay:100},d=(e,t,n)=>{if(null==t)return void NR.remove(l);const r={type:e,...c,...i,data:n},a=uR(t)?{render:t}:t;return l?NR.update(l,{...r,...a,isLoading:!1}):NR(a.render,{...r,...a,isLoading:!1}),n},h=cR(e)?e():e;return h.then(e=>{d("success",r,e)}).catch(e=>{d("error",n,e)}),h},NR.POSITION=PN,NR.THEME=NN,NR.TYPE=RN,NR.TRANSITIONS={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"};const RR={install(e,t={}){aR.useHandler=t.useHandler||(()=>{}),function(e={}){const t=dR(MN,e);!function(e={}){sR[`${FN.CSS_NAMESPACE}-default-options`]=e}(t)}(t)}};typeof window<"u"&&(window.Vue3Toastify=RR);class MR{constructor(e){i(this,"endpoint"),this.endpoint=e}async post(e){var t,n;try{const t=await eC.post(this.endpoint,e,{headers:{"Content-Type":"multipart/form-data"}});return NR.success("Requisição enviada com sucesso",{position:NR.POSITION.TOP_RIGHT}),t}catch(r){const e=((null==(n=null==(t=null==r?void 0:r.response)?void 0:t.data)?void 0:n.message)??(null==r?void 0:r.message))||"Erro ao enviar requisição";throw NR.error(e,{position:NR.POSITION.TOP_RIGHT}),r}}async getAll(e={}){var t,n;try{return await eC.get(this.endpoint,{params:e})}catch(r){throw NR.error(`Erro ao buscar items: ${null==(n=null==(t=null==r?void 0:r.response)?void 0:t.data)?void 0:n.message}`,{position:NR.POSITION.TOP_RIGHT}),r}}async update(e,t){var n,r;try{const n=await eC.patch(`${this.endpoint}/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}});return NR.success("Requisição enviada com sucesso",{position:NR.POSITION.TOP_RIGHT}),n}catch(i){throw NR.error(`Erro ao enviar requisição: ${(null==(r=null==(n=null==i?void 0:i.response)?void 0:n.data)?void 0:r.message)??(null==i?void 0:i.message)}`,{position:NR.POSITION.TOP_RIGHT}),i}}async get(e,t=!1){var n,r;try{const n=await eC.get(`${this.endpoint}/${e}`,{headers:{"Content-Type":"multipart/form-data"}});return t&&NR.success("Requisição enviada com sucesso",{position:NR.POSITION.TOP_RIGHT}),n}catch(i){throw NR.error(`Erro ao enviar requisição: ${(null==(r=null==(n=null==i?void 0:i.response)?void 0:n.data)?void 0:r.message)??(null==i?void 0:i.message)}`,{position:NR.POSITION.TOP_RIGHT}),i}}async delete(e){var t,n;try{const t=await eC.delete(`${this.endpoint}/${e}`);return NR.success("Requisição enviada com sucesso",{position:NR.POSITION.TOP_RIGHT}),t}catch(r){throw NR.error(`Erro ao enviar requisição: ${(null==(n=null==(t=null==r?void 0:r.response)?void 0:t.data)?void 0:n.message)??(null==r?void 0:r.message)}`,{position:NR.POSITION.TOP_RIGHT}),r}}}function FR(e,t){const n=new MR("/api/pesquisar"),r=en(e.current_page),i=en(e.per_page),a=en(e.total),s=en(e.data),o=en(t),l=en(!1),u=en(""),c=en(""),d=en();hi(()=>{p()}),pi(()=>{window.addEventListener("popstate",h)}),gi(()=>{window.removeEventListener("popstate",h)});const h=async()=>{const e=new URLSearchParams(window.location.search),t=Number(e.get("page"))||1,n=e.get("q")||"";o.value=n,u.value=e.get("editoria")??"",c.value=e.get("conteudo")??"0";const r=e.get("from"),i=e.get("to");d.value=r&&i?{from:r,to:i}:void 0,await f(t,n,!1)},p=()=>{const e=new URLSearchParams(window.location.search);u.value=e.get("editoria")??"",c.value=e.get("conteudo")??"0"},f=async(e,t,r=!0)=>{try{const i=d.value;r&&m({page:e,q:t,editoria:u.value?Number(u.value):void 0,conteudo:c.value?Number(c.value):void 0,periodo:i||null});const a={q:t,page:e,editoria:u.value||null,conteudo:c.value||null,from:(null==i?void 0:i.from)||null,to:(null==i?void 0:i.to)||null},s=await n.getAll(a);B(s.data)}catch(i){}},B=e=>{r.value=e.current_page,i.value=e.per_page,a.value=e.total,s.value=e.data},m=e=>{var t,n;
34const r=new URL(window.location.href),i=r.searchParams;i.set("page",String(e.page)),i.set("q",e.q),e.editoria?i.set("editoria",String(e.editoria)):i.delete("editoria"),e.conteudo?i.set("conteudo",String(e.conteudo)):i.delete("conteudo"),(null==(t=e.periodo)?void 0:t.from)&&(null==(n=e.periodo)?void 0:n.to)?(i.set("from",String(e.periodo.from)),i.set("to",String(e.periodo.to))):(i.delete("from"),i.delete("to")),window.history.pushState({path:r.href},"",r.href)};return{current_page:r,per_page:i,total:a,data:s,palavra_chave:o,loading:l,filtroCategoria:u,filtroConteudo:c,filtroData:d,conteudoFiltroItems:[{value:0,label:"Todo o conteúdo"},{value:1,label:"Apenas título"}],applyFilters:async()=>{l.value=!0,await f(1,o.value),l.value=!1},search:async e=>{const t=e.trim();""!==t&&(l.value=!0,o.value=t,await f(1,t),l.value=!1)},changePage:async e=>{window.scrollTo({top:0,behavior:"smooth"}),l.value=!0,await f(e,o.value),l.value=!1}}}function LR(){return{incrementAcesso:function(e){eC.patch("/api/noticia/increment-acesso/"+e)},observarVisualizacao:function(e,{verificarOclusao:t=!0}={}){return{callback:(n,r)=>function(e,t,n){e&&!function(e){return!1===(null==e?void 0:e.isVisible)}(n)&&(CN.ids.includes(t)||(CN.ids.push(t),function(e){eC.patch("/api/noticia/visualizacao/"+e)}(t)))}(n,e,t?r:void 0),throttle:300,intersection:t?{trackVisibility:!0,delay:100}:void 0}},isMobile:en(!1)}}const jR={class:"flex flex-col px-2 mt-[65px] mb-[60px]"},HR={class:"titulo-busca mb-[41px]"},UR={class:"text-blue-800 dark:text-blue-400"},GR={class:"w-full mb-4"},YR={class:"flex justify-start items-center space-x-10"},VR={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400 dark:text-gray-500"},qR={key:0,class:"mx-auto py-2 px-2 grid gap-x-[43px] gap-y-[41px] max-md:grid-cols-2 grid-cols-4 max-sm:grid-cols-1"},$R={key:1,role:"status",class:"mt-10 mb-10 flex flex-col items-center w-full"},WR={key:2,class:"mx-auto w-auto p-4 flex justify-center mt-8"},zR={key:3,class:"flex flex-col justify-center items-center mt-[63px] mb-[50px]"},JR={class:"paragrafo-nao-encontrado"},KR=Ir({__name:"ConteudoBuscaDesktop",props:{page:{},palavraChave:{},filtroCategorias:{}},setup(e){const{observarVisualizacao:t}=LR(),n=e,r=en(""),i=FR(n.page,n.palavraChave);return(n,a)=>{const s=ki("observe-visibility");return Xa(),is(Wa,null,[cs("div",jR,[cs("h1",HR,[a[7]||(a[7]=fs(" Exibindo resultados para ",-1)),cs("span",UR,' "'+we(an(i).palavra_chave.value)+'" ',1)]),cs("div",GR,[a[8]||(a[8]=cs("p",{class:"label-campo-busca"},"Deseja pesquisar novamente?",-1)),cs("div",YR,[cs("form",{class:"group relative w-[300px]",onSubmit:a[1]||(a[1]=Ol(e=>an(i).search(r.value),["prevent"]))},[cs("div",VR,[ds(an(ax),{class:"search-icon","aria-hidden":"true"})]),Jn(cs("input",{id:"buscar","onUpdate:modelValue":a[0]||(a[0]=e=>r.value=e),class:"search-input focus:ring-2 focus:ring-blue-500 focus:outline-none appearance-none leading-6 rounded-2xl py-2 pl-10 ring-1 ring-slate-200 shadow-sm dark:bg-gray-900 dark:text-gray-100 dark:ring-gray-700 dark:placeholder-gray-500",type:"search","aria-label":"Digite o termo desejado",placeholder:"Digite o termo desejado"},null,512),[[gl,r.value]])],32),cs("div",null,[ds(DS,{"class-name":"background-transparent border-0 filtro-busca",items:an(i).conteudoFiltroItems,"selected-value":an(i).filtroConteudo.value,"show-clear-option":!1,"aditional-label":"Exibindo resultados de",onOnSelect:a[2]||(a[2]=e=>{an(i).filtroConteudo.value=e.value,an(i).applyFilters()})},null,8,["items","selected-value"])]),cs("div",null,[ds(DS,{"class-name":"background-transparent border-0 filtro-busca min-w-[8rem] text-right",items:e.filtroCategorias,placeholder:"Filtrar por editoria","selected-value":an(i).filtroCategoria.value,"clear-option-label":"Todas as editorias",onOnSelect:a[3]||(a[3]=e=>{an(i).filtroCategoria.value=e.value,an(i).applyFilters()}),onOnClear:a[4]||(a[4]=()=>{an(i).filtroCategoria.value="",an(i).applyFilters()})},null,8,["items","selected-value"])]),cs("div",null,[ds(AN,{"default-value":an(i).filtroData.value??void 0,onOnSelect:a[5]||(a[5]=e=>{an(i).filtroData.value=e,an(i).applyFilters()}),onOnClear:a[6]||(a[6]=()=>{an(i).filtroData.value={},an(i).applyFilters()})},null,8,["default-value"])])])])]),an(i).data.value.length>0&&!an(i).loading.value?(Xa(),is("div",qR,[(Xa(!0),is(Wa,null,Ti(an(i).data.value,e=>(Xa(),is("div",{key:e.id},[Jn(ds(nx,{data:e},null,8,["data"]),[[s,an(t)(e.id)]])]))),128))])):ms("",!0),an(i).loading.value?(Xa(),is("div",$R,[...a[9]||(a[9]=[cs("div",{class:"spinner"},null,-1),cs("span",{class:"text-xl"},"Carregando...",-1)])])):ms("",!0),an(i).data.value.length>0?(Xa(),is("div",WR,[ds(sx,{total:an(i).total.value,"per-page":an(i).per_page.value,"max-pages-shown":10,"current-page":an(i).current_page.value,onClick:an(i).changePage},null,8,["total","per-page","current-page","onClick"])])):an(i).loading.value?ms("",!0):(Xa(),is("div",zR,[a[10]||(a[10]=cs("h1",{class:"paragrafo-nao-encontrado__titulo"}," Nenhum resultado encontrado ",-1)),cs("p",JR,' Nenhum resultado foi encontrado para a busca "'+we(an(i).palavra_chave.value)+'". ',1),a[11]||(a[11]=cs("p",{class:"paragrafo-nao-encontrado"},"Tente novamente com outros termos.",-1))]))],64)}}}),QR=Object.freeze(Object.defineProperty({__proto__:null,default:KR},Symbol.toStringTag,{value:"Module"})),ZR={class:"shadow-lg h-[50%] overflow-hidden w-full"},XR=["alt"],eM={class:"flex flex-col shadow-lg h-[50%] overflow-hidden px-4 py-2 justify-between w-full bg-neutral-200 dark:bg-gray-800"},tM={class:"flex absolute left-3 top-3"},nM={class:"flex flex-col"},rM=["href"],iM={class:"noticia_mobile__titulo dark:text-white"},aM={key:0,class:"noticia_mobile__chamada-interna"},sM={class:"flex space-x-1 noticia-mobile-texto-apoio"},oM=Ob(Ir({__name:"NoticiaMobileComImagem",props:{data:{}},setup(e){const t=e,n=IS.formatSmallSizeImage(t.data.imagem),r="https://portal-arquivos.engeplus.c
34om.br/"+t.data.pasta+n;return(t,n)=>(Xa(),is(Wa,null,[cs("div",ZR,[cs("img",{class:"h-[50%] w-full object-cover absolute -z-20",alt:e.data.imagem_alt||e.data.titulo,loading:"lazy",src:r},null,8,XR)]),cs("div",eM,[cs("div",tM,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",nM,[cs("a",{href:e.data.noticia_url,class:""},[cs("p",iM,we(e.data.titulo),1),e.data.chamada_interna&&e.data.titulo.length<=40?(Xa(),is("p",aM,we(e.data.chamada_interna),1)):ms("",!0)],8,rM)]),cs("div",sM,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])])])],64))}}),[["__scopeId","data-v-a062b5c5"]]),lM={class:"flex flex-col shadow-lg h-full overflow-hidden px-4 py-2 justify-between w-full bg-neutral-200 dark:bg-gray-800"},uM={class:"flex absolute left-3 top-3"},cM={class:"flex flex-col mt-10"},dM=["href"],hM={class:"noticia_mobile__titulo dark:text-white"},pM={key:0,class:"noticia_mobile__chamada-interna"},fM={class:"flex space-x-1 noticia-mobile-texto-apoio"},BM=Ob(Ir({__name:"NoticiaMobileSemImagem",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("div",lM,[cs("div",uM,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",cM,[cs("a",{href:e.data.noticia_url,class:""},[cs("p",hM,we(e.data.titulo),1)],8,dM),e.data.chamada_interna&&e.data.titulo.length<70?(Xa(),is("p",pM,we(e.data.chamada_interna),1)):ms("",!0)]),cs("div",fM,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])])]))}),[["__scopeId","data-v-9a9dae70"]]),mM=["href","target"],gM=Ob(Ir({__name:"CardNoticiaMobile",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("a",{class:"noticia_mobile__container bg-white dark:bg-gray-900",href:e.data.noticia_url,target:e.data.noticia_externa?"_blank":"_self"},[e.data.imagem?(Xa(),as(oM,{key:0,data:e.data},null,8,["data"])):ms("",!0),e.data.imagem?ms("",!0):(Xa(),as(BM,{key:1,data:e.data},null,8,["data"]))],8,mM))}),[["__scopeId","data-v-d436e170"]]);var vM=(e=>(e.PORTAL="Portal Engeplus",e.INTERNET="Engeplus Telecom",e.DATACENTER="Engeplus Datacenter",e))(vM||{}),yM=(e=>(e.SUMIU="animal sumiu",e.APARECEU="animal apareceu",e.DOACAO="animal doacao",e))(yM||{}),CM=(e=>(e.FB="facebook",e.WP="whatsapp",e.TW="twitter",e))(CM||{}),_M=(e=>(e.CONTEUDO="conteudo",e.EDITORIA="editoria",e.PERIODO="periodo",e))(_M||{});const bM={class:"dropdown-label pl-2"},wM={class:"text-[#0075bf]"},DM={key:0,class:"w-full"},EM={class:"pl-2 space-y-[26px]"},kM=["onClick"],SM=["onClick"],xM=["onClick"],TM={class:"flex flex-col justify-center items-center w-full"},OM={id:"periodo"},AM=Ir({__name:"DropdownFiltrosMobile",props:{filtrosConteudo:{},filtrosEditoria:{}},emits:["onApplyFilter"],setup(e,{emit:t}){var n,r,i;const a=en(!1),s=en(!1);let o=tn();const l=t,u=[{label:"Na última hora",value:{dataInicial:hx(new Date).subtract(1,"hours").format("YYYY-MM-DD HH:mm:ss"),dataFinal:hx(new Date).format("YYYY-MM-DD HH:mm:ss")}},{label:"Nas últimas 24 horas",value:{dataInicial:hx(new Date).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),dataFinal:hx(new Date).format("YYYY-MM-DD HH:mm:ss")}},{label:"Na última semana",value:{dataInicial:hx(new Date).subtract(1,"week").utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),dataFinal:hx(new Date).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")}},{label:"No último mês",value:{dataInicial:hx(new Date).subtract(1,"month").utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),dataFinal:hx(new Date).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")}},{label:"No último ano",value:{dataInicial:hx(new Date).subtract(1,"year").utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),dataFinal:hx(new Date).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")}}],c=en("todo o conteúdo"),d=en("em qualquer data"),h=e,p=en(!0),f=en(Array(null==(n=h.filtrosConteudo)?void 0:n.length).fill(!1));f.value[0]=!0;const B=en(Array(null==(r=h.filtrosEditoria)?void 0:r.length).fill(!1)),m=en(!0),g=en(Array(null==(i=h.filtrosConteudo)?void 0:i.length).fill(!1)),v=e=>{switch(e){case"editoria":B.value.fill(!1),p.value=!0;break;case"periodo":g.value.fill(!1),m.value=!0}},y=(e,t)=>{a.value=!a.value;const n={tipo:e,value:t};window.scrollTo({top:0,behavior:"smooth"}
34),l("onApplyFilter",n)},C=()=>{a.value=!a.value,s.value=!s.value},_=()=>{const e={dataInicial:hx(o.value[0]).utcOffset(0).set({hour:0,minute:0,second:0}).format("YYYY-MM-DD HH:mm:ss"),dataFinal:hx(o.value[1]).utcOffset(0).set({hour:23,minute:59,second:59}).format("YYYY-MM-DD HH:mm:ss")},t=hx(o.value[0]).format("DD/MM/YYYY"),n=hx(o.value[1]).format("DD/MM/YYYY");d.value=`de ${t} à ${n}`,C(),y(_M.PERIODO,e)};return(t,n)=>(Xa(),is(Wa,null,[cs("button",{class:"w-full flex items-center after:h-[2rem] after:bg-transparent",onClick:n[0]||(n[0]=e=>a.value=!a.value)},[cs("p",bM,[n[4]||(n[4]=fs(" Exibindo resultados ",-1)),cs("span",wM,"de "+we(c.value)+", "+we(d.value),1)]),ds(an(gS),{class:"h-6 w-6 text-[#c6c6c6]"})]),a.value?(Xa(),is("div",DM,[cs("div",EM,[n[6]||(n[6]=cs("h1",{class:"grupo-filtros__h1 pt-[18px]"},"Exibir conteudo de:",-1)),(Xa(!0),is(Wa,null,Ti(e.filtrosConteudo,(e,t)=>(Xa(),is("p",{key:t,class:"pl-2 grupo-filtro__p",style:re(f.value[t]?"font: 19px Open-Sans-Bold !important":""),onClick:()=>{y(an(_M).CONTEUDO,e.value),c.value=e.label,(e=>{for(let t=0;t<f.value.length;t++)f.value[t]!==f.value[e]&&(f.value[t]=!1);f.value[e]=!f.value[e]})(t)}},we(e.label),13,kM))),128)),n[7]||(n[7]=cs("h1",{class:"grupo-filtros__h1"},"Filtrar por editorias",-1)),cs("p",{class:"pl-2 grupo-filtro__p",style:re(p.value?"font: 19px Open-Sans-Bold !important":""),onClick:n[1]||(n[1]=e=>{y(an(_M).EDITORIA,null),v("editoria")})}," Em qualquer editoria ",4),(Xa(!0),is(Wa,null,Ti(e.filtrosEditoria,(e,t)=>(Xa(),is("p",{key:t,class:"pl-2 grupo-filtro__p",style:re(B.value[t]?"font: 19px Open-Sans-Bold !important":""),onClick:n=>{y(an(_M).EDITORIA,e.value),(e=>{for(let t=0;t<B.value.length;t++)B.value[t]!==B.value[e]&&(B.value[t]=!1);B.value[e]=!B.value[e],p.value=!1})(t)}},we(e.label),13,SM))),128)),n[8]||(n[8]=cs("h1",{class:"grupo-filtros__h1"},"Filtrar por data",-1)),cs("p",{class:"pl-2 grupo-filtro__p",style:re(m.value?"font: 19px Open-Sans-Bold !important":""),onClick:n[2]||(n[2]=()=>{y(an(_M).PERIODO,{}),d.value="Em qualquer data",v("periodo")})}," Em qualquer data ",4),(Xa(),is(Wa,null,Ti(u,(e,t)=>cs("p",{key:t,class:"pl-2 grupo-filtro__p",style:re(g.value[t]?"font: 19px Open-Sans-Bold !important":""),onClick:()=>{d.value=e.label,y(an(_M).PERIODO,e.value),(e=>{for(let t=0;t<g.value.length;t++)g.value[t]!==g.value[e]&&(g.value[t]=!1);g.value[e]=!g.value[e],m.value=!1})(t)}},we(e.label),13,xM)),64)),cs("div",{class:"pl-2 cursor-pointer grupo-filtro__p pb-[18px]"},[cs("a",{href:"#",class:"flex items-center justify-between pr-3",onClick:C},[...n[5]||(n[5]=[cs("span",null,"Período personalizado",-1),cs("img",{class:"w-3 h-3 rotate-180 dark:invert",src:ox},null,-1)])])])])])):ms("",!0),ds(yx,{title:"Filtro por período","class-name":"p-20",visibility:s.value,onOnClose:C},{content:zn(()=>[cs("div",TM,[cs("p",OM,[ds(an(fN),{modelValue:an(o),"onUpdate:modelValue":n[3]||(n[3]=e=>Xt(o)?o.value=e:o=e),inline:"",range:"",locale:"pt-BR","auto-apply":"",dark:an(bN).isDark,"enable-time-picker":!1},null,8,["modelValue","dark"])])])]),footer:zn(()=>[cs("button",{type:"button",class:"modal__button focus:ring-4 focus:outline-none focus:ring-blue-300 px-5 py-2.5",onClick:_}," Aplicar filtro ")]),_:1},8,["visibility"])],64))}}),IM=Ob(AM,[["__scopeId","data-v-b52a9ddd"]]),PM=Object.freeze(Object.defineProperty({__proto__:null,default:IM},Symbol.toStringTag,{value:"Module"})),NM={class:"filtros__container w-full py-[3px] items-center border-b border-gray-300 dark:border-gray-700 mb-[18px]"},RM={class:"mx-3"},MM={class:"titulo-busca-mobile mb-[22px]"},FM={class:"text-[#0075bf]"},LM={key:0,class:"grid gap-x-[15px] gap-y-[15px] max-md:grid-cols-2 grid-cols-4 max-sm:grid-cols-1"},jM={key:1,role:"status",class:"mt-10 mb-10 flex flex-col items-center w-full"},HM={key:2,class:"mx-auto w-auto p-4 flex justify-center mt-8"},UM={key:3,class:"flex w-full text-center flex-col justify-center items-center mt-[23px] mb-[10px]"},GM={class:"paragrafo-nao-encontrado-mobile"},YM=Ob(Ir({__name:"ConteudoBuscaMobile",props:{page:{},palavraChave:{},filtroCategorias:{}},setup(e){const{observarVisualizacao:t}=LR(),n=e,r=FR(n.page,n.palavraChave);return(n,i)=>{const a=ki("observe-visibility");return Xa(),is(Wa,null,[cs("div",NM,[ds(IM,{"filtros-conteudo":an(r).conteudoFiltroItems,"filtros-editoria":e.filtroCategorias,onOnApplyFilter:i[0]||(i[0]=e=>(e=>{switch(e.tipo){case"conteudo":r.filtroConteudo.value=e.value;break;case"editoria":r.filtroCategoria.value=e.value;break;case"periodo":r.filtroData.value=e.value??{}}r.applyFilters()})(e))},null,8,["filtros-conteudo","filtros-editoria"])]),cs("div",RM,[cs("h1",MM,[i[1]||(i[1]=fs(" Exibindo resultados para ",-1)),cs("span",FM,we(an(r).palavra_chave.value),1)]),an(r).data.value.length>0&&!an(r).loading.value?(Xa(),is("div",LM,[(Xa(!0),is(Wa,null,Ti(an(r).data.value,e=>(Xa(),is("div",{key:e.id,class:"col-span-2"},[Jn(ds(gM,{data:e},null,8,["data"]),[[a,an(t)(e.id)]])]))),128))])):ms("",!0),an(r).loading.value?(Xa(),is("div",jM,[...i[2]||(i[2]=[cs("div",{class:"spinner"},null,-1),cs("span",{class:"text-xl"},"Carregando...",-1)])])):ms("",!0),an(r).data.value.length>0?(Xa(),is("div",HM,[ds(sx,{total:an(r).total.value,"per-page":an(r).per_page.value,"max-pages-shown":5,"current-page":an(r).current_page.value,onClick:an(r).changePage},null,8,["total","per-page","current-page","onClick"])])):an(r).loading.value?ms("",!0):(Xa(),is("div",UM,[i[3]||(i[3]=cs("h1",{class:"paragrafo-nao-encontrado-mobile__titulo"}," Nenhum resultado encontrado ",-1)),cs("p",GM,' Nenhum resultado foi encontrado para a busca "'+we(an(r).palavra_chave.value)+'". ',1),i[4]||(i[4]=cs("p",{class:"paragrafo-nao-encontrado-mobile"}," Tente novamente com outros termos. ",-1))]))])],64)}}}),[["__scopeId","data-v-a81360c5"]]),VM=Object.freeze(Object.defineProperty({__proto__:null,default:YM},Symbol.toStringTag,{value:"Module"})),qM={id:"buscar",class:"desktop-search mx-auto max-w-7xl sm:px-2 lg:px-2 lg:pb-8 sm:py-2 px-8 bg-white dark:bg-gray-950 dark:text-gray-100 mb-8"},$M={class:"mobile-search bg-white dark:bg-gray-950 dark:text-gray-100"},WM=Ir({__name:"BuscarNoticias",props:{page:{},palavraChave:{},filtroCategorias:{}},setup:e=>(t,n)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Buscas - Portal Engeplus"}),cs("div",qM,[ds(KR,{"filtro-categorias":e.filtroCategorias,page:e.page,"palavra-chave":e.palavraChave},null,8,["filtro-categorias","page","palavra-chave"])]),cs("div",$M,[ds(YM,{"filtro-categorias":e.filtroCategorias,page:e.page,"palavra-chave":e.palavraChave},null,8,["filtro-categorias","page","palavra-chave"])])],64))}),zM=Object.freeze(Object.defineProperty({__proto__:null,default:WM},Symbol.toStringTag,{value:"Module"}
34)),JM="https://engeplus.com.br/build/assets/spin-7a7c56c8.svg",KM={class:"block"},QM=["multiple","accept"],ZM={class:"flex flex-wrap mt-3"},XM=["onClick"],eF={class:"flex items-center max-w-[70%]"},tF=Ob(Ir({__name:"PInputFile",props:{multiple:{type:Boolean,default:!1},extensoesPermitidas:{}},emits:["change-arquivos"],setup(e,{emit:t}){const n=t,r=e;let i=Ht({arquivos:[]});const a=e=>{const t=e.target,a=t.files;if(a&&a.length>0&&r.multiple)for(let n=0;n<(null==a?void 0:a.length);n++){const e=a[n];i.arquivos.push(e)}else i.arquivos=[],a&&a.length>0&&i.arquivos.push(a[0]);t.value="",n("change-arquivos",i.arquivos)};return(t,r)=>(Xa(),is(Wa,null,[cs("label",KM,[r[0]||(r[0]=cs("label",{for:"selecao_arquivo",class:"input-file rounded-full cursor-pointer p-2 flex justify-content-around items-center"},[cs("img",{class:"w-3 text-white mr-3 ml-2",src:"https://engeplus.com.br/build/assets/clip-968bfc8e.svg"}),fs(" Anexar arquivo ")],-1)),cs("input",{id:"selecao_arquivo",type:"file",class:"hidden",multiple:e.multiple,placeholder:"Anexar arquivo",accept:e.extensoesPermitidas,onChange:a},null,40,QM)]),cs("div",ZM,[(Xa(!0),is(Wa,null,Ti(an(i).arquivos,(e,t)=>(Xa(),is("div",{key:t,class:"file-button flex items-center justify-between px-2 rounded-full bg-gray-100 mr-2 cursor-pointer",onClick:t=>(e=>{const t=Array.from(i.arquivos).filter(t=>t.name!==e);i.arquivos=t,n("change-arquivos",i.arquivos)})(null==e?void 0:e.name)},[cs("p",eF,[r[1]||(r[1]=cs("img",{class:"w-2 py-1 bg-grey-200 mr-2",src:"https://engeplus.com.br/build/assets/clips-8233004e.svg"},null,-1)),fs(" "+we(null==e?void 0:e.name),1)]),r[2]||(r[2]=cs("img",{class:"w-3 bg-grey-200 mr-2 ml-2",src:"https://engeplus.com.br/build/assets/x-33143cf3.svg"},null,-1))],8,XM))),128))])],64))}}),[["__scopeId","data-v-45c8b552"]]);function nF(e){return"function"==typeof e}function rF(e){return null==e}const iF=e=>null!==e&&!!e&&"object"==typeof e&&!Array.isArray(e);function aF(e){return Number(e)>=0}function sF(e){if(!function(e){return"object"==typeof e&&null!==e}(e)||"[object Object]"!==function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function oF(e,t){return Object.keys(t).forEach(n=>{if(sF(t[n])&&sF(e[n]))return e[n]||(e[n]={}),void oF(e[n],t[n]);e[n]=t[n]}),e}function lF(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let r=1;r<t.length;r++)aF(t[r])?n+=`[${t[r]}]`:n+=`.${t[r]}`;return n}const uF={};function cF(e,t,n){"object"==typeof n.value&&(n.value=dF(n.value)),n.enumerable&&!n.get&&!n.set&&n.configurable&&n.writable&&"__proto__"!==t?e[t]=n.value:Object.defineProperty(e,t,n)}function dF(e){if("object"!=typeof e)return e;var t,n,r,i=0,a=Object.prototype.toString.call(e);if("[object Object]"===a?r=Object.create(e.__proto__||null):"[object Array]"===a?r=Array(e.length):"[object Set]"===a?(r=new Set,e.forEach(function(e){r.add(dF(e))})):"[object Map]"===a?(r=new Map,e.forEach(function(e,t){r.set(dF(t),dF(e))})):"[object Date]"===a?r=new Date(+e):"[object RegExp]"===a?r=new RegExp(e.source,e.flags):"[object DataView]"===a?r=new e.constructor(dF(e.buffer)):"[object ArrayBuffer]"===a?r=e.slice(0):"Array]"===a.slice(-6)&&(r=new e.constructor(e)),r){for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)cF(r,n[i],Object.getOwnPropertyDescriptor(e,n[i]));for(i=0,n=Object.getOwnPropertyNames(e);i<n.length;i++)Object.hasOwnProperty.call(r,t=n[i])&&r[t]===e[t]||cF(r,t,Object.getOwnPropertyDescriptor(e,t))}return r||e}const hF=Symbol("vee-validate-form"),pF=Symbol("vee-validate-form-context"),fF=Symbol("vee-validate-field-instance"),BF=Symbol("Default empty value"),mF="undefined"!=typeof window;function gF(e){return nF(e)&&!!e.__locatorRef}function vF(e){return!!e&&nF(e.parse)&&"VVTypedSchema"===e.__type}function yF(e){return!!e&&nF(e.validate)}function CF(e){return"checkbox"===e||"radio"===e}function _F(e){return Array.isArray(e)?0===e.length:iF(e)&&0===Object.keys(e).length}function bF(e){return/^\[.+\]$/i.test(e)}function wF(e){return"SELECT"===e.tagName}function DF(e){return!!(e&&("undefined"!=typeof Event&&nF(Event)&&e instanceof Event||e&&e.srcElement))}function EF(e,t){if(e===t)return!0;
34if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!EF(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!EF(r[1],t.get(r[0])))return!1;return!0}if(SF(e)&&SF(t))return e.size===t.size&&e.name===t.name&&e.lastModified===t.lastModified&&e.type===t.type;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=kF(e),t=kF(t),(n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){var a=i[r];if(!EF(e[a],t[a]))return!1}return!0}return e!=e&&t!=t}function kF(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}function SF(e){return!!mF&&e instanceof File}function xF(e){return bF(e)?e.replace(/\[|\]/gi,""):e}function TF(e,t,n){return e?bF(t)?e[xF(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((e,t)=>{return(iF(r=e)||Array.isArray(r))&&t in e?e[t]:n;var r},e):n}function OF(e,t,n){if(bF(t))return void(e[xF(t)]=n);const r=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let a=0;a<r.length;a++){if(a===r.length-1)return void(i[r[a]]=n);r[a]in i&&!rF(i[r[a]])||(i[r[a]]=aF(r[a+1])?[]:{}),i=i[r[a]]}}function AF(e,t){Array.isArray(e)&&aF(t)?e.splice(Number(t),1):iF(e)&&delete e[t]}function IF(e,t){if(bF(t))return void delete e[xF(t)];const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let a=0;a<n.length;a++){if(a===n.length-1){AF(r,n[a]);break}if(!(n[a]in r)||rF(r[n[a]]))break;r=r[n[a]]}const i=n.map((t,r)=>TF(e,n.slice(0,r).join(".")));for(let a=i.length-1;a>=0;a--)_F(i[a])&&(0!==a?AF(i[a-1],n[a-1]):AF(e,n[0]))}function PF(e){return Object.keys(e)}function NF(e,t=void 0){const n=ks();return(null==n?void 0:n.provides[e])||Zn(e,t)}function RF(e,t,n){if(Array.isArray(e)){const n=[...e],r=n.findIndex(e=>EF(e,t));return r>=0?n.splice(r,1):n.push(t),n}return EF(e,t)?n:t}function MF(e,t=0){let n=null,r=[];return function(...i){return n&&clearTimeout(n),n=setTimeout(()=>{const t=e(...i);r.forEach(e=>e(t)),r=[]},t),new Promise(e=>r.push(e))}}function FF(e,t){return iF(t)&&t.number?function(e){const t=parseFloat(e);return isNaN(t)?e:t}(e):e}function LF(e,t){let n;return async function(...r){const i=e(...r);n=i;const a=await i;return i!==n?a:(n=void 0,t(a,r))}}function jF(e){return Array.isArray(e)?e:e?[e]:[]}function HF(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function UF(e){if(GF(e))return e._value}function GF(e){return"_value"in e}function YF(e){if(!DF(e))return e;const t=e.target;if(CF(t.type)&&GF(t))return UF(t);if("file"===t.type&&t.files){const e=Array.from(t.files);return t.multiple?e:e[0]}if(wF(n=t)&&n.multiple)return Array.from(t.options).filter(e=>e.selected&&!e.disabled).map(UF);var n;if(wF(t)){const e=Array.from(t.options).find(e=>e.selected);return e?UF(e):t.value}return function(e){return"number"===e.type||"range"===e.type?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}(t)}function VF(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?iF(e)&&e._$$isNormalized?e:iF(e)?Object.keys(e).reduce((t,n)=>{const r=function(e){return!0===e?[]:Array.isArray(e)||iF(e)?e:[e]}(e[n]);return!1!==e[n]&&(t[n]=qF(r)),t},t):"string"!=typeof e?t:e.split("|").reduce((e,t)=>{const n=$F(t);return n.name?(e[n.name]=qF(n.params),e):e},t):t}function qF(e){const t=e=>"string"==typeof e&&"@"===e[0]?function(e){const t=t=>{var n;return null!==(n=TF(t,e))&&void 0!==n?n:t[e]};return t.__locatorRef=e,t}(e.slice(1)):e;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}const $F=e=>{let t=[];const n=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:n,params:t}};let WF=Object.assign({},{generateMessage:({field:e})=>`${e}
34 is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const zF=()=>WF;async function JF(e,t,n={}){const r=null==n?void 0:n.bails,i={name:(null==n?void 0:n.name)||"{field}",rules:t,label:null==n?void 0:n.label,bails:null==r||r,formData:(null==n?void 0:n.values)||{}},a=await async function(e,t){const n=e.rules;if(vF(n)||yF(n))return async function(e,t){const n=vF(t.rules)?t.rules:KF(t.rules),r=await n.parse(e,{formData:t.formData}),i=[];for(const a of r.errors)a.errors.length&&i.push(...a.errors);return{value:r.value,errors:i}}(t,Object.assign(Object.assign({},e),{rules:n}));if(nF(n)||Array.isArray(n)){const r={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},i=Array.isArray(n)?n:[n],a=i.length,s=[];for(let n=0;n<a;n++){const a=i[n],o=await a(t,r);if("string"==typeof o||Array.isArray(o)||!o){if(Array.isArray(o))s.push(...o);else{const e="string"==typeof o?o:ZF(r);s.push(e)}if(e.bails)return{errors:s}}}return{errors:s}}const r=Object.assign(Object.assign({},e),{rules:VF(n)}),i=[],a=Object.keys(r.rules),s=a.length;for(let o=0;o<s;o++){const n=a[o],s=await QF(r,t,{name:n,params:r.rules[n]});if(s.error&&(i.push(s.error),e.bails))return{errors:i}}return{errors:i}}(i,e);return Object.assign(Object.assign({},a),{valid:!a.errors.length})}function KF(e){return{__type:"VVTypedSchema",async parse(t,n){var r;try{return{output:await e.validate(t,{abortEarly:!1,context:(null==n?void 0:n.formData)||{}}),errors:[]}}catch(i){if(!function(e){return!!e&&"ValidationError"===e.name}(i))throw i;if(!(null===(r=i.inner)||void 0===r?void 0:r.length)&&i.errors.length)return{errors:[{path:i.path,errors:i.errors}]};const e=i.inner.reduce((e,t)=>{const n=t.path||"";return e[n]||(e[n]={errors:[],path:n}),e[n].errors.push(...t.errors),e},{});return{errors:Object.values(e)}}}}}async function QF(e,t,n){const r=(i=n.name,uF[i]);var i;if(!r)throw new Error(`No such validator '${n.name}' exists.`);const a=function(e,t){const n=e=>gF(e)?e(t):e;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}(n.params,e.formData),s={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:a})},o=await r(t,a,s);return"string"==typeof o?{error:o}:{error:o?void 0:ZF(s)}}function ZF(e){const t=zF().generateMessage;return t?t(e):"Field is invalid"}let XF=0;function eL(e,t){const{value:n,initialValue:r,setInitialValue:i}=function(e,t,n){const r=en(an(t));function i(){return n?TF(n.initialValues.value,an(e),an(r)):an(r)}function a(t){n?n.setFieldInitialValue(an(e),t,!0):r.value=t}const s=Ys(i);if(!n)return{value:en(i()),initialValue:s,setInitialValue:a};const o=function(e,t,n,r){return Xt(e)?an(e):void 0!==e?e:TF(t.values,an(r),an(n))}(t,n,s,e);n.stageInitialValue(an(e),o,!0);const l=Ys({get:()=>TF(n.values,an(e)),set(t){n.setFieldValue(an(e),t,!1)}});return{value:l,initialValue:s,setInitialValue:a}}(e,t.modelValue,t.form);if(!t.form){let s=function(e){var t;"value"in e&&(n.value=e.value),"errors"in e&&l(e.errors),"touched"in e&&(c.touched=null!==(t=e.touched)&&void 0!==t?t:c.touched),"initialValue"in e&&i(e.initialValue)};var a=s;const{errors:o,setErrors:l}=function(){const e=en([]);return{errors:e,setErrors:t=>{e.value=jF(t)}}}(),u=XF>=Number.MAX_SAFE_INTEGER?0:++XF,c=function(e,t,n,r){const i=Ht({touched:!1,pending:!1,valid:!0,required:Ys(()=>{var e,t,n;return null!==(n=null===(t=null===(e=sn(r))||void 0===e?void 0:e.describe)||void 0===t?void 0:t.call(e).required)&&void 0!==n&&n}),validated:!!an(n).length,initialValue:Ys(()=>an(t)),dirty:Ys(()=>!EF(an(e),an(t)))});return rr(n,e=>{i.valid=!e.length},{immediate:!0,flush:"sync"}),i}(n,r,o,t.schema);return{id:u,path:e,value:n,initialValue:r,meta:c,flags:{pendingUnmount:{[u]:!1},pendingReset:!1},errors:o,setState:s}}const s=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),o=Ys(()=>s.errors);function a(r){var a,s,o;"value"in r&&(n.value=r.value),"errors"in r&&(null===(a=t.form)||void 0===a||a.setFieldError(an(e),r.errors)),"touched"in r&&(null===(s=t.form)||void 0===s||s.setFieldTouched(an(e),null!==(o=r.touched)&&void 0!==o&&o)),"initialValue"in r&&i(r.initialValue)}return{id:Array.isArray(s.id)?s.id[s.id.length-1]:s.id,path:e,value:n,errors:o,meta:s,initialValue:r,flags:s.__flags,setState:a}}function tL(e,t,n){return CF(null==n?void 0:n.type)?function(e,t,n){const r=(null==n?void 0:n.standalone)?void 0:NF(hF),i=null==n?void 0:n.checkedValue,a=null==n?void 0:n.uncheckedValue;function s(t){const s=t.handleChange,o=Ys(()=>{const e=sn(t.value),n=sn(i);return Array.isArray(e)?e.findIndex(e=>EF(e,n))>=0:EF(n,e)});function l(l,u=!0){var c,d;if(o.value===(null===(c=null==l?void 0:l.target)||void 0===c?void 0:c.checked))return void(u&&t.validate());const h=sn(e),p=null==r?void 0:r.getPathState(h),f=YF(l);let B=null!==(d=sn(i))&&void 0!==d?d:f;r&&(null==p?void 0:p.multiple)&&"checkbox"===p.type?B=RF(TF(r.values,h)||[],B,void 0):"checkbox"===(null==n?void 0:n.type)&&(B=RF(sn(t.value),B,sn(a))),s(B,u)}return Object.assign(Object.assign({},t),{checked:o,checkedValue:i,uncheckedValue:a,handleChange:l})}return s(nL(e,t,n))}
34(e,t,n):nL(e,t,n)}function nL(e,t,n){const{initialValue:r,validateOnMount:i,bails:a,type:s,checkedValue:o,label:l,validateOnValueUpdate:u,uncheckedValue:c,controlled:d,keepValueOnUnmount:h,syncVModel:p,form:f}=function(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!(null==e?void 0:e.syncVModel),r="string"==typeof(null==e?void 0:e.syncVModel)?e.syncVModel:(null==e?void 0:e.modelPropName)||"modelValue",i=n&&!("initialValue"in(e||{}))?rL(ks(),r):null==e?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});const a="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,o=(null==e?void 0:e.modelPropName)||(null==e?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:null==s||s,checkedValue:a,syncVModel:o})}(n),B=d?NF(hF):void 0,m=f||B,g=Ys(()=>lF(sn(e))),v=Ys(()=>{if(sn(null==m?void 0:m.schema))return;const e=an(t);return yF(e)||vF(e)||nF(e)||Array.isArray(e)?e:VF(e)}),y=!nF(v.value)&&vF(sn(t)),{id:C,value:_,initialValue:b,meta:w,setState:D,errors:E,flags:k}=eL(g,{modelValue:r,form:m,bails:a,label:l,type:s,validate:v.value?A:void 0,schema:y?t:void 0}),S=Ys(()=>E.value[0]);async function x(e){var t,n;if(null==m?void 0:m.validateSchema){const{results:n}=await m.validateSchema(e);return null!==(t=n[sn(g)])&&void 0!==t?t:{valid:!0,errors:[]}}return v.value?JF(_.value,v.value,{name:sn(g),label:sn(l),values:null!==(n=null==m?void 0:m.values)&&void 0!==n?n:{},bails:a}):{valid:!0,errors:[]}}p&&function({prop:e,value:t,handleChange:n,shouldValidate:r}){const i=ks();if(!i||!e)return;const a="string"==typeof e?e:"modelValue",s=`update:${a}`;a in i.props&&(rr(t,e=>{EF(e,rL(i,a))||i.emit(s,e)}),rr(()=>rL(i,a),e=>{if(e===BF&&void 0===t.value)return;const i=e===BF?void 0:e;EF(i,t.value)||n(i,r())}))}({value:_,prop:p,handleChange:I,shouldValidate:()=>u&&!k.pendingReset});const T=LF(async()=>(w.pending=!0,w.validated=!0,x("validated-only")),e=>(k.pendingUnmount[F.id]||(D({errors:e.errors}),w.pending=!1,w.valid=e.valid),e)),O=LF(async()=>x("silent"),e=>(w.valid=e.valid,e));function A(e){return"silent"===(null==e?void 0:e.mode)?O():T()}function I(e,t=!0){R(YF(e),t)}function P(e){var t;const n=e&&"value"in e?e.value:b.value;D({value:dF(n),initialValue:dF(n),touched:null!==(t=null==e?void 0:e.touched)&&void 0!==t&&t,errors:(null==e?void 0:e.errors)||[]}),w.pending=!1,w.validated=!1,O()}pi(()=>{if(i)return T();m&&m.validateSchema||O()});const N=ks();function R(e,t=!0){_.value=N&&p?FF(e,N.props.modelModifiers):e,(t?T:O)()}const M=Ys({get:()=>_.value,set(e){R(e,u)}}),F={id:C,name:g,label:l,value:M,meta:w,errors:E,errorMessage:S,type:s,checkedValue:o,uncheckedValue:c,bails:a,keepValueOnUnmount:h,resetField:P,handleReset:()=>P(),validate:A,handleChange:I,handleBlur:(e,t=!1)=>{w.touched=!0,t&&T()},setState:D,setTouched:function(e){w.touched=e},setErrors:function(e){D({errors:Array.isArray(e)?e:[e]})},setValue:R};return Qn(fF,F),Xt(t)&&"function"!=typeof an(t)&&rr(t,(e,t)=>{EF(e,t)||(w.validated?T():O())},{deep:!0}),m?(rr(Ys(()=>{const e=v.value;return!e||nF(e)||yF(e)||vF(e)||Array.isArray(e)?{}:Object.keys(e).reduce((t,n)=>{const r=(i=e[n],Array.isArray(i)?i.filter(gF):PF(i).filter(e=>gF(i[e])).map(e=>i[e])).map(e=>e.__locatorRef).reduce((e,t)=>{const n=TF(m.values,t)||m.values[t];return void 0!==n&&(e[t]=n),e},{});var i;return Object.assign(t,r),t},{})}),(e,t)=>{Object.keys(e).length&&!EF(e,t)&&(w.validated?T():O())}),mi(()=>{var e;const t=null!==(e=sn(F.keepValueOnUnmount))&&void 0!==e?e:sn(m.keepValuesOnUnmount),n=sn(g);if(t||!m||k.pendingUnmount[F.id])return void(null==m||m.removePathState(n,C));k.pendingUnmount[F.id]=!0;const r=m.getPathState(n);
34if(Array.isArray(null==r?void 0:r.id)&&(null==r?void 0:r.multiple)?null==r?void 0:r.id.includes(F.id):(null==r?void 0:r.id)===F.id){if((null==r?void 0:r.multiple)&&Array.isArray(r.value)){const e=r.value.findIndex(e=>EF(e,sn(F.checkedValue)));if(e>-1){const t=[...r.value];t.splice(e,1),m.setFieldValue(n,t)}Array.isArray(r.id)&&r.id.splice(r.id.indexOf(F.id),1)}else m.unsetPathValue(sn(g));m.removePathState(n,C)}}),F):F}function rL(e,t){if(e)return e.props[t]}let iL=0;const aL=["bails","fieldsCount","id","multiple","type","validate"];function sL(e){const t=(null==e?void 0:e.initialValues)||{},n=Object.assign({},sn(t)),r=an(null==e?void 0:e.validationSchema);return r&&vF(r)&&nF(r.cast)?dF(r.cast(n)||{}):dF(n)}function oL(e){var t;const n=iL++,r=(null==e?void 0:e.name)||"Form";let i=0;const a=en(!1),s=en(!1),o=en(0),l=[],u=Ht(sL(e)),c=en([]),d=en({}),h=en({}),p=function(e){let t=null,n=[];return function(...r){const i=Rn(()=>{if(t!==i)return;const a=e(...r);n.forEach(e=>e(a)),n=[],t=null});return t=i,new Promise(e=>n.push(e))}}(()=>{h.value=c.value.reduce((e,t)=>(e[lF(sn(t.path))]=t,e),{})});function f(e,t){const n=P(e);if(n){if("string"==typeof e){const t=lF(e);d.value[t]&&delete d.value[t]}n.errors=jF(t),n.valid=!n.errors.length}else"string"==typeof e&&(d.value[lF(e)]=jF(t))}function B(e){PF(e).forEach(t=>{f(t,e[t])})}(null==e?void 0:e.initialErrors)&&B(e.initialErrors);const m=Ys(()=>{const e=c.value.reduce((e,t)=>(t.errors.length&&(e[sn(t.path)]=t.errors),e),{});return Object.assign(Object.assign({},d.value),e)}),g=Ys(()=>PF(m.value).reduce((e,t)=>{const n=m.value[t];return(null==n?void 0:n.length)&&(e[t]=n[0]),e},{})),v=Ys(()=>c.value.reduce((e,t)=>(e[sn(t.path)]={name:sn(t.path)||"",label:t.label||""},e),{})),y=Ys(()=>c.value.reduce((e,t)=>{var n;return e[sn(t.path)]=null===(n=t.bails)||void 0===n||n,e},{})),C=Object.assign({},(null==e?void 0:e.initialErrors)||{}),_=null!==(t=null==e?void 0:e.keepValuesOnUnmount)&&void 0!==t&&t,{initialValues:b,originalInitialValues:w,setInitialValues:D}=function(e,t,n){const r=sL(n),i=en(r),a=en(dF(r));function s(n,r){(null==r?void 0:r.force)?(i.value=dF(n),a.value=dF(n)):(i.value=oF(dF(i.value)||{},dF(n)),a.value=oF(dF(a.value)||{},dF(n))),(null==r?void 0:r.updateFields)&&e.value.forEach(e=>{if(e.touched)return;const n=TF(i.value,sn(e.path));OF(t,sn(e.path),dF(n))})}return{initialValues:i,originalInitialValues:a,setInitialValues:s}}(c,u,e),E=function(e,t,n,r){const i={touched:"some",pending:"some",valid:"every"},a=Ys(()=>!EF(t,an(n)));function s(){const t=e.value;return PF(i).reduce((e,n)=>{const r=i[n];return e[n]=t[r](e=>e[n]),e},{})}const o=Ht(s());return tr(()=>{const e=s();o.touched=e.touched,o.valid=e.valid,o.pending=e.pending}),Ys(()=>Object.assign(Object.assign({initialValues:an(n)},o),{valid:o.valid&&!PF(r.value).length,dirty:a.value}))}(c,u,w,g),k=Ys(()=>c.value.reduce((e,t)=>{const n=TF(u,sn(t.path));return OF(e,sn(t.path),n),e},{})),S=null==e?void 0:e.validationSchema;function x(e,t){var n,r;const a=Ys(()=>TF(b.value,sn(e))),s=h.value[sn(e)],o="checkbox"===(null==t?void 0:t.type)||"radio"===(null==t?void 0:t.type);if(s&&o){s.multiple=!0;const e=i++;return Array.isArray(s.id)?s.id.push(e):s.id=[s.id,e],s.fieldsCount++,s.__flags.pendingUnmount[e]=!1,s}const l=Ys(()=>TF(u,sn(e))),d=sn(e),f=R.findIndex(e=>e===d);-1!==f&&R.splice(f,1);const B=Ys(()=>{var n,r,i,a;const s=sn(S);if(vF(s))return null!==(r=null===(n=s.describe)||void 0===n?void 0:n.call(s,sn(e)).required)&&void 0!==r&&r;const o=sn(null==t?void 0:t.schema);return!!vF(o)&&null!==(a=null===(i=o.describe)||void 0===i?void 0:i.call(o).required)&&void 0!==a&&a}),m=i++,v=Ht({id:m,path:e,touched:!1,pending:!1,valid:!0,validated:!!(null===(n=C[d])||void 0===n?void 0:n.length),required:B,initialValue:a,errors:tn([]),bails:null!==(r=null==t?void 0:t.bails)&&void 0!==r&&r,label:null==t?void 0:t.label,type:(null==t?void 0:t.type)||"default",value:l,multiple:!1,__flags:{pendingUnmount:{[m]:!1},pendingReset:!1},fieldsCount:1,validate:null==t?void 0:t.validate,dirty:Ys(()=>!EF(an(l),an(a)))});return c.value.push(v),h.value[d]=v,p(),g.value[d]&&!C[d]&&Rn(()=>{W(d,{mode:"silent"})}),Xt(e)&&rr(e,e=>{p();const t=dF(l.value);h.value[e]=v,Rn(()=>{OF(u,e,t)})}),v}const T=MF(K,5),O=MF(K,5),A=LF(async e=>await("silent"===e?T():O()),(e,[t])=>{const n=PF(L.errorBag.value),r=[...new Set([...PF(e.results),...c.value.map(e=>e.path),...n])].sort().reduce((n,r)=>{var i;const a=r,s=P(a)||function(e){const t=c.value.filter(t=>e.startsWith(sn(t.path)));return t.reduce((e,t)=>
34e?t.path.length>e.path.length?t:e:t,void 0)}(a),o=(null===(i=e.results[a])||void 0===i?void 0:i.errors)||[],l=sn(null==s?void 0:s.path)||a,u=(h={errors:o,valid:!o.length},(p=n.results[l])?{valid:h.valid&&p.valid,errors:[...h.errors,...p.errors]}:h);var h,p;return n.results[l]=u,u.valid||(n.errors[l]=u.errors[0]),s&&d.value[l]&&delete d.value[l],s?(s.valid=u.valid,"silent"===t?n:"validated-only"!==t||s.validated?(f(s,u.errors),n):n):(f(l,o),n)},{valid:e.valid,results:{},errors:{},source:e.source});return e.values&&(r.values=e.values,r.source=e.source),PF(r.results).forEach(e=>{var n;const i=P(e);i&&"silent"!==t&&("validated-only"!==t||i.validated)&&f(i,null===(n=r.results[e])||void 0===n?void 0:n.errors)}),r});function I(e){c.value.forEach(e)}function P(e){const t="string"==typeof e?lF(e):e;return"string"==typeof t?h.value[t]:t}let N,R=[];function M(e){return function(t,n){return function(r){return r instanceof Event&&(r.preventDefault(),r.stopPropagation()),I(e=>e.touched=!0),a.value=!0,o.value++,$().then(i=>{const a=dF(u);if(i.valid&&"function"==typeof t){const n=dF(k.value);let s=e?n:a;return i.values&&(s="schema"===i.source?i.values:Object.assign({},s,i.values)),t(s,{evt:r,controlledValues:n,setErrors:B,setFieldError:f,setTouched:Y,setFieldTouched:G,setValues:H,setFieldValue:j,resetForm:q,resetField:V})}i.valid||"function"!=typeof n||n({values:a,evt:r,errors:i.errors,results:i.results})}).then(e=>(a.value=!1,e),e=>{throw a.value=!1,e})}}}const F=M(!1);F.withControlled=M(!0);const L={name:r,formId:n,values:u,controlledValues:k,errorBag:m,errors:g,schema:S,submitCount:o,meta:E,isSubmitting:a,isValidating:s,fieldArrays:l,keepValuesOnUnmount:_,validateSchema:an(S)?A:void 0,validate:$,setFieldError:f,validateField:W,setFieldValue:j,setValues:H,setErrors:B,setFieldTouched:G,setTouched:Y,resetForm:q,resetField:V,handleSubmit:F,useFieldModel:function(e){return Array.isArray(e)?e.map(e=>U(e,!0)):U(e)},defineInputBinds:function(e,t){const[n,r]=Z(e,t);function i(){r.value.onBlur()}function a(t){const n=YF(t);j(sn(e),n,!1),r.value.onInput()}function s(t){const n=YF(t);j(sn(e),n,!1),r.value.onChange()}return Ys(()=>Object.assign(Object.assign({},r.value),{onBlur:i,onInput:a,onChange:s,value:n.value}))},defineComponentBinds:function(e,t){const[n,r]=Z(e,t),i=P(sn(e));function a(e){n.value=e}return Ys(()=>{const e=nF(t)?t(HF(i,aL)):t||{};return Object.assign({[e.model||"modelValue"]:n.value,[`onUpdate:${e.model||"modelValue"}`]:a},r.value)})},defineField:Z,stageInitialValue:function(t,n,r=!1){J(t,n),OF(u,t,n
34),r&&!(null==e?void 0:e.initialValues)&&OF(w.value,t,dF(n))},unsetInitialValue:z,setFieldInitialValue:J,createPathState:x,getPathState:P,unsetPathValue:function(e){return R.push(e),N||(N=Rn(()=>{[...R].sort().reverse().forEach(e=>{IF(u,e)}),R=[],N=null})),N},removePathState:function(e,t){const n=c.value.findIndex(n=>n.path===e&&(Array.isArray(n.id)?n.id.includes(t):n.id===t)),r=c.value[n];if(-1!==n&&r){if(Rn(()=>{W(e,{mode:"silent",warn:!1})}),r.multiple&&r.fieldsCount&&r.fieldsCount--,Array.isArray(r.id)){const e=r.id.indexOf(t);e>=0&&r.id.splice(e,1),delete r.__flags.pendingUnmount[t]}(!r.multiple||r.fieldsCount<=0)&&(c.value.splice(n,1),z(e),p(),delete h.value[e])}},initialValues:b,getAllPathStates:()=>c.value,destroyPath:function(e){PF(h.value).forEach(t=>{t.startsWith(e)&&delete h.value[t]}),c.value=c.value.filter(t=>!t.path.startsWith(e)),Rn(()=>{p()})},isFieldTouched:function(e){const t=P(e);return t?t.touched:c.value.filter(t=>t.path.startsWith(e)).some(e=>e.touched)},isFieldDirty:function(e){const t=P(e);return t?t.dirty:c.value.filter(t=>t.path.startsWith(e)).some(e=>e.dirty)},isFieldValid:function(e){const t=P(e);return t?t.valid:c.value.filter(t=>t.path.startsWith(e)).every(e=>e.valid)}};function j(e,t,n=!0){const r=dF(t),i="string"==typeof e?e:e.path;P(i)||x(i),OF(u,i,r),n&&W(i)}function H(e,t=!0){oF(u,e),l.forEach(e=>e&&e.reset()),t&&$()}function U(e,t){const n=P(sn(e))||x(e);return Ys({get:()=>n.value,set(n){var r;j(sn(e),n,null!==(r=sn(t))&&void 0!==r&&r)}})}function G(e,t){const n=P(e);n&&(n.touched=t)}function Y(e){"boolean"!=typeof e?PF(e).forEach(t=>{G(t,!!e[t])}):I(t=>{t.touched=e})}function V(e,t){var n;const r=t&&"value"in t?t.value:TF(b.value,e),i=P(e);i&&(i.__flags.pendingReset=!0),J(e,dF(r),!0),j(e,r,!1),G(e,null!==(n=null==t?void 0:t.touched)&&void 0!==n&&n),f(e,(null==t?void 0:t.errors)||[]),Rn(()=>{i&&(i.__flags.pendingReset=!1)})}function q(e,t){let n=dF((null==e?void 0:e.values)?e.values:w.value);n=(null==t?void 0:t.force)?n:oF(w.value,n),n=vF(S)&&nF(S.cast)?S.cast(n):n,D(n,{force:null==t?void 0:t.force}),I(t=>{var r;t.__flags.pendingReset=!0,t.validated=!1,t.touched=(null===(r=null==e?void 0:e.touched)||void 0===r?void 0:r[sn(t.path)])||!1,j(sn(t.path),TF(n,sn(t.path)),!1),f(sn(t.path),void 0)}),(null==t?void 0:t.force)?function(e,t=!0){PF(u).forEach(e=>{delete u[e]}),PF(e).forEach(t=>{j(t,e[t],!1)}),t&&$()}(n,!1):H(n,!1),B((null==e?void 0:e.errors)||{}),o.value=(null==e?void 0:e.submitCount)||0,Rn(()=>{$({mode:"silent"}),I(e=>{e.__flags.pendingReset=!1})})}async function $(e){const t=(null==e?void 0:e.mode)||"force";if("force"===t&&I(e=>e.validated=!0),L.validateSchema)return L.validateSchema(t);s.value=!0;const n=await Promise.all(c.value.map(t=>t.validate?t.validate(e).then(e=>({key:sn(t.path),valid:e.valid,errors:e.errors,value:e.value})):Promise.resolve({key:sn(t.path),valid:!0,errors:[],value:void 0})));s.value=!1;const r={},i={},a={};for(const s of n)r[s.key]={valid:s.valid,errors:s.errors},s.value&&OF(a,s.key,s.value),s.errors.length&&(i[s.key]=s.errors[0]);return{valid:n.every(e=>e.valid),results:r,errors:i,values:a,source:"fields"}}async function W(e,t){const n=P(e);if(n&&"silent"!==(null==t?void 0:t.mode)&&(n.validated=!0),S){const{results:n}=await A((null==t?void 0:t.mode)||"validated-only");return n[e]||{errors:[],valid:!0}}return(null==n?void 0:n.validate)?n.validate(t):(!n&&(null==t||t.warn),Promise.resolve({errors:[],valid:!0}))}function z(e){IF(b.value,e)}function J(e,t,n=!1){OF(b.value,e,dF(t)),n&&OF(w.value,e,dF(t))}async function K(){const e=an(S);if(!e)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const t=yF(e)||vF(e)?await async function(e,t){const n=vF(e)?e:KF(e),r=await n.parse(dF(t),{formData:dF(t)}),i={},a={};for(const s of r.errors){const e=s.errors,t=(s.path||"").replace(/\["(\d+)"\]/g,(e,t)=>`[${t}]`);i[t]={valid:!e.length,errors:e},e.length&&(a[t]=e[0])}return{valid:!r.errors.length,results:i,errors:a,values:r.value,source:"schema"}}(e,u):await async function(e,t,n){const r=PF(e).map(async r=>{var i,a,s;const o=null===(i=null==n?void 0:n.names)||void 0===i?void 0:i[r],l=await JF(TF(t,r),e[r],{name:(null==o?void 0:o.name)||r,label:null==o?void 0:o.label,values:t,bail
34s:null===(s=null===(a=null==n?void 0:n.bailsMap)||void 0===a?void 0:a[r])||void 0===s||s});return Object.assign(Object.assign({},l),{path:r})});let i=!0;const a=await Promise.all(r),s={},o={};for(const l of a)s[l.path]={valid:l.valid,errors:l.errors},l.valid||(i=!1,o[l.path]=l.errors[0]);return{valid:i,results:s,errors:o,source:"schema"}}(e,u,{names:v.value,bailsMap:y.value});return s.value=!1,t}const Q=F((e,{evt:t})=>{(function(e){return DF(e)&&e.target&&"submit"in e.target})(t)&&t.target.submit()});function Z(e,t){const n=nF(t)||null==t?void 0:t.label,r=P(sn(e))||x(e,{label:n}),i=()=>nF(t)?t(HF(r,aL)):t||{};function a(){var e;r.touched=!0,(null!==(e=i().validateOnBlur)&&void 0!==e?e:zF().validateOnBlur)&&W(sn(r.path))}function s(){var e;(null!==(e=i().validateOnInput)&&void 0!==e?e:zF().validateOnInput)&&Rn(()=>{W(sn(r.path))})}function o(){var e;(null!==(e=i().validateOnChange)&&void 0!==e?e:zF().validateOnChange)&&Rn(()=>{W(sn(r.path))})}const l=Ys(()=>{const e={onChange:o,onInput:s,onBlur:a};return nF(t)?Object.assign(Object.assign({},e),t(HF(r,aL)).props||{}):(null==t?void 0:t.props)?Object.assign(Object.assign({},e),t.props(HF(r,aL))):e});return[U(e,()=>{var e,t,n;return null===(n=null!==(e=i().validateOnModelUpdate)&&void 0!==e?e:null===(t=zF())||void 0===t?void 0:t.validateOnModelUpdate)||void 0===n||n}),l]}pi(()=>{(null==e?void 0:e.initialErrors)&&B(e.initialErrors),(null==e?void 0:e.initialTouched)&&Y(e.initialTouched),(null==e?void 0:e.validateOnMount)?$():L.validateSchema&&L.validateSchema("silent")}),Xt(S)&&rr(S,()=>{var e;null===(e=L.validateSchema)||void 0===e||e.call(L,"validated-only")}),Qn(hF,L);const X=Object.assign(Object.assign({},L),{values:Gt(u),handleReset:()=>q(),submitForm:Q});return Qn(pF,X),X}const lL=Ir({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const n=Zn(hF,void 0),r=Ys(()=>null==n?void 0:n.errors.value[e.name]);function i(){return{message:r.value}}return()=>{if(!r.value)return;const n=e.as?Ei(e.as):e.as,a=function(e,t,n){return t.slots.default?"string"!=typeof e&&e?{default:()=>{var e,r;return null===(r=(e=t.slots).default)||void 0===r?void 0:r.call(e,n())}}:t.slots.default(n()):t.slots.default}(n,t,i),s=Object.assign({role:"alert"},t.attrs);return n||!Array.isArray(a)&&a||!(null==a?void 0:a.length)?!Array.isArray(a)&&a||(null==a?void 0:a.length)?Vs(n,s,a):Vs(n||"span",s,r.value):a}}}),uL=lL,cL=["value"],dL=["value"],hL=Ir({__name:"PSelect",props:{name:{},options:{},className:{}},setup(e){const t=fn(e.name),{value:n,handleChange:r}=tL(t,void 0);return(i,a)=>(Xa(),is(Wa,null,[cs("div",{class:le(e.className?e.className+"select-input cursor-pointer rounded-full px-5 flex items-center":"select-input cursor-pointer rounded-full px-5 flex items-center")},[cs("select",{id:"select-input",class:"select-input bg-transparent text-white w-full h-[90%]",value:an(n),onChange:a[0]||(a[0]=(...e)=>an(r)&&an(r)(...e))},[a[1]||(a[1]=cs("option",{disabled:"",hidden:"",value:"",class:"bg-white"}," Escolha sua opção: ",-1)),(Xa(!0),is(Wa,null,Ti(e.options,(e,t)=>(Xa(),is("option",{key:t,class:"bg-white text-black hover:bg-red-700",value:e.value},we(e.label),9,dL))),128))],40,cL)],2),ds(an(uL),{class:"text-red-500",name:t.value},null,8,["name"])],64))}}),pL=Ob(hL,[["__scopeId","data-v-578facb4"]]);!function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=10)}([function(e,t){e.exports={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},"!":{escape:!0}}},function(e,t,n){function r(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var i=n(2),a=n(0),s=n.n(a);t.a=function(e,t){var a=t.value;if((Array.isArray(a)||"string"==typeof a)&&(a={mask:a,tokens:s.a}),"INPUT"!==e.tagName.toLocaleUpperCase()){var o=e.getElementsByTagName("input");if(1!==o.length)throw new Error("v-mask directive requires 1 input, found "+o.length);e=o[0]}e.oninput=function(t){if(t.isTrusted){var s=e.selectionEnd,o=e.value[s-1];for(e.value=n.i(i.a)(e.value,a.mask,!0,a.tokens);s<e.value.length&&e.value.charAt(s-1)!==o;)s++;e===document.activeElement&&(e.setSelectionRange(s,s),setTimeout(function(){e.setSelectionRange(s,s)},0)),e.dispatchEvent(r("input"))}};var l=n.i(i.a)(e.value,a.mask,!0,a.tokens);l!==e.value&&(e.value=l,e.dispatchEvent(r("input")))}},function(e,t,n){var r=n(6),i=n(5);t.a=function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments[3];return Array.isArray(t)?n.i(i.a)(r.a,t,s)(e,t,a,s):n.i(r.a)(e,t,a,s)}},function(e,t,n){function r(e){e.component(l.a.name,l.a),e.directive("mask",s.a)}
34Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n.n(i),s=n(1),o=n(7),l=n.n(o);n.d(t,"TheMask",function(){return l.a}),n.d(t,"mask",function(){return s.a}),n.d(t,"tokens",function(){return a.a}),n.d(t,"version",function(){return u});var u="0.11.1";t.default=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(r)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),a=n.n(i),s=n(2);t.default={name:"TheMask",props:{value:[String,Number],mask:{type:[String,Array],required:!0},masked:{type:Boolean,default:!1},tokens:{type:Object,default:function(){return a.a}}},directives:{mask:r.a},data:function(){return{lastValue:null,display:this.value}},watch:{value:function(e){e!==this.lastValue&&(this.display=e)},masked:function(){this.refresh(this.display)}},computed:{config:function(){return{mask:this.mask,tokens:this.tokens,masked:this.masked}}},methods:{onInput:function(e){e.isTrusted||this.refresh(e.target.value)},refresh:function(e){this.display=e,(e=n.i(s.a)(e,this.mask,this.masked,this.tokens))!==this.lastValue&&(this.lastValue=e,this.$emit("input",e))}}}},function(e,t,n){function r(e,t,n){return t=t.sort(function(e,t){return e.length-t.length}),function(r,i){for(var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=0;s<t.length;){var o=t[s];s++;var l=t[s];if(!(l&&e(r,l,!0,n).length>o.length))return e(r,o,a,n)}return""}}t.a=r},function(e,t,n){function r(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments[3];e=e||"",t=t||"";for(var i=0,a=0,s="";i<t.length&&a<e.length;){var o=r[c=t[i]],l=e[a];o&&!o.escape?(o.pattern.test(l)&&(s+=o.transform?o.transform(l):l,i++),a++):(o&&o.escape&&(c=t[++i]),n&&(s+=c),l===c&&a++,i++)}for(var u="";i<t.length&&n;){var c;if(r[c=t[i]]){u="";break}u+=c,i++}return s+u}t.a=r},function(e,t,n){var r=n(8)(n(4),n(9),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,a=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,a=e.default);var o="function"==typeof a?a.options:a;if(t&&(o.render=t.render,o.staticRenderFns=t.staticRenderFns),n&&(o._scopeId=n),r){var l=o.computed||(o.computed={});Object.keys(r).forEach(function(e){var t=r[e];l[e]=function(){return t}})}return{esModule:i,exports:a,options:o}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"mask",rawName:"v-mask",value:e.config,expression:"config"}],attrs:{type:"text"},domProps:{value:e.display},on:{input:e.onInput}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])}({exports:{}});const fL={key:0,class:"label -pl-1 pb-[5px] dark:text-blue-400"},BL=["type","placeholder","value","data-maska"],mL=Ir({__name:"PInput",props:{type:{},label:{},placeholder:{},name:{},mask:{}},setup(e){const t=fn(e.name),{value:n,handleChange:r}=tL(t,void 0);return(i,a)=>{const s=ki("mask");return Xa(),is("div",null,[e.label?(Xa(),is("p",fL,we(e.label),1)):ms("",!0),Jn(cs("input",{type:e.type,placeholder:e.placeholder,value:an(n),"data-maska":e.mask,autocomplete:"given-name",class:"input rounded-full px-5 bg-[#f0f0f0] dark:bg-gray-800 dark:text-white placeholder:text-[#c6c6c6] dark:placeholder:text-gray-500",onInput:a[0]||(a[0]=(...e)=>an(r)&&an(r)(...e))},null,40,BL),[[s]]),ds(an(uL),{class:"text-red-500",name:t.value},null,8,["name"])])}}}),gL=Ob(mL,[["__scopeId","data-v-384e05e9"]]),vL={key:0,class:"label -pl-1 pb-[5px] dark:text-blue-400"},yL=["placeholder","value"],CL=Ir({__name:"PTextArea",props:{name:{},type:{},label:{},placeholder:{}},setup(e){const t=fn(e.name),{value:n,handleChange:r}=tL(t,void 0);return(i,a)=>(Xa(),is("div",null,[e.label?(Xa(),is("p",vL,we(e.label),1)):ms("",!0),cs("textarea",{placeholder:e.placeholder,value:an(n),autocomplete:"given-name",class:"text-area px-5 py-3 bg-[#f0f0f0] dark:bg-gray-800 dark:text-white placeholder:text-[#c6c6c6] dark:placeholder:text-gray-500",onInput:a[0]||(a[0]=(...e)=>an(r)&&an(r)(...e))},null,40,yL),ds(an(uL),{class:"text-red-500",name:t.value},null,8,["name"])]))}}),_L=Ob(CL,[["__scopeId","data-v-07d57d88"]]),bL={class:"duvidas-frequentes__container space-y-[30px]"},wL=Ob({},[["render",function(e,t){return Xa(),is("div",bL,[...t[0]||(t[0]=[Bs('<h3 class="duvidas-frequentes__titulo">Dúvidas frequentes:</h3><p class="duvidas-frequentes__duvida"><span class="duvidas-frequentes__subtitulo">A divulgação é gratuita?</span><br> Sim, a divulgação do pet é totalmente gratuita! </p><p class="duvidas-frequentes__duvida mt-4"><span class="duvidas-frequentes__subtitulo">Preciso enviar uma foto do animal?</span><br> Sim, o envio da foto do animal é obrigatório. Isso faz toda a diferença para que ele seja encontrado ou adotado o quanto antes! </p><p class="duvidas-frequentes__duvida mt-4"><span class="duvidas-frequentes__subtitulo">Como ocorre a divulgação?</span><br> A divulgação dos pets acontece através de uma matéria especial no Circuito Pet, que você encontra na capa do Portal Engeplus e na editoria exclusiva no Menu. Além disso, todos os animais cadastrados também ganham destaque em nosso Facebook e nos stories do Instagram! </p>',4)])])}]]);var DL,EL,kL;(EL=DL||(DL={})).assertEqual=e=>{},EL.assertIs=function(e){},EL.assertNever=function(e){throw new Error},EL.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},EL.getValidEnumValues=e=>{const t=EL.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(const r of t)n[r]=e[r];return EL.objectValues(n)},EL.objectValues=e=>EL.objectKeys(e).map(function(t){return e[t]}),EL.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.pu
34sh(n);return t},EL.find=(e,t)=>{for(const n of e)if(t(n))return n},EL.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,EL.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},EL.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(kL||(kL={})).mergeShapes=(e,t)=>({...e,...t});const SL=DL.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xL=e=>{switch(typeof e){case"undefined":return SL.undefined;case"string":return SL.string;case"number":return Number.isNaN(e)?SL.nan:SL.number;case"boolean":return SL.boolean;case"function":return SL.function;case"bigint":return SL.bigint;case"symbol":return SL.symbol;case"object":return Array.isArray(e)?SL.array:null===e?SL.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?SL.promise:"undefined"!=typeof Map&&e instanceof Map?SL.map:"undefined"!=typeof Set&&e instanceof Set?SL.set:"undefined"!=typeof Date&&e instanceof Date?SL.date:SL.object;default:return SL.unknown}}
vendor: 51,518 bytes, line 34
34,TL=DL.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class OL extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof OL))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,DL.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}OL.create=e=>new OL(e);const AL=(e,t)=>{let n;switch(e.code){case TL.invalid_type:n=e.received===SL.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case TL.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,DL.jsonStringifyReplacer)}`;break;case TL.unrecognized_keys:n=`Unrecognized key(s) in object: ${DL.joinValues(e.keys,", ")}`;break;case TL.invalid_union:n="Invalid input";break;case TL.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${DL.joinValues(e.options)}`;break;case TL.invalid_enum_value:n=`Invalid enum value. Expected ${DL.joinValues(e.options)}, received '${e.received}'`;break;case TL.invalid_arguments:n="Invalid function arguments";break;case TL.invalid_return_type:n="Invalid function return type";break;case TL.invalid_date:n="Invalid date";break;case TL.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:DL.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case TL.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case TL.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case TL.custom:n="Invalid input";break;case TL.invalid_intersection_types:n="Intersection results could not be merged";break;case TL.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case TL.not_finite:n="Number must be finite";break;default:n=t.defaultError,DL.assertNever(e)}return{message:n}};let IL=AL;function PL(e,t){const n=IL,r=(e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";const l=r.filter(e=>!!e).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===AL?void 0:AL].filter(e=>!!e)});e.common.issues.push(r)}class NL{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return RL;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return NL.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return RL;if("aborted"===i.status)return RL;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||void 0===i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const RL=Object.freeze({status:"aborted"}),ML=e=>({status:"dirty",value:e}),FL=e=>({status:"valid",value:e}),LL=e=>"aborted"===e.status,jL=e=>"dirty"===e.status,HL=e=>"valid"===e.status,UL=e=>"undefined"!=typeof Promise&&e instanceof Promise;var GL,YL;(YL=GL||(GL={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},YL.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class VL{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const qL=(e,t)=>{if(HL(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new OL(e.common.issues);return this._error=t,this._error}}};function $L(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{const{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class WL{get description(){return this._def.description}_getType(e){return xL(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:xL(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new NL,ctx:{common:e.parent.common,data:e.data,parsedType:xL(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(UL(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:(null==t?void 0:t.async)??!1,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xL(e)},r=this._parseSync({data:e,path:n.path,parent:n});return qL(n,r)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xL(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return HL(t)?{value:t.value}:{issues:r.common.issues}}catch(i){(null==(n=null==(t=null==i?void 0:i.message)?void 0:t.toLowerCase())?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(e=>HL(e)?{value:e.value}:{issues:r.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xL(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(UL(r)?r:Promise.resolve(r));return qL(n,i)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{const i=e(t),a=()=>r.addIssue({code:TL.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new qj({schema:this,typeName:tH.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return $j.create(this,this._def)}nullable(){return Wj.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Oj.create(this)}promise(){return Vj.create(this,this._def)}or(e){return Pj.create([this,e],this._def)}and(e){return Rj.create(this,e,this._def)}transform(e){return new qj({...$L(this._def),schema:this,typeName:tH.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new zj({...$L(this._def),innerType:this,defaultValue:t,typeName:tH.ZodDefault})}brand(){return new Qj({typeName:tH.ZodBranded,type:this,...$L(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Jj({...$L(this._def),innerType:this,catchValue:t,typeName:tH.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Zj.create(this,e)}readonly(){return Xj.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const zL=/^c[^\s-]{8,}$/i,JL=/^[0-9a-z]+$/,KL=/^[0-9A-HJKMNP-TV-Z]{26}$/i,QL=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ZL=/^[a-z0-9_-]{21}$/i,XL=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ej=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let nj;const rj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ij=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,aj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uj="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",cj=new RegExp(`^${uj}$`);function dj(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function hj(e){return new RegExp(`^${dj(e)}$`)}function pj(e){let t=`${uj}T${dj(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function fj(e,t){return!("v4"!==t&&t||!rj.test(e))||!("v6"!==t&&t||!aj.test(e))}function Bj(e,t){if(!XL.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!("object"!=typeof i||null===i||"typ"in i&&"JWT"!==(null==i?void 0:i.typ)||!i.alg||t&&i.alg!==t)}catch{return!1}}function mj(e,t){return!("v4"!==t&&t||!ij.test(e))||!("v6"!==t&&t||!sj.test(e))}class gj extends WL{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==SL.string){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.string,received:t.parsedType}),RL}const t=new NL;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("max"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?PL(n,{code:TL.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):a&&PL(n,{code:TL.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if("email"===r.kind)tj.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"email",code:TL.invalid_string,message:r.message}),t.dirty());else if("emoji"===r.kind)nj||(nj=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),nj.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"emoji",code:TL.invalid_string,message:r.message}),t.dirty());else if("uuid"===r.kind)QL.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"uuid",code:TL.invalid_string,message:r.message}),t.dirty());else if("nanoid"===r.kind)ZL.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"nanoid",code:TL.invalid_string,message:r.message}),t.dirty());else if("cuid"===r.kind)zL.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"cuid",code:TL.invalid_string,message:r.message}),t.dirty());else if("cuid2"===r.kind)JL.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"cuid2",code:TL.invalid_string,message:r.message}),t.dirty());else if("ulid"===r.kind)KL.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"ulid",code:TL.invalid_string,message:r.message}),t.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),PL(n,{validation:"url",code:TL.invalid_string,message:r.message}),t.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"regex",code:TL.invalid_string,message:r.message}),t.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):"datetime"===r.kind?pj(r).test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.invalid_string,validation:"datetime",message:r.message}),t.dirty()):"date"===r.kind?cj.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.invalid_string,validation:"date",message:r.message}),t.dirty()):"time"===r.kind?hj(r).test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.invalid_string,validation:"time",message:r.message}),t.dirty()):"duration"===r.kind?ej.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"duration",code:TL.invalid_string,message:r.message}),t.dirty()):"ip"===r.kind?fj(e.data,r.version)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"ip",code:TL.invalid_string,message:r.message}),t.dirty()):"jwt"===r.kind?Bj(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"jwt",code:TL.invalid_string,message:r.message}),t.dirty()):"cidr"===r.kind?mj(e.data,r.version)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"cidr",code:TL.invalid_string,message:r.message}),t.dirty()):"base64"===r.kind?oj.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"base64",code:TL.invalid_string,message:r.message}),t.dirty()):"base64url"===r.kind?lj.test(e.data)||(n=this._getOrReturnCtx(e,n),PL(n,{validation:"base64url",code:TL.invalid_string,message:r.message}),t.dirty()):DL.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:TL.invalid_string,...GL.errToObj(n)})}_addCheck(e){return new gj({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...GL.errToObj(e)})}url(e){return this._addCheck({kind:"url",...GL.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...GL.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...GL.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...GL.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...GL.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...GL.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...GL.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...GL.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...GL.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...GL.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...GL.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...GL.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:(null==e?void 0:e.offset)??!1,local:(null==e?void 0:e.local)??!1,...GL.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...GL.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...GL.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...GL.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...GL.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...GL.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...GL.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...GL.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...GL.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...GL.errToObj(t)})}nonempty(e){return this.min(1,GL.errToObj(e))}trim(){return new gj({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gj({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gj({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function vj(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}gj.create=e=>new gj({checks:[],typeName:tH.ZodString,coerce:(null==e?void 0:e.coerce)??!1,...$L(e)});class yj extends WL{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==SL.number){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.number,received:t.parsedType}),RL}let t;const n=new NL;for(const r of this._def.checks)"int"===r.kind?DL.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==vj(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.not_finite,message:r.message}),n.dirty()):DL.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,GL.toString(t))}gt(e,t){return this.setLimit("min",e,!1,GL.toString(t))}lte(e,t){return this.setLimit("max",e,!0,GL.toString(t))}lt(e,t){return this.setLimit("max",e,!1,GL.toString(t))}setLimit(e,t,n,r){return new yj({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:GL.toString(r)}]})}_addCheck(e){return new yj({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:GL.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:GL.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:GL.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:GL.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:GL.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:GL.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:GL.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:GL.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:GL.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&DL.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}yj.create=e=>new yj({checks:[],typeName:tH.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...$L(e)});class Cj extends WL{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==SL.bigint)return this._getInvalidInput(e);let t;const n=new NL;for(const r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),PL(t,{code:TL.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):DL.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.bigint,received:t.parsedType}),RL}gte(e,t){return this.setLimit("min",e,!0,GL.toString(t))}gt(e,t){return this.setLimit("min",e,!1,GL.toString(t))}lte(e,t){return this.setLimit("max",e,!0,GL.toString(t))}lt(e,t){return this.setLimit("max",e,!1,GL.toString(t))}setLimit(e,t,n,r){return new Cj({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:GL.toString(r)}]})}_addCheck(e){return new Cj({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:GL.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:GL.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:GL.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:GL.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:GL.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Cj.create=e=>new Cj({checks:[],typeName:tH.ZodBigInt,coerce:(null==e?void 0:e.coerce)??!1,...$L(e)});class _j extends WL{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==SL.boolean){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.boolean,received:t.parsedType}),RL}return FL(e.data)}}_j.create=e=>new _j({typeName:tH.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...$L(e)});class bj extends WL{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==SL.date){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.date,received:t.parsedType}),RL}if(Number.isNaN(e.data.getTime()))return PL(this._getOrReturnCtx(e),{code:TL.invalid_date}),RL;const t=new NL;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),PL(n,{code:TL.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):DL.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new bj({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:GL.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:GL.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}bj.create=e=>new bj({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tH.ZodDate,...$L(e)});class wj extends WL{_parse(e){if(this._getType(e)!==SL.symbol){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.symbol,received:t.parsedType}),RL}return FL(e.data)}}wj.create=e=>new wj({typeName:tH.ZodSymbol,...$L(e)});class Dj extends WL{_parse(e){if(this._getType(e)!==SL.undefined){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.undefined,received:t.parsedType}),RL}return FL(e.data)}}Dj.create=e=>new Dj({typeName:tH.ZodUndefined,...$L(e)});class Ej extends WL{_parse(e){if(this._getType(e)!==SL.null){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.null,received:t.parsedType}),RL}return FL(e.data)}}Ej.create=e=>new Ej({typeName:tH.ZodNull,...$L(e)});class kj extends WL{constructor(){super(...arguments),this._any=!0}_parse(e){return FL(e.data)}}kj.create=e=>new kj({typeName:tH.ZodAny,...$L(e)});class Sj extends WL{constructor(){super(...arguments),this._unknown=!0}_parse(e){return FL(e.data)}}Sj.create=e=>new Sj({typeName:tH.ZodUnknown,...$L(e)});class xj extends WL{_parse(e){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.never,received:t.parsedType}),RL}}xj.create=e=>new xj({typeName:tH.ZodNever,...$L(e)});class Tj extends WL{_parse(e){if(this._getType(e)!==SL.undefined){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.void,received:t.parsedType}),RL}return FL(e.data)}}Tj.create=e=>new Tj({typeName:tH.ZodVoid,...$L(e)});class Oj extends WL{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==SL.array)return PL(t,{code:TL.invalid_type,expected:SL.array,received:t.parsedType}),RL;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(PL(t,{code:e?TL.too_big:TL.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(PL(t,{code:TL.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(PL(t,{code:TL.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new VL(t,e,t.path,n)))).then(e=>NL.mergeArray(n,e));const i=[...t.data].map((e,n)=>r.type._parseSync(new VL(t,e,t.path,n)));return NL.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Oj({...this._def,minLength:{value:e,message:GL.toString(t)}})}max(e,t){return new Oj({...this._def,maxLength:{value:e,message:GL.toString(t)}})}length(e,t){return new Oj({...this._def,exactLength:{value:e,message:GL.toString(t)}})}nonempty(e){return this.min(1,e)}}function Aj(e){if(e instanceof Ij){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=$j.create(Aj(r))}return new Ij({...e._def,shape:()=>t})}return e instanceof Oj?new Oj({...e._def,type:Aj(e.element)}):e instanceof $j?$j.create(Aj(e.unwrap())):e instanceof Wj?Wj.create(Aj(e.unwrap())):e instanceof Mj?Mj.create(e.items.map(e=>Aj(e))):e}Oj.create=(e,t)=>new Oj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tH.ZodArray,...$L(t)});class Ij extends WL{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=DL.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==SL.object){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.object,received:t.parsedType}),RL}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof xj&&"strip"===this._def.unknownKeys))for(const o in n.data)i.includes(o)||a.push(o);const s=[];for(const o of i){const e=r[o],t=n.data[o];s.push({key:{status:"valid",value:o},value:e._parse(new VL(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof xj){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)s.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(PL(n,{code:TL.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new VL(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of s){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>NL.mergeObjectSync(t,e)):NL.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return GL.errToObj,new Ij({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i;const a=(null==(i=(r=this._def).errorMap)?void 0:i.call(r,t,n).message)??n.defaultError;return"unrecognized_keys"===t.code?{message:GL.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new Ij({...this._def,unknownKeys:"strip"})}passthrough(){return new Ij({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ij({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ij({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tH.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ij({...this._def,catchall:e})}pick(e){const t={};for(const n of DL.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new Ij({...this._def,shape:()=>t})}omit(e){const t={};for(const n of DL.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new Ij({...this._def,shape:()=>t})}deepPartial(){return Aj(this)}partial(e){const t={};for(const n of DL.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new Ij({...this._def,shape:()=>t})}required(e){const t={};for(const n of DL.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof $j;)e=e._def.innerType;t[n]=e}return new Ij({...this._def,shape:()=>t})}keyof(){return Uj(DL.objectKeys(this.shape))}}Ij.create=(e,t)=>new Ij({shape:()=>e,unknownKeys:"strip",catchall:xj.create(),typeName:tH.ZodObject,...$L(t)}),Ij.strictCreate=(e,t)=>new Ij({shape:()=>e,unknownKeys:"strict",catchall:xj.create(),typeName:tH.ZodObject,...$L(t)}),Ij.lazycreate=(e,t)=>new Ij({shape:e,unknownKeys:"strip",catchall:xj.create(),typeName:tH.ZodObject,...$L(t)});class Pj extends WL{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map(e=>new OL(e.ctx.common.issues));return PL(t,{code:TL.invalid_union,unionErrors:n}),RL});{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map(e=>new OL(e));return PL(t,{code:TL.invalid_union,unionErrors:i}),RL}}get options(){return this._def.options}}function Nj(e,t){const n=xL(e),r=xL(t);if(e===t)return{valid:!0,data:e};if(n===SL.object&&r===SL.object){const n=DL.objectKeys(t),r=DL.objectKeys(e).filter(e=>-1!==n.indexOf(e)),i={...e,...t};for(const a of r){const n=Nj(e[a],t[a]);if(!n.valid)return{valid:!1};i[a]=n.data}return{valid:!0,data:i}}if(n===SL.array&&r===SL.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=Nj(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===SL.date&&r===SL.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}Pj.create=(e,t)=>new Pj({options:e,typeName:tH.ZodUnion,...$L(t)});class Rj extends WL{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(LL(e)||LL(r))return RL;const i=Nj(e.value,r.value);return i.valid?((jL(e)||jL(r))&&t.dirty(),{status:t.value,value:i.data}):(PL(n,{code:TL.invalid_intersection_types}),RL)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Rj.create=(e,t,n)=>new Rj({left:e,right:t,typeName:tH.ZodIntersection,...$L(n)});class Mj extends WL{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SL.array)return PL(n,{code:TL.invalid_type,expected:SL.array,received:n.parsedType}),RL;if(n.data.length<this._def.items.length)return PL(n,{code:TL.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),RL;!this._def.rest&&n.data.length>this._def.items.length&&(PL(n,{code:TL.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new VL(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>NL.mergeArray(t,e)):NL.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Mj({...this._def,rest:e})}}Mj.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Mj({items:e,typeName:tH.ZodTuple,rest:null,...$L(t)})};class Fj extends WL{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SL.map)return PL(n,{code:TL.invalid_type,expected:SL.map,received:n.parsedType}),RL;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new VL(n,e,n.path,[a,"key"])),value:i._parse(new VL(n,t,n.path,[a,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return RL;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return RL;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}Fj.create=(e,t,n)=>new Fj({valueType:t,keyType:e,typeName:tH.ZodMap,...$L(n)});class Lj extends WL{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SL.set)return PL(n,{code:TL.invalid_type,expected:SL.set,received:n.parsedType}),RL;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(PL(n,{code:TL.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(PL(n,{code:TL.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return RL;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map((e,t)=>i._parse(new VL(n,e,n.path,t)));return n.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new Lj({...this._def,minSize:{value:e,message:GL.toString(t)}})}max(e,t){return new Lj({...this._def,maxSize:{value:e,message:GL.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Lj.create=(e,t)=>new Lj({valueType:e,minSize:null,maxSize:null,typeName:tH.ZodSet,...$L(t)});class jj extends WL{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}jj.create=(e,t)=>new jj({getter:e,typeName:tH.ZodLazy,...$L(t)});class Hj extends WL{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return PL(t,{received:t.data,code:TL.invalid_literal,expected:this._def.value}),RL}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Uj(e,t){return new Gj({values:e,typeName:tH.ZodEnum,...$L(t)})}Hj.create=(e,t)=>new Hj({value:e,typeName:tH.ZodLiteral,...$L(t)});class Gj extends WL{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return PL(t,{expected:DL.joinValues(n),received:t.parsedType,code:TL.invalid_type}),RL}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return PL(t,{received:t.data,code:TL.invalid_enum_value,options:n}),RL}return FL(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Gj.create(e,{...this._def,...t})}exclude(e,t=this._def){return Gj.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}Gj.create=Uj;class Yj extends WL{_parse(e){const t=DL.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==SL.string&&n.parsedType!==SL.number){const e=DL.objectValues(t);return PL(n,{expected:DL.joinValues(e),received:n.parsedType,code:TL.invalid_type}),RL}if(this._cache||(this._cache=new Set(DL.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=DL.objectValues(t);return PL(n,{received:n.data,code:TL.invalid_enum_value,options:e}),RL}return FL(e.data)}get enum(){return this._def.values}}Yj.create=(e,t)=>new Yj({values:e,typeName:tH.ZodNativeEnum,...$L(t)});class Vj extends WL{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==SL.promise&&!1===t.common.async)return PL(t,{code:TL.invalid_type,expected:SL.promise,received:t.parsedType}),RL;const n=t.parsedType===SL.promise?t.data:Promise.resolve(t.data);return FL(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Vj.create=(e,t)=>new Vj({type:e,typeName:tH.ZodPromise,...$L(t)});class qj extends WL{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tH.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{PL(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return RL;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?RL:"dirty"===r.status||"dirty"===t.value?ML(r.value):r});{if("aborted"===t.value)return RL;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?RL:"dirty"===r.status||"dirty"===t.value?ML(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?RL:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?RL:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!HL(e))return RL;const a=r.transform(e.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>HL(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):RL)}DL.assertNever(r)}}qj.create=(e,t,n)=>new qj({schema:e,typeName:tH.ZodEffects,effect:t,...$L(n)}),qj.createWithPreprocess=(e,t,n)=>new qj({schema:t,effect:{type:"preprocess",transform:e},typeName:tH.ZodEffects,...$L(n)});class $j extends WL{_parse(e){return this._getType(e)===SL.undefined?FL(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$j.create=(e,t)=>new $j({innerType:e,typeName:tH.ZodOptional,...$L(t)});class Wj extends WL{_parse(e){return this._getType(e)===SL.null?FL(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Wj.create=(e,t)=>new Wj({innerType:e,typeName:tH.ZodNullable,...$L(t)});class zj extends WL{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===SL.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}zj.create=(e,t)=>new zj({innerType:e,typeName:tH.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...$L(t)});class Jj extends WL{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return UL(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new OL(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new OL(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Jj.create=(e,t)=>new Jj({innerType:e,typeName:tH.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...$L(t)});class Kj extends WL{_parse(e){if(this._getType(e)!==SL.nan){const t=this._getOrReturnCtx(e);return PL(t,{code:TL.invalid_type,expected:SL.nan,received:t.parsedType}),RL}return{status:"valid",value:e.data}}}Kj.create=e=>new Kj({typeName:tH.ZodNaN,...$L(e)});class Qj extends WL{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Zj extends WL{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?RL:"dirty"===e.status?(t.dirty(),ML(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?RL:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Zj({in:e,out:t,typeName:tH.ZodPipeline})}}class Xj extends WL{_parse(e){const t=this._def.innerType._parse(e),n=e=>(HL(e)&&(e.value=Object.freeze(e.value)),e);return UL(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function eH(e,t){const n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}var tH,nH;Xj.create=(e,t)=>new Xj({innerType:e,typeName:tH.ZodReadonly,...$L(t)}),Ij.lazycreate,(nH=tH||(tH={})).ZodString="ZodString",nH.ZodNumber="ZodNumber",nH.ZodNaN="ZodNaN",nH.ZodBigInt="ZodBigInt",nH.ZodBoolean="ZodBoolean",nH.ZodDate="ZodDate",nH.ZodSymbol="ZodSymbol",nH.ZodUndefined="ZodUndefined",nH.ZodNull="ZodNull",nH.ZodAny="ZodAny",nH.ZodUnknown="ZodUnknown",nH.ZodNever="ZodNever",nH.ZodVoid="ZodVoid",nH.ZodArray="ZodArray",nH.ZodObject="ZodObject",nH.ZodUnion="ZodUnion",
34nH.ZodDiscriminatedUnion="ZodDiscriminatedUnion",nH.ZodIntersection="ZodIntersection",nH.ZodTuple="ZodTuple",nH.ZodRecord="ZodRecord",nH.ZodMap="ZodMap",nH.ZodSet="ZodSet",nH.ZodFunction="ZodFunction",nH.ZodLazy="ZodLazy",nH.ZodLiteral="ZodLiteral",nH.ZodEnum="ZodEnum",nH.ZodEffects="ZodEffects",nH.ZodNativeEnum="ZodNativeEnum",nH.ZodOptional="ZodOptional",nH.ZodNullable="ZodNullable",nH.ZodDefault="ZodDefault",nH.ZodCatch="ZodCatch",nH.ZodPromise="ZodPromise",nH.ZodBranded="ZodBranded",nH.ZodPipeline="ZodPipeline",nH.ZodReadonly="ZodReadonly";const rH=(e,t={message:`Input not instance of ${e.name}`})=>function(e,t={},n){return e?kj.create().superRefine((r,i)=>{const a=e(r);if(a instanceof Promise)return a.then(e=>{if(!e){const e=eH(t,r),a=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){const e=eH(t,r),a=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:a})}}):kj.create()}(t=>t instanceof e,t),iH=gj.create,aH=_j.create,sH=kj.create;xj.create;const oH=Oj.create,lH=Ij.create;Ij.strictCreate,Pj.create,Rj.create,Mj.create,Gj.create,Vj.create;const uH=$j.create;Wj.create;
35/**
36      * vee-validate v4.15.1
37      * (c) 2025 Abdelrahman Awad
38      * @license MIT
39      */
40const cH=e=>null!==e&&!!e&&"object"==typeof e&&!Array.isArray(e);function dH(e){return Number(e)>=0}function hH(e){if(!function(e){return"object"==typeof e&&null!==e}(e)||"[object Object]"!==function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pH(e,t){return Object.keys(t).forEach(n=>{if(hH(t[n])&&hH(e[n]))return e[n]||(e[n]={}),void pH(e[n],t[n]);e[n]=t[n]}),e}function fH(e,t){return{__type:"VVTypedSchema",async parse(n){const r=await e.safeParseAsync(n,t);if(r.success)return{value:r.data,errors:[]};const i={};return BH(r.error.issues,i),{errors:Object.values(i)}},cast(t){try{return e.parse(t)}catch(wie){const r=mH(e);return cH(r)&&cH(t)?pH(r,t):t}},describe(t){try{if(!t)return{required:!e.isOptional(),exists:!0};const n=function(e,t){if(!yH(t))return null;if(bF(e))return t.shape[xF(e)];const n=(e||"").split(/\.|\[(\d+)\]/).filter(Boolean);let r=t;for(let i=0;i<=n.length;i++){const e=n[i];if(!e||!r)return r;yH(r)?r=r.shape[e]||null:dH(e)&&vH(r)&&(r=r._def.type)}return null}(t,e);return n?{required:!n.isOptional(),exists:!0}:{required:!1,exists:!1}}catch(wie){return{required:!1,exists:!1}}}}}function BH(e,t){e.forEach(e=>{const n=function(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let r=1;r<t.length;r++)dH(t[r])?n+=`[${t[r]}]`:n+=`.${t[r]}`;return n}(e.path.join("."));("invalid_union"!==e.code||(BH(e.unionErrors.flatMap(e=>e.issues),t),n))&&(t[n]||(t[n]={errors:[],path:n}),t[n].errors.push(e.message))})}function mH(e){if(e instanceof Ij)return Object.fromEntries(Object.entries(e.shape).map(([e,t])=>t instanceof zj?[e,t._def.defaultValue()]:t instanceof Ij?[e,mH(t)]:[e,void 0]))}function gH(e){return e._def.typeName}function vH(e){return gH(e)===tH.ZodArray}function yH(e){return gH(e)===tH.ZodObject}const CH={"image/png":10,"image/jpg":10,"image/jpeg":10,"video/mp4":150},_H=fH(lH({assunto:iH({required_error:"O assunto é obrigatório"}),nome:iH({required_error:"O nome do animal é obrigatório"}).max(50,"O nome do animal deve ter no máximo 50 caracteres"),raca:iH({required_error:"A raça do animal é obrigatória"}).max(50,"A raça do animal deve ter no máximo 50 caracteres"),imagem:uH(rH(File).refine(e=>null!=CH[e.type],"O arquivo deve ser .png, .jpg, .jpeg, .mp4").refine(e=>e.size/1048576<=CH[e.type],"O arquivo não pode ser maior que 10 MB e o Vídeo não pode ter mais do que 150 MB")),caracteristica:iH({required_error:"As características do animal são obrigatórias"}),bairro:uH(iH({required_error:"O bairro é obrigatório"})),cidade:uH(iH({required_error:"A cidade é obrigatória"})),dia:uH(iH({required_error:"A data é obrigatória"})),responsavel:iH({required_error:"O responsável é obrigatório"}),email:iH({required_error:"O email é obrigatório"}).email("O email informado não é um email válido"),telefone:iH({required_error:"O telefone é obrigatório"}),mensagem:iH({required_error:"A mensagem é obrigatória"})})),bH={class:"flex flex-wrap justify-center items-center w-full small-screen:px-20 mobile:px-0"},wH={class:"cp__form__container"},DH={class:"cp__input-container"},EH={class:"cp__input-container"},kH={class:"cp__input-container"},SH={class:"cp__input-container"},xH={class:"cp__input-container"},TH={class:"w-[60%]"},OH={key:0,class:"text-red-500 text-sm self-start w-full pl-2"}
40,AH={key:0},IH={class:"cp__subtitulo -pl-1 pb-8"},PH={class:"cp__input-container pb-5"},NH={class:"flex flex-wrap"},RH={class:"cp__input__bairro"},MH={class:"cp__input__data"},FH={class:"cp__input-container"},LH={class:"cp__input-container"},jH={class:"cp__input-container"},HH={class:"cp__input-container"},UH={class:"cp__submit-button__container"},GH=["disabled"],YH={key:0,role:"status"},VH={key:1},qH={class:"cp__img-circuito-pet__container"},$H=Ir({__name:"CircuitoPet",setup(e){const t=[{label:"Divulgar animal perdido",value:yM.SUMIU},{label:"Divulgar animal encontrado",value:yM.APARECEU},{label:"Divulgar animal para doação",value:yM.DOACAO}],n=en(!1),r=new MR("circuito-pet"),{handleSubmit:i,errors:a}=oL({validationSchema:_H,initialValues:{}}),{value:s}=tL("assunto"),{value:o}=tL("imagem"),l=i(async e=>{n.value=!0,await r.post(e).then(()=>{U_.get("/circuito-pet/sucesso")}).catch(e=>{NR.error(`Erro ao enviar requisição: ${e}`,{position:NR.POSITION.TOP_RIGHT})}).finally(()=>{n.value=!1})},()=>{NR.error("Erro ao preencher campos do fomulário, favor verificar",{position:NR.POSITION.TOP_RIGHT})});return(e,r)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Cadastre seu animal - Portal Engeplus"}),cs("div",bH,[cs("div",wH,[r[8]||(r[8]=cs("div",{class:"cp__titulo__container"},[cs("h1",{class:"cp__titulo__h1"},"Circuito Pet"),cs("p",{class:"cp__mensagem-solicitacao"}," Encontrou, perdeu ou possui algum animal para doação? Cadastre em nosso circuito pet! ")],-1)),cs("form",{id:"form-circuito-pet",class:"flex flex-col w-full h-full space-y-[20px]",onSubmit:r[1]||(r[1]=(...e)=>an(l)&&an(l)(...e))},[cs("div",DH,[ds(pL,{name:"assunto",options:t})]),r[5]||(r[5]=cs("h2",{class:"cp__subtitulo mb-5 -pl-1",style:{"margin-top":"2rem !important"}}," Dados do animal ",-1)),cs("div",EH,[ds(gL,{name:"nome",label:"Nome do animal"})]),cs("div",kH,[ds(gL,{name:"raca",label:"Raça do animal"})]),cs("div",SH,[ds(_L,{name:"caracteristica",type:"text-area",label:"Características do animal"})]),cs("div",xH,[r[3]||(r[3]=cs("p",{class:"cp__label pl-1 mb-[5px]"},"Adicione a foto do animal",-1)),cs("div",TH,[ds(tF,{multiple:!1,"extensoes-permitidas":".png, .jpg, .jpeg",onChangeArquivos:r[0]||(r[0]=e=>o.value=e[0])}),an(a).imagem?(Xa(),is("span",OH,we(an(a).imagem),1)):ms("",!0)])]),"animal sumiu"==an(s)||"animal apareceu"==an(s)?(Xa(),is("div",AH,[cs("h2",IH," Local e data que "+we("animal sumiu"==an(s)?"se perdeu":"foi encontrado"),1),cs("div",PH,[ds(gL,{name:"bairro",label:"Bairro"})]),cs("div",NH,[cs("div",RH,[ds(gL,{name:"cidade",label:"Cidade"})]),cs("div",MH,[ds(gL,{name:"dia",type:"date",label:"Data"})])])])):ms("",!0),r[6]||(r[6]=cs("h2",{class:"cp__subtitulo mb-5 -pl-1 mt-5",style:{"margin-top":"2rem !important"}}," Dados do responsável ",-1)),cs("div",FH,[ds(gL,{name:"responsavel",label:"Nome do responsável"})]),cs("div",LH,[ds(gL,{name:"email",label:"E-mail"})]),cs("div",jH,[ds(gL,{name:"telefone",label:"Telefone para contato",mask:"(##) # ####-####",placeholder:"(99) 9 9999-9999"})]),cs("div",HH,[ds(_L,{name:"mensagem",label:"Mensagem"})]),r[7]||(r[7]=cs("div",{class:"space-y-5 cp__avisos-fale-conosco__container"},[cs("p",{class:"cp__avisos-fale-conosco"},[fs(" - Ao informar os meus dados, eu concordo com a "),cs("span",{class:"cp__avisos-fale-conosco__semibold"},"Politica de privacidade")]),cs("p",{class:"cp__avisos-fale-conosco"}," * Você pode alterar suas permissões de comunicação a qualquer momento. ")],-1)),cs("div",UH,[cs("button",{disabled:n.value,type:"submit",class:"cp__submit-button rounded-full"},[n.value?(Xa(),is("div",YH,[...r[4]||(r[4]=[cs("img",{class:"inline w-8 h-8",src:JM,alt:"Icone de carregamento"},null,-1)])])):(Xa(),is("span",VH," Enviar "))],8,GH)])],32)]),cs("div",qH,[r[9]||(r[9]=cs("div",{class:"rounded-full overflow-hidden"},[cs("img",{class:"w-96 h-96 small-screen:hidden",src:"https://engeplus.com.br/build/assets/Circuito_pet_engeplus-83437f07.svg",alt:"Imagem de cadastro de circuito pet"})],-1)),r[10]||(r[10]=cs("p",{class:"cp__mensagem-solicitacao py-4 text-center small-screen:hidden"}
40,[fs(" Nós sabemos o quão importantes os animais "),cs("br"),fs(" são na vida das pessoas. Por isso queremos ajudar! ")],-1)),r[2]||(ns(-1,!0),(r[2]=ds(wL)).cacheIndex=2,ns(1),r[2]),r[11]||(r[11]=cs("h2",{class:"cp__subtitulo mb-5 pl-1"},"Deseja entrar em contato conosco?",-1)),r[12]||(r[12]=cs("p",{class:"cp__mensagem-solicitacao"},"[email protected]",-1))])])],64))}}),WH=Object.freeze(Object.defineProperty({__proto__:null,default:$H},Symbol.toStringTag,{value:"Module"})),zH="https://engeplus.com.br/build/assets/contato_enviado-443106de.svg",JH={class:"container-geral"},KH=Ob({},[["render",function(e,t){return Xa(),is("div",JH,[...t[0]||(t[0]=[Bs('<div class="imagem-pet-enviado-desktop" data-v-caa5558e><img class="h-[85%] w-[85%]" src="'+zH+'" alt="imagem de circuito-pet enviado" data-v-caa5558e></div><div class="pet-enviado__container" data-v-caa5558e><h1 class="titulo" data-v-caa5558e>Seu cadastro foi enviado com sucesso</h1><div class="imagem-pet-enviado-mobile self-center" data-v-caa5558e><img class="h-[55%] w-[55%] ml-[90px] mb-[20px]" src="https://engeplus.com.br/build/assets/icon_pet-5a5daf36.svg" data-v-caa5558e></div><div class="mb-[34px]" data-v-caa5558e><p class="mensagem-solicitacao" data-v-caa5558e> Seu formulário foi enviado com sucesso, e passará pela aprovação interna do nosso setor de jornalismo antes de ser disponibilizado no portal. <span class="mensagem-solicitacao__negrito" data-v-caa5558e>Você receberá um e-mail de confirmação quando isso ocorrer!</span></p></div><div data-v-caa5558e><a href="/" class="botao-voltar rounded-full" data-v-caa5558e>Voltar a página inicial</a></div></div>',2)])])}],["__scopeId","data-v-caa5558e"]]),QH=Object.freeze(Object.defineProperty({__proto__:null,default:KH},Symbol.toStringTag,{value:"Module"})),ZH=["href"],XH={class:"flex flex-col w-full items-center justify-center my-2 space-y-2 mobile:space-y-1"},eU=["src"],tU={class:"info-colunista__h2 px-5"},nU=Ob(Ir({__name:"InfoColunista",props:{colunista:{}},setup:e=>(t,n)=>(Xa(),is("a",{class:"w-full",href:`/e/${e.colunista.categoria_url??""}`},[cs("div",XH,[cs("img",{class:"rounded-xl object-cover img-colunista",src:e.colunista.imagem?e.colunista.imagem:void 0,alt:"imagem da coluna"},null,8,eU),cs("h2",tU,we(e.colunista.categoria_nome??"")+" por "+we(e.colunista.nome),1)])],8,ZH))}),[["__scopeId","data-v-1e46902f"]]),rU=Object.freeze(Object.defineProperty({__proto__:null,default:nU},Symbol.toStringTag,{value:"Module"})),iU={class:"flex flex-col items-center w-full h-full justify-center max-w-[1280px] mx-auto mb-[38px]"},aU={class:"grid mobile:gap-x-[15px] mobile:gap-y-[10px] mobile:pb-5 gap-y-[50px] grid-cols-5 mobile:grid-cols-4 small-screen:grid-cols-6 pb-8 px-10 mobile:px-4"},sU=Ob(Ir({__name:"Colunista",props:{data:{}},setup:e=>(t,n)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Colunistas - Portal Engeplus"}),cs("div",iU,[n[0]||(n[0]=cs("h1",{class:"colunistas__h1 my-10 mobile:mt-[27px] mobile:mb-[10px]"}," Conheça nossas colunas ",-1)),cs("div",aU,[(Xa(!0),is(Wa,null,Ti(e.data,e=>
40(Xa(),as(nU,{key:e.id,colunista:e,class:"w-5 col-span-1 mobile:col-span-2 small-screen:col-span-3"},null,8,["colunista"]))),128))])])],64))}),[["__scopeId","data-v-95b38588"]]),oU=Object.freeze(Object.defineProperty({__proto__:null,default:sU},Symbol.toStringTag,{value:"Module"}));function lU(){const e=en(!1);function t(){e.value=window.innerWidth<576}return hi(()=>{t()}),pi(()=>{window.addEventListener("resize",t)}),{incrementAcesso:function(e){eC.patch("/api/anuncio/increment-acesso/"+e)},visibilityChanged:function(e,t){if(e&&!yN.ids.includes(t))return function(e){eC.patch("/api/anuncio/visualizacao/"+e)}(t),yN.ids.push(t),yN},getSingleImageSrc:t=>{const n=t.imagem.find(t=>e.value?"mobile"===t.tipo:"desktop"===t.tipo);return(null==n?void 0:n.arquivo)??""},getMultipleImages:function(t){return t.imagem.filter(t=>e.value?"mobile"===t.tipo:"desktop"===t.tipo)},isMobile:e}}const uU={key:0,class:"flex img-container justify-center"},cU=["href"],dU=["src"],hU=Ob(Ir({__name:"CardBanner",props:{data:{}},setup(e){const t=e,n=en(),r=en(0),i=en(t.data[t.data.length*Math.random()|0]),a=en(0),s=en(""),{incrementAcesso:o,visibilityChanged:l,getMultipleImages:u}=lU();function c(){let e=u(i.value);r.value+1>=e.length?(a.value=a.value+1<t.data.length?a.value+1:0,i.value=t.data[a.value],l(!0,i.value.id),e=u(i.value),r.value=0):r.value=r.value+1,s.value=e.length>0?e[r.value].arquivo:"",setTimeout(c,1e3*i.value.tempo_troca_imagem)}return pi(()=>{if(i.value){const e=u(i.value);l(!0,i.value.id),s.value=e.length>0?e[r.value].arquivo:"",setTimeout(c,1e3*i.value.tempo_troca_imagem)}}),(e,t)=>i.value?(Xa(),is("div",uU,[cs("a",{href:i.value.link,target:"_blank",onClick:t[0]||(t[0]=e=>an(o)(i.value.id))},[cs("img",{id:"img-banner",ref_key:"img",ref:n,alt:"img-an",fetchpriority:"high",src:s.value},null,8,dU)],8,cU)])):ms("",!0)}}),[["__scopeId","data-v-60b7fd52"]]);function pU(e,t){const n=new MR(`/editoria/buscar-noticias/${t.id}`),r=en(e.current_page),i=en(e.per_page),a=en(e.total),s=en(e.data),o=en(!1),l=async e=>{u(e);const{data:t}=await n.getAll({page:e});t.value=t.data,c(t)},u=e=>{const t=window.location.href,n=new URLSearchParams(window.location.search);n.set("page",String(e));const r=n.toString(),i=t.split("?")[0]+"?"+r;window.history.pushState({path:i},"",i)},c=e=>{r.value=e.current_page,i.value=e.per_page,a.value=e.total,s.value=e.data};return{setNewUrl:u,updateNoticias:l,changePage:async e=>{window.scrollTo(0,0),o.value=!0,await l(e),o.value=!1},current_page:r,per_page:i,total:a,data:s,loading:o}}const fU={class:"categoria-container"},BU={key:0,class:"categoria-imagem-container"},mU=["src","alt"],gU={class:"categoria-titulo"},vU={key:0,class:"colunista-imagem-container"},yU=["src","alt"],CU={class:"categoria-titulo-com-colunista"},_U={class:"colunista-nome"},bU=Ob(Ir({__name:"EditoriaHeader",props:{data:{}},setup(e){const t=e,n=Ys(()=>t.data.categoria.nome_usuario&&"n"!==t.data.categoria.usuario_ativo&&t.data.categoria.colunista);return(t,r)=>(Xa(),is("div",fU,[e.data.categoria.imagem_desktop?(Xa(),is("div",BU,[cs("img",{src:e.data.categoria.imagem_desktop,class:"categoria-imagem",alt:`Imagem da categoria ${e.data.categoria.nome}`},null,8,mU)])):n.value?(Xa(),is("div",{key:2,class:"categoria-com-colunista",style:re({backgroundColor:e.data.categoria.cor})},[e.data.categoria.colunista_imagem?(Xa(),is("div",vU,[cs("img",{src:e.data.categoria.colunista_imagem,class:"colunista-imagem",alt:`Imagem do colunista ${e.data.categoria.nome_usuario}`},null,8,yU)])):ms("",!0),cs("div",null,[cs("p",CU,[fs(we(e.data.categoria.nome)+" ",1),cs("span",_U," Por "+we(e.data.categoria.nome_usuario),1)])])],4)):(Xa(),is("div",{key:1,class:"categoria-sem-colunista",style:re({backgroundColor:e.data.categoria.cor})},[cs("p",gU,we(e.data.categoria.nome),1)],4))]))}}),[["__scopeId","data-v-7fbc4aee"]]),wU=Object.freeze(Object.defineProperty({__proto__:null,default:bU},Symbol.toStringTag,{value:"Module"})),DU={class:"w-full grid gap-x-[43px] gap-y-[41px] grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1"},EU={key:0,class:"w-full col-span-4 mt-[1rem]"},kU={key:1,class:"col-span-4 grid gap-x-[43px] gap-y-[41px] grid-cols-4"},SU={key:0,role:"status",class:"loading__container"}
40,xU={key:1,class:"paginacao__container"},TU={key:2,class:"sem-conteudo__container"},OU=Ob(Ir({__name:"ConteudoEditoriaDesktop",props:{data:{}},setup(e){const{observarVisualizacao:t}=LR(),n=e,r=pU(n.data.noticias,n.data.categoria),i=Ys(()=>n.data.categoria.anuncio&&n.data.categoria.anuncio.length>0),a=Ys(()=>r.data.value.length>0&&!r.loading.value);return(n,s)=>{const o=ki("observe-visibility");return Xa(),is(Wa,null,[cs("div",DU,[i.value?(Xa(),is("div",EU,[ds(hU,{data:e.data.categoria.anuncio},null,8,["data"])])):ms("",!0),ds(bU,{data:e.data},null,8,["data"]),a.value?(Xa(),is("div",kU,[(Xa(!0),is(Wa,null,Ti(an(r).data.value,e=>Jn((Xa(),as(nx,{key:e.id,data:e},null,8,["data"])),[[o,an(t)(e.id)]])),128))])):ms("",!0)]),an(r).loading.value?(Xa(),is("div",SU,[...s[0]||(s[0]=[cs("img",{class:"w-[5rem] h-[5rem]",src:JM,alt:"Icone de carregamento"},null,-1),cs("span",{class:"text-xl"},"Carregando...",-1)])])):ms("",!0),a.value?(Xa(),is("div",xU,[ds(sx,{"current-page":an(r).current_page.value,"per-page":an(r).per_page.value,total:an(r).total.value,"max-pages-shown":10,onClick:an(r).changePage},null,8,["current-page","per-page","total","onClick"])])):an(r).loading.value||a.value?ms("",!0):(Xa(),is("div",TU,[...s[1]||(s[1]=[cs("h1",{class:"paragrafo-nao-encontrado__titulo"}," Nenhum resultado encontrado ",-1),cs("p",{class:"paragrafo-nao-encontrado"}," Essa categoria ainda não possui notícias disponíveis. Em breve, traremos novida
40des! ",-1)])]))],64)}}}),[["__scopeId","data-v-cd9314e9"]]),AU=Object.freeze(Object.defineProperty({__proto__:null,default:OU},Symbol.toStringTag,{value:"Module"})),IU={class:"w-full col-span-4 h-[63px]"},PU={key:0,class:"w-full h-full overflow-hidden rounded-3xl"},NU=["src"],RU={class:"categoria-titulo"},MU={key:0,class:"flex rounded-full justify-start items-center w-[50px] h-[50px] ml-3 mr-[-20px]"},FU=["src","alt"],LU={class:"categoria-titulo flex flex-col pb-1"},jU={class:"text-white mt-[-3px] autor-coluna"},HU=Ob(Ir({__name:"EditoriaHeaderMobile",props:{data:{}},setup(e){const t=e,n=Ys(()=>!t.data.categoria.nome_usuario||"n"===t.data.categoria.usuario_ativo||!t.data.categoria.colunista),r=Ys(()=>t.data.categoria.nome_usuario&&"n"!==t.data.categoria.usuario_ativo&&t.data.categoria.colunista);return(t,i)=>(Xa(),is("div",IU,[e.data.categoria.imagem_mobile?(Xa(),is("div",PU,[cs("img",{src:e.data.categoria.imagem_mobile,class:"object-cover h-full w-full",alt:"Imagem da categoria"},null,8,NU)])):n.value?(Xa(),is("div",{key:1,class:"h-full w-full rounded-xl text-center flex items-center",style:re({backgroundColor:e.data.categoria.cor})},[cs("p",RU,we(e.data.categoria.nome),1)],4)):r.value?(Xa(),is("div",{key:2,class:"h-full w-full rounded-xl flex items-center justify-start",style:re({backgroundColor:e.data.categoria.cor})},[e.data.categoria.colunista_imagem?(Xa(),is("div",MU,[cs("img",{src:e.data.categoria.colunista_imagem,class:"object-cover h-full w-full rounded-full",alt:`Imagem do colunista ${e.data.categoria.nome}`},null,8,FU)])):ms("",!0),cs("div",null,[cs("p",LU,[fs(we(e.data.categoria.nome)+" ",1),cs("span",jU," Por "+we(e.data.categoria.nome_usuario),1)])])],4)):ms("",!0)]))}}),[["__scopeId","data-v-c75f8a22"]]),UU=Object.freeze(Object.defineProperty({__proto__:null,default:HU},Symbol.toStringTag,{value:"Module"})),GU={class:"w-full grid gap-x-[12px] gap-y-[12px] py-3 px-2 grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1"},YU={key:0,class:"w-full col-span-4 mb-[3px] mt-[10px]"},VU={key:1,class:"col-span-4 grid gap-x-[15px] gap-y-[15px] grid-cols-4"},qU={key:0,role:"status",class:"mt-10 mb-10 flex flex-col items-center w-full"},$U={key:1,class:"mx-auto w-auto px-4 mb-[-0.8rem] flex justify-center mt-8"},WU={key:2,class:"flex flex-col justify-center items-center mt-[63px] mb-[50px]"},zU=Ob(Ir({__name:"ConteudoEditoriaMobile",props:{data:{}},setup(e){const{observarVisualizacao:t}=LR(),n=e,r=pU(n.data.noticias,n.data.categoria),i=Ys(()=>n.data.categoria.anuncio&&n.data.categoria.anuncio.length>0),a=Ys(()=>r.data.value.length>0&&!r.loading.value),s=Ys(()=>!r.loading.value&&r.data.value.length<=0);return(n,o)=>{const l=ki("observe-visibility");return Xa(),is(Wa,null,[cs("div",GU,[i.value?(Xa(),is("div",YU,[ds(hU,{data:e.data.categoria.anuncio},null,8,["data"])])):ms("",!0),ds(HU,{data:e.data},null,8,["data"]),a.value?(Xa(),is("div",VU,[(Xa(!0),is(Wa,null,Ti(an(r).data.value,e=>Jn((Xa(),as(gM,{key:e.id,data:e,class:"col-span-2"},null,8,["data"])),[[l,an(t)(e.id)]])),128))])):ms("",!0)]),an(r).loading.value?(Xa(),is("div",qU,[...o[0]||(o[0]=[cs("img",{class:"w-[5rem] h-[5rem]",src:JM,alt:"Icone de carregamento"},null,-1),cs("span",{class:"text-xl"},"Carregando...",-1)])])):ms("",!0),a.value?(Xa(),is("div",$U,[ds(sx,{"current-page":an(r).current_page.value,"per-page":an(r).per_page.value,total:an(r).total.value,"max-pages-shown":5,onClick:an(r).changePage},null,8,["current-page","per-page","total","onClick"])])):s.value?(Xa(),is("div",WU,[...o[1]||(o[1]=[cs("h1",{class:"paragrafo-nao-encontrado-mobile__titulo"}," Nenhum resultado encontrado ",-1),cs("p",{class:"paragrafo-nao-encontrado-mobile text-center"}," Essa categoria ainda não possui notícias disponíveis. Em breve, traremos novida
40des! ",-1)])])):ms("",!0)],64)}}}),[["__scopeId","data-v-f72f6848"]]),JU=Object.freeze(Object.defineProperty({__proto__:null,default:zU},Symbol.toStringTag,{value:"Module"})),KU={class:"desktop-editoria mx-auto max-w-7xl sm:px-2 lg:px-2 lg:pb-8 sm:py-2 px-8 bg-white mb-8 dark:bg-gray-950"},QU={class:"mobile-editoria px-3"},ZU=Ob(Ir({__name:"Editoria",props:{data:{}},setup:e=>(t,n)=>(Xa(),is(Wa,null,[ds(an(wb),{title:`${e.data.categoria.nome} - Portal Engeplus`},null,8,["title"]),cs("div",KU,[ds(OU,{data:e.data},null,8,["data"])]),cs("div",QU,[ds(zU,{data:e.data},null,8,["data"])])],64))}),[["__scopeId","data-v-bbb059a4"]]),XU=Object.freeze(Object.defineProperty({__proto__:null,default:ZU},Symbol.toStringTag,{value:"Module"}));var eG={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",s="hour",o="day",l="week",u="month",c="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),a=n-i<0,s=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:o,D:h,h:s,m:a,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",C={};C[y]=m;var _="$isDayjsObject",b=function(e){return e instanceof k||!(!e||!e[_])},w=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();C[a]&&(i=a),n&&(C[a]=n,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;C[o]=t,i=o}return!r&&i&&(y=i),i||!r&&y},D=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},E=v;E.l=w,E.i=b,E.w=function(e,t){return D(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=D(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return D(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<D(e)},g.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!E.u(t)||t,c=E.p(e),p=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(o)},f=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},B=this.$W,m=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case u:return r?p(1,m):p(0,m+1);case l:var y=this.$locale().weekStart||0,C=(B<y?B+7:B)-y;return p(r?g-C:g+(6-C),m);case o:case h:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case a:return f(v+"Seconds",2);case i:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,l=E.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[o]=c+"Date",n[h]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[s]=c+"Hours",n[a]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],f=l===o?this.$D+(t-this.$W):t;if(l===u||l===d){var B=this.clone().set(h,1);B.$d[p](f),B.init(),this.$d=B.set(h,Math.min(this.$D,B.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(r,c){var h,p=this;r=Number(r);var f=E.p(c),B=function(e){var t=D(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(f===u)return this.set(u,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===o)return B(1);if(f===l)return B(7);var m=(h={},h[a]=t,h[s]=n,h[i]=e,h)[f]||1,g=this.$d.getTime()+r*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,a){return e&&(e[
40n]||e(t,r))||i[n].slice(0,a)},h=function(e){return E.s(a%12||12,e,"0")},f=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(B,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return o+1;case"MM":return E.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,u,3);case"MMMM":return d(u,o);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return E.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(a,s,!0);case"A":return f(a,s,!1);case"m":return String(s);case"mm":return E.s(s,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,p){var f,B=this,m=E.p(h),g=D(r),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,C=function(){return E.m(B,g)};switch(m){case d:f=C()/12;break;case u:f=C();break;case c:f=C()/3;break;case l:f=(y-v)/6048e5;break;case o:f=(y-v)/864e5;break;case s:f=y/n;break;case a:f=y/t;break;case i:f=y/e;break;default:f=y}return p?f:E.a(f)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return C[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=k.prototype;return D.prototype=S,[["$ms",r],["$s",i],["$m",a],["$H",s],["$W",o],["$M",u],["$y",d],["$D",h]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),D.extend=function(e,t){return e.$i||(e(t,k,D),e.$i=!0),D},D.locale=w,D.isDayjs=b,D.unix=function(e){return D(1e3*e)},D.en=C[y],D.Ls=C,D.p={},D}()}(eG);var tG=eG.exports;const nG=Gh(tG);!function(e){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return n.default.locale(r,null,!0),r}(tG)}({exports:{}});const rG={class:"h-full w-full bg-neutral-200 dark:bg-gray-800 rounded-2xl cursor-pointer hover:scale-105 transition duration-300 ease-out hover:ease-in"},iG={class:"flex flex-col h-full py-2 px-2 relative"},aG={class:"ml-[12px] mobile:ml-[5px] mt-[10px]"},sG={class:"mt-2 ml-[12px] mobile:ml-[5px] mr-[3px] flex-col items-start"},oG=["href"],lG={class:"noticia__titulo"},uG={key:0,class:"ml-[12px] mobile:ml-0 absolute bottom-2 mt-auto noticia_hora_entrada"},cG=Ob(Ir({__name:"CardPublicidadeLegal",props:{data:{}},setup(e){nG.locale("pt-br");const t=nG(e.data.horario_entrada,"YYYY-MM-DD HH:mm:ss").locale("pt-br").format("D [de] MMMM [de] YYYY");return(n,r)=>(Xa(),is("div",rG,[cs("div",iG,[cs("div",aG,[ds(AS,{name:e.data.categoria_nome,color:e.data.categoria_cor},null,8,["name","color"])]),cs("div",sG,[cs("a",{href:`/publicidade-legal/${e.data.id}/${e.data.slug}`,class:"mt-2 block"},[cs("p",lG,we(e.data.titulo),1)],8,oG)]),e.data.horario_entrada?(Xa(),is("div",uG,[cs("span",null,"Publicado em "+we(an(t)),1)])):ms("",!0)])]))}}),[["__scopeId","data-v-c9f525c1"]]),dG=Object.freeze(Object.defineProperty({__proto__:null,default:cG},Symbol.toStringTag,{value:"Module"})),hG={class:"mx-auto mt-3 tablet:mt-0 mobile:mx-0 max-w-7xl mobile:w-full mobile:px-3 bg-white dark:bg-gray-950 mb-8"},pG={class:"w-full grid gap-x-[43px] gap-y-[41px] mobile:gap-x-[15px] mobile:gap-y-[10px] grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1 tablet:px-5 mobile:px-0"},fG={class:"w-full mb-4 col-span-4 flex flex-wrap justify-start items-start space-x-10 mobile:space-x-0"},BG={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400"}
40,mG={class:"self-end mobile:mt-2"},gG={key:0,class:"col-span-4 grid gap-x-[43px] gap-y-[41px] grid-cols-2 mobile:px-0 mobile:gap-x-[15px] mobile:gap-y-[15px] tablet:gap-x-[30px] tablet:gap-y-[30px]"},vG={key:0,role:"status",class:"loading__container"},yG={key:1,class:"paginacao__container"},CG={key:2,class:"sem-conteudo__container"},_G=Ir({__name:"EditoriaPublicidadeLegal",props:{data:{}},setup(e){const t=e,n=en(t.data.noticias.current_page),r=en(t.data.noticias.per_page),i=en(t.data.noticias.total),a=en(t.data.noticias.data),s=en(!1),o=en(""),l=en({}),u=Ys(()=>a.value.length>0&&!s.value),c=()=>{l.value.q=o.value,n.value=1,f(n.value,l.value)},d=e=>{""===e.target.value&&c()},h=new MR(`/editoria/buscar-publicidades/${t.data.categoria.id}`),p=async e=>{window.scrollTo(0,0),s.value=!0,await f(e,{}),s.value=!1},f=async(e,t)=>{const{data:n}=await h.getAll({page:e,...t});a.value=n.data,B(n)},B=e=>{n.value=e.current_page,r.value=e.per_page,i.value=e.total,a.value=e.data};return(t,h)=>(Xa(),is(Wa,null,[ds(an(wb),{title:`${e.data.categoria.nome} - Portal Engeplus`},null,8,["title"]),cs("div",hG,[cs("div",pG,[ds(bU,{data:e.data},null,8,["data"]),cs("div",fG,[cs("div",null,[h[3]||(h[3]=cs("p",{class:"label-campo-busca dark:text-white"}," Deseja pesquisar por publicação? ",-1)),cs("form",{class:"group relative w-[300px]",onSubmit:Ol(c,["prevent"])},[cs("div",BG,[ds(an(ax),{class:"search-icon","aria-hidden":"true"})]),Jn(cs("input",{id:"buscar","onUpdate:modelValue":h[0]||(h[0]=e=>o.value=e),class:"search-input focus:ring-2 focus:ring-blue-500 focus:outline-none appearance-none leading-6 rounded-2xl py-2 pl-10 ring-1 ring-slate-200 shadow-sm bg-white dark:bg-gray-800 dark:text-white dark:placeholder:text-gray-400 dark:ring-gray-700",type:"search","aria-label":"Digite o termo desejado",placeholder:"Digite o termo desejado",onInput:d},null,544),[[gl,o.value]])],32)]),cs("div",mG,[ds(AN,{"default-value":void 0,onOnSelect:h[1]||(h[1]=e=>{(e=>{l.value.to=e.to,l.value.from=e.from,f(n.value,l.value)})(e)}),onOnClear:h[2]||(h[2]=()=>{l.value.to=void 0,l.value.from=void 0,f(n.value,l.value)})})])]),u.value?(Xa(),is("div",gG,[(Xa(!0),is(Wa,null,Ti(a.value,e=>(Xa(),is("div",{key:e.id,class:"h-[270px]"},[ds(cG,{data:e},null,8,["data"])]))),128))])):ms("",!0)]),s.value?(Xa(),is("div",vG,[...h[4]||(h[4]=[cs("img",{class:"w-[5rem] h-[5rem]",src:JM,alt:"Icone de carregamento"},null,-1),cs("span",{class:"text-xl"},"Carregando...",-1)])])):ms("",!0),u.value?(Xa(),is("div",yG,[ds(sx,{"current-page":n.value,"per-page":r.value,total:i.value,"max-pages-shown":10,onClick:p},null,8,["current-page","per-page","total"])])):s.value||u.value?ms("",!0):(Xa(),is("div",CG,[...h[5]||(h[5]=[cs("h1",{class:"paragrafo-nao-encontrado__titulo"}," Nenhum resultado encontrado ",-1),cs("p",{class:"paragrafo-nao-encontrado"}," Essa categoria ainda não possui notícias disponíveis. Em breve, traremos novida
40des! ",-1)])]))])],64))}}),bG=Ob(_G,[["__scopeId","data-v-7b7e7b76"]]),wG=Object.freeze(Object.defineProperty({__proto__:null,default:bG},Symbol.toStringTag,{value:"Module"})),DG={class:"container-geral"},EG=Ob({},[["render",function(e,t){return Xa(),is("div",DG,[...t[0]||(t[0]=[Bs('<div class="imagem-contato-enviado-desktop" data-v-6bf52004><img class="h-[75%] w-[75%]" src="'+zH+'" data-v-6bf52004></div><div class="contato-enviado__container" data-v-6bf52004><h1 class="titulo" data-v-6bf52004>Sua solicitação de contato foi enviada com sucesso</h1><div class="imagem-contato-enviado-mobile self-center" data-v-6bf52004><img class="h-[100%] w-[100%] my-[20px]" src="'+zH+'" data-v-6bf52004></div><div class="mensagem-solicitacao__container" data-v-6bf52004><p class="mensagem-solicitacao" data-v-6bf52004> Sua solicitação de contato foi enviada com sucesso, e será encaminhada para o setor responsável. <span class="mensagem-solicitacao__negrito" data-v-6bf52004>Em breve você receberá o retorno de um de nossos especialistas.</span></p></div><div data-v-6bf52004><a href="/" class="botao-voltar rounded-full" data-v-6bf52004>Voltar a página inicial</a></div></div>',2)])])}],["__scopeId","data-v-6bf52004"]]),kG=Object.freeze(Object.defineProperty({__proto__:null,default:EG},Symbol.toStringTag,{value:"Module"})),SG=fH(lH({departamento:iH({required_error:"É necessário informar um departamento"}).min(1,"é necessário informar um departamento"),nome:iH({required_error:"O nome é obrigatório"}),email:iH({required_error:"O email é obrigatório"}).email("o campo não é um email válido"),telefone:iH({required_error:"O telefone é obrigatório"}),mensagem:iH({required_error:"A mensagem é obrigatória"})})),xG={class:"flex justify-center w-full"},TG={class:"fc__form__containter"},OG={class:"fc__input-container"},AG={class:"fc__input-container"},IG={class:"fc__input-container"},PG={class:"fc__input-container"},NG={class:"fc__input-container"},RG={class:"fc__submit-button__container"},MG=["disabled"],FG={key:0,role:"status"},LG={key:1},jG=Ir({__name:"FaleConosco",props:{departament:{}},setup(e){const t=e,n=new MR("/fale-conosco"),r=en(!1),i=[{label:"Falar com Portal Engeplus",value:vM.PORTAL},{label:"Falar com Engeplus Internet",value:vM.INTERNET},{label:"Falar com Engeplus Datacenter",value:vM.DATACENTER}],{handleSubmit:a}=oL({validationSchema:SG,initialValues:{departamento:t.departament?t.departament:""}}),s=a(async e=>{r.value=!0;try{await n.post(e),U_.visit("/contato-enviado")}catch(zle){}r.value=!1},()=>{NR.error("Alguns campos obrigatórios não foram preenchidos. Revise os campos novamente.")});return(e,t)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Fale conosco - Portal Engeplus"}),cs("div",xG,[cs("div",TG,[t[4]||(t[4]=cs("div",{class:"fc__titulo__container"},[cs("h1",{class:"fc__titulo__h1"},"Fale Conosco")],-1)),cs("form",{id:"form-fale-conosco",class:"flex flex-col items-center w-full h-full space-y-[20px]",onSubmit:t[0]||(t[0]=(...e)=>an(s)&&an(s)(...e))},[cs("div",OG,[ds(pL,{name:"departamento",options:i})]),cs("div",AG,[ds(gL,{name:"nome",label:"Nome"})]),cs("div",IG,[ds(gL,{name:"email",label:"Email"})]),cs("div",PG,[ds(gL,{name:"telefone",mask:"(##) # ####-####",label:"Telefone"})]),cs("div",NG,[ds(_L,{name:"mensagem",type:"text-area",label:"Mensagem"})]),t[2]||(t[2]=cs("div",{class:"space-y-5 fc__avisos-fale-conosco__container self-start"},[cs("p",{class:"fc__avisos-fale-conosco"},[fs(" - Ao informar meus dados, eu concordo com a "),cs("span",{class:"fc__avisos-fale-conosco__semibold"},"Politica de privacidade")]),cs("p",{class:"fc__avisos-fale-conosco"}," * Você pode alterar suas permissões de comunicação a qualquer momento. ")],-1)),cs("div",RG,[cs("button",{type:"submit",form:"form-fale-conosco",disabled:r.value,class:"fc__submit-button rounded-full"},[r.value?(Xa(),is("div",FG,[...t[1]||(t[1]=[cs("img",{class:"inline w-8 h-8",src:JM,alt:"Icone de carregamento"},null,-1)])])):(Xa(),is("span",LG," Enviar "))],8,MG)]),t[3]||(t[3]=cs("div",{class:"fc__anuncie-aqui__mobile w-full"},[cs("p",{class:"fc__anuncie-aqui__p"}," Você deseja anunciar no Portal Engeplus? "),cs("p",{class:"fc__anuncie-aqui__clique-aqui text-[#0095d4]"}," Clique aqui! ")],-1))],32)]),t[5]||(t[5]=cs("div",{class:"fc__imagem"}
vendor: 15,285 bytes, line 40
40,[cs("img",{class:"w-[70%] h-full",src:"https://engeplus.com.br/build/assets/faleconosco-70e1f54d.svg"})],-1))])],64))}}),HG=Object.freeze(Object.defineProperty({__proto__:null,default:jG},Symbol.toStringTag,{value:"Module"})),UG=["viewport","carousel"],GG={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},YG=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"];Object.values(GG);const VG=["slide","fade"],qG=["center","start","end","center-even","center-odd"],$G=.08,WG={autoplay:0,breakpointMode:UG[0],breakpoints:void 0,dir:YG[0],enabled:!0,gap:0,height:"auto",i18n:{ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:VG[0],snapAlign:qG[0],touchDrag:!0,transition:300,transitionEasing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",wrapAround:!1},zG=Symbol("carousel");function JG({slides:e,position:t,toShow:n}){const r=[],i="before"===t,a=i?-n:0,s=i?0:n;if(e.length<=0)return r;for(let o=a;o<s;o++){const n={index:i?o:o+e.length,isClone:!0,id:void 0,key:`clone-${t}-${o}`},a=ps(e[(o%e.length+e.length)%e.length].vnode,n);a.el=null,r.push(a)}return r}function KG(e){if(!(e.el&&e.el instanceof Element))return;const t=e.el.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])');for(const n of t)n instanceof HTMLElement&&!n.hasAttribute("disabled")&&"true"!==n.getAttribute("aria-hidden")&&n.setAttribute("tabindex","-1")}function QG({val:e,max:t,min:n}){return t<n?e:Math.min(Math.max(e,isNaN(n)?e:n),isNaN(t)?e:t)}const ZG=new WeakMap;function XG(e){e&&e.forEach(e=>ZG.delete(e))}function eY(e){if(0===e.size)return{widthMultiplier:1,heightMultiplier:1};let t=1,n=1;return e.forEach(e=>{const r=function(e){const t=ZG.get(e);if(t)return t;const{transform:n}=window.getComputedStyle(e);if(!n||"none"===n){const t=[1,0,0,1,0,0];return ZG.set(e,t),t}const r=n.split(/[(,)]/).slice(1,-1).map(e=>parseFloat(e));return r.length>0&&!r.some(isNaN)&&ZG.set(e,r),r}(e);if(6===r.length){const e=r[0],i=r[3];0!==e&&(t/=e),0!==i&&(n/=i)}}),{widthMultiplier:t,heightMultiplier:n}}function tY({slideSize:e,viewportSize:t,align:n,itemsToShow:r}){return void 0!==r?function(e,t){switch(e){case"start":default:return 0;case"center":case"center-odd":return(t-1)/2;case"center-even":return(t-2)/2;case"end":return t-1}}(n,r):void 0!==e&&void 0!==t?function(e,t,n){switch(e){case"start":default:return 0;case"center":case"center-odd":return(n-t)/2;case"center-even":return n/2-t;case"end":return n-t}}(n,e,t):0}function nY({val:e,max:t,min:n=0}){const r=t-n+1;return((e-n)%r+r)%r+n}function rY(e,t=0){let n=!1,r=null,i=null;function a(...a){n||(n=!0,t>16?r=setTimeout(()=>{e(...a),n=!1,r=null},t):i=requestAnimationFrame(()=>{e(...a),n=!1,i=null}))}return a.cancel=()=>{null!==r&&(clearTimeout(r),r=null),null!==i&&(cancelAnimationFrame(i),i=null),n=!1},a}function iY(e,t="px"){if(null!=e&&""!==e)return"number"==typeof e||parseFloat(e).toString()===e?`${e}${t}`:e}const aY=Ir({name:"CarouselAria",setup(){const e=Zn(zG);return e?()=>Vs("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},function(e="",t={}){return Object.entries(t).reduce((e,[t,n])=>e.replace(`{${t}}`,String(n)),e)}(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}}),sY=Ir({name:"VueCarousel",props:{autoplay:{default:WG.autoplay,type:Number},breakpoints:{default:WG.breakpoints,type:Object},breakpointMode:{default:WG.breakpointMode,validator(e){const t=UG.includes(e);return t}},clamp:{type:Boolean},dir:{type:String,default:WG.dir,validator:(e,t)=>!!YG.includes(e)&&(["ttb","btt"].includes(e in GG?GG[e]:e)&&(!t.height||t.height),!0)},enabled:{default:WG.enabled,type:Boolean},gap:{default:WG.gap,type:Number},height:{default:WG.height,type:[Number,String]},i18n:{default:WG.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:WG.itemsToScroll,type:Number},itemsToShow:{default:WG.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:WG.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:WG.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:WG.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:WG.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator:(e,t)=>(e&&t.wrapAround,!0)},slideEffect:{type:String,default:WG.slideEffect,validator(e){const t=VG.includes(e);return t}},snapAlign:{default:WG.snapAlign,validator(e){const t=qG.includes(e);return t}},touchDrag:{default:WG.touchDrag,type:[Boolean,Object]},transition:{default:WG.transition,type:Number},transitionEasing:{default:WG.transitionEasing,type:String},wrapAround:{default:WG.wrapAround,type:Boolean}},emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:t,emit:n,expose:r}){var i;const a=(e=>{const t=Ut([]),n=e=>{void 0!==e?t.slice(e).forEach((t,n)=>{var r;null===(r=t.exposed)||void 0===r||r.setIndex(e+n)}):t.forEach((e,t)=>{var n;null===(n=e.exposed)||void 0===n||n.setIndex(t)})};return{cleanup:()=>{t.splice(0,t.length)},getSlides:()=>t,registerSlide:(r,i)=>{if(!r)return;if(r.props.isClone)return;const a=null!=i?i:t.length;t.splice(a,0,r),n(a),e("slide-registered",{slide:r,index:a})},unregisterSlide:r=>{const i=t.indexOf(r);-1!==i&&(e("slide-unregistered",{slide:r,index:i}),t.splice(i,1),n(i))}}})(n),s=a.getSlides(),o=Ys(()=>s.length),l=en(null),u=en(null),c=en(0),d=Ys(()=>{return Object.assign(Object.assign(Object.assign({},WG),(t=e,n=["breakpoints","modelValue"],Object.keys(t).filter(e=>!n.includes(e)).reduce((e,n)=>(e[n]=t[n],e),{}))),{i18n:Object.assign(Object.assign({},WG.i18n),e.i18n)});var t,n}),h=Ut(Object.assign({},d.value)),p=en(null!==(i=e.modelValue)&&void 0!==i?i:0),f=en(p.value);rr(p,e=>f.value=e);const B=en(0),m=Ys(()=>Math.ceil((o.value-1)/2)),g=Ys(()=>o.value-1),v=Ys(()=>0);let y=null,C=null,_=null;const b=Ys(()=>c.value+h.gap),w=Ys(()=>{const e=h.dir||"ltr";return e in GG?GG[e]:e}),D=Ys(()=>["rtl","btt"].includes(w.value)),E=Ys(()=>["ttb","btt"].includes(w.value)),k=Ys(()=>"auto"===h.itemsToShow),S=Ys(()=>E.value?"height":"width");function x(){var t;if(!j.value)return;const n=("carousel"===d.value.breakpointMode?null===(t=l.value)||void 0===t?void 0:t.getBoundingClientRect().width:"undefined"!=typeof window?window.innerWidth:0)||0,r=Object.keys(e.breakpoints||{}).map(e=>Number(e)).sort((e,t)=>+t-+e),i={};r.some(t=>n>=t&&(Object.assign(i,e.breakpoints[t]),i.i18n&&Object.assign(i.i18n,d.value.i18n,e.breakpoints[t].i18n),!0)),Object.assign(h,d.value,i),k.value||(h.itemsToShow=QG({val:Number(h.itemsToShow),max:e.clamp?o.value:1/0,min:1}))}const T=rY(()=>{x(),N(),P()}),O=Ut(new Set),A=en([]),I=en({width:0,height:0});function P(){if(!u.value)return;const e=eY(O);if(function({widthMultiplier:e,heightMultiplier:t}){var n;const r=(null===(n=u.value)||void 0===n?void 0:n.getBoundingClientRect())||{width:0,height:0};I.value={width:r.width*e,height:r.height*t}}(e),function({widthMultiplier:e,heightMultiplier:t}){A.value=s.map(n=>{var r;const i=null===(r=n.exposed)||void 0===r?void 0:r.getBoundingRect();return{width:i.width*e,height:i.height*t}})}(e),k.value)c.value=function(e){if(0===e.length)return 0;const t=e.filter(e=>"number"==typeof e&&!isNaN(e)&&isFinite(e));return 0===t.length?0:t.reduce((e,t)=>e+t,0)/t.length}(A.value.map(e=>e[S.value]));else{const e=Number(h.itemsToShow),t=(e-1)*h.gap;c.value=(I.value[S.value]-t)/e}}function N(){!h.wrapAround&&o.value>0&&(p.value=QG({val:p.value,max:g.value,min:v.value}))}const R=Ys(()=>"string"==typeof e.ignoreAnimations?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:!e.ignoreAnimations&&[]);let M;tr(()=>N()),tr(()=>{P()});const F=e=>{const t=e.target;if(!(!(null==t?void 0:t.contains(l.value))||Array.isArray(R.value)&&R.value.includes(e.animationName)||(O.add(t),XG(new Set([t])),M))){const e=()=>{M=requestAnimationFrame(()=>{XG(O),P(),e()})};e()}},L=e=>{const t=e.target;t&&(O.delete(t),XG(new Set([t]))),M&&0===O.size&&(cancelAnimationFrame(M),P())},j=en(!1);"undefined"!=typeof document&&tr(()=>{j.value&&!1!==R.value?(document.addEventListener("animationstart",F,{passive:!0}),document.addEventListener("animationend",L,{passive:!0})):(document.removeEventListener("animationstart",F),document.removeEventListener("animationend",L))}),pi(()=>{j.value=!0,x(),$(),l.value&&(_=new ResizeObserver(T),_.observe(l.value)),n("init")}),mi(()=>{j.value=!1,a.cleanup(),C&&clearTimeout(C),M&&cancelAnimationFrame(M),y&&clearInterval(y),_&&(_.disconnect(),_=null),"undefined"!=typeof document&&V(),l.value&&(l.value.removeEventListener("transitionend",P),l.value.removeEventListener("animationiteration",P))});const{isHover:H,handleMouseEnter:U,handleMouseLeave:G}=function(){const e=en(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}(),Y=rY(e=>{if(!e.ctrlKey)switch(e.key){case"ArrowLeft":case"ArrowUp":E.value===e.key.endsWith("Up")&&(D.value?ee(!0):te(!0));break;case"ArrowRight":case"ArrowDown":E.value===e.key.endsWith("Down")&&(D.value?te(!0):ee(!0))}},200),V=()=>{document.removeEventListener("keydown",Y)},q=()=>{document.addEventListener("keydown",Y)};function $(){!h.autoplay||h.autoplay<=0||(y=setInterval(()=>{h.pauseAutoplayOnHover&&H.value||ee()},h.autoplay))}function W(){z(),$()}function z(){y&&(clearInterval(y),y=null)}const J=en(!1),{dragged:K,isDragging:Q,handleDragStart:Z}=function(e){let t=!1;const n={x:0,y:0},r=Ht({x:0,y:0}),i=en(!1),{isSliding:a}=e,s=Ys(()=>"boolean"==typeof a?a:a.value),o=rY(a=>{var s;if(t&&a.touches.length>1)return;i.value=!0;const o=t?a.touches[0].clientX:a.clientX,l=t?a.touches[0].clientY:a.clientY;r.x=o-n.x,r.y=l-n.y,null===(s=e.onDrag)||void 0===s||s.call(e,{deltaX:r.x,deltaY:r.y,isTouch:t})}),l=()=>{var n;o.cancel();const a=Math.abs(r.x)+Math.abs(r.y);!t&&a>10&&window.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation()},{once:!0,capture:!0}),null===(n=e.onDragEnd)||void 0===n||n.call(e),r.x=0,r.y=0,i.value=!1;const s=t?"touchmove":"mousemove",u=t?"touchend":"mouseup";document.removeEventListener(s,o),document.removeEventListener(u,l)};return{dragged:r,isDragging:i,handleDragStart:r=>{var i;const a=r.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(a)||s.value)return;if(t="touchstart"===r.type,t&&r.touches.length>1)return;if(!t&&(r.preventDefault(),0!==r.button))return;n.x=t?r.touches[0].clientX:r.clientX,n.y=t?r.touches[0].clientY:r.clientY;const u=t?"touchmove":"mousemove",c=t?"touchend":"mouseup";document.addEventListener(u,o,{passive:t}),document.addEventListener(c,l,{passive:!0}),null===(i=e.onDragStart)||void 0===i||i.call(e)}}}({isSliding:J,onDrag:({deltaX:e,deltaY:t,isTouch:r})=>{var i,a,s,o;n("drag",{deltaX:e,deltaY:t});const l=r?"object"==typeof h.touchDrag&&null!==(a=null===(i=h.touchDrag)||void 0===i?void 0:i.threshold)&&void 0!==a?a:$G:"object"==typeof h.mouseDrag&&null!==(o=null===(s=h.mouseDrag)||void 0===s?void 0:s.threshold)&&void 0!==o?o:$G,u=function(e){const{isVertical:t,isReversed:n,dragged:r,effectiveSlideSize:i,threshold:a}=e,s=t?r.y:r.x;if(0===s)return 0;const o=s/i,l=Math.abs(o);if(l<a)return 0;const u=l<1?Math.sign(o):Math.round(o);return n?u:-u}({isVertical:E.value,isReversed:D.value,dragged:{x:e,y:t},effectiveSlideSize:b.value,threshold:l});0!==u&&(f.value=h.wrapAround?p.value+u:QG({val:p.value+u,max:g.value,min:v.value}))},onDragEnd:()=>ne(f.value)}),{handleScroll:X}=function(e){const{isVertical:t,isSliding:n,config:r}=e,i=Ys(()=>"boolean"==typeof t?t:t.value),a=Ys(()=>"boolean"==typeof n?n:n.value);return{handleScroll:t=>{var n,s;if(t.preventDefault(),!r.mouseWheel||a.value)return;const o="object"==typeof r.mouseWheel&&null!==(n=r.mouseWheel.threshold)&&void 0!==n?n:10,l=Math.abs(t.deltaY)>o?t.deltaY:0,u=Math.abs(t.deltaX)>o?t.deltaX:0;if(0===l&&0===u)return;const c=i.value?l:u,d=(0!==c?c:i.value?u:l)>0;null===(s=e.onWheel)||void 0===s||s.call(e,{deltaX:u,deltaY:l,isScrollingForward:d})}}}({isVertical:E,isSliding:J,config:h,onWheel:({deltaX:e,deltaY:t,isScrollingForward:r})=>{n("wheel",{deltaX:e,deltaY:t}),r?D.value?te():ee():D.value?ee():te()}});function ee(e=!1){ne(p.value+h.itemsToScroll,e)}function te(e=!1){ne(p.value-h.itemsToScroll,e)}function ne(e,t=!1){if(!t&&J.value)return;const r=(h.wrapAround?nY:QG)({val:e,max:g.value,min:v.value});p.value!==r&&(B.value=p.value,n("slide-start",{slidingToIndex:e,currentSlideIndex:p.value,prevSlideIndex:B.value,slidesCount:o.value}),z(),J.value=!0,p.value=e,r!==e&&re.pause(),n("update:modelValue",r),C=setTimeout(()=>{h.wrapAround&&r!==e&&(re.resume(),p.value=r,n("loop",{currentSlideIndex:p.value,slidingToIndex:e})),n("slide-end",{currentSlideIndex:p.value,prevSlideIndex:B.value,slidesCount:o.value}),J.value=!1,W()},h.transition))}rr(()=>[d.value,e.breakpoints],()=>x(),{deep:!0}),rr(()=>e.autoplay,()=>W());const re=rr(()=>e.modelValue,e=>{e!==p.value&&ne(Number(e),!0)});n("before-init");const ie=Ys(()=>{if(!h.wrapAround)return{before:0,after:0};if(k.value)return{before:s.length,after:s.length};const e=Number(h.itemsToShow),t=Math.ceil(e+(h.itemsToScroll-1)),n=t-f.value,r=t-(o.value-(f.value+1));return{before:Math.max(0,n),after:Math.max(0,r)}}),ae=Ys(()=>ie.value.before?k.value?-1*A.value.slice(-1*ie.value.before).reduce((e,t)=>e+t[S.value]+h.gap,0):ie.value.before*b.value*-1:0),se=Ys(()=>{var e;if(k.value){const t=(p.value%s.length+s.length)%s.length;return tY({slideSize:null===(e=A.value[t])||void 0===e?void 0:e[S.value],viewportSize:I.value[S.value],align:h.snapAlign})}return tY({align:h.snapAlign,itemsToShow:+h.itemsToShow})}),oe=Ys(()=>{let e=0;if(k.value)e=p.value<0?-1*A.value.slice(p.value).reduce((e,t)=>e+t[S.value]+h.gap,0):A.value.slice(0,p.value).reduce((e,t)=>e+t[S.value]+h.gap,0),e-=se.value,h.wrapAround||(e=QG({val:e,max:A.value.reduce((e,t)=>e+t[S.value]+h.gap,0)-I.value[S.value]-h.gap,min:0}));else{let t=p.value-se.value;h.wrapAround||(t=QG({val:t,max:o.value-+h.itemsToShow,min:0})),e=t*b.value}return e*(D.value?1:-1)}),le=Ys(()=>{var e,t;if(!k.value){const e=p.value-se.value;return h.wrapAround?{min:Math.floor(e),max:Math.ceil(e+Number(h.itemsToShow)-1)}:{min:Math.floor(QG({val:e,max:o.value-Number(h.itemsToShow),min:0})),max:Math.ceil(QG({val:e+Number(h.itemsToShow)-1,max:o.value-1,min:0}))}}let n=0;{let t=0,r=0-ie.value.before;const i=Math.abs(oe.value+ae.value);let a=0;const o=2*s.length;for(;t<=i&&a<o;){const n=(r%s.length+s.length)%s.length,i=(null===(e=A.value[n])||void 0===e?void 0:e[S.value])||0;if(i<=0)break;t+=i+h.gap,r++,a++}n=r-1}let r=0;{let e=n,i=0,a=0;const o=2*s.length;for(i=e<0?A.value.slice(0,e).reduce((e,t)=>
40e+t[S.value]+h.gap,0)-Math.abs(oe.value+ae.value):A.value.slice(0,e).reduce((e,t)=>e+t[S.value]+h.gap,0)-Math.abs(oe.value);i<I.value[S.value]&&a<o;){const n=(e%s.length+s.length)%s.length,r=(null===(t=A.value[n])||void 0===t?void 0:t[S.value])||0;if(r<=0)break;i+=r+h.gap,e++,a++}r=e-1}return{min:Math.floor(n),max:Math.ceil(r)}}),ue=Ys(()=>{if("fade"===h.slideEffect)return;const e=E.value?"Y":"X",t=E.value?K.y:K.x;let n=oe.value+t;if(!h.wrapAround&&h.preventExcessiveDragging){let e=0;e=k.value?A.value.reduce((e,t)=>e+t[S.value],0):(o.value-Number(h.itemsToShow))*b.value,n=QG({val:n,min:D.value?0:-1*e,max:D.value?e:0})}return`translate${e}(${n}px)`}),ce=Ys(()=>({"--vc-carousel-height":iY(h.height),"--vc-cloned-offset":iY(ae.value),"--vc-slide-gap":iY(h.gap),"--vc-transition-duration":J.value?iY(h.transition,"ms"):void 0,"--vc-transition-easing":h.transitionEasing})),de=Ht({activeSlide:f,config:h,currentSlide:p,isSliding:J,isVertical:E,maxSlide:g,minSlide:v,nav:{slideTo:ne,next:ee,prev:te},normalizedDir:w,slideRegistry:a,slideSize:c,slides:s,slidesCount:o,viewport:u,visibleRange:le});Qn(zG,de);const he=Ht({config:h,currentSlide:p,maxSlide:g,middleSlide:m,minSlide:v,slideSize:c,slidesCount:o});return r(Ht(Object.assign({data:he,next:ee,prev:te,restartCarousel:function(){x(),N(),P(),W()},slideTo:ne,updateBreakpointsConfig:x,updateSlideSize:P,updateSlidesData:N},dn(de)))),()=>{var e;const n=t.default||t.slides,r=(null==n?void 0:n(he))||[],{before:i,after:a}=ie.value,o=[...JG({slides:s,position:"before",toShow:i}),...r,...JG({slides:s,position:"after",toShow:a})];if(!h.enabled||!o.length)return Vs("section",{ref:l,class:["carousel","is-disabled"]},o);const c=(null===(e=t.addons)||void 0===e?void 0:e.call(t,he))||[],d=Vs("ol",{class:"carousel__track",onMousedownCapture:h.mouseDrag?Z:null,onTouchstartPassiveCapture:h.touchDrag?Z:null,onWheel:h.mouseWheel?X:null,style:{transform:ue.value}},o),p=Vs("div",{class:"carousel__viewport",ref:u},d);return Vs("section",{ref:l,class:["carousel",`is-${w.value}`,`is-effect-${h.slideEffect}`,{"is-dragging":Q.value,"is-hover":H.value,"is-sliding":J.value,"is-vertical":E.value}],dir:w.value,style:ce.value,"aria-label":h.i18n.ariaGallery,tabindex:"0",onBlur:V,onFocus:q,onMouseenter:U,onMouseleave:G},[p,c,Vs(aY)])}}});var oY,lY;(lY=oY||(oY={})).arrowDown="arrowDown",lY.arrowLeft="arrowLeft",lY.arrowRight="arrowRight",lY.arrowUp="arrowUp";const uY=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,cY={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"},dY=e=>e&&e in oY,hY=Ir({props:{name:{type:String,required:!0,validator:dY},title:{type:String,default:e=>
40e.name?WG.i18n[uY(e.name)]:""}},setup(e){const t=Zn(zG,null);return()=>{const n=e.name;if(!n||!dY(n))return;const r=Vs("path",{d:cY[n]}),i=(null==t?void 0:t.config.i18n[uY(n)])||e.title,a=Vs("title",i);return Vs("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[a,r])}}}),pY=Ir({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:t,attrs:n}){let r=Zn(zG,null);const{next:i,prev:a}=t,s=Ys(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),o=Ys(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(e.carousel&&(r=e.carousel),!r)return"";const{i18n:t}=r.config;return[Vs("button",Object.assign(Object.assign({type:"button",disabled:s.value,"aria-label":t.ariaPreviousSlide,title:t.ariaPreviousSlide,onClick:r.nav.prev},n),{class:["carousel__prev",{"carousel__prev--disabled":s.value},n.class]}),(null==a?void 0:a())||Vs(hY,{name:{btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"}[r.normalizedDir]})),Vs("button",Object.assign(Object.assign({type:"button",disabled:o.value,"aria-label":t.ariaNextSlide,title:t.ariaNextSlide,onClick:r.nav.next},n),{class:["carousel__next",{"carousel__next--disabled":o.value},n.class]}),(null==i?void 0:i())||Vs(hY,{name:{btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"}[r.normalizedDir]}))]}}}),fY=Ir({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:Pr()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:t,slots:n,expose:r}){const i=Zn(zG);if(Qn(zG,void 0),!i)return()=>"";const a=en(e.index),s=ks();r({id:e.id,setIndex:e=>{a.value=e},getBoundingRect:()=>{const e=s.vnode.el;return e?e.getBoundingClientRect():{width:0,height:0}}});const o=Ys(()=>a.value===i.activeSlide),l=Ys(()=>a.value===i.activeSlide-1),u=Ys(()=>a.value===i.activeSlide+1),c=Ys(()=>a.value>=i.visibleRange.min&&a.value<=i.visibleRange.max),d=Ys(()=>{if("auto"===i.config.itemsToShow)return;const e=i.config.itemsToShow,t=i.config.gap>0&&e>1?`calc(${100/e}% - ${i.config.gap*(e-1)/e}px)`:100/e+"%";return i.isVertical?{height:t}:{width:t}});return i.slideRegistry.registerSlide(s,e.index),gi(()=>{i.slideRegistry.unregisterSlide(s)}),e.isClone&&(pi(()=>{KG(s.vnode)}),Bi(()=>{KG(s.vnode)})),()=>{var r,s;return i.config.enabled?Vs("li",{style:[t.style,Object.assign({},d.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c.value,"carousel__slide--active":o.value,"carousel__slide--prev":l.value,"carousel__slide--next":u.value,"carousel__slide--sliding":i.isSliding},onFocusin:()=>{i.viewport&&(i.viewport.scrollLeft=0),i.nav.slideTo(a.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0,tabindex:e.isClone||!c.value?-1:void 0},null===(s=n.default)||void 0===s?void 0:s.call(n,{currentIndex:a.value,isActive:o.value,isClone:e.isClone,isPrev:l.value,isNext:u.value,isSliding:i.isSliding,isVisible:c.value})):null===(r=n.default)||void 0===r?void 0:r.call(n)}}}),BY={key:0,class:"bg-gray-100 dark:bg-gray-800 py-2"},mY={class:"mx-auto small-screen:ml-2 mt-8 mb-8 lg:max-w-none"},gY=["href","target"],vY={class:"evento__img flex-shrink-0"},yY=["src","onError"],CY={class:"px-1"},_Y={class:"evento__titulo-materia"},bY=Ir({__name:"CardEvento",props:{data:{}},setup(e){To(e=>({v0b6a7b00:n.value}));const t=e,n=Ys(()=>{var e,n;return(null==(n=null==(e=t.data)?void 0:e.categoria)?void 0:n.cor)||"#0c4a6e"}),r={200:{itemsToShow:2},800:{itemsToShow:3},1024:{itemsToShow:3},1279:{itemsToShow:5}},{observarVisualizacao:i}=LR();return(t,n)=>{var a,s;const o=ki("observe-visibility");return(null==(s=null==(a=e.data)?void 0:a.categoria)?void 0:s.id)?(Xa(),is("div",BY,[cs("div",{class:"evento__titulo",style:re({color:e.data.categoria.cor})},we(e.data.categoria.nome.toUpperCase()),5),cs("div",mY,[ds(an(sY),{breakpoints:r,class:"carousel","snap-align":"start"},{addons:zn(()=>[ds(an(pY))]),default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.data.noticias,t=>Jn((Xa(),as(an(fY),{key:t.id},{default:zn(()=>[cs("a",{href:t.noticia_url,target:t.noticia_externa?"_blank":"_self",class:"evento__noticia h-full w-48 rounded-lg overflow-hidden scale-95 hover:scale-100 transition duration-300 ease-out hover:ease-in cursor-pointer"},[cs("div",vY,[cs("img",{loading:"lazy",class:"h-full w-full rounded-[5.77px] object-cover",src:an("https://portal-arquivos.engeplus.c
40om.br/")+t.pasta+an(IS).formatSmallSizeImage(t.imagem),alt:"imagem evento",onError:e=>an(IS).getImageFallback(e,t)},null,40,yY)]),cs("div",CY,[cs("p",{class:"evento__categoria",style:re({color:e.data.categoria.cor})},we(e.data.categoria.nome),5),cs("p",_Y,we(t.titulo),1)])],8,gY)]),_:2},1024)),[[o,an(i)(t.id,{verificarOclusao:!1})]])),128))]),_:1})])])):ms("",!0)}}}),wY=Ob(bY,[["__scopeId","data-v-74c132d1"]]),DY={class:"bg-gray-100 py-2 dark:bg-gray-800"},EY=["href","target"],kY=["src"],SY={class:"campanha__cartola"},xY={class:"campanha__noticia"},TY=Ir({__name:"CardCampanhas",props:{data:{}},setup(e){const t={snapAlign:"start",wrapAround:!0,transition:500},n={200:{itemsToShow:2},800:{itemsToShow:3},1024:{itemsToShow:3},1279:{itemsToShow:5}},r={anuncienoportal:"https://engeplus.com.br/build/assets/an-be90b0c0.jpg",sugestaopauta:"https://engeplus.com.br/build/assets/sugestao-eedd6336.jpg",circuitopetcadastrar:"https://engeplus.com.br/build/assets/pet-6f49bacb.jpg",camerasaovivo:"https://engeplus.com.br/build/assets/Cameras_ao_vivo_-_Sem_serra-04ec0569.jpg",ingressocinema:"https://engeplus.com.br/build/assets/cinema-ea7b96e9.jpg"};return(i,a)=>(Xa(),is("div",DY,[ds(an(sY),{settings:t,breakpoints:n,class:"carousel"},{default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.data,e=>(Xa(),as(an(fY),{key:e.titulo},{default:zn(()=>[cs("a",{href:e.url,target:e.abrirNovaAba?"_blank":"",class:"h-full flex flex-col w-48 p-3 overflow-hidden cursor-pointer"},[cs("img",{src:r[e.img]??an("https://portal-arquivos.engeplus.com.br/")+e.img,alt:"imagem das campanhas engeplus",loading:"lazy",class:"max-h-[167px] min-h-[167px] w-[168px] rounded-[5.77px] object-cover object-center"},null,8,kY),cs("h3",SY,we(e.titulo),1),cs("h1",xY,we(e.descricao),1)],8,EY)]),_:2},1024))),128))]),_:1})]))}}),OY={class:"space-y-4"},AY={class:"categoria__container"},IY=["href"],PY={class:"categoria-imagem__container"},NY=["src","onError"],RY={class:"categoria-titulo__container text-lg font-medium leading-6"},MY={class:"categoria-noticia dark:text-white"},FY={class:"flex my-2"},LY={class:"borda-categoria__container","aria-hidden":"true"},jY={class:"categoria-mais-sobre__button-containter"},HY={class:"borda-categoria__container","aria-hidden":"true"},UY=Ir({__name:"CardCategoriaDestaque",props:{data:{}},setup(e){const{observarVisualizacao:t}=LR();return(n,r)=>{const i=ki("observe-visibility");return Xa(),is("div",OY,[cs("h2",{class:"categoria-titulo tracking-tight",style:re({color:e.data.cor})},we(e.data.nome),5),cs("div",AY,[(Xa(!0),is(Wa,null,Ti(e.data.noticias,(n,r)=>Jn((Xa(),is("div",{key:r,class:"categoria-item"},[cs("a",{class:"categoria__inner rounded hover:scale-105 transition duration-300 ease-out hover:ease-in cursor-pointer",href:n.noticia_url},[cs("div",PY,[cs("img",{src:an("https://portal-arquivos.engeplus.com.br/")+n.pasta+an(IS).formatSmallSizeImage(n.imagem),alt:"imagem categoria",class:"rounded-[12px] object-cover shadow-lg h-full",loading:"lazy",onError:e=>an(IS).getImageFallback(e,n)},null,40,NY)]),cs("div",RY,[cs("p",{class:"categoria-cartola",style:re({color:e.data.cor})},we(n.titulo_super_curto?n.titulo_super_curto:n.categoria_nome),5),cs("p",MY,we(n.titulo),1)])],8,IY)])),[[i,an(t)(n.id)]])),128))]),cs("div",FY,[cs("div",LY,[cs("div",{class:"w-full border-t-4",style:re({border:`2px solid ${e.data.cor}`})},null,4)]),cs("div",jY,[cs("button",{type:"button",class:"categoria-mais-sobre px-4 py-1.5",style:re({backgroundColor:e.data.cor,border:`1px solid ${e.data.cor}`}),onClick:r[0]||(r[0]=t=>{return n=`/e/${e.data.url}`,void U_.get(n);var n})},[cs("span",null,"Mais sobre "+we(e.data.nome),1)],4)]),cs("div",HY,[cs("div",{class:"w-full border-t-4",style:re({border:`2px solid ${e.data.cor}`})},null,4)])]),cs("div",null,[ds(hU,{data:e.data.anuncios},null,8,["data"])])])}}}),GY=Ob(UY,[["__scopeId","data-v-2cf602bb"]]),YY={class:"carousel__container"},VY={class:"carousel__item"},qY={class:"flex-shrink-0 rounded-full"},$Y=["src"],WY={style:{"margin-left":"14px"}},zY=["href"],JY={class:"colunistas__coluna"},KY={class:"colunistas__materia dark:text-gray-300"},QY=Ir({__name:"CardColunista",props:{data:{}},setup(e){const{observarVisualizacao:t}=LR();return(n,r)=>{const i=ki("observe-visibility");return Xa(),is(Wa,null,[r[1]||(r[1]=cs("div",{class:"mt-10"},[cs("h2",{class:"colunistas__categoria pl-2"},"COLUNISTAS")],-1)),cs("div",YY,[ds(an(sY),{breakpoints:{200:{itemsToShow:1.25},700:{itemsToShow:3},1024:{itemsToShow:3}},"wrap-around":!1,class:"colunistas"},{addons:zn(()=>[ds(an(pY),{class:"navigation-addon"})]),default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.data,e=>Jn((Xa(),as(an(fY),{key:e.id},{default:zn(()=>[cs("div",VY,[cs("div",qY,[cs("img",{class:"h-[79px] w-[79px] rounded-full object-cover",src:e.imagem?e.imagem:void 0,alt:"colunista"},null,8,$Y)]),cs("div",WY,[cs("a",{href:e.ultima_noticia_ativa.noticia_url},[cs("h3",JY,we(e.ultima_noticia_ativa.categoria_nome),1),cs("p",KY,we(e.ultima_noticia_ativa.titulo),1)],8,zY)]),r[0]||(r[0]=cs("div",{id:"borda",class:"divider"},null,-1))])]),_:2},1024)),[[i,an(t)(e.ultima_noticia_ativa.id,{verificarOclusao:!1})]])),128))]),_:1})])],64)}}}),ZY=Ob(QY,[["__scopeId","data-v-ecd4eaff"]]),XY={class:"categoria__nome"},eV=Ir({__name:"TabCategoria",props:{name:{},color:{}},setup:e=>(t,n)=>(Xa(),is("p",XY,[cs("span",{class:"inline-flex items-center rounded",style:re({color:e.color})},we(e.name),5)]))}),tV=Ob(eV,[["__scopeId","data-v-eeabef01"]]),nV=["href"],rV={class:"img__container"},iV=["src"],aV={class:"py-2 px-1 relative"},sV={class:"absolute right-0 text-8xl font-extrabold -z-10 text-transparent bg-clip-text bg-gradient-to-t from-transparent to-slate-300"},oV={class:"py-2 uppercase font-bold text-1xl text-left"},lV={class:"mais-lidas__titulo"},uV=Ir({__name:"TabCarrouselDestaque",props:{data:{},position:{}},setup(e){const t=IS.formatSmallSizeImage(e.data.imagem);return(n,r)=>(Xa(),is("a",{href:e.data.noticia_url,class:"tab-caroussel__container rounded-lg hover:scale-105 transition duration-300 ease-out hover:ease-in"},[cs("div",rV,[cs("img",{class:"h-full w-full rounded-lg object-cover",src:an("https://portal-arquivos.engeplus.c
40om.br/")+e.data.pasta+an(t),loading:"lazy",alt:"imagem do carrousel de noticias destaque",onError:r[0]||(r[0]=t=>an(IS).getImageFallback(t,e.data))},null,40,iV)]),cs("div",aV,[cs("p",sV,we(e.position),1),cs("p",oV,[ds(tV,{name:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("p",lV,we(e.data.titulo),1)])],8,nV))}}),cV=Ob(uV,[["__scopeId","data-v-23be862f"]]),dV=Ir({__name:"CarrouselDestaque",props:{data:{}},setup(e){const t=e,n={itemsToShow:1,snapAlign:"center",itemsToScroll:1,wrapAround:t.data.length>2,transition:500},r={300:{itemsToShow:2},700:{itemsToShow:2},1024:{itemsToShow:3},1279:{itemsToShow:5}},{observarVisualizacao:i}=LR(),a=t.data.length>0;return(t,s)=>{const o=ki("observe-visibility");return Xa(),as(an(sY),{settings:n,breakpoints:r,class:le(a?"destaque":"isData")},{addons:zn(()=>[ds(an(pY))]),default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.data,(e,t)=>Jn((Xa(),as(an(fY),{key:e.id},{default:zn(()=>[ds(cV,{data:e,position:t+1},null,8,["data","position"])]),_:2},1024)),[[o,an(i)(e.id,{verificarOclusao:!1})]])),128))]),_:1},8,["class"])}}}),hV={class:"flex flex-wrap my-2"},pV={class:"relative flex flex-col min-w-0 break-words bg-white dark:bg-gray-900 w-full rounded"},fV={class:"mais-lidas-tabs__container"},BV={class:"flex-none"},mV={class:"flex-none"},gV={class:"px-4 py-5 flex-auto border border-gray-200 dark:border-gray-600 rounded-lg rounded-tl-none min-h-[364px] h-fit -mt-[1px] relative z-0"},vV={class:"tab-content tab-space h-full block"},yV=Ir({__name:"CardMaisLidas",props:{data:{type:Object,required:!0}},setup(e){const t=en(1);function n(e){t.value=e}return(r,i)=>(Xa(),is("div",hV,[cs("div",pV,[cs("div",fV,[cs("div",BV,[cs("button",{class:le(["px-5 py-2 rounded-t-lg transition-all duration-200",{"text-gray-400 mais-lidas__nao-selecionada border-b-transparent":1!==t.value,"text-sky-900 border border-b-0 border-gray-200 mais-lidas__selecionada dark:text-gray-100 dark:border-gray-600":1===t.value}]),onClick:i[0]||(i[0]=e=>n(1))}," Mais lidas ",2)]),cs("div",mV,[cs("button",{class:le(["px-5 py-2 rounded-t-lg transition-all duration-200",{"text-gray-400 ml-2 mais-lidas__nao-selecionada border-b-transparent":2!==t.value,"text-sky-900 ml-2 border border-b-0 border-gray-200 mais-lidas__selecionada dark:text-gray-100 dark:border-gray-600":2===t.value}]),onClick:i[1]||(i[1]=e=>n(2))}," Foi pauta na Engeplus ",2)])]),cs("div",gV,[cs("div",vV,[Jn(cs("div",null,[ds(dV,{data:e.data.mais_lidas},null,8,["data"])],512),[[ko,1===t.value]]),Jn(cs("div",null,[ds(dV,{data:e.data.destaques_semanais},null,8,["data"])],512),[[ko,2===t.value]])])])])]))}}),CV=Ob(yV,[["__scopeId","data-v-a9c189de"]]),_V=["href","target"],bV={class:"text-center mt-2"},wV={class:"mt-[17px]"},DV={class:"mt-2 block"},EV={class:"titulo_noticia_critica dark:text-white"},kV={class:"chamada_interna_noticia_critica dark:text-gray-300"},SV=Ir({__name:"CardNoticiaCritica",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("a",{class:"noticia_principal__containter small-screen:mt-[5px]",href:e.data.noticia_url,target:e.data.noticia_externa?"_blank":"_self"},[cs("div",bV,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"]),cs("div",wV,[cs("div",DV,[cs("p",EV,we(e.data.titulo),1),cs("p",kV,we(e.data.chamada_interna),1)])])])],8,_V))}),xV=Ob(SV,[["__scopeId","data-v-a0ad2a5e"]]),TV={class:"shadow-lg h-full overflow-hidden w-[54%]"},OV=["alt","src"],AV={class:"flex flex-col rounded-r-lg shadow-lg h-full overflow-hidden px-4 py-4 justify-between w-[46%] bg-neutral-200 dark:bg-gray-800"},IV={class:"flex absolute left-5 top-5"},PV={class:"flex flex-col"},NV={class:"noticia_extendida__titulo dark:text-white"},RV={key:0,class:"flex space-x-1 noticia_relacionada__titulo hover:text-blue-500"},MV=["href"],FV={class:"noticia-relacionada__texto"},LV={key:1,class:"flex space-x-1 noticia-extendid-texto-apoio"},jV=Ir({__name:"NoticiaExpandidaComImagem",props:{data:{}},setup(e){const t=IS.formatMediumSizeImage(e.data.imagem);return(n,r)=>(Xa(),is(Wa,null,[cs("div",TV,[cs("img",{class:"h-full w-[54%] object-cover absolute -z-20 rounded-l-lg",alt:e.data.imagem_alt||e.data.titulo,loading:"lazy",src:an("https://portal-arquivos.engeplus.c
40om.br/")+e.data.pasta+an(t),onError:r[0]||(r[0]=t=>an(IS).getImageFallback(t,e.data))},null,40,OV)]),cs("div",AV,[cs("div",IV,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",PV,[cs("div",null,[cs("p",NV,we(e.data.titulo),1)])]),e.data.ultima_noticia_relacionada&&e.data.titulo.length<=90?(Xa(),is("div",RV,[cs("a",{href:e.data.ultima_noticia_relacionada.noticia_url,class:"flex"},[cs("p",FV,[cs("span",{class:"float-left p-0",style:re(`color: ${e.data.categoria.cor}`)},[ds(an(mS),{class:"w-5 h-5 mr-1"}),r[1]||(r[1]=fs(" >",-1))],4),fs(" "+we(e.data.ultima_noticia_relacionada.titulo),1)])],8,MV)])):(Xa(),is("div",LV,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])]))])],64))}}),HV=Ob(jV,[["__scopeId","data-v-c4e287f5"]]),UV={class:"flex flex-col rounded-r-lg shadow-lg h-full overflow-hidden px-4 py-4 justify-between w-full bg-neutral-200 dark:bg-gray-800"},GV={class:"flex absolute left-5 top-5"},YV={class:"flex flex-col mt-10"},VV={class:"noticia_extendida__titulo dark:text-white"},qV={key:0,class:"flex space-x-1 noticia_relacionada__titulo hover:text-blue-500"},$V=["href"],WV={class:"noticia-relacionada__texto"},zV={key:1,class:"flex space-x-1 noticia_extendida-chamada_interna"},JV={key:0,class:"flex space-x-1 noticia-extendida-texto-apoio"},KV=Ob(Ir({__name:"NoticiaExpandidaSemImagem",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("div",UV,[cs("div",GV,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",YV,[cs("div",null,[cs("p",VV,we(e.data.titulo),1)]),e.data.ultima_noticia_relacionada&&e.data.titulo.length<=70?(Xa(),is("div",qV,[cs("a",{href:e.data.ultima_noticia_relacionada.noticia_url,class:"flex"},[cs("p",WV,[cs("span",{class:"float-left p-0",style:re(`color: ${e.data.categoria.cor}`)},[ds(an(mS),{class:"w-5 h-5 mr-1"})],4),fs(" "+we(e.data.ultima_noticia_relacionada.titulo),1)])],8,$V)])):e.data.titulo.length<=70?(Xa(),is("div",zV,[cs("span",null,we(e.data.chamada_interna),1)])):ms("",!0)]),e.data.chamada_interna||e.data.ultima_noticia_relacionada?ms("",!0):(Xa(),is("div",JV,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])]))]))}),[["__scopeId","data-v-7cf00ae4"]]),QV=["href","target"],ZV=Ob(Ir({__name:"CardNoticiaExpandida",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("a",{class:"noticia_extendida__container hover:scale-105 cursor-pointer transition duration-300 ease-out hover:ease-in bg-white dark:bg-gray-900",href:e.data.noticia_url,target:e.data.noticia_externa?"_blank":"_self"},[e.data.imagem?(Xa(),as(HV,{key:0,data:e.data},null,8,["data"])):ms("",!0),e.data.imagem?ms("",!0):(Xa(),as(KV,{key:1,data:e.data},null,8,["data"]))],8,QV))}),[["__scopeId","data-v-3237bfb9"]]),XV=["href"],eq=["src"],tq=Ir({__name:"CardPublicidade",props:{data:{}},setup(e){const t=e,n=en(),r=en(0),i=en(0),a=en(""),s=en(!1),o=en(t.data[t.data.length*Math.random()|0]),{incrementAcesso:l,visibilityChanged:u}=lU();function c(){return o.value.imagem.filter(e=>s.value?"mobile"===e.tipo:"desktop"===e.tipo)}function d(){var e;let n=c();r.value+1>=n.length?(i.value=i.value+1<t.data.length?i.value+1:0,o.value=t.data[i.value],u(!0,o.value.id),n=c(),r.value=0):r.value=r.value+1,a.value=(null==(e=n[r.value])?void 0:e.arquivo)??"",setTimeout(d,1e4/n.length)}const h=()=>s.value=window.innerWidth<576;return hi(()=>{h()}),pi(()=>{var e;if(window.addEventListener("resize",h),o.value){const t=c();a.value=(null==(e=t[r.value])?void 0:e.arquivo)??"",u(!0,o.value.id),setTimeout(d,1e4)}}),(e,t)=>{const r=ki("observe-visibility");return Jn((Xa(),is("div",null,[cs("a",{href:o.value.link,class:"pub hover:scale-105 transition duration-300 ease-out hover:ease-in",target:"_blank",onClick:t[0]||(t[0]=e=>an(l)(o.value.id))},[cs("img",{ref_key:"img",ref:n,alt:"img-pb",src:a.value},null,8,eq)],8,XV)])),[[r,{callback:e=>an(u)(e,o.value.id),once:!0,throttle:300}]])}}}),nq=Ob(tq,[["__scopeId","data-v-4cc47831"]]),rq={class:"flex flex-wrap w-full h-[288px]"},iq={class:"w-full min-h-[288px] h-[288px] mobile:border-x mobile:border-t mobile:border-gray-200 div-0 border rounded rounded-b-xl rounded-tr-xl rounded-tl-xl mobile:rounded-xl overflow-hidden"},aq={class:"flex list-none flex-wrap flex-row"},sq=["on:click"],oq={class:"relative flex flex-col min-w-0 break-words bg-white w-full mb-2 shadow-lg rounded small-screen:rounded-none"},lq={class:"flex-auto"},uq=["href"],cq=["src"],dq=Ir({__name:"CardTabNews",props:{data:{type:Object,required:!0}},setup(e){const t=en(1),n=en(!1);pi(()=>{window.addEventListener("resize",r),r()});const r=()=>{n.value=window.innerWidth<576};return(r,i)=>(Xa(),is("div",rq,[cs("div",iq,[cs("div",aq,[(Xa(!0),is(Wa,null,Ti(e.data,e=>
40(Xa(),is("button",{key:e.id,class:le(["last:mr-0 flex-auto text-center text-xs font-bold border-b uppercase px-5 py-3 shadow-lg block leading-normal cursor-pointer",{"text-gray-500 bg-gray-200 rounded-none":t.value!==e.id,"text-sky-900 bg-white ":t.value===e.id}]),"on:click":n=>{return r=e.id,void(t.value=r);var r}},we(e.title),43,sq))),128))]),cs("div",oq,[cs("div",lq,[(Xa(!0),is(Wa,null,Ti(e.data,e=>(Xa(),is("div",{key:e.id,class:"tab-content tab-space"},[cs("div",{class:le({hidden:t.value!==e.id,"flex flex-col":t.value===e.id})},[cs("a",{href:e.href,class:"border-b-2",target:"_blank"},[cs("img",{src:(n.value?e.imgMobile:e.imgDesktop)+"?v="+an(1790251488871),alt:"imagem da categoria",class:"object-fill h-[245px] mobile:h-[202px] min-w-full"},null,8,cq)],8,uq)],2)]))),128))])])])]))}}),hq=Ir({__name:"CardRadio",setup(e){const t=[{id:1,title:"Rádio 92",imgMobile:"https://img.radios.com.br/radio/xl/radio35861_1611252793.png",imgDesktop:"https://img.radios.com.br/radio/xl/radio35861_1611252793.png",href:"https://www.radios.com.br/aovivo/radio-92-fm/35861"},{id:2,title:"Rádio Araranguá",imgMobile:"https://play-lh.googleusercontent.com/QucSPYyBK-mdRppR335pc9tbBZtb6rvqeWGNqRZPRXCR2-QUAmWYg8QiTDy25MT-I2gq",imgDesktop:"https://play-lh.googleusercontent.com/QucSPYyBK-mdRppR335pc9tbBZtb6rvqeWGNqRZPRXCR2-QUAmWYg8QiTDy25MT-I2gq",href:"https://play.google.com/store/apps/details?id=br.com.devmaker.rararangua&hl=pt_BR&gl=US&pli=1"}];return(e,n)=>(Xa(),is("div",null,[ds(dq,{data:t})]))}}),pq={class:"boletim-informativo"},fq=["href"],Bq=Ob(Ir({__name:"CardBoletimInformativo",setup(e){const{link:t}=zk(),n=t("whatsapp")??"https://chat.whatsapp.com/E9Wm0OFErGu9o0GQtDlkbS";return(e,t)=>(Xa(),is("div",pq,[t[0]||(t[0]=cs("div",{class:"boletim-informativo__whatsapp"},[cs("img",{src:"https://engeplus.com.br/build/assets/Icon_whats-bd2001c1.svg",alt:""})],-1)),t[1]||(t[1]=cs("p",{class:"boletim-informativo__texto"},[cs("span",null," Receba as principais notícias de "),cs("br"),cs("span",null," Criciúma e região em seu WhatsApp. "),cs("br"),cs("span",null," Participe do grupo! ")],-1)),cs("a",{href:an(n),target:"_blank",class:"boletim-informativo__button bg-green-500"}," Clique aqui ",8,fq)]))}}),[["__scopeId","data-v-b7b89c50"]]),mq={class:"shadow-lg h-[53.3%] overflow-hidden"},gq=["src","alt"],vq={class:"flex flex-col w-full shadow-lg h-[46.7%] small-screen:h-[80%] overflow-hidden px-4 py-4 justify-between bg-neutral-200 dark:bg-gray-800"},yq={class:"absolute top-[24px] left-[24px]"},Cq={class:"flex flex-col w-full pl-2"},_q=["href"],bq={class:"small-screen:text-base noticia_principal__titulo dark:text-white"},wq={key:0,class:"flex space-x-1 hover:text-blue-500 noticia_relacionada__titulo"},Dq=["href"],Eq={class:"noticia-relacionada__texto"},kq={key:1,class:"flex space-x-1 noticia_principal__subtitulo"},Sq={class:"flex pl-2 space-x-1 noticia_principal__hora_entrada"},xq=Ob(Ir({__name:"NoticiaPrincipalComImagem",props:{data:{}},setup(e){const t=IS.formatMediumSizeImage(e.data.imagem);return(n,r)=>(Xa(),is(Wa,null,[cs("div",mq,[cs("img",{class:"object-cover h-full w-full -z-20",src:an("https://portal-arquivos.engeplus.com.br/")+e.data.pasta+an(t),alt:e.data.imagem_alt||e.data.titulo,loading:"lazy",onError:r[0]||(r[0]=t=>an(IS).getImageFallback(t,e.data))},null,40,gq)]),cs("div",vq,[cs("div",yq,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",Cq,[cs("a",{href:e.data.noticia_url,class:""},[cs("p",bq,we(e.data.titulo),1)],8,_q),e.data.ultima_noticia_relacionada&&e.data.titulo.length<=90?(Xa(),is("div",wq,[cs("a",{href:e.data.ultima_noticia_relacionada.noticia_url,class:"flex"},[cs("p",Eq,[cs("span",{class:"float-left p-0",style:re(`color: ${e.data.categoria.cor}`)},[ds(an(mS),{class:"w-5 h-5 mr-1"})],4),fs(" "+we(e.data.ultima_noticia_relacionada.titulo),1)])],8,Dq)])):e.data.titulo.length<=70&&!e.data.ultima_noticia_relacionada?(Xa(),is("div",kq,[cs("span",null,we(e.data.chamada_interna),1)])):ms("",!0)]),cs("div",Sq,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])])])],64))}}),[["__scopeId","data-v-1b73d720"]]),Tq={class:"flex flex-col w-full h-full overflow-hidden px-4 py-4 justify-between bg-neutral-200 dark:bg-gray-800"},Oq={class:"absolute top-[20px] left-[20px]"},Aq={class:"flex flex-col space-y-5 w-full mt-10"},Iq=["href"],Pq={class:"small-screen:text-base pr-10 noticia_principal__titulo dark:text-white"},Nq={key:0,class:"flex space-x-1 text-[1rem] noticia_relacionada__titulo hover:text-blue-500"},Rq=["href"],Mq={class:"noticia-relacionada__texto"},Fq={key:1,class:"flex space-x-1 noticia_principal__subtitulo"},Lq={class:"flex space-x-1 noticia_principal__hora_entrada"},jq=Ob(Ir({__name:"NoticiaPrincipalSemImagem",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("div",Tq,[cs("div",Oq,[ds(AS,{name:e.data.titulo_super_curto?e.data.titulo_super_curto:e.data.categoria.nome,color:e.data.categoria.cor},null,8,["name","color"])]),cs("div",Aq,[cs("a",{href:e.data.noticia_url,class:""},[cs("p",Pq,we(e.data.titulo),1)],8,Iq),e.data.ultima_noticia_relacionada&&e.data.titulo.length<=70?(Xa(),is("div",Nq,[cs("a",{href:e.data.ultima_noticia_relacionada.noticia_url,class:"flex"},[cs("p",Mq,[cs("span",{class:"float-left p-0",style:re(`color: ${e.data.categoria.cor}`)},[ds(an(mS),{class:"w-5 h-5 mr-1"})],4),fs(" "+we(e.data.ultima_noticia_relacionada.titulo),1)])],8,Rq)])):e.data.titulo.length<=70?(Xa(),is("div",Fq,[cs("span",null,we(e.data.chamada_interna),1)])):ms("",!0)]),cs("div",Lq,[cs("span",null,[ds(TS,{date:e.data.hora_entrada},null,8,["date"])])])]))}),[["__scopeId","data-v-70531b0d"]]),Hq=["href","target"],Uq=Ob(Ir({__name:"CardNoticiaPrincipal",props:{data:{}},setup:e=>(t,n)=>(Xa(),is("a",{class:"noticia-principal__container cursor-pointer hover:scale-105 transition duration-300 ease-out hover:ease-in bg-white dark:bg-gray-900",href:e.data.noticia_url,target:e.data.noticia_externa?"_blank":"_self"},[e.data.imagem?(Xa(),as(xq,{key:0,data:e.data},null,8,["data"])):ms("",!0),e.data.imagem?ms("",!0):(Xa(),as(jq,{key:1,data:e.data},null,8,["data"]))],8,Hq))}),[["__scopeId","data-v-ca8a48b4"]]),Gq={class:"h-[618.67px] small-screen:h-auto grid gap-x-[43px] gap-y-[41px] grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1 mt-[-2rem]"},Yq={class:"flex col-span-2 small-screen:col-span-4"},Vq={class:"col-span-2 grid gap-x-[43px] gap-y-[41px] grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1 h-full small-screen:col-span-4 small-screen:h-auto"},qq=Ir({__name:"BlocoNoticiasPrincipaisDesktop",props:{data:{}},setup(e){const{observarVisualizacao:t}=LR();return(n,r)=>{const i=ki("observe-visibility");return Xa(),is("div",Gq,[cs("div",Yq,[Jn(ds(Uq,{data:e.data[0]},null,8,["data"]),[[i,an(t)(e.data[0].id)]])]),cs("div",Vq,[(Xa(!0),is(Wa,null,Ti(e.data.slice(1),e=>(Xa(),is("div",{key:e.id,class:"small-screen:col-span-4 col-span-2"},[cs("div",null,[Jn(ds(nx,{data:e},null,8,["data"]),[[i,an(t)(e.id)]])])]))),128))])])}}}),$q={__name:"CardUnesc",setup(e){const t=[{id:1,title:"UNESC presencial",imgDesktop:"https://engeplus.c
40om.br/build/assets/presencial-desktop-88fc5da8.png",imgMobile:"https://engeplus.com.br/build/assets/presencial-mobile-7d91cb2f.png",href:"https://materiais.unesc.net/graduacao-ciclo-2026-1-engeplus"},{id:2,title:"UNESC EAD",imgDesktop:"https://engeplus.com.br/build/assets/EAD-desktop-5d12a3c8.png",imgMobile:"https://engeplus.com.br/build/assets/EAD-mobile-63fada72.png",href:"https://www.unesc.net/graduacao-a-distancia"}];return(e,n)=>(Xa(),is("div",null,[ds(dq,{data:t})]))}},Wq=Ob(Ir({__name:"GridCardWrapper",props:{card:{}},setup:e=>(t,n)=>(Xa(),is("div",{class:"card",style:re(`\n    height: fit-content;\n    grid-column-start: ${e.card.posicao_x+1};\n    grid-column-end: ${e.card.posicao_x+1+e.card.card_tipo.qtd_coluna};\n    grid-row-start: ${e.card.posicao_y+1};\n    grid-row-end: ${e.card.posicao_y+1+e.card.card_tipo.qtd_linha};\n    margin-bottom: 40px`)},[Ai(t.$slots,"default",{},void 0,!0)],4))}),[["__scopeId","data-v-0e2c1747"]]),zq=Ir({__name:"CardSessionDesktop",props:{card:{}},setup(e){const{observarVisualizacao:t}=LR();return(n,r)=>{const i=ki("observe-visibility");return Xa(),as(Wq,{card:e.card},{default:zn(()=>{var n,a,s,o,l;return["bloco-principal"===e.card.card_tipo.slug&&5===e.card.data.length?(Xa(),as(qq,{key:0,data:e.card.data},null,8,["data"])):ms("",!0),"noticia-critica"===e.card.card_tipo.slug&&(null==(n=e.card.data)?void 0:n.id)?Jn((Xa(),as(xV,{key:1,data:e.card.data},null,8,["data"])),[[i,an(t)(e.card.data.id)]]):ms("",!0),r[0]||(ns(-1,!0),(r[0]="noticia"===e.card.card_tipo.slug&&e.card.data.id?Jn((Xa(),as(nx,{key:2,data:e.card.data},null,8,["data"])),[[i,an(t)(e.card.data.id)]]):"noticia-expandido"===e.card.card_tipo.slug&&e.card.data.id?Jn((Xa(),as(ZV,{key:3,data:e.card.data},null,8,["data"])),[[i,an(t)(e.card.data.id)]]):"banner-grande"===e.card.card_tipo.slug?(Xa(),as(hU,{key:4,data:e.card.data},null,8,["data"])):"publicidade"===e.card.card_tipo.slug&&e.card.data.noticia&&e.card.data.id?Jn((Xa(),as(nx,{key:5,data:e.card.data},null,8,["data"])),[[i,an(t)(e.card.data.id)]]):"publicidade"===e.card.card_tipo.slug&&e.card.data.length>0?(Xa(),as(nq,{key:6,data:e.card.data},null,8,["data"])):"colunista"==e.card.card_tipo.slug?(Xa(),as(ZY,{key:7,data:e.card.data},null,8,["data"])):"categoria-evento"==e.card.card_tipo.slug&&(null==(s=null==(a=e.card)?void 0:a.data)?void 0:s.noticias.length)>0?(Xa(),as(wY,{key:8,data:e.card.data},null,8,["data"])):"mais-lidas"==e.card.card_tipo.slug&&((null==(o=e.card.data.mais_lidas)?void 0:o.length)>0||(null==(l=e.card.data.destaques_semanais)?void 0:l.length)>0)?(Xa(),as(CV,{key:9,data:e.card.data},null,8,["data"])):"categoria-destaque"==e.card.card_tipo.slug&&e.card.data?(Xa(),as(GY,{key:10,data:e.card.data},null,8,["data"])):"card-campanhas"==e.card.card_tipo.slug?(Xa(),as(TY,{key:11,data:e.card.data},null,8,["data"])):"radio"==e.card.card_tipo.slug?(Xa(),as(hq,{key:12})):"boletim-informativo"==e.card.card_tipo.slug?(Xa(),as(Bq,{key:13})):"unesc"==e.card.card_tipo.slug?(Xa(),as($q,{key:14})):ms("",!0)).cacheIndex=0,ns(1),r[0])]}),_:1},8,["card"])}}}),Jq={class:"small-screen:h-auto grid gap-x-[20px] gap-y-[20px] small-mobile:gap-x-[13px] small-mobile:gap-y-[18px] grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1"},Kq={class:"col-span-4 w-full"},Qq=Ir({__name:"BlocosNoticiasPrincipaisMobile",props:{data:{}},setup(e){const{observarVisualizacao:t}=LR();return(n,r)=>{const i=ki("observe-visibility");return Xa(),is("div",Jq,[cs("div",Kq,[Jn(ds(nx,{"show-chamada-interna":!0,data:e.data[0]},null,8,["data"]),[[i,an(t)(e.data[0].id)]])]),(Xa(!0),is(Wa,null,Ti(e.data.slice(1),e=>(Xa(),is("div",{key:e.id,class:"col-span-2"},[Jn(ds(gM,{data:e},null,8,["data"]),[[i,an(t)(e.id)]])]))),128))])}}}),Zq={key:0,class:"col-span-4"},Xq={key:1,class:"col-span-2"},e$={key:2,class:"col-span-4"},t$={key:3,class:"col-span-4"},n$={key:4,class:"col-span-4"},r$={key:5,class:"col-span-4 h-full"},i$={key:6,class:"col-span-4"},a$={key:7,class:"col-span-4"},s$={key:8,class:"col-span-4"},o$={key:9,class:"col-span-4"},l$={key:10,class:"col-span-4"},u$={key:11,class:"col-span-2"},c$={key:12,class:"col-span-2"},d$={key:13,class:"col-span-2"},h$={key:14,class:"col-span-2"},p$=Ir({__name:"CardSessionMobile",props:{card:{}},setup(e){const{observarVisualizacao:t}=LR();return(n,r)=>{var i,a,s;const o=ki("observe-visibility");
40return Xa(),is(Wa,null,["noticia-critica"===e.card.card_tipo.slug&&(null==(i=e.card.data)?void 0:i.id)?(Xa(),is("div",Zq,[Jn(ds(xV,{data:e.card.data},null,8,["data"]),[[o,an(t)(e.card.data.id)]])])):ms("",!0),"noticia"===e.card.card_tipo.slug&&e.card.data.id?(Xa(),is("div",Xq,[r[0]||(ns(-1,!0),(r[0]=Jn(ds(gM,{data:e.card.data},null,8,["data"]),[[o,an(t)(e.card.data.id)]])).cacheIndex=0,ns(1),r[0])])):"noticia-expandido"===e.card.card_tipo.slug&&e.card.data.id?(Xa(),is("div",e$,[r[1]||(ns(-1,!0),(r[1]=Jn(ds(nx,{class:"col-span-4","show-chamada-interna":!0,data:e.card.data},null,8,["data"]),[[o,an(t)(e.card.data.id)]])).cacheIndex=1,ns(1),r[1])])):"colunista"==e.card.card_tipo.slug?(Xa(),is("div",t$,[ds(ZY,{data:e.card.data},null,8,["data"])])):ms("",!0),"bloco-principal"===e.card.card_tipo.slug&&5==e.card.data.length?(Xa(),is("div",n$,[ds(Qq,{data:e.card.data},null,8,["data"])])):"banner-grande"===e.card.card_tipo.slug&&e.card.data[0]?(Xa(),is("div",r$,[r[2]||(ns(-1,!0),(r[2]=ds(hU,{data:e.card.data},null,8,["data"])).cacheIndex=2,ns(1),r[2])])):"categoria-evento"==e.card.card_tipo.slug?(Xa(),is("div",i$,[r[3]||(ns(-1,!0),(r[3]=ds(wY,{data:e.card.data},null,8,["data"])).cacheIndex=3,ns(1),r[3])])):"card-campanhas"==e.card.card_tipo.slug?(Xa(),is("div",a$,[ds(TY,{data:e.card.data},null,8,["data"])])):"mais-lidas"==e.card.card_tipo.slug&&((null==(a=e.card.data.mais_lidas)?void 0:a.length)>0||(null==(s=e.card.data.destaques_semanais)?void 0:s.length)>0)?(Xa(),is("div",s$,[r[4]||(ns(-1,!0),(r[4]=ds(CV,{data:e.card.data},null,8,["data"])).cacheIndex=4,ns(1),r[4])])):"boletim-informativo"==e.card.card_tipo.slug?(Xa(),is("div",o$,[r[5]||(ns(-1,!0),(r[5]=ds(Bq)).cacheIndex=5,ns(1),r[5])])):"categoria-destaque"==e.card.card_tipo.slug&&e.card.data?(Xa(),is("div",l$,[r[6]||(ns(-1,!0),(r[6]=ds(GY,{data:e.card.data},null,8,["data"])).cacheIndex=6,ns(1),r[6])])):"radio"===e.card.card_tipo.slug?(Xa(),is("div",u$,[r[7]||(ns(-1,!0),(r[7]=ds(hq)).cacheIndex=7,ns(1),r[7])])):"unesc"==e.card.card_tipo.slug?(Xa(),is("div",c$,[r[8]||(ns(-1,!0),(r[8]=ds($q)).cacheIndex=8,ns(1),r[8])])):"publicidade"===e.card.card_tipo.slug&&e.card.data.noticia?(Xa(),is("div",d$,[r[9]||(ns(-1,!0),(r[9]=Jn(ds(gM,{data:e.card.data},null,8,["data"]),[[o,an(t)(e.card.data.id)]])).cacheIndex=9,ns(1),r[9])])):"publicidade"===e.card.card_tipo.slug&&e.card.data.length>0?(Xa(),is("div",h$,[r[10]||(ns(-1,!0),(r[10]=ds(nq,{data:e.card.data},null,8,["data"])).cacheIndex=10,ns(1),r[10])])):ms("",!0)],64)}}}),f$={key:0,class:"block-div"},B$={class:"modal bg-white rounded-2xl"},m$=["href"],g$=["src"],v$=Ob(Ir({__name:"AnuncioModal",props:{visible:{type:Boolean},anuncio:{}},emits:["on-close"],setup(e,{emit:t}){const n=e,{incrementAcesso:r,visibilityChanged:i,getSingleImageSrc:a}=lU(),s=en(!1),o=en(""),l=t;pi(()=>{const e=n.anuncio;e&&e.id&&i(!0,e.id),n.anuncio&&n.anuncio.id&&n.anuncio.imagem.length>0&&(o.value=a(n.anuncio),setTimeout(()=>{s.value=!s.value},2e3))});const u=()=>{l("on-close")};return(t,n)=>{const a=ki("observe-visibility");return e.visible&&e.anuncio?Jn((Xa(),is("div",f$,[cs("div",B$,[s.value?(Xa(),is("button",{key:0,class:"bg-none absolute self-end p-5",onClick:u},[...n[1]||(n[1]=[cs("img",{alt:"icone",src:"https://engeplus.com.br/build/assets/x-anuncio-modal-0f7042cd.svg?v=1",class:"w-5 h-5"},null,-1)])])):ms("",!0),cs("a",{href:e.anuncio.link,class:"w-full h-full",target:"_blank",onClick:n[0]||(n[0]=t=>an(r)(e.anuncio.id))},[cs("img",{alt:"modal",src:o.value,class:"w-full h-full object-fill rounded-2xl"},null,8,g$)],8,m$)])])),[[a,{callback:t=>an(i)(t,e.anuncio.id),once:!0,throttle:300}]]):ms("",!0)}}}),[["__scopeId","data-v-b7652534"]]),y$={class:"widget-clima__container flex flex-row items-center"},C$={class:"text-black"},_$=["src"],b$={class:"text-black font-semibold pl-0.5 pr-1 dark:text-white"},w$={class:"text-black font-bold text-xs pl-2 dark:text-white"},D$=Ir({__name:"WidgetClima",props:{previsao:{}},setup:e=>(t,n)=>{var r,i,a;return Xa(),is("div",y$,[cs("span",C$,[cs("img",{src:null==(r=e.previsao)?void 0:r.icon,alt:"icone de previsão do tempo",class:"h-6 w-6"},null,8,_$)]),cs("span",b$,we(null==(i=e.previsao)?void 0:i.temperatura),1),n[0]||(n[0]=cs("span",{class:"font-semibold text-xs text-black dark:text-white"},"°c ",-1)),cs("span",w$," - "+we(null==(a=e.previsao)?void 0:a.cidade),1)])}}),E$=Ob(D$,[["__scopeId","data-v-a999b3e6"]]),k$={class:"widget-cotacao__container flex flex-row items-center"},S$={class:"text-black font-semibold pl-0.5 pr-1 dark:text-white"}
40,x$={class:"text-black font-bold text-xs dark:text-white"},T$=Ir({__name:"WidgetCotacao",props:{cotacao:{}},setup(e){var t;const n=en(String(null==(t=e.cotacao)?void 0:t.valor));return pi(()=>{n.value=n.value.replace(".",",").substring(0,4)}),(t,r)=>{var i;return Xa(),is("div",k$,[r[0]||(r[0]=cs("span",{class:"text-black"},[cs("img",{src:"https://engeplus.com.br/build/assets/change-coins-cash-e0143117.svg",alt:"Icone cotação",class:"h-6 w-6"})],-1)),r[1]||(r[1]=cs("span",{class:"text-blackfont-semibold text-xs dark:text-white"},"R$ ",-1)),cs("span",S$,we(n.value),1),r[2]||(r[2]=cs("span",{class:"text-green-400 font-semibold"},[cs("img",{src:"https://engeplus.com.br/build/assets/up-double-svgrepo-9b64c59f.svg",class:"h-6 w-4",alt:"Icone cotação"})],-1)),cs("span",x$," - "+we(null==(i=e.cotacao)?void 0:i.moeda),1)])}}}),O$=Ob(T$,[["__scopeId","data-v-eeba070e"]]),A$={class:"widget-clima-cotacao-mobile__container flex items-center justify-center divide-x-2 divide-solid divide-slate-300 space-x-5 bg-slate-200 max-h-[80px] h-[40px] rounded-xl w-full dark:bg-gray-800"},I$={class:"pl-3"},P$=Ob(Ir({__name:"WidgetClimaCotacaoMobile",props:{previsao:{},cotacao:{}},setup:e=>(t,n)=>(Xa(),is("div",A$,[cs("div",null,[ds(E$,{previsao:e.previsao},null,8,["previsao"])]),cs("div",I$,[ds(O$,{cotacao:e.cotacao},null,8,["cotacao"])])]))}),[["__scopeId","data-v-8f26b729"]]),N$={class:"container sm:px-2 lg:px-2 lg:pb-8 sm:py-2 bg-white dark:bg-gray-900"},R$={key:0,class:"container__inner max-md:grid-cols-2 max-sm:grid-cols-1"},M$={key:1,class:"max-w-[60rem] mx-auto grid gap-x-[20px] gap-y-[30px] small-mobile:gap-x-[13px] small-mobile:gap-y-[18px] grid-cols-4 pb-8"},F$={class:"col-span-4"},L$=Ob(Ir({__name:"Home",props:{cards:{},popup:{},previsao:{},cotacao:{}},setup(e){const t=e,n=en([...t.cards]),r=en(Date.now()),i=[],a=en([]),s=en(!1),o=en("undefined"==typeof window||window.innerWidth>=1280),l=()=>{o.value=window.innerWidth>=1280};function u(e){return e.card_tipo.slug.includes("banner")&&(!e.data||0===e.data.length)}function c(){a.value.unshift(a.value.pop()),a.value.map((e,t)=>{void 0!==i[t]&&n.value[i[t]]&&(n.value[i[t]].data=e)}),setTimeout(c,2e4)}const d=()=>{if(t.popup&&t.popup.id&&t.popup.imagem.length>0){const e=document.querySelector("body");s.value=!s.value,s.value?e.classList.add("overflow-hidden"):e.classList.remove("overflow-hidden")}},h=()=>{window.scrollTo({top:0,behavior:"smooth"})};return pi(()=>{window.addEventListener("scroll",()=>{let e=document.getElementById("scrollButton");e&&(e.style.display="block",window.scrollY<200&&(e.style.display="none"))}),l(),n.value.forEach((e,t)=>{"publicidade"===e.card_tipo.slug&&!0!==e.data.noticia&&(i.push(t),a.value.push(e.data))}),setTimeout(c,2e4),window.addEventListener("pageshow",()=>{r.value=Date.now(),d()}),window.addEventListener("resize",l)}),mi(()=>{window.removeEventListener("resize",l)}),(t,i)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Portal Engeplus"}),cs("main",null,[(Xa(),as(v$,{key:r.value,anuncio:e.popup,visible:s.value,onOnClose:d},null,8,["anuncio","visible"])),cs("div",N$,[o.value?(Xa(),is("div",R$,[(Xa(!0),is(Wa,null,Ti(n.value,e=>(Xa(),is(Wa,{key:e.data},[u(e)?ms("",!0):(Xa(),as(zq,{key:0,card:e,x:e.posicao_x,y:e.posicao_y},null,8,["card","x","y"]))],64))),128))])):(Xa(),is("div",M$,[cs("div",F$,[ds(P$,{previsao:e.previsao,cotacao:e.cotacao},null,8,["previsao","cotacao"])]),(Xa(!0),is(Wa,null,Ti(e.cards,e=>(Xa(),as(p$,{key:e.id,card:e},null,8,["card"]))),128)),cs("button",{id:"scrollButton",class:"hidden pl-[10px] z-[1000] text-center fixed right-5 bottom-5 bg-[#0095d4] h-[60px] w-[60px] rounded-full text-white",onClick:h},[ds(an(BS),{class:"h-10 w-10"})])]))])])],64))}}),[["__scopeId","data-v-d8ead058"]]),j$=Object.freeze(Object.defineProperty({__proto__:null,default:L$},Symbol.toStringTag,{value:"Module"})),H$=Ob(Ir({__name:"SocialSharing",props:{type:{},titulo:{},url:{},quote:{},text:{},hashtags:{}},setup(e){const t=e;return(n,r)=>{const i=wi("s-whats-app"),a=wi("s-twitter"),s=wi("s-facebook");return e.type===an(CM).WP?(Xa(),as(i,{key:0,"share-options":t,"use-native-behavior":""},{default:zn(()=>
40[...r[0]||(r[0]=[cs("img",{src:"https://engeplus.com.br/build/assets/whatsapp-0dcb334d.svg",alt:"icone whatsapp",class:"icon text-white"},null,-1)])]),_:1},8,["share-options"])):e.type===an(CM).TW?(Xa(),as(a,{key:1,"share-options":{...t,via:"portalengeplus"},"use-native-behavior":""},{default:zn(()=>[...r[1]||(r[1]=[cs("img",{src:"https://engeplus.com.br/build/assets/twitter-6a5f00c7.svg",alt:"icone twitter",class:"icon text-white bg-black"},null,-1)])]),_:1},8,["share-options"])):e.type===an(CM).FB?(Xa(),as(s,{key:2,"share-options":t,"use-native-behavior":""},{default:zn(()=>[...r[2]||(r[2]=[cs("img",{src:"https://engeplus.com.br/build/assets/facebook-5876618e.svg",alt:"icone facebook",class:"icon text-white"},null,-1)])]),_:1},8,["share-options"])):ms("",!0)}}}),[["__scopeId","data-v-1a1c4a78"]]),U$={class:"my-4"},G$={class:"flex justify-center mb-1"},Y$={class:"w-full noticia-titulo md:w-3/5 dark:text-white"},V$={class:"flex justify-center"},q$={class:"w-full noticia-chamada-interna text-gray-400 dark:text-gray-300"},$$={class:"flex justify-center mt-[17px] px-5"},W$={class:"social-sharing__container flex justify-center items-center p-2 rounded bg-gray-100 dark:bg-gray-800 md:w-1/4 md:space-x-2"},z$={class:"social-sharing__icon",style:{backgroundColor:"#25D366"}},J$={class:"social-sharing__icon",style:{backgroundColor:"black"}},K$={class:"social-sharing__icon",style:{backgroundColor:"#3b5998"}},Q$=Ob(Ir({__name:"NoticiaTitulo",props:{noticia:{}},setup(e){const t="https://engeplus.com.br";return(n,r)=>(Xa(),is("div",U$,[cs("div",{class:"flex justify-center mb-[13px] mt-[17px] cursor-pointer",onClick:r[0]||(r[0]=t=>{return n=e.noticia.categoria.url,void U_.get(`/e/${n}`);var n})},[cs("span",{class:"border dark:border-transparent px-3 rounded font-semibold text-white text-[14px]",style:re({backgroundColor:e.noticia.categoria.cor})},we(e.noticia.titulo_super_curto?e.noticia.titulo_super_curto:e.noticia.categoria.nome),5)]),cs("div",G$,[cs("h1",Y$,we(e.noticia.titulo),1)]),cs("div",V$,[cs("h3",q$,we(e.noticia.chamada_interna),1)]),cs("div",$$,[cs("div",W$,[r[1]||(r[1]=cs("p",{class:"social-sharing__p"},"Compartilhe:",-1)),cs("button",z$,[ds(H$,{type:an(CM).WP,text:`*${e.noticia.titulo.trim()}* \n \n ➜ Leia no Portal Engeplus \n ${an(t)}/noticia/${e.noticia.categoria.url}/${e.noticia.id}/${e.noticia.url}`},null,8,["type","text"])]),cs("button",J$,[ds(H$,{type:an(CM).TW,data:e.noticia,url:`${an(t)}/noticia/${e.noticia.categoria.url}/${e.noticia.id}/${e.noticia.url}`,text:`${e.noticia.titulo} * Leia no portal *`,hashtags:["hash","tag"]},null,8,["type","data","url","text"])]),cs("button",K$,[ds(H$,{type:an(CM).FB,url:`${an(t)}/noticia/${e.noticia.categoria.url}/${e.noticia.id}/${e.noticia.url}`,text:`${e.noticia.titulo} ➜ Leia no Portal Engeplus`,hashtags:["#Engeplus"]},null,8,["type","url","text"])])])])]))}}),[["__scopeId","data-v-b1955998"]]),Z$=Object.freeze(Object.defineProperty({__proto__:null,default:Q$},Symbol.toStringTag,{value:"Module"})),X$={class:"flex justify-center"},eW=["alt","src"],tW={class:"flex justify-left md:justify-center"},nW={class:"w-full md:w-3/5"},rW={key:0,class:"text-xs text-gray-400"},iW=Ob(Ir({__name:"NoticiaImagem",props:{noticia:{}},setup:e=>(t,n)=>(Xa(),is("div",null,[cs("div",X$,[cs("img",{alt:e.noticia.imagem_alt||e.noticia.titulo,src:an("https://portal-arquivos.engeplus.com.br/")+e.noticia.pasta+e.noticia.imagem,class:"w-full h-120 rounded border dark:border-gray-700 bg-center bg-auto bg-no-repeat md:w-3/5",onError:n[0]||(n[0]=t=>an(IS).getImageFallback(t,e.noticia))},null,40,eW)]),cs("div",tW,[cs("div",nW,[e.noticia.imagem_credito?(Xa(),is("span",rW," Foto: "+we(e.noticia.imagem_credito),1)):ms("",!0)])])]))}),[["__scopeId","data-v-7623e4f9"]]),aW=Object.freeze(Object.defineProperty({__proto__:null,default:iW},Symbol.toStringTag,{value:"Module"})),sW=Symbol(""),oW=Symbol(""),lW=Symbol(""),uW=Symbol(""),cW=Symbol(""),dW=Symbol(""),hW=Symbol(""),pW=Symbol(""),fW=Symbol(""),BW=Symbol(""),mW=Symbol(""),gW=Symbol(""),vW=Symbol(""),yW=Symbol(""),CW=Symbol(""),_W=Symbol(""),bW=Symbol(""),wW=Symbol(""),DW=Symbol(""),EW=Symbol(""),kW=Symbol(""),SW=Symbol(""),xW=Symbol(""),TW=Symbol(""),OW=Symbol(""),AW=Symbol(""),IW=Symbol(""),PW=Symbol(""),NW=Symbol(""),RW=Symbol(""),MW=Symbol(""),FW=Symbol(""),LW=Symbol(""),jW=Symbol(""),HW=Symbol(""),UW=Symbol(""),GW=Symbol(""),YW=Symbol(""),VW=Symbol(""),qW={[sW]:"Fragment",[oW]:"Teleport",[lW]:"Suspense",[uW]:"KeepAlive",[cW]:"BaseTransition",[dW]:"openBlock",[hW]:"createBlock",[pW]:"createElementBlock",[fW]:"createVNode",[BW]:"createElementVNode",[mW]:"createCommentVNode",[gW]:"createTextVNode",[vW]:"createStaticVNode",[yW]:"resolveComponent",[CW]:"resolveDynamicComponent",[_W]:"resolveDirective",[bW]:"resolveFilter",[wW]:"withDirectives",[DW]:"renderList",[EW]:"renderSlot",[kW]:"createSlots",[SW]:"toDisplayString",[xW]:"mergeProps",[TW]:"normalizeClass",[OW]:"normalizeStyle",[AW]:"normalizeProps",[IW]:"guardReactiveProps",[PW]:"toHandlers",[NW]:"camelize",[RW]:"capitalize",[MW]:"toHandlerKey",[FW]:"setBlockTracking",[LW]:"pushScopeId",[jW]:"popScopeId",[HW]:"withCtx",[UW]:"unref",[GW]:"isRef",[YW]:"withMemo",[VW]:"isMemoSame"},$W={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};
40function WW(e,t,n,r,i,a,s,o=!1,l=!1,u=!1,c=$W){return e&&(o?(e.helper(dW),e.helper(rz(e.inSSR,u))):e.helper(nz(e.inSSR,u)),s&&e.helper(wW)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:s,isBlock:o,disableTracking:l,isComponent:u,loc:c}}function zW(e,t=$W){return{type:17,loc:t,elements:e}}function JW(e,t=$W){return{type:15,loc:t,properties:e}}function KW(e,t){return{type:16,loc:$W,key:I(e)?QW(e,!0):e,value:t}}function QW(e,t=!1,n=$W,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ZW(e,t=$W){return{type:8,loc:t,children:e}}function XW(e,t=[],n=$W){return{type:14,loc:n,callee:e,arguments:t}}function ez(e,t=void 0,n=!1,r=!1,i=$W){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function tz(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:$W}}function nz(e,t){return e||t?fW:BW}function rz(e,t){return e||t?hW:pW}function iz(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(nz(r,e.isComponent)),t(dW),t(rz(r,e.isComponent)))}const az=new Uint8Array([123,123]),sz=new Uint8Array([125,125]);function oz(e){return e>=97&&e<=122||e>=65&&e<=90}function lz(e){return 32===e||10===e||9===e||12===e||13===e}function uz(e){return 47===e||62===e||lz(e)}function cz(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const dz={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function hz(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function pz(e,t){const n=hz("MODE",t),r=hz(e,t);return 3===n?!0===r:!1!==r}function fz(e,t,n,...r){return pz(e,t)}function Bz(e){throw e}function mz(e){}function gz(e,t,n,r){const i=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return i.code=e,i.loc=t,i}const vz=e=>4===e.type&&e.isStatic;function yz(e){switch(e){case"Teleport":case"teleport":return oW;case"Suspense":case"suspense":return lW;case"KeepAlive":case"keep-alive":return uW;case"BaseTransition":case"base-transition":return cW}}const Cz=/^$|^\d|[^\$\w\xA0-\uFFFF]/,_z=e=>!Cz.test(e),bz=/[A-Za-z_$\xA0-\uFFFF]/,wz=/[\.\?\w$\xA0-\uFFFF]/,Dz=/\s+[.[]\s*|\s*[.[]\s+/g,Ez=e=>4===e.type?e.content:e.loc.source,kz=e=>{const t=Ez(e).trim().replace(Dz,e=>e.trim());let n=0,r=[],i=0,a=0,s=null;for(let o=0;o<t.length;o++){const e=t.charAt(o);switch(n){case 0:if("["===e)r.push(n),n=1,i++;else if("("===e)r.push(n),n=2,a++;else if(!(0===o?bz:wz).test(e))return!1;break;case 1:"'"===e||'"'===e||"`"===e?(r.push(n),n=3,s=e):"["===e?i++:"]"===e&&(--i||(n=r.pop()));break;case 2:if("'"===e||'"'===e||"`"===e)r.push(n),n=3,s=e;else if("("===e)a++;else if(")"===e){if(o===t.length-1)return!1;--a||(n=r.pop())}break;case 3:e===s&&(n=r.pop(),s=null)}}return!i&&!a},Sz=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,xz=e=>Sz.test(Ez(e));function Tz(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(I(t)?i.name===t:t.test(i.name)))return i}}function Oz(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const a=e.props[i];if(6===a.type){if(n)continue;if(a.name===t&&(a.value||r))return a}else if("bind"===a.name&&(a.exp||r)&&Az(a.arg,t))return a}}function Az(e,t){return!(!e||!vz(e)||e.content!==t)}function Iz(e){return 5===e.type||2===e.type}function Pz(e){return 7===e.type&&"pre"===e.name}function Nz(e){return 7===e.type&&"slot"===e.name}function Rz(e){return 1===e.type&&3===e.tagType}function Mz(e){return 1===e.type&&2===e.tagType}const Fz=new Set([AW,IW]);function Lz(e,t=[]){if(e&&!I(e)&&14===e.type){const n=e.callee;if(!I(n)&&Fz.has(n))return Lz(e.arguments[0],t.concat(e))}return[e,t]}function jz(e,t,n){if(13!==e.type&&function(e,t){var n,r,i;if(4!==t.key.type||"key"!==t.key.content)return!1;const a=e.arguments[2];if(a&&!I(a)){const[e]=Lz(a);if(e&&!I(e)&&15===e.type&&Hz(t,e))return!0}return(n=e.arguments)[2]||(n[2]="{}"),(r=e.arguments)[3]||(r[3]="undefined"),(i=e.arguments)[4]||(i[4]="undefined"),e.arguments[5]=t.value,!0}(e,t))return;let r,i,a=13===e.type?e.props:e.arguments[2],s=[];if(a&&!I(a)&&14===a.type){const e=Lz(a);a=e[0],s=e[1],i=s[s.length-1]}if(null==a||I(a))r=JW([t]);else if(14===a.type){const e=a.arguments[0];
vendor: 12,702 bytes, line 40
40I(e)||15!==e.type?a.callee===PW?r=XW(n.helper(xW),[JW([t]),a]):a.arguments.unshift(JW([t])):Hz(t,e)||e.properties.unshift(t),!r&&(r=a)}else 15===a.type?(Hz(t,a)||a.properties.unshift(t),r=a):(r=XW(n.helper(xW),[JW([t]),a]),i&&i.callee===IW&&(i=s[s.length-2]));13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function Hz(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.content===r)}return n}function Uz(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}const Gz=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Yz(e){for(let t=0;t<e.length;t++)if(!lz(e.charCodeAt(t)))return!1;return!0}function Vz(e){return 2===e.type&&Yz(e.content)||12===e.type&&Vz(e.content)}function qz(e){return 3===e.type||Vz(e)}const $z={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:C,isPreTag:C,isIgnoreNewlineTag:C,isCustomElement:C,onError:Bz,onWarn:mz,comments:!1,prefixIdentifiers:!1};let Wz=$z,zz=null,Jz="",Kz=null,Qz=null,Zz="",Xz=-1,eJ=-1,tJ=0,nJ=!1,rJ=null;const iJ=[],aJ=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=az,this.delimiterClose=sz,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=az,this.delimiterClose=sz}getPos(e){let t=1,n=e+1;const r=this.newlines.length;let i=-1;if(r>100){let t=-1,n=r;for(;t+1<n;){const r=t+n>>>1;this.newlines[r]<e?t=r:n=r}i=t}else for(let a=r-1;a>=0;a--)if(e>this.newlines[a]){i=a;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?uz(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||lz(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===dz.TitleEnd||this.currentSequence===dz.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===dz.Cdata[this.sequenceIndex]?++this.sequenceIndex===dz.Cdata.length&&(this.state=28,this.currentSequence=dz.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===dz.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):oz(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){uz(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(uz(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(cz("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){lz(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=oz(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||lz(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):lz(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):lz(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||uz(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||uz(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||uz(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||uz(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||uz(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):lz(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):lz(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){lz(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=dz.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===dz.ScriptEnd[3]?this.startSpecial(dz.ScriptEnd,4):e===dz.StyleEnd[3]?this.startSpecial(dz.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===dz.TitleEnd[3]?this.startSpecial(dz.TitleEnd,4):e===dz.TextareaEnd[3]?this.startSpecial(dz.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&33!==this.state&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===dz.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(iJ,{onerr:EJ,ontext(e,t){cJ(lJ(e,t),e,t)}
40,ontextentity(e,t,n){cJ(e,t,n)},oninterpolation(e,t){if(nJ)return cJ(lJ(e,t),e,t);let n=e+aJ.delimiterOpen.length,r=t-aJ.delimiterClose.length;for(;lz(Jz.charCodeAt(n));)n++;for(;lz(Jz.charCodeAt(r-1));)r--;let i=lJ(n,r);i.includes("&")&&(i=Wz.decodeEntities(i,!1)),yJ({type:5,content:DJ(i,!1,CJ(n,r)),loc:CJ(e,t)})},onopentagname(e,t){const n=lJ(e,t);Kz={type:1,tag:n,ns:Wz.getNamespace(n,iJ[0],Wz.ns),tagType:0,props:[],children:[],loc:CJ(e-1,t),codegenNode:void 0}},onopentagend(e){uJ(e)},onclosetag(e,t){const n=lJ(e,t);if(!Wz.isVoidTag(n)){let r=!1;for(let e=0;e<iJ.length;e++)if(iJ[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&EJ(24,iJ[0].loc.start.offset);for(let n=0;n<=e;n++)dJ(iJ.shift(),t,n<e);break}r||EJ(23,hJ(e,60))}},onselfclosingtag(e){const t=Kz.tag;Kz.isSelfClosing=!0,uJ(e),iJ[0]&&iJ[0].tag===t&&dJ(iJ.shift(),e)},onattribname(e,t){Qz={type:6,name:lJ(e,t),nameLoc:CJ(e,t),value:void 0,loc:CJ(e)}},ondirname(e,t){const n=lJ(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(nJ||""!==r||EJ(26,e),nJ||""===r)Qz={type:6,name:n,nameLoc:CJ(e,t),value:void 0,loc:CJ(e)};else if(Qz={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[QW("prop")]:[],loc:CJ(e)},"pre"===r){nJ=aJ.inVPre=!0,rJ=Kz;const e=Kz.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=wJ(e[t]))}},ondirarg(e,t){if(e===t)return;const n=lJ(e,t);if(nJ&&!Pz(Qz))Qz.name+=n,bJ(Qz.nameLoc,t);else{const r="["!==n[0];Qz.arg=DJ(r?n:n.slice(1,-1),r,CJ(e,t),r?3:0)}},ondirmodifier(e,t){const n=lJ(e,t);if(nJ&&!Pz(Qz))Qz.name+="."+n,bJ(Qz.nameLoc,t);else if("slot"===Qz.name){const e=Qz.arg;e&&(e.content+="."+n,bJ(e.loc,t))}else{const r=QW(n,!0,CJ(e,t));Qz.modifiers.push(r)}},onattribdata(e,t){Zz+=lJ(e,t),Xz<0&&(Xz=e),eJ=t},onattribentity(e,t,n){Zz+=e,Xz<0&&(Xz=t),eJ=n},onattribnameend(e){const t=Qz.loc.start.offset,n=lJ(t,e);7===Qz.type&&(Qz.rawName=n),Kz.props.some(e=>(7===e.type?e.rawName:e.name)===n)&&EJ(2,t)},onattribend(e,t){if(Kz&&Qz){if(bJ(Qz.loc,t),0!==e)if(Zz.includes("&")&&(Zz=Wz.decodeEntities(Zz,!0)),6===Qz.type)"class"===Qz.name&&(Zz=vJ(Zz).trim()),1!==e||Zz||EJ(13,t),Qz.value={type:2,content:Zz,loc:1===e?CJ(Xz,eJ):CJ(Xz-1,eJ+1)},aJ.inSFCRoot&&"template"===Kz.tag&&"lang"===Qz.name&&Zz&&"html"!==Zz&&aJ.enterRCDATA(cz("</template"),0);else{let e=0;Qz.exp=DJ(Zz,!1,CJ(Xz,eJ),0,e),"for"===Qz.name&&(Qz.forParseResult=function(e){const t=e.loc,n=e.content,r=n.match(Gz);if(!r)return;const[,i,a]=r,s=(e,n,r=!1)=>{const i=t.start.offset+n;return DJ(e,!1,CJ(i,i+e.length),0,r?1:0)},o={source:s(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(oJ,"").trim();const u=i.indexOf(l),c=l.match(sJ);if(c){l=l.replace(sJ,"").trim();const e=c[1].trim();let t;if(e&&(t=n.indexOf(e,u+l.length),o.key=s(e,t,!0)),c[2]){const r=c[2].trim();r&&(o.index=s(r,n.indexOf(r,o.key?t+e.length:u+l.length),!0))}}return l&&(o.value=s(l,u,!0)),o}(Qz.exp));let t=-1;"bind"===Qz.name&&(t=Qz.modifiers.findIndex(e=>"sync"===e.content))>-1&&fz("COMPILER_V_BIND_SYNC",Wz,Qz.loc,Qz.arg.loc.source)&&(Qz.name="model",Qz.modifiers.splice(t,1))}7===Qz.type&&"pre"===Qz.name||Kz.props.push(Qz)}Zz="",Xz=eJ=-1},oncomment(e,t){Wz.comments&&yJ({type:3,content:lJ(e,t),loc:CJ(e-4,t+3)})},onend(){const e=Jz.length;for(let t=0;t<iJ.length;t++)dJ(iJ[t],e-1),EJ(24,iJ[t].loc.start.offset)},oncdata(e,t){0!==(iJ[0]?iJ[0].ns:Wz.ns)?cJ(lJ(e,t),e,t):EJ(1,e-9)},onprocessinginstruction(e){0===(iJ[0]?iJ[0].ns:Wz.ns)&&EJ(21,e-1)}}),sJ=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,oJ=/^\(|\)$/g;function lJ(e,t){return Jz.slice(e,t)}function uJ(e){aJ.inSFCRoot&&(Kz.innerLoc=CJ(e+1,e+1)),yJ(Kz);const{tag:t,ns:n}=Kz;0===n&&Wz.isPreTag(t)&&tJ++,Wz.isVoidTag(t)?dJ(Kz,e):(iJ.unshift(Kz),1!==n&&2!==n||(aJ.inXML=!0)),Kz=null}function cJ(e,t,n){{const t=iJ[0]&&iJ[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Wz.decodeEntities(e,!1))}const r=iJ[0]||zz,i=r.children[r.children.length-1];i&&2===i.type?(i.content+=e,bJ(i.loc,n)):r.children.push({type:2,content:e,loc:CJ(t,n)})}function dJ(e,t,n=!1){bJ(e.loc,n?hJ(t,60):function(e,t){let n=e;for(;Jz.charCodeAt(n)!==t&&n<Jz.length-1;)n++;return n}(t,62)+1),aJ.inSFCRoot&&(e.children.length?e.innerLoc.end=w({},e.children[e.children.length-1].loc.end):e.innerLoc.end=w({},e.innerLoc.start),e.innerLoc.source=lJ(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:a}=e;if(nJ||("slot"===r?e.tagType=2:fJ(e)?e.tagType=3:function({tag:e,props:t}){if(Wz.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0))>64&&n<91||yz(e)||Wz.isBuiltInComponent&&Wz.isBuiltInComponent(e)||Wz.isNativeTag&&!Wz.isNativeTag(e))return!0;var n;for(let r=0;r<t.length;r++){const e=t[r];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;
40if(fz("COMPILER_IS_ON_ELEMENT",Wz,e.loc))return!0}}else if("bind"===e.name&&Az(e.arg,"is")&&fz("COMPILER_IS_ON_ELEMENT",Wz,e.loc))return!0}return!1}(e)&&(e.tagType=1)),aJ.inRCDATA||(e.children=mJ(a)),0===i&&Wz.isIgnoreNewlineTag(r)){const e=a[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===i&&Wz.isPreTag(r)&&tJ--,rJ===e&&(nJ=aJ.inVPre=!1,rJ=null),aJ.inXML&&0===(iJ[0]?iJ[0].ns:Wz.ns)&&(aJ.inXML=!1);{const t=e.props;if(!aJ.inSFCRoot&&pz("COMPILER_NATIVE_TEMPLATE",Wz)&&"template"===e.tag&&!fJ(e)){const t=iJ[0]||zz,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find(e=>6===e.type&&"inline-template"===e.name);n&&fz("COMPILER_INLINE_TEMPLATE",Wz,n.loc)&&e.children.length&&(n.value={type:2,content:lJ(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function hJ(e,t){let n=e;for(;Jz.charCodeAt(n)!==t&&n>=0;)n--;return n}const pJ=new Set(["if","else","else-if","for","slot"]);function fJ({tag:e,props:t}){if("template"===e)for(let n=0;n<t.length;n++)if(7===t[n].type&&pJ.has(t[n].name))return!0;return!1}const BJ=/\r\n/g;function mJ(e){const t="preserve"!==Wz.whitespace;let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(2===i.type)if(tJ)i.content=i.content.replace(BJ,"\n");else if(Yz(i.content)){const a=e[r-1]&&e[r-1].type,s=e[r+1]&&e[r+1].type;!a||!s||t&&(3===a&&(3===s||1===s)||1===a&&(3===s||1===s&&gJ(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=vJ(i.content))}return n?e.filter(Boolean):e}function gJ(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function vJ(e){let t="",n=!1;for(let r=0;r<e.length;r++)lz(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function yJ(e){(iJ[0]||zz).children.push(e)}function CJ(e,t){return{start:aJ.getPos(e),end:null==t?t:aJ.getPos(t),source:null==t?t:lJ(e,t)}}function _J(e){return CJ(e.start.offset,e.end.offset)}function bJ(e,t){e.end=aJ.getPos(t),e.source=lJ(e.start.offset,t)}function wJ(e){const t={type:6,name:e.rawName,nameLoc:CJ(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function DJ(e,t=!1,n,r=0,i=0){return QW(e,t,n,r)}function EJ(e,t,n){Wz.onError(gz(e,CJ(t,t)))}function kJ(e,t){if(aJ.reset(),Kz=null,Qz=null,Zz="",Xz=-1,eJ=-1,iJ.length=0,Jz=e,Wz=w({},$z),t){let e;for(e in t)null!=t[e]&&(Wz[e]=t[e])}aJ.mode="html"===Wz.parseMode?1:"sfc"===Wz.parseMode?2:0,aJ.inXML=1===Wz.ns||2===Wz.ns;const n=t&&t.delimiters;n&&(aJ.delimiterOpen=cz(n[0]),aJ.delimiterClose=cz(n[1]));const r=zz=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:$W}}([],e);return aJ.parse(Jz),r.loc=CJ(0,e.length),r.children=mJ(r.children),zz=null,r}function SJ(e,t){TJ(e,void 0,t,!!xJ(e))}function xJ(e){const t=e.children.filter(e=>3!==e.type);return 1!==t.length||1!==t[0].type||Mz(t[0])?null:t[0]}function TJ(e,t,n,r=!1,i=!1){const{children:a}=e,s=[];for(let c=0;c<a.length;c++){const t=a[c];if(1===t.type&&0===t.tagType){const e=r?0:OJ(t,n);if(e>0){if(e>=2){t.codegenNode.patchFlag=-1,s.push(t);continue}}else{const e=t.codegenNode;if(13===e.type){const r=e.patchFlag;if((void 0===r||512===r||1===r)&&PJ(t,n)>=2){const r=NJ(t);r&&(e.props=n.hoist(r))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===t.type&&(r?0:OJ(t,n))>=2){14===t.codegenNode.type&&t.codegenNode.arguments.length>0&&t.codegenNode.arguments.push("-1"),s.push(t);continue}if(1===t.type){const r=1===t.tagType;r&&n.scopes.vSlot++,TJ(t,e,n,!1,i),r&&n.scopes.vSlot--}else if(11===t.type)TJ(t,e,n,1===t.children.length,!0);else if(9===t.type)for(let r=0;r<t.branches.length;r++)TJ(t.branches[r],e,n,1===t.branches[r].children.length,i)}let o=!1;if(s.length===a.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&S(e.codegenNode.children))e.codegenNode.children=l(zW(e.codegenNode.children)),o=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!S(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=u(e.codegenNode,"default");t&&(t.returns=l(zW(t.returns)),o=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!S(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=Tz(e,"slot",!0),r=n&&n.arg&&u(t.codegenNode,n.arg);r&&(r.returns=l(zW(r.returns)),o=!0)}if(!o)for(const c of s)c.codegenNode=n.cache(c.codegenNode);function l(e){const t=n.cache(e);return t.needArraySpread=!0,t}function u(e,t){if(e.children&&!S(e.children)&&15===e.children.type){const n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}s.length&&n.transformHoist&&n.transformHoist(a,n,e)}function OJ(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;
40if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===i.patchFlag){let r=3;const a=PJ(e,t);if(0===a)return n.set(e,0),0;a<r&&(r=a);for(let i=0;i<e.children.length;i++){const a=OJ(e.children[i],t);if(0===a)return n.set(e,0),0;a<r&&(r=a)}if(r>1)for(let i=0;i<e.props.length;i++){const a=e.props[i];if(7===a.type&&"bind"===a.name&&a.exp){const i=OJ(a.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(dW),t.removeHelper(rz(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(nz(t.inSSR,i.isComponent))}return n.set(e,r),r}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return OJ(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(I(r)||P(r))continue;const i=OJ(r,t);if(0===i)return 0;i<a&&(a=i)}return a;case 20:return 2}}const AJ=new Set([TW,OW,AW,IW]);function IJ(e,t){if(14===e.type&&!I(e.callee)&&AJ.has(e.callee)){const n=e.arguments[0];if(4===n.type)return OJ(n,t);if(14===n.type)return IJ(n,t)}return 0}function PJ(e,t){let n=3;const r=NJ(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:a}=e[r],s=OJ(i,t);if(0===s)return s;let o;if(s<n&&(n=s),o=4===a.type?OJ(a,t):14===a.type?IJ(a,t):0,0===o)return o;o<n&&(n=o)}}return n}function NJ(e){const t=e.codegenNode;if(13===t.type)return t.props}function RJ(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:l=null,isBuiltInComponent:u=y,isCustomElement:c=y,expressionPlugins:d=[],scopeId:h=null,slotted:p=!0,ssr:f=!1,inSSR:B=!1,ssrCssVars:m="",bindingMetadata:v=g,inline:C=!1,isTS:_=!1,onError:b=Bz,onWarn:w=mz,compatConfig:D}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:E&&W(V(E[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:s,directiveTransforms:o,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:d,scopeId:h,slotted:p,ssr:f,inSSR:B,ssrCssVars:m,bindingMetadata:v,inline:C,isTS:_,onError:b,onWarn:w,compatConfig:D,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=k.helpers.get(e)||0;return k.helpers.set(e,t+1),e},removeHelper(e){const t=k.helpers.get(e);if(t){const n=t-1;n?k.helpers.set(e,n):k.helpers.delete(e)}},helperString:e=>`_${qW[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:y,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){I(e)&&(e=QW(e)),k.hoists.push(e);const t=QW(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=function(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:$W}}(k.cached.length,e,t,n);return k.cached.push(r),r}};return k.filters=new Set,k}function MJ(e,t){const n=RJ(e,t);FJ(e,n),t.hoistStatic&&SJ(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=xJ(e);if(n&&n.codegenNode){const r=n.codegenNode;13===r.type&&iz(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else if(r.length>1){let r=64;e.codegenNode=WW(t,n(sW),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function FJ(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let a=0;a<n.length;a++){const i=n[a](e,t);if(i&&(S(i)?r.push(...i):r.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(mW);break;case 5:t.ssr||t.helper(SW);break;case 9:for(let n=0;n<e.branches.length;n++)FJ(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];I(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,FJ(i,t))}}(e,t)}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function LJ(e,t){const n=I(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(Nz))return;const a=[];for(let s=0;s<i.length;s++){const o=i[s];if(7===o.type&&n(o.name)){i.splice(s,1),s--;const n=t(e,o,r);n&&a.push(n)}}return a}}}const jJ="/*@__PURE__*/",HJ=e=>`${qW[e]}: _${qW[e]}`;function UJ(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:a=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:d=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:d,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${qW[e]}`,push(e,t=-2,n){p.code+=e},indent(){f(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(e){p.push("\n"+"  ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:a,indent:s,deindent:o,newline:l,scopeId:u,ssr:c}=n,d=Array.from(e.helpers),h=d.length>0,p=!a&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:l}=t,u=o,c=Array.from(e.helpers);c.length>0&&(i(`const _Vue = ${u}\n`,-1),e.hoists.length)&&i(`const { ${[fW,BW,mW,gW,vW].filter(e=>c.includes(e)).map(HJ).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const a=e[i];a&&(n(`const _hoisted_${i+1} = `),qJ(a,t),r())}t.pure=!1}(e.hoists,t),a(),i("return ")}(e,n),i(`function ${c?"ssrRender":"render"}(${(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),s(),p&&(i("with (_ctx) {"),s(),h&&(i(`const { ${d.map(HJ).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(GJ(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(GJ(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),GJ(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n",0),l()),c||i("return "),e.codegenNode?qJ(e.codegenNode,n):i("null"),p&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function GJ(e,t,{helper:n,push:r,newline:i,isTS:a}){const s=n("filter"===t?bW:"component"===t?yW:_W);for(let o=0;o<e.length;o++){let n=e[o];const l=n.endsWith("__self");l&&(n=n.slice(0,-6)),r(`const ${Uz(n,t)} = ${s}(${JSON.stringify(n)}${l?", true":""})${a?"!":""}`),o<e.length-1&&i()}}function YJ(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),VJ(e,t,n),n&&t.deindent(),t.push("]")}function VJ(e,t,n=!1,r=!0){const{push:i,newline:a}=t;for(let s=0;s<e.length;s++){const o=e[s];I(o)?i(o,-3):S(o)?YJ(o,t):qJ(o,t),s<e.length-1&&(n?(r&&i(","),a()):r&&i(", "))}}function qJ(e,t){if(I(e))t.push(e,-3);else if(P(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:qJ(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:$J(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(jJ),n(`${r(SW)}(`),qJ(e.content,t),n(")")}(e,t);break;case 8:WJ(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(jJ),n(`${r(mW)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:i}=t,{tag:a,props:s,children:o,patchFlag:l,dynamicProps:u,directives:c,isBlock:d,disableTracking:h,isComponent:p}=e;let f;l&&(f=String(l)),c&&n(r(wW)+"("),d&&n(`(${r(dW)}(${h?"true":""}), `),i&&n(jJ);const B=d?rz(t.inSSR,p):nz(t.inSSR,p);n(r(B)+"(",-2,e),VJ(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([a,s,o,f,u]),t),n(")"),d&&n(")"),c&&(n(", "),qJ(c,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,a=I(e.callee)?e.callee:r(e.callee);i&&n(jJ),n(a+"(",-2,e),VJ(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:a}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const o=s.length>1||!1;n(o?"{":"{ "),o&&r();for(let l=0;l<s.length;l++){const{key:e,value:r}=s[l];zJ(e,t),n(": "),qJ(r,t),l<s.length-1&&(n(","),a())}o&&i(),n(o?"}":" }")}(e,t);break;case 17:!function(e,t){YJ(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:i}=t,{params:a,returns:s,body:o,newline:l,isSlot:u}=e;u&&n(`_${qW[HW]}(`),n("(",-2,e),S(a)?VJ(a,t):a&&qJ(a,t),n(") => "),(l||o)&&(n("{"),r()),s?(l&&n("return "),S(s)?YJ(s,t):qJ(s,t)):o&&qJ(o,t),(l||o)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:a}=e,{push:s,indent:o,deindent:l,newline:u}=t;if(4===n.type){const e=!_z(n.content);e&&s("("),$J(n,t),e&&s(")")}else s("("),qJ(n,t),s(")");a&&o(),t.indentLevel++,a||s(" "),s("? "),qJ(r,t),t.indentLevel--,a&&u(),a||s(" "),s(": ");const c=19===i.type;c||t.indentLevel++,qJ(i,t),c||t.indentLevel--,a&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:a,newline:s}
40=t,{needPauseTracking:o,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),o&&(i(),n(`${r(FW)}(-1`),e.inVOnce&&n(", true"),n("),"),s(),n("(")),n(`_cache[${e.index}] = `),qJ(e.value,t),o&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(FW)}(1),`),s(),n(`_cache[${e.index}]`),a()),n(")"),l&&n(")]")}(e,t);break;case 21:VJ(e.body,t,!0,!1)}}function $J(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function WJ(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];I(r)?t.push(r,-3):qJ(r,t)}}function zJ(e,t){const{push:n}=t;8===e.type?(n("["),WJ(e,t),n("]")):e.isStatic?n(_z(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const JJ=LJ(/^(?:if|else|else-if)$/,(e,t,n)=>function(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(gz(28,t.loc)),t.exp=QW("true",!1,r)}if("if"===t.name){const i=KJ(e,t),a={type:9,loc:_J(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);for(;a-- >=-1;){const s=i[a];if(!s||!qz(s)){if(s&&9===s.type){"else-if"!==t.name&&"else"!==t.name||void 0!==s.branches[s.branches.length-1].condition||n.onError(gz(30,e.loc)),n.removeNode();const i=KJ(e,t);s.branches.push(i);const a=r&&r(s,i,!1);FJ(i,n),a&&a(),n.currentNode=null}else n.onError(gz(30,e.loc));break}n.removeNode(s)}}}(e,t,n,(e,t,r)=>{const i=n.parent.children;let a=i.indexOf(e),s=0;for(;a-- >=0;){const e=i[a];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(r)e.codegenNode=QJ(t,s,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=QJ(t,s+e.branches.length-1,n)}}}));function KJ(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Tz(e,"for")?e.children:[e],userKey:Oz(e,"key"),isTemplateIf:n}}function QJ(e,t,n){return e.condition?tz(e.condition,ZJ(e,t,n),XW(n.helper(mW),['""',"true"])):ZJ(e,t,n)}function ZJ(e,t,n){const{helper:r}=n,i=KW("key",QW(`${t}`,!1,$W,2)),{children:a}=e,s=a[0];if(1!==a.length||1!==s.type){if(1===a.length&&11===s.type){const e=s.codegenNode;return jz(e,i,n),e}{let t=64;return WW(n,r(sW),JW([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(o=e).type&&o.callee===YW?o.arguments[1].returns:o;return 13===t.type&&iz(t,n),jz(t,i,n),e}var o}const XJ=LJ("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(gz(31,t.loc));const i=t.forParseResult;if(!i)return void n.onError(gz(32,t.loc));eK(i);const{addIdentifiers:a,removeIdentifiers:s,scopes:o}=n,{source:l,value:u,key:c,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:d,parseResult:i,children:Rz(e)?e.children:[e]};n.replaceNode(h),o.vFor++;const p=r&&r(h);return()=>{o.vFor--,p&&p()}}(e,t,n,t=>{const a=XW(r(DW),[t.source]),s=Rz(e),o=Tz(e,"memo"),l=Oz(e,"key",!1,!0);l&&l.type;let u=l&&(6===l.type?l.value?QW(l.value.content,!0):void 0:l.exp);const c=u?KW("key",u):null,d=4===t.source.type&&t.source.constType>0,h=d?64:l?128:256;return t.codegenNode=WW(n,r(sW),void 0,a,h,void 0,void 0,!0,!d,!1,e.loc),()=>{var l;let h;const{children:p}=t,f=1!==p.length||1!==p[0].type,B=Mz(e)?e:s&&1===e.children.length&&Mz(e.children[0])?e.children[0]:null;if(B)h=B.codegenNode,s&&c&&jz(h,c,n);else if(f)h=WW(n,r(sW),c?JW([c]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{h=p[0].codegenNode,s&&c&&jz(h,c,n);const e=!d||!0===h.isBlockRequired;h.isBlock!==e&&(h.isBlock?(i(dW),i(rz(n.inSSR,h.isComponent))):i(nz(n.inSSR,h.isComponent))),h.isBlock=e,h.isBlock?(r(dW),r(rz(n.inSSR,h.isComponent))):(r(nz(n.inSSR,h.isComponent)),h.needsPatch&&(h.patchFlag=512|(null!=(l=h.patchFlag)?l:0)))}if(o){const e=ez(tK(t.parseResult,[QW("_cached")]));e.body={type:21,body:[ZW(["const _memo = (",o.exp,")"]),ZW(["if (_cached && _cached.el",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(VW)}(_cached, _memo)) return _cached`]),ZW(["const _item = ",h]),QW("_item.memo = _memo"),QW("return _item")],loc:$W},a.arguments.push(e,QW("_cache"),QW(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(ez(tK(t.parseResult),h,!0))}})});function eK(e,t){e.finalized||(e.finalized=!0)}function tK({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||QW("_".repeat(t+1),!1))}([e,t,n,...r])}const nK=QW("undefined",!1),rK=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Tz(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},iK=(e,t,n,r)=>ez(e,n,!1,!0,n.length?n[0].loc:r);function aK(e,t,n=iK){t.helper(HW);const{children:r,loc:i}=e,a=[],s=[];let o=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Tz(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!vz(e)&&(o=!0),a.push(KW(e||QW("default",!0),n(t,void 0,r,i)))}
40let u=!1,c=!1;const d=[],h=new Set;let p=0;for(let m=0;m<r.length;m++){const e=r[m];let i;if(!Rz(e)||!(i=Tz(e,"slot",!0))){3!==e.type&&d.push(e);continue}if(l){t.onError(gz(37,i.loc));break}u=!0;const{children:f,loc:B}=e,{arg:g=QW("default",!0),exp:v,loc:y}=i;let C;vz(g)?C=g?g.content:"default":o=!0;const _=Tz(e,"for"),b=n(v,_,f,B);let w,D;if(w=Tz(e,"if"))o=!0,s.push(tz(w.exp,sK(g,b,p++),nK));else if(D=Tz(e,/^else(?:-if)?$/,!0)){let e,n=m;for(;n--&&(e=r[n],qz(e)););if(e&&Rz(e)&&Tz(e,/^(?:else-)?if$/)){let e=s[s.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=D.exp?tz(D.exp,sK(g,b,p++),nK):sK(g,b,p++)}else t.onError(gz(30,D.loc))}else if(_){o=!0;const e=_.forParseResult;e?(eK(e),s.push(XW(t.helper(DW),[e.source,ez(tK(e),sK(g,b),!0)]))):t.onError(gz(32,_.loc))}else{if(C){if(h.has(C)){t.onError(gz(38,y));continue}h.add(C),"default"===C&&(c=!0)}a.push(KW(g,b))}}if(!l){const e=(e,r)=>{const a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),KW("default",a)};u?d.length&&!d.every(Vz)&&(c?t.onError(gz(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}const f=o?2:oK(e.children)?3:1;let B=JW(a.concat(KW("_",QW(f+"",!1))),i);return s.length&&(B=XW(t.helper(kW),[B,zW(s)])),{slots:B,hasDynamicSlots:o}}function sK(e,t,n){const r=[KW("name",e),KW("fn",t)];return null!=n&&r.push(KW("key",QW(String(n),!0))),JW(r)}function oK(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||oK(n.children))return!0;break;case 9:if(oK(n.branches))return!0;break;case 10:case 11:if(oK(n.children))return!0}}return!1}const lK=new WeakMap,uK=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let a=i?function(e,t,n=!1){let{tag:r}=e;const i=pK(r),a=Oz(e,"is",!1,!0);if(a)if(i||pz("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===a.type?e=a.value&&QW(a.value.content,!0):(e=a.exp,e||(e=QW("is",!1,a.arg.loc))),e)return XW(t.helper(CW),[e])}else 6===a.type&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const s=yz(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(yW),t.components.add(r),Uz(r,"component"))}(e,t):`"${n}"`;const s=N(a)&&a.callee===CW;let o,l,u,c,d,h=0,p=!1,f=!1,B=s||a===oW||a===lW||!i&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=cK(e,t,void 0,i,s);o=n.props,h=n.patchFlag,c=n.dynamicPropNames,p=n.needsPatch,f=n.isBlockRequired;const r=n.directives;d=r&&r.length?zW(r.map(e=>function(e,t){const n=[],r=lK.get(e);r?n.push(t.helperString(r)):(t.helper(_W),t.directives.add(e.name),n.push(Uz(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=QW("true",!1,i);n.push(JW(e.modifiers.map(e=>KW(e,t)),i))}return zW(n,e.loc)}(e,t))):void 0,n.shouldUseBlock&&(B=!0)}if(e.children.length>0)if(a===uW&&(B=!0,h|=1024),i&&a!==oW&&a!==uW){const{slots:n,hasDynamicSlots:r}=aK(e,t);l=n,r&&(h|=1024)}else if(1===e.children.length&&a!==oW){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===OJ(n,t)&&(h|=1),l=i||2===r?n:e.children}else l=e.children;c&&c.length&&(u=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(c));const m=e.codegenNode=WW(t,a,o,l,0===h?void 0:h,u,d,!!B,!1,i,e.loc);p=p&&(0===h||32===h),p&&(m.needsPatch=!0),f&&(m.isBlockRequired=!0)};function cK(e,t,n=e.props,r,i,a=!1){const{tag:s,loc:o,children:l}=e;let u=[];const c=[],d=[],h=l.length>0;let p=!1,f=!1,B=0,m=!1,g=!1,v=!1,y=!1,C=!1,b=!1;const w=[],D=e=>{u.length&&(c.push(JW(dK(u),o)),u=[]),e&&c.push(e)},E=()=>{t.scopes.vFor>0&&u.push(KW(QW("ref_for",!0),QW("true")))},k=({key:e,value:n})=>{if(vz(e)){const a=e.content,s=_(a);if(!s||r&&!i||"onclick"===a.toLowerCase()||"onUpdate:modelValue"===a||H(a)||(y=!0),s&&H(a)&&(b=!0),"ref"===a&&(m=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&OJ(n,t)>0)return;"class"===a?g=!0:"style"===a?v=!0:"ref"===a||"key"===a||w.includes(a)||w.push(a),!r||"class"!==a&&"style"!==a||w.includes(a)||w.push(a)}else C=!0};for(let _=0;_<n.length;_++){const i=n[_];if(6===i.type){const{loc:e,name:n,nameLoc:r,value:a}=i;let o=!0;if("ref"===n&&(m=!0,E()),"is"===n&&(pK(s)||a&&a.content.startsWith("vue:")||pz("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(KW(QW(n,!0,r),QW(a?a.content:"",o,a?a.loc:e)))}else{const{name:n,arg:l,exp:m,loc:g,modifiers:v}=i,y="bind"===n,_="on"===n;if("slot"===n){r||t.onError(gz(40,g));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&Az(l,"is")&&(pK(s)||pz("COMPILER_IS_ON_ELEMENT",t)))continue;if(_&&a)continue;if(y&&Az(l,"key")&&(p=!0),_&&h&&l&&vz(l)&&"vue:beforeUpdate"===V(l.content)&&(p=!0,f=!0),y&&Az(l,"ref")&&E(),!l&&(y||_)){if(C=!0,m)if(y){if(D(),pz("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(m);continue}E(),D(),c.push(m)}else D({type:14,loc:g,callee:t.helper(PW),arguments:r?[m]:[m,"true"]});else t.onError(gz(y?34:35,g));continue}y&&v.some(e=>"prop"===e.content)&&(B|=32);const b=t.directiveTransforms[n];if(b){const{props:n,needRuntime:r}=b(i,e,t);
40!a&&n.forEach(k),_&&l&&!vz(l)?D(JW(n,o)):u.push(...n),r&&(d.push(i),P(r)&&lK.set(i,r))}else U(n)||(d.push(i),h&&(p=!0,f=!0))}}let S;c.length?(D(),S=c.length>1?XW(t.helper(xW),c,o):c[0]):u.length&&(S=JW(dK(u),o)),C?B|=16:(g&&!r&&(B|=2),v&&!r&&(B|=4),w.length&&(B|=8),y&&(B|=32));const x=(0===B||32===B)&&(m||b||d.length>0);if(!p&&x&&(B|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<S.properties.length;t++){const i=S.properties[t].key;vz(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=S.properties[e],a=S.properties[n];r?S=XW(t.helper(AW),[S]):(i&&!vz(i.value)&&(i.value=XW(t.helper(TW),[i.value])),a&&(v||4===a.value.type&&"["===a.value.content.trim()[0]||17===a.value.type)&&(a.value=XW(t.helper(OW),[a.value])));break;case 14:break;default:S=XW(t.helper(AW),[XW(t.helper(IW),[S])])}return{props:S,directives:d,patchFlag:B,dynamicPropNames:w,shouldUseBlock:p,needsPatch:x,isBlockRequired:f}}function dK(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const a=i.key.content,s=t.get(a);s?("style"===a||"class"===a||_(a))&&hK(s,i):(t.set(a,i),n.push(i))}return n}function hK(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=zW([e.value,t.value],e.loc)}function pK(e){return"component"===e||"Component"===e}const fK=(e,t)=>{if(Mz(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:a}=function(e,t){let n,r='"default"';const i=[];for(let a=0;a<e.props.length;a++){const t=e.props[a];if(6===t.type)t.value&&("name"===t.name?r=JSON.stringify(t.value.content):(t.name=V(t.name),i.push(t)));else if("bind"===t.name&&Az(t.arg,"name")){if(t.exp)r=t.exp;else if(t.arg&&4===t.arg.type){const e=V(t.arg.content);r=t.exp=QW(e,!1,t.arg.loc)}}else"bind"===t.name&&t.arg&&vz(t.arg)&&(t.arg.content=V(t.arg.content)),i.push(t)}if(i.length>0){const{props:r,directives:a}=cK(e,t,i,!1,!1);n=r,a.length&&t.onError(gz(36,a[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let o=2;a&&(s[2]=a,o=3),n.length&&(s[3]=ez([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=XW(t.helper(EW),s,r)}},BK=(e,t,n,r)=>{const{loc:i,modifiers:a,arg:s}=e;let o;if(e.exp||a.length||n.onError(gz(35,i)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),o=QW(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?z(V(e)):`on:${e}`,!0,s.loc)}else o=ZW([`${n.helperString(MW)}(`,s,")"]);else o=s,o.children.unshift(`${n.helperString(MW)}(`),o.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=kz(l),t=!(e||xz(l)),n=l.content.includes(";");(t||u&&e)&&(l=ZW([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let c={props:[KW(o,l||QW("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(e=>e.key.isHandlerKey=!0),c},mK=(e,t,n)=>{const{modifiers:r,loc:i}=e,a=e.arg;let{exp:s}=e;return s&&4===s.type&&!s.content.trim()&&(s=void 0),4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),r.some(e=>"camel"===e.content)&&(4===a.type?a.isStatic?a.content=V(a.content):a.content=`${n.helperString(NW)}(${a.content})`:(a.children.unshift(`${n.helperString(NW)}(`),a.children.push(")"))),n.inSSR||(r.some(e=>"prop"===e.content)&&gK(a,"."),r.some(e=>"attr"===e.content)&&gK(a,"^")),{props:[KW(a,s)]}},gK=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},vK=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(Iz(t)){i=!0;for(let i=e+1;i<n.length;i++){const a=n[i];if(!Iz(a)){r=void 0;break}r||(r=n[e]=ZW([t],t.loc)),r.children.push(" + ",a),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find(e=>7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(Iz(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==OJ(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:XW(t.helper(gW),i)}}}}},yK=new WeakSet,CK=(e,t)=>{if(1===e.type&&Tz(e,"once",!0)){if(yK.has(e)||t.inVOnce||t.inSSR)return;return yK.add(e),t.inVOnce=!0,t.helper(FW),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},_K=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(gz(41,e.loc)),bK();const a=r.loc.source.trim(),s=4===r.type?r.content:a,o=n.bindingMetadata[a];if("props"===o||"props-aliased"===o)return n.onError(gz(44,r.loc)),bK();if("literal-const"===o||"setup-const"===o)return n.onError(gz(45,r.loc)),bK();if(!s.trim()||!kz(r))return n.onError(gz(42,r.loc)),bK();const l=i||QW("modelValue",!0),u=i?vz(i)?`onUpdate:${V(i.content)}
40`:ZW(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;c=ZW([(n.isTS?"($event: any)":"$event")+" => ((",r,") = $event)"]);const d=[KW(l,e.exp),KW(u,c)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(_z(e)?e:JSON.stringify(e))+": true").join(", "),n=i?vz(i)?`${i.content}Modifiers`:ZW([i,' + "Modifiers"']):"modelModifiers";d.push(KW(n,QW(`{ ${t} }`,!1,e.loc,2)))}return bK(d)};function bK(e=[]){return{props:e}}const wK=/[\w).+\-_$\]]/,DK=(e,t)=>{pz("COMPILER_FILTERS",t)&&(5===e.type?EK(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&EK(e.exp,t)}))};function EK(e,t){if(4===e.type)kK(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?kK(r,t):8===r.type?EK(r,t):5===r.type&&EK(r.content,t))}}function kK(e,t){const n=e.content;let r,i,a,s,o=!1,l=!1,u=!1,c=!1,d=0,h=0,p=0,f=0,B=[];for(a=0;a<n.length;a++)if(i=r,r=n.charCodeAt(a),o)39===r&&92!==i&&(o=!1);else if(l)34===r&&92!==i&&(l=!1);else if(u)96===r&&92!==i&&(u=!1);else if(c)47===r&&92!==i&&(c=!1);else if(124!==r||124===n.charCodeAt(a+1)||124===n.charCodeAt(a-1)||d||h||p){switch(r){case 34:l=!0;break;case 39:o=!0;break;case 96:u=!0;break;case 40:p++;break;case 41:p--;break;case 91:h++;break;case 93:h--;break;case 123:d++;break;case 125:d--}if(47===r){let e,t=a-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&wK.test(e)||(c=!0)}}else void 0===s?(f=a+1,s=n.slice(0,a).trim()):m();function m(){B.push(n.slice(f,a).trim()),f=a+1}if(void 0===s?s=n.slice(0,a).trim():0!==f&&m(),B.length){for(a=0;a<B.length;a++)s=SK(s,B[a],t);e.content=s,e.ast=void 0}}function SK(e,t,n){n.helper(bW);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Uz(t,"filter")}(${e})`;{const i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${Uz(i,"filter")}(${e}${")"!==a?","+a:a}`}}const xK=new WeakSet,TK=(e,t)=>{if(1===e.type){const n=Tz(e,"memo");if(!n||xK.has(e)||t.inSSR)return;return xK.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&iz(r,t),e.codegenNode=XW(t.helper(YW),[n.exp,ez(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}},OK=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=V(e.content);(bz.test(t[0])||"-"===t[0])&&(n.exp=QW(t,!1,e.loc))}else t.onError(gz(53,e.loc)),n.exp=QW("",!0,e.loc)}};function AK(e,t={}){const n=t.onError||Bz,r="module"===t.mode;!0===t.prefixIdentifiers?n(gz(48)):r&&n(gz(49)),t.cacheHandlers&&n(gz(50)),t.scopeId&&!r&&n(gz(51));const i=w({},t,{prefixIdentifiers:!1}),a=I(e)?kJ(e,i):e,[s,o]=[[OK,CK,JJ,TK,XJ,DK,fK,uK,rK,vK],{on:BK,bind:mK,model:_K}];return MJ(a,w({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:w({},o,t.directiveTransforms||{})})),UJ(a,i)}const IK=Symbol(""),PK=Symbol(""),NK=Symbol(""),RK=Symbol(""),MK=Symbol(""),FK=Symbol(""),LK=Symbol(""),jK=Symbol(""),HK=Symbol(""),UK=Symbol("");
41/**
42    * @vue/compiler-dom v3.5.43
43    * (c) 2018-present Yuxi (Evan) You and Vue contributors
44    * @license MIT
45    **/var GK;let YK;GK={[IK]:"vModelRadio",[PK]:"vModelCheckbox",[NK]:"vModelText",[RK]:"vModelSelect",[MK]:"vModelDynamic",[FK]:"withModifiers",[LK]:"withKeys",[jK]:"vShow",[HK]:"Transition",[UK]:"TransitionGroup"},Object.getOwnPropertySymbols(GK).forEach(e=>{qW[e]=GK[e]});const VK={parseMode:"html",isVoidTag:pe,isNativeTag:e=>ce(e)||de(e)||he(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return YK||(YK=document.createElement("div")),t?(YK.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,YK.children[0].getAttribute("foo")):(YK.innerHTML=e,YK.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?HK:"TransitionGroup"===e||"transition-group"===e?UK:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},qK=(e,t)=>{const n=oe(e);return QW(JSON.stringify(n),!1,t,3)};function $K(e,t){return gz(e,t)}const WK=m("passive,once,capture"),zK=m("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),JK=m("left,right"),KK=m("onkeyup,onkeydown,onkeypress"),QK=(e,t)=>vz(e)&&"onclick"===e.content.toLowerCase()?QW(t,!0):4!==e.type?ZW(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,ZK=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},XK=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:QW("style",!0,t.loc),exp:qK(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],eQ={cloak:()=>({props:[]}
45),html:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError($K(54,i)),t.children.length&&(n.onError($K(55,i)),t.children.length=0),{props:[KW(QW("innerHTML",!0,i),r||QW("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError($K(56,i)),t.children.length&&(n.onError($K(57,i)),t.children.length=0),{props:[KW(QW("textContent",!0),r?OJ(r,n)>0?r:XW(n.helperString(SW),[r],i):QW("",!0))]}},model:(e,t,n)=>{const r=_K(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError($K(59,e.arg.loc));const{tag:i}=t,a=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||a){let s=NK,o=!1;if("input"===i||a){const r=Oz(t,"type");if(r){if(7===r.type)s=MK;else if(r.value)switch(r.value.content){case"radio":s=IK;break;case"checkbox":s=PK;break;case"file":o=!0,n.onError($K(60,e.loc))}}else(function(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))})(t)&&(s=MK)}else"select"===i&&(s=RK);o||(r.needRuntime=n.helper(s))}else n.onError($K(58,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>BK(e,t,n,t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0];const{keyModifiers:s,nonKeyModifiers:o,eventOptionModifiers:l}=((e,t,n)=>{const r=[],i=[],a=[];for(let s=0;s<t.length;s++){const o=t[s].content;"native"===o&&fz("COMPILER_V_ON_NATIVE",n)||WK(o)?a.push(o):JK(o)?vz(e)?KK(e.content.toLowerCase())?r.push(o):i.push(o):(r.push(o),i.push(o)):zK(o)?i.push(o):r.push(o)}return{keyModifiers:r,nonKeyModifiers:i,eventOptionModifiers:a}})(i,r,n,e.loc);if(o.includes("right")&&(i=QK(i,"onContextmenu")),o.includes("middle")&&(i=QK(i,"onMouseup")),o.length&&(a=XW(n.helper(FK),[a,JSON.stringify(o)])),!s.length||vz(i)&&!KK(i.content.toLowerCase())||(a=XW(n.helper(LK),[a,JSON.stringify(s)])),l.length){const e=l.map(W).join("");i=vz(i)?QW(`${i.content}${e}`,!0):ZW(["(",i,`) + "${e}"`])}return{props:[KW(i,a)]}}),show:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError($K(62,i)),{props:[],needRuntime:n.helper(jK)}}},tQ=new WeakMap;Fs(function(e,t){if(!I(e)){if(!e.nodeType)return y;e=e.innerHTML}const n=e,r=function(e){let t=tQ.get(null!=e?e:g);return t||(t=Object.create(null),tQ.set(null!=e?e:g,t)),t}(t),i=r[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const a=w({hoistStatic:!0,onError:void 0,onWarn:y},t);a.isCustomElement||"undefined"==typeof customElements||(a.isCustomElement=e=>!!customElements.get(e));const{code:s}=function(e,t={}){return AK(e,w({},VK,t,{nodeTransforms:[ZK,...XK,...t.nodeTransforms||[]],directiveTransforms:w({},eQ,t.directiveTransforms||{}),transformHoist:null}))}(e,a),o=new Function("Vue",s)(Vl);return o._rc=!0,r[n]=o});const nQ=[17,24,39],rQ=[249,250,251],iQ="data-cor-original",aQ=`[${iQ}]`,sQ="link-contraste-corrigido";function oQ(e){const t=e.match(/rgba?\(([^)]+)\)/);if(!t)return null;const[n,r,i,a]=t[1].split(",").map(Number.parseFloat);return 0===a?null:[n,r,i]}function lQ([e,t,n]){const r=[e,t,n].map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*r[0]+.7152*r[1]+.0722*r[2]}function uQ(e,t){const[n,r]=[lQ(e),lQ(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function cQ(e){const t=e.getAttribute(iQ);null!==t&&(e.style.color=t,e.removeAttribute(iQ),e.classList.remove(sQ))}function dQ(e){(function(e){const t=new Set;return e.querySelectorAll('[style*="color"]').forEach(e=>{t.add(e),e.querySelectorAll("*").forEach(e=>t.add(e))}),t})(e).forEach(e=>{if(!function(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&""!==e.textContent.trim())}(e))return;cQ(e);const t=function(e){return oQ(getComputedStyle(e).color)}(e);if(!t)return;const n=function(e){let t=e;for(;t;){const e=oQ(getComputedStyle(t).backgroundColor);if(e)return e;t=t.parentElement}return[255,255,255]}(e);(function(e,t){return uQ(e,t)>=4.5})(t,n)||function(e,[t,n,r]){e.setAttribute(iQ,e.style.color),e.style.color=`rgb(${t},${n},${r})`,e.closest("a")&&e.classList.add(sQ)}(e,function(e){return uQ(nQ,e)>=uQ(rQ,e)?nQ:rQ}(n))})}
46/*! get-video-id v3.7.0 | @license MIT © Michael Wuergler | https://github.com/radiovisual/get-video-id */function hQ(e){return e.includes("?")&&(e=e.split("?")[0]),e.includes("/")&&(e=e.split("/")[0]),e.includes("&")&&(e=e.split("&")[0]),e}function pQ(e){var t=e;t=(t=t.replace(/#t=.*$/,"")).replace(/^https?:\/\//,"");var n=/youtube:\/\/|youtu\.be\/|y2u\.be\//g;if(n.test(t))return hQ(t.split(n)[1]);var r=/\/shorts\//g;if(r.test(t))return hQ(t.split(r)[1]);var i=/v=|vi=/g;if(i.test(t))return hQ(t.split(i)[1].split("&")[0]);var a=/\/v\/|\/vi\/|\/watch\//g;if(a.test(t))return hQ(t.split(a)[1]);var s=/\/an_webp\//g;if(s.test(t))return hQ(t.split(s)[1]);var o=/\/e\//g;if(o.test(t))return hQ(t.split(o)[1]);var l=/\/embed\//g;if(l.test(t))return hQ(t.split(l)[1]);if(!/\/user\/([a-zA-Z\d]*)$/g.test(t)){if(/\/user\/(?!.*videos)/g.test(t))return hQ(t.split("/").pop());var u=/\/attribution_link\?.*v%3D([^%&]*)(%26|&|$)/;if(u.test(t))return hQ(t.match(u)[1]);var c=/\/live\//g;if(c.test(t))return hQ(t.split(c)[1])}}function fQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(l){o=!0,i=l}finally{try{s||null==n.return||n.return()}finally{if(o)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BQ(e,t):void 0}}
46(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mQ(e){var t,n,r=e;if(r.includes("#")){var i=r.split("#");r=fQ(i,1)[0]}if(r.includes("?")&&!r.includes("clip_id=")){var a=r.split("?");r=fQ(a,1)[0]}var s=/https?:\/\/vimeo\.com\/event\/(\d+)$/.exec(r);if(s&&s[1])return s[1];var o=/https?:\/\/vimeo\.com\/(\d+)/.exec(r);if(o&&o[1])return o[1];var l=["https?://player.vimeo.com/video/[0-9]+$","https?://vimeo.com/channels","groups","album"].join("|");return new RegExp(l,"gim").test(r)?(n=r.split("/"))&&n.length>0&&(t=n.pop()):/clip_id=/gim.test(r)&&(n=r.split("clip_id="))&&n.length>0&&(t=fQ(n[1].split("&"),1)[0]),t}function gQ(e){var t=/https:\/\/vine\.co\/v\/([a-zA-Z\d]*)\/?/.exec(e);if(t&&t.length>1)return t[1]}function vQ(e){var t;if(e.includes("embed"))return t=/embed\/(\w{8})/,e.match(t)[1];t=/\/v\/(\w{8})/;var n=e.match(t);return n&&n.length>0?n[1]:void 0}function yQ(e){var t=(e.includes("embed")?/https:\/\/web\.microsoftstream\.com\/embed\/video\/([a-zA-Z\d-]*)\/?/:/https:\/\/web\.microsoftstream\.com\/video\/([a-zA-Z\d-]*)\/?/).exec(e);if(t&&t.length>1)return t[1]}function CQ(e){var t=/tiktok\.com(.*)\/video\/(\d+)/gm.exec(e);if(t&&t.length>2)return t[2]}function _Q(e){var t=/dailymotion\.com(.*)(video)\/([a-zA-Z\d]+)/gm.exec(e);if(t)return t[3];var n=/dai\.ly\/([a-zA-Z\d]+)/gm.exec(e);if(n&&n.length>1)return n[1];var r=/dailymotion\.com(.*)video=([a-zA-Z\d]+)/gm.exec(e);return r&&r.length>2?r[2]:void 0}function bQ(e){if("string"!=typeof e)throw new TypeError("get-video-id expects a string");var t=e;/<iframe/gi.test(t)&&(t=function(e){if("string"!=typeof e)throw new TypeError("getSrc expected a string");var t=/src="(.*?)"/gm.exec(e);if(t&&t.length>=2)return t[1]}(t)||""),t=(t=(t=t.trim()).replace("-nocookie","")).replace("/www.","/");var n={id:null,service:null};if(/\/\/google/.test(t)){var r=t.match(/url=([^&]+)&/);r&&(t=decodeURIComponent(r[1]))}return/youtube|youtu\.be|y2u\.be|i.ytimg\./.test(t)?n={id:pQ(t),service:"youtube"}:/vimeo/.test(t)?n={id:mQ(t),service:"vimeo"}:/vine/.test(t)?n={id:gQ(t),service:"vine"}:/videopress/.test(t)?n={id:vQ(t),service:"videopress"}:/microsoftstream/.test(t)?n={id:yQ(t),service:"microsoftstream"}:/tiktok\.com/.test(t)?n={id:CQ(t),service:"tiktok"}:/(dailymotion\.com|dai\.ly)/.test(t)&&(n={id:_Q(t),service:"dailymotion"}),n}const wQ={key:0,class:"w-full galeria__container"},DQ={class:"w-full"},EQ={class:"galeria__item"},kQ=["src","alt"],SQ=["src"],xQ={class:"flex justify-center"},TQ={class:"preview-slide__inner"},OQ=["src","alt"],AQ={class:"galeria__legenda"},IQ={__name:"NoticiaGaleriaIOS",props:{noticiaArquivo:{type:Array,required:!0},pasta:{type:String,required:!0},legenda:{type:String,default:null},titulo:{type:String,default:""}},setup(e){const t=e,n="https://portal-arquivos.engeplus.com.br/",r=e=>{var n;const r=null==(n=t.noticiaArquivo[e])?void 0:n.alt;return r||(t.titulo?`${t.titulo} - ${e+1}`:`Imagem ${e+1} da galeria`)},i=en(0);function a(e){return"imagem"===e.tipo?n+t.pasta+e.arquivo:function(e){const{id:t}=bQ(e);return`https://i.ytimg.com/vi/${t}/hqdefault.jpg`}(e.arquivo)}return rr(i,e=>{const r=t.noticiaArquivo[e+1];"imagem"===(null==r?void 0:r.tipo)&&((new Image).src=n+t.pasta+r.arquivo)}),pi(()=>{const e=t.noticiaArquivo[0];"imagem"===(null==e?void 0:e.tipo)&&((new Image).src=n+t.pasta+e.arquivo)}),(t,s)=>e.noticiaArquivo.length>0?(Xa(),is("div",wQ,[cs("figure",DQ,[ds(an(sY),{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=e=>i.value=e),"items-to-show":1,"wrap-around":!1,transition:500,"touch-drag":!0,"mouse-drag":!0,class:"w-full carousel"},{addons:zn(t=>{var n;return[cs("div",xQ,[(Xa(),is("div",{key:t.currentSlide,class:"galeria__item-legenda"},we(null==(n=e.noticiaArquivo[t.currentSlide])?void 0:n.legenda),1))]),ds(an(pY))]}),default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.noticiaArquivo,(t,a)=>(Xa(),as(an(fY),{key:a,class:"carousel__item"},{default:zn(()=>{return[cs("div",EQ,["imagem"===t.tipo?(Xa(),is("img",{key:0,class:"object-contain",src:(s=a,s===i.value||s===i.value+1||s===i.value-1?an(n)+e.pasta+t.arquivo:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="),alt:r(a),decoding:"async"},null,8,kQ)):a===i.value?(Xa(),is("iframe",{key:1,src:t.arquivo,frameborder:"0",allow:"autoplay; encrypted-media",allowfullscreen:""},null,8,SQ)):ms("",!0)])];var s}),_:2},1024))),128))]),_:1},8,["modelValue"]),ds(an(sY),{id:"thumbnails",modelValue:i.value,"onUpdate:modelValue":s[1]||(s[1]=e=>i.value=e),class:"galeria__item-preview","items-to-show":e.noticiaArquivo.length<=5?e.noticiaArquivo.length:5,"wrap-around":!1,"touch-drag":!0,"mouse-drag":!0,"show-arrows":!1},{default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.noticiaArquivo,(e,t)=>(Xa(),as(an(fY),{key:t,class:"preview-slide",onClick:e=>{return n=t,void(i.value=n);var n}},{default:zn(()=>[cs("div",TQ,[cs("img",{src:a(e),class:"galeria-preview__img",alt:r(t)},null,8,OQ)])]),_:2},1032,["onClick"]))),128))]),_:1},8,["modelValue","items-to-show"]),cs("figcaption",AQ,we(e.legenda),1)])])):ms("",!0)}},PQ=Object.freeze(Object.defineProperty({__proto__:null,default:IQ},Symbol.toStringTag,{value:"Module"})),NQ={class:"w-full"},RQ={class:"galeria__item"},MQ=["src","alt"],FQ=["src"],LQ={class:"flex justify-center"},jQ=["src","alt"],HQ={class:"galeria__legenda"},UQ={__name:"NoticiaGaleria",props:{noticiaArquivo:{type:Array,required:!0},pasta:{type:String,required:!0},legenda:{type:String,required:!1,default:null},titulo:{type:String,required:!1,default:""}},setup(e){const t=e,n=en(null),r="https://portal-arquivos.engeplus.c
46om.br/",i=e=>{var n;const r=null==(n=t.noticiaArquivo[e])?void 0:n.alt;return r||(t.titulo?`${t.titulo} - ${e+1}`:`Imagem ${e+1} da galeria`)},a=en(0),s=Ys(()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1);function o(e){return"imagem"===e.tipo?r+t.pasta+e.arquivo:function(e){const{id:t}=bQ(e);return`https://i.ytimg.com/vi/${t}/hqdefault.jpg`}(e.arquivo)}return pi(()=>{n.value&&n.value.addEventListener("touchstart",()=>{},{passive:!1})}),(t,l)=>s.value?(Xa(),as(IQ,{key:0,"noticia-arquivo":e.noticiaArquivo,legenda:e.legenda,pasta:e.pasta,titulo:e.titulo},null,8,["noticia-arquivo","legenda","pasta","titulo"])):e.noticiaArquivo.length>0?(Xa(),is("div",{key:1,ref_key:"galeriaContainer",ref:n,class:"w-full galeria__container overflow-hidden"},[cs("figure",NQ,[ds(an(sY),{modelValue:a.value,"onUpdate:modelValue":l[2]||(l[2]=e=>a.value=e),"items-to-show":1,transition:500,"snap-align":"center",class:"w-full carousel","wrap-around":!1},{addons:zn(t=>[cs("div",LQ,[(Xa(),is("div",{key:t.currentSlide,ref:"caption",class:"galeria__item-legenda"},we(e.noticiaArquivo[t.currentSlide].legenda),1))]),ds(an(pY))]),default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.noticiaArquivo,(t,n,a,s)=>{const o=[e.noticiaArquivo];if(s&&s.el&&s.key===n&&qs(s,o))return s;const l=(Xa(),as(an(fY),{key:n,class:"carousel__slide carousel__item"},{default:zn(()=>[cs("figure",null,[cs("div",RQ,["imagem"===t.tipo?(Xa(),is("img",{key:0,class:"object-contain",src:an(r)+e.pasta+t.arquivo,alt:i(n)},null,8,MQ)):(Xa(),is("iframe",{key:1,src:t.arquivo,width:"100%",height:"100%",frameborder:"0",allow:"autoplay; encrypted-media",allowfullscreen:""},null,8,FQ))])])]),_:2},1024));return l.memo=o,l},l,0),128))]),_:1},8,["modelValue"]),ds(an(sY),{id:"thumbnails",modelValue:a.value,"onUpdate:modelValue":l[5]||(l[5]=e=>a.value=e),class:"galeria__item-preview","items-to-show":e.noticiaArquivo.length<=5?e.noticiaArquivo.length:5,"wrap-around":!1},{default:zn(()=>[(Xa(!0),is(Wa,null,Ti(e.noticiaArquivo,(t,n,r,s)=>{const l=[e.noticiaArquivo];if(s&&s.el&&s.key===n&&qs(s,l))return s;const u=(Xa(),as(an(fY),{key:n,class:"preview-slide",onClick:e=>{return t=n,void(a.value=t);var t}},{default:zn(()=>[cs("img",{src:o(t),class:"galeria-preview__img",alt:i(n),style:{height:"inherit"}},null,8,jQ)]),_:2},1032,["onClick"]));return u.memo=l,u},l,3),128))]),_:1},8,["modelValue","items-to-show"]),cs("figcaption",HQ,we(e.legenda),1)])],512)):ms("",!0)}},GQ=Object.freeze(Object.defineProperty({__proto__:null,default:UQ},Symbol.toStringTag,{value:"Module"})),YQ={class:"flex items-center my-4 w-full"},VQ={class:"mx-3 text-sm text-gray-500"},qQ=Ir({__name:"NoticiaDivisor",props:{texto:{}},setup:e=>(t,n)=>(Xa(),is("div",YQ,[n[0]||(n[0]=cs("div",{class:"flex-1 border-t border-gray-300"},null,-1)),cs("span",VQ,we(e.texto),1),n[1]||(n[1]=cs("div",{class:"flex-1 border-t border-gray-300"},null,-1))]))}),$Q=Object.freeze(Object.defineProperty({__proto__:null,default:qQ},Symbol.toStringTag,{value:"Module"})),WQ=["href"],zQ=["src"],JQ=Ob(Ir({__name:"CardBannerMedio",props:{data:{}},setup(e){const t=e,n=en(0),r=en(t.data[t.data.length*Math.random()|0]),i=en(""),a=en(0),{incrementAcesso:s,visibilityChanged:o,getMultipleImages:l}=lU(),u=()=>{let e=l(r.value);n.value+1>=e.length?(a.value=a.value+1<t.data.length?a.value+1:0,r.value=t.data[a.value],o(!0,r.value.id),e=l(r.value),n.value=0):n.value=n.value+1,i.value=e[n.value].arquivo,setTimeout(u,1e3*r.value.tempo_troca_imagem)};return pi(()=>{if(r.value){const e=l(r.value);i.value=e[n.value].arquivo,o(!0,r.value.id),setTimeout(u,1e3*r.value.tempo_troca_imagem)}}),(e,t)=>{const n=ki("observe-visibility");return Jn((Xa(),is("a",{href:r.value.link,target:"_blank",class:"img-container order-3 mx-auto max-w-7xl flex-shrink-0 sm:order-2 sm:mt-0 sm:w-auto h-[200px] bg-white dark:bg-gray-900",fetchpriority:"high",alt:"img-banner",onClick:t[0]||(t[0]=e=>an(s)(r.value.id))},[cs("img",{id:"img-banner",class:"w-full h-52",src:i.value,loading:"lazy"},null,8,zQ)],8,WQ)),[[n,{callback:e=>an(o)(e,r.value.id),once:!0,throttle:300}]])}}}),[["__scopeId","data-v-d8cb092d"]]),KQ={class:"py-5"},QQ=Ir({__name:"NoticiaBanner",props:{data:{},divisor:{type:Boolean,default:!1}},setup:e=>(t,n)=>(Xa(),is("div",KQ,[e.divisor?(Xa(),as(qQ,{key:0,texto:"Continua após anúncio"})):ms("",!0),ds(JQ,{data:e.data},null,8,["data"]),e.divisor?(Xa(),as(qQ,{key:1,texto:"Fim do anúncio"})):ms("",!0)]))}),ZQ=Object.freeze(Object.defineProperty({__proto__:null,default:QQ},Symbol.toStringTag,{value:"Module"})),XQ={class:"w-full rounded-2xl bg-gray-200 dark:bg-gray-800 flex justify-center items-center py-2 my-6 space-x-5 mobile:space-x-3 px-3"},eZ=["href"],tZ=Ob(Ir({__name:"NoticiaBannerWhatsapp",setup(e){const{link:t}=zk(),n=t("whatsapp")??"https://chat.whatsapp.com/E9Wm0OFErGu9o0GQtDlkbS";return(e,t)=>(Xa(),is("div",XQ,[t[0]||(t[0]=cs("p",{class:"desktop-text"}," Está gostando da matéria? Receba mais notícias como esta no seu WhatsApp! ",-1)),t[1]||(t[1]=cs("p",{class:"mobile-text"},[fs(" Receba mais notícias como esta no seu WhatsApp. "),cs("span",{class:"whatsapp__span"},"Participe do nosso grupo.")],-1)),cs("a",{href:an(n),target:"_blank",class:"whatsapp__button bg-green-500"},"Clique aqui",8,eZ)]))}}),[["__scopeId","data-v-06a88826"]]),nZ=Object.freeze(Object.defineProperty({__proto__:null,default:tZ},Symbol.toStringTag,{value:"Module"}));
47/*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */
48function rZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
49/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
50function iZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(c){u=!0,i=c}
vendor: 6,186 bytes, line 50
50finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rZ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rZ(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const aZ=Object.entries,sZ=Object.setPrototypeOf,oZ=Object.isFrozen,lZ=Object.getPrototypeOf,uZ=Object.getOwnPropertyDescriptor;let cZ=Object.freeze,dZ=Object.seal,hZ=Object.create,pZ="undefined"!=typeof Reflect&&Reflect,fZ=pZ.apply,BZ=pZ.construct;cZ||(cZ=function(e){return e}),dZ||(dZ=function(e){return e}),fZ||(fZ=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),BZ||(BZ=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const mZ=FZ(Array.prototype.forEach),gZ=FZ(Array.prototype.lastIndexOf),vZ=FZ(Array.prototype.pop),yZ=FZ(Array.prototype.push),CZ=FZ(Array.prototype.splice),_Z=Array.isArray,bZ=FZ(String.prototype.toLowerCase),wZ=FZ(String.prototype.toString),DZ=FZ(String.prototype.match),EZ=FZ(String.prototype.replace),kZ=FZ(String.prototype.indexOf),SZ=FZ(String.prototype.trim),xZ=FZ(Number.prototype.toString),TZ=FZ(Boolean.prototype.toString),OZ="undefined"==typeof BigInt?null:FZ(BigInt.prototype.toString),AZ="undefined"==typeof Symbol?null:FZ(Symbol.prototype.toString),IZ=FZ(Object.prototype.hasOwnProperty),PZ=FZ(Object.prototype.toString),NZ=FZ(RegExp.prototype.test),RZ=(MZ=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return BZ(MZ,t)});var MZ;function FZ(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return fZ(e,t,r)}}function LZ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bZ;if(sZ&&sZ(e,null),!_Z(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(oZ(t)||(t[r]=e),i=e)}e[i]=!0}return e}function jZ(e){for(let t=0;t<e.length;t++)IZ(e,t)||(e[t]=null);return e}function HZ(e){const t=hZ(null);for(const r of aZ(e)){var n=iZ(r,2);const i=n[0],a=n[1];IZ(e,i)&&(_Z(a)?t[i]=jZ(a):a&&"object"==typeof a&&a.constructor===Object?t[i]=HZ(a):t[i]=a)}return t}function UZ(e,t){for(;null!==e;){const n=uZ(e,t);if(n){if(n.get)return FZ(n.get);if("function"==typeof n.value)return FZ(n.value)}e=lZ(e)}return function(){return null}}const GZ=cZ(["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"]),YZ=cZ(["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"]),VZ=cZ(["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"]),qZ=cZ(["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"]),$Z=cZ(["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"]),WZ=cZ(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zZ=cZ(["#text"]),JZ=cZ(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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","
50spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),KZ=cZ(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),QZ=cZ(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),ZZ=cZ(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),XZ=dZ(/{{[\w\W]*|^[\w\W]*}}/g),eX=dZ(/<%[\w\W]*|^[\w\W]*%>/g),tX=dZ(/\${[\w\W]*/g),nX=dZ(/^data-[\-\w.\u00B7-\uFFFF]+$/),rX=dZ(/^aria-[\-\w]+$/),iX=dZ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aX=dZ(/^(?:\w+script|data):/i),sX=dZ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oX=dZ(/^html$/i),lX=dZ(/^[a-z][.\w]*(-[.\w]+)+$/i),uX=dZ(/<[/\w!]/g),cX=dZ(/<[/\w]/g),dX=dZ(/<\/no(script|embed|frames)/i),hX=dZ(/\/>/i),pX=1,fX=3,BX=7,mX=8,gX=9,vX=11,yX=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],CX=cZ(LZ({},yX)),_X=function(){const e={};return mZ(yX,t=>{e[t]=dZ(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),cZ(e)}(),bX=function(e,t,n,r){return IZ(e,t)&&_Z(e[t])?LZ(r.base?HZ(r.base):{},e[t],r.transform):n},wX=function(e,t,n){const r=IZ(e,t)?e[t]:void 0;return r&&"object"==typeof r?HZ(r):n()};var DX=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.16",n.removed=[],!t||!t.document||t.document.nodeType!==gX||!t.Element)return n.isSupported=!1,n;let r=t.document;const i=r,a=i.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,o=t.Node,l=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const c=t.DOMParser,d=t.trustedTypes,h=l.prototype,p=UZ(h,"cloneNode"),f=UZ(h,"remove"),B=UZ(h,"removeAttributeNode"),m=UZ(h,"nextSibling"),g=UZ(h,"childNodes"),v=UZ(h,"parentNode"),y=UZ(h,"shadowRoot"),C=UZ(h,"attributes"),_=o&&o.prototype?UZ(o.prototype,"nodeType"):null,b=o&&o.prototype?UZ(o.prototype,"nodeName"):null,w=o&&o.prototype?UZ(o.prototype,"ownerDocument"):null,D=function(e){return _?_(e):e.nodeType},E=function(e){return b?b(e):e.nodeName};if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let k,S,x="",T=!1,O=0;const A=function(){if(O>0)throw RZ('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},I=function(e){A(),O++;try{return k.createHTML(e)}finally{O--}},P=r,N=P.implementation,R=P.createNodeIterator,M=P.createDocumentFragment,F=P.getElementsByTagName,L=i.importNode;let j={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof aZ&&"function"==typeof v&&N&&void 0!==N.createHTMLDocument;const H=XZ,U=eX,G=tX,Y=nX,V=rX,q=aX,$=sX,W=lX;let z=iX,J=null;const K=LZ({},[...GZ,...YZ,...VZ,...$Z,...zZ]);let Q=null;const Z=LZ({},[...JZ,...KZ,...QZ,...ZZ]);
vendor: 4,633 bytes, line 50
50let X=Object.seal(hZ(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}})),ee=null,te=null;const ne=Object.seal(hZ(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,ie=!0,ae=!1,se=!0,oe=!1,le=!0,ue=!1,ce=!1,de=null,he=null,pe=!1,fe=!1,Be=!1,me=!1,ge=!0,ve=!1;const ye="user-content-";let Ce=!0,_e=!1,be={},we=null;const De=LZ({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ee=null;const ke=LZ({},["audio","video","img","source","image","track"]);let Se=null;const xe=LZ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Te="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let Ie=Ae,Pe=!1,Ne=null;const Re=LZ({},[Te,Oe,Ae],wZ),Me=cZ(["mi","mo","mn","ms","mtext"]);let Fe=LZ({},Me);const Le=cZ(["annotation-xml"]);let je=LZ({},Le);const He=LZ({},["title","style","font","a","script"]);let Ue=null;const Ge=["application/xhtml+xml","text/html"];let Ye=null,Ve=null;const qe=r.createElement("form"),$e=function(e){return e instanceof RegExp||e instanceof Function},We=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ve&&Ve===e)return;e&&"object"==typeof e||(e={}),e=HZ(e),Ue=-1===Ge.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ye="application/xhtml+xml"===Ue?wZ:bZ,J=bX(e,"ALLOWED_TAGS",K,{transform:Ye}),Q=bX(e,"ALLOWED_ATTR",Z,{transform:Ye}),Ne=bX(e,"ALLOWED_NAMESPACES",Re,{transform:wZ}),Se=bX(e,"ADD_URI_SAFE_ATTR",xe,{transform:Ye,base:xe}),Ee=bX(e,"ADD_DATA_URI_TAGS",ke,{transform:Ye,base:ke}),we=bX(e,"FORBID_CONTENTS",De,{transform:Ye}),ee=bX(e,"FORBID_TAGS",HZ({}),{transform:Ye}),te=bX(e,"FORBID_ATTR",HZ({}),{transform:Ye}),be=!!IZ(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?HZ(e.USE_PROFILES):e.USE_PROFILES),re=!1!==e.ALLOW_ARIA_ATTR,ie=!1!==e.ALLOW_DATA_ATTR,ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,oe=e.SAFE_FOR_TEMPLATES||!1,le=!1!==e.SAFE_FOR_XML,ue=e.WHOLE_DOCUMENT||!1,fe=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,me=e.RETURN_TRUSTED_TYPE||!1,pe=e.FORCE_BODY||!1,ge=!1!==e.SANITIZE_DOM,ve=e.SANITIZE_NAMED_PROPS||!1,Ce=!1!==e.KEEP_CONTENT,_e=e.IN_PLACE||!1,z=function(e){try{return NZ(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:iX,Ie="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Fe=wX(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>LZ({},Me)),je=wX(e,"HTML_INTEGRATION_POINTS",()=>LZ({},Le));const t=wX(e,"CUSTOM_ELEMENT_HANDLING",()=>hZ(null));if(X=hZ(null),IZ(t,"tagNameCheck")&&$e(t.tagNameCheck)&&(X.tagNameCheck=t.tagNameCheck),IZ(t,"attributeNameCheck")&&$e(t.attributeNameCheck)&&(X.attributeNameCheck=t.attributeNameCheck),IZ(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),dZ(X),oe&&(ie=!1),Be&&(fe=!0),be&&(J=LZ({},zZ),Q=hZ(null),!0===be.html&&(LZ(J,GZ),LZ(Q,JZ)),!0===be.svg&&(LZ(J,YZ),LZ(Q,KZ),LZ(Q,ZZ)),!0===be.svgFilters&&(LZ(J,VZ),LZ(Q,KZ),LZ(Q,ZZ)),!0===be.mathMl&&(LZ(J,$Z),LZ(Q,QZ),LZ(Q,ZZ))),ne.tagCheck=null,ne.attributeCheck=null,IZ(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?ne.tagCheck=e.ADD_TAGS:_Z(e.ADD_TAGS)&&(J===K&&(J=HZ(J)),LZ(J,e.ADD_TAGS,Ye))),IZ(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?ne.attributeCheck=e.ADD_ATTR:_Z(e.ADD_ATTR)&&(Q===Z&&(Q=HZ(Q)),LZ(Q,e.ADD_ATTR,Ye))),IZ(e,"ADD_FORBID_CONTENTS")&&_Z(e.ADD_FORBID_CONTENTS)&&(we===De&&(we=HZ(we)),LZ(we,e.ADD_FORBID_CONTENTS,Ye)),Ce&&(J["#text"]=!0),ue&&LZ(J,["html","head","body"]),J.table&&(LZ(J,["tbody"]),delete ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw RZ('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw RZ('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=k;k=e.TRUSTED_TYPES_POLICY;try{x=I("")}catch(n){throw k=t,n}}else null===e.TRUSTED_TYPES_POLICY?(k=void 0,x=""):(void 0===k&&(T||(S=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;
vendor: 1,291 bytes, line 50
50const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(a){return null}}(d,a),T=!0),k=S),k&&"string"==typeof x&&(x=I("")));cZ&&cZ(e),Ve=e},ze=LZ({},[...YZ,...VZ,...qZ]),Je=LZ({},[...$Z,...WZ]),Ke=function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ie,tagName:"template"});const n=bZ(e.tagName),r=bZ(t.tagName);return!!Ne[e.namespaceURI]&&(e.namespaceURI===Oe?function(e,t,n){return t.namespaceURI===Ae?"svg"===e:t.namespaceURI===Te?"svg"===e&&("annotation-xml"===n||Fe[n]):Boolean(ze[e])}(n,t,r):e.namespaceURI===Te?function(e,t,n){return t.namespaceURI===Ae?"math"===e:t.namespaceURI===Oe?"math"===e&&je[n]:Boolean(Je[e])}(n,t,r):e.namespaceURI===Ae?function(e,t,n){return!(t.namespaceURI===Oe&&!je[n])&&!(t.namespaceURI===Te&&!Fe[n])&&!Je[e]&&(He[e]||!ze[e])}(n,t,r):!("application/xhtml+xml"!==Ue||!Ne[e.namespaceURI]))},Qe=function(e){yZ(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw RZ("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ze=function(e,t,n){try{B(e,t)}catch(r){try{e.removeAttribute(n)}catch(i){}}},Xe=function(e){nt(e);const t=g(e);
vendor: 9,287 bytes, line 50
50if(t){const e=[];mZ(t,t=>{yZ(e,t)}),mZ(e,e=>{try{f(e)}catch(t){}})}const n=C(e);if(n)for(let r=n.length-1;r>=0;--r){const t=n[r],i=t&&t.name;"string"==typeof i&&Ze(e,t,i)}},et=function(e,t,r){if(!r)try{r=t.getAttributeNode(e)}catch(i){r=null}yZ(n.removed,{attribute:r||null,from:t});try{r?B(t,r):t.removeAttribute(e)}catch(i){try{t.removeAttribute(e)}catch(a){}}if("is"===e)if(fe||Be)try{Qe(t)}catch(i){}else try{t.setAttribute(e,"")}catch(i){}},tt=function(e){const t=C(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],i=r&&r.name;"string"!=typeof i||Q[Ye(i)]||Ze(e,r,i)}},nt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();D(e)===pX&&tt(e);const n=g(e);if(n)for(let r=n.length-1;r>=0;--r)t.push(n[r])}},rt=function(e,t){return!!le&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},it=function(e){let t=null,n=null;if(pe)e="<remove></remove>"+e;else{const t=DZ(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ue&&Ie===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=k?I(e):e;if(Ie===Ae)try{t=(new c).parseFromString(i,Ue)}catch(s){}if(!t||!t.documentElement){t=N.createDocument(Ie,"template",null);try{t.documentElement.innerHTML=Pe?x:i}catch(s){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Ie===Ae?F.call(t,ue?"html":"body")[0]:ue?t.documentElement:a},at=function(e){const t=w?w(e):e.ownerDocument;return R.call(t||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},st=function(e){return e=EZ(e,H," "),e=EZ(e,U," "),e=EZ(e,G," ")},ot=function(e){var t;e.normalize();const n=w?w(e):e.ownerDocument,r=R.call(n||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let i=r.nextNode();for(;i;)i.data=st(i.data),i=r.nextNode();const a=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");a&&mZ(a,e=>{ut(e.content)&&ot(e.content)})},lt=function(e){const t=b?b(e):null;return"string"==typeof t&&"form"===Ye(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==C(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==g(e))},ut=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return _(e)===vX}catch(t){return!1}},ct=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return"number"==typeof _(e)}catch(t){return!1}};function dt(e,t,r){0!==e.length&&mZ(e,e=>{e.call(n,t,r,Ve)})}const ht=function(e,t){if(e instanceof RegExp)return NZ(e,t);if(e instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Boolean(e(t,...r))}return!1},pt=function(e,t,n,r){return 0===e.length?t:t===n||t===r?HZ(t):t},ft=function(e,t){return e!==t&&null===v(e)&&(_e&&nt(e),!0)},Bt=function(e,t){if(dt(j.beforeSanitizeElements,e,null),ft(e,t))return!0;if(lt(e))return Qe(e),!0;const r=Ye(E(e));if(J=pt(j.uponSanitizeElement,J,K,de),dt(j.uponSanitizeElement,e,{tagName:r,allowedTags:J}),ft(e,t))return!0;if(function(e,t){return!!(le&&e.hasChildNodes()&&!ct(e.firstElementChild)&&NZ(uX,e.textContent)&&NZ(uX,e.innerHTML))||!!(le&&e.namespaceURI===Ae&&CX[t]&&(ct(e.firstElementChild)||"string"==typeof e.textContent&&NZ(_X[t],e.textContent)))||e.nodeType===BX||!(!le||e.nodeType!==mX||!NZ(cX,e.data))}(e,r))return Qe(e),!0;if(ee[r]||!(ne.tagCheck instanceof Function&&ne.tagCheck(r))&&!J[r]){const n=function(e,t,n){if(!ee[t]&&vt(t)&&ht(X.tagNameCheck,t))return!1;if(Ce&&!we[t]){const t=v(e),r=g(e);if(r&&t)for(let i=r.length-1;i>=0;--i){const a=e===n?p(r[i],!0):r[i];t.insertBefore(a,m(e))}}return Qe(e),!0}(e,r,t);return!(!1!==n||(dt(j.afterSanitizeElements,e,null),!ft(e,t)))||n}if(D(e)===pX&&!Ke(e))return Qe(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&NZ(dX,e.innerHTML))return Qe(e),!0;if(oe&&e.nodeType===fX){const t=st(e.textContent);e.textContent!==t&&(yZ(n.removed,{element:e.cloneNode()}),e.textContent=t)}return dt(j.afterSanitizeElements,e,null),ft(e,t)},mt=function(e,t,n){if(te[t])return!1;if(rt(t,e))return!1;if(ge&&("id"===t||"name"===t)&&(n in r||n in qe))return!1;const i=Q[t]||ne.attributeCheck instanceof Function&&ne.attributeCheck(t,e);return!(!ie||!NZ(Y,t))||!(!re||!NZ(V,t))||(i?!(!Se[t]&&!NZ(z,EZ(n,$,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==kZ(n,"data:")||!Ee[e])&&(!ae||NZ(q,EZ(n,$,"")))&&n):vt(e)&&ht(X.tagNameCheck,e)&&ht(X.attributeNameCheck,t,e)||"is"===t&&X.allowCustomizedBuiltInElements&&ht(X.tagNameCheck,n))},gt=LZ({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vt=function(e){return!gt[bZ(e)]&&NZ(W,e)},yt=function(e,t,n,r){if(k&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!n)switch(d.getAttributeType(e,t)){case"TrustedHTML":return I(r);case"TrustedScriptURL":return function(e){A(),O++;try{return k.createScriptURL(e)}finally{O--}}(r)}return r},Ct=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!lt(e)||(Qe(e),!1)}catch(i){return et(t,e),!1}},_t=function(e,t){if(dt(j.beforeSanitizeAttributes,e,null),ft(e,t))return;const r=e.attributes;if(!r||lt(e))return;Q=pt(j.uponSanitizeAttribute,Q,Z,he);const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let a=r.length;const s=Ye(e.nodeName);for(;a--;){const t=r[a],o=t.name,l=t.namespaceURI,u=t.value,c=Ye(o),d=u;let h="value"===o?d:SZ(d),p=!1;i.attrName=c,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,dt(j.uponSanitizeAttribute,e,i),h=i.attrValue,!ve||"id"!==c&&"name"!==c||0===kZ(h,ye)||(et(o,e,t),h=ye+h,p=!0),le&&NZ(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===c&&DZ(h,"href")?et(o,e,t):i.forceKeepAttr||(!i.keepAttr||!se&&NZ(hX,h)?et(o,e,t):(oe&&(h=st(h)),mt(s,c,h)?(h=yt(s,c,l,h),h!==d&&Ct(e,o,l,h)&&p&&vZ(n.removed)):et(o,e,t)))}dt(j.afterSanitizeAttributes,e,null),ft(e,t)},bt=function(e){let t=null;const n=at(e);for(dt(j.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(dt(j.uponSanitizeShadowNode,t,null),Bt(t,e),_t(t,e),ut(t.content)&&bt(t.content),D(t)===pX){const e=y(t);ut(e)&&(wt(e),bt(e))}dt(j.afterSanitizeShadowDOM,e,null)},wt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){bt(e.shadow);continue}const n=e.node,r=D(n)===pX,i=g(n);if(i)for(let a=i.length-1;a>=0;--a)t.push({node:i[a],shadow:null});if(r){const e=b?b(n):null;if("string"==typeof e&&"template"===Ye(e)){const e=n.content;ut(e)&&t.push({node:e,shadow:null})}}if(r){const e=y(n);ut(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,o=null;if(Pe=!e,Pe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ct(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return xZ(e);case"boolean":return TZ(e);case"bigint":return OZ?OZ(e):"0";case"symbol":return AZ?AZ(e):"Symbol()";case"undefined":default:return PZ(e);case"function":case"object":{if(null===e)return PZ(e);const t=e,n=UZ(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:PZ(e)}return PZ(e)}}}(e)))throw RZ("dirty is not a string, aborting");if(!n.isSupported)return e;ce?(J=de,Q=he):We(t),(j.uponSanitizeElement.length>0||j.uponSanitizeAttribute.length>0)&&(J=HZ(J)),j.uponSanitizeAttribute.length>0&&(Q=HZ(Q)),n.removed=[];const l=_e&&"string"!=typeof e&&ct(e);if(l){!function(e){if(!le)return;const t=[e];for(;t.length>0;){const e=t.pop(),r=D(e);if(r===BX||r===mX&&NZ(cX,e.data)){try{f(e)}catch(n){}continue}if(r===pX){const t=e,r=Ye(E(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&rt("for",r)&&t.removeAttribute("for")}catch(n){}}const i=g(e);if(i)for(let n=i.length-1;n>=0;--n)t.push(i[n])}}(e);const t=E(e);if("string"==typeof t){const n=Ye(t);if(!J[n]||ee[n])throw Xe(e),RZ("root node is forbidden and cannot be sanitized in-place")}if(lt(e))throw Xe(e),RZ("root node is clobbered and cannot be sanitized in-place");try{wt(e)}catch(d){throw Xe(e),d}}else if(ct(e))r=it("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===pX&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),wt(r);else{if(!fe&&!oe&&!ue&&-1===e.indexOf("<"))return k&&me?I(e):e;if(r=it(e),!r)return fe?null:me?x:""}r&&pe&&Qe(r.firstChild);const u=l?e:r;try{const e=at(u);for(;s=e.nextNode();)Bt(s,u),_t(s,u),ut(s.content)&&bt(s.content)}catch(d){throw l&&(Xe(e),mZ(n.removed,e=>{e.element&&nt(e.element)})),d}if(l){let t=!1;if(mZ(n.removed,n=>{n.element&&(n.element===e&&(t=!0),nt(n.element))}),t)throw RZ("a node selected for removal could not be safely returned; refusing to sanitize in place");return oe&&ot(e),e}if(fe){if(oe&&ot(r),Be)for(o=M.call(r.ownerDocument);r.firstChild;)o.appendChild(r.firstChild);else o=r;return(Q.shadowroot||Q.shadowrootmode)&&(o=L.call(i,o,!0)),o}let c=ue?r.outerHTML:r.innerHTML;
50return ue&&J["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&NZ(oX,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),oe&&(c=st(c)),k&&me?I(c):c},n.setConfig=function(){We(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ce=!0,de=J,he=Q},n.clearConfig=function(){Ve=null,ce=!1,de=null,he=null,k=S,x=""},n.isValidAttribute=function(e,t,n){Ve||We({});const r=Ye(e),i=Ye(t);return mt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&IZ(j,e)&&yZ(j[e],t)},n.removeHook=function(e,t){if(IZ(j,e)){if(void 0!==t){const n=gZ(j[e],t);return-1===n?void 0:CZ(j[e],n,1)[0]}return vZ(j[e])}},n.removeHooks=function(e){IZ(j,e)&&(j[e]=[])},n.removeAllHooks=function(){j={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const EX=Ir({__name:"NoticiaConteudo",props:{noticia:{},anuncios:{default:void 0}},setup(e){const t=e,n=en(null);let r=en();const i=e=>{var t;let n=e.texto.replace("%galeria%",'<NoticiaGaleria :noticia-arquivo="arquivos" :legenda="legenda" :pasta="pasta" :titulo="titulo"></NoticiaGaleria>');return!e.texto.includes("%galeria%")&&(null==(t=e.noticia_arquivo)?void 0:t.length)>0&&"119"!=e.categoria.id&&(n=e.texto,n+='<NoticiaGaleria :noticia-arquivo="arquivos" :legenda="legenda" :pasta="pasta" :titulo="titulo"></NoticiaGaleria>'),n},a=async()=>{await Rn(),n.value&&(bN.isDark?dQ(n.value):n.value.querySelectorAll(aQ).forEach(cQ))};return pi(a),rr(()=>bN.isDark,a),hi(()=>{r.value=(()=>{if(!t.noticia.texto)return;let e=i(t.noticia);t.anuncios&&t.anuncios.length>0&&(e=((e,t,n)=>{let r=0,i=!1,a=0,s=!1;const o=/<\/p>/g,l=/<figure[^>]*>/g,u=/<blockquote[^>]*>/g,c=/<\/blockquote>/g;let d,h=-1;for(;null!==(d=l.exec(e));)(-1===h||d.index<h)&&(h=d.index);const p=t=>{const n=e.slice(a,t);u.test(n)&&(i=!0),c.test(n)&&(i=!1)},f=t=>{for(;null!==(d=o.exec(e))&&(p(d.index),i||(r++,a=d.index+d[0].length,-1!==h&&d.index>h&&(s=!0),r!==t)););};return f(n),s&&f(r+3),e.slice(0,a)+t+e.slice(a)})(e,'<NoticiaBanner :data="anunciosBanner" :divisor="true"></NoticiaBanner>',3)),e=e.replace('<div data-macro-id="whatsapp-banner"></div>',"<NoticiaBannerWhatsapp></NoticiaBannerWhatsapp>");const n=e.replace(/\\/g,"").replace(/> </g,">&nbsp;<");return Vs({template:DX.sanitize(n,{USE_PROFILES:{html:!0},ADD_TAGS:["NoticiaGaleria","NoticiaBanner","iframe","NoticiaBannerWhatsapp"],ADD_ATTR:[":noticia-arquivo",":legenda",":pasta",":titulo",":data",":divisor","src","width","height","frameborder","allow","allowfullscreen"]}),components:{noticiagaleria:UQ,noticiabanner:QQ,noticiabannerwhatsapp:tZ},setup(){const e=en(t.noticia.noticia_arquivo),n=en(t.noticia.galeria_legenda),r=en(t.noticia.titulo),i=en(t.noticia.pasta),a=en(t.anuncios),s=window;return pi(()=>{s.instgrm&&s.instgrm.Embeds&&s.instgrm.Embeds.process()}),{arquivos:e,legenda:n,pasta:i,titulo:r,anunciosBanner:a}}})})()}),(t,i)=>(Xa(),is("div",{ref_key:"corpo",ref:n},[e.noticia.texto?(Xa(),as(Ei(an(r)),{key:0,class:"dark:text-gray-200"})):ms("",!0)],512))}}),kX=Object.freeze(Object.defineProperty({__proto__:null,default:EX},Symbol.toStringTag,{value:"Module"})),SX=6048e5,xX=Symbol.for("constructDateFrom");function TX(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&xX in e?e[xX](t):e instanceof Date?new e.constructor(t):new Date(t)}function OX(e,t){return TX(t||e,e)}let AX={};function IX(){return AX}function PX(e,t){var n,r,i,a;const s=IX(),o=(null==t?void 0:t.weekStartsOn)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.weekStartsOn)??s.weekStartsOn??(null==(a=null==(i=s.locale)?void 0:i.options)?void 0:a.weekStartsOn)??0,l=OX(e,null==t?void 0:t.in),u=l.getDay(),c=(u<o?7:0)+u-o;return l.setDate(l.getDate()-c),l.setHours(0,0,0,0),l}function NX(e,t){return PX(e,{...t,weekStartsOn:1})}function RX(e,t){const n=OX(e,null==t?void 0:t.in),r=n.getFullYear(),i=TX(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=NX(i),s=TX(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const o=NX(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function MX(e){const t=OX(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function FX(e,t){const n=OX(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function LX(e,t,n){const[r,i]=function(e,...t){const n=TX.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}(null==n?void 0:n.in,e,t),a=FX(r),s=FX(i),o=+a-MX(a),l=+s-MX(s);return Math.round((o-l)/864e5)}function jX(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+OX(e)));var t}const HX={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"}};function UX(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const GX={date:UX({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UX({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:UX({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},YX={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function VX(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const qX={ordinalNumber:(e,t)=>{const n=Number(e),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:VX({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:VX({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:VX({values:{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"]},defaultWidth:"wide"}),day:VX({values:{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","Frid
50ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:VX({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function $X(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(o,e=>e.test(s)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(o,e=>e.test(s));let u;return u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u,{value:u,rest:t.slice(s.length)}}}const WX={ordinalNumber:function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];return s=n.valueCallback?n.valueCallback(s):s,{value:s,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$X({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:$X({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:$X({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:$X({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:$X({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},zX={code:"en-US",formatDistance:(e,t,n)=>{let r;const i=HX[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),(null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:GX,formatRelative:(e,t,n,r)=>YX[e],localize:qX,match:WX,options:{weekStartsOn:0,firstWeekContainsDate:1}};function JX(e,t){const n=OX(e,null==t?void 0:t.in),r=LX(n,function(e,t){const n=OX(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n));return r+1}function KX(e,t){const n=OX(e,null==t?void 0:t.in),r=+NX(n)-+function(e,t){const n=RX(e,t),r=TX((null==t?void 0:t.in)||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),NX(r)}(n);return Math.round(r/SX)+1}function QX(e,t){var n,r,i,a;const s=OX(e,null==t?void 0:t.in),o=s.getFullYear(),l=IX(),u=(null==t?void 0:t.firstWeekContainsDate)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??(null==(a=null==(i=l.locale)?void 0:i.options)?void 0:a.firstWeekContainsDate)??1,c=TX((null==t?void 0:t.in)||e,0);c.setFullYear(o+1,0,u),c.setHours(0,0,0,0);const d=PX(c,t),h=TX((null==t?void 0:t.in)||e,0);h.setFullYear(o,0,u),h.setHours(0,0,0,0);const p=PX(h,t);return+s>=+d?o+1:+s>=+p?o:o-1}function ZX(e,t){const n=OX(e,null==t?void 0:t.in),r=+PX(n,t)-+function(e,t){var n,r,i,a;const s=IX(),o=(null==t?void 0:t.firstWeekContainsDate)??(null==(r=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??(null==(a=null==(i=s.locale)?void 0:i.options)?void 0:a.firstWeekContainsDate)??1,l=QX(e,t),u=TX((null==t?void 0:t.in)||e,0);return u.setFullYear(l,0,o),u.setHours(0,0,0,0),PX(u,t)}(n,t);return Math.round(r/SX)+1}function XX(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const e0={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return XX("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):XX(n+1,2)},d:(e,t)=>XX(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
vendor: 4,851 bytes, line 50
50default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>XX(e.getHours()%12||12,t.length),H:(e,t)=>XX(e.getHours(),t.length),m:(e,t)=>XX(e.getMinutes(),t.length),s:(e,t)=>XX(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return XX(Math.trunc(r*Math.pow(10,n-3)),t.length)}},t0="midnight",n0="noon",r0="morning",i0="afternoon",a0="evening",s0="night",o0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){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(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return e0.y(e,t)},Y:function(e,t,n,r){const i=QX(e,r),a=i>0?i:1-i;return"YY"===t?XX(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):XX(a,t.length)},R:function(e,t){return XX(RX(e),t.length)},u:function(e,t){return XX(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return XX(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(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return XX(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(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return e0.M(e,t);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(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return XX(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(e,t,n,r){const i=ZX(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):XX(i,t.length)},I:function(e,t,n){const r=KX(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):XX(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):e0.d(e,t)},D:function(e,t,n){const r=JX(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):XX(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){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(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return XX(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return XX(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return XX(i,t.length);case"io":return n.ordinalNumber(i,{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(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?n0:0===r?t0:r/12>
50=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?a0:r>=12?i0:r>=4?r0:s0,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return e0.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):e0.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):XX(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):XX(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):e0.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):e0.s(e,t)},S:function(e,t){return e0.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return u0(r);case"XXXX":case"XX":return c0(r);default:return c0(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return u0(r);case"xxxx":case"xx":return c0(r);default:return c0(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+l0(r,":");default:return"GMT"+c0(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+l0(r,":");default:return"GMT"+c0(r,":")}},t:function(e,t,n){return XX(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return XX(+e,t.length)}};function l0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+XX(a,2)}function u0(e,t){return e%60==0?(e>0?"-":"+")+XX(Math.abs(e)/60,2):c0(e,t)}function c0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+XX(Math.trunc(r/60),2)+t+XX(r%60,2)}const d0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},h0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},p0={p:h0,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return d0(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",d0(r,t)).replace("{{time}}",h0(i,t))}},f0=/^D+$/,B0=/^Y+$/,m0=["D","DD","YY","YYYY"],g0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y0=/^'([^]*?)'?$/,C0=/''/g,_0=/[a-zA-Z]/;function b0(e,t,n){var r,i,a,s,o,l,u,c;const d=IX(),h=(null==n?void 0:n.locale)??d.locale??zX,p=(null==n?void 0:n.firstWeekContainsDate)??(null==(i=null==(r=null==n?void 0:n.locale)?void 0:r.options)?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??(null==(s=null==(a=d.locale)?void 0:a.options)?void 0:s.firstWeekContainsDate)??1,f=(null==n?void 0:n.weekStartsOn)??(null==(l=null==(o=null==n?void 0:n.locale)?void 0:o.options)?void 0:l.weekStartsOn)??d.weekStartsOn??(null==(c=null==(u=d.locale)?void 0:u.options)?void 0:c.weekStartsOn)??0,B=OX(e,null==n?void 0:n.in);if(!jX(B))throw new RangeError("Invalid time value");let m=t.match(v0).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,p0[t])(e,h.formatLong):e}).join("").match(g0).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:w0(e)};if(o0[t])return{isToken:!0,value:e};
50if(t.match(_0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});h.localize.preprocessor&&(m=h.localize.preprocessor(B,m));const g={firstWeekContainsDate:p,weekStartsOn:f,locale:h};return m.map(r=>{if(!r.isToken)return r.value;const i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&function(e){return B0.test(e)}(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&function(e){return f0.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(m0.includes(e))throw new RangeError(r)}(i,t,String(e)),(0,o0[i[0]])(B,i,h.localize,g)}).join("")}function w0(e){const t=e.match(y0);return t?t[1].replace(C0,"'"):e}const D0={class:"data__container"},E0={class:"ml-4 text-[#0095d4] text-sm mobile:ml-2",style:{"font-family":"Open-Sans-Bold"}},k0={class:"conteudo__container"},S0={class:"mb-[15px] dark:text-gray-200"},x0=["innerHTML"],T0=["src"],O0={key:1,class:"player-container h-96 w-full p-4"},A0=["src"],I0=Ob(Ir({__name:"NoticiaTempoReal",props:{tempoReal:{},pasta:{}},setup(e){const t="https://portal-arquivos.engeplus.com.br/";return(n,r)=>(Xa(!0),is(Wa,null,Ti(e.tempoReal,n=>(Xa(),is("div",{key:n.id},[r[1]||(r[1]=cs("div",null,null,-1)),cs("div",D0,[r[0]||(r[0]=cs("span",{class:"marcador"},null,-1)),cs("span",E0,we(an(b0)(new Date(n.hora_cadastro),"dd/MM/yyyy 'às' HH'h'mm")),1)]),cs("div",k0,[cs("div",S0,[cs("div",{class:"pl-3 mt-3 mobile:pl-1 mobile:mt-[22px] mobile:mb-[18px] mobile:text-sm",style:{"font-family":"Open-Sans"},innerHTML:n.texto},null,8,x0),n.imagem?(Xa(),is("img",{key:0,src:an(t)+e.pasta+n.imagem,alt:"imagem da noticia em tempo real",class:"h-full mobile:h-60 w-full pl-1"},null,8,T0)):ms("",!0),n.video?(Xa(),is("div",O0,[cs("video",{src:an(t)+e.pasta+n.video,class:"h-full mobile:h-60 w-full",controls:""},null,8,A0)])):ms("",!0)])])]))),128))}}),[["__scopeId","data-v-6fc3846e"]]),P0=Object.freeze(Object.defineProperty({__proto__:null,default:I0},Symbol.toStringTag,{value:"Module"})),N0=!1,R0="${JSCORE_VERSION}",M0=function(e,t){if(!e)throw F0(t)},F0=function(e){return new Error("Firebase Database ("+R0+") INTERNAL ASSERT FAILED: "+e)},L0=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},j0={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],a=i+1<e.length,s=a?e[i+1]:0,o=i+2<e.length,l=o?e[i+2]:0,u=t>>2,c=(3&t)<<4|s>>4;let d=(15&s)<<2|l>>6,h=63&l;o||(h=64,a||(d=64)),r.push(n[u],n[c],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(L0(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){const a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{const a=e[n++],s=e[n++];
vendor: 1,115 bytes, line 50
50t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const s=i<e.length?n[e.charAt(i)]:64;++i;const o=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==a||null==s||null==o)throw new H0;const l=t<<2|a>>4;if(r.push(l),64!==s){const e=a<<4&240|s>>2;if(r.push(e),64!==o){const e=s<<6&192|o;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
50class H0 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const U0=function(e){const t=L0(e);return j0.encodeByteArray(t,!0)},G0=function(e){return U0(e).replace(/\./g,"")},Y0=function(e){try{return j0.decodeString(e,!0)}catch(zle){}return null};
51/**
52     * @license
53     * Copyright 2017 Google LLC
54     *
55     * Licensed under the Apache License, Version 2.0 (the "License");
56     * you may not use this file except in compliance with the License.
57     * You may obtain a copy of the License at
58     *
59     *   http://www.apache.org/licenses/LICENSE-2.0
60     *
61     * Unless required by applicable law or agreed to in writing, software
62     * distributed under the License is distributed on an "AS IS" BASIS,
63     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64     * See the License for the specific language governing permissions and
65     * limitations under the License.
66     */
67function V0(e){return q0(void 0,e)}function q0(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&$0(n)&&(e[n]=q0(e[n],t[n]));return e}function $0(e){return"__proto__"!==e}
68/**
69     * @license
70     * Copyright 2022 Google LLC
71     *
72     * Licensed under the Apache License, Version 2.0 (the "License");
73     * you may not use this file except in compliance with the License.
74     * You may obtain a copy of the License at
75     *
76     *   http://www.apache.org/licenses/LICENSE-2.0
77     *
78     * Unless required by applicable law or agreed to in writing, software
79     * distributed under the License is distributed on an "AS IS" BASIS,
80     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
81     * See the License for the specific language governing permissions and
82     * limitations under the License.
83     */
84/**
85     * @license
86     * Copyright 2022 Google LLC
87     *
88     * Licensed under the Apache License, Version 2.0 (the "License");
89     * you may not use this file except in compliance with the License.
90     * You may obtain a copy of the License at
91     *
92     *   http://www.apache.org/licenses/LICENSE-2.0
93     *
94     * Unless required by applicable law or agreed to in writing, software
95     * distributed under the License is distributed on an "AS IS" BASIS,
96     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
97     * See the License for the specific language governing permissions and
98     * limitations under the License.
99     */
100const W0=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,z0=()=>{try{return W0()||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e={}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(zle){return}const t=e&&Y0(e[1]);return t&&JSON.parse(t)})()}catch(zle){return}},J0=e=>{const t=(e=>{var t,n;return null==(n=null==(t=z0())?void 0:t.emulatorHosts)?void 0:n[e]})(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},K0=()=>{var e;return null==(e=z0())?void 0:e.config};
101/**
102     * @license
103     * Copyright 2017 Google LLC
104     *
105     * Licensed under the Apache License, Version 2.0 (the "License");
106     * you may not use this file except in compliance with the License.
107     * You may obtain a copy of the License at
108     *
109     *   http://www.apache.org/licenses/LICENSE-2.0
110     *
111     * Unless required by applicable law or agreed to in writing, software
112     * distributed under the License is distributed on an "AS IS" BASIS,
113     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114     * See the License for the specific language governing permissions and
115     * limitations under the License.
116     */
117class Q0{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>
117{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}
118/**
119     * @license
120     * Copyright 2021 Google LLC
121     *
122     * Licensed under the Apache License, Version 2.0 (the "License");
123     * you may not use this file except in compliance with the License.
124     * You may obtain a copy of the License at
125     *
126     *   http://www.apache.org/licenses/LICENSE-2.0
127     *
128     * Unless required by applicable law or agreed to in writing, software
129     * distributed under the License is distributed on an "AS IS" BASIS,
130     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131     * See the License for the specific language governing permissions and
132     * limitations under the License.
133     */
134/**
135     * @license
136     * Copyright 2017 Google LLC
137     *
138     * Licensed under the Apache License, Version 2.0 (the "License");
139     * you may not use this file except in compliance with the License.
140     * You may obtain a copy of the License at
141     *
142     *   http://www.apache.org/licenses/LICENSE-2.0
143     *
144     * Unless required by applicable law or agreed to in writing, software
145     * distributed under the License is distributed on an "AS IS" BASIS,
146     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
147     * See the License for the specific language governing permissions and
148     * limitations under the License.
149     */
150function Z0(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function X0(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Z0())}function e1(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function t1(){return!0===N0}function n1(){try{return"object"==typeof indexedDB}catch(zle){return!1}}class r1 extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,r1.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,i1.prototype.create)}}class i1{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?function(e,t){try{let n=0,r="";for(;n<e.length;){const i=e.indexOf("{$",n);if(-1===i){r+=e.substring(n);break}const a=e.indexOf("}",i+2);if(-1===a){r+=e.substring(n);break}const s=e.substring(i+2,a),o=t[s];r+=e.substring(n,i)+(null!=o?String(o):`<${s}?>`),n=a+1}return r}catch(zle){return e}}
151/**
152     * @license
153     * Copyright 2017 Google LLC
154     *
155     * Licensed under the Apache License, Version 2.0 (the "License");
156     * you may not use this file except in compliance with the License.
157     * You may obtain a copy of the License at
158     *
159     *   http://www.apache.org/licenses/LICENSE-2.0
160     *
161     * Unless required by applicable law or agreed to in writing, software
162     * distributed under the License is distributed on an "AS IS" BASIS,
163     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
164     * See the License for the specific language governing permissions and
165     * limitations under the License.
166     */(i,n):"Error",s=`${this.serviceName}: ${a} (${r}).`;return new r1(r,s,n)}}function a1(e){return JSON.parse(e)}function s1(e){return JSON.stringify(e)}
167/**
168     * @license
169     * Copyright 2017 Google LLC
170     *
171     * Licensed under the Apache License, Version 2.0 (the "License");
172     * you may not use this file except in compliance with the License.
173     * You may obtain a copy of the License at
174     *
175     *   http://www.apache.org/licenses/LICENSE-2.0
176     *
177     * Unless required by applicable law or agreed to in writing, software
178     * distributed under the License is distributed on an "AS IS" BASIS,
179     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
180     * See the License for the specific language governing permissions and
181     * limitations under the License.
182     */const o1=function(e){let t={},n={},r={},i="";try{const a=e.split(".");t=a1(Y0(a[0])||""),n=a1(Y0(a[1])||""),i=a[2],r=n.d||{},delete n.d}catch(zle){}return{header:t,claims:n,data:r,signature:i}};
183/**
184     * @license
185     * Copyright 2017 Google LLC
186     *
187     * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 4,860 bytes, lines 188-231
188     * you may not use this file except in compliance with the License.
189     * You may obtain a copy of the License at
190     *
191     *   http://www.apache.org/licenses/LICENSE-2.0
192     *
193     * Unless required by applicable law or agreed to in writing, software
194     * distributed under the License is distributed on an "AS IS" BASIS,
195     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
196     * See the License for the specific language governing permissions and
197     * limitations under the License.
198     */
199function l1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u1(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function c1(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function d1(e,t,n){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function h1(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],a=t[i];if(p1(n)&&p1(a)){if(!h1(n,a))return!1}else if(n!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function p1(e){return null!==e&&"object"==typeof e}
200/**
201     * @license
202     * Copyright 2017 Google LLC
203     *
204     * Licensed under the Apache License, Version 2.0 (the "License");
205     * you may not use this file except in compliance with the License.
206     * You may obtain a copy of the License at
207     *
208     *   http://www.apache.org/licenses/LICENSE-2.0
209     *
210     * Unless required by applicable law or agreed to in writing, software
211     * distributed under the License is distributed on an "AS IS" BASIS,
212     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213     * See the License for the specific language governing permissions and
214     * limitations under the License.
215     */function f1(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}
216/**
217     * @license
218     * Copyright 2017 Google LLC
219     *
220     * Licensed under the Apache License, Version 2.0 (the "License");
221     * you may not use this file except in compliance with the License.
222     * You may obtain a copy of the License at
223     *
224     *   http://www.apache.org/licenses/LICENSE-2.0
225     *
226     * Unless required by applicable law or agreed to in writing, software
227     * distributed under the License is distributed on an "AS IS" BASIS,
228     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
229     * See the License for the specific language governing permissions and
230     * limitations under the License.
231     */class B1{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(e,t){t||(t=0);const n=this.W_;if("string"==typeof e)for(let c=0;c<16;c++)n[c]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let c=0;c<16;c++)n[c]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let c=16;c<80;c++){const e=n[c-3]^n[c-8]^n[c-14]^n[c-16];n[c]=4294967295&(e<<1|e>>>31)}let r,i,a=this.chain_[0],s=this.chain_[1],o=this.chain_[2],l=this.chain_[3],u=this.chain_[4];for(let c=0;c<80;c++){c<40?c<20?(r=l^s&(o^l),i=1518500249):(r=s^o^l,i=1859775393):c<60?(r=s&o|l&(s|o),i=2400959708):(r=s^o^l,i=3395469782);const e=(a<<5|a>>>27)+r+u+i+n[c]&4294967295;u=l,l=o,o=4294967295&(s<<30|s>>>2),s=a,a=e}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+s&4294967295,this.chain_[2]=this.chain_[2]+o&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const n=t-this.blockSize;let r=0;const i=this.buf_;let a=this.inbuf_;for(;r<t;){if(0===a)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[a]=e.charCodeAt(r),++a,++r,a===this.blockSize){this.compress_(i),a=0;break}}else for(;r<t;)if(i[a]=e[r],++a,++r,a===this.blockSize){this.compress_(i),a=0;break}}this.inbuf_=a,this.total_+=t}digest(){const e=[];let t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let r=this.blockSize-1;r>=56;r--)this.buf_[r]=255&t,t/=256;this.compress_(this.buf_);let n=0;for(let r=0;r<5;r++)for(let t=24;t>=0;t-=8)e[n]=this.chain_[r]>>t&255,++n;return e}}class m1{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
231ise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!=typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=g1),void 0===r.error&&(r.error=g1),void 0===r.complete&&(r.complete=g1);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(zle){}}),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(zle){"undefined"!=typeof console&&console.error}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function g1(){}function v1(e,t){return`${e} failed: ${t} argument `}
232/**
233     * @license
234     * Copyright 2017 Google LLC
235     *
236     * Licensed under the Apache License, Version 2.0 (the "License");
237     * you may not use this file except in compliance with the License.
238     * You may obtain a copy of the License at
239     *
240     *   http://www.apache.org/licenses/LICENSE-2.0
241     *
242     * Unless required by applicable law or agreed to in writing, software
243     * distributed under the License is distributed on an "AS IS" BASIS,
244     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
245     * See the License for the specific language governing permissions and
246     * limitations under the License.
247     */const y1=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};
248/**
249     * @license
250     * Copyright 2021 Google LLC
251     *
252     * Licensed under the Apache License, Version 2.0 (the "License");
253     * you may not use this file except in compliance with the License.
254     * You may obtain a copy of the License at
255     *
256     *   http://www.apache.org/licenses/LICENSE-2.0
257     *
258     * Unless required by applicable law or agreed to in writing, software
259     * distributed under the License is distributed on an "AS IS" BASIS,
260     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
261     * See the License for the specific language governing permissions and
262     * limitations under the License.
263     */
264function C1(e){return e&&e._delegate?e._delegate:e}
265/**
266     * @license
267     * Copyright 2025 Google LLC
268     *
269     * Licensed under the Apache License, Version 2.0 (the "License");
270     * you may not use this file except in compliance with the License.
271     * You may obtain a copy of the License at
272     *
273     *   http://www.apache.org/licenses/LICENSE-2.0
274     *
275     * Unless required by applicable law or agreed to in writing, software
276     * distributed under the License is distributed on an "AS IS" BASIS,
277     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
278     * See the License for the specific language governing permissions and
279     * limitations under the License.
280     */function _1(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}class b1{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}
281/**
282     * @license
283     * Copyright 2019 Google LLC
284     *
285     * Licensed under the Apache License, Version 2.0 (the "License");
286     * you may not use this file except in compliance with the License.
287     * You may obtain a copy of the License at
288     *
289     *   http://www.apache.org/licenses/LICENSE-2.0
290     *
291     * Unless required by applicable law or agreed to in writing, software
292     * distributed under the License is distributed on an "AS IS" BASIS,
293     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
294     * See the License for the specific language governing permissions and
295     * limitations under the License.
296     */const w1="[DEFAULT]";
297/**
298     * @license
299     * Copyright 2019 Google LLC
300     *
301     * Licensed under the Apache License, Version 2.0 (the "License");
302     * you may not use this file except in compliance with the License.
303     * You may obtain a copy of the License at
304     *
305     *   http://www.apache.org/licenses/LICENSE-2.0
306     *
307     * Unless required by applicable law or agreed to in writing, software
308     * distributed under the License is distributed on an "AS IS" BASIS,
309     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
310     * See the License for the specific language governing permissions and
311     * limitations under the License.
312     */class D1{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new Q0;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(zle){}}return this.instancesDeferred.get(t).promise}getImmediate(e){const t=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=(null==e?void 0:e.optional)??!1;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(zle){if(n)return null;throw zle}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}
313/**
314     * @license
315     * Copyright 2019 Google LLC
316     *
317     * Licensed under the Apache License, Version 2.0 (the "License");
318     * you may not use this file except in compliance with the License.
319     * You may obtain a copy of the License at
320     *
321     *   http://www.apache.org/licenses/LICENSE-2.0
322     *
323     * Unless required by applicable law or agreed to in writing, software
324     * distributed under the License is distributed on an "AS IS" BASIS,
325     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
326     * See the License for the specific language governing permissions and
327     * limitations under the License.
328     */(e))try{this.getOrInitializeService({instanceIdentifier:w1})}catch(zle){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(zle){}}}}clearInstance(e=w1){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=w1){return this.instances.has(e)}getOptions(e=w1){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,a]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(i)&&a.resolve(r);return r}onInit(e,t){const n=this.normalizeInstanceIdentifier(t),r=this.onInitCallbacks.get(n)??new Set;r.add(e),this.onInitCallbacks.set(n,r);const i=this.instances.get(n);return i&&e(i,n),()=>{r.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===w1?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}var r;return n||null}normalizeInstanceIdentifier(e=w1){return this.component?this.component.multipleInstances?e:w1:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class E1{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new D1(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}
329/**
330     * @license
331     * Copyright 2017 Google LLC
332     *
333     * Licensed under the Apache License, Version 2.0 (the "License");
334     * you may not use this file except in compliance with the License.
335     * You may obtain a copy of the License at
336     *
337     *   http://www.apache.org/licenses/LICENSE-2.0
338     *
339     * Unless required by applicable law or agreed to in writing, software
340     * distributed under the License is distributed on an "AS IS" BASIS,
341     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
342     * See the License for the specific language governing permissions and
343     * limitations under the License.
344     */var k1,S1;(S1=k1||(k1={}))[S1.DEBUG=0]="DEBUG",S1[S1.VERBOSE=1]="VERBOSE",S1[S1.INFO=2]="INFO",S1[S1.WARN=3]="WARN",S1[S1.ERROR=4]="ERROR",S1[S1.SILENT=5]="SILENT";const x1={debug:k1.DEBUG,verbose:k1.VERBOSE,info:k1.INFO,warn:k1.WARN,error:k1.ERROR,silent:k1.SILENT},T1=k1.INFO,O1={[k1.DEBUG]:"log",[k1.VERBOSE]:"log",[k1.INFO]:"info",[k1.WARN]:"warn",[k1.ERROR]:"error"},A1=(e,t,...n)=>{if(!(t<e.logLevel||((new Date).toISOString(),O1[t])))throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class I1{constructor(e){this.name=e,this._logLevel=T1,this._logHandler=A1,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in k1))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?x1[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,k1.DEBUG,...e),this._logHandler(this,k1.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,k1.VERBOSE,...e),this._logHandler(this,k1.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,k1.INFO,...e),this._logHandler(this,k1.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,k1.WARN,...e),this._logHandler(this,k1.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,k1.ERROR,...e),this._logHandler(this,k1.ERROR,...e)}}let P1,N1;const R1=new WeakMap,M1=new WeakMap,F1=new WeakMap,L1=new WeakMap,j1=new WeakMap;let H1={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return M1.get(e);if("objectStoreNames"===t)return e.objectStoreNames||F1.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Y1(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function U1(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(N1||(N1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(V1(this),t),Y1(R1.get(this))}:function(...t){return Y1(e.apply(V1(this),t))}:function(t,...n){const r=e.call(V1(this),t,...n);return F1.set(r,t.sort?t.sort():[t]),Y1(r)}}function G1(e){return"function"==typeof e?U1(e):(e instanceof IDBTransaction&&function(e){if(M1.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)});M1.set(e,t)}(e),((e,t)=>t.some(t=>e instanceof t))(e,P1||(P1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,H1):e)}function Y1(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(Y1(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)});return t.then(t=>{t instanceof IDBCursor&&R1.set(t,e)}).catch(()=>{}),j1.set(t,e),t}(e);if(L1.has(e))return L1.get(e);const t=G1(e);return t!==e&&(L1.set(e,t),j1.set(t,e)),t}const V1=e=>j1.get(e),q1=["get","getKey","getAll","getAllKeys","count"],$1=["put","add","delete","clear"],W1=new Map;function z1(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(W1.get(t))return W1.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=$1.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!q1.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let s=a.store;
344return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&a.done]))[0]};return W1.set(t,a),a}!function(e){H1=e(H1)}(e=>({...e,get:(t,n,r)=>z1(t,n)||e.get(t,n,r),has:(t,n)=>!!z1(t,n)||e.has(t,n)}));
345/**
346     * @license
347     * Copyright 2019 Google LLC
348     *
349     * Licensed under the Apache License, Version 2.0 (the "License");
350     * you may not use this file except in compliance with the License.
351     * You may obtain a copy of the License at
352     *
353     *   http://www.apache.org/licenses/LICENSE-2.0
354     *
355     * Unless required by applicable law or agreed to in writing, software
356     * distributed under the License is distributed on an "AS IS" BASIS,
357     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
358     * See the License for the specific language governing permissions and
359     * limitations under the License.
360     */
361class J1{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(" ")}}const K1="@firebase/app",Q1="0.16.2",Z1=new I1("@firebase/app"),X1="@firebase/app-compat",e2="@firebase/analytics-compat",t2="@firebase/analytics",n2="@firebase/app-check-compat",r2="@firebase/app-check",i2="@firebase/auth",a2="@firebase/auth-compat",s2="@firebase/database",o2="@firebase/data-connect",l2="@firebase/database-compat",u2="@firebase/functions",c2="@firebase/functions-compat",d2="@firebase/installations",h2="@firebase/installations-compat",p2="@firebase/messaging",f2="@firebase/messaging-compat",B2="@firebase/performance",m2="@firebase/performance-compat",g2="@firebase/remote-config",v2="@firebase/remote-config-compat",y2="@firebase/storage",C2="@firebase/storage-compat",_2="@firebase/firestore",b2="@firebase/ai",w2="@firebase/firestore-compat",D2="firebase",E2="[DEFAULT]",k2={[K1]:"fire-core",[X1]:"fire-core-compat",[t2]:"fire-analytics",[e2]:"fire-analytics-compat",[r2]:"fire-app-check",[n2]:"fire-app-check-compat",[i2]:"fire-auth",[a2]:"fire-auth-compat",[s2]:"fire-rtdb",[o2]:"fire-data-connect",[l2]:"fire-rtdb-compat",[u2]:"fire-fn",[c2]:"fire-fn-compat",[d2]:"fire-iid",[h2]:"fire-iid-compat",[p2]:"fire-fcm",[f2]:"fire-fcm-compat",[B2]:"fire-perf",[m2]:"fire-perf-compat",[g2]:"fire-rc",[v2]:"fire-rc-compat",[y2]:"fire-g
361cs",[C2]:"fire-gcs-compat",[_2]:"fire-fst",[w2]:"fire-fst-compat",[b2]:"fire-vertex","fire-js":"fire-js",[D2]:"fire-js-all"},S2=new Map,x2=new Map,T2=new Map;function O2(e,t){try{e.container.addComponent(t)}catch(zle){Z1.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,zle)}}function A2(e){const t=e.name;if(T2.has(t))return Z1.debug(`There were multiple attempts to register component ${t}.`),!1;T2.set(t,e);for(const n of S2.values())O2(n,e);for(const n of x2.values())O2(n,e);return!0}function I2(e){return null!=e&&void 0!==e.settings}
362/**
363     * @license
364     * Copyright 2019 Google LLC
365     *
366     * Licensed under the Apache License, Version 2.0 (the "License");
367     * you may not use this file except in compliance with the License.
368     * You may obtain a copy of the License at
369     *
370     *   http://www.apache.org/licenses/LICENSE-2.0
371     *
372     * Unless required by applicable law or agreed to in writing, software
373     * distributed under the License is distributed on an "AS IS" BASIS,
374     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
375     * See the License for the specific language governing permissions and
376     * limitations under the License.
377     */const P2=new i1("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
377d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});
378/**
379     * @license
380     * Copyright 2019 Google LLC
381     *
382     * Licensed under the Apache License, Version 2.0 (the "License");
383     * you may not use this file except in compliance with the License.
384     * You may obtain a copy of the License at
385     *
386     *   http://www.apache.org/licenses/LICENSE-2.0
387     *
388     * Unless required by applicable law or agreed to in writing, software
389     * distributed under the License is distributed on an "AS IS" BASIS,
390     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
391     * See the License for the specific language governing permissions and
392     * limitations under the License.
393     */
394class N2{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new b1("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw P2.create("app-deleted",{appName:this._name})}}
395/**
396     * @license
397     * Copyright 2019 Google LLC
398     *
399     * Licensed under the Apache License, Version 2.0 (the "License");
400     * you may not use this file except in compliance with the License.
401     * You may obtain a copy of the License at
402     *
403     *   http://www.apache.org/licenses/LICENSE-2.0
404     *
405     * Unless required by applicable law or agreed to in writing, software
406     * distributed under the License is distributed on an "AS IS" BASIS,
407     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
408     * See the License for the specific language governing permissions and
409     * limitations under the License.
410     */const R2="12.19.0";function M2(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});const r={name:E2,automaticDataCollectionEnabled:!0,...t},i=r.name;if("string"!=typeof i||!i)throw P2.create("bad-app-name",{appName:String(i)});if(n||(n=K0()),!n)throw P2.create("no-options");const a=S2.get(i);if(a){if(h1(n,a.options)){if(h1(r,a.config))return a;throw P2.create("duplicate-app",{appName:i,mismatchedParam:"config",oldValue:JSON.stringify(a.config),newValue:JSON.stringify(r)})}throw P2.create("duplicate-app",{appName:i,mismatchedParam:"options",oldValue:JSON.stringify(a.options),newValue:JSON.stringify(n)})}const s=new E1(i);for(const l of T2.values())s.addComponent(l);const o=new N2(n,r,s);return S2.set(i,o),o}function F2(e,t,n){let r=k2[e]??e;n&&(r+=`-${n}`);const i=r.match(/\s|\//),a=t.match(/\s|\//);if(i||a){const e=[`Unable to register library "${r}" with version "${t}":`];return i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void Z1.warn(e.join(" "))}A2(new b1(`${r}-version`,()=>({library:r,version:t}),"VERSION"))}
411/**
412     * @license
413     * Copyright 2021 Google LLC
414     *
415     * Licensed under the Apache License, Version 2.0 (the "License");
416     * you may not use this file except in compliance with the License.
417     * You may obtain a copy of the License at
418     *
419     *   http://www.apache.org/licenses/LICENSE-2.0
420     *
421     * Unless required by applicable law or agreed to in writing, software
422     * distributed under the License is distributed on an "AS IS" BASIS,
423     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
424     * See the License for the specific language governing permissions and
425     * limitations under the License.
426     */const L2="firebase-heartbeat-store";let j2=null;function H2(){return j2||(j2=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const s=indexedDB.open(e,t),o=Y1(s);return r&&s.addEventListener("upgradeneeded",e=>{r(Y1(s.result),e.oldVersion,e.newVersion,Y1(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),o.then(e=>{a&&e.addEventListener("close",()=>a()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(L2)}catch(zle){}}}).catch(e=>{throw P2.create("idb-open",{originalErrorMessage:e.message})})),j2}async function U2(e,t){try{const n=(await H2()).transaction(L2,"readwrite"),r=n.objectStore(L2);await r.put(t,G2(e)),await n.done}catch(zle){if(zle instanceof r1)Z1.warn(zle.message);else{const t=P2.create("idb-set",{originalErrorMessage:null==zle?void 0:zle.message});Z1.warn(t.message)}}}function G2(e){return`${e.name}!${e.options.appId}`}
427/**
428     * @license
429     * Copyright 2021 Google LLC
430     *
431     * Licensed under the Apache License, Version 2.0 (the "License");
432     * you may not use this file except in compliance with the License.
433     * You may obtain a copy of the License at
434     *
435     *   http://www.apache.org/licenses/LICENSE-2.0
436     *
437     * Unless required by applicable law or agreed to in writing, software
438     * distributed under the License is distributed on an "AS IS" BASIS,
439     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
440     * See the License for the specific language governing permissions and
441     * limitations under the License.
442     */class Y2{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new q2(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=V2();if(null==(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null==(t=this._heartbeatsCache)?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(e=>e.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}
443/**
444     * @license
445     * Copyright 2019 Google LLC
446     *
447     * Licensed under the Apache License, Version 2.0 (the "License");
448     * you may not use this file except in compliance with the License.
449     * You may obtain a copy of the License at
450     *
451     *   http://www.apache.org/licenses/LICENSE-2.0
452     *
453     * Unless required by applicable law or agreed to in writing, software
454     * distributed under the License is distributed on an "AS IS" BASIS,
455     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
456     * See the License for the specific language governing permissions and
457     * limitations under the License.
458     */(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(zle){Z1.warn(zle)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=V2(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),$2(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),$2(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=G0(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(zle){return Z1.warn(zle),""}}}function V2(){return(new Date).toISOString().substring(0,10)}class q2{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!n1()&&new Promise((e,t)=>
458{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(n){t(n)}}).then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await H2()).transaction(L2),n=await t.objectStore(L2).get(G2(e));return await t.done,n}catch(zle){if(zle instanceof r1)Z1.warn(zle.message);else{const t=P2.create("idb-get",{originalErrorMessage:null==zle?void 0:zle.message});Z1.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return U2(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return U2(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function $2(e){return G0(JSON.stringify({version:2,heartbeats:e})).length}var W2;
459/**
460     * @license
461     * Copyright 2019 Google LLC
462     *
463     * Licensed under the Apache License, Version 2.0 (the "License");
464     * you may not use this file except in compliance with the License.
465     * You may obtain a copy of the License at
466     *
467     *   http://www.apache.org/licenses/LICENSE-2.0
468     *
469     * Unless required by applicable law or agreed to in writing, software
470     * distributed under the License is distributed on an "AS IS" BASIS,
471     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
472     * See the License for the specific language governing permissions and
473     * limitations under the License.
474     */W2="",A2(new b1("platform-logger",e=>new J1(e),"PRIVATE")),A2(new b1("heartbeat",e=>new Y2(e),"PRIVATE")),F2(K1,Q1,W2),F2(K1,Q1,"esm2020"),F2("fire-js","");const z2="@firebase/database",J2="1.1.5";
475/**
476     * @license
477     * Copyright 2019 Google LLC
478     *
479     * Licensed under the Apache License, Version 2.0 (the "License");
480     * you may not use this file except in compliance with the License.
481     * You may obtain a copy of the License at
482     *
483     *   http://www.apache.org/licenses/LICENSE-2.0
484     *
485     * Unless required by applicable law or agreed to in writing, software
486     * distributed under the License is distributed on an "AS IS" BASIS,
487     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
488     * See the License for the specific language governing permissions and
489     * limitations under the License.
490     */
491let K2="";
492/**
493     * @license
494     * Copyright 2017 Google LLC
495     *
496     * Licensed under the Apache License, Version 2.0 (the "License");
497     * you may not use this file except in compliance with the License.
498     * You may obtain a copy of the License at
499     *
500     *   http://www.apache.org/licenses/LICENSE-2.0
501     *
502     * Unless required by applicable law or agreed to in writing, software
503     * distributed under the License is distributed on an "AS IS" BASIS,
504     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
505     * See the License for the specific language governing permissions and
506     * limitations under the License.
507     */
508class Q2{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),s1(t))}get(e){const t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:a1(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}
509/**
510     * @license
511     * Copyright 2017 Google LLC
512     *
513     * Licensed under the Apache License, Version 2.0 (the "License");
514     * you may not use this file except in compliance with the License.
515     * You may obtain a copy of the License at
516     *
517     *   http://www.apache.org/licenses/LICENSE-2.0
518     *
519     * Unless required by applicable law or agreed to in writing, softw
vendor: 4,954 bytes, lines 519-545
519are
520     * distributed under the License is distributed on an "AS IS" BASIS,
521     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
522     * See the License for the specific language governing permissions and
523     * limitations under the License.
524     */class Z2{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}get(e){return l1(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}
525/**
526     * @license
527     * Copyright 2017 Google LLC
528     *
529     * Licensed under the Apache License, Version 2.0 (the "License");
530     * you may not use this file except in compliance with the License.
531     * You may obtain a copy of the License at
532     *
533     *   http://www.apache.org/licenses/LICENSE-2.0
534     *
535     * Unless required by applicable law or agreed to in writing, software
536     * distributed under the License is distributed on an "AS IS" BASIS,
537     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
538     * See the License for the specific language governing permissions and
539     * limitations under the License.
540     */const X2=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new Q2(t)}}catch(zle){}return new Z2},e4=X2("localStorage"),t4=X2("sessionStorage"),n4=new I1("@firebase/database"),r4=function(){let e=1;return function(){return e++}}(),i4=function(e){const t=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i>=55296&&i<=56319){const t=i-55296;r++,M0(r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(t<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}(e),n=new B1;n.update(t);const r=n.digest();return j0.encodeByteArray(r)},a4=function(...e){let t="";for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)||r&&"object"==typeof r&&"number"==typeof r.length?t+=a4.apply(null,r):t+="object"==typeof r?s1(r):r,t+=" "}return t};let s4=null,o4=!0;const l4=function(...e){var t,n;if(!0===o4&&(o4=!1,null===s4&&!0===t4.get("logging_enabled")&&(t=!0,M0(!n||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?(n4.logLevel=k1.VERBOSE,s4=n4.log.bind(n4),n&&t4.set("logging_enabled",!0)):"function"==typeof t?s4=t:(s4=null,t4.remove("logging_enabled")))),s4){const t=a4.apply(null,e);s4(t)}},u4=function(e){return function(...t){l4(e,...t)}},c4=function(...e){const t="FIREBASE INTERNAL ERROR: "+a4(...e);n4.error(t)},d4=function(...e){const t=`FIREBASE FATAL ERROR: ${a4(...e)}`;throw n4.error(t),new Error(t)},h4=function(...e){const t="FIREBASE WARNING: "+a4(...e);n4.warn(t)},p4=function(e){return"number"==typeof e&&(e!=e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},f4="[MIN_NAME]",B4="[MAX_NAME]",m4=function(e,t){if(e===t)return 0;if(e===f4||t===B4)return-1;if(t===f4||e===B4)return 1;{const n=D4(e),r=D4(t);return null!==n?null!==r?n-r===0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1}},g4=function(e,t){return e===t?0:e<t?-1:1},v4=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+s1(t))},y4=function(e){if("object"!=typeof e||null===e)return s1(e);const t=[];for(const r in e)t.push(r);t.sort();let n="{";for(let r=0;r<t.length;r++)0!==r&&(n+=","),n+=s1(t[r]),n+=":",n+=y4(e[t[r]]);return n+="}",n},C4=function(e,t){const n=e.length;if(n<=t)return[e];const r=[];for(let i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function _4(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const b4=function(e){M0(!p4(e),"Invalid JSON number");const t=1023;let n,r,i,a,s;0===e?(r=0,i=0,n=1/e==-1/0?1:0):(n=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(a=Math.min(Math.floor(Math.log(e)/Math.LN2),t),r=a+t,i=Math.round(e*Math.pow(2,52-a)-Math.pow(2,52))):(r=0,i=Math.round(e/Math.pow(2,-1074))));const o=[];for(s=52;s;s-=1)o.push(i%2?1:0),i=Math.floor(i/2);for(s=11;s;s-=1)o.push(r%2?1:0),r=Math.floor(r/2);o.push(n?1:0),o.reverse();const l=o.join("");let u="";for(s=0;s<64;s+=8){let e=parseInt(l.substr(s,8),2).toString(16);1===e.length&&(e="0"+e),u+=e}return u.toLowerCase()},w4=new RegExp("^-?(0*)\\d{1,10}$"),D4=function(e){if(w4.test(e)){const t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},E4=function(e){try{e()}catch(zle){setTimeout(()=>{const t=zle.stack||"";throw h4("Exception was thrown by user callback.",t),zle},Math.floor(0))}},k4=function(e,t){const n=setTimeout(e,t);return"number"==typeof n&&"undefined"!=typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(n):"object"==typeof n&&n.unref&&n.unref(),n};
541/**
542     * @license
543     * Copyright 2021 Google LLC
544     *
545     * Licensed under the Apache License, Version 2.0 (the "License");
546     * you may not use this file except in compliance with the License.
547     * You may obtain a copy of the License at
548     *
549     *   http://www.apache.org/licenses/LICENSE-2.0
550     *
551     * Unless required by applicable law or agreed to in writing, software
552     * distributed under the License is distributed on an "AS IS" BASIS,
553     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
554     * See the License for the specific language governing permissions and
555     * limitations under the License.
556     */
557class S4{constructor(e,t){this.appCheckProvider=t,this.appName=e.name,I2(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.appCheck=null==t?void 0:t.getImmediate({optional:!0}),this.appCheck||null==t||t.get().then(e=>this.appCheck=e)}getToken(e){if(this.serverAppAppCheckToken){if(e)throw new Error("Attempted reuse of `FirebaseServerApp.appCheckToken` after previous usage failed.");return Promise.resolve({token:this.serverAppAppCheckToken})}return this.appCheck?this.appCheck.getToken(e):new Promise((t,n)=>{setTimeout(()=>{this.appCheck?this.getToken(e).then(t,n):t(null)},0)})}addTokenChangeListener(e){var t;null==(t=this.appCheckProvider)||t.get().then(t=>t.addTokenListener(e))}notifyForInvalidToken(){h4(`Provided AppCheck credentials for the app named "${this.appName}" are invalid. This usually indicates your app was not initialized correctly.`)}}
558/**
559     * @license
560     * Copyright 2017 Google LLC
561     *
562     * Licensed under the Apache License, Version 2.0 (the "License");
563     * you may not use this file except in compliance with the License.
564     * You may obtain a copy of the License at
565     *
566     *   http://www.apache.org/licenses/LICENSE-2.0
567     *
568     * Unless required by applicable law or agreed to in writing, software
569     * distributed under the License is distributed on an "AS IS" BASIS,
570     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
571     * See the License for the specific language governing permissions and
572     * limitations under the License.
573     */class x4{constructor(e,t,n){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit(e=>this.auth_=e)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(e=>e&&"auth/token-not-initialized"===e.code?(l4("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)):new Promise((t,n)=>{setTimeout(()=>{this.auth_?this.getToken(e).then(t,n):t(null)},0)})}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(t=>t.addAuthTokenListener(e))}removeTokenChangeListener(e){this.authProvider_.get().then(t=>t.removeAuthTokenListener(e))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',h4(e)}}class T4{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}T4.OWNER="owner";
574/**
575     * @license
576     * Copyright 2017 Google LLC
577     *
578     * Licensed under the Apache License, Version 2.0 (the "License");
579     * you may not use this file except in compliance with the License.
580     * You may obtain a copy of the License at
581     *
582     *   http://www.apache.org/licenses/LICENSE-2.0
583     *
584     * Unless required by applicable law or agreed to in writing, softw
vendor: 4,201 bytes, lines 584-644
584are
585     * distributed under the License is distributed on an "AS IS" BASIS,
586     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
587     * See the License for the specific language governing permissions and
588     * limitations under the License.
589     */
590const O4=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,A4="ac",I4="websocket",P4="long_polling";
591/**
592     * @license
593     * Copyright 2017 Google LLC
594     *
595     * Licensed under the Apache License, Version 2.0 (the "License");
596     * you may not use this file except in compliance with the License.
597     * You may obtain a copy of the License at
598     *
599     *   http://www.apache.org/licenses/LICENSE-2.0
600     *
601     * Unless required by applicable law or agreed to in writing, software
602     * distributed under the License is distributed on an "AS IS" BASIS,
603     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
604     * See the License for the specific language governing permissions and
605     * limitations under the License.
606     */
607class N4{constructor(e,t,n,r,i=!1,a="",s=!1,o=!1,l=null){this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=a,this.includeNamespaceInQueryParams=s,this.isUsingEmulator=o,this.emulatorOptions=l,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=e4.get("host:"+e)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&e4.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:"";return`${e}${this.host}/${t}`}}function R4(e,t,n){let r;if(M0("string"==typeof t,"typeof type must == string"),M0("object"==typeof n,"typeof params must == object"),t===I4)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==P4)throw new Error("Unknown connection type: "+t);r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);const i=[];return _4(n,(e,t)=>{i.push(e+"="+t)}),r+i.join("&")}
608/**
609     * @license
610     * Copyright 2017 Google LLC
611     *
612     * Licensed under the Apache License, Version 2.0 (the "License");
613     * you may not use this file except in compliance with the License.
614     * You may obtain a copy of the License at
615     *
616     *   http://www.apache.org/licenses/LICENSE-2.0
617     *
618     * Unless required by applicable law or agreed to in writing, software
619     * distributed under the License is distributed on an "AS IS" BASIS,
620     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
621     * See the License for the specific language governing permissions and
622     * limitations under the License.
623     */class M4{constructor(){this.counters_={}}incrementCounter(e,t=1){l1(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return V0(this.counters_)}}
624/**
625     * @license
626     * Copyright 2017 Google LLC
627     *
628     * Licensed under the Apache License, Version 2.0 (the "License");
629     * you may not use this file except in compliance with the License.
630     * You may obtain a copy of the License at
631     *
632     *   http://www.apache.org/licenses/LICENSE-2.0
633     *
634     * Unless required by applicable law or agreed to in writing, software
635     * distributed under the License is distributed on an "AS IS" BASIS,
636     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
637     * See the License for the specific language governing permissions and
638     * limitations under the License.
639     */const F4={},L4={};function j4(e){const t=e.toString();return F4[t]||(F4[t]=new M4),F4[t]}
640/**
641     * @license
642     * Copyright 2017 Google LLC
643     *
644     * Licensed under the Apache License, Version 2.0 (the "License");
645     * you may not use this file except in compliance with the License.
646     * You may obtain a copy of the License at
647     *
648     *   http://www.apache.org/licenses/LICENSE-2.0
649     *
650     * Unless required by applicable law or agreed to in writing, software
651     * distributed under the License is distributed on an "AS IS" BASIS,
652     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
653     * See the License for the specific language governing permissions and
654     * limitations under the License.
655     */
656class H4{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(e,t){for(this.pendingResponses[e]=t;this.pendingResponses[this.currentResponseNum];){const e=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let t=0;t<e.length;++t)e[t]&&E4(()=>{this.onMessage_(e[t])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}
657/**
658     * @license
659     * Copyright 2017 Google LLC
660     *
661     * Licensed under the Apache License, Version 2.0 (the "License");
662     * you may not use this file except in compliance with the License.
663     * You may obtain a copy of the License at
664     *
665     *   http://www.apache.org/licenses/LICENSE-2.0
666     *
667     * Unless required by applicable law or agreed to in writing, software
668     * distributed under the License is distributed on an "AS IS" BASIS,
669     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
670     * See the License for the specific language governing permissions and
671     * limitations under the License.
672     */const U4="start";class G4{constructor(e,t,n,r,i,a,s){this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=a,this.lastSessionId=s,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=u4(e),this.stats_=j4(t),this.urlFn=e=>(this.appCheckToken&&(e[A4]=this.appCheckToken),R4(t,P4,e))}open(e,t){this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new H4(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(e){if("complete"===document.readyState)e();else{let t=!1;const n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}}(()=>{if(this.isClosed_)return;this.scriptTagHolder=new Y4((...e)=>{const[t,n,r,i,a]=e;if(this.incrementIncomingBytes_(e),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,t===U4)this.id=n,this.password=r;else{if("close"!==t)throw new Error("Unrecognized command received: "+t);n?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(n,()=>{this.onClosed_()})):this.onClosed_()}},(...e)=>{const[t,n]=e;this.incrementIncomingBytes_(e),this.myPacketOrderer.handleResponse(t,n)},()=>{this.onClosed_()},this.urlFn);const e={};e[U4]="t",e.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=this.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",this.transportSessionId&&(e.s=this.transportSessionId),this.lastSessionId&&(e.ls=this.lastSessionId),this.applicationId&&(e.p=this.applicationId),this.appCheckToken&&(e[A4]=this.appCheckToken),"undefined"!=typeof location&&location.hostname&&O4.test(location.hostname)&&(e.r="f");const t=this.urlFn(e);this.log_("Connecting via long-poll to "+t),this.scriptTagHolder.addTag(t,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){G4.forceAllow_=!0}static forceDisallow(){G4.forceDisallow_=!0}static isAvailable(){return!!G4.forceAllow_||!(G4.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI)}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const t=s1(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=U0(t),r=C4(n,1840);for(let i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++}addDisconnectPingFrame(e,t){this.myDisconnFrame=document.createElement("iframe");const n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(e){const t=s1(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)}}class Y4{constructor(e,t,n,r){this.onDisconnect=n,this.urlFn=r,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0;{this.uniqueCallbackIdentifier=r4(),window["pLPCommand"+this.uniqueCallbackIdentifier]=e,window["pRTLPCB"+this.uniqueCallbackIdentifier]=t,this.myIFrame=Y4.createI
vendor: 36,586 bytes, lines 672-806
672Frame_();let n="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(n='<script>document.domain="'+document.domain+'";<\/script>');const r="<html><body>"+n+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(r),this.myIFrame.doc.close()}catch(zle){l4("frame writing exception"),zle.stack&&l4(zle.stack),l4(zle)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||l4("No IE domain setting required")}catch(zle){const n=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;let t=this.urlFn(e),n="",r=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+n.length<=1870;){const e=this.pendingSegs.shift();n=n+"&seg"+r+"="+e.seg+"&ts"+r+"="+e.ts+"&d"+r+"="+e.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);const n=()=>{this.outstandingRequests.delete(t),this.newRequest_()},r=setTimeout(n,Math.floor(25e3));this.addTag(e,()=>{clearTimeout(r),n()})}addTag(e,t){setTimeout(()=>{try{if(!this.sendNewPolls)return;const n=this.myIFrame.doc.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){const e=n.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),t())},n.onerror=()=>{l4("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(n)}catch(zle){}},Math.floor(1))}}
673/**
674     * @license
675     * Copyright 2017 Google LLC
676     *
677     * Licensed under the Apache License, Version 2.0 (the "License");
678     * you may not use this file except in compliance with the License.
679     * You may obtain a copy of the License at
680     *
681     *   http://www.apache.org/licenses/LICENSE-2.0
682     *
683     * Unless required by applicable law or agreed to in writing, software
684     * distributed under the License is distributed on an "AS IS" BASIS,
685     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
686     * See the License for the specific language governing permissions and
687     * limitations under the License.
688     */let V4=null;"undefined"!=typeof MozWebSocket?V4=MozWebSocket:"undefined"!=typeof WebSocket&&(V4=WebSocket);class q4{constructor(e,t,n,r,i,a,s){this.connId=e,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=u4(this.connId),this.stats_=j4(t),this.connURL=q4.connectionURL_(t,a,s,r,n),this.nodeAdmin=t.nodeAdmin}static connectionURL_(e,t,n,r,i){const a={v:"5"};return"undefined"!=typeof location&&location.hostname&&O4.test(location.hostname)&&(a.r="f"),t&&(a.s=t),n&&(a.ls=n),r&&(a[A4]=r),i&&(a.p=i),R4(e,I4,a)}open(e,t){this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,e4.set("previous_websocket_failure",!0);try{let e;t1(),this.mySock=new V4(this.connURL,[],e)}catch(zle){this.log_("Error instantiating WebSocket.");const t=zle.message||zle.data;return t&&this.log_(t),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=e=>{this.handleIncomingFrame(e)},this.mySock.onerror=e=>{this.log_("WebSocket error.  Closing connection.");const t=e.message||e.data;t&&this.log_(t),this.onClosed_()}}start(){}static forceDisallow(){q4.forceDisallow_=!0}static isAvailable(){let e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){const t=/Android ([0-9]{0,}\.[0-9]{0,})/,n=navigator.userAgent.match(t);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==V4&&!q4.forceDisallow_}static previouslyFailed(){return e4.isInMemoryStorage||!0===e4.get("previous_websocket_failure")}markConnectionHealthy(){e4.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const e=this.frames.join("");this.frames=null;const t=a1(e);this.onMessage(t)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(M0(null===this.frames,"We already have a frame buffer"),e.length<=6){const t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(null===this.mySock)return;const t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{const e=this.extractFrameCount_(t);null!==e&&this.appendFrame_(e)}}send(e){this.resetKeepAlive();const t=s1(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=C4(t,16384);n.length>1&&this.sendString_(String(n.length));for(let r=0;r<n.length;r++)this.sendString_(n[r])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(e){try{this.mySock.send(e)}catch(zle){this.log_("Exception thrown from WebSocket.send():",zle.message||zle.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}q4.responsesRequiredToBeHealthy=2,q4.healthyTimeout=3e4;
689/**
690     * @license
691     * Copyright 2017 Google LLC
692     *
693     * Licensed under the Apache License, Version 2.0 (the "License");
694     * you may not use this file except in compliance with the License.
695     * You may obtain a copy of the License at
696     *
697     *   http://www.apache.org/licenses/LICENSE-2.0
698     *
699     * Unless required by applicable law or agreed to in writing, software
700     * distributed under the License is distributed on an "AS IS" BASIS,
701     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
702     * See the License for the specific language governing permissions and
703     * limitations under the License.
704     */
705class $4{static get ALL_TRANSPORTS(){return[G4,q4]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}constructor(e){this.initTransports_(e)}initTransports_(e){const t=q4&&q4.isAvailable();let n=t&&!q4.previouslyFailed();if(e.webSocketOnly&&(t||h4("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),n=!0),n)this.transports_=[q4];else{const e=this.transports_=[];for(const t of $4.ALL_TRANSPORTS)t&&t.isAvailable()&&e.push(t);$4.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}$4.globalTransportInitialized_=!1;class W4{constructor(e,t,n,r,i,a,s,o,l,u){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=a,this.onReady_=s,this.onDisconnect_=o,this.onKill_=l,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=u4("c:"+this.id+":"),this.transportManager_=new $4(t),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.conn_),n=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(t,n)},Math.floor(0));const r=e.healthyTimeout||0;r>0&&(this.healthyTimeout_=k4(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes.  Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes.  Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(r)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return t=>{2!==this.state_&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_("message on old connection"))}}sendRequest(e){const t={t:"d",d:e};this.sendData_(t)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if("t"in e){const t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const t=v4("t",e),n=v4("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const t=v4("t",e),n=v4("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const t=v4("t",e);if("d"in e){const n=e.d;if("h"===t){const e={...n};this.repoInfo_.isUsingEmulator&&(e.h=this.repoInfo_.host),this.onHandshake_(e)}else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let e=0;e<this.pendingDataMessages.length;++e)this.onDataMessage_(this.pendingDataMessages[e]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?c4("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):c4("Unknown control packet command: "+t)}}onHandshake_(e){const t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.host=r,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&h4("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}startUpgrade_(e){this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.secondaryConn_),n=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(t,n),k4(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):k4(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()}onConnectionLost_(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(e4.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}
706/**
707     * @license
708     * Copyright 2017 Google LLC
709     *
710     * Licensed under the Apache License, Version 2.0 (the "License");
711     * you may not use this file except in compliance with the License.
712     * You may obtain a copy of the License at
713     *
714     *   http://www.apache.org/licenses/LICENSE-2.0
715     *
716     * Unless required by applicable law or agreed to in writing, software
717     * distributed under the License is distributed on an "AS IS" BASIS,
718     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
719     * See the License for the specific language governing permissions and
720     * limitations under the License.
721     */class z4{put(e,t,n,r){}merge(e,t,n,r){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,n){}onDisconnectMerge(e,t,n){}onDisconnectCancel(e,t){}reportStats(e){}}
722/**
723     * @license
724     * Copyright 2017 Google LLC
725     *
726     * Licensed under the Apache License, Version 2.0 (the "License");
727     * you may not use this file except in compliance with the License.
728     * You may obtain a copy of the License at
729     *
730     *   http://www.apache.org/licenses/LICENSE-2.0
731     *
732     * Unless required by applicable law or agreed to in writing, software
733     * distributed under the License is distributed on an "AS IS" BASIS,
734     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
735     * See the License for the specific language governing permissions and
736     * limitations under the License.
737     */class J4{constructor(e){this.allowedEvents_=e,this.listeners_={},M0(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...t){if(Array.isArray(this.listeners_[e])){const n=[...this.listeners_[e]];for(let e=0;e<n.length;e++)n[e].callback.apply(n[e].context,t)}}on(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});const r=this.getInitialEvent(e);r&&t.apply(n,r)}off(e,t,n){this.validateEventType_(e);const r=this.listeners_[e]||[];for(let i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)}validateEventType_(e){M0(this.allowedEvents_.find(t=>t===e),"Unknown event: "+e)}}
738/**
739     * @license
740     * Copyright 2017 Google LLC
741     *
742     * Licensed under the Apache License, Version 2.0 (the "License");
743     * you may not use this file except in compliance with the License.
744     * You may obtain a copy of the License at
745     *
746     *   http://www.apache.org/licenses/LICENSE-2.0
747     *
748     * Unless required by applicable law or agreed to in writing, software
749     * distributed under the License is distributed on an "AS IS" BASIS,
750     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
751     * See the License for the specific language governing permissions and
752     * limitations under the License.
753     */class K4 extends J4{static getInstance(){return new K4}constructor(){super(["online"]),this.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||X0()||(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}getInitialEvent(e){return M0("online"===e,"Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}
754/**
755     * @license
756     * Copyright 2017 Google LLC
757     *
758     * Licensed under the Apache License, Version 2.0 (the "License");
759     * you may not use this file except in compliance with the License.
760     * You may obtain a copy of the License at
761     *
762     *   http://www.apache.org/licenses/LICENSE-2.0
763     *
764     * Unless required by applicable law or agreed to in writing, software
765     * distributed under the License is distributed on an "AS IS" BASIS,
766     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
767     * See the License for the specific language governing permissions and
768     * limitations under the License.
769     */class Q4{constructor(e,t){if(void 0===t){this.pieces_=e.split("/");let t=0;for(let e=0;e<this.pieces_.length;e++)this.pieces_[e].length>0&&(this.pieces_[t]=this.pieces_[e],t++);this.pieces_.length=t,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e="";for(let t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"}}function Z4(){return new Q4("")}function X4(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function e3(e){return e.pieces_.length-e.pieceNum_}function t3(e){let t=e.pieceNum_;return t<e.pieces_.length&&t++,new Q4(e.pieces_,t)}function n3(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function r3(e,t=0){return e.pieces_.slice(e.pieceNum_+t)}function i3(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new Q4(t,0)}function a3(e,t){const n=[];for(let r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);if(t instanceof Q4)for(let r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{const e=t.split("/");for(let t=0;t<e.length;t++)e[t].length>0&&n.push(e[t])}return new Q4(n,0)}function s3(e){return e.pieceNum_>=e.pieces_.length}function o3(e,t){const n=X4(e),r=X4(t);if(null===n)return t;if(n===r)return o3(t3(e),t3(t));throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function l3(e,t){if(e3(e)!==e3(t))return!1;for(let n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function u3(e,t){let n=e.pieceNum_,r=t.pieceNum_;if(e3(e)>e3(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}class c3{constructor(e,t){this.errorPrefix_=t,this.parts_=r3(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(let n=0;n<this.parts_.length;n++)this.byteLength_+=y1(this.parts_[n]);d3(this)}}function d3(e){if(e.byteLength_>768)throw new Error(e.errorPrefix_+"has a key path longer than 768 bytes ("+e.byteLength_+").");if(e.parts_.length>32)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+h3(e))}function h3(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}
770/**
771     * @license
772     * Copyright 2017 Google LLC
773     *
774     * Licensed under the Apache License, Version 2.0 (the "License");
775     * you may not use this file except in compliance with the License.
776     * You may obtain a copy of the License at
777     *
778     *   http://www.apache.org/licenses/LICENSE-2.0
779     *
780     * Unless required by applicable law or agreed to in writing, software
781     * distributed under the License is distributed on an "AS IS" BASIS,
782     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
783     * See the License for the specific language governing permissions and
784     * limitations under the License.
785     */class p3 extends J4{static getInstance(){return new p3}constructor(){let e,t;super(["visible"]),"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(t="visibilitychange",e="hidden"):void 0!==document.mozHidden?(t="mozvisibilitychange",e="mozHidden"):void 0!==document.msHidden?(t="msvisibilitychange",e="msHidden"):void 0!==document.webkitHidden&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,()=>{const t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger("visible",t))},!1)}getInitialEvent(e){return M0("visible"===e,"Unknown event type: "+e),[this.visible_]}}
786/**
787     * @license
788     * Copyright 2017 Google LLC
789     *
790     * Licensed under the Apache License, Version 2.0 (the "License");
791     * you may not use this file except in compliance with the License.
792     * You may obtain a copy of the License at
793     *
794     *   http://www.apache.org/licenses/LICENSE-2.0
795     *
796     * Unless required by applicable law or agreed to in writing, software
797     * distributed under the License is distributed on an "AS IS" BASIS,
798     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
799     * See the License for the specific language governing permissions and
800     * limitations under the License.
801     */const f3=1e3;class B3 extends z4{constructor(e,t,n,r,i,a,s,o){if(super(),this.repoInfo_=e,this.applicationId_=t,this.onDataUpdate_=n,this.onConnectStatus_=r,this.onServerInfoUpdate_=i,this.authTokenProvider_=a,this.appCheckTokenProvider_=s,this.authOverride_=o,this.id=B3.nextPersistentConnectionId_++,this.log_=u4("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=f3,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,o&&!t1())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");p3.getInstance().on("visible",this.onVisible_,this),-1===e.host.indexOf("fblocal")&&K4.getInstance().on("online",this.onOnline_,this)}sendRequest(e,t,n){const r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(s1(i)),M0(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)}get(e){this.initConnection_();const t=new Q0,n={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:e=>{const n=e.d;"ok"===e.s?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(n),this.outstandingGetCount_++;const r=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(r),t.promise}listen(e,t,n,r){this.initConnection_();const i=e._queryIdentifier,a=e._path.toString();this.log_("Listen called for "+a+" "+i),this.listens.has(a)||this.listens.set(a,new Map),M0(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),M0(!this.listens.get(a).has(i),"listen() called twice for same path/queryId.");const s={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(a).set(i,s),this.connected_&&this.sendListen_(s)}sendGet_(e){const t=this.outstandingGets_[e];this.sendRequest("g",t.request,n=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),t.onComplete&&t.onComplete(n)})}sendListen_(e){const t=e.query,n=t._path.toString(),r=t._queryIdentifier;this.log_("Listen on "+n+" for "+r);const i={p:n};e.tag&&(i.q=t._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest("q",i,i=>{const a=i.d,s=i.s;B3.warnOnListenWarnings_(a,t),(this.listens.get(n)&&this.listens.get(n).get(r))===e&&(this.log_("listen response",i),"ok"!==s&&this.removeListen_(n,r),e.onComplete&&e.onComplete(s,a))})}static warnOnListenWarnings_(e,t){if(e&&"object"==typeof e&&l1(e,"w")){const n=u1(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){const e='".indexOn": "'+t._queryParams.getIndex().toString()+'"',n=t._path.toString();h4(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${e} at ${n} to your security rules for better performance.`)}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&40===e.length||function(e){const t=o1(e).claims;return"object"==typeof t&&!0===t.admin}(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,t=function(e){const t=o1(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")}(e)?"auth":"gauth",n={cred:e};null===this.authOverride_?n.noauth=!0:"object"==typeof this.authOverride_&&(n.authvar=this.authOverride_),this.sendRequest(t,n,t=>{const n=t.s,r=t.d||"error";this.authToken_===e&&("ok"===n?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(n,r))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},e=>{const t=e.s,n=e.d||"error";"ok"===t?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(t,n)})}unlisten(e,t){const n=e._path.toString(),r=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),M0(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e._queryObject,t)}sendUnlisten_(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);const i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)}onDisconnectPut(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})}onDisconnectMerge(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})}onDisconnectCancel(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})}sendOnDisconnect_(e,t,n,r){const i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,e=>{r&&setTimeout(()=>{r(e.s,e.d)},Math.floor(0))})}put(e,t,n,r){this.putInternal("p",e,t,n,r)}merge(e,t,n,r){this.putInternal("m",e,t,n,r)}putInternal(e,t,n,r,i){this.initConnection_();const a={p:t,d:n};void 0!==i&&(a.h=i),this.outstandingPuts_.push({action:e,request:a,onComplete:r}),this.outstandingPutCount_++;const s=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(s):this.log_("Buffering put: "+t)}sendPut_(e){const t=this.outstandingPuts_[e].action,n=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(t,n,n=>{this.log_(t+" response",n),delete this.outstandingPuts_[e],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),r&&r(n.s,n.d)})}reportStats(e){if(this.connected_){const t={c:e};this.log_("reportStats",t),this.sendRequest("s",t,e=>{if("ok"!==e.s){const t=e.d;this.log_("reportStats","Error sending stats: "+t)}})}}onDataMessage_(e){if("r"in e){this.log_("from server: "+s1(e));const t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):c4("Unrecognized action received from server: "+s1(e)+"\nAre you using the latest client?")}onReady_(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){M0(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=f3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=f3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=f3),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const e=Math.max(0,(new Date).getTime()-this.lastConnectionAttemptTime_);let t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;const t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+B3.nextConnectionId_++,a=this.lastSessionId;let s=!1,o=null;const l=function(){o?o.close():(s=!0,r())},u=function(e){M0(o,"sendRequest call when we're not connected not allowed."),o.sendRequest(e)};this.realtime_={close:l,sendRequest:u};const c=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[e,l]=await Promise.all([this.authTokenProvider_.getToken(c),this.appCheckTokenProvider_.getToken(c)]);s?l4("getToken() completed but was canceled"):(l4("getToken() completed. Creating connection."),this.authToken_=e&&e.accessToken,this.appCheckToken_=l&&l.token,o=new W4(i,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,t,n,r,e=>{h4(e+" ("+this.repoInfo_.toString()+")"),this.interrupt("server_kill")},a))}catch(e){this.log_("Failed to get token: "+e),s||(this.repoInfo_.nodeAdmin&&h4(e),l())}}}interrupt(e){l4("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){l4("Resuming connection for reason: "+e),delete this.interruptReasons_[e],c1(this.interruptReasons_)&&(this.reconnectDelay_=f3,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}cancelSentTransactions_(){for(let e=0;e<this.outstandingPuts_.length;e++){const t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(e,t){let n;n=t?t.map(e=>y4(e)).join("$"):"default";const r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")}removeListen_(e,t){const n=new Q4(e).toString();let r;if(this.listens.has(n)){const e=this.listens.get(n);r=e.get(t),e.delete(t),0===e.size&&this.listens.delete(n)}else r=void 0;return r}onAuthRevoked_(e,t){l4("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,t){l4("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_&&this.securityDebugCallback_(e)}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const t of e.values())this.sendListen_(t);for(let e=0;e<this.outstandingPuts_.length;e++)this.outstandingPuts_[e]&&this.sendPut_(e);for(;this.onDisconnectRequestQueue_.length;){const e=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(e.action,e.pathString,e.data,e.onComplete)}for(let e=0;e<this.outstandingGets_.length;e++)this.outstandingGets_[e]&&this.sendGet_(e)}sendConnectStats_(){const e={};e["sdk.js."+K2.replace(/\./g,"-")]=1,X0()?e["framework.cordova"]=1:e1()&&(e["framework.reactnative"]=1),this.reportStats(e)}shouldReconnect_(){const e=K4.getInstance().currentlyOnline();return c1(this.interruptReasons_)&&e}}B3.nextPersistentConnectionId_=0,B3.nextConnectionId_=0;
802/**
803     * @license
804     * Copyright 2017 Google LLC
805     *
806     * Licensed under the Apache License, Version 2.0 (the "License");
807     * you may not use this file except in compliance with the License.
808     * You may obtain a copy of the License at
809     *
810     *   http://www.apache.org/licenses/LICENSE-2.0
811     *
812     * Unless required by applicable law or agreed to in writing, software
813     * distributed under the License is distributed on an "AS IS" BASIS,
814     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
815     * See the License for the specific language governing permissions and
816     * limitations under the License.
817     */
818class m3{constructor(e,t){this.name=e,this.node=t}static Wrap(e,t){return new m3(e,t)}}
819/**
820     * @license
821     * Copyright 2017 Google LLC
822     *
823     * Licensed under the Apache License, Version 2.0 (the "License");
824     * you may not use this file except in compliance with the License.
825     * You may obtain a copy of the License at
826     *
827     *   http://www.apache.org/licenses/LICENSE-2.0
828     *
829     * Unless required by applicable law or agreed to in writing, software
830     * distributed under the License is distributed on an "AS IS" BASIS,
831     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
832     * See the License for the specific language governing permissions and
833     * limitations under the License.
834     */class g3{getCompare(){return this.compare.bind(this)}indexedValueChanged(e,t){const n=new m3(f4,e),r=new m3(f4,t);return 0!==this.compare(n,r)}minPost(){return m3.MIN}}
835/**
836     * @license
837     * Copyright 2017 Google LLC
838     *
839     * Licensed under the Apache License, Version 2.0 (the "License");
840     * you may not use this file except in compliance with the License.
841     * You may obtain a copy of the License at
842     *
843     *   http://www.apache.org/licenses/LICENSE-2.0
844     *
845     * Unless required by applicable law or agreed to in writing, software
846     * distributed under the License is distributed on an "AS IS" BASIS,
847     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
848     * See the License for the specific language governing permissions and
849     * limitations under the License.
850     */let v3;class y3 extends g3{static get __EMPTY_NODE(){return v3}static set __EMPTY_NODE(e){v3=e}compare(e,t){return m4(e.name,t.name)}isDefinedOn(e){throw F0("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(e,t){return!1}minPost(){return m3.MIN}maxPost(){return new m3(B4,v3)}makePost(e,t){return M0("string"==typeof e,"KeyIndex indexValue must always be a string."),new m3(e,v3)}toString(){return".key"}}const C3=new y3;
851/**
852     * @license
853     * Copyright 2017 Google LLC
854     *
855     * Licensed under the Apache License, Version 2.0 (the "License");
856     * you may not use this file except in compliance with the License.
857     * You may obtain a copy of the License at
858     *
859     *   http://www.apache.org/licenses/LICENSE-2.0
860     *
861     * Unless required by applicable law or agreed to in writing, software
862     * distributed under the License is distributed on an "AS IS" BASIS,
863     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
864     * See the License for the specific language governing permissions and
865     * limitations under the License.
866     */let _3=class{constructor(e,t,n,r,i=null){this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];let a=1;for(;!e.isEmpty();)if(a=t?n(e.key,t):1,r&&(a*=-1),a<0)e=this.isReverse_?e.left:e.right;else{if(0===a){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}getNext(){if(0===this.nodeStack_.length)return null;let e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}},b3=class e{constructor(t,n,r,i,a){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:D3.EMPTY_NODE,this.right=null!=a?a:D3.EMPTY_NODE}copy(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,
vendor: 21,832 bytes, lines 866-1002
866null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp_()}removeMin_(){if(this.left.isEmpty())return D3.EMPTY_NODE;let e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,t){let n,r;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return D3.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight_(){const t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}};b3.RED=!0,b3.BLACK=!1;let w3,D3=class e{constructor(t,n=e.EMPTY_NODE){this.comparator_=t,this.root_=n}insert(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,b3.BLACK,null,null))}remove(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,b3.BLACK,null,null))}get(e){let t,n=this.root_;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t)return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}getPredecessorKey(e){let t,n=this.root_,r=null;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new _3(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new _3(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new _3(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new _3(this.root_,null,this.comparator_,!0,e)}};
867/**
868     * @license
869     * Copyright 2017 Google LLC
870     *
871     * Licensed under the Apache License, Version 2.0 (the "License");
872     * you may not use this file except in compliance with the License.
873     * You may obtain a copy of the License at
874     *
875     *   http://www.apache.org/licenses/LICENSE-2.0
876     *
877     * Unless required by applicable law or agreed to in writing, software
878     * distributed under the License is distributed on an "AS IS" BASIS,
879     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
880     * See the License for the specific language governing permissions and
881     * limitations under the License.
882     */
883function E3(e,t){return m4(e.name,t.name)}function k3(e,t){return m4(e,t)}
884/**
885     * @license
886     * Copyright 2017 Google LLC
887     *
888     * Licensed under the Apache License, Version 2.0 (the "License");
889     * you may not use this file except in compliance with the License.
890     * You may obtain a copy of the License at
891     *
892     *   http://www.apache.org/licenses/LICENSE-2.0
893     *
894     * Unless required by applicable law or agreed to in writing, software
895     * distributed under the License is distributed on an "AS IS" BASIS,
896     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
897     * See the License for the specific language governing permissions and
898     * limitations under the License.
899     */D3.EMPTY_NODE=new class{copy(e,t,n,r,i){return this}insert(e,t,n){return new b3(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const S3=function(e){return"number"==typeof e?"number:"+b4(e):"string:"+e},x3=function(e){if(e.isLeafNode()){const t=e.val();M0("string"==typeof t||"number"==typeof t||"object"==typeof t&&l1(t,".sv"),"Priority must be a string or number.")}else M0(e===w3||e.isEmpty(),"priority of unexpected type.");M0(e===w3||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};
900/**
901     * @license
902     * Copyright 2017 Google LLC
903     *
904     * Licensed under the Apache License, Version 2.0 (the "License");
905     * you may not use this file except in compliance with the License.
906     * You may obtain a copy of the License at
907     *
908     *   http://www.apache.org/licenses/LICENSE-2.0
909     *
910     * Unless required by applicable law or agreed to in writing, software
911     * distributed under the License is distributed on an "AS IS" BASIS,
912     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
913     * See the License for the specific language governing permissions and
914     * limitations under the License.
915     */
916let T3,O3,A3;class I3{static set __childrenNodeConstructor(e){T3=e}static get __childrenNodeConstructor(){return T3}constructor(e,t=I3.__childrenNodeConstructor.EMPTY_NODE){this.value_=e,this.priorityNode_=t,this.lazyHash_=null,M0(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),x3(this.priorityNode_)}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new I3(this.value_,e)}getImmediateChild(e){return".priority"===e?this.priorityNode_:I3.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return s3(e)?this:".priority"===X4(e)?this.priorityNode_:I3.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,t){return null}updateImmediateChild(e,t){return".priority"===e?this.updatePriority(t):t.isEmpty()&&".priority"!==e?this:I3.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,t).updatePriority(this.priorityNode_)}updateChild(e,t){const n=X4(e);return null===n?t:t.isEmpty()&&".priority"!==n?this:(M0(".priority"!==n||1===e3(e),".priority must be the last token in a path"),this.updateImmediateChild(n,I3.__childrenNodeConstructor.EMPTY_NODE.updateChild(t3(e),t)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,t){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+S3(this.priorityNode_.val())+":");const t=typeof this.value_;e+=t+":",e+="number"===t?b4(this.value_):this.value_,this.lazyHash_=i4(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===I3.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof I3.__childrenNodeConstructor?-1:(M0(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const t=typeof e.value_,n=typeof this.value_,r=I3.VALUE_TYPE_ORDER.indexOf(t),i=I3.VALUE_TYPE_ORDER.indexOf(n);return M0(r>=0,"Unknown leaf type: "+t),M0(i>=0,"Unknown leaf type: "+n),r===i?"object"===n?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:i-r}withIndex(){return this}isIndexed(){return!0}equals(e){if(e===this)return!0;if(e.isLeafNode()){const t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1}}I3.VALUE_TYPE_ORDER=["object","boolean","number","string"];const P3=new class extends g3{compare(e,t){const n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?m4(e.name,t.name):i}isDefinedOn(e){return!e.getPriority().isEmpty()}indexedValueChanged(e,t){return!e.getPriority().equals(t.getPriority())}minPost(){return m3.MIN}maxPost(){return new m3(B4,new I3("[PRIORITY-POST]",A3))}makePost(e,t){const n=O3(e);return new m3(t,new I3("[PRIORITY-POST]",n))}toString(){return".priority"}},N3=Math.log(2);
917/**
918     * @license
919     * Copyright 2017 Google LLC
920     *
921     * Licensed under the Apache License, Version 2.0 (the "License");
922     * you may not use this file except in compliance with the License.
923     * You may obtain a copy of the License at
924     *
925     *   http://www.apache.org/licenses/LICENSE-2.0
926     *
927     * Unless required by applicable law or agreed to in writing, software
928     * distributed under the License is distributed on an "AS IS" BASIS,
929     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
930     * See the License for the specific language governing permissions and
931     * limitations under the License.
932     */class R3{constructor(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/N3,10)),this.current_=this.count-1;const n=(r=this.count,parseInt(Array(r+1).join("1"),2));var r;this.bits_=e+1&n}nextBitIsOne(){const e=!(this.bits_&1<<this.current_);return this.current_--,e}}const M3=function(e,t,n,r){e.sort(t);const i=function(t,r){const a=r-t;let s,o;if(0===a)return null;if(1===a)return s=e[t],o=n?n(s):s,new b3(o,s.node,b3.BLACK,null,null);{const l=parseInt(a/2,10)+t,u=i(t,l),c=i(l+1,r);return s=e[l],o=n?n(s):s,new b3(o,s.node,b3.BLACK,u,c)}},a=function(t){let r=null,a=null,s=e.length;const o=function(t,r){const a=s-t,o=s;s-=t;const u=i(a+1,o),c=e[a],d=n?n(c):c;l(new b3(d,c.node,r,null,u))},l=function(e){r?(r.left=e,r=e):(a=e,r=e)};for(let e=0;e<t.count;++e){const n=t.nextBitIsOne(),r=Math.pow(2,t.count-(e+1));n?o(r,b3.BLACK):(o(r,b3.BLACK),o(r,b3.RED))}return a}(new R3(e.length));return new D3(r||t,a)};
933/**
934     * @license
935     * Copyright 2017 Google LLC
936     *
937     * Licensed under the Apache License, Version 2.0 (the "License");
938     * you may not use this file except in compliance with the License.
939     * You may obtain a copy of the License at
940     *
941     *   http://www.apache.org/licenses/LICENSE-2.0
942     *
943     * Unless required by applicable law or agreed to in writing, software
944     * distributed under the License is distributed on an "AS IS" BASIS,
945     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
946     * See the License for the specific language governing permissions and
947     * limitations under the License.
948     */let F3;const L3={};class j3{static get Default(){return M0(L3&&P3,"ChildrenNode.ts has not been loaded"),F3=F3||new j3({".priority":L3},{".priority":P3}),F3}constructor(e,t){this.indexes_=e,this.indexSet_=t}get(e){const t=u1(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof D3?t:null}hasIndex(e){return l1(this.indexSet_,e.toString())}addIndex(e,t){M0(e!==C3,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const n=[];let r=!1;const i=t.getIterator(m3.Wrap);let a,s=i.getNext();for(;s;)r=r||e.isDefinedOn(s.node),n.push(s),s=i.getNext();a=r?M3(n,e.getCompare()):L3;const o=e.toString(),l={...this.indexSet_};l[o]=e;const u={...this.indexes_};return u[o]=a,new j3(u,l)}addToIndexes(e,t){const n=d1(this.indexes_,(n,r)=>{const i=u1(this.indexSet_,r);if(M0(i,"Missing index implementation for "+r),n===L3){if(i.isDefinedOn(e.node)){const n=[],r=t.getIterator(m3.Wrap);let a=r.getNext();for(;a;)a.name!==e.name&&n.push(a),a=r.getNext();return n.push(e),M3(n,i.getCompare())}return L3}{const r=t.get(e.name);let i=n;return r&&(i=i.remove(new m3(e.name,r))),i.insert(e,e.node)}});return new j3(n,this.indexSet_)}removeFromIndexes(e,t){const n=d1(this.indexes_,n=>{if(n===L3)return n;{const r=t.get(e.name);return r?n.remove(new m3(e.name,r)):n}});return new j3(n,this.indexSet_)}}
949/**
950     * @license
951     * Copyright 2017 Google LLC
952     *
953     * Licensed under the Apache License, Version 2.0 (the "License");
954     * you may not use this file except in compliance with the License.
955     * You may obtain a copy of the License at
956     *
957     *   http://www.apache.org/licenses/LICENSE-2.0
958     *
959     * Unless required by applicable law or agreed to in writing, software
960     * distributed under the License is distributed on an "AS IS" BASIS,
961     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
962     * See the License for the specific language governing permissions and
963     * limitations under the License.
964     */let H3;class U3{static get EMPTY_NODE(){return H3||(H3=new U3(new D3(k3),null,j3.Default))}constructor(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&x3(this.priorityNode_),this.children_.isEmpty()&&M0(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}isLeafNode(){return!1}getPriority(){return this.priorityNode_||H3}updatePriority(e){return this.children_.isEmpty()?this:new U3(this.children_,e,this.indexMap_)}getImmediateChild(e){if(".priority"===e)return this.getPriority();{const t=this.children_.get(e);return null===t?H3:t}}getChild(e){const t=X4(e);return null===t?this:this.getImmediateChild(t).getChild(t3(e))}hasChild(e){return null!==this.children_.get(e)}updateImmediateChild(e,t){if(M0(t,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(t);{const n=new m3(e,t);let r,i;t.isEmpty()?(r=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(n,this.children_)):(r=this.children_.insert(e,t),i=this.indexMap_.addToIndexes(n,this.children_));const a=r.isEmpty()?H3:this.priorityNode_;return new U3(r,a,i)}}updateChild(e,t){const n=X4(e);if(null===n)return t;{M0(".priority"!==X4(e)||1===e3(e),".priority must be the last token in a path");const r=this.getImmediateChild(n).updateChild(t3(e),t);return this.updateImmediateChild(n,r)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const t={};let n=0,r=0,i=!0;if(this.forEachChild(P3,(a,s)=>{t[a]=s.val(e),n++,i&&U3.INTEGER_REGEXP_.test(a)?r=Math.max(r,Number(a)):i=!1}),!e&&i&&r<2*n){const e=[];for(const n in t)e[n]=t[n];return e}return e&&!this.getPriority().isEmpty()&&(t[".priority"]=this.getPriority().val()),t}hash(){if(null===this.lazyHash_){let e="";this.getPriority().isEmpty()||(e+="priority:"+S3(this.getPriority().val())+":"),this.forEachChild(P3,(t,n)=>{const r=n.hash();""!==r&&(e+=":"+t+":"+r)}),this.lazyHash_=""===e?"":i4(e)}return this.lazyHash_}getPredecessorChildName(e,t,n){const r=this.resolveIndex_(n);if(r){const n=r.getPredecessorKey(new m3(e,t));return n?n.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.minKey();return e&&e.name}return this.children_.minKey()}getFirstChild(e){const t=this.getFirstChildName(e);return t?new m3(t,this.children_.get(t)):null}getLastChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.maxKey();return e&&e.name}return this.children_.maxKey()}getLastChild(e){const t=this.getLastChildName(e);return t?new m3(t,this.children_.get(t)):null}forEachChild(e,t){const n=this.resolveIndex_(e);return n?n.inorderTraversal(e=>t(e.name,e.node)):this.children_.inorderTraversal(t)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,e=>e);{const n=this.children_.getIteratorFrom(e.name,m3.Wrap);let r=n.peek();for(;null!=r&&t.compare(r,e)<0;)n.getNext(),r=n.peek();return n}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,e=>e);{const n=this.children_.getReverseIteratorFrom(e.name,m3.Wrap);let r=n.peek();for(;null!=r&&t.compare(r,e)>0;)n.getNext(),r=n.peek();return n}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===G3?-1:0}withIndex(e){if(e===C3||this.indexMap_.hasIndex(e))return this;{const t=this.indexMap_.addIndex(e,this.children_);return new U3(this.children_,this.priorityNode_,t)}}isIndexed(e){return e===C3||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{const t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){const e=this.getIterator(P3),n=t.getIterator(P3);let r=e.getNext(),i=n.getNext();for(;r&&i;){if(r.name!==i.name||!r.node.equals(i.node))return!1;r=e.getNext(),i=n.getNext()}return null===r&&null===i}return!1}return!1}}resolveIndex_(e){return e===C3?null:this.indexMap_.get(e.toString())}}U3.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;const G3=new class extends U3{constructor(){super(new D3(k3),U3.EMPTY_NODE,j3.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return U3.EMPTY_NODE}isEmpty(){return!1}};function Y3(e,t=null){if(null===e)return U3.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),M0(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new I3(e,Y3(t));if(e instanceof Array){let n=U3.EMPTY_NODE;return _4(e,(t,r)=>{if(l1(e,t)&&"."!==t.substring(0,1)){const e=Y3(r);!e.isLeafNode()&&e.isEmpty()||(n=n.updateImmediateChild(t,e))}}),n.updatePriority(Y3(t))}{const n=[];let r=!1;if(_4(e,(e,t)=>{if("."!==e.substring(0,1)){const i=Y3(t);i.isEmpty()||(r=r||!i.getPriority().isEmpty(),n.push(new m3(e,i)))}}),0===n.length)return U3.EMPTY_NODE;const i=M3(n,E3,e=>e.name,k3);if(r){const e=M3(n,P3.getCompare());return new U3(i,Y3(t),new j3({".priority":e},{".priority":P3}))}return new U3(i,Y3(t),j3.Default)}}Object.defineProperties(m3,{MIN:{value:new m3(f4,U3.EMPTY_NODE)},MAX:{value:new m3(B4,G3)}}),y3.__EMPTY_NODE=U3.EMPTY_NODE,I3.__childrenNodeConstructor=U3,w3=G3,function(e){A3=e}(G3),function(e){O3=e}(Y3);
965/**
966     * @license
967     * Copyright 2017 Google LLC
968     *
969     * Licensed under the Apache License, Version 2.0 (the "License");
970     * you may not use this file except in compliance with the License.
971     * You may obtain a copy of the License at
972     *
973     *   http://www.apache.org/licenses/LICENSE-2.0
974     *
975     * Unless required by applicable law or agreed to in writing, software
976     * distributed under the License is distributed on an "AS IS" BASIS,
977     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
978     * See the License for the specific language governing permissions and
979     * limitations under the License.
980     */
981class V3 extends g3{constructor(e){super(),this.indexPath_=e,M0(!s3(e)&&".priority"!==X4(e),"Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){const n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?m4(e.name,t.name):i}makePost(e,t){const n=Y3(e),r=U3.EMPTY_NODE.updateChild(this.indexPath_,n);return new m3(t,r)}maxPost(){const e=U3.EMPTY_NODE.updateChild(this.indexPath_,G3);return new m3(B4,e)}toString(){return r3(this.indexPath_,0).join("/")}}
982/**
983     * @license
984     * Copyright 2017 Google LLC
985     *
986     * Licensed under the Apache License, Version 2.0 (the "License");
987     * you may not use this file except in compliance with the License.
988     * You may obtain a copy of the License at
989     *
990     *   http://www.apache.org/licenses/LICENSE-2.0
991     *
992     * Unless required by applicable law or agreed to in writing, software
993     * distributed under the License is distributed on an "AS IS" BASIS,
994     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
995     * See the License for the specific language governing permissions and
996     * limitations under the License.
997     */const q3=new class extends g3{compare(e,t){const n=e.node.compareTo(t.node);return 0===n?m4(e.name,t.name):n}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}minPost(){return m3.MIN}maxPost(){return m3.MAX}makePost(e,t){const n=Y3(e);return new m3(t,n)}toString(){return".value"}};
998/**
999     * @license
1000     * Copyright 2017 Google LLC
1001     *
1002     * Licensed under the Apache License, Version 2.0 (the "License");
1003     * you may not use this file except in compliance with the License.
1004     * You may obtain a copy of the License at
1005     *
1006     *   http://www.apache.org/licenses/LICENSE-2.0
1007     *
1008     * Unless required by applicable law or agreed to in writing, software
1009     * distributed under the License is distributed on an "AS IS" BASIS,
1010     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1011     * See the License for the specific language governing permissions and
1012     * limitations under the License.
1013     */function $3(e){return{type:"value",snapshotNode:e}}function W3(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function z3(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function J3(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}
1014/**
1015     * @license
1016     * Copyright 2017 Google LLC
1017     *
1018     * Licensed under the Apache License, Version 2.0 (the "License");
1019     * you may not use this file except in compliance with the License.
1020     * You may obtain a copy of the License at
1021     *
1022     *   http://www.apache.org/licenses/LICENSE-2.0
1023     *
1024     * Unless required by applicable law or agreed to in writing, software
1025     * distributed under the License is distributed on an "AS IS" BASIS,
1026     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1027     * See the License for the specific language governing permissions and
1028     * limitations under the License.
1029     */
1030class K3{constructor(e){this.index_=e}updateChild(e,t,n,r,i,a){M0(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");const s=e.getImmediateChild(t);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?e:(null!=a&&(n.isEmpty()?e.hasChild(t)?a.trackChildChange(z3(t,s)):M0(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?a.trackChildChange(W3(t,n)):a.trackChildChange(J3(t,n,s))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))}updateFullNode(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(P3,(e,r)=>{t.hasChild(e)||n.trackChildChange(z3(e,r))}),t.isLeafNode()||t.forEachChild(P3,(t,r)=>{if(e.hasChild(t)){const i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(J3(t,r,i))}else n.trackChildChange(W3(t,r))})),t.withIndex(this.index_)}updatePriority(e,t){return e.isEmpty()?U3.EMPTY_NODE:e.updatePriority(t)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}
1031/**
1032     * @license
1033     * Copyright 2017 Google LLC
1034     *
1035     * Licensed under the Apache License, Version 2.0 (the "License");
1036     * you may not use this file except in compliance with the License.
1037     * You may obtain a copy of the License at
1038     *
1039     *   http://www.apache.org/licenses/LICENSE-2.0
1040     *
1041     * Unless required by applicable law or agreed to in writing, software
1042     * distributed under the License is distributed on an "AS IS" BASIS,
1043     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1044     * See the License for the specific language governing permissions and
1045     * limitations under the License.
1046     */class Q3{constructor(e){this.indexedFilter_=new K3(e.getIndex()),this.index_=e.getIndex(),this.startPost_=Q3.getStartPost_(e),this.endPost_=Q3.getEndPost_(e),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(e){const t=this.startIsInclusive_?this.index_.compare(this.getStartPost(),e)<=0:this.index_.compare(this.getStartPost(),e)<0,n=this.endIsInclusive_?this.index_.compare(e,this.getEndPost())<=0:this.index_.compare(e,this.getEndPost())<0;return t&&n}updateChild(e,t,n,r,i,a){return this.matches(new m3(t,n))||(n=U3.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,a)}updateFullNode(e,t,n){t.isLeafNode()&&(t=U3.EMPTY_NODE);let r=t.withIndex(this.index_);r=r.updatePriority(U3.EMPTY_NODE);const i=this;return t.forEachChild(P3,(e,t)=>{i.matches(new m3(e,t))||(r=r.updateImmediateChild(e,U3.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,r,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(e){if(e.hasStart()){const t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}static getEndPost_(e){if(e.hasEnd()){const t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}
1047/**
1048     * @license
1049     * Copyright 2017 Google LLC
1050     *
1051     * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 10,466 bytes, lines 1052-1115
1052     * you may not use this file except in compliance with the License.
1053     * You may obtain a copy of the License at
1054     *
1055     *   http://www.apache.org/licenses/LICENSE-2.0
1056     *
1057     * Unless required by applicable law or agreed to in writing, software
1058     * distributed under the License is distributed on an "AS IS" BASIS,
1059     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1060     * See the License for the specific language governing permissions and
1061     * limitations under the License.
1062     */class Z3{constructor(e){this.withinDirectionalStart=e=>this.reverse_?this.withinEndPost(e):this.withinStartPost(e),this.withinDirectionalEnd=e=>this.reverse_?this.withinStartPost(e):this.withinEndPost(e),this.withinStartPost=e=>{const t=this.index_.compare(this.rangedFilter_.getStartPost(),e);return this.startIsInclusive_?t<=0:t<0},this.withinEndPost=e=>{const t=this.index_.compare(e,this.rangedFilter_.getEndPost());return this.endIsInclusive_?t<=0:t<0},this.rangedFilter_=new Q3(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft(),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}updateChild(e,t,n,r,i,a){return this.rangedFilter_.matches(new m3(t,n))||(n=U3.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,a):this.fullLimitUpdateChild_(e,t,n,i,a)}updateFullNode(e,t,n){let r;if(t.isLeafNode()||t.isEmpty())r=U3.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){let e;r=U3.EMPTY_NODE.withIndex(this.index_),e=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let n=0;for(;e.hasNext()&&n<this.limit_;){const t=e.getNext();if(this.withinDirectionalStart(t)){if(!this.withinDirectionalEnd(t))break;r=r.updateImmediateChild(t.name,t.node),n++}}}else{let e;r=t.withIndex(this.index_),r=r.updatePriority(U3.EMPTY_NODE),e=this.reverse_?r.getReverseIterator(this.index_):r.getIterator(this.index_);let n=0;for(;e.hasNext();){const t=e.getNext();n<this.limit_&&this.withinDirectionalStart(t)&&this.withinDirectionalEnd(t)?n++:r=r.updateImmediateChild(t.name,U3.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(e,t,n,r,i){let a;if(this.reverse_){const e=this.index_.getCompare();a=(t,n)=>e(n,t)}else a=this.index_.getCompare();const s=e;M0(s.numChildren()===this.limit_,"");const o=new m3(t,n),l=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),u=this.rangedFilter_.matches(o);if(s.hasChild(t)){const e=s.getImmediateChild(t);let c=r.getChildAfterChild(this.index_,l,this.reverse_);for(;null!=c&&(c.name===t||s.hasChild(c.name));)c=r.getChildAfterChild(this.index_,c,this.reverse_);const d=null==c?1:a(c,o);if(u&&!n.isEmpty()&&d>=0)return null!=i&&i.trackChildChange(J3(t,n,e)),s.updateImmediateChild(t,n);{null!=i&&i.trackChildChange(z3(t,e));const n=s.updateImmediateChild(t,U3.EMPTY_NODE);return null!=c&&this.rangedFilter_.matches(c)?(null!=i&&i.trackChildChange(W3(c.name,c.node)),n.updateImmediateChild(c.name,c.node)):n}}return n.isEmpty()?e:u&&a(l,o)>=0?(null!=i&&(i.trackChildChange(z3(l.name,l.node)),i.trackChildChange(W3(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(l.name,U3.EMPTY_NODE)):e}}
1063/**
1064     * @license
1065     * Copyright 2017 Google LLC
1066     *
1067     * Licensed under the Apache License, Version 2.0 (the "License");
1068     * you may not use this file except in compliance with the License.
1069     * You may obtain a copy of the License at
1070     *
1071     *   http://www.apache.org/licenses/LICENSE-2.0
1072     *
1073     * Unless required by applicable law or agreed to in writing, software
1074     * distributed under the License is distributed on an "AS IS" BASIS,
1075     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1076     * See the License for the specific language governing permissions and
1077     * limitations under the License.
1078     */class X3{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=P3}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return M0(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return M0(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:f4}hasEnd(){return this.endSet_}getIndexEndValue(){return M0(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return M0(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:B4}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return M0(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===P3}copy(){const e=new X3;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function e5(e){const t={};if(e.isDefault())return t;let n;if(e.index_===P3?n="$priority":e.index_===q3?n="$value":e.index_===C3?n="$key":(M0(e.index_ instanceof V3,"Unrecognized index type!"),n=e.index_.toString()),t.orderBy=s1(n),e.startSet_){const n=e.startAfterSet_?"startAfter":"startAt";t[n]=s1(e.indexStartValue_),e.startNameSet_&&(t[n]+=","+s1(e.indexStartName_))}if(e.endSet_){const n=e.endBeforeSet_?"endBefore":"endAt";t[n]=s1(e.indexEndValue_),e.endNameSet_&&(t[n]+=","+s1(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function t5(e){const t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==P3&&(t.i=e.index_.toString()),t}
1079/**
1080     * @license
1081     * Copyright 2017 Google LLC
1082     *
1083     * Licensed under the Apache License, Version 2.0 (the "License");
1084     * you may not use this file except in compliance with the License.
1085     * You may obtain a copy of the License at
1086     *
1087     *   http://www.apache.org/licenses/LICENSE-2.0
1088     *
1089     * Unless required by applicable law or agreed to in writing, software
1090     * distributed under the License is distributed on an "AS IS" BASIS,
1091     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1092     * See the License for the specific language governing permissions and
1093     * limitations under the License.
1094     */class n5 extends z4{reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,t){return void 0!==t?"tag$"+t:(M0(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}constructor(e,t,n,r){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=n,this.appCheckTokenProvider_=r,this.log_=u4("p:rest:"),this.listens_={}}listen(e,t,n,r){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const a=n5.getListenId_(e,n),s={};this.listens_[a]=s;const o=e5(e._queryParams);this.restRequest_(i+".json",o,(e,t)=>{let o=t;if(404===e&&(o=null,e=null),null===e&&this.onDataUpdate_(i,o,!1,n),u1(this.listens_,a)===s){let t;t=e?401===e?"permission_denied":"rest_error:"+e:"ok",r(t,null)}})}unlisten(e,t){const n=n5.getListenId_(e,t);delete this.listens_[n]}get(e){const t=e5(e._queryParams),n=e._path.toString(),r=new Q0;return this.restRequest_(n+".json",t,(e,t)=>{let i=t;404===e&&(i=null,e=null),null===e?(this.onDataUpdate_(n,i,!1,null),r.resolve(i)):r.reject(new Error(i))}),r.promise}refreshAuthToken(e){}restRequest_(e,t={},n){return t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([r,i])=>{r&&r.accessToken&&(t.auth=r.accessToken),i&&i.token&&(t.ac=i.token);const a=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+f1(t);this.log_("Sending REST request for "+a);const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(n&&4===s.readyState){this.log_("REST Response for "+a+" received. status:",s.status,"response:",s.responseText);let e=null;if(s.status>=200&&s.status<300){try{e=a1(s.responseText)}catch(zle){h4("Failed to parse JSON response for "+a+": "+s.responseText)}n(null,e)}else 401!==s.status&&404!==s.status&&h4("Got unsuccessful REST response for "+a+" Status: "+s.status),n(s.status);n=null}},s.open("GET",a,!0),s.send()})}}
1095/**
1096     * @license
1097     * Copyright 2017 Google LLC
1098     *
1099     * Licensed under the Apache License, Version 2.0 (the "License");
1100     * you may not use this file except in compliance with the License.
1101     * You may obtain a copy of the License at
1102     *
1103     *   http://www.apache.org/licenses/LICENSE-2.0
1104     *
1105     * Unless required by applicable law or agreed to in writing, software
1106     * distributed under the License is distributed on an "AS IS" BASIS,
1107     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1108     * See the License for the specific language governing permissions and
1109     * limitations under the License.
1110     */class r5{constructor(){this.rootNode_=U3.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}
1111/**
1112     * @license
1113     * Copyright 2017 Google LLC
1114     *
1115     * Licensed under the Apache License, Version 2.0 (the "License");
1116     * you may not use this file except in compliance with the License.
1117     * You may obtain a copy of the License at
1118     *
1119     *   http://www.apache.org/licenses/LICENSE-2.0
1120     *
1121     * Unless required by applicable law or agreed to in writing, software
1122     * distributed under the License is distributed on an "AS IS" BASIS,
1123     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1124     * See the License for the specific language governing permissions and
1125     * limitations under the License.
1126     */function i5(){return{value:null,children:new Map}}function a5(e,t,n){if(s3(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{const r=X4(t);e.children.has(r)||e.children.set(r,i5()),a5(e.children.get(r),t=t3(t),n)}}function s5(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach((e,n)=>{t(n,e)})}
1127/**
1128     * @license
1129     * Copyright 2017 Google LLC
1130     *
1131     * Licensed under the Apache License, Version 2.0 (the "License");
1132     * you may not use this file except in compliance with the License.
1133     * You may obtain a copy of the License at
1134     *
1135     *   http://www.apache.org/licenses/LICENSE-2.0
1136     *
1137     * Unless required by applicable law or agreed to in writing, software
1138     * distributed under the License is distributed on an "AS IS" BASIS,
1139     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1140     * See the License for the specific language governing permissions and
1141     * limitations under the License.
1142     */(e,(e,r)=>{s5(r,new Q4(t.toString()+"/"+e),n)})}class o5{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),t={...e};return this.last_&&_4(this.last_,(e,n)=>{t[e]=t[e]-n}),this.last_=e,t}}
1143/**
1144     * @license
1145     * Copyright 2017 Google LLC
1146     *
1147     * Licensed under the Apache License, Version 2.0 (the "License");
1148     * you may not use this file except in compliance with the License.
1149     * You may obtain a copy of the License at
1150     *
1151     *   http://www.apache.org/licenses/LICENSE-2.0
1152     *
1153     * Unless required by applicable law or agreed to in writing, software
1154     * distributed under the License is distributed on an "AS IS" BASIS,
1155     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1156     * See the License for the specific language governing permissions and
1157     * limitations under the License.
1158     */class l5{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new o5(e);const n=1e4+2e4*Math.random();k4(this.reportStats_.bind(this),Math.floor(n))}reportStats_(){const e=this.statsListener_.get(),t={};let n=!1;_4(e,(e,r)=>{r>0&&l1(this.statsToReport_,e)&&(t[e]=r,n=!0)}),n&&this.server_.reportStats(t),k4(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}
1159/**
1160     * @license
1161     * Copyright 2017 Google LLC
1162     *
1163     * Licensed under the Apache License, Version 2.0 (the "License");
1164     * you may not use this file except in compliance with the License.
1165     * You may obtain a copy of the License at
1166     *
1167     *   http://www.apache.org/licenses/LICENSE-2.0
1168     *
1169     * Unless required by applicable law or agreed to in writing, software
1170     * distributed under the License is distributed on an "AS IS" BASIS,
1171     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1172     * See the License for the specific language governing permissions and
1173     * limitations under the License.
1174     */var u5,c5;function d5(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}
1175/**
1176     * @license
1177     * Copyright 2017 Google LLC
1178     *
1179     * Licensed under the Apache License, Version 2.0 (the "License");
1180     * you may not use this file except in compliance with the License.
1181     * You may obtain a copy of the License at
1182     *
1183     *   http://www.apache.org/licenses/LICENSE-2.0
1184     *
1185     * Unless required by applicable law or agreed to in writing, software
1186     * distributed under the License is distributed on an "AS IS" BASIS,
1187     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1188     * See the License for the specific language governing permissions and
1189     * limitations under the License.
1190     */(c5=u5||(u5={}
vendor: 4,839 bytes, lines 1190-1259
1190))[c5.OVERWRITE=0]="OVERWRITE",c5[c5.MERGE=1]="MERGE",c5[c5.ACK_USER_WRITE=2]="ACK_USER_WRITE",c5[c5.LISTEN_COMPLETE=3]="LISTEN_COMPLETE";class h5{constructor(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=u5.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(e){if(s3(this.path)){if(null!=this.affectedTree.value)return M0(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const t=this.affectedTree.subtree(new Q4(e));return new h5(Z4(),t,this.revert)}}return M0(X4(this.path)===e,"operationForChild called for unrelated child."),new h5(t3(this.path),this.affectedTree,this.revert)}}
1191/**
1192     * @license
1193     * Copyright 2017 Google LLC
1194     *
1195     * Licensed under the Apache License, Version 2.0 (the "License");
1196     * you may not use this file except in compliance with the License.
1197     * You may obtain a copy of the License at
1198     *
1199     *   http://www.apache.org/licenses/LICENSE-2.0
1200     *
1201     * Unless required by applicable law or agreed to in writing, software
1202     * distributed under the License is distributed on an "AS IS" BASIS,
1203     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1204     * See the License for the specific language governing permissions and
1205     * limitations under the License.
1206     */class p5{constructor(e,t){this.source=e,this.path=t,this.type=u5.LISTEN_COMPLETE}operationForChild(e){return s3(this.path)?new p5(this.source,Z4()):new p5(this.source,t3(this.path))}}
1207/**
1208     * @license
1209     * Copyright 2017 Google LLC
1210     *
1211     * Licensed under the Apache License, Version 2.0 (the "License");
1212     * you may not use this file except in compliance with the License.
1213     * You may obtain a copy of the License at
1214     *
1215     *   http://www.apache.org/licenses/LICENSE-2.0
1216     *
1217     * Unless required by applicable law or agreed to in writing, software
1218     * distributed under the License is distributed on an "AS IS" BASIS,
1219     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1220     * See the License for the specific language governing permissions and
1221     * limitations under the License.
1222     */class f5{constructor(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=u5.OVERWRITE}operationForChild(e){return s3(this.path)?new f5(this.source,Z4(),this.snap.getImmediateChild(e)):new f5(this.source,t3(this.path),this.snap)}}
1223/**
1224     * @license
1225     * Copyright 2017 Google LLC
1226     *
1227     * Licensed under the Apache License, Version 2.0 (the "License");
1228     * you may not use this file except in compliance with the License.
1229     * You may obtain a copy of the License at
1230     *
1231     *   http://www.apache.org/licenses/LICENSE-2.0
1232     *
1233     * Unless required by applicable law or agreed to in writing, software
1234     * distributed under the License is distributed on an "AS IS" BASIS,
1235     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1236     * See the License for the specific language governing permissions and
1237     * limitations under the License.
1238     */class B5{constructor(e,t,n){this.source=e,this.path=t,this.children=n,this.type=u5.MERGE}operationForChild(e){if(s3(this.path)){const t=this.children.subtree(new Q4(e));return t.isEmpty()?null:t.value?new f5(this.source,Z4(),t.value):new B5(this.source,Z4(),t)}return M0(X4(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new B5(this.source,t3(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}
1239/**
1240     * @license
1241     * Copyright 2017 Google LLC
1242     *
1243     * Licensed under the Apache License, Version 2.0 (the "License");
1244     * you may not use this file except in compliance with the License.
1245     * You may obtain a copy of the License at
1246     *
1247     *   http://www.apache.org/licenses/LICENSE-2.0
1248     *
1249     * Unless required by applicable law or agreed to in writing, software
1250     * distributed under the License is distributed on an "AS IS" BASIS,
1251     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1252     * See the License for the specific language governing permissions and
1253     * limitations under the License.
1254     */class m5{constructor(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(s3(e))return this.isFullyInitialized()&&!this.filtered_;const t=X4(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}
1255/**
1256     * @license
1257     * Copyright 2017 Google LLC
1258     *
1259     * Licensed under the Apache License, Version 2.0 (the "License");
1260     * you may not use this file except in compliance with the License.
1261     * You may obtain a copy of the License at
1262     *
1263     *   http://www.apache.org/licenses/LICENSE-2.0
1264     *
1265     * Unless required by applicable law or agreed to in writing, software
1266     * distributed under the License is distributed on an "AS IS" BASIS,
1267     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1268     * See the License for the specific language governing permissions and
1269     * limitations under the License.
1270     */class g5{constructor(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}function v5(e,t,n,r,i,a){const s=r.filter(e=>e.type===n);s.sort((t,n)=>function(e,t,n){if(null==t.childName||null==n.childName)throw F0("Should only compare child_ events.");const r=new m3(t.childName,t.snapshotNode),i=new m3(n.childName,n.snapshotNode);return e.index_.compare(r,i)}
1271/**
1272     * @license
1273     * Copyright 2017 Google LLC
1274     *
1275     * Licensed under the Apache License, Version 2.0 (the "License");
1276     * you may not use this file except in compliance with the License.
1277     * You may obtain a copy of the License at
1278     *
1279     *   http://www.apache.org/licenses/LICENSE-2.0
1280     *
1281     * Unless required by applicable law or agreed to in writing, software
1282     * distributed under the License is distributed on an "AS IS" BASIS,
1283     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1284     * See the License for the specific language governing permissions and
1285     * limitations under the License.
vendor: 4,367 bytes, lines 1286-1318
1286     */(e,t,n)),s.forEach(n=>{const r=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,a);i.forEach(i=>{i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))})})}function y5(e,t){return{eventCache:e,serverCache:t}}function C5(e,t,n,r){return y5(new m5(t,n,r),e.serverCache)}function _5(e,t,n,r){return y5(e.eventCache,new m5(t,n,r))}function b5(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function w5(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}
1287/**
1288     * @license
1289     * Copyright 2017 Google LLC
1290     *
1291     * Licensed under the Apache License, Version 2.0 (the "License");
1292     * you may not use this file except in compliance with the License.
1293     * You may obtain a copy of the License at
1294     *
1295     *   http://www.apache.org/licenses/LICENSE-2.0
1296     *
1297     * Unless required by applicable law or agreed to in writing, software
1298     * distributed under the License is distributed on an "AS IS" BASIS,
1299     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1300     * See the License for the specific language governing permissions and
1301     * limitations under the License.
1302     */let D5;class E5{static fromObject(e){let t=new E5(null);return _4(e,(e,n)=>{t=t.set(new Q4(e),n)}),t}constructor(e,t=(()=>(D5||(D5=new D3(g4)),D5))()){this.value=e,this.children=t}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(null!=this.value&&t(this.value))return{path:Z4(),value:this.value};if(s3(e))return null;{const n=X4(e),r=this.children.get(n);if(null!==r){const i=r.findRootMostMatchingPathAndValue(t3(e),t);return null!=i?{path:a3(new Q4(n),i.path),value:i.value}:null}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(e){if(s3(e))return this;{const t=X4(e),n=this.children.get(t);return null!==n?n.subtree(t3(e)):new E5(null)}}set(e,t){if(s3(e))return new E5(t,this.children);{const n=X4(e),r=(this.children.get(n)||new E5(null)).set(t3(e),t),i=this.children.insert(n,r);return new E5(this.value,i)}}remove(e){if(s3(e))return this.children.isEmpty()?new E5(null):new E5(null,this.children);{const t=X4(e),n=this.children.get(t);if(n){const r=n.remove(t3(e));let i;return i=r.isEmpty()?this.children.remove(t):this.children.insert(t,r),null===this.value&&i.isEmpty()?new E5(null):new E5(this.value,i)}return this}}get(e){if(s3(e))return this.value;{const t=X4(e),n=this.children.get(t);return n?n.get(t3(e)):null}}setTree(e,t){if(s3(e))return t;{const n=X4(e),r=(this.children.get(n)||new E5(null)).setTree(t3(e),t);let i;return i=r.isEmpty()?this.children.remove(n):this.children.insert(n,r),new E5(this.value,i)}}fold(e){return this.fold_(Z4(),e)}fold_(e,t){const n={};return this.children.inorderTraversal((r,i)=>{n[r]=i.fold_(a3(e,r),t)}),t(e,this.value,n)}findOnPath(e,t){return this.findOnPath_(e,Z4(),t)}findOnPath_(e,t,n){const r=!!this.value&&n(t,this.value);if(r)return r;if(s3(e))return null;{const r=X4(e),i=this.children.get(r);return i?i.findOnPath_(t3(e),a3(t,r),n):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,Z4(),t)}foreachOnPath_(e,t,n){if(s3(e))return this;{this.value&&n(t,this.value);const r=X4(e),i=this.children.get(r);return i?i.foreachOnPath_(t3(e),a3(t,r),n):new E5(null)}}foreach(e){this.foreach_(Z4(),e)}foreach_(e,t){this.children.inorderTraversal((n,r)=>{r.foreach_(a3(e,n),t)}),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal((t,n)=>{n.value&&e(t,n.value)})}}
1303/**
1304     * @license
1305     * Copyright 2017 Google LLC
1306     *
1307     * Licensed under the Apache License, Version 2.0 (the "License");
1308     * you may not use this file except in compliance with the License.
1309     * You may obtain a copy of the License at
1310     *
1311     *   http://www.apache.org/licenses/LICENSE-2.0
1312     *
1313     * Unless required by applicable law or agreed to in writing, software
1314     * distributed under the License is distributed on an "AS IS" BASIS,
1315     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316     * See the License for the specific language governing permissions and
1317     * limitations under the License.
1318     */class k5{constructor(e){this.writeTree_=e}static empty(){return new k5(new E5(null))}}
1318function S5(e,t,n){if(s3(t))return new k5(new E5(n));{const r=e.writeTree_.findRootMostValueAndPath(t);if(null!=r){const i=r.path;let a=r.value;const s=o3(i,t);return a=a.updateChild(s,n),new k5(e.writeTree_.set(i,a))}{const r=new E5(n),i=e.writeTree_.setTree(t,r);return new k5(i)}}}function x5(e,t,n){let r=e;return _4(n,(e,n)=>{r=S5(r,a3(t,e),n)}),r}function T5(e,t){if(s3(t))return k5.empty();{const n=e.writeTree_.setTree(t,new E5(null));return new k5(n)}}function O5(e,t){return null!=A5(e,t)}function A5(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(o3(n.path,t)):null}function I5(e){const t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(P3,(e,n)=>{t.push(new m3(e,n))}):e.writeTree_.children.inorderTraversal((e,n)=>{null!=n.value&&t.push(new m3(e,n.value))}),t}function P5(e,t){if(s3(t))return e;{const n=A5(e,t);return new k5(null!=n?new E5(n):e.writeTree_.subtree(t))}}function N5(e){return e.writeTree_.isEmpty()}function R5(e,t){return M5(Z4(),e.writeTree_,t)}function M5(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal((t,i)=>{".priority"===t?(M0(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=M5(a3(e,t),i,n)}),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(a3(e,".priority"),r)),n}}
1319/**
1320     * @license
1321     * Copyright 2017 Google LLC
1322     *
1323     * Licensed under the Apache License, Version 2.0 (the "License");
1324     * you may not use this file except in compliance with the License.
1325     * You may obtain a copy of the License at
1326     *
1327     *   http://www.apache.org/licenses/LICENSE-2.0
1328     *
1329     * Unless required by applicable law or agreed to in writing, software
1330     * distributed under the License is distributed on an "AS IS" BASIS,
1331     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1332     * See the License for the specific language governing permissions and
1333     * limitations under the License.
1334     */function F5(e,t){return K5(t,e)}function L5(e,t){const n=e.allWrites.findIndex(e=>e.writeId===t);M0(n>=0,"removeWrite called with nonexistent writeId.");const r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,a=!1,s=e.allWrites.length-1;for(;i&&s>=0;){const t=e.allWrites[s];t.visible&&(s>=n&&j5(t,r.path)?i=!1:u3(r.path,t.path)&&(a=!0)),s--}return!!i&&(a?(function(e){e.visibleWrites=U5(e.allWrites,H5,Z4()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}(e),!0):(r.snap?e.visibleWrites=T5(e.visibleWrites,r.path):_4(r.children,t=>{e.visibleWrites=T5(e.visibleWrites,a3(r.path,t))}),!0))}function j5(e,t){if(e.snap)return u3(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&u3(a3(e.path,n),t))return!0;return!1}function H5(e){return e.visible}function U5(e,t,n){let r=k5.empty();for(let i=0;i<e.length;++i){const a=e[i];if(t(a)){const e=a.path;let t;if(a.snap)u3(n,e)?(t=o3(n,e),r=S5(r,t,a.snap)):u3(e,n)&&(t=o3(e,n),r=S5(r,Z4(),a.snap.getChild(t)));else{if(!a.children)throw F0("WriteRecord should have .snap or .children");if(u3(n,e))t=o3(n,e),r=x5(r,t,a.children);else if(u3(e,n))if(t=o3(e,n),s3(t))r=x5(r,Z4(),a.children);else{const e=u1(a.children,X4(t));if(e){const n=e.getChild(t3(t));r=S5(r,Z4(),n)}}}}}return r}function G5(e,t,n,r,i){if(r||i){const a=P5(e.visibleWrites,t);if(!i&&N5(a))return n;if(i||null!=n||O5(a,Z4())){const a=function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(u3(e.path,t)||u3(t,e.path))};return R5(U5(e.allWrites,a,t),n||U3.EMPTY_NODE)}return null}{const r=A5(e.visibleWrites,t);if(null!=r)return r;{const r=P5(e.visibleWrites,t);return N5(r)?n:null!=n||O5(r,Z4())?R5(r,n||U3.EMPTY_NODE):null}}}function Y5(e,t,n,r){return G5(e.writeTree,e.treePath,t,n,r)}function V5(e,t){return function(e,t,n){let r=U3.EMPTY_NODE;const i=A5(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(P3,(e,t)=>{r=r.updateImmediateChild(e,t)}),r;if(n){const i=P5(e.visibleWrites,t);return n.forEachChild(P3,(e,t)=>{const n=R5(P5(i,new Q4(e)),t);r=r.updateImmediateChild(e,n)}
vendor: 12,015 bytes, lines 1334-1398
1334),I5(i).forEach(e=>{r=r.updateImmediateChild(e.name,e.node)}),r}return I5(P5(e.visibleWrites,t)).forEach(e=>{r=r.updateImmediateChild(e.name,e.node)}),r}(e.writeTree,e.treePath,t)}function q5(e,t,n,r){return function(e,t,n,r,i){M0(r||i,"Either existingEventSnap or existingServerSnap must exist");const a=a3(t,n);if(O5(e.visibleWrites,a))return null;{const t=P5(e.visibleWrites,a);return N5(t)?i.getChild(n):R5(t,i.getChild(n))}}(e.writeTree,e.treePath,t,n,r)}function $5(e,t){return function(e,t){return A5(e.visibleWrites,t)}(e.writeTree,a3(e.treePath,t))}function W5(e,t,n,r,i,a){return function(e,t,n,r,i,a,s){let o;const l=P5(e.visibleWrites,t),u=A5(l,Z4());if(null!=u)o=u;else{if(null==n)return[];o=R5(l,n)}if(o=o.withIndex(s),o.isEmpty()||o.isLeafNode())return[];{const e=[],t=s.getCompare(),n=a?o.getReverseIteratorFrom(r,s):o.getIteratorFrom(r,s);let l=n.getNext();for(;l&&e.length<i;)0!==t(l,r)&&e.push(l),l=n.getNext();return e}}(e.writeTree,e.treePath,t,n,r,i,a)}function z5(e,t,n){return function(e,t,n,r){const i=a3(t,n),a=A5(e.visibleWrites,i);return null!=a?a:r.isCompleteForChild(n)?R5(P5(e.visibleWrites,i),r.getNode().getImmediateChild(n)):null}(e.writeTree,e.treePath,t,n)}function J5(e,t){return K5(a3(e.treePath,t),e.writeTree)}function K5(e,t){return{treePath:e,writeTree:t}}
1335/**
1336     * @license
1337     * Copyright 2017 Google LLC
1338     *
1339     * Licensed under the Apache License, Version 2.0 (the "License");
1340     * you may not use this file except in compliance with the License.
1341     * You may obtain a copy of the License at
1342     *
1343     *   http://www.apache.org/licenses/LICENSE-2.0
1344     *
1345     * Unless required by applicable law or agreed to in writing, software
1346     * distributed under the License is distributed on an "AS IS" BASIS,
1347     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1348     * See the License for the specific language governing permissions and
1349     * limitations under the License.
1350     */class Q5{constructor(){this.changeMap=new Map}trackChildChange(e){const t=e.type,n=e.childName;M0("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),M0(".priority"!==n,"Only non-priority child changes can be tracked.");const r=this.changeMap.get(n);if(r){const i=r.type;if("child_added"===t&&"child_removed"===i)this.changeMap.set(n,J3(n,e.snapshotNode,r.snapshotNode));else if("child_removed"===t&&"child_added"===i)this.changeMap.delete(n);else if("child_removed"===t&&"child_changed"===i)this.changeMap.set(n,z3(n,r.oldSnap));else if("child_changed"===t&&"child_added"===i)this.changeMap.set(n,W3(n,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==i)throw F0("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,J3(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)}getChanges(){return Array.from(this.changeMap.values())}}
1351/**
1352     * @license
1353     * Copyright 2017 Google LLC
1354     *
1355     * Licensed under the Apache License, Version 2.0 (the "License");
1356     * you may not use this file except in compliance with the License.
1357     * You may obtain a copy of the License at
1358     *
1359     *   http://www.apache.org/licenses/LICENSE-2.0
1360     *
1361     * Unless required by applicable law or agreed to in writing, software
1362     * distributed under the License is distributed on an "AS IS" BASIS,
1363     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1364     * See the License for the specific language governing permissions and
1365     * limitations under the License.
1366     */const Z5=new class{getCompleteChild(e){return null}getChildAfterChild(e,t,n){return null}};class X5{constructor(e,t,n=null){this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}getCompleteChild(e){const t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{const t=null!=this.optCompleteServerCache_?new m5(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return z5(this.writes_,e,t)}}getChildAfterChild(e,t,n){const r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:w5(this.viewCache_),i=W5(this.writes_,r,t,1,n,e);return 0===i.length?null:i[0]}}
1367/**
1368     * @license
1369     * Copyright 2017 Google LLC
1370     *
1371     * Licensed under the Apache License, Version 2.0 (the "License");
1372     * you may not use this file except in compliance with the License.
1373     * You may obtain a copy of the License at
1374     *
1375     *   http://www.apache.org/licenses/LICENSE-2.0
1376     *
1377     * Unless required by applicable law or agreed to in writing, software
1378     * distributed under the License is distributed on an "AS IS" BASIS,
1379     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1380     * See the License for the specific language governing permissions and
1381     * limitations under the License.
1382     */function e6(e,t,n,r,i){const a=new Q5;let s,o;if(n.type===u5.OVERWRITE){const l=n;l.source.fromUser?s=r6(e,t,l.path,l.snap,r,i,a):(M0(l.source.fromServer,"Unknown source."),o=l.source.tagged||t.serverCache.isFiltered()&&!s3(l.path),s=n6(e,t,l.path,l.snap,r,i,o,a))}else if(n.type===u5.MERGE){const l=n;l.source.fromUser?s=function(e,t,n,r,i,a,s){let o=t;return r.foreach((r,l)=>{const u=a3(n,r);i6(t,X4(u))&&(o=r6(e,o,u,l,i,a,s))}),r.foreach((r,l)=>{const u=a3(n,r);i6(t,X4(u))||(o=r6(e,o,u,l,i,a,s))}),o}(e,t,l.path,l.children,r,i,a):(M0(l.source.fromServer,"Unknown source."),o=l.source.tagged||t.serverCache.isFiltered(),s=s6(e,t,l.path,l.children,r,i,o,a))}else if(n.type===u5.ACK_USER_WRITE){const o=n;s=o.revert?function(e,t,n,r,i,a){let s;if(null!=$5(r,n))return t;{const o=new X5(r,t,i),l=t.eventCache.getNode();let u;if(s3(n)||".priority"===X4(n)){let n;if(t.serverCache.isFullyInitialized())n=Y5(r,w5(t));else{const e=t.serverCache.getNode();M0(e instanceof U3,"serverChildren would be complete if leaf node"),n=V5(r,e)}u=e.filter.updateFullNode(l,n,a)}else{const i=X4(n);let c=z5(r,i,t.serverCache);null==c&&t.serverCache.isCompleteForChild(i)&&(c=l.getImmediateChild(i)),u=null!=c?e.filter.updateChild(l,i,c,t3(n),o,a):t.eventCache.getNode().hasChild(i)?e.filter.updateChild(l,i,U3.EMPTY_NODE,t3(n),o,a):l,u.isEmpty()&&t.serverCache.isFullyInitialized()&&(s=Y5(r,w5(t)),s.isLeafNode()&&(u=e.filter.updateFullNode(u,s,a)))}return s=t.serverCache.isFullyInitialized()||null!=$5(r,Z4()),C5(t,u,s,e.filter.filtersNodes())}}
1383/**
1384     * @license
1385     * Copyright 2017 Google LLC
1386     *
1387     * Licensed under the Apache License, Version 2.0 (the "License");
1388     * you may not use this file except in compliance with the License.
1389     * You may obtain a copy of the License at
1390     *
1391     *   http://www.apache.org/licenses/LICENSE-2.0
1392     *
1393     * Unless required by applicable law or agreed to in writing, software
1394     * distributed under the License is distributed on an "AS IS" BASIS,
1395     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1396     * See the License for the specific language governing permissions and
1397     * limitations under the License.
1398     */(e,t,o.path,r,i,a):function(e,t,n,r,i,a,s){if(null!=$5(i,n))return t;const o=t.serverCache.isFiltered(),l=t.serverCache;if(null!=r.value){if(s3(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return n6(e,t,n,l.getNode().getChild(n),i,a,o,s);if(s3(n)){let r=new E5(null);return l.getNode().forEachChild(C3,(e,t)=>{r=r.set(new Q4(e),t)}),s6(e,t,n,r,i,a,o,s)}return t}{let u=new E5(null);return r.foreach((e,t)=>{const r=a3(n,e);l.isCompleteForPath(r)&&(u=u.set(e,l.getNode().getChild(r)))}),s6(e,t,n,u,i,a,o,s)}}(e,t,o.path,o.affectedTree,r,i,a)}else{if(n.type!==u5.LISTEN_COMPLETE)throw F0("Unknown operation type: "+n.type);s=function(e,t,n,r,i){const a=t.serverCache,s=_5(t,a.getNode(),a.isFullyInitialized()||s3(n),a.isFiltered());return t6(e,s,n,r,Z5,i)}(e,t,n.path,r,a)}const l=a.getChanges();return function(e,t,n){const r=t.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),a=b5(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(a)||!r.getNode().getPriority().equals(a.getPriority()))&&n.push($3(b5(t)))}}(t,s,l),{viewCache:s,changes:l}}function t6(e,t,n,r,i,a){const s=t.eventCache;if(null!=$5(r,n))return t;{let o,l;if(s3(n))if(M0(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const n=w5(t),i=V5(r,n instanceof U3?n:U3.EMPTY_NODE);o=e.filter.updateFullNode(t.eventCache.getNode(),i,a)}else{const n=Y5(r,w5(t));o=e.filter.updateFullNode(t.eventCache.getNode(),n,a)}else{const u=X4(n);if(".priority"===u){M0(1===e3(n),"Can't have a priority with additional path components");const i=s.getNode();l=t.serverCache.getNode();const a=q5(r,n,i,l);o=null!=a?e.filter.updatePriority(i,a):s.getNode()}else{const c=t3(n);let d;if(s.isCompleteForChild(u)){l=t.serverCache.getNode();const e=q5(r,n,s.getNode(),l);d=null!=e?s.getNode().getImmediateChild(u).updateChild(c,e):s.getNode().getImmediateChild(u)}else d=z5(r,u,t.serverCache);o=null!=d?e.filter.updateChild(s.getNode(),u,d,c,i,a):s.getNode()}}return C5(t,o,s.isFullyInitialized()||s3(n),e.filter.filtersNodes())}}function n6(e,t,n,r,i,a,s,o){const l=t.serverCache;let u;const c=s?e.filter:e.filter.getIndexedFilter();if(s3(n))u=c.updateFullNode(l.getNode(),r,null);else if(c.filtersNodes()&&!l.isFiltered()){const e=l.getNode().updateChild(n,r);u=c.updateFullNode(l.getNode(),e,null)}else{const e=X4(n);if(!l.isCompleteForPath(n)&&e3(n)>1)return t;const i=t3(n),a=l.getNode().getImmediateChild(e).updateChild(i,r);u=".priority"===e?c.updatePriority(l.getNode(),a):c.updateChild(l.getNode(),e,a,i,Z5,null)}const d=_5(t,u,l.isFullyInitialized()||s3(n),c.filtersNodes());return t6(e,d,n,i,new X5(i,d,a),o)}function r6(e,t,n,r,i,a,s){const o=t.eventCache;let l,u;const c=new X5(i,t,a);if(s3(n))u=e.filter.updateFullNode(t.eventCache.getNode(),r,s),l=C5(t,u,!0,e.filter.filtersNodes());else{const i=X4(n);if(".priority"===i)u=e.filter.updatePriority(t.eventCache.getNode(),r),l=C5(t,u,o.isFullyInitialized(),o.isFiltered());else{const a=t3(n),u=o.getNode().getImmediateChild(i);let d;if(s3(a))d=r;else{const e=c.getCompleteChild(i);d=null!=e?".priority"===n3(a)&&e.getChild(i3(a)).isEmpty()?e:e.updateChild(a,r):U3.EMPTY_NODE}l=u.equals(d)?t:C5(t,e.filter.updateChild(o.getNode(),i,d,a,c,s),o.isFullyInitialized(),e.filter.filtersNodes())}}return l}function i6(e,t){return e.eventCache.isCompleteForChild(t)}function a6(e,t,n){return n.foreach((e,n)=>{t=t.updateChild(e,n)}),t}function s6(e,t,n,r,i,a,s,o){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l,u=t;l=s3(n)?r:new E5(null).setTree(n,r);const c=t.serverCache.getNode();return l.children.inorderTraversal((n,r)=>{if(c.hasChild(n)){const l=a6(0,t.serverCache.getNode().getImmediateChild(n),r);u=n6(e,u,new Q4(n),l,i,a,s,o)}}),l.children.inorderTraversal((n,r)=>{const l=!t.serverCache.isCompleteForChild(n)&&null===r.value;if(!c.hasChild(n)&&!l){const l=a6(0,t.serverCache.getNode().getImmediateChild(n),r);u=n6(e,u,new Q4(n),l,i,a,s,o)}}),u}class o6{constructor(e,t){this.query_=e,this.eventRegistrations_=[];const n=this.query_._queryParams,r=new K3(n.getIndex()),i=(a=n).loadsAllData()?new K3(a.getIndex()):a.hasLimit()?new Z3(a):new Q3(a);var a;this.processor_=function(e){return{filter:e}}(i);const s=t.serverCache,o=t.eventCache,l=r.updateFullNode(U3.EMPTY_NODE,s.getNode(),null),u=i.updateFullNode(U3.EMPTY_NODE,o.getNode(),null),c=new m5(l,s.isFullyInitialized(),r.filtersNodes()),d=new m5(u,o.isFullyInitialized(),i.filtersNodes());this.viewCache_=y5(d,c),this.eventGenerator_=new g5(this.query_)}get query(){return this.query_}}function l6(e,t){const n=w5(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!s3(t)&&!n.getImmediateChild(X4(t)).isEmpty())?n.getChild(t):null}function u6(e){return 0===e.eventRegistrations_.length}function c6(e,t,n){const r=[];if(n){M0(null==t,"A cancel should cancel all event registrations.");const i=e.query._path;
1398e.eventRegistrations_.forEach(e=>{const t=e.createCancelEvent(n,i);t&&r.push(t)})}if(t){let n=[];for(let r=0;r<e.eventRegistrations_.length;++r){const i=e.eventRegistrations_[r];if(i.matches(t)){if(t.hasAnyCallback()){n=n.concat(e.eventRegistrations_.slice(r+1));break}}else n.push(i)}e.eventRegistrations_=n}else e.eventRegistrations_=[];return r}function d6(e,t,n,r){t.type===u5.MERGE&&null!==t.source.queryId&&(M0(w5(e.viewCache_),"We should always have a full cache before handling merges"),M0(b5(e.viewCache_),"Missing event cache, even though we have a server cache"));const i=e.viewCache_,a=e6(e.processor_,i,t,n,r);var s,o;return s=e.processor_,o=a.viewCache,M0(o.eventCache.getNode().isIndexed(s.filter.getIndex()),"Event snap not indexed"),M0(o.serverCache.getNode().isIndexed(s.filter.getIndex()),"Server snap not indexed"),M0(a.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=a.viewCache,h6(e,a.changes,a.viewCache.eventCache.getNode(),null)}function h6(e,t,n,r){const i=r?[r]:e.eventRegistrations_;return function(e,t,n,r){const i=[],a=[];return t.forEach(t=>{var n;"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&a.push((n=t.childName,{type:"child_moved",snapshotNode:t.snapshotNode,childName:n}))}),v5(e,i,"child_removed",t,r,n),v5(e,i,"child_added",t,r,n),v5(e,i,"child_moved",a,r,n),v5(e,i,"child_changed",t,r,n),v5(e,i,"value",t,r,n),i}(e.eventGenerator_,t,n,i)}
1399/**
1400     * @license
1401     * Copyright 2017 Google LLC
1402     *
1403     * Licensed under the Apache License, Version 2.0 (the "License");
1404     * you may not use this file except in compliance with the License.
1405     * You may obtain a copy of the License at
1406     *
1407     *   http://www.apache.org/licenses/LICENSE-2.0
1408     *
1409     * Unless required by applicable law or agreed to in writing, software
1410     * distributed under the License is distributed on an "AS IS" BASIS,
1411     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1412     * See the License for the specific language governing permissions and
1413     * limitations under the License.
1414     */let p6,f6;class B6{constructor(){this.views=new Map}}function m6(e,t,n,r){const i=t.source.queryId;if(null!==i){const a=e.views.get(i);return M0(null!=a,"SyncTree gave us an op for an invalid query."),d6(a,t,n,r)}{let i=[];for(const a of e.views.values())i=i.concat(d6(a,t,n,r));return i}}function g6(e,t,n,r,i,a){const s=function(e,t,n,r,i){const a=t._queryIdentifier,s=e.views.get(a);if(!s){let e=Y5(n,i?r:null),a=!1;e?a=!0:r instanceof U3?(e=V5(n,r),a=!1):(e=U3.EMPTY_NODE,a=!1);const s=y5(new m5(e,a,!1),new m5(r,i,!1));return new o6(t,s)}return s}(e,t,r,i,a);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,s),function(e,t){e.eventRegistrations_.push(t)}(s,n),function(e,t){const n=e.viewCache_.eventCache,r=[];return n.getNode().isLeafNode()||n.getNode().forEachChild(P3,(e,t)=>{r.push(W3(e,t))}),n.isFullyInitialized()&&r.push($3(n.getNode())),h6(e,r,n.getNode(),t)}(s,n)}function v6(e,t,n,r){const i=t._queryIdentifier,a=[];let s=[];const o=w6(e);if("default"===i)for(const[l,u]of e.views.entries())s=s.concat(c6(u,n,r)),u6(u)&&(e.views.delete(l),u.query._queryParams.loadsAllData()||a.push(u.query));else{const t=e.views.get(i);t&&(s=s.concat(c6(t,n,r)),u6(t)&&(e.views.delete(i),t.query._queryParams.loadsAllData()||a.push(t.query)))}return o&&!w6(e)&&a.push(new(M0(p6,"Reference.ts has not been loaded"),p6)(t._repo,t._path)),{removed:a,events:s}}function y6(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function C6(e,t){let n=null;for(const r of e.views.values())n=n||l6(r,t);return n}function _6(e,t){if(t._queryParams.loadsAllData())return D6(e);{const n=t._queryIdentifier;return e.views.get(n)}}function b6(e,t){return null!=_6(e,t)}function w6(e){return null!=D6(e)}function D6(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}
1415/**
1416     * @license
1417     * Copyright 2017 Google LLC
1418     *
1419     * Licensed under the Apache License, Version 2.0 (the "License");
1420     * you may not use this file except in compliance with the License.
1421     * You may obtain a copy of the License at
1422     *
1423     *   http://www.apache.org/licenses/LICENSE-2.0
1424     *
1425     * Unless required by applicable law or agreed to in writing, software
1426     * distributed under the License is distributed on an "AS IS" BASIS,
1427     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1428     * See the License for the specific language governing permissions and
1429     * limitations under the License.
1430     */let E6=1;class k6{constructor(e){this.listenProvider_=e,this.syncPointTree_=new E5(null),this.pendingWriteTree_={visibleWrites:k5.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function S6(e,t,n,r,i){return function(e,t,n,r,i){M0(r>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=S5(e.visibleWrites,t,n)),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r,i),i?P6(e,new f5({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function x6(e,t,n=!1){const r=function(e,t){for(let n=0;n<e.allWrites.length;n++){const r=e.allWrites[n];if(r.writeId===t)return r}return null}(e.pendingWriteTree_,t);if(L5(e.pendingWriteTree_,t)){let t=new E5(null);return null!=r.snap?t=t.set(Z4(),!0):_4(r.children,e=>{t=t.set(new Q4(e),!0)}),P6(e,new h5(r.path,t,n))}return[]}function T6(e,t,n){return P6(e,new f5({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function O6(e,t,n,r,i=!1){const a=t._path,s=e.syncPointTree_.get(a);let o=[];if(s&&("default"===t._queryIdentifier||b6(s,t))){const l=v6(s,t,n,r);0===s.views.size&&(e.syncPointTree_=e.syncPointTree_.remove(a));const u=l.removed;if(o=l.events,!i){const n=-1!==u.findIndex(e=>e._queryParams.loadsAllData()),i=e.syncPointTree_.findOnPath(a,(e,t)=>w6(t));if(n&&!i){const t=e.syncPointTree_.subtree(a);if(!t.isEmpty()){const n=function(e){return e.fold((e,t,n)=>{if(t&&w6(t))return[D6(t)];{let e=[];return t&&(e=y6(t)),_4(n,(t,n)=>{e=e.concat(n)}),e}})}(t);for(let t=0;t<n.length;++t){const r=n[t],i=r.query,a=M6(e,r);e.listenProvider_.startListening(G6(i),F6(e,i),a.hashFn,a.onComplete)}}}if(!i&&u.length>0&&!r)if(n){const n=null;e.listenProvider_.stopListening(G6(t),n)}else u.forEach(t=>{const n=e.queryToTagMap.get(L6(t));e.listenProvider_.stopListening(G6(t),n)})}!function(e,t){for(let n=0;n<t.length;++n){const r=t[n];if(!r._queryParams.loadsAllData()){const t=L6(r),n=e.queryToTagMap.get(t);e.queryToTagMap.delete(t),e.tagToQueryMap.delete(n)}}}(e,u)}return o}function A6(e,t,n,r=!1){const i=t._path;let a=null,s=!1;e.syncPointTree_.foreachOnPath(i,(e,t)=>{const n=o3(e,i);a=a||C6(t,n),s=s||w6(t)});let o,l=e.syncPointTree_.get(i);l?(s=s||w6(l),a=a||C6(l,Z4())):(l=new B6,e.syncPointTree_=e.syncPointTree_.set(i,l)),null!=a?o=!0:(o=!1,a=U3.EMPTY_NODE,e.syncPointTree_.subtree(i).foreachChild((e,t)=>{const n=C6(t,Z4());n&&(a=a.updateImmediateChild(e,n))}));const u=b6(l,t);if(!u&&!t._queryParams.loadsAllData()){const n=L6(t);M0(!e.queryToTagMap.has(n),"View does not exist, but we have a tag");const r=E6++;e.queryToTagMap.set(n,r),e.tagToQueryMap.set(r,n)}let c=g6(l,t,n,F5(e.pendingWriteTree_,i),a,o);if(!u&&!s&&!r){const n=_6(l,t);c=c.concat(function(e,t,n){const r=t._path,i=F6(e,t),a=M6(e,n),s=e.listenProvider_.startListening(G6(t),i,a.hashFn,a.onComplete),o=e.syncPointTree_.subtree(r);if(i)M0(!w6(o.value),"If we're adding a query, it shouldn't be shadowed");else{const t=o.fold((e,t,n)=>{if(!s3(e)&&t&&w6(t))return[D6(t).query];{let e=[];return t&&(e=e.concat(y6(t).map(e=>e.query))),_4(n,(t,n)=>{e=e.concat(n)}),e}});for(let n=0;n<t.length;++n){const r=t[n];e.listenProvider_.stopListening(G6(r),F6(e,r))}}return s}
1431/**
1432     * @license
1433     * Copyright 2017 Google LLC
1434     *
1435     * Licensed under the Apache License, Version 2.0 (the "License");
1436     * you may not use this file except in compliance with the License.
1437     * You may obtain a copy of the License at
1438     *
1439     *   http://www.apache.org/licenses/LICENSE-2.0
1440     *
1441     * Unless required by applicable law or agreed to in writing, softw
1441are
1442     * distributed under the License is distributed on an "AS IS" BASIS,
1443     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1444     * See the License for the specific language governing permissions and
1445     * limitations under the License.
1446     */(e,t,n))}return c}function I6(e,t,n){const r=e.pendingWriteTree_,i=e.syncPointTree_.findOnPath(t,(e,n)=>{const r=C6(n,o3(e,t));if(r)return r});return G5(r,t,i,n,!0)}function P6(e,t){return N6(t,e.syncPointTree_,null,F5(e.pendingWriteTree_,Z4()))}function N6(e,t,n,r){if(s3(e.path))return R6(e,t,n,r);{const i=t.get(Z4());null==n&&null!=i&&(n=C6(i,Z4()));let a=[];const s=X4(e.path),o=e.operationForChild(s),l=t.children.get(s);if(l&&o){const e=n?n.getImmediateChild(s):null,t=J5(r,s);a=a.concat(N6(o,l,e,t))}return i&&(a=a.concat(m6(i,e,r,n))),a}}function R6(e,t,n,r){const i=t.get(Z4());null==n&&null!=i&&(n=C6(i,Z4()));let a=[];return t.children.inorderTraversal((t,i)=>{const s=n?n.getImmediateChild(t):null,o=J5(r,t),l=e.operationForChild(t);l&&(a=a.concat(R6(l,i,s,o)))}),i&&(a=a.concat(m6(i,e,r,n))),a}function M6(e,t){const n=t.query,r=F6(e,n);return{hashFn:()=>{const e=function(e){return e.viewCache_.serverCache.getNode()}(t)||U3.EMPTY_NODE;return e.hash()},onComplete:t=>{if("ok"===t)return r?function(e,t,n){const r=j6(e,n);if(r){const n=H6(r),i=n.path,a=n.queryId,s=o3(i,t);return U6(e,i,new p5(d5(a),s))}return[]}(e,n._path,r):function(e,t){return P6(e,new p5({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,n._path);{const r=function(e,t){let n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");const r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}(t,n);return O6(e,n,null,r)}}}}function F6(e,t){const n=L6(t);return e.queryToTagMap.get(n)}function L6(e){return e._path.toString()+"$"+e._queryIdentifier}function j6(e,t){return e.tagToQueryMap.get(t)}function H6(e){const t=e.indexOf("$");return M0(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new Q4(e.substr(0,t))}}function U6(e,t,n){const r=e.syncPointTree_.get(t);return M0(r,"Missing sync point for query tag that we're tracking"),m6(r,n,F5(e.pendingWriteTree_,t),null)}
vendor: 4,353 bytes, lines 1446-1478
1446function G6(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(M0(f6,"Reference.ts has not been loaded"),f6)(e._repo,e._path):e}class Y6{constructor(e){this.node_=e}getImmediateChild(e){const t=this.node_.getImmediateChild(e);return new Y6(t)}node(){return this.node_}}class V6{constructor(e,t){this.syncTree_=e,this.path_=t}getImmediateChild(e){const t=a3(this.path_,e);return new V6(this.syncTree_,t)}node(){return I6(this.syncTree_,this.path_)}}const q6=function(e,t,n){return e&&"object"==typeof e?(M0(".sv"in e,"Unexpected leaf node or priority contents"),"string"==typeof e[".sv"]?$6(e[".sv"],t,n):"object"==typeof e[".sv"]?W6(e[".sv"],t):void M0(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},$6=function(e,t,n){if("timestamp"===e)return n.timestamp;M0(!1,"Unexpected server value: "+e)},W6=function(e,t,n){e.hasOwnProperty("increment")||M0(!1,"Unexpected server value: "+JSON.stringify(e,null,2));const r=e.increment;"number"!=typeof r&&M0(!1,"Unexpected increment value: "+r);const i=t.node();if(M0(null!=i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;const a=i.getValue();return"number"!=typeof a?r:a+r},z6=function(e,t,n){return J6(e,new Y6(t),n)};function J6(e,t,n){const r=e.getPriority().val(),i=q6(r,t.getImmediateChild(".priority"),n);let a;if(e.isLeafNode()){const r=e,a=q6(r.getValue(),t,n);return a!==r.getValue()||i!==r.getPriority().val()?new I3(a,Y3(i)):e}{const r=e;return a=r,i!==r.getPriority().val()&&(a=a.updatePriority(new I3(i))),r.forEachChild(P3,(e,r)=>{const i=J6(r,t.getImmediateChild(e),n);i!==r&&(a=a.updateImmediateChild(e,i))}),a}}
1447/**
1448     * @license
1449     * Copyright 2017 Google LLC
1450     *
1451     * Licensed under the Apache License, Version 2.0 (the "License");
1452     * you may not use this file except in compliance with the License.
1453     * You may obtain a copy of the License at
1454     *
1455     *   http://www.apache.org/licenses/LICENSE-2.0
1456     *
1457     * Unless required by applicable law or agreed to in writing, software
1458     * distributed under the License is distributed on an "AS IS" BASIS,
1459     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1460     * See the License for the specific language governing permissions and
1461     * limitations under the License.
1462     */class K6{constructor(e="",t=null,n={children:{},childCount:0}){this.name=e,this.parent=t,this.node=n}}function Q6(e,t){let n=t instanceof Q4?t:new Q4(t),r=e,i=X4(n);for(;null!==i;){const e=u1(r.node.children,i)||{children:{},childCount:0};r=new K6(i,r,e),n=t3(n),i=X4(n)}return r}function Z6(e){return e.node.value}function X6(e,t){e.node.value=t,i9(e)}function e9(e){return e.node.childCount>0}function t9(e,t){_4(e.node.children,(n,r)=>{t(new K6(n,e,r))})}function n9(e,t,n,r){n&&t(e),t9(e,e=>{n9(e,t,!0)})}function r9(e){return new Q4(null===e.parent?e.name:r9(e.parent)+"/"+e.name)}function i9(e){null!==e.parent&&function(e,t,n){const r=function(e){return void 0===Z6(e)&&!e9(e)}(n),i=l1(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,i9(e)):r||i||(e.node.children[t]=n.node,e.node.childCount++,i9(e))}
1463/**
1464     * @license
1465     * Copyright 2017 Google LLC
1466     *
1467     * Licensed under the Apache License, Version 2.0 (the "License");
1468     * you may not use this file except in compliance with the License.
1469     * You may obtain a copy of the License at
1470     *
1471     *   http://www.apache.org/licenses/LICENSE-2.0
1472     *
1473     * Unless required by applicable law or agreed to in writing, software
1474     * distributed under the License is distributed on an "AS IS" BASIS,
1475     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1476     * See the License for the specific language governing permissions and
1477     * limitations under the License.
1478     */(e.parent,e.name,e)}const a9=/[\[\].#$\/\u0000-\u001F\u007F]/,s9=/[\[\].#$\u0000-\u001F\u007F]/,o9=10485760,l9=function(e){return"string"==typeof e&&0!==e.length&&!a9.test(e)},u9=function(e){return"string"==typeof e&&0!==e.length&&!s9.test(e)},c9=function(e,t,n){const r=n instanceof Q4?new c3(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+h3(r));if("function"==typeof t)throw new Error(e+"contains a function "+h3(r)+" with contents = "+t.toString());if(p4(t))throw new Error(e+"contains "+t.toString()+" "+h3(r));if("string"==typeof t&&t.length>
1478o9/3&&y1(t)>o9)throw new Error(e+"contains a string greater than "+o9+" utf8 bytes "+h3(r)+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){let n=!1,i=!1;if(_4(t,(t,a)=>{if(".value"===t)n=!0;else if(".priority"!==t&&".sv"!==t&&(i=!0,!l9(t)))throw new Error(e+" contains an invalid key ("+t+") "+h3(r)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');var s,o;o=t,(s=r).parts_.length>0&&(s.byteLength_+=1),s.parts_.push(o),s.byteLength_+=y1(o),d3(s),c9(e,a,r),function(e){const t=e.parts_.pop();e.byteLength_-=y1(t),e.parts_.length>0&&(e.byteLength_-=1)}(r)}),n&&i)throw new Error(e+' contains ".value" child '+h3(r)+" in addition to actual children.")}},d9=function(e,t,n,r){if(!(r&&void 0===n||u9(n)))throw new Error(v1(e,t)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},h9=function(e,t){const n=t.path.toString();if("string"!=typeof t.repoInfo.host||0===t.repoInfo.host.length||!l9(t.repoInfo.namespace)&&"localhost"!==t.repoInfo.host.split(":")[0]||0!==n.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),u9(e)}(n))throw new Error(v1(e,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};
1479/**
1480     * @license
1481     * Copyright 2017 Google LLC
1482     *
1483     * Licensed under the Apache License, Version 2.0 (the "License");
1484     * you may not use this file except in compliance with the License.
1485     * You may obtain a copy of the License at
1486     *
1487     *   http://www.apache.org/licenses/LICENSE-2.0
1488     *
1489     * Unless required by applicable law or agreed to in writing, software
1490     * distributed under the License is distributed on an "AS IS" BASIS,
1491     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1492     * See the License for the specific language governing permissions and
1493     * limitations under the License.
1494     */
1495class p9{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function f9(e,t){let n=null;for(let r=0;r<t.length;r++){const i=t[r],a=i.getPath();null===n||l3(a,n.path)||(e.eventLists_.push(n),n=null),null===n&&(n={events:[],path:a}),n.events.push(i)}n&&e.eventLists_.push(n)}function B9(e,t,n){f9(e,n),g9(e,e=>l3(e,t))}function m9(e,t,n){f9(e,n),g9(e,e=>u3(e,t)||u3(t,e))}function g9(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r<e.eventLists_.length;r++){const i=e.eventLists_[r];i&&(t(i.path)?(v9(e.eventLists_[r]),e.eventLists_[r]=null):n=!1)}n&&(e.eventLists_=[]),e.recursionDepth_--}function v9(e){for(let t=0;t<e.events.length;t++){const n=e.events[t];if(null!==n){e.events[t]=null;const r=n.getEventRunner();s4&&l4("event: "+n.toString()),E4(r)}}}
1496/**
1497     * @license
1498     * Copyright 2017 Google LLC
1499     *
1500     * Licensed under the Apache License, Version 2.0 (the "License");
1501     * you may not use this file except in compliance with the License.
1502     * You may obtain a copy of the License at
1503     *
1504     *   http://www.apache.org/licenses/LICENSE-2.0
1505     *
1506     * Unless required by applicable law or agreed to in writing, software
1507     * distributed under the License is distributed on an "AS IS" BASIS,
1508     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1509     * See the License for the specific language governing permissions and
1510     * limitations under the License.
1511     */class y9{constructor(e,t,n,r){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=n,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new p9,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=i5(),this.transactionQueueTree_=new K6,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function C9(e,t,n){if(e.stats_=j4(e.repoInfo_),e.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)e.server_=new n5(e.repoInfo_,(t,n,r,i)=>{w9(e,t,n,r,i)},e.authTokenProvider_,e.appCheckProvider_),setTimeout(()=>D9(e,!0),0);else{if(null!=n){if("object"!=typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{s1(n)}catch(zle){throw new Error("Invalid authOverride provided: "+zle)}}e.persistentConnection_=new B3(e.repoInfo_,t,(t,n,r,i)=>{w9(e,t,n,r,i)},t=>{D9(e,t)},t=>{!function(e,t){_4(t,(t,n)=>{E9(e,t,n)})}(e,t)},e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener(t=>{e.server_.refreshAuthToken(t)}),e.appCheckProvider_.addTokenChangeListener(t=>{e.server_.refreshAppCheckToken(t.token)}),e.statsReporter_=function(e,t){const n=e.toString();return L4[n]||(L4[n]=t()),L4[n]}(e.repoInfo_,()=>new l5(e.stats_,e.server_)),e.infoData_=new r5,e.infoSyncTree_=new k6({startListening:(t,n,r,i)=>{let a=[];const s=e.infoData_.getNode(t._path);return s.isEmpty()||(a=T6(e.infoSyncTree_,t._path,s),setTimeout(()=>{i("ok")},0)),a},stopListening:()=>{}}),E9(e,"connected",!1),e.serverSyncTree_=new k6({startListening:(t,n,r,i)=>(e.server_.listen(t,r,n,(n,r)=>{const a=i(n,r);m9(e.eventQueue_,t._path,a)}),[]),stopListening:(t,n)=>{e.server_.unlisten(t,n)}})}function _9(e){const t=e.infoData_.getNode(new Q4(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function b9(e){return(t=(t={timestamp:_9(e)})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t}function w9(e,t,n,r,i){e.dataUpdateCount++;const a=new Q4(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let s=[];if(i)if(r){const t=d1(n,e=>Y3(e));s=function(e,t,n,r){const i=j6(e,r);if(i){const r=H6(i),a=r.path,s=r.queryId,o=o3(a,t),l=E5.fromObject(n);return U6(e,a,new B5(d5(s),o,l))}return[]}(e.serverSyncTree_,a,t,i)}else{const t=Y3(n);s=function(e,t,n,r){const i=j6(e,r);if(null!=i){const r=H6(i),a=r.path,s=r.queryId,o=o3(a,t);return U6(e,a,new f5(d5(s),o,n))}return[]}(e.serverSyncTree_,a,t,i)}else if(r){const t=d1(n,e=>Y3(e));s=function(e,t,n){const r=E5.fromObject(n);return P6(e,new B5({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,r))}(e.serverSyncTree_,a,t)}else{const t=Y3(n);s=T6(e.serverSyncTree_,a,t)}let o=a;s.length>0&&(o=A9(e,a)),m9(e.eventQueue_,o,s)}function D9(e,t){E9(e,"connected",t),!1===t&&function(e){x9(e,"onDisconnectEvents");const t=b9(e),n=i5();s5(e.onDisconnect_,Z4(),(r,i)=>{const a=function(e,t,n,r){return J6(t,new V6(n,e),r)}(r,i,e.serverSyncTree_,t);a5(n,r,a)});let r=[];s5(n,Z4(),(t,n)=>{r=r.concat(T6(e.serverSyncTree_,t,n));const i=function(e,t){const n=r9(I9(e,t)),r=Q6(e.transactionQueueTree_,t);return function(e,t){let n=e.parent;for(;null!==n;){if(t(n))return!0;n=n.parent}}(r,t=>{M9(e,t)}),M9(e,r),n9(r,t=>{M9(e,t)}),n}(e,t);A9(e,i)}),e.onDisconnect_=i5(),m9(e.eventQueue_,Z4(),r)}(e)}function E9(e,t,n){const r=new Q4("/.info/"+t),i=Y3(n);e.infoData_.updateSnapshot(r,i);const a=T6(e.infoSyncTree_,r,i);m9(e.eventQueue_,r,a)}function k9(e){return e.nextWriteId_++}function S9(e,t,n){let r;r=".info"===X4(t._path)?O6(e.infoSyncTree_,t,n):O6(e.serverSyncTree_,t,n),B9(e.eventQueue_,t._path,r)}function x9(e,...t){let n="";e.persistentConnection_&&(n=e.persistentConnection_.id+":"),l4(n,...t)}function T9(e,t,n){return I6(e.serverSyncTree_,t,n)||U3.EMPTY_NODE}function O9(e,t=e.transactionQueueTree_){if(t||R9(e,t),Z6(t)){const n=P9(e,t);M0(n.length>0,"Sending zero length transaction queue"),n.every(e=>0===e.status)&&function(e,t,n){const r=n.map(e=>e.currentWriteId),i=T9(e,t,r);let a=i;const s=i.hash();for(let u=0;u<n.length;u++){const e=n[u];M0(0===e.status,"tryToSendTransactionQueue_: items in queue should all be run."),e.status=1,e.retryCount++;const r=o3(t,e.path);a=a.updateChild(r,e.currentOutputSnapshotRaw)}const o=a.val(!0),l=t;e.server_.put(l.toString(),o,r=>{x9(e,"transaction put response",{path:l.toString(),status:r});let i=[];if("ok"===r){const r=[];for(let t=0;t<n.length;t++)n[t].status=2,i=i.concat(x6(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&r.push(()=>n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved)),n[t].unwatcher();R9(e,Q6(e.transactionQueueTree_,t)),O9(e,e.transactionQueueTree_),m9(e.eventQueue_,t,i);for(let e=0;e<r.length;e++)E4(r[e])}else{if("datastale"===r)for(let e=0;e<n.length;e++)3===n[e].status?n[e].status=4:n[e].status=0;else{h4("transaction at "+l.toString()+" failed: "+r);for(let e=0;e<n.length;e++)n[e].status=4,n[e].abortReason=r}A9(e,t)}},s)}(e,r9(t),n)}else e9(t)&&t9(t,t=>{O9(e,t)})}function A9(e,t){const n=I9(e,t),r=r9(n);return function(e,t,n){if(0===t.length)return;const r=[];let i=[];const a=t.filter(e=>0===e.status),s=a.map(e=>e.currentWriteId);for(let o=0;o<t.length;o++){const a=t[o],l=o3(n,a.path);let u,c=!1;if(M0(null!==l,"rerunTransactionsUnderNode_: relativePath should not be null."),4===a.status)c=!0,u=a.abortReason,i=i.concat(x6(e.serverSyncTree_,a.currentWriteId,!0));else if(0===a.status)if(a.retryCount>=25)c=!0,u="maxretry",i=i.concat(x6(e.serverSyncTree_,a.currentWriteId,!0));else{const n=T9(e,a.path,s);a.currentInputSnapshot=n;const r=t[o].update(n.val());if(void 0!==r){c9("transaction failed: Data returned ",r,a.path);let t=Y3(r);"object"==typeof r&&null!=r&&l1(r,".priority")||(t=t.updatePriority(n.getPri
vendor: 11,418 bytes, lines 1511-1581
1511ority()));const o=a.currentWriteId,l=b9(e),u=z6(t,n,l);a.currentOutputSnapshotRaw=t,a.currentOutputSnapshotResolved=u,a.currentWriteId=k9(e),s.splice(s.indexOf(o),1),i=i.concat(S6(e.serverSyncTree_,a.path,u,a.currentWriteId,a.applyLocally)),i=i.concat(x6(e.serverSyncTree_,o,!0))}else c=!0,u="nodata",i=i.concat(x6(e.serverSyncTree_,a.currentWriteId,!0))}m9(e.eventQueue_,n,i),i=[],c&&(t[o].status=2,function(e){setTimeout(e,Math.floor(0))}(t[o].unwatcher),t[o].onComplete&&("nodata"===u?r.push(()=>t[o].onComplete(null,!1,t[o].currentInputSnapshot)):r.push(()=>t[o].onComplete(new Error(u),!1,null))))}R9(e,e.transactionQueueTree_);for(let o=0;o<r.length;o++)E4(r[o]);O9(e,e.transactionQueueTree_)}(e,P9(e,n),r),r}function I9(e,t){let n,r=e.transactionQueueTree_;for(n=X4(t);null!==n&&void 0===Z6(r);)r=Q6(r,n),n=X4(t=t3(t));return r}function P9(e,t){const n=[];return N9(e,t,n),n.sort((e,t)=>e.order-t.order),n}function N9(e,t,n){const r=Z6(t);if(r)for(let i=0;i<r.length;i++)n.push(r[i]);t9(t,t=>{N9(e,t,n)})}function R9(e,t){const n=Z6(t);if(n){let e=0;for(let t=0;t<n.length;t++)2!==n[t].status&&(n[e]=n[t],e++);n.length=e,X6(t,n.length>0?n:void 0)}t9(t,t=>{R9(e,t)})}function M9(e,t){const n=Z6(t);if(n){const r=[];let i=[],a=-1;for(let t=0;t<n.length;t++)3===n[t].status||(1===n[t].status?(M0(a===t-1,"All SENT items should be at beginning of queue."),a=t,n[t].status=3,n[t].abortReason="set"):(M0(0===n[t].status,"Unexpected transaction status in abort"),n[t].unwatcher(),i=i.concat(x6(e.serverSyncTree_,n[t].currentWriteId,!0)),n[t].onComplete&&r.push(n[t].onComplete.bind(null,new Error("set"),!1,null))));-1===a?X6(t,void 0):n.length=a+1,m9(e.eventQueue_,r9(t),i);for(let e=0;e<r.length;e++)E4(r[e])}}
1512/**
1513     * @license
1514     * Copyright 2017 Google LLC
1515     *
1516     * Licensed under the Apache License, Version 2.0 (the "License");
1517     * you may not use this file except in compliance with the License.
1518     * You may obtain a copy of the License at
1519     *
1520     *   http://www.apache.org/licenses/LICENSE-2.0
1521     *
1522     * Unless required by applicable law or agreed to in writing, software
1523     * distributed under the License is distributed on an "AS IS" BASIS,
1524     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1525     * See the License for the specific language governing permissions and
1526     * limitations under the License.
1527     */const F9=function(e,t){const n=L9(e),r=n.namespace;"firebase.com"===n.domain&&d4(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||d4("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&h4("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");const i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new N4(n.host,n.secure,r,i,t,"",r!==n.subdomain),path:new Q4(n.pathString)}},L9=function(e){let t="",n="",r="",i="",a="",s=!0,o="https",l=443;if("string"==typeof e){let u=e.indexOf("//");u>=0&&(o=e.substring(0,u-1),e=e.substring(u+2));let c=e.indexOf("/");-1===c&&(c=e.length);let d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(c,d)),c<d&&(i=function(e){let t="";const n=e.split("/");for(let r=0;r<n.length;r++)if(n[r].length>0){let e=n[r];try{e=decodeURIComponent(e.replace(/\+/g," "))}catch(zle){}t+="/"+e}return t}(e.substring(c,d)));const h=function(e){const t={};"?"===e.charAt(0)&&(e=e.substring(1));for(const n of e.split("&")){if(0===n.length)continue;const r=n.split("=");2===r.length?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):h4(`Invalid query segment '${n}' in query '${e}'`)}return t}(e.substring(Math.min(e.length,d)));u=t.indexOf(":"),u>=0?(s="https"===o||"wss"===o,l=parseInt(t.substring(u+1),10)):u=t.length;const p=t.slice(0,u);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{const e=t.indexOf(".");r=t.substring(0,e).toLowerCase(),n=t.substring(e+1),a=r}"ns"in h&&(a=h.ns)}return{host:t,port:l,domain:n,subdomain:r,secure:s,scheme:o,pathString:i,namespace:a}};
1528/**
1529     * @license
1530     * Copyright 2017 Google LLC
1531     *
1532     * Licensed under the Apache License, Version 2.0 (the "License");
1533     * you may not use this file except in compliance with the License.
1534     * You may obtain a copy of the License at
1535     *
1536     *   http://www.apache.org/licenses/LICENSE-2.0
1537     *
1538     * Unless required by applicable law or agreed to in writing, software
1539     * distributed under the License is distributed on an "AS IS" BASIS,
1540     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1541     * See the License for the specific language governing permissions and
1542     * limitations under the License.
1543     */
1544class j9{constructor(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}getPath(){const e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+s1(this.snapshot.exportVal())}}class H9{constructor(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}
1545/**
1546     * @license
1547     * Copyright 2017 Google LLC
1548     *
1549     * Licensed under the Apache License, Version 2.0 (the "License");
1550     * you may not use this file except in compliance with the License.
1551     * You may obtain a copy of the License at
1552     *
1553     *   http://www.apache.org/licenses/LICENSE-2.0
1554     *
1555     * Unless required by applicable law or agreed to in writing, software
1556     * distributed under the License is distributed on an "AS IS" BASIS,
1557     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1558     * See the License for the specific language governing permissions and
1559     * limitations under the License.
1560     */class U9{constructor(e,t){this.snapshotCallback=e,this.cancelCallback=t}onValue(e,t){this.snapshotCallback.call(null,e,t)}onCancel(e){return M0(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}get hasCancelCallback(){return!!this.cancelCallback}matches(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}
1561/**
1562     * @license
1563     * Copyright 2020 Google LLC
1564     *
1565     * Licensed under the Apache License, Version 2.0 (the "License");
1566     * you may not use this file except in compliance with the License.
1567     * You may obtain a copy of the License at
1568     *
1569     *   http://www.apache.org/licenses/LICENSE-2.0
1570     *
1571     * Unless required by applicable law or agreed to in writing, software
1572     * distributed under the License is distributed on an "AS IS" BASIS,
1573     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1574     * See the License for the specific language governing permissions and
1575     * limitations under the License.
1576     */class G9{constructor(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}get key(){return s3(this._path)?null:n3(this._path)}get ref(){return new Y9(this._repo,this._path)}get _queryIdentifier(){const e=t5(this._queryParams),t=y4(e);return"{}"===t?"default":t}get _queryObject(){return t5(this._queryParams)}isEqual(e){if(!((e=C1(e))instanceof G9))return!1;const t=this._repo===e._repo,n=l3(this._path,e._path),r=this._queryIdentifier===e._queryIdentifier;return t&&n&&r}toJSON(){return this.toString()}toString(){return this._repo.toString()+function(e){let t="";for(let n=e.pieceNum_;n<e.pieces_.length;n++)""!==e.pieces_[n]&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}(this._path)}}class Y9 extends G9{constructor(e,t){super(e,t,new X3,!1)}get parent(){const e=i3(this._path);return null===e?null:new Y9(this._repo,e)}get root(){let e=this;for(;null!==e.parent;)e=e.parent;return e}}class V9{constructor(e,t,n){this._node=e,this.ref=t,this._index=n}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(e){const t=new Q4(e),n=q9(this.ref,e);return new V9(this._node.getChild(t),n,P3)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(e){return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(t,n)=>e(new V9(n,q9(this.ref,t),P3)))}hasChild(e){const t=new Q4(e);return!this._node.getChild(t).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function q9(e,t){var n,r,i,a;return null===X4((e=C1(e))._path)?(n="child",r="path",a=!1,(i=t)&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),d9(n,r,i,a)):d9("child","path",t,!1),new Y9(e._repo,a3(e._path,t))}class $9{constructor(e){this.callbackContext=e}respondsTo(e){return"value"===e}createEvent(e,t){const n=t._queryParams.getIndex();return new j9("value",this,new V9(e.snapshotNode,new Y9(t._repo,t._path),n))}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,null)}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new H9(this,e,t):null}matches(e){return e instanceof $9&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class W9{constructor(e,t){this.eventType=e,this.callbackContext=t}respondsTo(e){let t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,this.eventType===t}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new H9(this,e,t):null}createEvent(e,t){M0(null!=e.childName,"Child events should have a childName.");const n=q9(new Y9(t._repo,t._path),e.childName),r=t._queryParams.getIndex();return new j9(e.type,this,new V9(e.snapshotNode,n,r),e.prevName)}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,e.prevName)}matches(e){return e instanceof W9&&this.eventType===e.eventType&&(!this.callbackContext||!e.callbackContext||this.callbackContext.matches(e.callbackContext))}hasAnyCallback(){return!!this.callbackContext}}function z9(e,t,n,r,i){let a;if("object"==typeof r&&(a=void 0,i=r),"function"==typeof r&&(a=r),i&&i.onlyOnce){const t=n,r=(n,r)=>{S9(e._repo,e,o),t(n,r)};r.userCallback=n.userCallback,r.context=n.context,n=r}const s=new U9(n,a||void 0),o="value"===t?new $9(s):new W9(t,s);return function(e,t,n){let r;r=".info"===X4(t._path)?A6(e.infoSyncTree_,t,n):A6(e.serverSyncTree_,t,n),B9(e.eventQueue_,t._path,r)}(e._repo,e,o),()=>S9(e._repo,e,o)}!function(e){M0(!p6,"__referenceConstructor has already been defined"),p6=e}(Y9),function(e){M0(!f6,"__referenceConstructor has already been defined"),f6=e}(Y9);
1577/**
1578     * @license
1579     * Copyright 2020 Google LLC
1580     *
1581     * Licensed under the Apache License, Version 2.0 (the "License");
1582     * you may not use this file except in compliance with the License.
1583     * You may obtain a copy of the License at
1584     *
1585     *   http://www.apache.org/licenses/LICENSE-2.0
1586     *
1587     * Unless required by applicable law or agreed to in writing, software
1588     * distributed under the License is distributed on an "AS IS" BASIS,
1589     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1590     * See the License for the specific language governing permissions and
1591     * limitations under the License.
1592     */
1593const J9={};let K9=!1;function Q9(e,t,n,r,i){let a=r||e.options.databaseURL;void 0===a&&(e.options.projectId||d4("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),l4("Using default host for project ",e.options.projectId),a=`${e.options.projectId}-default-rtdb.firebaseio.com`);let s,o,l=F9(a,i),u=l.repoInfo;"undefined"!=typeof process&&process.env&&(o=process.env.FIREBASE_DATABASE_EMULATOR_HOST),o?(s=!0,a=`http://${o}?ns=${u.namespace}`,l=F9(a,i),u=l.repoInfo):s=!l.repoInfo.secure;const c=i&&s?new T4(T4.OWNER):new x4(e.name,e.options,t);h9("Invalid Firebase Database URL",l),s3(l.path)||d4("Database URL must point to the root of a Firebase Database (not including a child path).");const d=function(e,t,n,r){let i=J9[t.name];i||(i={},J9[t.name]=i);let a=i[e.toURLString()];return a&&d4("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),a=new y9(e,K9,n,r),i[e.toURLString()]=a,a}(u,e,c,new S4(e,n));return new Z9(d,e)}class Z9{constructor(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(C9(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Y9(this._repo,Z4())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function(e,t){const n=J9[t];n&&n[e.key]===e||d4(`Database ${t}(${e.repoInfo_}) has already been deleted.`),function(e){e.persistentConnection_&&e.persistentConnection_.interrupt("repo_interrupt")}(e),delete n[e.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){null===this._rootInternal&&d4("Cannot call "+e+" on a deleted database.")}}
1594/**
1595     * @license
1596     * Copyright 2017 Google LLC
1597     *
1598     * Licensed under the Apache License, Version 2.0 (the "License");
1599     * you may not use this file except in compliance with the License.
1600     * You may obtain a copy of the License at
1601     *
1602     *   http://www.apache.org/licenses/LICENSE-2.0
1603     *
1604     * Unless required by applicable law or agreed to in writing, software
1605     * distributed under the License is distributed on an "AS IS" BASIS,
1606     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1607     * See the License for the specific language governing permissions and
1608     * limitations under the License.
1609     */
1610B3.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},B3.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)},
1611/**
1612     * @license
1613     * Copyright 2021 Google LLC
1614     *
1615     * Licensed under the Apache License, Version 2.0 (the "License");
1616     * you may not use this file except in compliance with the License.
1617     * You may obtain a copy of the License at
1618     *
1619     *   http://www.apache.org/licenses/LICENSE-2.0
1620     *
1621     * Unless required by applicable law or agreed to in writing, software
1622     * distributed under the License is distributed on an "AS IS" BASIS,
1623     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1624     * See the License for the specific language governing permissions and
1625     * limitations under the License.
1626     */
1627function(e){K2=R2,A2(new b1("database",(e,{instanceIdentifier:t})=>Q9(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t),"PUBLIC").setMultipleInstances(!0)),F2(z2,J2,e),F2(z2,J2,"esm2020")}(),
1628/**
1629     * @license
1630     * Copyright 2020 Google LLC
1631     *
1632     * Licensed under the Apache License, Version 2.0 (the "License");
1633     * you may not use this file except in compliance with the License.
1634     * You may obtain a copy of the License at
1635     *
1636     *   http://www.apache.org/licenses/LICENSE-2.0
1637     *
1638     * Unless required by applicable law or agreed to in writing, software
1639     * distributed under the License is distributed on an "AS IS" BASIS,
1640     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1641     * See the License for the specific language governing permissions and
1642     * limitations under the License.
1643     */
1644F2("firebase","12.19.0","app");const X9=M2({apiKey:"AIzaSyBullptTgkr7EN9kmU8UQz1CWfI9Xlz4zw",authDomain:"engeplus-39e6d.firebaseapp.com",databaseURL:"https://engeplus-39e6d.firebaseio.com",projectId:"engeplus-39e6d",storageBucket:"engeplus-39e6d.appspot.com",messagingSenderId:"456210232463",appId:"1:456210232463:web:c149d6ac693179dc"}),e8=function(e=function(e=E2){const t=S2.get(e);if(!t&&e===E2&&K0())return M2();if(!t)throw P2.create("no-app",{appName:e});return t}(),t){const n=function(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const e=J0("database");e&&function(e,t,n,r={}){(e=C1(e))._checkNotDeleted("useEmulator");const i=`${t}:${n}`,a=e._repoInternal;if(e._instanceStarted){if(i===e._repoInternal.repoInfo_.host&&h1(r,a.repoInfo_.emulatorOptions))return;d4("connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.")}let s;if(a.repoInfo_.nodeAdmin)r.mockUserToken&&d4('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),s=new T4(T4.OWNER);else if(r.mockUserToken){const t="string"==typeof r.mockUserToken?r.mockUserToken:function(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const a={iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...e};return[G0(JSON.stringify({alg:"none",type:"JWT"})),G0(JSON.stringify(a)),""].join(".")}(r.mockUserToken,e.app.options.projectId);s=new T4(t)}_1(t)&&async function(e){(await fetch(e,{credentials:"include"})).ok}(t),function(e,t,n,r){const i=t.lastIndexOf(":"),a=_1(t.substring(0,i));e.repoInfo_=new N4(t,a,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0,n),r&&(e.authTokenProvider_=r)}(a,i,r,s)}(n,...e)}return n}(X9),t8={class:"flex justify-center"},n8={class:"mx-auto max-w-7xl bg-white dark:bg-gray-900 w-full md:w-3/5 py-2 conteudo dark:text-gray-200"},r8={key:0},i8={key:1,class:"leia-mais__container"},a8={class:"flex space-x-1 flex-wrap dark:text-gray-200"},s8=["onClick"],o8={key:0},l8={key:1},u8=Ir({__name:"NoticiaParagrafo",props:{noticia:{},anuncios:{}},setup(e){const t=e,n=en(t.noticia.noticia_tempo_real),r=(i=e8,a=`/minuto-a-minuto-${t.noticia.id}`,(i=C1(i))._checkNotDeleted("ref"),void 0!==a?q9(i._root,a):i._root);var i,a;return function(e,t,n,r){z9(e,"child_removed",t,n,r)}(r,e=>{const t=e.val();n.value=n.value.filter(e=>e.id!==t.id)}),function(e,t,n,r){z9(e,"child_added",t,n,r)}(r,e=>{const t=e.val();n.value.some(e=>e.id===t.id)||n.value.unshift(t)}),function(e,t,n,r){z9(e,"child_changed",t,n,r)}(r,e=>{const t=e.val();n.value=n.value.map(e=>e.id===t.id?t:e)}),(t,r)=>(Xa(),is("div",null,[cs("div",t8,[cs("div",n8,[ds(EX,{noticia:e.noticia,anuncios:e.anuncios},null,8,["noticia","anuncios"]),n.value.length>0?(Xa(),is("div",r8,[r[0]||(r[0]=cs("h1",{class:"tempo-real__h1"},"Atualização em tempo real",-1)),cs("div",null,[ds(I0,{"tempo-real":n.value,pasta:e.noticia.pasta},null,8,["tempo-real","pasta"])])])):ms("",!0),e.noticia.tags&&e.noticia.tags.length>0?(Xa(),is("div",i8,[cs("div",a8,[r[1]||(r[1]=cs("p",{class:"leia-mais"},"Leia mais sobre:",-1)),(Xa(!0),is(Wa,null,Ti(e.noticia.tags,(t,n)=>
1644(Xa(),is("p",{key:t.id,class:"text-blue-600 dark:text-blue-500 leia-mais__p cursor-pointer",onClick:e=>(e=>{const t=e.trim();""!==t&&(mN.visible=!1,U_.get(`/buscar?q=${t}`))})(t.nome)},[fs(we(t.nome),1),n!==e.noticia.tags.length-1?(Xa(),is("span",o8,",")):(Xa(),is("span",l8,"."))],8,s8))),128))])])):ms("",!0)])])]))}}),c8=Ob(u8,[["__scopeId","data-v-77a36f0d"]]),d8=Object.freeze(Object.defineProperty({__proto__:null,default:c8},Symbol.toStringTag,{value:"Module"})),h8={key:0,class:"noticia-legenda flex items-center mx-auto mt-2"},p8=["src","alt"],f8={class:"noticia-fonte dark:text-white"},B8={class:"noticia-data text-gray-400 dark:text-gray-300"},m8={key:0},g8={key:1,class:"noticia-legenda flex items-center mx-auto"},v8={class:"noticia-fonte dark:text-white"},y8={class:"noticia-data text-gray-400 dark:text-gray-300"},C8={key:0},_8=Ir({__name:"NoticiaLegenda",props:{data:{}},setup(e){const t=e,n=t.data.hora_entrada,r=Ys(()=>t.data.fonte?t.data.fonte:"Redação Engeplus"),i=Ub(new Date(n)).format("DD/MM/YYYY"),a=Ub(new Date(n)).format("HH:mm"),s=_b().props.configuracao,o=Ys(()=>{var e,n;const r=null==(e=t.data.usuario_noticia)?void 0:e.colunista,i=t.data.exibir_foto_autor,a=!!t.data.fonte,o=null==(n=t.data.usuario_noticia)?void 0:n.imagem,l=(null==s?void 0:s.imagem_autor_padrao)||"";return r?o||l:i?a&&o||l:null});return(t,n)=>o.value?(Xa(),is("div",h8,[cs("img",{src:o.value,alt:`Foto de ${r.value}`,class:"imagem-autor bg-center object-cover rounded-full bg-auto bg-no-repeat"},null,8,p8),cs("div",null,[cs("p",f8,[n[0]||(n[0]=fs(" Por ",-1)),cs("span",null,we(r.value),1)]),cs("span",B8,[fs(" Em "+we(an(i))+" às "+we(an(a))+" ",1),null!=e.data.hora_noticia_atualizada?(Xa(),is("span",m8,[n[1]||(n[1]=fs(" - Atualizada ",-1)),ds(TS,{date:e.data.hora_noticia_atualizada},null,8,["date"])])):ms("",!0)])])])):(Xa(),is("div",g8,[cs("div",null,[cs("p",v8,[n[2]||(n[2]=fs(" Por ",-1)),cs("span",null,we(r.value),1)]),cs("span",y8,[fs(" Em "+we(an(i))+" às "+we(an(a))+" ",1),null!=e.data.hora_noticia_atualizada&&an(Ub)(e.data.hora_noticia_atualizada).isValid()?(Xa(),is("span",C8,[n[3]||(n[3]=fs(" - Atualizada ",-1)),ds(TS,{date:e.data.hora_noticia_atualizada},null,8,["date"])])):ms("",!0)])])]))}}),b8=Ob(_8,[["__scopeId","data-v-7003252d"]]),w8=Object.freeze(Object.defineProperty({__proto__:null,default:b8},Symbol.toStringTag,{value:"Module"})),D8={class:"mx-auto max-w-7xl sm:px-2 lg:px-2 lg:pb-8 sm:py-2 px-5 pt-[17px] bg-white dark:bg-gray-900"},E8={key:0,class:"max-w-7xl md:w-3/5 mb-10 mt-8 small-screen:mb-0 small-screen:mt-0 mx-auto"},k8={class:"ck-content"},S8={key:1,id:"noticias_relacionadas",class:"mx-auto max-w-7xl md:w-3/5 py-2"},x8={class:""},T8=["href"],O8={key:2,class:"text-center mt-10 mb-6"},A8={class:"email-colunista"},I8={class:"text-blue-600 cursor-pointer"},P8={key:0,class:"my-10 px-10 mx-10 mobile:mx-0 tablet:mx-0 small-screen:mx-0 mobile:px-0 tablet:px-0"},N8={key:1,id:"mais_lidas",class:"mais-lidas mt-10"},R8={class:"boletim-informativo__container"},M8={class:"max-w-7xl mx-auto"},F8={class:"mx-auto max-w-7xl sm:px-2 lg:px-2 lg:pb-8 sm:py-2 px-3 bg-white dark:bg-gray-950"},L8={key:0,class:"confira-mais__container"},j8={key:0,class:"confira-mais-sobre__light"},H8={class:"confira-mais-sobre__bold"},U8={key:1,class:"confira-mais-sobre__light"},G8={class:"confira-mais-sobre__bold"},Y8={class:"confira-mais-sobre__bold"},V8={class:"noticias-desktop mx-auto py-2 px-2 grid gap-x-[43px] gap-y-[41px] max-md:grid-cols-2 grid-cols-4 max-sm:grid-cols-1"},q8={class:"noticias-mobile mx-auto grid gap-x-[15px] gap-y-[15px] max-md:grid-cols-2 grid-cols-4 max-sm:grid-cols-1"},$8=Ir({__name:"Noticia",props:{data:{}},setup(e){const t=e,{incrementAcesso:n,observarVisualizacao:r}=LR();return hi(()=>{t.data.noticia.preview||n(t.data.noticia.id)}),(t,n)=>{var i,a,s,o,l,u,c,d,h,p,f,B,m,g,v;const y=ki("observe-visibility");return Xa(),is("div",null,[ds(an(wb),{title:`${e.data.noticia.titulo} - Portal Engeplus`},null,8,["title"]),cs("div",D8,[e.data.anuncios.anunciosBanner1&&e.data.anuncios.anunciosBanner1.length>0?(Xa(),is("div",E8,[ds(QQ,{data:e.data.anuncios.anunciosBanner1},null,8,["data"])])):ms("",!0),cs("div",k8,[ds(Q$,{noticia:e.data.noticia},null,8,["noticia"]),ds(b8,{data:e.data.noticia},null,8,["data"]),e.data.noticia.imagem_na_materia&&e.data.noticia.imagem?(Xa(),as(iW,{key:0,noticia:e.data.noticia},null,8,["noticia"])):ms("",!0),ds(c8,{noticia:e.data.noticia,anuncios:e.data.anuncios.anunciosBanner2??[]},null,8,["noticia","anuncios"]),e.data.noticia.noticias_relacionadas.length>0?(Xa(),is("div",S8,[n[0]||(n[0]=cs("h1",{class:"noticia-leia-tambem__h1 mt-10"},"Leia também:",-1)),cs("ul",x8,[(Xa(!0),is(Wa,null,Ti(e.data.noticia.noticias_relacionadas,e=>(Xa(),is("li",{key:e.id,class:"text-blue-500 noticia-leia-tambem__a"},[cs("a",{class:"cursor-pointer",href:e.noticia_url},we(e.titulo),9,T8)]))),128))])])):ms("",!0),(null==(a=null==(i=e.data.noticia)?void 0:i.usuario_noticia)?void 0:a.colunista)?(Xa(),is("div",O8,[cs("p",A8,[n[1]||(n[1]=fs(" Você pode enviar sugestões e comentários para o email ",-1)),cs("span",I8,we(null==(o=null==(s=e.data.noticia)?void 0:s.usuario_noticia)?void 0:o.email),1)])])):ms("",!0)])]),(null==(c=null==(u=null==(l=e.data)?void 0:l.noticia)?void 0:u.usuario_noticia)?void 0:c.colunista)?(Xa(),is("div",P8,[ds(ZY,{data:e.data.colunistas},null,8,["data"])])):(Xa(),is("div",N8,[ds(CV,{data:{mais_lidas:e.data.mais_lidas,destaques_semanais:e.data.destaques_semanais}},null,8,["data"])])),cs("div",R8,[cs("div",M8,[ds(Bq)])]),cs("div",F8,[e.data.confira_mais.length>0?(Xa(),is("div",L8,[(null==(p=null==(h=null==(d=e.data)?void 0:d.noticia)?void 0:h.usuario_noticia)?void 0:p.colunista)?ms("",!0):(Xa(),is("h2",j8,[n[2]||(n[2]=fs(" Confira mais de ",-1)),cs("span",H8,we(e.data.noticia.categoria.nome),1)])),(null==(m=null==(B=null==(f=e.data)?void 0:f.noticia)?void 0:B.usuario_noticia)?void 0:m.colunista)?(Xa(),is("h2",U8,[n[3]||(n[3]=fs(" Confira mais de ",-1)),cs("span",G8,we(e.data.noticia.categoria.nome),1),n[4]||(n[4]=fs(" por ",-1)),cs("span",Y8,we(null==(v=null==(g=e.data.noticia)?void 0:g.usuario_noticia)?void 0:v.nome),1)])):ms("",!0)])):ms("",!0),cs("div",V8,[(Xa(!0),is(Wa,null,Ti(e.data.confira_mais,e=>(Xa(),is("div",{key:e.id},[Jn(ds(nx,{data:e},null,8,["data"]),[[y,an(r)(e.id)]])]))),128))]),cs("div",q8,[(Xa(!0),is(Wa,null,Ti(e.data.confira_mais,e=>(Xa(),is("div",{key:e.id,class:"col-span-2"},[Jn(ds(gM,{data:e},null,8,["data"]),[[y,an(r)(e.id)]])]))),128))]),n[5]||(n[5]=cs("div",{class:"mt-[53px] text-center"}
1644,[cs("a",{href:"/",class:"botao-voltar rounded-full"}," Voltar para página inicial ")],-1))])])}}}),W8=Ob($8,[["__scopeId","data-v-d5b622e1"]]),z8=Object.freeze(Object.defineProperty({__proto__:null,default:W8},Symbol.toStringTag,{value:"Module"})),J8={class:"my-4"},K8={class:"flex justify-center mb-1"},Q8={class:"w-full noticia-titulo md:w-3/5 dark:text-white"},Z8={key:0,class:"ml-[12px] flex justify-center mobile:ml-[5px] bottom-2 mt-auto noticia_hora_entrada"},X8=Ob(Ir({__name:"PublicidadeLegalTitulo",props:{data:{}},setup(e){nG.locale("pt-br");const t=nG(e.data.horario_entrada,"YYYY-MM-DD HH:mm:ss").locale("pt-br").format("DD [de] MMMM [de] YYYY");return(n,r)=>(Xa(),is("div",J8,[cs("div",{class:"flex justify-center mb-[13px] mt-[17px] cursor-pointer",onClick:r[0]||(r[0]=t=>{return n=e.data.categoria.url,void U_.get(`/e/${n}`);var n})},[cs("span",{class:"border px-3 rounded font-semibold text-white text-[14px]",style:re({backgroundColor:e.data.categoria.cor})},we(e.data.categoria.nome),5)]),cs("div",K8,[cs("h1",Q8,we(e.data.titulo),1)]),e.data.horario_entrada?(Xa(),is("div",Z8,[cs("span",null,"Publicado em "+we(an(t)),1)])):ms("",!0)]))}}),[["__scopeId","data-v-aecc4b4e"]]),e7=Object.freeze(Object.defineProperty({__proto__:null,default:X8},Symbol.toStringTag,{value:"Module"})),t7={class:"mx-auto max-w-3xl sm:px-2 lg:px-2 lg:pb-8 sm:py-2 px-5 my-10 mobile:my-2 pt-[17px] bg-white dark:bg-gray-950"},n7=Ob(Ir({__name:"PublicidadeLegal",props:{publicidadeLegal:{}},setup(e){const t=e,n="https://portal-arquivos.engeplus.com.br//"+t.publicidadeLegal.anexo_assinado;async function r(){try{const e=await fetch(n,{mode:"cors"}),r=await e.blob(),i=document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=t.publicidadeLegal.titulo+".pdf",i.click(),window.URL.revokeObjectURL(i.href)}catch(e){const t=e instanceof Error?e.message:String(e);alert("Erro ao baixar o PDF: "+t)}}return(t,i)=>(Xa(),is(Wa,null,[ds(an(wb),{title:e.publicidadeLegal.titulo},null,8,["title"]),cs("div",t7,[ds(X8,{data:e.publicidadeLegal},null,8,["data"]),cs("div",{class:"mt-[40px] mb-4 mobile:mt-[20px] tablet:mt-[40px]"},[cs("button",{class:"botao-pdf bg-[#0095d4] text-white px-5 py-1 rounded-lg",onClick:r}," Baixar PDF ")]),cs("iframe",{src:n,width:"100%",height:"900px",style:{border:"none"}}),i[0]||(i[0]=cs("div",{class:"mt-[100px] text-center"},[cs("a",{href:"/e/publicidade-legal",class:"botao-voltar rounded-full"}," Voltar para publicidade legal ")],-1))])],64))}}),[["__scopeId","data-v-ee1d86b3"]]),r7=Object.freeze(Object.defineProperty({__proto__:null,default:n7},Symbol.toStringTag,{value:"Module"})),i7="https://engeplus.com.br/build/assets/sugestao_enviada-c30dff43.svg",a7={class:"container-geral"},s7=Ob({},[["render",function(e,t){return Xa(),is("div",a7,[...t[0]||(t[0]=[Bs('<div class="imagem-pauta-enviado-desktop" data-v-8211b9e8><img class="h-[75%] w-[85%]" src="'+i7+'" alt="icone de sugestão de pauta enviadaP" data-v-8211b9e8></div><div class="pauta-enviada__container" data-v-8211b9e8><h1 class="titulo" data-v-8211b9e8>Sua sugestão de pauta foi enviada com sucesso</h1><div class="imagem-pauta-enviado-mobile self-center" data-v-8211b9e8><img class="h-[100%] w-[100%]" style="margin-bottom:20px !important;" src="'+i7+'" data-v-8211b9e8></div><div class="mensagem-solicitacao__container" data-v-8211b9e8><p class="mensagem-solicitacao" data-v-8211b9e8> Seu formulário foi enviado com sucesso, e passará pela análise interna do nosso setor de jornalismo. Desde já agradecemos pela sua colaboração. Assim que seu pedido for analisado você será informado via e-mail. </p></div><div data-v-8211b9e8><a href="/" class="botao-voltar rounded-full" data-v-8211b9e8>Voltar a página inicial</a></div></div>',2)])])}],["__scopeId","data-v-8211b9e8"]]),o7=Object.freeze(Object.defineProperty({__proto__:null,default:s7},Symbol.toStringTag,{value:"Module"}
1644)),l7={"image/png":10,"image/jpg":10,"image/jpeg":10,"image/gif":10,"video/mp4":150},u7=fH(lH({nome_leitor:iH({required_error:"O campo nome é obrigatório"}).min(4,"O nome deve ter pelo menos 4 caracteres"),email_leitor:iH({required_error:"O campo email deve ser informado"}).email("O email informado é inválido"),telefone_leitor:iH({required_error:"O campo telefone deve ser informado"}),sugestao_leitor:iH({required_error:"A sugestão deve ser informada"}),arquivos:uH(oH(rH(File)).max(5,"Podem ser enviados no máximo 5 arquivos").refine(e=>{for(const t of e)if(null==l7[t.type])return!1;return!0},"O arquivo deve ser .png, .jpg, .jpeg, .mp4").refine(e=>{for(const t of e)if(t.size/1048576>l7[t.type])return!1;return!0},"O arquivo não pode ser maior que 10 MB e o Vídeo não pode ter mais do que 150 MB")),checked:aH({required_error:"voce deve aceitar os termos para continuar"}),userData:sH()})),c7={class:"sp__container-geral"},d7={class:"sp__form__containter"},h7={class:"sp__input-container"},p7={class:"sp__input-container"},f7={class:"sp__input-container"},B7={class:"sp__input-container"},m7={class:"sp__input-container"},g7={class:"w-[60%]"},v7={class:"flex items-center mb-4 small-screen:mb-0 small-screen:mt-1"},y7={class:"sp__submit-button__container"},C7=["disabled"],_7={key:0,role:"status"},b7={key:1},w7=Ir({__name:"SugestaoPauta",setup(e){const t=en(!1),n=new MR("sugestao-pauta"),{handleSubmit:r}=oL({validationSchema:u7,initialValues:{}}),{value:i}=tL("arquivos"),{value:a}=tL("checked"),{value:s}=tL("userData"),o=r(async e=>{t.value=!0,await n.post(e).then(()=>{U_.get("/sugestao-pauta/sucesso")}).catch(()=>{}).finally(()=>{t.value=!1}),t.value=!1},()=>{NR.error("Erro ao preencher campos do fomulário, favor verificar",{position:NR.POSITION.TOP_RIGHT})});return pi(async()=>{const e=await eC("https://ipapi.co/json/"),t=await e.data;s.value=t}),(e,n)=>(Xa(),is(Wa,null,[ds(an(wb),{title:"Sugestão de Pauta - Portal Engeplus"}),cs("div",c7,[cs("div",d7,[n[7]||(n[7]=cs("div",{class:"sp__titulo__container"},[cs("h1",{class:"sp__titulo__h1"},"Sugestão de pauta"),cs("p",{class:"sp__mensagem-solicitacao pt-4 pb-4 small-screen:pb-0"}," O que está acontecendo em seu bairro, cidade ou região? Nós queremos sua participação! Preencha o formulário abaixo e nos envie sua sugestão de pauta. ")],-1)),cs("form",{id:"form-sugestao-pauta",class:"flex flex-col items-center w-full h-full space-y-[20px]",onSubmit:n[2]||(n[2]=(...e)=>an(o)&&an(o)(...e))},[cs("div",h7,[ds(gL,{name:"nome_leitor",label:"Nome"})]),cs("div",p7,[ds(gL,{name:"email_leitor",label:"E-mail"})]),cs("div",f7,[ds(gL,{name:"telefone_leitor",mask:"(##) # ####-####",placeholder:"(99) 9 9999-9999",label:"Telefone"})]),cs("div",B7,[ds(_L,{name:"sugestao_leitor",label:"Descreva sua sugestão de pauta"})]),cs("div",m7,[n[4]||(n[4]=cs("p",{for:"foto",class:"sp__label pr-1 pb-[5px]"}," Deseja enviar uma imagem ou vídeo? ",-1)),cs("div",g7,[ds(tF,{multiple:!0,"extensoes-permitidas":".png, .jpg, .jpeg, .mp4, .gif",onChangeArquivos:n[0]||(n[0]=e=>i.value=e)})]),cs("div",v7,[Jn(cs("input",{id:"default-checkbox","onUpdate:modelValue":n[1]||(n[1]=e=>Xt(a)?a.value=e:null),type:"checkbox",required:"",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,512),[[vl,an(a)]]),n[3]||(n[3]=cs("label",{id:"label-autorizacao",for:"default-checkbox",class:"sp__label pl-3 break-words"},[fs(" Ao enviar a imagem e/ou video, autorizo "),cs("br"),fs(" a utilização no Portal Engeplus ")],-1))])]),n[6]||(n[6]=cs("div",{class:"space-y-5 small-screen:space-y-3 sp__avisos-fale-conosco__container"},[cs("p",{class:"sp__avisos-fale-conosco"},[fs(" - Ao informar meus dados, eu concordo com a "),cs("span",{class:"sp__avisos-fale-conosco__semibold"},"Politica de privacidade")]),cs("p",{class:"sp__avisos-fale-conosco"}," * Você pode alterar suas permissões de comunicação a qualquer momento. ")],-1)),cs("div",y7,[cs("button",{disabled:t.value,type:"submit",class:"sp__submit-button rounded-full"},[t.value?(Xa(),is("div",_7,[...n[5]||(n[5]=[cs("img",{class:"inline w-8 h-8",src:JM,alt:"Icone de carregamento"},null,-1)])])):(Xa(),is("span",b7," Enviar "))],8,C7)])],32)]),n[8]||(n[8]=Bs('<div class="sp__imagem__container w-[40%] h-full mt-[72px] ml-[95px] flex flex-col items-center self-start" data-v-a5f81b0f><div class="rounded-md overflow-hidden" data-v-a5f81b0f>
1644<img src="https://engeplus.com.br/build/assets/sugestao_de_pauta-8140b88d.svg" class="w-100 h-96" data-v-a5f81b0f></div><p class="sp__mensagem-solicitacao py-4 text-center" data-v-a5f81b0f> Envie sua sugestão de pauta para o <br data-v-a5f81b0f> portal com maior número de acessos <br data-v-a5f81b0f> do Sul catarinense. </p><div class="p-8 text-center" data-v-a5f81b0f><h3 class="sp__mensagem-solicitacao__negrito mt-6" data-v-a5f81b0f>Endereço</h3><p class="sp__mensagem-solicitacao py-2" data-v-a5f81b0f> Rua Urussanga, 417 - Centro, <br data-v-a5f81b0f> Criciúma - SC, 88810 - 216 </p></div></div>',1))])],64))}}),D7=Ob(w7,[["__scopeId","data-v-a5f81b0f"]]),E7=Object.freeze(Object.defineProperty({__proto__:null,default:D7},Symbol.toStringTag,{value:"Module"}));var k7={exports:{}};!function(e){var t,n;t={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax",partitioned:""},n={install:function(e,t){t&&this.config(t.expires,t.path,t.domain,t.secure,t.sameSite,t.partitioned);const n=e.config&&e.config.globalProperties;n&&(e.config.globalProperties.$cookies=this,e.provide&&e.provide("$cookies",this)),n&&!e.prototype||(e.prototype.$cookies=this),e.$cookies=this},config:function(e,n,r,i,a,s){t.expires=e||"1d",t.path=n?"; path="+n:"; path=/",t.domain=r?"; domain="+r:"",t.secure=i?"; Secure":"",t.sameSite=a?"; SameSite="+a:"; SameSite=Lax",t.partitioned=s?"; Partitioned":""},get:function(e){var t=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(t&&("{"===t.substring(0,1)&&"}"===t.substring(t.length-1,t.length)||"["===t.substring(0,1)&&"]"===t.substring(t.length-1,t.length)))try{t=JSON.parse(t)}catch(zle){return t}return t},set:function(e,n,r,i,a,s,o,l){if(!e)throw new Error("Cookie name is not found in the first argument.");if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(e))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"]\t current key name: '+e);n&&"object"==typeof n&&(n=JSON.stringify(n));var u="";if((r=void 0===r?t.expires:r)&&0!==r)switch(r.constructor){case Number:u=r===1/0||-1===r?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(r)){var c=r.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(r.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":u="; max-age="+2592e3*+c;break;case"d":u="; max-age="+86400*+c;break;case"h":u="; max-age="+3600*+c;break;case"min":u="; max-age="+60*+c;break;case"s":u="; max-age="+c;break;case"y":u="; max-age="+31104e3*+c}}else u="; expires="+r;break;case Date:u="; expires="+r.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+u+(a?"; domain="+a:t.domain)+(i?"; path="+i:t.path)+(void 0===s?t.secure:s?"; Secure":"")+(void 0===o?t.sameSite:o?"; SameSite="+o:"")+(void 0===l?t.partitioned:l?"; Partitioned":""),this},remove:function(e,n,r){return!(!e||!this.isKey(e)||(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(r?"; domain="+r:t.domain)+(n?"; path="+n:t.path)+"; SameSite=Lax",0))},isKey:function(e){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=0;t<e.length;t++)e[t]=decodeURIComponent(e[t]);return e}},e.exports=n,"undefined"!=typeof window&&(window.$cookies=n)}(k7);const S7=Gh(k7.exports),x7={class:"navbar__container"},T7={class:"flex-1 navbar-width"},O7={class:"navbar__content"},A7={class:"menu-editorias__container"},I7={class:"flex items-center place-self-center"},P7=["href"],N7={class:"previsao__container flex justify-between"},R7={class:"md:flex md:flex-1 md:space-x-2 mr-5"},M7=["href"],F7={class:"mobile-links__container"},L7=["href"],j7=Ob(Ir({__name:"BottomHeader",props:{menuHeader:{},previsao:{},cotacao:{}},setup(e){const t=tn("clima"),n=setInterval(()=>{"clima"===t.value?t.value="cotação":"cotação"===t.value&&(t.value="clima")},8e3),r=()=>{mN.visible=!mN.visible};return gi(()=>{clearInterval(n)}),hi(()=>{}),(n,i)=>(Xa(),is("nav",x7,[cs("div",T7,[cs("div",null,[cs("div",O7,[cs("div",A7,[cs("button",{class:"inline-flex mr-[45px] items-center justify-center p-2",onClick:r}
1644,[...i[0]||(i[0]=[cs("img",{src:"https://engeplus.com.br/build/assets/menu-ddf8de2a.svg",alt:"icone menu",class:"h-8 w-6 dark:invert"},null,-1)])]),cs("div",I7,[(Xa(!0),is(Wa,null,Ti(e.menuHeader,e=>(Xa(),is("div",{key:e.id,class:"hidden items-center md:flex py-3"},[cs("a",{class:"links-navbar dark:text-white",style:re({color:e.cor}),href:`/e/${e.url}`},we(e.nome),13,P7)]))),128))])]),cs("div",N7,[cs("div",R7,[cs("a",{href:an("https://mkt.engeplusempresas.com.br/anuncie-no-portal-engeplus"),target:"_blank",class:"sm:hiden cursor-pointer text-black link-anuncie dark:text-white"},"Anuncie",8,M7)]),"clima"===t.value?(Xa(),as(E$,{key:0,previsao:e.previsao},null,8,["previsao"])):ms("",!0),"cotação"===t.value?(Xa(),as(O$,{key:1,cotacao:e.cotacao},null,8,["cotacao"])):ms("",!0)]),cs("div",F7,[(Xa(!0),is(Wa,null,Ti(an(gN),e=>(Xa(),is("a",{key:e.name,href:e.route,target:"_blank",class:"links px-5 py-1 rounded-md cursor-pointer"},we(e.name),9,L7))),128))])])])])]))}}),[["__scopeId","data-v-cdaafce9"]]),H7={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400"},U7=Ir({__name:"Search",setup(e){const t=en(""),n=()=>{const e=t.value.trim();if(""!==e){mN.visible=!1;const t=new URLSearchParams({q:e,page:"1"});U_.get(`/buscar?${t.toString()}`)}};return(e,r)=>(Xa(),is("form",{class:"group relative ml-3",onSubmit:Ol(n,["prevent"])},[cs("div",H7,[ds(an(ax),{class:"search-icon","aria-hidden":"true"})]),Jn(cs("input",{"onUpdate:modelValue":r[0]||(r[0]=e=>t.value=e),class:"focus:ring-2 focus:ring-blue-500 focus:outline-none appearance-none search-input leading-6 rounded-xl py-2 pl-10 ring-1 ring-slate-200 shadow-sm",type:"search","aria-label":"Buscar no portal",placeholder:"Buscar no portal"},null,512),[[gl,t.value]])],32))}}),G7=Ob(Ir({__name:"MobileSearchButton",setup(e){const t=()=>{vN.visible=!vN.visible,mN.visible=!1};return(e,n)=>(Xa(),is("button",{class:"flex items-center text-white space-x-3 mobile-search-button ml-3",onClick:t},[ds(an(ax),{class:"mobile-search___icon","aria-hidden":"true"}),n[0]||(n[0]=cs("span",null,"Buscar",-1))]))}}),[["__scopeId","data-v-56bb2495"]]);function Y7(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{"fill-rule":"evenodd",d:"M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.7-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162Z","clip-rule":"evenodd"})])}function V7(e,t){return Xa(),is("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[cs("path",{d:"M12 2.25a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75ZM7.5 12a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM18.894 6.166a.75.75 0 0 0-1.06-1.06l-1.591 1.59a.75.75 0 1 0 1.06 1.061l1.591-1.59ZM21.75 12a.75.75 0 0 1-.75.75h-2.25a.75.75 0 0 1 0-1.5H21a.75.75 0 0 1 .75.75ZM17.834 18.894a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 1 0-1.061 1.06l1.59 1.591ZM12 18a.75.75 0 0 1 .75.75V21a.75.75 0 0 1-1.5 0v-2.25A.75.75 0 0 1 12 18ZM7.758 17.303a.75.75 0 0 0-1.061-1.06l-1.591 1.59a.75.75 0 0 0 1.06 1.061l1.591-1.59ZM6 12a.75.75 0 0 1-.75.75H3a.75.75 0 0 1 0-1.5h2.25A.75.75 0 0 1 6 12ZM6.697 7.757a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 0 0-1.061 1.06l1.59 1.591Z"})])}const q7=["aria-label","title"],$7=Ir({__name:"ThemeToggle",setup:e=>(e,t)=>(Xa(),is("button",{class:"p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors focus:outline-none","aria-label":an(bN).isDark?"Ativar modo claro":"Ativar modo escuro",title:an(bN).isDark?"Ativar modo claro":"Ativar modo escuro",onClick:t[0]||(t[0]=(...e)=>an(wN)&&an(wN)(...e))},[an(bN).isDark?(Xa(),as(an(Y7),{key:1,class:"h-6 w-6 text-gray-500"})):(Xa(),as(an(V7),{key:0,class:"h-6 w-6 text-yellow-500"}))],8,q7))}),W7={class:"bg-[#0075bf] menu-top__container"},z7={class:"container-geral"},J7={class:"header",style:{borderBottom:"1.5px solid #1970b5"}},K7={class:"search__container"},Q7=["href"],Z7={class:"mt-3 max-w-[208px] h-[46px] lg:flex-1"},X7={class:"ml-4"},eee={class:"search-mobile__container"},tee=Ob(Ir({__name:"TopHeader",setup(e){const t=()=>{mN.visible=!mN.visible};return(e,n)=>(Xa(),is("div",W7,[cs("div",z7,[cs("div",J7,[cs("button",{class:"menu-button","aria-label":"Abrir Menu",onClick:t},[...n[0]||(n[0]=[cs("img",{class:"menu-button__img text-white",src:"https://engeplus.c
1644om.br/build/assets/menu_mobile-52949ddb.svg",alt:"Menu mobile"},null,-1)])]),n[1]||(n[1]=cs("div",{class:"logo__container"},[cs("a",{href:"/",class:"outline-0"},[cs("span",{class:"sr-only"},"Engeplus"),cs("img",{src:lS,alt:"logotipo do navbar"})])],-1)),cs("div",K7,[(Xa(!0),is(Wa,null,Ti(an(gN),e=>(Xa(),is("a",{key:e.name,href:e.route,target:"_blank",class:"links px-5 py-1 rounded-md cursor-pointer text-white"},we(e.name),9,Q7))),128)),cs("div",Z7,[ds(U7)]),cs("div",X7,[ds($7)])]),cs("div",eee,[ds($7,{class:""}),ds(G7,{class:"ml-4"})])])])]))}}),[["__scopeId","data-v-05954be1"]]),nee={key:0},ree={class:"menu-item justify-between hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer dark:text-white"},iee=["onClick"],aee={class:"ms-3 w-[50%]"},see={key:0,class:"fixed w-full left-0 top-0 inset-0 bg-white dark:bg-gray-800 z-60"},oee=["onClick"],lee=["onClick"],uee={class:"ms-3"},cee={class:"space-y-2 font-medium w-full"},dee={key:1},hee=["target","href"],pee={class:"ms-3 self-start"},fee={key:0,class:"ml-3 self-start subtitulo"},Bee=Ir({__name:"MenuItem",props:{menuItems:{}},setup(e){const t=en(e.menuItems),n=(e="")=>{e&&U_.get(e),mN.visible=!1},r=()=>{t.value.forEach(e=>{e.visible=!0})};return pi(()=>{r()}),(e,i)=>{const a=wi("MenuItem",!0);return Xa(!0),is(Wa,null,Ti(t.value,e=>{var s;return Jn((Xa(),is("div",{key:e.name},[(null==(s=e.submenus)?void 0:s.length)>0?(Xa(),is("a",nee,[cs("div",ree,[cs("div",{class:"flex w-full justify-between items-center",onClick:n=>(e=>{e.expanded=!e.expanded,e.expanded?(t.value.forEach(t=>{t!==e&&(t.visible=!1)}),document.getElementById("sidebar").scrollTop=0):t.value.forEach(t=>{t!==e&&(t.visible=!0)})})(e)},[cs("span",aee,we(e.name),1),ds(an(ix),{class:"h-5 align-self-end cursor-pointer"})],8,iee),ds(uo,{name:"slide"},{default:zn(()=>[e.expanded?(Xa(),is("div",see,[cs("button",{class:"flex items-center p-2 menu-item__voltar border-b w-full text-left text-[#1970b5] dark:text-blue-400 dark:border-gray-700",onClick:n=>(e=>{const n=t.value.find(t=>t.name===e.name);n&&(n.expanded=!1),r()})(e)},[ds(an(rx),{class:"h-6 align-self-end mr-1"}),i[1]||(i[1]=fs(" Voltar ",-1))],8,oee),e.mostrarTituloPai?(Xa(),is("p",{key:0,class:"menu-item text-[1.1rem] hover:bg-gray-100 dark:hover:bg-gray-700 dark:text-white",style:{"font-family":"Open-Sans-Bold"},onClick:t=>n(e.path)},[cs("span",uee,"Tudo sobre "+we(e.name),1)],8,lee)):ms("",!0),cs("div",cee,[ds(a,{"menu-items":e.submenus},null,8,["menu-items"])])])):ms("",!0)]),_:2},1024)])])):(Xa(),is("div",dee,[cs("a",{target:e.abrirNovaAba?"_blank":"_self",class:"menu-item flex-col hover:bg-gray-100 dark:hover:bg-gray-700 dark:text-white",style:re(e.font?`font: ${e.font}`:""),href:e.path,onClick:i[0]||(i[0]=e=>n())},[cs("span",pee,we(e.name),1),e.subtitulo?(Xa(),is("span",fee,"Por "+we(e.subtitulo),1)):ms("",!0)],12,hee)]))])),[[ko,e.visible]])}),128)}}}),mee=Ob(Bee,[["__scopeId","data-v-7bfd3826"]]),gee={key:0,id:"sidebar",class:"menu mb-8 -translate-x-full border-r-gray-200 bg-white dark:bg-gray-800 dark:text-gray-100","aria-label":"Sidebar"},vee={class:"p-2 ms-3 text-xl sidebar__titulo"},yee={class:"space-y-2 font-medium w-full"},Cee=Ob(Ir({__name:"SideBarMenu",props:{menus:{}},setup(e){const t=e,n=e=>{e.forEach(e=>{e.expanded=!1,e.submenus.length>0&&n(e.submenus)})};return rr(mN,e=>{const r=document.querySelector("body");e.visible?r.classList.add("overflow-hidden"):(r.classList.remove("overflow-hidden"),t.menus.forEach(e=>{n(e.items)}))}),(t,n)=>(Xa(),is(Wa,null,[ds(uo,{name:"slide"},{default:zn(()=>[an(mN).visible?(Xa(),is("aside",gee,[(Xa(!0),is(Wa,null,Ti(e.menus,e=>(Xa(),is("div",{key:e.titulo},[cs("h1",vee,we(e.titulo),1),cs("div",yee,[ds(mee,{"menu-items":e.items},null,8,["menu-items"])]),n[1]||(n[1]=cs("hr",{class:"my-8 h-[0.1px] border-t-0 bg-gray-200 dark:bg-white/10"},null,-1))]))),128))])):ms("",!0)]),_:1}),ds(uo,{name:"slide"},{default:zn(()=>[an(mN).visible?(Xa(),is("div",{key:0,ref:"body",class:"fixed h-[100%] overflow-x-hidden",onClick:n[0]||(n[0]=e=>an(mN).visible=!1)},[...n[2]||(n[2]=[cs("div",{class:"block-div"},null,-1)])],512)):ms("",!0)]),_:1})],64))}}),[["__scopeId","data-v-ce523e68"]]),_ee=Ir({__name:"MobileSearchInput",setup(e){const t=en();function n(){var e;null==(e=t.value)||e.focus()}function r(){vN.visible=!vN.visible,vN.visible||(t.value.value="")}function i(){const e=t.value.value.trim(),n=document.getElementById("mobile-search");if(""!==e){mN.visible=!1,null==n||n.blur();const t=new URLSearchParams({q:e,page:"1"});U_.get(`/buscar?${t.toString()}`)}}return(e,a)=>(Xa(),as(uo,{name:"search",onAfterEnter:n},{default:zn(()=>[an(vN).visible?(Xa(),is("form",{key:0,class:"flex items-center border-b border-gray-300 dark:border-gray-700",onSubmit:Ol(i,["prevent"])},[cs("p",{class:"goBack",onClick:r},[...a[0]||(a[0]=[cs("img",{class:"w-5 h-5 dark:invert",src:ox},null,-1)])]),cs("input",{id:"mobile-search",ref_key:"searchInput",ref:t,type:"search",class:"w-full mobile-search-input bg-transparent border-0 focus:ring-0 h-[54px] px-5 text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400",placeholder:"O que você precisa?"},null,512)],32)):ms("",!0)]),_:1}))}}),bee=Ob(_ee,[["__scopeId","data-v-5097a2f5"]]),wee={class:"sticky top-0 z-50 w-full backdrop-blur bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-800"},Dee={class:"flex-1"},Eee={class:"z-[1000]"},kee={class:"flex-1"},See={class:"z-[1000]"},xee={class:"flex-1 mr-3 ml-3"},Tee={class:"z-[999]"},Oee={class:"flex-1"},Aee={class:"z-[999]"},Iee=Ir({__name:"Header",props:{menus:{},menuHeader:{},previsao:{},cotacao:{}},setup:e=>(t,n)=>(Xa(),is("nav",wee,[cs("div",Dee,[cs("div",Eee,[ds(tee)])]),cs("div",kee,[cs("div",See,[ds(j7,{"menu-header":e.menuHeader,previsao:e.previsao,cotacao:e.cotacao},null,8,["menu-header","previsao","cotacao"])])]),cs("div",xee,[cs("div",Tee,[ds(Cee,{menus:e.menus},null,8,["menus"])])]),cs("div",Oee,[cs("div",Aee,[ds(bee)])])]))}),Pee={key:0,class:"flex justify-between h-42 border w-full p-4 text-center bg-black rounded-md opacity-9",role:"dialog","aria-label":"Informações sobre cookies"},Nee={class:"text-white text-sm font-medium py-2"},Ree=Ir({__name:"CookieBanner",setup(e){const t=en(!1),n=Ys(()=>function(e){var t;const n=`; ${document.cookie}`.split(`; ${e}=`);return 2!==n.length||null==(t=n.pop())?void 0:t.split(";").shift()}("engeplus"));function r(){t.value=!1,function(e,t,n,r){const i=new Date;i.setDate(i.getDate()+(n||365));const a=[`${e}=${t}`,`expires=${i.toUTCString()}`,`path=${r||"/"}`];document.cookie=a.join(";")}("engeplus",1,365,"/")}return hi(()=>{t.value=!n.value}),(e,n)=>(Xa(),as(uo,{name:"cookie-consent-transition",class:"mx-auto max-w-7xl flex"},{default:zn(()=>
1644[t.value?(Xa(),is("div",Pee,[Ai(e.$slots,"message",{},()=>[cs("span",Nee,[n[1]||(n[1]=fs(" Utilizamos cookies essenciais e tecnologias semelhantes de acordo com a nossa ",-1)),Ai(e.$slots,"link",{},()=>[n[0]||(n[0]=cs("a",{href:"https://www.engeplusempresas.com.br/politica-privacidade?portal=1",target:"_blank",rel:"noopener",class:"text-blue-400 hover:text-blue-700",role:"button"}," Política de privacidade ",-1))]),n[2]||(n[2]=fs(" e, ao continuar navegando, você concorda com estas condições. ",-1))])]),cs("section",{onClick:r},[Ai(e.$slots,"button",{},()=>[n[3]||(n[3]=cs("button",{class:"text-white px-6 py-2 rounded-full bg-green-600 hover:bg-green-700",type:"button"}," Prosseguir ",-1))])])])):ms("",!0)]),_:3}))}}),Mee={key:0,class:"loader absolute z-[5000] top-0 w-screen"},Fee=Ob(Ir({__name:"LoadingModal",setup:e=>(hi(()=>{U_.on("start",()=>{_N.value=!0}),U_.on("finish",()=>{_N.value=!1}),document.addEventListener("click",e=>{if(e.target){const t=e.target;"A"===t.tagName&&t.href&&"_blank"!==t.target&&(e.preventDefault(),setTimeout(()=>{_N.value=!1,U_.get(t.href)},100))}}),window.addEventListener("beforeunload",()=>{_N.value=!0}),window.addEventListener("pagehide",()=>{_N.value=!1}),window.addEventListener("load",()=>{_N.value=!1}),document.onreadystatechange=()=>{_N.value="loading"===document.readyState}}),(e,t)=>an(_N).value?(Xa(),is("div",Mee)):ms("",!0))}),[["__scopeId","data-v-84ba4657"]]),Lee={id:"app",class:"bg-white dark:bg-gray-950 text-gray-900 dark:text-gray-100 transition-colors duration-300"},jee=Ir({__name:"MainLayout",props:{menus:{},menuHeader:{},previsao:{},cotacao:{}},setup:e=>(pi(()=>{(()=>{if("undefined"!=typeof window){const e=localStorage.getItem("theme");bN.isDark=e?"dark"===e:window.matchMedia("(prefers-color-scheme: dark)").matches,DN()}})()}),(t,n)=>(Xa(),is("div",Lee,[ds(Iee,{"menu-header":e.menuHeader,menus:e.menus,class:"z-50",previsao:e.previsao,cotacao:e.cotacao},null,8,["menu-header","menus","previsao","cotacao"]),cs("div",null,[ds(Fee),Ai(t.$slots,"default")]),ds(Ree,{class:"cookie"}),ds(oS,{class:"z-30"})])))});function Hee(e){return(Hee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gee(e){return function(e){if(Array.isArray(e))return Yee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yee(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vee(e,t){if(e===t)return!0;if("object"===Hee(e)){for(var n in e)if(!Vee(e[n],t[n]))return!1;return!0}return!1}var qee=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}var t,n,r;return t=e,n=[{key:"createObserver",value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){var r;if(this.options="function"==typeof(r=e)?{callback:r}:r,this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=function(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=function(s){for(var o=arguments.length,l=new Array(o>1?o-1:0),u=1;u<o;u++)l[u-1]=arguments[u];if(i=l,!n||s!==r){var c=a.leading;"function"==typeof c&&(c=c(s,r)),n&&s===r||!c||e.apply(void 0,[s].concat(Gee(i))),r=s,clearTimeout(n),n=setTimeout(function(){e.apply(void 0,[s].concat(Gee(i))),n=0},t)}};return s._clear=function(){clearTimeout(n),n=null},s}(this.callback,this.options.throttle,{leading:function(e){return"both"===i||"visible"===i&&e||"hidden"===i&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),Rn(function(){n.observer&&n.observer.observe(n.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"==typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}],n&&Uee(t.prototype,n),r&&Uee(t,r),e}();function $ee(e,t,n){var r=t.value;if(r)if("undefined"==typeof IntersectionObserver);else{var i=new qee(e,r,n);e._vue_visibilityState=i}}function Wee(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var zee={beforeMount:$ee,updated:function(e,t,n){var r=t.value;if(!Vee(r,t.oldValue)){var i=e._vue_visibilityState;r?i?i.createObserver(r,n):$ee(e,{value:r},n):Wee(e)}},unmounted:Wee};const Jee=e=>"function"==typeof e,Kee=e=>e&&"object"==typeof e&&!Array.isArray(e),Qee=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(Kee(e)&&Kee(n)){for(const t in n)Kee(n[t])?(e[t]||Object.assign(e,{[t]:{}}),Qee(e[t],n[t])):Object.assign(e,{[t]:n[t]});return Qee(e,...t)}},Zee=()=>!(typeof window>"u"||typeof document>"u"),Xee=(e,t=!0)=>{Zee()};function ete(e="",t=""){const n=e.split("/"),r=t.split("/");return""===n[0]&&"/"===t[t.length-1]&&n.shift(),r.join("/")+n.join("/")}let tte={};const nte=()=>tte,rte=(...e)=>{const{globalObjectName:t}=nte();!Zee()||typeof window[t]>"u"||window[t](...e)},ite=(...e)=>{const{config:t,includes:n}=nte();if(rte("config",t.id,...e),Array.isArray(n))for(const r of n)rte("config",r.id,...e)},ate=(e,t)=>
1644{Zee()&&(window[`ga-disable-${e}`]=t)},ste=(e=!0)=>{const{config:t,includes:n}=nte();if(ate(t.id,e),Array.isArray(n))for(const r of n)ate(r.id,e)},ote=()=>{ste(!0)},lte=(e,t={})=>{const{includes:n,defaultGroupName:r}=nte();null==t.send_to&&Array.isArray(n)&&n.length&&(t.send_to=n.map(e=>e.id).concat(r)),rte("event",e,t)};let ute;const cte=()=>ute,dte=e=>{if(!Zee())return;let t;if("string"==typeof e)t={page_path:e};else if(e.path||e.fullPath){const{pageTrackerUseFullPath:n,pageTrackerPrependBase:r}=nte(),i=cte(),a=null==i?void 0:i.options.base,s=n?e.fullPath:e.path;t={...e.name&&{page_title:e.name},page_path:r?ete(s,a):s}}else t=e;null==t.page_location&&(t.page_location=window.location.href),null==t.send_page_view&&(t.send_page_view=!0),lte("page_view",t)},hte=e=>{const{appName:t}=nte();if(!e)return;let n;n="string"==typeof e?{screen_name:e}:e,n.app_name=n.app_name||t,lte("screen_view",n)},pte=Object.freeze(Object.defineProperty({__proto__:null,config:ite,customMap:e=>{ite({custom_map:e})},event:lte,exception:(...e)=>{lte("exception",...e)},linker:e=>{ite("linker",e)},optIn:()=>{ste(!1)},optOut:ote,pageview:dte,purchase:e=>{lte("purchase",e)},query:rte,refund:(...e)=>{lte("refund",...e)},screenview:hte,set:(...e)=>{rte("set",...e)},time:e=>{lte("timing_complete",e)}},Symbol.toStringTag,{value:"Module"})),fte=e=>({send_page_view:!1,...e}),Bte=()=>{const{config:e,includes:t}=nte();if(rte("config",e.id,fte(e.params)),Array.isArray(t))for(const n of t)rte("config",n.id,fte(n.params))},mte=(e={},t={})=>{const{appName:n,pageTrackerTemplate:r,pageTrackerScreenviewEnabled:i,pageTrackerSkipSamePath:a}=nte();if(a&&e.path===t.path)return;let s=e;Jee(r)?s=r(e,t):i&&(s=((e={})=>(Xee(0,null==e.app_name),Xee(0,null==e.screen_name),e))({app_name:n,screen_name:e.name})),i?hte(s):dte(s)},gte=e=>{const{pageTrackerExcludedRoutes:t}=nte();return t.includes(e.path)||t.includes(e.name)},vte=()=>{const{onReady:e,onError:t,globalObjectName:n,globalDataLayerName:r,config:i,customResourceURL:a,customPreconnectOrigin:s,deferScriptLoad:o,pageTrackerEnabled:l,disableScriptLoad:u}=nte(),c=!(!l||!cte());if((()=>{if(!Zee())return;const{enabled:e,globalObjectName:t,globalDataLayerName:n}=nte();null==window[t]&&(window[n]=window[n]||[],window[t]=function(){window[n].push(arguments)}),window[t]("js",new Date),e||ote(),window[t]})(),c?(()=>{const{onBeforeTrack:e,onAfterTrack:t}=nte(),n=cte();n.isReady().then(()=>{Rn().then(()=>{const{currentRoute:e}=n;Bte(),!gte(e.value)&&mte(e.value)}),n.afterEach((n,r)=>{Rn().then(()=>{gte(n)||(Jee(e)&&e(n,r),mte(n,r),Jee(t)&&t(n,r))})})})})():Bte(),!u)return((e,t={})=>new Promise((n,r)=>{if(typeof document>"u")return;const i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");if(a.async=!0,a.src=e,a.defer=t.defer,t.preconnectOrigin){const e=document.createElement("link");e.href=t.preconnectOrigin,e.rel="preconnect",i.appendChild(e)}i.appendChild(a),a.onload=n,a.onerror=r}))(`${a}?id=${i.id}&l=${r}`,{preconnectOrigin:s,defer:o}).then(()=>{e&&e(window[n])}).catch(e=>(t&&t(e),e))},yte=(e,t,n)=>{(e=>{e.config.globalProperties.$gtag=pte})(e),((e={})=>{tte=Qee({bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}},e)})(t),(e=>{ute=e})(n),nte().bootstrap&&vte()};function Cte(e){return void 0===e}var _te={width:600,height:540};function bte(e,t,n,r,i,a){return Ir({props:{windowFeatures:{type:Object,default:function(){return t||_te},required:a},shareOptions:{type:Object,default:function(){return n||{}},required:i||!0},useNativeBehavior:{type:Boolean,default:!1}},data:function(){return{dialog:Kt({shareDialog:null,shareDialogCloseIntervalId:void 0})}},emits:["click","popup-block","popup-open","popup-close","popup-focus"],beforeUnmount:function(){window.clearInterval(this.dialog.shareDialogCloseIntervalId)},computed:{mergedWindowFeatures:function(){var e=this.windowFeatures;return Object.assign({},_te,e)},ariaLabel:function(){var t=this.$attrs.target,n=r||"Share this with @s.";return("_blank"===t||Cte(t))&&(n+=" (opens in new window)"),n.replace(/@s/g,e)}},methods:{openShareDialog:function(e){var t,n=this,r=this.mergedWindowFeatures,i=r.width,a=void 0===i?_te.width:i,s=r.height,o=function(e,t){var n=window.innerWidth/window.screen.availWi
1644dth,r=e/n,i=t/n,a=(window.innerWidth-e)/2/n+window.screenLeft;return{width:r,height:i,top:(window.innerHeight-t)/2/n+window.screenTop,left:a}}(a,void 0===s?_te.height:s),l=function(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(Number(e[t]))}).join(",")}(Object.assign({},r,o));if(null===this.dialog.shareDialog||null!==(t=this.dialog.shareDialog)&&void 0!==t&&t.closed){if(this.dialog.shareDialog=window.open(e,"_blank",l),!this.dialog.shareDialog)return void this.$emit("popup-block");this.$emit("popup-open"),this.dialog.shareDialogCloseIntervalId=window.setInterval(function(){var e;(null===n.dialog.shareDialog||null!==(e=n.dialog.shareDialog)&&void 0!==e&&e.closed)&&(window.clearInterval(n.dialog.shareDialogCloseIntervalId),n.$emit("popup-close"),n.dialog.shareDialog=null)},300)}else this.dialog.shareDialog.focus(),this.$emit("popup-focus")},generateComponent:function(e){var t,n,r=this;return Vs("a",{href:e,target:"_blank",rel:"nofollow noopener noreferrer","aria-label":this.ariaLabel,onClick:function(t){r.useNativeBehavior||(t.preventDefault(),r.openShareDialog(e)),r.$emit("click")}},null===(t=(n=this.$slots).default)||void 0===t?void 0:t.call(n))}}})}function wte(e){var t=Object.entries(e).filter(function(e){return void 0!==e[1]&&null!==e[1]&&!Number.isNaN(e[1])&&""!==e[1]}).map(function(e){return"".concat(encodeURIComponent(e[0]),"=").concat(encodeURIComponent(String(e[1])))});return t.length>0?"?".concat(t.join("&")):""}const Dte=Ir({name:"SBlogger",mixins:[bte("Blogger",void 0,void 0,void 0,!0)],computed:{networkURL:function(){var e=this.shareOptions,t=e.url,n=e.title,r=wte({u:t,t:e.text,n:n});return"".concat("https://www.blogger.com/blog-this.g").concat(r)}},render:function(){return this.generateComponent(this.networkURL)}});function Ete(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return t=e,Array.isArray(t)?e.join(n):""}const kte=Ir({name:"SDevTo",mixins:[bte("DevTo")],computed:{networkURL:function(){var e=this.shareOptions,t=e.title,n=e.isPublished,r=e.tags,i=e.content,a=t?"title:".concat(t):"",s=n?"published:".concat(n):"",o=r?"tags:".concat(Ete(r,", ")):"",l=i||"",u=wte({prefill:"\n        ---\n        ".concat(a,"\n        ").concat(s,"\n        ").concat(o,"\n        ---\n        ").concat(l)});return"".concat("https://dev.to/new").concat(u)}},render:function(){return this.generateComponent(this.networkURL)}}),Ste=Ir({name:"SDiaspora",mixins:[bte("Diaspora",{width:600,height:540})],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title});return"".concat("https://share.diasporafoundation.org").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),xte=Ir({name:"SDouban",mixins:[bte("Douban",{width:1100,height:450})],computed:{networkURL:function(){var e=this.shareOptions,t=e.title,n=wte({url:e.url,title:t});return"".concat("http://www.douban.com/recommend/").concat(n)}},render:function(){return this.generateComponent(this.networkURL)}}),Tte=Ir({name:"SEmail",props:{shareOptions:{type:Object,required:!0}},computed:{networkURL:function(){var e=this.shareOptions,t=e.mail,n=e.subject,r=e.body,i=e.cc,a=e.bcc,s=wte({subject:n,body:r,cc:Ete(i,", "),bcc:Ete(a,", ")});return"".concat("mailto:").concat(t).concat(s)},ariaLabel:function(){var e=this.shareOptions,t=e.mail,n=e.cc,r=e.bcc,i=["Send an e-mail to ".concat(t)];return n&&i.push("add a carbon copy for ".concat(Ete(n,", "))),r&&i.push("add a blind carbon copy for ".concat(Ete(r,", "))),"".concat(i.join(" and "),".")}},render:function(){var e,t;return Vs("a",{href:this.networkURL,rel:"noopener noreferrer","aria-label":this.ariaLabel},null===(e=(t=this.$slots).default)||void 0===e?void 0:e.call(t))}}),Ote=Ir({name:"SEvernote",mixins:[bte("Evernote",{width:800,height:560})],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title});return"".concat("https://www.evernote.com/clip.action").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Ate=Ir({name:"SFacebook",mixins:[bte("Facebook",{width:685,height:600})],computed:{networkURL:function(){var e=this.shareOptions,t=e.url,n=e.quote,r=e.hashtag;return"".concat("https://www.facebook.com/sharer/sharer.php").concat(wte({u:t,quote:n,hashtag:r}))}},render:function(){return this.generateComponent(this.networkURL)}});function Ite(e,t,n){var r=document.createElement("script"),i=n||"callback";if(t){window.callbackRegistry||(window.callbackRegistry={});var a="cb".concat(String(Math.random()).slice(-6));r.src="".concat(e).concat(-1===e.indexOf("?")?"?":"&").concat(i,"=callbackRegistry.").concat(a),r.onerror=function(){delete window.callbackRegistry[a],t(new Error,null)},window.callbackRegistry[a]=function(e){delete window.callbackRegistry[a],t(null,e)}}else r.src=e;document.head.removeChild(document.head.appendChild(r))}function Pte(e,t,n,r){return Ir({props:{tag:{type:[String,Object],default:"span"},shareOptions:{type:Object,default:function(){return t||{}},required:n||!0}},data:function(){return{count:void 0,response:null,error:null,isLoading:!1}},emits:["load","error","loading"],computed:{ariaLabel:function(){var t=this.count,n=r||"@c people share this on @s.";return Cte(t)?"No one shares this content yet.":n.replace(/@c/g,String(t)).replace(/@s/g,e)}},methods:{handleResult:function(e){this.response=e,this.$emit("load",e)},handleError:function(e){this.error=e,this.$emit("error",e)},handleLoading:function(e){this.isLoading=e,this.$emit("loading",e)},handleCount:function(e){this.count=e},generateComponent:function(){var e,t,n=(null===(e=(t=this.$slots).default)||void 0===e?void 0:e.call(t,{isLoading:this.isLoading,response:this.response,count:this.count}))||[this.count];return Vs(this.tag,{"aria-label":this.ariaLabel},n)}},render:function(){return this.generateComponent()}})}const Nte=Ir({mixins:[Pte("Facebook")],methods:{handleFacebookResponse:function(e){var t;this.handleResult(e),"engagement"in e&&this.handleCount(null===(t=e.engagement)||void 0===t?void 0:t.share_count)}
1644},mounted:function(){var e=this,t=this.shareOptions,n=t.id,r=t.accessToken,i=t.fields,a=t.scopes,s="".concat("https://graph.facebook.com/").concat(wte({id:n,access_token:r,fields:Ete(i),scopes:Ete(a)}));this.handleLoading(!0),Ite(s,function(t,n){e.handleLoading(!1),n&&e.handleFacebookResponse(n),t&&e.handleError(t)})}}),Rte=Ir({name:"SFacebookMessenger",mixins:[bte("Facebook Messenger")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({link:e.url,app_id:e.appId,redirect_uri:e.redirectUri,to:e.to});return"".concat("http://www.facebook.com/dialog/send").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Mte=Ir({name:"SFacebookWorkplace",mixins:[bte("Facebook Workplace")],computed:{networkURL:function(){var e=wte({url:this.shareOptions.url});return"".concat("https://work.facebook.com/sharer.php").concat(e)}},render:function(){return this.generateComponent(this.networkURL)}}),Fte=Ir({name:"SFlipBoard",mixins:[bte("Flipboard",{width:834,height:572})],computed:{networkURL:function(){var e=this.shareOptions,t=wte({v:"2",url:e.url,title:e.title});return"".concat("https://share.flipboard.com/bookmarklet/popout").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}});var Lte="sponsor",jte="follow";const Hte=Ir({name:"SGithub",mixins:[bte("GitHub",{width:900,height:600})],computed:{networkURL:function(){var e="https://github.com/",t=this.shareOptions,n=t.username;switch(t.type){case Lte:return"".concat(e,"sponsors/").concat(n);case jte:return"".concat(e).concat(n,"?tab=followers");default:return"".concat(e).concat(n)}},ariaLabel:function(){var e=this.shareOptions,t=e.username;switch(e.type){case Lte:return"Sponsor ".concat(t," on GitHub.");case jte:return"Follow ".concat(t," on GitHub.");default:return"Watch ".concat(t," on GitHub.")}}},render:function(){return this.generateComponent(this.networkURL)}}),Ute=Ir({name:"SGithubCount",mixins:[Pte("GitHub",{},!0,"@c followers on @s.")],methods:{handleGithubResponse:function(e){this.handleResult(e),"followers"in e.data&&this.handleCount(e.data.followers)}},mounted:function(){var e,t=this,n=this.shareOptions,r=n.username;n.type,e="".concat("https://api.github.com/","users/").concat(r),this.handleLoading(!0),Ite(e,function(e,n){t.handleLoading(!1),n&&t.handleGithubResponse(n),e&&t.handleError(e)})}});var Gte="star",Yte="fork",Vte="download";const qte=Ir({name:"SGithubGist",mixins:[bte("GitHub Gists",{width:900,height:600})],computed:{networkURL:function(){var e="https://gist.github.com/",t=this.shareOptions,n=t.username,r=t.gistId;switch(t.type){case Yte:return"".concat(e).concat(n,"/").concat(r,"/forks");case Gte:return"".concat(e).concat(n,"/").concat(r,"/stargazers");case Vte:return"".concat(e).concat(n,"/").concat(r,"/archive/master.zip");default:return"".concat(e).concat(n,"/").concat(r)}},ariaLabel:function(){switch(this.shareOptions.type){case Yte:return"Fork this gist.";case Gte:return"Star this gist.";case Vte:return"Download this gist.";default:return"Watch this gist."}}},render:function(){return this.generateComponent(this.networkURL)}});var $te=Ir({name:"SGithubGistCount",methods:{handleGithubResponse:function(e){var t;this.shareOptions.type,this.handleResult(e),"forks"in e.data&&(t=e.data.forks.length),this.handleCount(t)}},mixins:[Pte("GithubGist")],mounted:function(){var e=this,t=this.shareOptions.gistId,n="".concat("https://api.github.com/","gists/").concat(t);this.handleLoading(!0),Ite(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handleGithubResponse(n)})}});const Wte=$te;var zte="watch",Jte="star",Kte="fork",Qte="download",Zte="issue",Xte="pr",ene="template";const tne=Ir({name:"SGithubRepo",mixins:[bte("GitHub",{width:900,height:600})],computed:{networkURL:function(){var e="https://github.com/",t=this.shareOptions,n=t.username,r=t.repository;switch(t.type){case zte:return"".concat(e).concat(n,"/").concat(r,"/subscription");case Kte:return"".concat(e).concat(n,"/").concat(r,"/fork");case Jte:return"".concat(e).concat(n,"/").concat(r,"/stargazers");case Zte:return"".concat(e).concat(n,"/").concat(r,"/issues/new");case Xte:return"".concat(e).concat(n,"/").concat(r,"/compare");case Qte:return"".concat(e).concat(n,"/").concat(r,"/archive/master.zip");case ene:return"".concat(e).concat(n,"/").concat(r,"/generate");default:return"".concat(e).concat(n,"/").concat(r)}},ariaLabel:function(){var e=this.shareOptions,t=e.username,n=e.repository;switch(e.type){case zte:return"Watch ".concat(t,"/").concat(n," on GitHub");case Kte:return"Fork ".concat(t,"/").concat(n," on GitHub");case Jte:return"Give a star to ".concat(t,"/").concat(n," on GitHub");case Zte:return"Raise a new issue on ".concat(t,"/").concat(n," on GitHub");case Xte:return"Raise a new pull request ".concat(t,"/").concat(n," on GitHub");case Qte:return"Download ".concat(t,"/").concat(n," from GitHub");case ene:return"Generate a new repository from ".concat(t,"/").concat(n," on GitHub");default:return"Watch ".concat(t,"/").concat(n," on GitHub")}}},render:function(){return this.generateComponent(this.networkURL)}});var nne="watch",rne="fork",ine="issues",ane=Ir({name:"SGithubRepoCount",mixins:[Pte("GitHub")],methods:{handleGithubResponse:function(e){var t,n=this.shareOptions.type;switch(this.handleResult(e),n){case nne:"subscribers_count"in e.data&&(t=e.data.subscribers_count);break;case rne:"forks_count"in e.data&&(t=e.data.forks_count);break;case ine:"open_issues_count"in e.data&&(t=e.data.open_issues_count);break;default:"stargazers_count"in e.data&&(t=e.data.stargazers_count)}this.handleCount(t)}},mounted:function(){var e=this,t=this.shareOptions,n=t.username,r=t.repository,i="".concat("https://api.github.com/","repos/").concat(n,"/").concat(r);this.handleLoading(!0),Ite(i,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handleGithubResponse(n)})}});const sne=ane,one=Ir({name:"SGmail",mixins:[bte("Gmail")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({view:"cm",to:e.to,su:e.su,body:e.body,cc:e.cc,bcc:e.bcc});return"".concat("https://mail.google.com/mail/").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),lne=Ir({name:"SGoogleBookmarks",mixins:[bte("Google Bookmarks")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({op:"edit",output:"popup",bkmk:e.url,title:e.title,annotation:e.annotation,labels:Ete(e.tags)});return"".concat("https://www.google.com/bookmarks/mark").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),une=Ir({name:"SHackerNews",mixins:[bte("HackerNews")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({u:e.url,t:e.title});return"".concat("https://news.ycombinator.com/submitlink").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),cne=Ir({name:"SHatena",mixins:[bte("Hatena")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({mode:"confirm",url:e.url,title:e.title});return"".concat("http://b.hatena.ne.jp/add").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}});var dne=Ir({name:"SHatenaCount",mixins:[Pte("Hatena")],methods:{handleOKResponse:function(e){this.handleResult({count:e}),this.handleCount(e)}},mounted:function(){var e=this,t=this.shareOptions.url,n="".concat("https://bookmark.hatenaapis.com/count/entry").concat(wte({url:t}));this.handleLoading(!0),Ite(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handleOKResponse(n)})}});const hne=dne,pne=Ir({name:"SHouzz",mixins:[bte("Houzz",{width:1100,height:700})],computed:{networkURL:function(){var e=this.shareOptions,t=e.id,n=e.url,r=e.title,i=wte({link:n,hzid:t,imageUrl:e.image,title:r,category:Ete(e.category)});return"".concat("https://www.houzz.com/imageClipperUpload").concat(i)}},render:function(){return this.generateComponent(this.networkURL)}}),fne=Ir({name:"SInstaPaper",mixins:[bte("InstaPaper",{width:600,height:600})],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title,de
1644scription:e.description});return"".concat("http://www.instapaper.com/edit").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Bne=Ir({name:"SKakaoStory",mixins:[bte("KakaoStory")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,text:e.text});return"".concat("https://story.kakao.com/s/share").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),mne=Ir({name:"SLine",mixins:[bte("Line",{width:600,height:600})],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,text:e.text});return"".concat("https://lineit.line.me/share/ui").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}});function gne(e,t){var n=new XMLHttpRequest;n.open("GET",e),n.onload=function(){4===n.readyState&&200===n.status&&t(null,JSON.parse(n.response))},n.onerror=function(){t(n.statusText,null)},n.send()}const vne=Ir({name:"SLineCount",mixins:[Pte("Line")],methods:{handlePinterestResponse:function(e){this.handleResult(e),this.handleCount(e.share)}},mounted:function(){var e=this,t=this.shareOptions.url,n="".concat("https://api.line.me/social-plugin/metrics").concat(wte({url:t}));this.handleLoading(!0),gne(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handlePinterestResponse(n)})}}),yne=Ir({name:"SLinkedIn",mixins:[bte("LinkedIn")],computed:{networkURL:function(){var e=wte({url:this.shareOptions.url});return"".concat("https://www.linkedin.com/sharing/share-offsite/").concat(e)}},render:function(){return this.generateComponent(this.networkURL)}}),Cne=Ir({name:"SLiveJournal",mixins:[bte("LiveJournal")],computed:{networkURL:function(){var e=this.shareOptions,t=e.subject,n=wte({event:e.url,subject:t});return"".concat("http://www.livejournal.com/update.bml").concat(n)}},render:function(){return this.generateComponent(this.networkURL)}}),_ne=Ir({name:"SMailRu",mixins:[bte("Mail.ru")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({share_url:e.url,title:e.title,description:e.description,image_url:e.image,swfurl:e.swfUrl,width:e.width,height:e.height});return"".concat("https://connect.mail.ru/share").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),bne=Ir({name:"SMastodon",mixins:[bte("Mastodon",{width:600,height:700})],computed:{networkURL:function(){var e=this.shareOptions,t=e.domain,n=e.text,r=e.url,i="".concat(t,"/share"),a=wte({text:n,url:r});return"".concat(i).concat(a)}},render:function(){return this.generateComponent(this.networkURL)}}),wne=Ir({name:"SMicrosoftTeams",mixins:[bte("MicrosoftTeams")],computed:{networkURL:function(){var e=this.shareOptions,t=e.url,n=e.preview,r=e.text,i=e.instruction,a=wte({href:t,preview:n,assignTitle:e.title,msgText:r,assignInstr:i});return"".concat("https://teams.microsoft.com/share").concat(a)}},render:function(){return this.generateComponent(this.networkURL)}}),Dne=Ir({name:"SOdnoklassniki",mixins:[bte("Odnoklassniki")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title,imageUrl:e.imageUrl});return"".concat("https://connect.ok.ru/offer").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}});var Ene=Ir({name:"SOdnoklassnikiCount",mixins:[Pte("Odnoklassniki")],methods:{handleOKResponse:function(e){this.handleResult({count:e}),this.handleCount(e)}},mounted:function(){var e=this,t=this.shareOptions.ref,n="".concat("https://connect.ok.ru/dk").concat(wte({"st.cmd":"extLike",tp:"json",ref:t}));this.handleLoading(!0),gne(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handleOKResponse(n.count)})}});const kne=Ene,Sne=Ir({name:"SPinterest",mixins:[bte("Pinterest",{width:700,height:700})],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,media:e.media,description:e.description});return"".concat("http://pinterest.com/pin/create/button/").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),xne=Ir({name:"SPinterestCount",mixins:[Pte("Pinterest")],methods:{handlePinterestResponse:function(e){this.handleResult(e),this.handleCount(e.count)}},mounted:function(){var e=this,t=this.shareOptions.url,n="".concat("https://api.pinterest.com/v1/urls/count.json").concat(wte({url:t}));this.handleLoading(!0),Ite(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handlePinterestResponse(n)})}}),Tne=Ir({name:"SPocket",mixins:[bte("GetPocket")],computed:{networkURL:function(){var e=wte({url:this.shareOptions.url});return"".concat("https://getpocket.com/edit").concat(e)}},render:function(){return this.generateComponent(this.networkURL)}}),One=Ir({name:"SQZone",mixins:[bte("QZone")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title,summary:e.summary});return"".concat("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Ane=Ir({name:"SReddit",mixins:[bte("Reddit",void 0,void 0,void 0,!1)],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title,text:e.text,selftext:e.selftext});return"".concat("https://reddit.com/submit").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Ine=Ir({name:"SRedditCount",mixins:[Pte("Reddit")],methods:{handleRedditResponse:function(e){var t,n,r;this.handleResult(e),this.handleCount(null==e||null===(t=e.data)||void 0===t||null===(n=t.children)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.data.score)}},mounted:function(){var e=this,t=this.shareOptions.url,n="".concat("https://www.reddit.com/api/info.json").concat(wte({limit:1,url:t}));this.handleLoading(!0),Ite(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handleRedditResponse(n)},"jsonp")}}),Pne=Ir({name:"SRenRen",mixins:[bte("RenRen")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({resourceUrl:e.resourceUrl,srcUrl:e.srcUrl,title:e.title,de
1644scription:e.description,pic:e.pic});return"".concat("http://widget.renren.com/dialog/share").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Nne=Ir({name:"SSkype",mixins:[bte("Skype")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,text:e.text});return"".concat("https://web.skype.com/share").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Rne=Ir({name:"SSms",props:{shareOptions:{type:Object,required:!0}},computed:{networkURL:function(){var e=this.shareOptions,t=e.number,n=wte({body:e.body});return"".concat("sms:").concat(t).concat(n)}},render:function(){var e,t;return Vs("a",{attrs:{href:this.networkURL}},null===(e=(t=this.$slots).default)||void 0===e?void 0:e.call(t))}}),Mne=Ir({name:"STelegram",mixins:[bte("Telegram")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,text:e.text});return"".concat("https://t.me/share/url").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Fne=Ir({name:"SThreema",mixins:[bte("Threema")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({text:e.url,id:e.id});return"".concat("threema://compose").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Lne=Ir({name:"STrello",mixins:[bte("Trello")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,name:e.name,desc:e.description,mode:"popup"});return"".concat("https://trello.com/add-card").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),jne=Ir({name:"STumblr",mixins:[bte("Tumblr",{width:542,height:644})],computed:{networkURL:function(){var e=this.shareOptions,t=e.canonicalUrl,n=e.tags,r=e.title,i=e.caption,a=e.content,s=e.showVia,o=wte({canonicalUrl:t,title:r,caption:i,content:a,tags:Ete(n),"show-via":s});return"".concat("https://www.tumblr.com/widgets/share/tool").concat(o)}},render:function(){return this.generateComponent(this.networkURL)}}),Hne=Ir({name:"STumblrCount",mixins:[Pte("Tumblr")],methods:{handleTumblrResponse:function(e){var t;this.handleResult(e),this.handleCount(null===(t=e.response)||void 0===t?void 0:t.note_count)}},mounted:function(){var e=this,t=this.shareOptions.url,n="".concat("http://api.tumblr.com/v2/share/stats").concat(wte({url:t}));this.handleLoading(!0),Ite(n,function(t,n){e.handleLoading(!1),t&&e.handleError(t),n&&e.handleTumblrResponse(n)})}}),Une=Ir({name:"STwitter",mixins:[bte("Twitter",void 0,void 0,void 0,!1)],computed:{networkURL:function(){var e=this.shareOptions,t=e.text,n=e.url,r=e.hashtags,i=e.via,a=wte({text:t,url:n,hashtags:Ete(r),via:i});return"".concat("https://twitter.com/intent/tweet").concat(a)}},render:function(){return this.generateComponent(this.networkURL)}}),Gne=Ir({name:"SViber",mixins:[bte("Viber")],computed:{networkURL:function(){var e=this.shareOptions,t=e.text,n=e.url,r=wte({text:"".concat(t," ").concat(n)});return"".concat("viber://forward").concat(r)}},render:function(){return this.generateComponent(this.networkURL)}}),Yne=Ir({name:"SVkontakte",mixins:[bte("Vkontakte",void 0,void 0,void 0,!1)],computed:{networkURL:function(){var e=this.shareOptions,t=e.url,n=e.title,r=e.image,i=e.noParse,a=e.noVkLinks,s=wte({url:t,title:n,image:r,noparse:i,no_vk_links:Number(a)});return"".concat("https://vk.com/share.php").concat(s)}},render:function(){return this.generateComponent(this.networkURL)}});var Vne=Ir({mixins:[Pte("Vkontakte")],methods:{handleVKResponse:function(e,t){var n;this.handleLoading(!1),this.handleResult({index:e,count:t}),this.handleCount(t),null===(n=window.VK.callbacks)||void 0===n||delete n["cb".concat(e)]}},mounted:function(){var e=this.shareOptions.url;window.VK||(window.VK={}),window.VK.callbacks||(window.VK.callbacks={}),window.VK.Share={count:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){var n,r;return null===(n=window.VK.callbacks)||void 0===n||null===(r=n["cb".concat(e)])||void 0===r?void 0:r.call(n,e,t)})};var t=Object.keys(window.VK.callbacks).length,n="cb".concat(t);window.VK.callbacks[n]=this.handleVKResponse;var r="".concat("https://vk.com/share.php").concat(wte({act:"count",index:t,url:e}));this.handleLoading(!0),Ite(r)}});const qne=Vne,$ne=Ir({name:"SWeibo",mixins:[bte("Weibo")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,title:e.title,appkey:e.appkey,pic:e.pic});return"".concat("http://service.weibo.com/share/share.php").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Wne=Ir({name:"SWhatsApp",mixins:[bte("WhatsApp")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({phone:e.number,text:e.text});
1644return"".concat("https://api.whatsapp.com/send").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),zne=Ir({name:"SWordPress",mixins:[bte("WordPress")],computed:{networkURL:function(){var e=this.shareOptions,t=e.domain,n=wte({u:e.url,t:e.title,s:e.text,i:e.image});return"".concat(t,"/").concat("wp-admin/press-this.php").concat(n)}},render:function(){return this.generateComponent(this.networkURL)}}),Jne=Ir({name:"SXing",mixins:[bte("Xing")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({url:e.url,follow_url:e.followUrl});return"".concat("https://www.xing.com/spi/shares/new").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Kne=Ir({name:"SYahoo",mixins:[bte("Yahoo")],computed:{networkURL:function(){var e=this.shareOptions,t=wte({to:e.email,subject:e.subject,body:e.body});return"".concat("http://compose.mail.yahoo.com/").concat(t)}},render:function(){return this.generateComponent(this.networkURL)}}),Qne=Ir({name:"SYammer",mixins:[bte("Yammer",{width:900,height:600})],computed:{networkURL:function(){var e=this.shareOptions,t=e.text,n=e.url,r=e.groupId,i=wte({login:!0,status:"".concat(t," ").concat(n),group_id:r});return"".concat("https://www.yammer.com/messages/new").concat(i)}},render:function(){return this.generateComponent(this.networkURL)}}),Zne=Object.freeze(Object.defineProperty({__proto__:null,SBlogger:Dte,SDevTo:kte,SDiaspora:Ste,SDouban:xte,SEmail:Tte,SEvernote:Ote,SFacebook:Ate,SFacebookCount:Nte,SFacebookMessenger:Rte,SFacebookWorkplace:Mte,SFlipBoard:Fte,SGithub:Hte,SGithubCount:Ute,SGithubGist:qte,SGithubGistCount:Wte,SGithubRepo:tne,SGithubRepoCount:sne,SGmail:one,SGoogleBookmarks:lne,SHackerNews:une,SHatena:cne,SHatenaCount:hne,SHouzz:pne,SInstaPaper:fne,SKakaoStory:Bne,SLine:mne,SLineCount:vne,SLinkedIn:yne,SLiveJournal:Cne,SMailRu:_ne,SMastodon:bne,SMicrosoftTeams:wne,SOdnoklassniki:Dne,SOdnoklassnikiCount:kne,SPinterest:Sne,SPinterestCount:xne,SPocket:Tne,SQZone:One,SReddit:Ane,SRedditCount:Ine,SRenRen:Pne,SSkype:Nne,SSms:Rne,STelegram:Mne,SThreema:Fne,STrello:Lne,STumblr:jne,STumblrCount:Hne,STwitter:Une,SViber:Gne,SVkontakte:Yne,SVkontakteCount:qne,SWeibo:$ne,SWhatsApp:Wne,SWordPress:zne,SXing:Jne,SYahoo:Kne,SYammer:Qne},Symbol.toStringTag,{value:"Module"})),Xne=function(e){Object.entries(Zne).forEach(function(t){var n=t[0],r=t[1];e.component(n,r)})};
1645/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */
1646var ere=Object.defineProperty,tre=(e,t,n)=>(((e,t,n)=>{t in e?ere(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const nre={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};let rre=class{constructor(e={}){tre(this,"opts",{}),tre(this,"memo",new Map);const t={...e};if(null!=t.tokens){t.tokens=t.tokensReplace?{...t.tokens}:{...nre,...t.tokens};for(const e of Object.values(t.tokens))"string"==typeof e.pattern&&(e.pattern=new RegExp(e.pattern))}else t.tokens=nre;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((e,t)=>e.length-t.length):t.mask=t.mask[0]??""),""===t.mask&&(t.mask=null),this.opts=t}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return!0===this.opts.eager}isReversed(){return!0===this.opts.reversed}completed(e){const t=this.findMask(e);if(null==this.opts.mask||null==t)return!1;const n=this.process(e,t).length;return"string"==typeof this.opts.mask?n>=this.opts.mask.length:"function"==typeof this.opts.mask?n>=t.length:this.opts.mask.filter(e=>n>=e.length).length===this.opts.mask.length}findMask(e){const t=this.opts.mask;if(null==t)return null;if("string"==typeof t)return t;if("function"==typeof t)return t(e);const n=this.process(e,t.slice(-1).pop()??"",!1);return t.find(t=>this.process(e,t,!1).length>=n.length)??""}escapeMask(e){const t=[],n=[];return e.split("").forEach((r,i)=>{"!"===r&&"!"!==e[i-1]?n.push(i-n.length):t.push(r)}),{mask:t.join(""),escaped:n}}process(e,t,n=!0){if(null==t)return e;const r=`value=${e},mask=${t},masked=${n?1:0}`;if(this.memo.has(r))return this.memo.get(r);const{mask:i,escaped:a}=this.escapeMask(t),s=[],o=null!=this.opts.tokens?this.opts.tokens:{},l=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",c=this.isReversed()?0:i.length-1,d=this.isReversed()?()=>B>-1&&m>-1:()=>B<i.length&&m<e.length,h=e=>!this.isReversed()&&e<=c||this.isReversed()&&e>=c;let p,f=-1,B=this.isReversed()?i.length-1:0,m=this.isReversed()?e.length-1:0,g=!1;for(;d();){const t=i.charAt(B),r=o[t],d=null!=(null==r?void 0:r.transform)?r.transform(e.charAt(m)):e.charAt(m);
1646if(a.includes(B)||null==r?(n&&!this.isEager()&&s[u](t),d!==t||this.isEager()?p=t:m+=l,this.isEager()||(B+=l)):(null!=d.match(r.pattern)?(s[u](d),r.repeated?(-1===f?f=B:B===c&&B!==f&&(B=f-l),c===f&&(B-=l)):r.multiple&&(g=!0,B-=l),B+=l):r.multiple?g&&(B+=l,m-=l,g=!1):d===p?p=void 0:r.optional&&(B+=l,m-=l),m+=l),this.isEager())for(;h(B)&&(null==o[i.charAt(B)]||a.includes(B));)n?s[u](i.charAt(B)):i.charAt(B)===e.charAt(m)&&(m+=l),B+=l}return this.memo.set(r,s.join("")),this.memo.get(r)}};const ire=e=>JSON.parse(e.replaceAll("'",'"')),are=(e,t={})=>{const n={...t};return null!=e.dataset.maska&&""!==e.dataset.maska&&(n.mask=ore(e.dataset.maska)),null!=e.dataset.maskaEager&&(n.eager=sre(e.dataset.maskaEager)),null!=e.dataset.maskaReversed&&(n.reversed=sre(e.dataset.maskaReversed)),null!=e.dataset.maskaTokensReplace&&(n.tokensReplace=sre(e.dataset.maskaTokensReplace)),null!=e.dataset.maskaTokens&&(n.tokens=lre(e.dataset.maskaTokens)),n},sre=e=>""===e||!!JSON.parse(e),ore=e=>e.startsWith("[")&&e.endsWith("]")?ire(e):e,lre=e=>{if(e.startsWith("{")&&e.endsWith("}"))return ire(e);const t={};return e.split("|").forEach(e=>{const n=e.split(":");t[n[0]]={pattern:new RegExp(n[1]),optional:"optional"===n[2],multiple:"multiple"===n[2],repeated:"repeated"===n[2]}}),t};let ure=class{constructor(e,t={}){tre(this,"items",new Map),tre(this,"beforeinputEvent",e=>{const t=e.target,n=this.items.get(t);n.isEager()&&"inputType"in e&&e.inputType.startsWith("delete")&&n.unmasked(t.value).length<=1&&this.setMaskedValue(t,"")}),tre(this,"inputEvent",e=>{if(e instanceof CustomEvent&&"input"===e.type&&null!=e.detail&&"object"==typeof e.detail&&"masked"in e.detail)return;const t=e.target,n=this.items.get(t),r=t.value,i=t.selectionStart,a=t.selectionEnd;let s=r;if(n.isEager()){const t=n.masked(r),i=n.unmasked(r);""===i&&"data"in e&&null!=e.data?s=e.data:i!==n.unmasked(t)&&(s=i)}if(this.setMaskedValue(t,s),"inputType"in e&&(e.inputType.startsWith("delete")||null!=i&&i<r.length))try{t.setSelectionRange(i,a)}catch{}}),this.options=t,"string"==typeof e?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(t)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(t))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,t){const n=this.items.get(e),r=new rre(are(e,this.getMaskOpts(t)));return JSON.stringify(n.opts)!==JSON.stringify(r.opts)}needUpdateValue(e){const t=e.dataset.maskaValue;return null==t&&""!==e.value||null!=t&&t!==e.value}getMaskOpts(e){const{onMaska:t,preProcess:n,postProcess:r,...i}=e;return i}init(e,t){for(const n of e){const e=new rre(are(n,t));this.items.set(n,e),""!==n.value&&this.setMaskedValue(n,n.value),n.addEventListener("input",this.inputEvent),n.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,t){const n=this.items.get(e);null!=this.options.preProcess&&(t=this.options.preProcess(t));const r=n.masked(t),i={masked:r,unmasked:n.unmasked(n.isEager()?r:t),completed:n.completed(t)};t=r,null!=this.options.postProcess&&(t=this.options.postProcess(t)),e.value=t,e.dataset.maskaValue=t,null!=this.options.onMaska&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(e=>e(i)):this.options.onMaska(i)),e.dispatchEvent(new CustomEvent("maska",{detail:i})),e.dispatchEvent(new CustomEvent("input",{detail:i}))}};const cre=new WeakMap,dre=(e,t)=>{const n=e instanceof HTMLInputElement?e:e.querySelector("input"),r={...t.arg};if(null==n||"file"===(null==n?void 0:n.type))return;(e=>{setTimeout(()=>{var t;!0===(null==(t=cre.get(e))?void 0:t.needUpdateValue(e))&&e.dispatchEvent(new CustomEvent("input"))})})(n);const i=cre.get(n);if(null!=i){if(!i.needUpdateOptions(n,r))return;i.destroy()}if(null!=t.value){const e=t.value,n=t=>{e.masked=t.masked,e.unmasked=t.unmasked,e.completed=t.completed};r.onMaska=null==r.onMaska?n:Array.isArray(r.onMaska)?[...r.onMaska,n]:[r.onMaska,n]}cre.set(n,new ure(n,r))},hre={key:0},pre={key:1},fre={key:2},Bre={key:3},mre={key:4},gre={key:5},vre={key:6},yre={key:7},Cre={key:8},_re={key:9},bre=Ir({__name:"vue-awesome-paginate",props:{totalItems:{type:Number,required:!0},itemsPerPage:{type:Number,default:10,validator:e=>{if(e<=0)throw new TypeError("itemsPerPage attribute must be greater than 0.");return!0}},currentPage:{type:Number,default:1,validator:e=>{if(e<=0)throw new TypeError("currentPage attribute must be greater than 0.");return!0}},modelValue:{type:Number,required:!0,validator:e=>{if(e<=0)throw new TypeError("v-model is required and must be greater than 0.");return!0}},maxPagesShown:{type:Number,default:5,validator:e=>{if(e<=0)throw new TypeError("maxPagesShown attribute must be greater than 0.");return!0}},dir:{type:String,default:"ltr",validator:e=>{if("ltr"!==e&&"rtl"!==e)throw new TypeError('dir attribute must be either "ltr" or "rtl".');return!0}},type:{type:String,default:"button",validator:e=>{const t=["link","button"],n="type attribute must be one of the following: "+t.join(", ");
1646if(-1===t.indexOf(e))throw new TypeError(n);return!0}},onClick:{type:Function,default:()=>{}},locale:{type:String,default:"en",validator:e=>{const t=["en","ar","ir"],n="locale attribute must be one of the following: "+t.join(", ");if(-1===t.indexOf(e))throw new TypeError(n);return!0}},prevButtonContent:{type:String,default:"<"},nextButtonContent:{type:String,default:">"},hidePrevNext:{type:Boolean,default:!1},hidePrevNextWhenEnds:{type:Boolean,default:!1},showBreakpointButtons:{type:Boolean,default:!0},disableBreakpointButtons:{type:Boolean,default:!1},startingBreakpointContent:{type:String,default:"..."},endingBreakpointButtonContent:{type:String,default:"..."},showJumpButtons:{type:Boolean,default:!1},linkUrl:{type:String,default:"#"},backwardJumpButtonContent:{type:String,default:"<<"},forwardJumpButtonContent:{type:String,default:">>"},disablePagination:{type:Boolean,default:!1},showEndingButtons:{type:Boolean,default:!1},firstPageContent:{type:String,default:"First"},lastPageContent:{type:String,default:"Last"},backButtonClass:{type:String,default:"back-button"},nextButtonClass:{type:String,default:"next-button"},firstButtonClass:{type:String,default:"first-button"},lastButtonClass:{type:String,default:"last-button"},numberButtonsClass:{type:String,default:"number-buttons"},startingBreakpointButtonClass:{type:String,default:"starting-breakpoint-button"},endingBreakPointButtonClass:{type:String,default:"ending-breakpoint-button"},firstPageButtonClass:{type:String,default:"first-page-button"},lastPageButtonClass:{type:String,default:"last-page-button"},paginateButtonsClass:{type:String,default:"paginate-buttons"},disabledPaginateButtonsClass:{type:String,default:"disabled-paginate-buttons"},activePageClass:{type:String,default:"active-page"},paginationContainerClass:{type:String,default:"pagination-container"},disabledBreakPointButtonClass:{type:String,default:"disabled-breakpoint-button"},backwardJumpButtonClass:{type:String,default:"backward-jump-button"},forwardJumpButtonClass:{type:String,default:"forward-jump-button"},disabledBackwardJumpButtonClass:{type:String,default:"disabled-backward-jump-button"},disabledBackButtonClass:{type:String,default:"disabled-back-button"},disabledFirstButtonClass:{type:String,default:"disabled-first-button"},disabledLastButtonClass:{type:String,default:"disabled-last-button"},disabledNextButtonClass:{type:String,default:"disabled-next-button"},disabledForwardJumpButtonClass:{type:String,default:"disabled-forward-jump-button"}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e;if(n.currentPage&&!n.modelValue)throw new Error("currentPage/current-page is now deprecated, use v-model instead to set the current page.");if(!n.modelValue)throw new TypeError("v-model is required for the paginate component.");const r=fn(n,"modelValue"),i=t,a=e=>{e!==r.value&&(e>l.value||e<1||n.disablePagination||(i("update:modelValue",e),i("click",e)))},s=e=>{switch(n.locale){case"en":default:return e;case"ar":return e.toLocaleString("ar-SA");case"ir":return e.toLocaleString("fa-IR")}},o=e=>"link"!==n.type?"":n.linkUrl.replace("[page]",e.toString()),l=Ys(()=>Math.ceil(n.totalItems/n.itemsPerPage)),u=Ys(()=>{let e,t;if(l.value<=n.maxPagesShown)e=1,t=l.value;else{let i=Math.floor(n.maxPagesShown/2),a=Math.ceil(n.maxPagesShown/2)-1;r.value<=i?(e=1,t=n.maxPagesShown):r.value+a>=l.value?(e=l.value-n.maxPagesShown+1,t=l.value):(e=r.value-i,t=r.value+a)}let i=Array.from(Array(t+1-e).keys()).map(t=>e+t);return"rtl"===n.dir&&(i=i.reverse()),{totalItems:n.totalItems,currentPage:r.value,itemsPerPage:n.itemsPerPage,totalPages:l,startPage:e,endPage:t,pages:i}}),c=Ys(()=>"rtl"===n.dir),d=Ys(()=>c.value?!n.hidePrevNextWhenEnds||r.value!==l.value:!n.hidePrevNextWhenEnds||1!==r.value),h=Ys(()=>c.value?!n.hidePrevNextWhenEnds||1!==r.value:!n.hidePrevNextWhenEnds||r.value!==l.value),p=Ys(()=>c.value?u.value.pages[0]<l.value-1:u.value.pages[0]>=3),f=Ys(()=>c.value?u.value.pages[u.value.pages.length-1]>=3:u.value.pages[u.value.pages.length-1]<l.value-1),B=Ys(()=>c.value?u.value.pages[0]<l.value:u.value.pages[0]>=2),m=Ys(()=>c.value?u.value.pages[u.value.pages.length-1]>=2:u.value.pages[u.value.pages.length-1]<l.value),g=Ys(()=>1!==r.value),v=Ys(()=>r.value!==l.value);if("link"===n.type&&"#"===n.linkUrl)throw new TypeError("linkUrl attribute is required if type attribute is 'link'");if("link"===n.type&&!n.linkUrl.includes("[page]"))throw new TypeError("linkUrl attribute must contain '[page]' substring");return(t,n)=>
1646(Xa(),is("ul",{id:"componentContainer",class:le(e.paginationContainerClass)},[e.showEndingButtons&&g.value?(Xa(),is("li",hre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?l.value:1),onClick:n[0]||(n[0]=Ol(e=>a(c.value?l.value:1),["prevent"])),class:le([e.firstPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:zn(()=>[Ai(t.$slots,"first-page-button",{},()=>[fs(we(e.firstPageContent),1)])]),_:3},8,["href","class","disabled"]))])):ms("",!0),e.showJumpButtons&&p.value?(Xa(),is("li",pre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?r.value+Math.ceil(e.maxPagesShown/2):r.value-Math.ceil(e.maxPagesShown/2)),onClick:n[1]||(n[1]=Ol(t=>a(c.value?r.value+Math.ceil(e.maxPagesShown/2):r.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),class:le([e.backwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackwardJumpButtonClass:""]),disabled:e.disablePagination},{default:zn(()=>[Ai(t.$slots,"backward-jump-button",{},()=>[fs(we(e.backwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):ms("",!0),!e.hidePrevNext&&d.value?(Xa(),is("li",fre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?r.value+1:r.value-1),onClick:n[2]||(n[2]=Ol(e=>a(c.value?r.value+1:r.value-1),["prevent"])),class:le([e.backButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackButtonClass:""]),disabled:e.disablePagination},{default:zn(()=>[Ai(t.$slots,"prev-button",{},()=>[fs(we(e.prevButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):ms("",!0),e.showBreakpointButtons&&B.value?(Xa(),is("li",Bre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?l.value:1),onClick:n[3]||(n[3]=Ol(e=>a(c.value?l.value:1),["prevent"])),class:le([e.firstButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledFirstButtonClass:""]),disabled:e.disablePagination},{default:zn(()=>[fs(we(c.value?s(l.value):s(1)),1)]),_:1},8,["href","class","disabled"]))])):ms("",!0),e.showBreakpointButtons&&p.value?(Xa(),is("li",mre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(e.disableBreakpointButtons?r.value:c.value?r.value+Math.ceil(e.maxPagesShown/2):r.value-Math.ceil(e.maxPagesShown/2)),onClick:n[4]||(n[4]=Ol(t=>a(e.disableBreakpointButtons?r.value:c.value?r.value+Math.ceil(e.maxPagesShown/2):r.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:le([e.startingBreakpointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:zn(()=>[Ai(t.$slots,"starting-breakpoint-button",{},()=>[fs(we(e.startingBreakpointContent),1)])]),_:3},8,["href","disabled","class"]))])):ms("",!0),(Xa(!0),is(Wa,null,Ti(u.value.pages,(t,n)=>(Xa(),is("li",{key:n},[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(t),onClick:Ol(()=>a(t),["prevent"]),class:le([e.paginateButtonsClass,e.numberButtonsClass,t===r.value?e.activePageClass:"",e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:zn(()=>[fs(we(s(t)),1)]),_:2},1032,["href","onClick","class","disabled"]))]))),128)),e.showBreakpointButtons&&f.value?(Xa(),is("li",gre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(e.disableBreakpointButtons?r.value:c.value?r.value-Math.ceil(e.maxPagesShown/2):r.value+Math.ceil(e.maxPagesShown/2)),onClick:n[5]||(n[5]=Ol(t=>a(e.disableBreakpointButtons?r.value:c.value?r.value-Math.ceil(e.maxPagesShown/2):r.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:le([e.endingBreakPointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:zn(()=>[Ai(t.$slots,"ending-breakpoint-button",{},()=>[fs(we(e.endingBreakpointButtonContent),1)])]),_:3},8,["href","disabled","class"]))])):ms("",!0),e.showBreakpointButtons&&m.value?(Xa(),is("li",vre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?1:l.value),onClick:n[6]||(n[6]=Ol(e=>
1646a(c.value?1:l.value),["prevent"])),class:le([e.lastButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledLastButtonClass:""]),disabled:e.disablePagination},{default:zn(()=>[fs(we(c.value?s(1):s(l.value)),1)]),_:1},8,["href","class","disabled"]))])):ms("",!0),!e.hidePrevNext&&h.value?(Xa(),is("li",yre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?r.value-1:r.value+1),onClick:n[7]||(n[7]=Ol(e=>a(c.value?r.value-1:r.value+1),["prevent"])),class:le([e.paginateButtonsClass,e.nextButtonClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledNextButtonClass:""]),disabled:e.disablePagination},{default:zn(()=>[Ai(t.$slots,"next-button",{},()=>[fs(we(e.nextButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):ms("",!0),e.showJumpButtons&&f.value?(Xa(),is("li",Cre,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?r.value-Math.ceil(e.maxPagesShown/2):r.value+Math.ceil(e.maxPagesShown/2)),onClick:n[8]||(n[8]=Ol(t=>a(c.value?r.value-Math.ceil(e.maxPagesShown/2):r.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),class:le([e.forwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledForwardJumpButtonClass:""]),disabled:e.disablePagination},{default:zn(()=>[Ai(t.$slots,"forward-jump-button",{},()=>[fs(we(e.forwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):ms("",!0),e.showEndingButtons&&v.value?(Xa(),is("li",_re,[(Xa(),as(Ei("button"===e.type?"button":"a"),{href:o(c.value?1:l.value),onClick:n[9]||(n[9]=Ol(e=>a(c.value?1:l.value),["prevent"])),class:le([e.lastPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:zn(()=>[Ai(t.$slots,"last-page-button",{},()=>[fs(we(e.lastPageContent),1)])]),_:3},8,["href","class","disabled"]))])):ms("",!0)],2))}});var wre={install:e=>{e.component("VueAwesomePaginate",bre)}};function Dre(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const Ere=Dre,kre=new i1("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Sre=new I1("@firebase/auth");function xre(e,...t){Sre.logLevel<=k1.WARN&&Sre.warn(`Auth (${R2}): ${e}`,...t)}function Tre(e,...t){Sre.logLevel<=k1.ERROR&&Sre.error(`Auth (${R2}): ${e}`,...t)}
1647/**
1648     * @license
1649     * Copyright 2020 Google LLC
1650     *
1651     * Licensed under the Apache License, Version 2.0 (the "License");
1652     * you may not use this file except in compliance with the License.
1653     * You may obtain a copy of the License at
1654     *
1655     *   http://www.apache.org/licenses/LICENSE-2.0
1656     *
1657     * Unless required by applicable law or agreed to in writing, software
1658     * distributed under the License is distributed on an "AS IS" BASIS,
1659     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1660     * See the License for the specific language governing permissions and
1661     * limitations under the License.
1662     */function Ore(e,...t){throw Nre(e,...t)}function Are(e,...t){return Nre(e,...t)}function Ire(e,t,n){const r={...Ere(),[t]:n};return new i1("auth","Firebase",r).create(t,{appName:e.name})}function Pre(e){return Ire(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Nre(e,...t){if("string"!=typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return kre.create(e,...t)}function Rre(e,t,...n){if(!e)throw Nre(t,...n)}function Mre(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Tre(t),new Error(t)}function Fre(e,t){e||Mre(t)}function Lre(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.protocol)||null}
1663/**
1664     * @license
1665     * Copyright 2020 Google LLC
1666     *
1667     * Licensed under the Apache License, Version 2.0 (the "License");
1668     * you may not use this file except in compliance with the License.
1669     * You may obtain a copy of the License at
1670     *
1671     *   http://www.apache.org/licenses/LICENSE-2.0
1672     *
1673     * Unless required by applicable law or agreed to in writing, software
1674     * distributed under the License is distributed on an "AS IS" BASIS,
1675     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1676     * See the License for the specific language governing permissions and
1677     * limitations under the License.
1678     */function jre(){return"undefined"==typeof navigator||!navigator||!("onLine"in navigator)||"boolean"!=typeof navigator.onLine||"http:"!==Lre()&&"https:"!==Lre()&&!function(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()&&!("connection"in navigator)||navigator.onLine}
1679/**
1680     * @license
1681     * Copyright 2020 Google LLC
1682     *
1683     * Licensed under the Apache License, Version 2.0 (the "License");
1684     * you may not use this file except in compliance with the License.
1685     * You may obtain a copy of the License at
1686     *
1687     *   http://www.apache.org/licenses/LICENSE-2.0
1688     *
1689     * Unless required by applicable law or agreed to in writing, software
1690     * distributed under the License is distributed on an "AS IS" BASIS,
1691     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1692     * See the License for the specific language governing permissions and
1693     * limitations under the License.
1694     */
1695class Hre{constructor(e,t){this.shortDelay=e,this.longDelay=t,Fre(t>e,"Short delay should be less than long delay!"),this.isMobile=X0()||e1()}get(){return jre()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
1696/**
1697     * @license
1698     * Copyright 2020 Google LLC
1699     *
1700     * Licensed under the Apache License, Version 2.0 (the "License");
1701     * you may not use this file except in compliance with the License.
1702     * You may obtain a copy of the License at
1703     *
1704     *   http://www.apache.org/licenses/LICENSE-2.0
1705     *
1706     * Unless required by applicable law or agreed to in writing, software
1707     * distributed under the License is distributed on an "AS IS" BASIS,
1708     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1709     * See the License for the specific language governing permissions and
1710     * limitations under the License.
1711     */
1712/**
1713     * @license
1714     * Copyright 2020 Google LLC
1715     *
1716     * Licensed under the Apache License, Version 2.0 (the "License");
1717     * you may not use this file except in compliance with the License.
1718     * You may obtain a copy of the License at
1719     *
1720     *   http://www.apache.org/licenses/LICENSE-2.0
1721     *
1722     * Unless required by applicable law or agreed to in writing, software
1723     * distributed under the License is distributed on an "AS IS" BASIS,
1724     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1725     * See the License for the specific language governing permissions and
1726     * limitations under the License.
1727     */
1728class Ure{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void Mre("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void Mre("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void Mre("Could not find Response implementation, make sure you call FetchProvi
1728der.initialize() with an appropriate polyfill")}}
1729/**
1730     * @license
1731     * Copyright 2020 Google LLC
1732     *
1733     * Licensed under the Apache License, Version 2.0 (the "License");
1734     * you may not use this file except in compliance with the License.
1735     * You may obtain a copy of the License at
1736     *
1737     *   http://www.apache.org/licenses/LICENSE-2.0
1738     *
1739     * Unless required by applicable law or agreed to in writing, software
1740     * distributed under the License is distributed on an "AS IS" BASIS,
1741     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1742     * See the License for the specific language governing permissions and
1743     * limitations under the License.
1744     */const Gre={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Yre=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],Vre=new Hre(3e4,6e4);
1745/**
1746     * @license
1747     * Copyright 2020 Google LLC
1748     *
1749     * Licensed under the Apache License, Version 2.0 (the "License");
1750     * you may not use this file except in compliance with the License.
1751     * You may obtain a copy of the License at
1752     *
1753     *   http://www.apache.org/licenses/LICENSE-2.0
1754     *
1755     * Unless required by applicable law or agreed to in writing, software
1756     * distributed under the License is distributed on an "AS IS" BASIS,
1757     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1758     * See the License for the specific language governing permissions and
1759     * limitations under the License.
1760     */function qre(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function $re(e,t,n,r,i={}){return Wre(e,i,async()=>{let i={},a={};r&&("GET"===t?a=r:i={body:JSON.stringify(r)});const s=f1({...a,key:e.config.apiKey}).slice(1),o=await e._getAdditionalHeaders();o["Content-Type"]="application/json",e.languageCode&&(o["X-Firebase-Locale"]=e.languageCode);const l={method:t,headers:o,...i};return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||(l.referrerPolicy="str
1760ict-origin-when-cross-origin"),e.emulatorConfig&&_1(e.emulatorConfig.host)&&(l.credentials="include"),Ure.fetch()(await zre(e,e.config.apiHost,n,s),l)})}async function Wre(e,t,n){e._canInitEmulator=!1;const r={...Gre,...t};try{const t=new Jre(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const a=await i.json();if("needConfirmation"in a)throw Kre(e,"account-exists-with-different-credential",a);if(i.ok&&!("errorMessage"in a))return a;{const t=i.ok?a.errorMessage:a.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw Kre(e,"credential-already-in-use",a);if("EMAIL_EXISTS"===n)throw Kre(e,"email-already-in-use",a);if("USER_DISABLED"===n)throw Kre(e,"user-disabled",a);const o=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw Ire(e,o,s);Ore(e,o)}}catch(zle){if(zle instanceof r1)throw zle;Ore(e,"network-request-failed",{message:String(zle)})}}async function zre(e,t,n,r){const i=`${t}${n}?${r}`,a=e,s=a.config.emulator?function(e,t){Fre(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}(e.config,i):`${e.config.apiScheme}://${i}`;return Yre.includes(n)&&(await a._persistenceManagerAvailable,"COOKIE"===a._getPersistenceType())?a._getPersistence()._getFinalTarget(s).toString():s}class Jre{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(Are(this.auth,"network-request-failed")),Vre.get())})}}function Kre(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Are(e,t,r);return i.customData._tokenResponse=n,i}
1761/**
1762     * @license
1763     * Copyright 2020 Google LLC
1764     *
1765     * Licensed under the Apache License, Version 2.0 (the "License");
1766     * you may not use this file except in compliance with the License.
1767     * You may obtain a copy of the License at
1768     *
1769     *   http://www.apache.org/licenses/LICENSE-2.0
1770     *
1771     * Unless required by applicable law or agreed to in writing, software
1772     * distributed under the License is distributed on an "AS IS" BASIS,
1773     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1774     * See the License for the specific language governing permissions and
1775     * limitations under the License.
1776     */async function Qre(e,t){return $re(e,"POST","/v1/accounts:lookup",t)}
1777/**
1778     * @license
1779     * Copyright 2020 Google LLC
1780     *
1781     * Licensed under the Apache License, Version 2.0 (the "License");
1782     * you may not use this file except in compliance with the License.
1783     * You may obtain a copy of the License at
1784     *
1785     *   http://www.apache.org/licenses/LICENSE-2.0
1786     *
1787     * Unless required by applicable law or agreed to in writing, software
1788     * distributed under the License is distributed on an "AS IS" BASIS,
1789     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1790     * See the License for the specific language governing permissions and
1791     * limitations under the License.
1792     */function Zre(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(zle){}}function Xre(e){return 1e3*Number(e)}function eie(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return Tre("JWT malformed, contained fewer than 3 sections"),null;try{const e=Y0(n);return e?JSON.parse(e):(Tre("Failed to decode base64 JWT payload"),null)}catch(zle){return Tre("Caught error parsing JWT payload as JSON",null==zle?void 0:zle.toString()),null}}function tie(e){const t=eie(e);return Rre(t,"internal-error"),Rre(void 0!==t.exp,"internal-error"),Rre(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}
1793/**
1794     * @license
1795     * Copyright 2020 Google LLC
1796     *
1797     * Licensed under the Apache License, Version 2.0 (the "License");
1798     * you may not use this file except in compliance with the License.
1799     * You may obtain a copy of the License at
1800     *
1801     *   http://www.apache.org/licenses/LICENSE-2.0
1802     *
1803     * Unless required by applicable law or agreed to in writing, softw
1803are
1804     * distributed under the License is distributed on an "AS IS" BASIS,
1805     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1806     * See the License for the specific language governing permissions and
1807     * limitations under the License.
1808     */async function nie(e,t,n=!1){if(n)return t;try{return await t}catch(zle){throw zle instanceof r1&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}
1809/**
1810     * @license
1811     * Copyright 2020 Google LLC
1812     *
1813     * Licensed under the Apache License, Version 2.0 (the "License");
1814     * you may not use this file except in compliance with the License.
1815     * You may obtain a copy of the License at
1816     *
1817     *   http://www.apache.org/licenses/LICENSE-2.0
1818     *
1819     * Unless required by applicable law or agreed to in writing, software
1820     * distributed under the License is distributed on an "AS IS" BASIS,
1821     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1822     * See the License for the specific language governing permissions and
1823     * limitations under the License.
1824     */(zle)&&e.auth.currentUser===e&&await e.auth.signOut(),zle}}class rie{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(zle){return void("auth/network-request-failed"===(null==zle?void 0:zle.code)&&this.schedule(!0))}this.schedule()}}
1825/**
1826     * @license
1827     * Copyright 2020 Google LLC
1828     *
1829     * Licensed under the Apache License, Version 2.0 (the "License");
1830     * you may not use this file except in compliance with the License.
1831     * You may obtain a copy of the License at
1832     *
1833     *   http://www.apache.org/licenses/LICENSE-2.0
1834     *
1835     * Unless required by applicable law or agreed to in writing, software
1836     * distributed under the License is distributed on an "AS IS" BASIS,
1837     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1838     * See the License for the specific language governing permissions and
1839     * limitations under the License.
1840     */class iie{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Zre(this.lastLoginAt),this.creationTime=Zre(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}
1841/**
1842     * @license
1843     * Copyright 2019 Google LLC
1844     *
1845     * Licensed under the Apache License, Version 2.0 (the "License");
1846     * you may not use this file except in compliance with the License.
1847     * You may obtain a copy of the License at
1848     *
1849     *   http://www.apache.org/licenses/LICENSE-2.0
1850     *
1851     * Unless required by applicable law or agreed to in writing, software
1852     * distributed under the License is distributed on an "AS IS" BASIS,
1853     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1854     * See the License for the specific language governing permissions and
1855     * limitations under the License.
1856     */async function aie(e){var t;const n=e.auth,r=await e.getIdToken(),i=await nie(e,Qre(n,{idToken:r}));Rre(null==i?void 0:i.users.length,n,"internal-error");const a=i.users[0];e._notifyReloadListener(a);const s=(null==(t=a.providerUserInfo)?void 0:t.length)?sie(a.providerUserInfo):[],o=(l=e.providerData,u=s,[...l.filter(e=>!u.some(t=>t.providerId===e.providerId)),...u]);var l,u;const c=e.isAnonymous,d=!(e.email&&a.passwordHash||(null==o?void 0:o.length)),h=!!c&&d,p={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:o,metadata:new iie(a.createdAt,a.lastLoginAt),isAnonymous:h};Object.assign(e,p)}function sie(e){return e.map(({providerId:e,...t})=>
vendor: 6,039 bytes, lines 1856-1905
1856({providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}
1857/**
1858     * @license
1859     * Copyright 2020 Google LLC
1860     *
1861     * Licensed under the Apache License, Version 2.0 (the "License");
1862     * you may not use this file except in compliance with the License.
1863     * You may obtain a copy of the License at
1864     *
1865     *   http://www.apache.org/licenses/LICENSE-2.0
1866     *
1867     * Unless required by applicable law or agreed to in writing, software
1868     * distributed under the License is distributed on an "AS IS" BASIS,
1869     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1870     * See the License for the specific language governing permissions and
1871     * limitations under the License.
1872     */
1873/**
1874     * @license
1875     * Copyright 2020 Google LLC
1876     *
1877     * Licensed under the Apache License, Version 2.0 (the "License");
1878     * you may not use this file except in compliance with the License.
1879     * You may obtain a copy of the License at
1880     *
1881     *   http://www.apache.org/licenses/LICENSE-2.0
1882     *
1883     * Unless required by applicable law or agreed to in writing, software
1884     * distributed under the License is distributed on an "AS IS" BASIS,
1885     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1886     * See the License for the specific language governing permissions and
1887     * limitations under the License.
1888     */
1889class oie{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Rre(e.idToken,"internal-error"),Rre(void 0!==e.idToken,"internal-error"),Rre(void 0!==e.refreshToken,"internal-error");const t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):tie(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Rre(0!==e.length,"internal-error");const t=tie(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(Rre(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await Wre(e,{},async()=>{const n=f1({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,a=await zre(e,r,"/v1/token",`key=${i}`),s=await e._getAdditionalHeaders();s["Content-Type"]="application/x-www-form-urlencoded";const o={method:"POST",headers:s,body:n};return e.emulatorConfig&&_1(e.emulatorConfig.host)&&(o.credentials="include"),Ure.fetch()(a,o)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,a=new oie;return n&&(Rre("string"==typeof n,"internal-error",{appName:e}),a.refreshToken=n),r&&(Rre("string"==typeof r,"internal-error",{appName:e}),a.accessToken=r),i&&(Rre("number"==typeof i,"internal-error",{appName:e}),a.expirationTime=i),a}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new oie,this.toJSON())}_performRefresh(){return Mre("not implemented")}}
1890/**
1891     * @license
1892     * Copyright 2020 Google LLC
1893     *
1894     * Licensed under the Apache License, Version 2.0 (the "License");
1895     * you may not use this file except in compliance with the License.
1896     * You may obtain a copy of the License at
1897     *
1898     *   http://www.apache.org/licenses/LICENSE-2.0
1899     *
1900     * Unless required by applicable law or agreed to in writing, software
1901     * distributed under the License is distributed on an "AS IS" BASIS,
1902     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1903     * See the License for the specific language governing permissions and
1904     * limitations under the License.
1905     */function lie(e,t){Rre("string"==typeof e||void 0===e,"internal-error",{appName:t})}class uie{constructor({uid:e,auth:t,stsTokenManager:n,...r}){this.providerId="firebase",this.proactiveRefresh=new rie(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new iie(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){const t=await nie(this,this.stsTokenManager.getToken(this.auth,e));return Rre(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e,t=!1){const n=C1(e),r=await n.getIdToken(t),i=eie(r);Rre(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const a="object"==typeof i.firebase?i.firebase:void 0,s=null==a?void 0:a.sign_in_provider;return{claims:i,token:r,authTime:Zre(Xre(i.auth_time)),issuedAtTime:Zre(Xre(i.iat)),expirationTime:Zre(Xre(i.exp)),signInProvider:s||null,signInSecondFactor:(null==a?void 0:a.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=C1(e);await aie(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(Rre(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
vendor: 4,588 bytes, lines 1905-1926
1905otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>({...e})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new uie({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return t.metadata._copy(this.metadata),t}_onReload(e){Rre(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await aie(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(I2(this.auth.app))return Promise.reject(Pre(this.auth));const e=await this.getIdToken();return await nie(this,async function(e,t){return $re(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){const n=t.displayName??void 0,r=t.email??void 0,i=t.phoneNumber??void 0,a=t.photoURL??void 0,s=t.tenantId??void 0,o=t._redirectEventId??void 0,l=t.createdAt??void 0,u=t.lastLoginAt??void 0,{uid:c,emailVerified:d,isAnonymous:h,providerData:p,stsTokenManager:f}=t;Rre(c&&f,e,"internal-error");const B=oie.fromJSON(this.name,f);Rre("string"==typeof c,e,"internal-error"),lie(n,e.name),lie(r,e.name),Rre("boolean"==typeof d,e,"internal-error"),Rre("boolean"==typeof h,e,"internal-error"),lie(i,e.name),lie(a,e.name),lie(s,e.name),lie(o,e.name),lie(l,e.name),lie(u,e.name);const m=new uie({uid:c,auth:e,email:r,emailVerified:d,displayName:n,isAnonymous:h,photoURL:a,phoneNumber:i,tenantId:s,stsTokenManager:B,createdAt:l,lastLoginAt:u});return p&&Array.isArray(p)&&(m.providerData=p.map(e=>({...e}))),o&&(m._redirectEventId=o),m}static async _fromIdTokenResponse(e,t,n=!1){const r=new oie;r.updateFromServerResponse(t);const i=new uie({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await aie(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];Rre(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?sie(r.providerUserInfo):[],a=!(r.email&&r.passwordHash||(null==i?void 0:i.length)),s=new oie;s.updateFromIdToken(n);const o=new uie({uid:r.localId,auth:e,stsTokenManager:s,isAnonymous:a}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new iie(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash||(null==i?void 0:i.length))};return Object.assign(o,l),o}}
1906/**
1907     * @license
1908     * Copyright 2020 Google LLC
1909     *
1910     * Licensed under the Apache License, Version 2.0 (the "License");
1911     * you may not use this file except in compliance with the License.
1912     * You may obtain a copy of the License at
1913     *
1914     *   http://www.apache.org/licenses/LICENSE-2.0
1915     *
1916     * Unless required by applicable law or agreed to in writing, software
1917     * distributed under the License is distributed on an "AS IS" BASIS,
1918     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1919     * See the License for the specific language governing permissions and
1920     * limitations under the License.
1921     */const cie=new Map;function die(e){Fre(e instanceof Function,"Expected a class definition");let t=cie.get(e);return t?(Fre(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,cie.set(e,t),t)}
1922/**
1923     * @license
1924     * Copyright 2019 Google LLC
1925     *
1926     * Licensed under the Apache License, Version 2.0 (the "License");
1927     * you may not use this file except in compliance with the License.
1928     * You may obtain a copy of the License at
1929     *
1930     *   http://www.apache.org/licenses/LICENSE-2.0
1931     *
1932     * Unless required by applicable law or agreed to in writing, software
1933     * distributed under the License is distributed on an "AS IS" BASIS,
1934     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1935     * See the License for the specific language governing permissions and
1936     * limitations under the License.
1937     */class hie{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}hie.type="NONE";const pie=hie;
1938/**
1939     * @license
1940     * Copyright 2019 Google LLC
1941     *
1942     * Licensed under the Apache License, Version 2.0 (the "License");
1943     * you may not use this file except in compliance with the License.
1944     * You may obtain a copy of the License at
1945     *
1946     *   http://www.apache.org/licenses/LICENSE-2.0
1947     *
1948     * Unless required by applicable law or agreed to in writing, software
1949     * distributed under the License is distributed on an "AS IS" BASIS,
1950     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1951     * See the License for the specific language governing permissions and
1952     * limitations under the License.
1953     */function fie(e,t,n){return`firebase:${e}:${t}:${n}`}class Bie{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=fie(this.userKey,r.apiKey,i),this.fullPersistenceKey=fie("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t);try{this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}catch{}}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"==typeof e){const t=await Qre(this.auth,{idToken:e}).catch(()=>{});return t?uie._fromGetAccountInfoResponse(this.auth,t,e):null}return uie._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){try{this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}catch{}}static async create(e,t,n="authUser"){if(!t.length)return new Bie(die(pie),e,n);const r=(await Promise.all(t.map(async e=>{try{if(await e._isAvailable())return e}catch{return}}))).filter(e=>e);let i=r[0]||die(pie);const a=fie(n,e.config.apiKey,e.name);let s=null;for(const l of t)try{const t=await l._get(a);if(t){let n;if("string"==typeof t){const r=await Qre(e,{idToken:t}).catch(()=>{});if(!r)break;n=await uie._fromGetAccountInfoResponse(e,r,t)}else n=uie._fromJSON(e,t);l!==i&&(s=n),i=l;break}}catch{}const o=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length?(i=o[0],s&&await i._set(a,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(a)}catch{}})),new Bie(i,e,n)):new Bie(i,e,n)}}
1954/**
1955     * @license
1956     * Copyright 2020 Google LLC
1957     *
1958     * Licensed under the Apache License, Version 2.0 (the "License");
1959     * you may not use this file except in compliance with the License.
1960     * You may obtain a copy of the License at
1961     *
1962     *   http://www.apache.org/licenses/LICENSE-2.0
1963     *
1964     * Unless required by applicable law or agreed to in writing, software
1965     * distributed under the License is distributed on an "AS IS" BASIS,
1966     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1967     * See the License for the specific language governing permissions and
1968     * limitations under the License.
1969     */function mie(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(function(e=Z0()){return/iemobile/i.test(e)}(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(function(e=Z0()){return/firefox\//i.test(e)}(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(function(e=Z0()){return/blackberry/i.test(e)}(t))return"Blackberry";if(function(e=Z0()){return/webos/i.test(e)}
1970/**
1971     * @license
1972     * Copyright 2020 Google LLC
1973     *
1974     * Licensed under the Apache License, Version 2.0 (the "License");
1975     * you may not use this file except in compliance with the License.
1976     * You may obtain a copy of the License at
1977     *
1978     *   http://www.apache.org/licenses/LICENSE-2.0
1979     *
1980     * Unless required by applicable law or agreed to in writing, software
1981     * distributed under the License is distributed on an "AS IS" BASIS,
1982     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1983     * See the License for the specific language governing permissions and
1984     * limitations under the License.
1985     */(t))return"Webos";if(function(e=Z0()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}(t))return"Safari";if((t.includes("chrome/")||function(e=Z0()){return/crios\//i.test(e)}(t))&&!t.includes("edge/"))return"Chrome";if(function(e=Z0()){return/android/i.test(e)}(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null==n?void 0:n.length))return n[1]}return"Other"}function gie(e,t=[]){let n;switch(e){case"Browser":n=mie(Z0());break;case"Worker":n=`${mie(Z0())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${R2}/${r}`}
1986/**
1987     * @license
1988     * Copyright 2022 Google LLC
1989     *
1990     * Licensed under the Apache License, Version 2.0 (the "License");
1991     * you may not use this file except in compliance with the License.
1992     * You may obtain a copy of the License at
1993     *
1994     *   http://www.apache.org/licenses/LICENSE-2.0
1995     *
1996     * Unless required by applicable law or agreed to in writing, software
1997     * distributed under the License is distributed on an "AS IS" BASIS,
1998     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1999     * See the License for the specific language governing permissions and
2000     * limitations under the License.
2001     */class vie{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,r)=>{try{n(e(t))}catch(zle){r(zle)}});n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(zle){t.reverse();for(const r of t)try{r()}catch(n){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==zle?void 0:zle.message})}}}
2002/**
2003     * @license
2004     * Copyright 2023 Google LLC
2005     *
2006     * Licensed under the Apache License, Version 2.0 (the "License");
2007     * you may not use this file except in compliance with the License.
2008     * You may obtain a copy of the License at
2009     *
2010     *   http://www.apache.org/licenses/LICENSE-2.0
2011     *
2012     * Unless required by applicable law or agreed to in writing, software
2013     * distributed under the License is distributed on an "AS IS" BASIS,
2014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2015     * See the License for the specific language governing permissions and
2016     * limitations under the License.
2017     */class yie{constructor(e){var t;const n=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=n.minPasswordLength??6,n.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=n.maxPasswordLength),void 0!==n.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=n.containsLowercaseCharacter),void 0!==n.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=n.containsUppercaseCharacter),void 0!==n.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=n.containsNumericCharacter),void 0!==n.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=n.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(null==(t=e.allowedNonAlphanumericCharacters)?void 0:t.join(""))??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&
2017(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}
2018/**
2019     * @license
2020     * Copyright 2020 Google LLC
2021     *
2022     * Licensed under the Apache License, Version 2.0 (the "License");
2023     * you may not use this file except in compliance with the License.
2024     * You may obtain a copy of the License at
2025     *
2026     *   http://www.apache.org/licenses/LICENSE-2.0
2027     *
2028     * Unless required by applicable law or agreed to in writing, software
2029     * distributed under the License is distributed on an "AS IS" BASIS,
2030     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2031     * See the License for the specific language governing permissions and
2032     * limitations under the License.
2033     */class Cie{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new _ie(this),this.idTokenSubscription=new _ie(this),this.beforeStateQueue=new vie(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=kre,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=die(t)),this._initializationPromise=this.queue(async()=>{var n,r,i;if(!this._deleted){try{this.persistenceManager=await Bie.create(this,e)}catch(zle){xre(`Failed to initialize persistence: ${zle}`),this.persistenceManager=await Bie.create(this,[])}finally{null==(n=this._resolvePersistenceManagerAvailable)||n.call(this)}if(!this._deleted){if(null==(r=this._popupRedirectResolver)?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(zle){}try{await this.initializeCurrentUser(t)}catch(zle){xre(`Failed to initialize current user: ${zle}`),await this.directlySetCurrentUser(null).catch(()=>{})}this.lastNotifiedUid=(null==(i=this.currentUser)?void 0:i.uid)||null,this._deleted||(this._isInitialized=!0)}}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void(await this.currentUser.getIdToken())):void(await this._updateCurrentUser(e,!0)):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await Qre(this,{idToken:e}),n=await uie._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if(I2(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null==(t=this.redirectUser)?void 0:t._redirectEventId,a=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);n&&n!==a||!(null==s?void 0:s.user)||(r=s.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);
vendor: 6,232 bytes, lines 2033-2049
2033if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(zle){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(zle))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return Rre(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(zle){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await aie(e)}catch(zle){if("auth/network-request-failed"!==(null==zle?void 0:zle.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(I2(this.app))return Promise.reject(Pre(this));const t=e?C1(e):null;return t&&Rre(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&Rre(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return I2(this.app)?Promise.reject(Pre(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return I2(this.app)?Promise.reject(Pre(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(die(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e,t={}){return $re(e,"GET","/v2/passwordPolicy",qre(e,t))}
2034/**
2035     * @license
2036     * Copyright 2023 Google LLC
2037     *
2038     * Licensed under the Apache License, Version 2.0 (the "License");
2039     * you may not use this file except in compliance with the License.
2040     * You may obtain a copy of the License at
2041     *
2042     *   http://www.apache.org/licenses/LICENSE-2.0
2043     *
2044     * Unless required by applicable law or agreed to in writing, software
2045     * distributed under the License is distributed on an "AS IS" BASIS,
2046     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2047     * See the License for the specific language governing permissions and
2048     * limitations under the License.
2049     */(this),t=new yie(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new i1("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return $re(e,"POST","/v2/accounts:revokeToken",qre(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null==(e=this._currentUser)?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&die(e)||this._popupRedirectResolver;Rre(t,this,"argument-error"),this.redirectPersistenceManager=await Bie.create(this,[die(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue(async()=>{}),(null==(t=this._currentUser)?void 0:t._redirectEventId)===e?this._currentUser:(null==(n=this.redirectUser)?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const t=(null==(e=this.currentUser)?void 0:e.uid)??null;this.lastNotifiedUid!==t&&(this.lastNotifiedUid=t,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"==typeof t?t:t.next.bind(t);let a=!1;const s=this._isInitialized?Promise.resolve():this._initializationPromise;
2049if(Rre(s,this,"internal-error"),s.then(()=>{a||i(this.currentUser)}).catch(e=>{if(!a)if("function"!=typeof t&&t.error)t.error(e);else{if(!n)throw e;n(e)}}),"function"==typeof t){const i=e.addObserver(t,n,r);return()=>{a=!0,i()}}{const n=e.addObserver(t);return()=>{a=!0,n()}}}async directlySetCurrentUser(e){if(this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,this.persistenceManager)try{e?await this.persistenceManager.setCurrentUser(e):await this.persistenceManager.removeCurrentUser()}catch(zle){const t=Ire(this,"internal-error",`An internal AuthError has occurred: ${(null==zle?void 0:zle.message)||String(zle)}`);throw t.customData={originalError:zle},t}}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Rre(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=gie(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null==(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;if(I2(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await(null==(e=this.appCheckServiceProvider.getImmediate({optional:!0}))?void 0:e.getToken());return(null==t?void 0:t.error)&&xre(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}class _ie{constructor(e){this.auth=e,this.observer=null,this.addObserver=function(e,t){const n=new m1(e,t);return n.subscribe.bind(n)}(e=>this.observer=e)}get next(){return Rre(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}new Hre(3e4,6e4),
2050/**
2051     * @license
2052     * Copyright 2020 Google LLC
2053     *
2054     * Licensed under the Apache License, Version 2.0 (the "License");
2055     * you may not use this file except in compliance with the License.
2056     * You may obtain a copy of the License at
2057     *
2058     *   http://www.apache.org/licenses/LICENSE-2.0
2059     *
2060     * Unless required by applicable law or agreed to in writing, software
2061     * distributed under the License is distributed on an "AS IS" BASIS,
2062     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2063     * See the License for the specific language governing permissions and
2064     * limitations under the License.
2065     */
2066new Hre(2e3,1e4),
2067/**
2068     * @license
2069     * Copyright 2020 Google LLC.
2070     *
2071     * Licensed under the Apache License, Version 2.0 (the "License");
2072     * you may not use this file except in compliance with the License.
2073     * You may obtain a copy of the License at
2074     *
2075     *   http://www.apache.org/licenses/LICENSE-2.0
2076     *
2077     * Unless required by applicable law or agreed to in writing, software
2078     * distributed under the License is distributed on an "AS IS" BASIS,
2079     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2080     * See the License for the specific language governing permissions and
2081     * limitations under the License.
2082     */
2083new Hre(3e4,6e4),
2084/**
2085     * @license
2086     * Copyright 2020 Google LLC.
2087     *
2088     * Licensed under the Apache License, Version 2.0 (the "License");
2089     * you may not use this file except in compliance with the License.
2090     * You may obtain a copy of the License at
2091     *
2092     *   http://www.apache.org/licenses/LICENSE-2.0
2093     *
2094     * Unless required by applicable law or agreed to in writing, software
2095     * distributed under the License is distributed on an "AS IS" BASIS,
2096     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2097     * See the License for the specific language governing permissions and
2098     * limitations under the License.
2099     */
2100new Hre(5e3,15e3);var bie,wie,Die,Eie="@firebase/auth",kie="1.13.6";
2101/**
2102     * @license
2103     * Copyright 2020 Google LLC
2104     *
2105     * Licensed under the Apache License, Version 2.0 (the "License");
2106     * you may not use this file except in compliance with the License.
2107     * You may obtain a copy of the License at
2108     *
2109     *   http://www.apache.org/licenses/LICENSE-2.0
2110     *
2111     * Unless required by applicable law or agreed to in writing, software
2112     * distributed under the License is distributed on an "AS IS" BASIS,
2113     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2114     * See the License for the specific language governing permissions and
2115     * limitations under the License.
2116     */
2117class Sie{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null==(e=this.auth.currentUser)?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Rre(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
2118/**
2119     * @license
2120     * Copyright 2020 Google LLC
2121     *
2122     * Licensed under the Apache License, Version 2.0 (the "License");
2123     * you may not use this file except in compliance with the License.
2124     * You may obtain a copy of the License at
2125     *
2126     *   http://www.apache.org/licenses/LICENSE-2.0
2127     *
2128     * Unless required by applicable law or agreed to in writing, software
2129     * distributed under the License is distributed on an "AS IS" BASIS,
2130     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2131     * See the License for the specific language governing permissions and
2132     * limitations under the License.
2133     */bie="authIdTokenMaxAge",null==(wie=z0())||wie[`_${bie}`],Die="Browser",A2(new b1("auth",(e,{options:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=n.options;Rre(a&&!a.includes(":"),"invalid-api-key",{appName:n.name});const o={apiKey:a,authDomain:s,clientPlatform:Die,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:gie(Die)},l=new Cie(n,r,i,o);return function(e,t){const n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(die);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(l,t),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),A2(new b1("auth-internal",e=>{const t=function(e){return C1(e)}(e.getProvider("auth").getImmediate());return new Sie(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),F2(Eie,kie,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(Die)),F2(Eie,kie,"esm2020");
2134/**
2135     * @license
2136     * Copyright 2020 Google LLC
2137     *
2138     * Licensed under the Apache License, Version 2.0 (the "License");
2139     * you may not use this file except in compliance with the License.
2140     * You may obtain a copy of the License at
2141     *
2142     *   http://www.apache.org/licenses/LICENSE-2.0
2143     *
2144     * Unless required by applicable law or agreed to in writing, software
2145     * distributed under the License is distributed on an "AS IS" BASIS,
2146     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2147     * See the License for the specific language governing permissions and
2148     * limitations under the License.
2149     */
2150const xie=new Map,Tie={activated:!1,tokenObservers:[]};function Oie(e){return xie.get(e)||{...Tie}}const Aie=3e4,Iie=96e4;
2151/**
2152     * @license
2153     * Copyright 2020 Google LLC
2154     *
2155     * Licensed under the Apache License, Version 2.0 (the "License");
2156     * you may not use this file except in compliance with the License.
2157     * You may obtain a copy of the License at
2158     *
2159     *   http://www.apache.org/licenses/LICENSE-2.0
2160     *
2161     * Unless required by applicable law or agreed to in writing, software
2162     * distributed under the License is distributed on an "AS IS" BASIS,
2163     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2164     * See the License for the specific language governing permissions and
2165     * limitations under the License.
2166     */class Pie{constructor(e,t,n,r,i){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=r,this.upperBound=i,this.pending=null,this.nextErrorWaitInterval=r,r>i)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new Q0,this.pending.promise.catch(e=>{}),await(t=this.getNextRun(e),new Promise(e=>{setTimeout(e,t)})),this.pending.resolve(),await this.pending.promise,this.pending=new Q0,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(n){this.retryPolicy(n)?this.process(!1).catch(()=>{}):this.stop()}var t;
2167/**
2168     * @license
2169     * Copyright 2020 Google LLC
2170     *
2171     * Licensed under the Apache License, Version 2.0 (the "License");
2172     * you may not use this file except in compliance with the License.
2173     * You may obtain a copy of the License at
2174     *
2175     *   http://www.apache.org/licenses/LICENSE-2.0
2176     *
2177     * Unless required by applicable law or agreed to in writing, software
2178     * distributed under the License is distributed on an "AS IS" BASIS,
2179     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2180     * See the License for the specific language governing permissions and
2181     * limitations under the License.
2182     */}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}}const Nie=new i1("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"});function Rie(e){if(!Oie(e).activated)throw Nie.create("use-before-activation",{appName:e.name})}
2183/**
2184     * @license
2185     * Copyright 2020 Google LLC
2186     *
2187     * Licensed under the Apache License, Version 2.0 (the "License");
2188     * you may not use this file except in compliance with the License.
2189     * You may obtain a copy of the License at
2190     *
2191     *   http://www.apache.org/licenses/LICENSE-2.0
2192     *
2193     * Unless required by applicable law or agreed to in writing, softw
2193are
2194     * distributed under the License is distributed on an "AS IS" BASIS,
2195     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2196     * See the License for the specific language governing permissions and
2197     * limitations under the License.
2198     */const Mie="firebase-app-check-store";let Fie=null;function Lie(e,t){return async function(e,t){const n=(await(Fie||(Fie=new Promise((e,t)=>{try{const n=indexedDB.open("firebase-app-check-database",1);n.onsuccess=t=>{e(t.target.result)},n.onerror=e=>{var n;t(Nie.create("storage-open",{originalErrorMessage:null==(n=e.target.error)?void 0:n.message}))},n.onupgradeneeded=e=>{const t=e.target.result;0===e.oldVersion&&t.createObjectStore(Mie,{keyPath:"compositeKey"})}}catch(zle){t(Nie.create("storage-open",{originalErrorMessage:null==zle?void 0:zle.message}))}}),Fie))).transaction(Mie,"readwrite"),r=n.objectStore(Mie).put({compositeKey:e,value:t});return new Promise((e,t)=>{r.onsuccess=t=>{e()},n.onerror=e=>{var n;t(Nie.create("storage-set",{originalErrorMessage:null==(n=e.target.error)?void 0:n.message}))}})}(function(e){return`${e.options.appId}-${e.name}`}
2199/**
2200     * @license
2201     * Copyright 2020 Google LLC
2202     *
2203     * Licensed under the Apache License, Version 2.0 (the "License");
2204     * you may not use this file except in compliance with the License.
2205     * You may obtain a copy of the License at
2206     *
2207     *   http://www.apache.org/licenses/LICENSE-2.0
2208     *
2209     * Unless required by applicable law or agreed to in writing, software
2210     * distributed under the License is distributed on an "AS IS" BASIS,
2211     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2212     * See the License for the specific language governing permissions and
2213     * limitations under the License.
2214     */(e),t)}const jie=new I1("@firebase/app-check");function Hie(e,t){return n1()?Lie(e,t).catch(e=>{jie.warn(`Failed to write token to IndexedDB. Error: ${e}`)}):Promise.resolve()}
2215/**
2216     * @license
2217     * Copyright 2020 Google LLC
2218     *
2219     * Licensed under the Apache License, Version 2.0 (the "License");
2220     * you may not use this file except in compliance with the License.
2221     * You may obtain a copy of the License at
2222     *
2223     *   http://www.apache.org/licenses/LICENSE-2.0
2224     *
2225     * Unless required by applicable law or agreed to in writing, software
2226     * distributed under the License is distributed on an "AS IS" BASIS,
2227     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2228     * See the License for the specific language governing permissions and
2229     * limitations under the License.
2230     */const Uie={error:"UNKNOWN_ERROR"};async function Gie(e,t=!1,n=!1){const r=e.app;Rie(r);const i=Oie(r);let a,s=i.token;if(s&&!qie(s)&&(i.token=void 0,s=void 0),!s){const e=await i.cachedTokenPromise;e&&(qie(e)?s=e:await Hie(r,void 0))}if(!t&&s&&qie(s))return{token:s.token};let o,l=!1;try{i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(()=>{i.exchangeTokenPromise=void 0}),l=!0),s=await Oie(r).exchangeTokenPromise}catch(zle){"appCheck/throttled"===zle.code||"appCheck/initial-throttle"===zle.code?jie.warn(zle.message):n&&jie.error(zle),a=zle}return s?a?o=qie(s)?{token:s.token,internalError:a}:$ie(a):(o={token:s.token},i.token=s,await Hie(r,s)):o=$ie(a),l&&function(e,t){const n=Oie(e).tokenObservers;for(const r of n)try{"EXTERNAL"===r.type&&null!=t.error?r.error(t.error):r.next(t)}catch(zle){}}(r,o),o}function Yie(e,t){const n=Oie(e),r=n.tokenObservers.filter(e=>e.next!==t);0===r.length&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function Vie(e){const{app:t}=e,n=Oie(t);let r=n.tokenRefresher;r||(r=function(e){const{app:t}=e;return new Pie(async()=>{let n;if(n=Oie(t).token?await Gie(e,!0):await Gie(e),n.error)throw n.error;if(n.internalError)throw n.internalError},()=>!0,()=>{const e=Oie(t);if(e.token){let t=e.token.issuedAtTimeMillis+.5*(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)+3e5;const n=e.token.expireTimeMillis-3e5;return t=Math.min(t,n),Math.max(0,t-Date.now())}return 0},Aie,Iie)}(e),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function qie(e){return e.expireTimeMillis-Date.now()>0}function $ie(e){return{token:(t=Uie,j0.encodeString(JSON.stringify(t),!1)),error:e};var t}
2231/**
2232     * @license
2233     * Copyright 2020 Google LLC
2234     *
2235     * Licensed under the Apache License, Version 2.0 (the "License");
2236     * you may not use this file except in compliance with the License.
2237     * You may obtain a copy of the License at
2238     *
2239     *   http://www.apache.org/licenses/LICENSE-2.0
2240     *
2241     * Unless required by applicable law or agreed to in writing, software
2242     * distributed under the License is distributed on an "AS IS" BASIS,
2243     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2244     * See the License for the specific language governing permissions and
2245     * limitations under the License.
2246     */class Wie{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){const{tokenObservers:e}=Oie(this.app);for(const t of e)Yie(this.app,t.next);return Promise.resolve()}}function zie(e){return{getToken:t=>Gie(e,t),getLimitedUseToken:()=>async function(e){const t=e.app;Rie(t);const{provider:n}=Oie(t);{const{token:e}=await n.getToken(!0);return{token:e}}}(e),addTokenListener:t=>function(e,t,n,r){const{app:i}=e,a=Oie(i),s={next:n,error:r,type:t};if(a.tokenObservers=[...a.tokenObservers,s],a.token&&qie(a.token)){const t=a.token;Promise.resolve().then(()=>{n({token:t.token}),Vie(e)}).catch(()=>{})}a.cachedTokenPromise.then(()=>Vie(e))}(e,"INTERNAL",t),removeTokenListener:t=>Yie(e.app,t)}}const Jie="app-check-internal";A2(new b1("app-check",e=>function(e,t){return new Wie(e,t)}(e.getProvider("app").getImmediate(),e.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider(Jie).initialize()})),A2(new b1(Jie,e=>zie(e.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),F2("@firebase/app-check","0.13.1");const Kie=Symbol("firebaseApp");var Qie,Zie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
2247/** @license
2248    Copyright The Closure Library Authors.
2249    SPDX-License-Identifier: Apache-2.0
2250    */(function(){var e;
2251/** @license
2252      
2253       Copyright The Closure Library Authors.
2254       SPDX-License-Identifier: Apache-2.0
2255      */function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(e,t,n){n||(n=0);const r=Array(16);if("string"==typeof t)for(var i=0;i<16;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;i<16;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];let a,s=e.g[3];a=t+(s^n&(i^s))+r[0]+3614090360&4294967295,a=s+(i^(t=n+(a<<7&4294967295|a>>>25))&(n^i))+r[1]+3905402710&4294967295,s=t+(a<<12&4294967295|a>>>20),a=i+(n^s&(t^n))+r[2]+606105819&4294967295,a=n+(t^(i=s+(a<<17&4294967295|a>>>15))&(s^t))+r[3]+3250441966&4294967295,a=t+(s^(n=i+(a<<22&4294967295|a>>>10))&(i^s))+r[4]+4118548399&4294967295,a=s+(i^(t=n+(a<<7&4294967295|a>>>25))&(n^i))+r[5]+1200080426&4294967295,s=t+(a<<12&4294967295|a>>>20),a=i+(n^s&(t^n))+r[6]+2821735955&4294967295,a=n+(t^(i=s+(a<<17&4294967295|a>>>15))&(s^t))+r[7]+4249261313&4294967295,a=t+(s^(n=i+(a<<22&4294967295|a>>>10))&(i^s))+r[8]+1770035416&4294967295,a=s+(i^(t=n+(a<<7&4294967295|a>>>25))&(n^i))+r[9]+2336552879&4294967295,s=t+(a<<12&4294967295|a>>>20),a=i+(n^s&(t^n))+r[10]+4294925233&4294967295,a=n+(t^(i=s+(a<<17&4294967295|a>>>15))&(s^t))+r[11]+2304563134&4294967295,a=t+(s^(n=i+(a<<22&4294967295|a>>>10))&(i^s))+r[12]+1804603682&4294967295,a=s+(i^(t=n+(a<<7&4294967295|a>>>25))&(n^i))+r[13]+4254626195&4294967295,s=t+(a<<12&4294967295|a>>>20),a=i+(n^s&(t^n))+r[14]+2792965006&4294967295,a=n+(t^(i=s+(a<<17&4294967295|a>>>15))&(s^t))+r[15]+1236535329&4294967295,a=t+(i^s&((n=i+(a<<22&4294967295|a>>>10))^i))+r[1]+4129170786&4294967295,a=s+(n^i&((t=n+(a<<5&4294967295|a>>>27))^n))+r[6]+3225465664&4294967295,s=t+(a<<9&4294967295|a>>>23),a=i+(t^n&(s^t))+r[11]+643717713&4294967295,a=n+(s^t&((i=s+(a<<14&4294967295|a>>>18))^s))+r[0]+3921069994&4294967295,a=t+(i^s&((n=i+(a<<20&4294967295|a>>>12))^i))+r[5]+3593408605&4294967295,a=s+(n^i&((t=n+(a<<5&4294967295|a>>>27))^n))+r[10]+38016083&4294967295,s=t+(a<<9&4294967295|a>>>23),a=i+(t^n&(s^t))+r[15]+3634488961&4294967295,a=n+(s^t&((i=s+(a<<14&4294967295|a>>>18))^s))+r[4]+3889429448&4294967295,a=t+(i^s&((n=i+(a<<20&4294967295|a>>>12))^i))+r[9]+568446438&4294967295,a=s+(n^i&((t=n+(a<<5&4294967295|a>>>27))^n))+r[14]+3275163606&4294967295,s=t+(a<<9&4294967295|a>>>23),a=i+(t^n&(s^t))+r[3]+4107603335&4294967295,a=n+(s^t&((i=s+(a<<14&4294967295|a>>>18))^s))+r[8]+1163531501&4294967295,a=t+(i^s&((n=i+(a<<20&4294967295|a>>>12))^i))+r[13]+2850285829&4294967295,a=s+(n^i&((t=n+(a<<5&4294967295|a>>>27))^n))+r[2]+4243563512&4294967295,s=t+(a<<9&4294967295|a>>>23),a=i+(t^n&(s^t))+r[7]+1735328473&4294967295,a=n+(s^t&((i=s+(a<<14&4294967295|a>>>18))^s))+r[12]+2368359562&4294967295,a=t+((n=i+(a<<20&4294967295|a>>>12))^i^s)+r[5]+4294588738&4294967295,a=s+((t=n+(a<<4&4294967295|a>>>28))^n^i)+r[8]+2272392833&4294967295,s=t+(a<<11&4294967295|a>>>21),a=i+(s^t^n)+r[11]+1839030562&4294967295,a=n+((i=s+(a<<16&4294967295|a>>>16))^s^t)+r[14]+4259657740&4294967295,a=t+((n=i+(a<<23&4294967295|a>>>9))^i^s)+r[1]+2763975236&4294967295,a=s+((t=n+(a<<4&4294967295|a>>>28))^n^i)+r[4]+1272893353&4294967295,s=t+(a<<11&4294967295|a>>>21),a=i+(s^t^n)+r[7]+4139469664&4294967295,a=n+((i=s+(a<<16&4294967295|a>>>16))^s^t)+r[10]+3200236656&4294967295,a=t+((n=i+(a<<23&4294967295|a>>>9))^i^s)+r[13]+681279174&4294967295,a=s+((t=n+(a<<4&4294967295|a>>>28))^n^i)+r[0]+3936430074&4294967295,s=t+(a<<11&4294967295|a>>>21),a=i+(s^t^n)+r[3]+3572445317&4294967295,a=n+((i=s+(a<<16&4294967295|a>>>16))^s^t)+r[6]+76029189&4294967295,a=t+((n=i+(a<<23&4294967295|a>>>9))^i^s)+r[9]+3654602809&4294967295,a=s+((t=n+(a<<4&4294967295|a>>>28))^n^i)+r[12]+3873151461&4294967295,s=t+(a<<11&4294967295|a>>>21),a=i+(s^t^n)+r[15]+530742520&4294967295,a=n+((i=s+(a<<16&4294967295|a>>>16))^s^t)+r[2]+3299628645&4294967295,a=t+(i^((n=i+(a<<23&4294967295|a>>>9))|~s))+r[0]+4096336452&4294967295,a=s+(n^((t=n+(a<<6&4294967295|a>>>26))|~i))+r[7]+1126891415&4294967295,s=t+(a<<10&4294967295|a>>>22),a=i+(t^(s|~n))+r[14]+2878612391&4294967295,a=n+(s^((i=s+(a<<15&4294967295|a>>>17))|~t))+r[5]+4237533241&4294967295,a=t+(i^((n=i+(a<<21&4294967295|a>>>11))|~s))+r[12]+1700485571&4294967295,a=s+(n^((t=n+(a<<6&4294967295|a>>>26))|~i))+r[3]+2399980690&4294967295,s=t+(a<<10&4294967295|a>>>22),a=i+(t^(s|~n))+r[10]+4293915773&4294967295,a=n+(s^((i=s+(a<<15&4294967295|a>>>17))|~t))+r[1]+2240044497&4294967295,a=t+(i^((n=i+(a<<21&4294967295|a>>>11))|~s))+r[8]+1873313359&4294967295,a=s+(n^((t=n+(a<<6&4294967295|a>>>26))|~i))+r[15]+4264355552&4294967295,s=t+(a<<10&4294967295|a>>>22),a=i+(t^(s|~n))+r[6]+2734768916&4294967295,a=n+(s^((i=s+(a<<15&4294967295|a>>>17))|~t))+r[13]+1309151649&4294967295,a=t+(i^((n=i+(a<<21&4294967295|a>>>11))|~s))+r[4]+4149444226&4294967295,a=s+(n^((t=n+(a<<6&4294967295|a>>>
vendor: 5,661 bytes, line 2255
225526))|~i))+r[11]+3174756917&4294967295,s=t+(a<<10&4294967295|a>>>22),a=i+(t^(s|~n))+r[2]+718787259&4294967295,a=n+(s^((i=s+(a<<15&4294967295|a>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+s&4294967295}function r(e,t){this.h=t;const n=[];let r=!0;for(let i=e.length-1;i>=0;i--){const a=0|e[i];r&&a==t||(n[i]=a,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.F=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.D=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}(t,function(){this.blockSize=-1}),t.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.v=function(e,t){void 0===t&&(t=e.length);const r=t-this.blockSize,i=this.C;let a=this.h,s=0;for(;s<t;){if(0==a)for(;s<=r;)n(this,e,s),s+=this.blockSize;if("string"==typeof e){for(;s<t;)if(i[a++]=e.charCodeAt(s++),a==this.blockSize){n(this,i),a=0;break}}else for(;s<t;)if(i[a++]=e[s++],a==this.blockSize){n(this,i),a=0;break}}this.h=a,this.o+=t},t.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=8*this.o;for(var n=e.length-8;n<e.length;++n)e[n]=255&t,t/=256;for(this.v(e),e=Array(16),t=0,n=0;n<4;++n)for(let r=0;r<32;r+=8)e[t++]=this.g[n]>>>r&255;return e};var i={};function a(e){return-128<=e&&e<128?function(e,t){var n=i;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(e){return new r([0|e],e<0?-1:0)}):new r([0|e],e<0?-1:0)}function s(e){if(isNaN(e)||!isFinite(e))return o;if(e<0)return h(s(-e));const t=[];let n=1;for(let r=0;e>=n;r++)t[r]=e/n|0,n*=4294967296;return new r(t,0)}var o=a(0),l=a(1),u=a(16777216);function c(e){if(0!=e.h)return!1;for(let t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function d(e){return-1==e.h}function h(e){const t=e.g.length,n=[];for(let r=0;r<t;r++)n[r]=~e.g[r];return new r(n,~e.h).add(l)}function p(e,t){return e.add(h(t))}function f(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function B(e,t){this.g=e,this.h=t}function m(e,t){if(c(t))throw Error("division by zero");if(c(e))return new B(o,o);if(d(e))return t=m(h(e),t),new B(h(t.g),h(t.h));if(d(t))return t=m(e,h(t)),new B(h(t.g),t.h);if(e.g.length>30){if(d(e)||d(t))throw Error("slowDivide_ only works with positive integers.");for(var n=l,r=t;r.l(e)<=0;)n=g(n),r=g(r);var i=v(n,1),a=v(r,1);for(r=v(r,2),n=v(n,2);!c(r);){var u=a.add(r);u.l(e)<=0&&(i=i.add(n),a=u),r=v(r,1),n=v(n,1)}return t=p(e,i.j(t)),new B(i,t)}for(i=o;e.l(t)>=0;){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=(r=Math.ceil(Math.log(n)/Math.LN2))<=48?1:Math.pow(2,r-48),u=(a=s(n)).j(t);d(u)||u.l(e)>0;)u=(a=s(n-=r)).j(t);c(a)&&(a=l),i=i.add(a),e=p(e,u)}return new B(i,e)}function g(e){const t=e.g.length+1,n=[];for(let r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new r(n,e.h)}function v(e,t){const n=t>>5;t%=32;const i=e.g.length-n,a=[];for(let r=0;r<i;r++)a[r]=t>0?e.i(r+n)>>>t|e.i(r+n+1)<<32-t:e.i(r+n);return new r(a,e.h)}(e=r.prototype).m=function(){if(d(this))return-h(this).m();let e=0,t=1;for(let n=0;n<this.g.length;n++){const r=this.i(n);e+=(r>=0?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(c(this))return"0";if(d(this))return"-"+h(this).toString(e);const t=s(Math.pow(e,6));var n=this;let r="";for(;;){const i=m(n,t).g;let a=(((n=p(n,i.j(t))).g.length>0?n.g[0]:n.h)>>>0).toString(e);if(c(n=i))return a+r;for(;a.length<6;)a="0"+a;r=a+r}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return d(e=p(this,e))?-1:c(e)?0:1},e.abs=function(){return d(this)?h(this):this},e.add=function(e){const t=Math.max(this.g.length,e.g.length),n=[];let i=0;for(let r=0;r<=t;r++){let t=i+(65535&this.i(r))+(65535&e.i(r)),a=(t>>>16)+(this.i(r)>>>16)+(e.i(r)>>>16);i=a>>>16,t&=65535,a&=65535,n[r]=a<<16|t}return new r(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(c(this)||c(e))return o;if(d(this))return d(e)?h(this).j(h(e)):h(h(this).j(e));if(d(e))return h(this.j(h(e)));if(this.l(u)<0&&e.l(u)<0)return s(this.m()*e.m());const t=this.g.length+e.g.length,n=[];for(var i=0;i<2*t;i++)n[i]=0;for(i=0;i<this.g.length;i++)for(let t=0;t<e.g.length;t++){const r=this.i(i)>>>16,a=65535&this.i(i),s=e.i(t)>>>16,o=65535&e.i(t);n[2*i+2*t]+=a*o,f(n,2*i+2*t),n[2*i+2*t+1]+=r*o,f(n,2*i+2*t+1),n[2*i+2*t+1]+=a*s,f(n,2*i+2*t+1),n[2*i+2*t+2]+=r*s,f(n,2*i+2*t+2)}for(e=0;e<t;e++)n[e]=n[2*e+1]<<16|n[2*e];for(e=t;e<2*t;e++)n[e]=0;return new r(n,0)},e.B=function(e){return m(this,e).h},e.and=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new r(n,this.h&e.h)},e.or=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new r(n,this.h|e.h)},e.xor=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new r(n,this.h^e.h)},t.prototype.digest=t.prototype.A,t.prototype.reset=t.prototype.u,t.prototype.update=t.prototype.v,r.prototype.add=r.prototype.add,r.prototype.multiply=r.prototype.j,r.prototype.modulo=r.prototype.B,r.prototype.compare=r.prototype.l,r.prototype.toNumber=r.prototype.m,r.prototype.toString=r.prototype.toString,r.prototype.getBits=r.prototype.i,r.fromNumber=s,r.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if((n=n||10)<2||36<n)throw Error("radix out of range: "+n);
vendor: 4,600 bytes, lines 2255-2261
2255if("-"==t.charAt(0))return h(e(t.substring(1),n));if(t.indexOf("-")>=0)throw Error('number format error: interior "-" character');const r=s(Math.pow(n,8));let i=o;for(let o=0;o<t.length;o+=8){var a=Math.min(8,t.length-o);const e=parseInt(t.substring(o,o+a),n);a<8?(a=s(Math.pow(n,a)),i=i.j(a).add(s(e))):(i=i.j(r),i=i.add(s(e)))}return i},Qie=r}).apply(void 0!==Zie?Zie:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Xie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var e,t=Object.defineProperty,n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Xie&&Xie];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function r(e,r){if(r)e:{var i=n;e=e.split(".");for(var a=0;a<e.length-1;a++){var s=e[a];if(!(s in i))break e;i=i[s]}(r=r(a=i[e=e[e.length-1]]))!=a&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}r("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),r("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),r("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push([t,e[t]]);return n}});
2256/** @license
2257      
2258       Copyright The Closure Library Authors.
2259       SPDX-License-Identifier: Apache-2.0
2260      */
2261var i=i||{},a=this||self;function s(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function o(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){return(l=o).apply(null,arguments)}function u(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function c(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ob=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}var d="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function h(e){const t=e.length;if(t>0){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function p(e,t){for(let r=1;r<arguments.length;r++){const t=arguments[r];var n=typeof t;if("array"==(n="object"!=n?n:t?Array.isArray(t)?"array":n:"null")||"object"==n&&"number"==typeof t.length){n=e.length||0;const r=t.length||0;e.length=n+r;for(let i=0;i<r;i++)e[n+i]=t[i]}else e.push(t)}}function f(e){a.setTimeout(()=>{throw e},0)}function B(){var e=C;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var m=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new g,e=>e.reset());class g{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let v,y=!1,C=new class{constructor(){this.h=this.g=null}add(e,t){const n=m.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},_=()=>{const e=Promise.resolve(void 0);v=()=>{e.then(b)}};function b(){for(var e;e=B();){try{e.h.call(e.g)}catch(n){f(n)}var t=m;t.j(e),t.h<100&&(t.h++,e.next=t.g,t.g=e)}y=!1}function w(){this.u=this.u,this.C=this.C}function D(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}w.prototype.u=!1,w.prototype.dispose=function(){this.u||(this.u=!0,this.N())},w.prototype[Symbol.dispose]=function(){this.dispose()},w.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},D.prototype.h=function(){this.defaultPrevented=!0};var E=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};a.addEventListener("test",e,t),a.removeEventListener("test",e,t)}catch(n){}return e}();function k(e){return/^[\s\xa0]*$/.test(e)}function S(e,t){D.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e&&this.init(e,t)}c(S,D),S.prototype.init=function(e,t){const n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("mouseover"==n?t=e.fromElement:"mou
2261seout"==n&&(t=e.toElement)),this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&S.Z.h.call(this)},S.prototype.h=function(){S.Z.h.call(this);const e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var x="closure_listenable_"+(1e6*Math.random()|0),T=0;function O(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++T,this.da=this.fa=!1}function A(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function I(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function P(e){const t={};for(const n in e)t[n]=e[n];return t}const N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function R(e,t){let n,r;for(let i=1;i<arguments.length;i++){for(n in r=arguments[i],r)e[n]=r[n];for(let t=0;t<N.length;t++)n=N[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function M(e){this.src=e,this.g={},this.h=0}function F(e,t){const n=t.type;if(n in e.g){var r,i=e.g[n],a=Array.prototype.indexOf.call(i,t,void 0);(r=a>=0)&&Array.prototype.splice.call(i,a,1),r&&(A(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function L(e,t,n,r){for(let i=0;i<e.length;++i){const a=e[i];if(!a.da&&a.listener==t&&a.capture==!!n&&a.ha==r)return i}return-1}M.prototype.add=function(e,t,n,r,i){const a=e.toString();(e=this.g[a])||(e=this.g[a]=[],this.h++);const s=L(e,t,r,i);return s>-1?(t=e[s],n||(t.fa=!1)):((t=new O(t,this.src,a,!!r,i)).fa=n,e.push(t)),t};var j="closure_lm_"+(1e6*Math.random()|0),H={};function U(e,t,n,r,i){if(Array.isArray(t)){for(let a=0;a<t.length;a++)U(e,t[a],n,r,i);return null}return n=z(n),e&&e[x]?e.J(t,n,!!s(r)&&!!r.capture,i):function(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");const o=s(i)?!!i.capture:!!i;let l=$(e);if(l||(e[j]=l=new M(e)),(n=l.add(t,n,r,o,a)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=q;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)E||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(V(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}(e,t,n,!1,r,i)}function G(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)G(e,t[a],n,r,i);else r=s(r)?!!r.capture:!!r,n=z(n),e&&e[x]?(e=e.i,(a=String(t).toString())in e.g&&(n=L(t=e.g[a],n,r,i))>-1&&(A(t[n]),Array.prototype.splice.call(t,n,1),0==t.length&&(delete e.g[a],e.h--))):e&&(e=$(e))&&(t=e.g[t.toString()],e=-1,t&&(e=L(t,n,r,i)),(n=e>-1?t[e]:null)&&Y(n))}function Y(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[x])F(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(V(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=$(t))?(F(n,e),0==n.h&&(n.src=null,t[j]=null)):A(e)}}}function V(e){return e in H?H[e]:H[e]="on"+e}function q(e,t){if(e.da)e=!0;else{t=new S(t,this);const n=e.listener,r=e.ha||e.src;e.fa&&Y(e),e=n.call(r,t)}return e}function $(e){return(e=e[j])instanceof M?e:null}var W="__closure_events_fn_"+(1e9*Math.random()>>>0);function z(e){return"function"==typeof e?e:(e[W]||(e[W]=function(t){return e.handleEvent(t)}),e[W])}function J(){w.call(this),this.i=new M(this),this.M=this,this.G=null}function K(e,t){var n,r=e.G;if(r)for(n=[];r;r=r.G)n.push(r);if(e=e.M,r=t.type||t,"string"==typeof t)t=new D(t,e);else if(t instanceof D)t.target=t.target||e;else{var i=t;R(t=new D(r,e),i)}let a,s;if(i=!0,n)for(s=n.length-1;s>=0;s--)a=t.g=n[s],i=Q(a,r,!0,t)&&i;if(a=t.g=e,i=Q(a,r,!0,t)&&i,i=Q(a,r,!1,t)&&i,n)for(s=0;s<n.length;s++)a=t.g=n[s],i=Q(a,r,!1,t)&&i}function Q(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let i=!0;for(let a=0;a<t.length;++a){const s=t[a];if(s&&!s.da&&s.capture==n){const t=s.listener,n=s.ha||s.src;s.fa&&F(e.i,s),i=!1!==t.call(n,r)&&i}}return i&&!r.defaultPrevented}function Z(e){e.g=function(e,t){if("function"!=typeof e){if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=l(e.handleEvent,e)}return Number(t)>2147483647?-1:a.setTimeout(e,t||0)}(()=>{e.g=null,e.i&&(e.i=!1,Z(e))},e.l);const t=e.h;e.h=null,e.m.apply(null,t)}c(J,w),J.prototype[x]=!0,J.prototype.removeEventListener=function(e,t,n,r){G(this,e,t,n,r)},J.prototype.N=function(){if(J.Z.N.call(this),this.i){var e=this.i;for(const t in e.g){const n=e.g[t];for(let e=0;e<n.length;e++)A(n[e]);delete e.g[t],e.h--}}this.G=null},J.prototype.J=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},J.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class X extends w{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:Z(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ee(e){w.call(this),this.h=e,this.g={}}c(ee,w);var te=[];function ne(e){I(e.g,function(e,t){this.g.hasOwnProperty(t)&&Y(e)},e),e.g={}}ee.prototype.N=function(){ee.Z.N.call(this),ne(this)},ee.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var re=a.JSON.stringify,ie=a.JSON.parse,ae=class{stringify(e){return a.JSON.stringify(e,void 0)}parse(e){return a.JSON.parse(e,void 0)}};function se(){}var oe={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function le(){D.call(this,"d")}function ue(){D.call(this,"c")}c(le,D),c(ue,D);var ce={},de=null;function he(){return de=de||new J}function pe(e){D.call(this,ce.Ia,e)}function fe(e){const t=he();K(t,new pe(t))}function Be(e,t){D.call(this,ce.STAT_EVENT,e),this.stat=t}function me(e){const t=he();K(t,new Be(t,e))}function ge(e,t){D.call(this,ce.Ja,e),this.size=t}function ve(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){e()},t)}function ye(){this.g=!0}function Ce(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{const a=JSON.parse(t);if(a)for(e=0;e<a.length;e++)if(Array.isArray(a[e])){var n=a[e];if(!(n.length<2)){var r=n[1];if(Array.isArray(r)&&!(r.length<1)){var i=r[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<r.length;e++)r[e]=""}}}return re(a)}catch(a){return t}}(e,n)+(r?" "+r:"")})}ce.Ia="serverreachability",c(pe,D),ce.STAT_EVENT="statevent",c(Be,D),ce.Ja="timingevent",c(ge,D),ye.prototype.ua=function(){this.g=!1},ye.prototype.info=function(){};var _e,be={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9};function we(){}function De(e){return encodeURIComponent(String(e))}function Ee(e){var t=1;e=e.split(":");const n=[];for(;t>0&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function ke(e,t,n,r){this.j=e,this.i=t,this.l=n,this.S=r||1,this.V=new ee(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new Se}function Se(){this.i=null,this.g="",this.h=!1}c(we,se),we.prototype.g=function(){return new XMLHttpRequest},_e=new we;var xe={},Te={};function Oe(e,t,n){e.M=1,e.A=tt(Ke(t)),e.u=n,e.R=!0,Ae(e,null)}function Ae(e,t){e.F=Date.now(),Ne(e),e.B=Ke(e.A);var n=e.B,r=e.S;Array.isArray(r)||(r=[String(r)]),Bt(n.i,"t",r),e.C=0,n=e.j.L,e.h=new Se,e.g=tn(e.j,n?t:null,!e.u),e.P>0&&(e.O=new X(l(e.Y,e,e.g),e.P)),t=e.V,n=e.g,r=e.ba;var i="readystatechange";Array.isArray(i)||(i&&(te[0]=i.toString()),i=te);for(let a=0;a<i.length;a++){const e=U(n,i[a],r||t.handleEvent,!1,t.h||t);if(!e)break;t.g[e.key]=e}t=e.J?P(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),fe(),function(e,t,n,r,i,a){e.info(function(){if(e.g)if(a){var s="",o=a.split("&");for(let e=0;e<o.length;e++){var l=o[e].split("=");if(l.length>1){const e=l[0];l=l[1];const t=e.split("_");s=t.length>=2&&"type"==t[1]?s+(e+"=")+l+"&":s+(e+"=redacted&")}}}else s=null;else s=a;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+s})}(e.i,e.v,e.B,e.l,e.S,e.u)}function Ie(e){return!!e.g&&"GET"==e.v&&2!=e.M&&e.j.Aa}function Pe(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Te:(n=Number(t.substring(n,r)),isNaN(n)?xe:(r+=1)+n>t.length?Te:(t=t.slice(r,r+n),e.C=r+n,t))}function Ne(e){e.T=Date.now()+e.H,Re(e,e.H)}function Re(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=ve(l(e.aa,e),t)}function Me(e){e.D&&(a.clearTimeout(e.D),e.D=null)}function Fe(e){0==e.j.I||e.K||Kt(e.j,e)}function Le(e){Me(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,ne(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dis
vendor: 28,074 bytes, lines 2261-2272
2261pose())}function je(e,t){try{var n=e.j;if(0!=n.I&&(n.g==e||Ve(n.h,e)))if(!e.L&&Ve(n.h,e)&&3==n.I){try{var r=n.Ba.g.parse(t)}catch(c){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.v){if(n.g){if(!(n.g.F+3e3<e.F))break e;Jt(n),jt(n)}$t(n),me(18)}}else n.xa=i[1],0<n.xa-n.K&&i[2]<37500&&n.F&&0==n.A&&!n.C&&(n.C=ve(l(n.Va,n),6e3));Ye(n.h)<=1&&n.ta&&(n.ta=void 0)}else Zt(n,11)}else if((e.L||n.g==e)&&Jt(n),!k(t))for(i=n.Ba.g.parse(t),t=0;t<i.length;t++){let l=i[t];const c=l[0];if(!(c<=n.K))if(n.K=c,l=l[1],2==n.I)if("c"==l[0]){n.M=l[1],n.ba=l[2];const t=l[3];null!=t&&(n.ka=t,n.j.info("VER="+n.ka));const i=l[4];null!=i&&(n.za=i,n.j.info("SVER="+n.za));const c=l[5];null!=c&&"number"==typeof c&&c>0&&(r=1.5*c,n.O=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;const d=e.g;if(d){const e=d.g?d.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var a=r.h;a.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(a.j=a.l,a.g=new Set,a.h&&(qe(a,a.h),a.h=null))}if(r.G){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.wa=e,et(r.J,r.G,e))}}n.I=3,n.l&&n.l.ra(),n.aa&&(n.T=Date.now()-e.F,n.j.info("Handshake RTT: "+n.T+"ms"));var s=e;if((r=n).na=en(r,r.L?r.ba:null,r.W),s.L){$e(r.h,s);var o=s,u=r.O;u&&(o.H=u),o.D&&(Me(o),Ne(o)),r.g=s}else qt(r);n.i.length>0&&Ut(n)}else"stop"!=l[0]&&"close"!=l[0]||Zt(n,7);else 3==n.I&&("stop"==l[0]||"close"==l[0]?"stop"==l[0]?Zt(n,7):Lt(n):"noop"!=l[0]&&n.l&&n.l.qa(l),n.A=0)}fe()}catch(c){}}ke.prototype.ba=function(e){e=e.target;const t=this.O;t&&3==Nt(e)?t.j():this.Y(e)},ke.prototype.Y=function(e){try{if(e==this.g)e:{const l=Nt(this.g),u=this.g.ya();if(this.g.ca(),!(l<3)&&(3!=l||this.g&&(this.h.h||this.g.la()||Rt(this.g)))){this.K||4!=l||7==u||fe(),Me(this);var t=this.g.ca();this.X=t;var n=function(e){if(!Ie(e))return e.g.la();const t=Rt(e.g);if(""===t)return"";let n="";const r=t.length,i=4==Nt(e.g);if(!e.h.i){if("undefined"==typeof TextDecoder)return Le(e),Fe(e),"";e.h.i=new a.TextDecoder}for(let a=0;a<r;a++)e.h.h=!0,n+=e.h.i.decode(t[a],{stream:!(i&&a==r-1)});return t.length=0,e.h.g+=n,e.C=0,e.h.g}(this);if(this.o=200==t,function(e,t,n,r,i,a,s){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+a+" "+s})}(this.i,this.v,this.B,this.l,this.S,l,t),this.o){if(this.U&&!this.L){t:{if(this.g){var r,i=this.g;if((r=i.g?i.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!k(r)){var s=r;break t}}s=null}if(!(e=s)){this.o=!1,this.m=3,me(12),Le(this),Fe(this);break e}Ce(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,je(this,e)}if(this.R){let t;for(e=!0;!this.K&&this.C<n.length;){if(t=Pe(this,n),t==Te){4==l&&(this.m=4,me(14),e=!1),Ce(this.i,this.l,null,"[Incomplete Response]");break}if(t==xe){this.m=4,me(15),Ce(this.i,this.l,n,"[Invalid Chunk]"),e=!1;break}Ce(this.i,this.l,t,null),je(this,t)}if(Ie(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=l||0!=n.length||this.h.h||(this.m=1,me(16),e=!1),this.o=this.o&&e,e){if(n.length>0&&!this.W){this.W=!0;var o=this.j;o.g==this&&o.aa&&!o.P&&(o.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),Wt(o),o.P=!0,me(11))}}else Ce(this.i,this.l,n,"[Invalid Chunked Response]"),Le(this),Fe(this)}else Ce(this.i,this.l,n,null),je(this,n);4==l&&Le(this),this.o&&!this.K&&(4==l?Kt(this.j,this):(this.o=!1,Ne(this)))}else(function(e){const t={};e=(e.g&&Nt(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(k(e[r]))continue;var n=Ee(e[r]);const i=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();const a=t[i]||[];t[i]=a,a.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,function(e){return e.join(", ")})})(this.g),400==t&&n.indexOf("Unknown SID")>0?(this.m=3,me(12)):(this.m=0,me(13)),Le(this),Fe(this)}}}catch(l){}},ke.prototype.cancel=function(){this.K=!0,Le(this)},ke.prototype.aa=function(){this.D=null;const e=Date.now();e-this.T>=0?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.i,this.B),2!=this.M&&(fe(),me(17)),Le(this),this.m=2,Fe(this)):Re(this,this.T-e)};var He=class{constructor(e,t){this.g=e,this.map=t}};function Ue(e){this.l=e||10,e=a.PerformanceNavigationTiming?(e=a.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function Ge(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Ye(e){return e.h?1:e.g?e.g.size:0}function Ve(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function qe(e,t){e.g?e.g.add(t):e.h=t}function $e(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function We(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.G);return t}return h(e.i)}Ue.prototype.cancel=function(){if(this.i=We(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var ze=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Je(e){let t;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof Je?(this.l=e.l,Qe(this,e.j),this.o=e.o,this.g=e.g,Ze(this,e.u),this.h=e.h,Xe(this,mt(e.i)),this.m=e.m):e&&(t=String(e).match(ze))?(this.l=!1,Qe(this,t[1]||"",!0),this.o=nt(t[2]||""),this.g=nt(t[3]||"",!0),Ze(this,t[4]),this.h=nt(t[5]||"",!0),Xe(this,t[6]||"",!0),this.m=nt(t[7]||"")):(this.l=!1,this.i=new ct(null,this.l))}function Ke(e){return new Je(e)}function Qe(e,t,n){e.j=n?nt(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function Ze(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function Xe(e,t,n){t instanceof ct?(e.i=t,function(e,t){t&&!e.j&&(dt(e),e.i=null,e.g.forEach(function(e,t){const n=t.toLowerCase();t!=n&&(ht(this,t),Bt(this,n,e))},e)),e.j=t}(e.i,e.l)):(n||(t=rt(t,lt)),e.i=new ct(t,e.l))}function et(e,t,n){e.i.set(t,n)}function tt(e){return et(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function nt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function rt(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,it),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function it(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Je.prototype.toString=function(){const e=[];var t=this.j;t&&e.push(rt(t,at,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(rt(t,at,!0),"@"),e.push(De(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.u)&&e.push(":",String(n))),(n=this.h)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(rt(n,"/"==n.charAt(0)?ot:st,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",rt(n,ut)),e.join("")},Je.prototype.resolve=function(e){const t=Ke(this);let n=!!e.j;n?Qe(t,e.j):n=!!e.o,n?t.o=e.o:n=!!e.g,n?t.g=e.g:n=null!=e.u;var r=e.h;if(n)Ze(t,e.u);else if(n=!!e.h){if("/"!=r.charAt(0))if(this.g&&!this.h)r="/"+r;else{var i=t.h.lastIndexOf("/");-1!=i&&(r=t.h.slice(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");const e=[];for(let t=0;t<i.length;){const n=i[t++];"."==n?r&&t==i.length&&e.push(""):".."==n?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),r&&t==i.length&&e.push("")):(e.push(n),r=!0)}r=e.join("/")}else r=i}return n?t.h=r:n=""!==e.i.toString(),n?Xe(t,mt(e.i)):n=!!e.m,n&&(t.m=e.m),t};var at=/[#\/\?@]/g,st=/[#\?:]/g,ot=/[#\?]/g,lt=/[#\?@]/g,ut=/#/g;function ct(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function dt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(let n=0;n<e.length;n++){const r=e[n].indexOf("=");let i,a=null;r>=0?(i=e[n].substring(0,r),a=e[n].substring(r+1)):i=e[n],t(i,a?decodeURIComponent(a.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function ht(e,t){dt(e),t=gt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function pt(e,t){return dt(e),t=gt(e,t),e.g.has(t)}function ft(e,t){dt(e);let n=[];if("string"==typeof t)pt(e,t)&&(n=n.concat(e.g.get(gt(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)n=n.concat(e[t]);return n}function Bt(e,t,n){ht(e,t),n.length>0&&(e.i=null,e.g.set(gt(e,t),h(n)),e.h+=n.length)}function mt(e){const t=new ct;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function gt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function vt(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(a){}}function yt(){this.g=new ae}function Ct(e){this.i=e.Sb||null,this.h=e.ab||!1}function _t(e,t){J.call(this),this.H=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function bt(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function wt(e){e.readyState=4,e.l=null,e.j=null,e.B=null,Dt(e)}function Dt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Et(e){let t="";return I(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function kt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Et(n),"string"==typeof e?null!=n&&De(n):et(e,t,n))}function St(e){J.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(e=ct.prototype).add=function(e,t){dt(this),this.i=null,e=gt(this,e);let n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){dt(this),this.g.forEach(function(n,r){n.forEach(function(n){e.call(t,n,r,this)},this)},this)},e.set=function(e,t){return dt(this),this.i=null,pt(this,e=gt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&(e=ft(this,e)).length>0?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(let r=0;r<t.length;r++){var n=t[r];const i=De(n);n=ft(this,n);for(let t=0;t<n.length;t++){let r=i;""!==n[t]&&(r+="="+De(n[t])),e.push(r)}}return this.i=e.join("&")},c(Ct,se),Ct.prototype.g=function(){return new _t(this.i,this.h)},c(_t,J),(e=_t.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,Dt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||a).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,wt(this)),this.readyState=0},e.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Dt(this)),this.g&&(this.readyState=3,Dt(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==a.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;bt(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?wt(this):Dt(this),3==this.readyState&&bt(this)}},e.Oa=function(e){this.g&&(this.response=this.responseText=e,wt(this))},e.Na=function(e){this.g&&(this.response=e,wt(this))},e.ga=function(){this.g&&wt(this)},e.setRequestHeader=function(e,t){this.A.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(_t.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),c(St,J);var xt=/^https?$/i,Tt=["POST","PUT"];function Ot(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,At(e),Pt(e)}function At(e){e.A||(e.A=!0,K(e,"complete"),K(e,"error"))}function It(e){if(e.h&&void 0!==i)if(e.v&&4==Nt(e))setTimeout(e.Ca.bind(e),0);else if(K(e,"readystatechange"),4==Nt(e)){e.h=!1;try{const i=e.ca();e:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var r;if(r=0===i){let t=String(e.D).match(ze)[1]||null;!t&&a.self&&a.self.location&&(t=a.self.location.protocol.slice(0,-1)),r=!xt.test(t?t.toLowerCase():"")}n=r}if(n)K(e,"complete"),K(e,"success");else{e.o=6;try{var s=Nt(e)>2?e.g.statusText:""}catch(o){s=""}e.l=s+" ["+e.ca()+"]",At(e)}}finally{Pt(e)}}}function Pt(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);const r=e.g;e.g=null,t||K(e,"ready");try{r.onreadystatechange=null}catch(n){}}}function Nt(e){return e.g?e.g.readyState:0}function Rt(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(t){return null}}function Mt(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Ft(e){this.za=0,this.i=[],this.j=new ye,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=Mt("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=Mt("baseRetryDelayMs",5e3,e),this.Za=Mt("retryDelaySeedMs",1e4,e),this.Ta=Mt("forwardChannelMaxRetries",2,e),this.va=Mt("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new Ue(e&&e.concurrentRequestLimit),this.Ba=new yt,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function Lt(e){if(Ht(e),3==e.I){var t=e.V++,n=Ke(e.J);if(et(n,"SID",e.M),et(n,"RID",t),et(n,"TYPE","terminate"),Yt(e,n),(t=new ke(e,e.j,t)).M=2,t.A=tt(Ke(n)),n=!1,a.navigator&&a.navigator.sendBeacon)try{n=a.navigator.sendBeacon(t.A.toString(),"")}catch(r){}!n&&a.Image&&((new Image).src=t.A,n=!0),n||(t.g=tn(t.j,null),t.g.ea(t.A)),t.F=Date.now(),Ne(t)}Xt(e)}function jt(e){e.g&&(Wt(e),e.g.cancel(),e.g=null)}function Ht(e){jt(e),e.v&&(a.clearTimeout(e.v),e.v=null),Jt(e),e.h.cancel(),e.m&&("number"==typeof e.m&&a.clearTimeout(e.m),e.m=null)}function Ut(e){if(!Ge(e.h)&&!e.m){e.m=!0;var t=e.Ea;v||_(),y||(v(),y=!0),C.add(t,e),e.D=0}}function Gt(e,t){var n;n=t?t.l:e.V++;const r=Ke(e.J);et(r,"SID",e.M),et(r,"RID",n),et(r,"AID",e.K),Yt(e,r),e.u&&e.o&&kt(r,e.u,e.o),n=new ke(e,e.j,n,e.D+1),null===e.u&&(n.J=e.o),t&&(e.i=t.G.concat(e.i)),t=Vt(e,n,1e3),n.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),qe(e.h,n),Oe(n,r,t)}function Yt(e,t){e.H&&I(e.H,function(e,n){et(t,n,e)}),e.l&&I({},function(e,n){et(t,n,e)})}function Vt(e,t,n){n=Math.min(e.i.length,n);const r=e.l?l(e.l.Ka,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?n>0?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let l=!0;for(let c=0;c<n;c++){var a=i[c].g;const n=i[c].map;if((a-=t)<0)t=Math.max(0,i[c].g-100),l=!1;else try{a="req"+a+"_"||"";try{var o=n instanceof Map?n:Object.entries(n);for(const[t,n]of o){let r=n;s(n)&&(r=re(n)),e.push(a+t+"="+encodeURIComponent(r))}}catch(u){throw e.push(a+"type="+encodeURIComponent("_badmap")),u}}catch(u){r&&r(n)}}if(l){o=e.join("&");break e}}o=void 0}return e=e.i.splice(0,n),t.G=e,o}function qt(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;v||_(),y||(v(),y=!0),C.add(t,e),e.A=0}}function $t(e){return!(e.g||e.v||e.A>=3||(e.Y++,e.v=ve(l(e.Da,e),Qt(e,e.A)),e.A++,0))}function Wt(e){null!=e.B&&(a.clearTimeout(e.B),e.B=null)}function zt(e){e.g=new ke(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=Ke(e.na);et(t,"RID","rpc"),et(t,"SID",e.M),et(t,"AID",e.K),et(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&et(t,"TO",e.ia),et(t,"TYPE","xmlhttp"),Yt(e,t),e.u&&e.o&&kt(t,e.u,e.o),e.O&&(e.g.H=e.O);var n=e.g;e=e.ba,n.M=1,n.A=tt(Ke(t)),n.u=null,n.R=!0,Ae(n,e)}function Jt(e){null!=e.C&&(a.clearTimeout(e.C),e.C=null)}function Kt(e,t){var n=null;if(e.g==t){Jt(e),Wt(e),e.g=null;var r=2}else{if(!Ve(e.h,t))return;n=t.G,$e(e.h,t),r=1}if(0!=e.I)if(t.o)if(1==r){n=t.u?t.u.length:0,t=Date.now()-t.F;var i=e.D;K(r=he(),new ge(r,n)),Ut(e)}else qt(e);else if(3==(i=t.m)||0==i&&t.X>0||!(1==r&&function(e,t){return!(Ye(e.h)>=e.h.j-(e.m?1:0)||(e.m?(e.i=t.G.concat(e.i),0):1==e.I||2==e.I||e.D>=(e.Sa?0:e.Ta)||(e.m=ve(l(e.Ea,e,t),Qt(e,e.D)),e.D++,0)))}(e,t)||2==r&&$t(e)))switch(n&&n.length>0&&(t=e.h,t.i=t.i.concat(n)),i){case 1:Zt(e,5);break;case 4:Zt(e,10);break;case 3:Zt(e,6);break;default:Zt(e,2)}}function Qt(e,t){let n=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(n*=2),n*t}function Zt(e,t){if(e.j.info("Error code "+t),2==t){var n=l(e.bb,e),r=e.Ua;const t=!r;r=new Je(r||"//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||Qe(r,"https"),tt(r),t?function(e,t){const n=new ye;if(a.Image){const r=new Image;r.onload=u(vt,n,"TestLoadImage: loaded",!0,t,r),r.onerror=u(vt,n,"TestLoadImage: error",!1,t,r),r.onabort=u(vt,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=u(vt,n,"TestLoadImage: timeout",!1,t,r),a.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new ye;const n=new AbortController,r=setTimeout(()=>{n.abort(),vt(0,0,!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(r),e.ok?vt(0,0,!0,t):vt(0,0,!1,t)}).catch(()=>{clearTimeout(r),vt(0,0,!1,t)})}(r.toString(),n)}else me(2);e.I=0,e.l&&e.l.pa(t),Xt(e),Ht(e)}function Xt(e){if(e.I=0,e.ja=[],e.l){const t=We(e.h);0==t.length&&0==e.i.length||(p(e.ja,t),p(e.ja,e.i),e.h.i.length=0,h(e.i),e.i.length=0),e.l.oa()}}function en(e,t,n){var r=n instanceof Je?Ke(n):new Je(n);if(""!=r.g)t&&(r.g=t+"."+r.g),Ze(r,r.u);else{var i=a.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;const e=new Je(null);r&&Qe(e,r),t&&(e.g=t),i&&Ze(e,i),n&&(e.h=n),r=e}return n=e.G,t=e.wa,n&&t&&et(r,n,t),et(r,"VER",e.ka),Yt(e,r),r}function tn(e,t,n){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Aa&&!e.ma?new St(new Ct({ab:n})):new St(e.ma)).Fa(e.L),t}function nn(){}function rn(e,t){J.call(this),this.g=new Ft(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.sa&&(e?e["X-WebChannel-Client-Profile"]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!k(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!k(t)&&(this.g.G=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new on(this)}function an(e){le.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function sn(){ue.call(this),this.status=1}function on(e){this.g=e}(e=St.prototype).Fa=function(e){this.H=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():_e.g(),this.g.onreadystatechange=d(l(this.Ca,this));try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(s){return void Ot(this,s)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else{if("function"!=typeof r.keys||"function"!=typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),i=a.FormData&&e instanceof a.FormData,!(Array.prototype.indexOf.call(Tt,t,void 0)>=0)||r||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[a,o]of n)this.g.setRequestHeader(a,o);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(e),this.v=!1}catch(s){Ot(this,s)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,K(this,"complete"),K(this,"abort"),Pt(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Pt(this,!0)),St.Z.N.call(this)},e.Ca=function(){this.u||(this.B||this.v||this.j?It(this):this.Xa())},e.Xa=function(){It(this)},e.isActive=function(){return!!this.g},e.ca=function(){try{return Nt(this)>2?this.g.status:-1}catch(e){return-1}},e.la=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},e.La=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),ie(t)}},e.ya=function(){return this.o},e.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(e=Ft.prototype).ka=8,e.I=1,e.connect=function(e,t,n,r){me(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.J=en(this,null,this.W),Ut(this)},e.Ea=function(e){if(this.m)if(this.m=null,1==this.I){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;const i=new ke(this,this.j,e);let a=this.o;if(this.U&&(a?(a=P(a),R(a,this.U)):a=this.U),null!==this.u||this.R||(i.J=a,a=null),this.S)e:{for(var t=0,n=0;n<this.i.length;n++){var r=this.i[n];if(void 0===(r="__data__"in r.map&&"string"==typeof(r=r.map.__data__)?r.length:void 0))break;if((t+=r)>4096){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=Vt(this,i,t),et(n=Ke(this.J),"RID",e),et(n,"CVER",22),this.G&&et(n,"X-HTTP-Session-Id",this.G),Yt(this,n),a&&(this.R?t="headers="+De(Et(a))+"&"+t:this.u&&kt(n,this.u,a)),qe(this.h,i),this.Ra&&et(n,"TYPE","init"),this.S?(et(n,"$req",t),et(n,"SID","null"),i.U=!0,Oe(i,n,null)):Oe(i,n,t),this.I=2}}else 3==this.I&&(e?Gt(this,e):0==this.i.length||Ge(this.h)||Gt(this))},e.Da=function(){if(this.v=null,zt(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var e=4*this.T;this.j.info("BP detection timer enabled: "+e),this.B=ve(l(this.Wa,this),e)}},e.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,me(10),jt(this),zt(this))},e.Va=function(){null!=this.C&&(this.C=null,jt(this),$t(this),me(19))},e.bb=function(e){e?(this.j.info("Successfully pinged google.com"),me(2)):(this.j.info("Failed to ping google.com"),me(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=nn.prototype).ra=function(){},e.qa=function(){},e.pa=function(){},e.oa=function(){},e.isActive=function(){return!0},e.Ka=function(){},c(rn,J),rn.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},rn.prototype.close=function(){Lt(this.g)},rn.prototype.o=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=re(e),e=n);t.i.push(new He(t.Ya++,e)),3==t.I&&Ut(t)},rn.prototype.N=function(){this.g.l=null,delete this.j,Lt(this.g),delete this.g,rn.Z.N.call(this)},c(an,le),c(sn,ue),c(on,nn),on.prototype.ra=function(){K(this.g,"a")},on.prototype.qa=function(e){K(this.g,new an(e))},on.prototype.pa=function(e){K(this.g,new sn)},on.prototype.oa=function(){K(this.g,"b")},rn.prototype.send=rn.prototype.o,rn.prototype.open=rn.prototype.m,rn.prototype.close=rn.prototype.close,be.NO_ERROR=0,be.TIMEOUT=8,be.HTTP_ERROR=6,oe.OPEN="a",oe.CLOSE="b",oe.ERROR="c",oe.MESSAGE="d",J.prototype.listen=J.prototype.J,St.prototype.listenOnce=St.prototype.K,St.prototype.getLastError=St.prototype.Ha,St.prototype.getLastErrorCode=St.prototype.ya,St.prototype.getStatus=St.prototype.ca,St.prototype.getResponseJson=St.prototype.La,St.prototype.getResponseText=St.prototype.la,St.prototype.send=St.prototype.ea,St.prototype.setWithCredentials=St.prototype.Fa}).apply(void 0!==Xie?Xie:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});
2262/*!
2263    * re2js
2264    * RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
2265    *
2266    * @version v2.8.6
2267    * @author Oleksii Vasyliev
2268    * @homepage https://github.com/le0pard/re2js#readme
2269    * @repository github:le0pard/re2js
2270    * @license MIT
2271    */
2272var eae=(i(n=class{},"FOLD_CASE",1),i(n,"LITERAL",2),i(n,"CLASS_NL",4),i(n,"DOT_NL",8),i(n,"ONE_LINE",16),i(n,"NON_GREEDY",32),i(n,"PERL_X",64),i(n,"UNICODE_GROUPS",128),i(n,"WAS_DOLLAR",256),i(n,"LOOKBEHIND",512),i(n,"MATCH_NL",n.CLASS_NL|n.DOT_NL),i(n,"PERL",n.CLASS_NL|n.ONE_LINE|n.PERL_X|n.UNICODE_GROUPS),i(n,"POSIX",0),i(n,"UNANCHORED",0),i(n,"ANCHOR_START",1),i(n,"ANCHOR_BOTH",2),n);const tae=1,nae=2,rae=4,iae=8,aae=16,sae=512,oae=128,lae=new Int32Array(oae),uae=new Int32Array(oae),cae=65535;for(let i=0;i<oae;i++)lae[i]=i>=97&&i<=122?i-32:i,uae[i]=i>=65&&i<=90?i+32:i;var dae=(i(r=class{static toUpperCase(e){if(e<oae)return lae[e];const t=String.fromCodePoint(e).toUpperCase(),n=t.codePointAt(0)>cae?2:1;if(t.length>n)return e;const r=String.fromCodePoint(t.codePointAt(0)).toLowerCase(),i=r.codePointAt(0)>cae?2:1;return r.length>i||r.codePointAt(0)!==e?e:t.codePointAt(0)}static toLowerCase(e){if(e<oae)return uae[e];const t=String.fromCodePoint(e).toLowerCase(),n=t.codePointAt(0)>cae?2:1;if(t.length>n)return e;const r=String.fromCodePoint(t.codePointAt(0)).toUpperCase(),i=r.codePointAt(0)>cae?2:1;return r.length>i||r.codePointAt(0)!==e?e:t.codePointAt(0)}},"CODES",new Map([["�",7],["\b",8],["\t",9],["\n",10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["'",39],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["`",96],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]])),r),hae=class{constructor(e,t=!1){this.data=e,this.isStride1=t,this.SIZE=t?2:3}getLo(e){return this.data[e*this.SIZE]}getHi(e){return this.data[e*this.SIZE+1]}getStride(e){return this.isStride1?1:this.data[e*this.SIZE+2]}get length(){return this.data.length/this.SIZE}};const pae=new Uint8Array(256);for(let i=0,Oue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2272+-";i<64;i++)pae[Oue.charCodeAt(i)]=i;const fae=e=>{const t=[];let n=0,r=0;for(let i=0;i<e.length;i++){let a=pae[e.charCodeAt(i)];n|=(31&a)<<r,32&a?r+=5:(t.push(n),n=0,r=0)}return t},Bae=(e,t)=>{const n=fae(e),r=t?n.length/2:n.length/3,i=new Uint32Array(3*r);let a=0,s=0;for(let o=0;o<r;o++)a+=n[s++],i[3*o]=a,a+=n[s++],i[3*o+1]=a,i[3*o+2]=t?1:n[s++];return i};var mae=class{constructor(e){this.initializer=e,this.cache=new Map}has(e){return e in this.initializer}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.initializer[e],n=t?t():null;return this.cache.set(e,n),n}},gae=(i(a=class{static get CASE_ORBIT(){return this._CASE_ORBIT||(this._CASE_ORBIT=(e=>{const t=fae(e),n=new Map;let r=0;for(let i=0;i<t.length;i+=2){r+=t[i];const e=t[i+1],a=e>>>1^-(1&e);n.set(r,r+a)}return n})("rCgCIgCY+rQI4QiCuuBLgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCCgCBgCBgCBgCBgCBgCBgCB+7OB-BB-BB-BB-BB-BBskQB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BC-BB-BB-BB-BB-BB-BB-BByHBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBDCBBBCBBBCBBCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBxHBCBBBCBBBCBBB3SBmMBkNBCBBBCBBB8MBCBBB6MB6MBCBBC+EB0MB2MBCBBB6MB+MBiGBmNBiNBCBBBmKBikzCBmNBqNBkIBsNBCBBBCBBBCBBB0NBCBBB0NDCBBB0NBCBBByNByNBCBBBCBBB2NBCBBDCBBCwDFCBCBDBCBCBDBCBCBDBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBB9EBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBCCBCBDBCBBBhGBvDBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBjICCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBH2iVBCBBBlKBwiVB+jVB+jVBCBBBlMBqEBuEBCBBBCBBBCBBBCBBBCBBB+hVB4hVB8hVBjNB7MC5MB5MCzMC1MB+0yCE5MB20yCC9MBu2yCBwyyCBo0yCChNBlNBo0yCBu-UBi0yCDlNC6-UBpNDrNIu+UDzNCm0yCBzNE0yyCBzNBpEBxNBxNBtEG1NLqxyCBkxyCnFoFrBCBBBCBBDCBBEkIBkIBkICoHHsCCqCBqCBqCCgEC+DB+DBmkOBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCC+BBgCBgCBgCBgCBgCBgCBgCBgCBrCBpCBpCBpCBmjOB-BB8BB-BB-BBgEB-BB-BByBBqgOBsDB-BBtwBB-BB-BB-BBsBBgDBCB-BB-BB-BBeB-BB-BB61OB-BB-BB-DB9DB9DBQB7DBmCE9CBrDBPBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBrFB-EBOBnHB3FB-FCCBBBNBCBBCjIBjIBjIBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgFBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCB-BB-BB8kMB-BB6kMB-BB-BB-BB-BB-BB-BB-BB-BB-BBokMB-BB-BBkkMBkkMB-BB-BB-BB-BB-BB-BB-BB4jMB-BB-BB-BB-BB-BB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EB-EBCBBBCBoiMBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBJCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBeBCBBBCBBBCBBBCBBBCBBBCBBBCBBBdBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBCgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDL-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-C64CgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOBgmOCgmOGgmODg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FBg8FDg8FBg8FBg8FhVg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBg9rCBQBQBQBQBQBQDPBPBPBPBPBPjkC7mMB5mMBnmMBjmMBCBlmMB3lMBpiMBk8kCBCBBG-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FB-7FD-7FB-7FB-7F6FoglCEsuHRwjlCyDCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCB0DBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBG1DD97OCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQDPBPBPBPBPBPDQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQDPBPBPBPBPBPEQCQCQCQCPCPCPCPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPB0EB0EBsFBsFBsFBsFBoGBoGBgIBgIBgHBgHB8HB8HDQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQBQBQBQBQBQBQBPBPBPBPBPBPBPBPBQBQCSFPBPBzEBzEBRCxnOFSFrFBrFBrFBrFBREQBQClkOFPBPBnGBnGFQBQCljOCODPBPB-GB-GBNHSF-HB-HB7HB7HBRqJ53OE9tQBrmQH4Bc3BSgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBgBBfBfBfBfBfBfBfBfBfBfBfBfBfBfBfBfECBByZ0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0BBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzBBzB34BgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDBgDB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CB-CBCBBBt-UBruHBt+UB1iVBviVBCBBBCBBBCBBB3hVB5-UB9hVB7hVCCBBCCBBI9jVB9jVBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBICBBBCBBECBBN-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOB-lOC-lOG-lOzoeCBBBCBBBCBBBCBBBCBBBCBl8kCBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBTC
2272BBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBnECBBBCBBBCBBBCBBBCBBBCBBBCBBDCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBKCBBBCBBBnglCBCBBBCBBBCBBBCBBBCBBECBBBvyyCDCBBBCBBBgDCCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBn0yCB90yCB10yCBh0yCBn0yCCjxyCBzyyCBpxyCBg6BBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBB-CBl0yCBvjlCBCBBBCBBBt2yCBCBBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBhkzCZCBB9a-5Bd-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCB-8rCm6TCBB7gBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCH-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BmlBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvChDwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCBwCFvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvCBvC1DuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCCuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCBuCCuCBuCBuCBuCBuCBuCBuCCuCBuCCtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCCtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCBtCCtCBtCBtCBtCBtCBtCBtCCtCBtCk2BgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEBgEO-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-DB-D+CgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCL-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-B74CgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BhrVgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCBgCB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BB-BhB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BB2BD1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BB1BtxekCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBkCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjCBjC")),this._CASE_ORBIT}static get Print(){return this._Print||(this._Print=new hae(Bae("hB9CBjBLBCpWBDFBFGBCCCBSBCsMBClBBDxBBDCBC2BBJaBFFBSVBC-FBCvBBD6BBDkDBP6BBDwBBDOBCbBDCCBJBGfBIqCBCgFBCHBDBBDVBCGBCEEBCBDIBDBBDDBJFFBCCBDBDYBDCBCFBFBBDVBCGBCBBCBBCBBDCCBDBFBBDCBEIIBCBCIIBPBLCBCIBCCBCVBCGBCBBCEBDJBCCBCCBDQQBCBDLBIGBCCBCHBDBBDVBCGBCBBCEBDIBDBBDCBICBFBBCEBDRBLBBCFBECBCDBEBBCCCBEEBEEBBBELBFEBECBCDBDHHPUBGMBCCBCWBCPBDIBCCBCDBIBBCCBCBBDDBDJBIVBCCBCWBCJBCEBDIBCCBCDBIBBGCBCDBDJBCCBNMBCCBCyBBCCBCFBFPBDZBCCBCRBEXBCIBCDDBFBEFFBEBCCCBGBHJBDCBN5BBFcBmBBBCCCBDBCXBCCCBVBDEBCCCBFBCJBDDBhBnCBCjBBFmBBCjBBCOBCMBmBlGBCGGD4LBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBDfBEZBH1CBDFBD-TBCbBE4CBIVBKXBKTBNMBCCBCBBN9CBDJBHJBHNBCKBH4CBIqBBGlCBLeBCLBFLBFEEBoBBDEBMrBBFZBHKBE9BBDgCBCcBDKBHJBHNBDtBBDLBVsCBClFBJ7BBEOBE9BBGqBBDKBJqBBG1QBDFBDlBBDFBDHBCGCBdBD0BBCOBCNBDFBCSBDCBCIBSXBJuBBSBBDaBCMBEhBBPgBBQrEBF5UBXKBWz4BBD9LBGsBBCGGD3BBIBBPXBKGBCGBCGBCGBCGBCGBCGBCGBC9DBjBZBC4CBN1GBbPBC+BBC1CBDmDBGqBBC9CBC1CBKvBBCszcBE2BBK7KBV3FBJ8GBV7BBEJBH3BBJlCBJLBHzDBMdBEtCBCKBFgBBC2BBKNBDJBDmDBZbBLFBDFBDFBKGBCGBC7BBF9DBDJBHj9KBNWBFwBBloItLBDpDBnBGBNEBGZBCEBCCCBCCBCCBoUBhBpBBHyBBCSBCDBFEBCmEBF9FBEFBDFBDFBDCBEGBCGBOBBDLBCZBCSBCBBCOBDNBjB6DBGCBFsBBE3CBCMBEwBwBBsBBjEcBEwBBQbBFjBBKdBGqBBGdBCkBBFNBrB9EBDJBHjB
2272BFjBBFnBBJzBBMLBCOBCGBCBBCKBCOBCGBCBBEzBBN2JBKVBLHBZFBCpBBCIBmCFBDCCBqBBCBBEDDBVBCnCBJIBxBSBCBBGgBBEaBGaBnB3BBFTBDxBBCBBGHBCCBCcBDCBFJBIIBI-BBhBmBBFLBK1BBEcBDaBGZBIDBNGBxCoCB4ByBBOyBBItBBJJBHlBBEcBJBBxGeBCpBBCCBDBBRFBJIBiBtBBJpBBXZBnBbBVWBKtCBFjBBK9BBCEBOYBIJBH0BBCRBJmBBK-CBCTBMRBCuBB-BGBCCCBCBCOBCKBH6BBGJBHDBCHBDBBDVBCGBCBBCEBCJBDBBDCBDHHGGBDGBEEBMJBCDDClBBCJBCDDCDBCJBCBBJBBe7CBCEBfnCBJJBnF1BBDlBBjBkCBMJBHMBU5BBHJBHTBdaBDOBFWB6F7BBlDyCBNHBDDDBGBCBBCdBCBBDLBKJBnCHBDtBBDKBcnCBJyCBOoCBIJB3CHB5ChBBPJBHIBCsBBCNBLcBEfBDVBCNBqCGBCBBCrBBECCBCCBHBJJBHFBCBBCkBBCBBCFBIJBHrBBFJB3HYBIQBCoBBEcB2CQQBwBBO6cBnDuDBCEBMjGBtyCiDBOvhBBRVBL68DBGmSB61G5BBn2B4RBIeBCJBFwCBCJBHdBDFBLlCBLJBCGBCUBGSBxN5BBnG6CBGYBDYBtBqCBF4BBIQBhCEBMGBK1mHBqBfBiDyDB+vIDBCGBCBBCiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBDDBh7D8HBEzNBHWBQQBQtBBDWBKzDB9B1HBLmBBDpCBJvDBWlCB7DTBNTBN2CBKYBoE0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDjJBD9VBQEBCOBxiBeBHFB2GGBCQBDGBCBBCEBG9BBiBxDxDBrBBENBDJBFBBhKeBS5BBGxOxOBoBB3GqBBFhGhGBdBCVBJBBhHGBCDBCBBCOBCkGBDPBqBrCBFJBFBByYjCBtC8BBjGDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1BBBvIrBBFjDBNOBDOBCOBCkBBLtFB5BcBOrBBFIBIBBPFB7E4eBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBBPIBoB3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBCmDBmgB-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIBnkzVvHB",!1))),this._Print}static get Upper(){return this.CATEGORIES.get("Lu")}},"_CASE_ORBIT",null),i(a,"_Print",null),i(a,"CATEGORIES",new mae({C:()=>new hae(Bae("AfBgDgBBOrWrWBHHBCBICCVuMuMnBBBzBBBE4B4BBGBcDBHQBXhGhGxBBB8BBBmDNB8BBByBBBQddBCCMEBhBGBsCiFiFJBBDBBXIICCBFBBKBBDBBFHBCDBDGGBaaBEEHDBDBBXIIDGDBCCGDBDBBECBCGBFCCBFBSJBEKKEXXIDDGBBLIEBCCBNBFBBNGBIEEJBBDBBXIIDGGBKKBDDBEEBFBEDBDGGBTTBIBDHHBBBEFFBBBDCCDCBDCBECBNDBGCBEFFBCCBEBCNBWEBOEEYRRBKKEFFBFBDEEDBBFBBLGBXEEYLLGBBKEEFGBDEBEFFBLLELBOEE0BEEHDBRBBbEETCBZKKCBBICBCDBHCCJFBLBBELB7BDBekBBDCCGZZCYYBGGCIILBBFfBpClBlBBCBoBlBlBQOOBjBBnGCCBDBCBB6LFFBIICFFBqBqBFBBiBFFBIICFFBQQ6BFFBkCkCBhBhBBBBbFB3CBBHBB+UCB6CGBXIBZIBVLBOEEDLB-CBBLFBLFBPMMBEB6CGBsBEBnCJBgBNNBCBNDBCCBrBBBGKBtBDBbFBMCB-BBBiCeeBMMBEBLFBPBBvBBBNTBuCnFnFBGB9BCBQCB-BEBsBBBMHBsBEB3QBBHBBnBBBHBBJGCgBBB2BQQPBBHUUBEEKMMBDBbEByBPBDBBcOOBBBjBNBiBOBtEDB7UVBMUB14BBB-LEBuBCCBDBCBB5BGBDNBZIBI4BI-DhBBb6C6CBKB3GZBxC3C3CBoDoDBDBsB-C-C3CIBxBuzcuzcBBB4BIB9KTB5FHB+GTB9BCBLFB5BHBnCHBNFB1DKBfCBvCMMBCBiB4B4BBHBPBBLBBoDXBdJBHBBHBBHIBIII9BDB-DBBLFBl9KLBYDByBjoIBvLBBrDlBBILBGEBbGGCGDrUfBrBFB0BUUFDBGoEoEBCB-FCBHBBHBBHBBECBIIIBLBDBBNbbUDDQBBPhBB8DEBEDBuBCB5COOBBBCuBBvBhEBeCByBOBdDBlBIBfEBsBEBfmBmBBCBPpBB-EBBLFBlBDBlBDBpBHB1BKBNQQIDDMQQIDDBBB1BLB4JIBXJBJXBHrBrBKkCBHBBCtBtBDCBCBBYpCpCBGBKvBBUDDBDBiBCBcEBclBB5BDBVBBzBDDBDBJEEeBBEDBLGBKGBhCfBoBDBNIB3BCBeBBcEBbGBFLBIvCBqC2BB0BMB0BGBvBHBLFBnBCBeHBDvGBgBrBrBEBBDPBHHBKgBBvBHBrBVBblBBdTBYIBvCDBlBIB-BGGBLBaGBLFB2BTTBGBoBIBhDVVBJBTwBwBB8BBICCFQQMFB8BEBLFBFJJBDDBXXIDDGLLBDDBEEBCCBEBCEBIBBICBGKBLCCBCCnBLLCBBCFFLDDBGBDcB9CGGBcBpCHBLlFB3BBBnBhBBmCKBLFBOSB7BFBLFBVbBcBBQDBY4FB9BjDB0CLBJBBCBBJDDfDDBNNBHBLlCBJBBvBBBMaBpCHB0CMBqCGBL1CBJ3CBjBNBLFBKuBuBPJBeCBhBBBXPPBnCBIDDtBCBCDDKHBLFBHDDmBDDHGBLFBtBDBL1HBaGBSqBqBBBBe0CBCOBzBMB8clDBwDGGBJBlGryCBkDMBxhBPBXJB88DEBoS41GB7Bl2BB6RGBgBLLBCByCLLBEBfBBHJBnCJBLIIWEBUvNB7BlGB8CEBaBBarBBsCDB6BGBS-BBGKBIIB3mHoBBhBgDB0D8vIBFIIDkJkJBNBCcBEBBCNBFHBtMjoCBsDEBOCBKGBLBBF-6DB+HCB1NFBYOBSOBvBBBYIB1D7BB3HJBoBBBrCHBxDUBnC5DBVLBVLB4CIBamEB2CoCoCDBBCBBDBBFNNCIIiCFFBJJIddFGGCCBI1K1KBlJlJB-V-VBNBGQQBuiBBgBFBH0GBISSBIIDGGBDB-BgBBCvDBuBCBPBBLDBD-JBgBQB7BEBCvOBrB1GBsBDBC-FBgBXXBGBD-GBIFFDQQmGBBRoBBtCDBLDBDwYBlCrCB+BhGBFccDCCBCCLFFCCCBEBCDBCECEDDCBBCICDCCBFFIKFCLLSEBEGGSzBBDtIBtBDBlDLBQBBQQQmBJBvF3BBeMBtBDBKGBDNBH5EB6eCBSCBOCB7GFBNDBCOBNDB5BHBLFBpBHBfBBNDBDNBKmBB5KHBPBBOCBMCB6BCCBCBRBBND
2272BLGB0EoDoDBjgBBh3pBfB-oEBBv0FBBypHOBvThtCB-QhvBBs6EEBrpIlkzVBxHvw-FB",!1)),Cc:()=>new hae(Bae("AfgDgB",!0)),Cf:()=>new hae(Bae("tFzqBzqBBEBXhGhGyBhMhMBxCxCs5D9-B9-BBDBbEByBEBCJBw03B6H6HBBBimEQQj7IPBhjiBDBwmFHBn0rYffB+CB",!1)),Cn:()=>new hae(Bae("4bBBHDBICCVuMuMnBBBzBBBE4B4BBGBcDBHKBvI9B9BBmDmDBMB8BBByBBBQddBCCMEBjBEBuHJJBDDBXXICCBBBFBBKBBDBBFHBCDBDGGBaaBEEHDBDBBXIIDGDBCCGDBDBBECBCGBFCCBFBSJBEKKEXXIDDGBBLIEBCCBNBFBBNGBIEEJBBDBBXIIDGGBKKBDDBEEBFBEDBDGGBTTBIBDHHBBBEFFBBBDCCDCBDCBECBNDBGCBEFFBCCBEBCNBWEBOEEYRRBKKEFFBFBDEEDBBFBBLGBXEEYLLGBBKEEFGBDEBEFFBLLELBOEE0BEEHDBRBBbEETCBZKKCBBICBCDBHCCJFBLBBELB7BDBekBBDCCGZZCYYBGGCIILBBFfBpClBlBBCBoBlBlBQOOBjBBnGCCBDBCBB6LFFBIICFFBqBqBFBBiBFFBIICFFBQQ6BFFBkCkCBhBhBBBBbFB3CBBHBB+UCB6CGBXIBZIBVLBOEEDLB-CBBLFBLFBbFB6CGBsBEBnCJBgBNNBCBNDBCCBrBBBGKBtBDBbFBMCB-BBBiCeeBMMBEBLFBPBBvBBBNTBuCnFnFBGB9BCBQCB-BEBsBBBMHBsBEB3QBBHBBnBBBHBBJGCgBBB2BQQPBBHUUBEEKmDmDNBBcOOBBBjBNBiBOBtEDB7UVBMUB14BBB-LEBuBCCBDBCBB5BGBDNBZIBI4BI-DhBBb6C6CBKB3GZBxC3C3CBoDoDBDBsB-C-C3CIBxBuzcuzcBBB4BIB9KTB5FHB+GTB9BCBLFB5BHBnCHBNFB1DKBfCBvCMMBCBiB4B4BBHBPBBLBBoDXBdJBHBBHBBHIBIII9BDB-DBBLFBl9KLBYDByBDBvzIBBrDlBBILBGEBbGGCGDrUfBrBFB0BUUFDBGoEoEBCC-FCBHBBHBBHBBECBIIIBIBGBBNbbUDDQBBPhBB8DEBEDBuBCB5COOBBBCuBBvBhEBeCByBOBdDBlBIBfEBsBEBfmBmBBCBPpBB-EBBLFBlBDBlBDBpBHB1BKBNQQIDDMQQIDDBBB1BLB4JIBXJBJXBHrBrBKkCBHBBCtBtBDCBCBBYpCpCBGBKvBBUDDBDBiBCBcEBclBB5BDBVBBzBDDBDBJEEeBBEDBLGBKGBhCfBoBDBNIB3BCBeBBcEBbGBFLBIvCBqC2BB0BMB0BGBvBHBLFBnBCBeHBDvGBgBrBrBEBBDPBHHBKgBBvBHBrBVBblBBdTBYIBvCDBlBIBlCJBCBBaGBLFB2BTTBGBoBIBhDVVBJBTwBwBB8BBICCFQQMFB8BEBLFBFJJBDDBXXIDDGLLBDDBEEBCCBEBCEBIBBICBGKBLCCBCCnBLLCBBCFFLDDBGBDcB9CGGBcBpCHBLlFB3BBBnBhBBmCKBLFBOSB7BFBLFBVbBcBBQDBY4FB9BjDB0CLBJBBCBBJDDfDDBNNBHBLlCBJBBvBBBMaBpCHB0CMBqCGBL1CBJ3CBjBNBLFBKuBuBPJBeCBhBBBXPPBnCBIDDtBCBCDDKHBLFBHDDmBDDHGBLFBtBDBL1HBaGBSqBqBBBBe0CBCOBzBMB8clDBwDGGBJBlGryCBkDMB3iBJB88DEBoS41GB7Bl2BB6RGBgBLLBCByCLLBEBfBBHJBnCJBLIIWEBUvNB7BlGB8CEBaBBarBBsCDB6BGBS-BBGKBIIB3mHoBBhBgDB0D8vIBFIIDkJkJBNBCcBEBBCNBFHBtMjoCBsDEBOCBKGBLBBJ76DB+HCB1NFBYOBSOBvBBBYIB1D7BB3HJBoBBBjGUBnC5DBVLBVLB4CIBamEB2CoCoCDBBCBBDBBFNNCIIiCFFBJJIddFGGCCBI1K1KBlJlJB-V-VBNBGQQBuiBBgBFBH0GBISSBIIDGGBDB-BgBBCvDBuBCBPBBLDBD-JBgBQB7BEBCvOBrB1GBsBDBC-FBgBXXBGBD-GBIFFDQQmGBBRoBBtCDBLDBDwYBlCrCB+BhGBFccDCCBCCLFFCCCBEBCDBCECEDDCBBCICDCCBFFIKFCLLSEBEGGSzBBDtIBtBDBlDLBQBBQQQmBJBvF3BBeMBtBDBKGBDNBH5EB6eCBSCBOCB7GFBNDBCOBNDB5BHBLFBpBHBfBBNDBDNBKmBB5KHBPBBOCBMCB6BCCBCBRBBND
2272BLGB0EoDoDBjgBBh3pBfB-oEBBv0FBBypHOBvThtCB-QhvBBs6EEBrpIm8yVBCdBhD-DBxHvw-BB---BBB---BBB",!1)),Co:()=>new hae(Bae("gg4B-nGh4hc9--BD9--B",!0)),Cs:()=>new hae(Bae("gg2B--B",!0)),L:()=>new hae(Bae("hCZBHZBwBLLFGGBVBCeBCpOBFLBPEBICCiEEBCBBDDBCHHCCBCCCBSBCyCBCqEBJlFBClBBDHHBnBBoCaBFDBuBqBBkBBBCiDBCQQBIIBLLBBBDRRCdBe4CBMZZBfBKBBFGGBUBFKKEYYBXBIKBGXBCGBRpBB7B1BBETTIJBQPBFHBDBBDVBCGBCEEBCBERROBBCCBPBBLJJBEBFBBDVBCGBCBBCBBCBBgBDBCUUBBBRIBCCBCVBCGBCBBCEBETTQBBYMMBGBDBBDVBCGBCBBCEBEffBCCBBBQSSCFBECBCDBEBBCCCBEEBEEBBBELBX1B1BBGBCCBCWBCPBEbbBBBCBBDBBfFFBGBCCBCWBCJBCEBEffBBBCBBQBBSIBCCBCoBBDRRGCBJCBZFBGRBEXBCIBCDDBFB7BvBBCBBNGB7BBBCCCBDBCXBCCCBIBCBBKDDBDBCWWBCBhBgCgCBGBCjBBcEB0DqBBVRRBEBFDBEEEBIIBBBFMBNSSBkBBCGGDqBBCsKBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBmBPBR1CBDFBErTBDQBCZBGqCBHHBIRBOSBPRBPMBCCBQzBBkBFFkC4CBIEBDhBBCGGBkCBLeByBdBDEBMrBBFZB3BWBK0BBzC+C+CBtBBSHB3BdBOBBLrBBbjBBqBCBLjBBDKBGqBBDCBqBDBCFBCBBEGGB+FBhC1IBDFBDlBBDFBDHBCGCBdBD0BBCGBCEEBBBCGBEDBDFBFMBGCBCGB1DOORMBmDFFDJBCEEBDBHGCBCBCKBDDBGEBF1B1BB8zC8zCBjHBHDBEBBNlBBCGGD3BBIRRBVBKGBCGBCGBCGBCGBCGBCGBCGBxC2O2OBrBrBBDBGBBF1CBHCBC5CBCDBGqBBC9CBSfBxBPBhQ-tGBhCs0VBkCtBBDsIBEPBLBBVuBBReBDlCByBIBDmDBDxCBVQBCCBCDBCWBezBBPxBB-BFBECCBMMBaBLWBacBIuBBdRRBDBCJBLEBCoBBYCBCHBVWBEEEBwBBCEEBDDBDBDCCZCBDKBICBNFBDFBDFBKGBCGBCqBBCNBHyDBej9KBNWBFwBBloItLBDpDBnBGBNEBGCCBIBCMBCEBCCCBCCBCCBqDBiBqLBT-BBD1BBpBLB1DEBCmEBlBZBHZBM4CBEFBDFBDFBDCBkBLBCZBCSBCBBCOBDNBjB6DBmMcBEwBBwBfBOTBCHBHlBBLdBDjBBFHBxB9EBTjBBFjBBFnBBJzBBNKBCOBCGBCBBCKBCOBCGBCBBEzBBN2JBKVBLHBZFBCpBBCIBmCFBDCCBqBBCBBEDDBVBLWBKeBiCSBCBBLVBLZBHZBnB3BBHBBhCQQBCBCCBCcBrBcBEcBkBHBCbBc1BBLVBLSBORBvDoCB4ByBBOyBBOjBBnBbBKWB7HpBBHBBRFB5BcBLJJBUBrBRBvBUBcWBN0BB6BBBDOOBrBBhBYBbjBBeDDJiBBENNBuBBPDBWCCkBRBCYBUBBgCGBCCCBCBCOBCJBIuBBnBHBDBBDVBCGBCBBCEBETTNEBfJBCDDClBBCaaCtBtBBzBBTDBVCBfvBBVBBC5F5FBtBBqBDBlBvBBV8B8BBpBBOoCoCBZBmBGB6FrBB1D-BBgBHBDDDBGBCBBCXBQCC-CHBDmBBRCCdLLBmBBIWWMtBBUTTBnCBoGgBBgBIBCkBBSyByBBcBxDGBCBBClBBWaaBEBCBBCfBPYYBqBBlISBQCCBLBChBB9DwCwCB4cBnHjGBtyCgDBQvhBBSFBa68DBGmSB61GdBj3B4RBIeBSuCBSdBTvBBRDBgBUBGSBxNsBB0G-BBhBYBDYBtBqCBGjCjCBLBhCBBCPPBNNB0mHBqBfBiDyDB+vIDBCGBCBBCiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBn7F0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDYBCYBCeBCYBCeBCYBCeBCYBCeBCYBCHB15BeBHFBmI9BBzEsBBLGBRiKiKBcBTrBBlPbBlHdBDwGwGBdBCCBCBBCGBDEBKBBhHGBCDBCBBCOBCkGB8BjCBI1lB1lBBCBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQBlqE-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),LC:()=>new hae(Bae("hCZBHZB7BLLBVBCeBCiGBCDBFvGBDZBhGDBDBBECBCHHCCBCCCBSBCyCBCqEBJlFBClBBKoBB44ClBBCGGDqBBDCBhV1CBDFBjkCKBGqBBDCBhCrBBgCMBChBBmD1IBDFBDlBBDFBDHBCGCBdBD0BBCGBCEEBBBCGBEDBDFBFMBGCBCGBmIFFDJBCEEBDBHGCBCBCFBFDDBCBGEBF1B1BB8zC8zCB6DBDmDBHDBEBBNlBBCGGzoetBBTbBnEtCBCWBEDBCsCBZBBE2Z2ZBpBBGIBIvCBh6TGBNEBqgBZBHZBmlBvCBhDjBBFjBB1DKBCOBCGBCBBCKBCOBCGBCBBk2ByBBOyBB+CVBLVB74C-BBhrV-BBhBYBDYBtpZ0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDYBCYBCeBCYBCeBCYBCeBCYBCeBCYBCHB15BJBCTBHFB2uCjCB",!1)),Ll:()=>new hae(Bae("hDZB7BqBqBBWBCHBC2BCBQCBuBCDECBBBDCCDEEBFFDEEBBBDDDCCCDCCBCCDEECDDBDDBBBHGDCOCBSCBDDCEEC4BCBFBDDDBCCFICBjCBDZBiGCCEEEBBBTccBhBBCBBECBCWCBDBCGDB0B0BBuBBCgBCK0BCDMCBgDCxBoBBo6CqBBDCB5XFBjkCIBC2D2DBqBBgCMBChBBnD0ECBHBCgDCBHBJFBLHBJHBJFBLHBJHBJNBDHBJHBJHBJEBCBBHEEBBBCBBJDBDBBJHBLCBCBBzIEEBEEcKFDBBJDBF2B2Bs1CvBBCEEBGCFCCBCCBEBGiDCBIICFFNlBBCGG0oesBCUaCoEMCBBBC+BCBGBCCCDICFCCDCCBBBCSCGGGCMCFCCDOCbEE2ZqBBGIBIvCBh6TGBNEBqhBZBumBnBBpEjBB8EKBCOBCGBCBBk4ByBB+DVB75CfBhsVfB8BYBnqZZBbGBCRBbZBbDBCCCBFBCKBbZBbZBbZBbZBbZBbZBbZBbZBbbBdYBCFBbYBCFBbYBCFBbYBCFBbYBCFBC15B15BBIBCTBHFB4vChBB",!1)),Lm:()=>new hae(Bae("wVRBFLBPEBICCmEGG-OnHnHlFBBuIBBFgBgBKEEhFoFoF1mBgEgE2R72B72BsDkTkTxOFBvF+BBOjBjBBjBByVOORMBg-CBByHgGgG2OsBsBBDBGiDiDB+C+CBBB34bjnBjnBBEBvIzDzDdBB6DIBxCYYpDDBEBB2OXXqEtDtDWBBoDDBKngVngVuBBBh-BFBCpBBCIB0sBhBhB2K04D04DnrTDB9PCBpBBBnRMBhCBBCPPB9-P9-PBCBCGBCBByhM9BBqGGBud0Q0QsSAB",!1)),Lo:()=>new hae(Bae("qFQQhIFFBCBxGBB7ZaBFDBuBfBCJBkBBBCiDBCZZBLLBBBDRRCdBe4CBMZZBfBWVBrBYBIKBGXBCGBRoBB8B1BBETTIJBROBFHBDBBDVBCGBCEEBCBERROBBCCBPBBLJJBEBFBBDVBCGBCBBCBBCBBgBDBCUUBBBRIBCCBCVBCGBCBBCEBETTQBBYMMBGBDBBDVBCGBCBBCEBEffBCCBBBQSSCFBECBCDBEBBCCCBEEBEEBBBELBX1B1BBGBCCBCWBCPBEbbBBBCBBDBBfFFBGBCCBCWBCJBCEBEffBBBCBBQBBSIBCCBCoBBDRRGCBJCBZFBGRBEXBCIBCDDBFB7BvBBCBBNFB8BBBCCCBDBCXBCCCBIBCBBKDDBDBYDBhBgCgCBGBCjBBcEB0DqBBVRRBEBFDBEEEBIIBBBFMBNyDyDBnKBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBmBPByDrTBDQBCZBGqCBHHBIRBOSBPRBPMBCCBQzBBpBkCkCBhBBC0BBIEBDhBBCGGBkCBLeByBdBDEBMrBBFZB3BWBK0BBxFuBBSHB3BdBOBBLrBBbjBBqBCBLdByDDBCFBCBBE7hB7hBBCB4-C3BBZWBKGBCGBCGBCGBCGBCGBCGBCGBoR2B2BF1CBJCCB4CBFGGB
2272pBBC9CBSfBxBPBhQ-tGBhC0wUBC2jBBkCnBBJrIBFPBLBBjCyByBBkCBqFoDoDEGBCCBCDBCWBezBBPxBB-BFBECCBMMBaBLWBacBIuBBuBEBDIBLEBCoBBYCBCHBVPBCFBEEEBwBBCEEBDDBDBDCCZBBEKBIPPBEBDFBDFBKGBCGByEiBBej9KBNWBFwBBloItLBDpDBkCCCBIBCMBCEBCCCBCCBCCBqDBiBqLBT-BBD1BBpBLB1DEBCmEBqDJBCsBBDeBEFBDFBDFBDCBkBLBCZBCSBCBBCOBDNBjB6DBmMcBEwBBwBfBOTBCHBHlBBLdBDjBBFHBhEtCBjDnBBJzBB9CzBBN2JBKVBLHB5EFBDCCBqBBCBBEDDBVBLWBKeBiCSBCBBLVBLZBHZBnB3BBHBBhCQQBCBCCBCcBrBcBEcBkBHBCbBc1BBLVBLSBORBvDoCB4FjBBnBDBCxJxJBoBBHBBRCBCBB5BcBLJJBUBrBRBvBUBcWBN0BB6BBBDOOBrBBhBYBbjBBeDDJiBBENNBuBBPDBWCCkBRBCYBUBBgCGBCCCBCBCOBCJBIuBBnBHBDBBDVBCGBCBBCEBETTNEBfJBCDDClBBCaaCtBtBBzBBTDBVCBfvBBVBBC5F5FBtBBqBDBlBvBBV8B8BBpBBOoCoCBZBmBGB6FrBB0GHBDDDBGBCBBCXBQCC-CHBDmBBRCCdLLBmBBIWWMtBBUTTBnCBoGgBBgBIBCkBBSyByBBcBxDGBCBBClBBWaaBEBCBBCfBPYYBnBBCBBlISBQCCBLBChBB9DwCwCB4cBnHjGBtyCgDBQvhBBSFBa68DBGmSB61GdBj3B4RBIeBSuCBSdBTvBB0BUBGSB0NnBB2MqCBGwFwFB0mHBqBfBiDyDBuwIiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBxzI2P2PBrBBiBiKiKBcBTrBBlPaBmHdBDwGwGBdBCCBCBBCGBDEBKiHiHBFBCDBCBBCOBCkGB8pBDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQBlqE-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),Lt:()=>new hae(Bae("lOGDnB2sH2sHBGBJHBJHBNQQwBAB",!1)),Lu:()=>new hae(Bae("hCZBmDWBCGBiB2BCDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIJDCMCDQCDDDCCBC4BCIBBCBBDCCBCBCGCiJCCEJJHCCBBBCCCBCCBPBCIBkBDDBBBEWCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBpCDBNDBNDBNEBMDBnIFFECBDCBDEEBDBHGCBCBDDBLBBG+B+B9zCvBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoqZZBbZBbZBbCCBGDBDDBCBCHBbZBbBBCDBDHBCGBcBBCDBCEBCEEBFBcZBbZBbZBbZBbZBbZBfYBiBYBiBYBiBYBiBYBiB2pE2pEBgBB",!1)),M:()=>new hae(Bae("gYvDB0IGBoIsBBCCCBCCBCCpCKBxBUBRmDmDBFBDFBDBBCDBkBffBZB8CKB7BIBKZZBCBCIBCCBCEBsBCB8BIBrBXBCgBB3BCBCRBCGBLBBeCB5BCCBFBDBBDCBKLLBbbDCB5BCCBDBFBBDCBEffBEEMCB5BCCBGBCCBCCBVBBXFBCCB5BCCBFBDBBDCBICBLBBf8B8BBDBECBCDBKpBpBBDB4BCCBFBCCBCDBIBBMBBeCB5BCCBFBCCBCDBIBBMBBQNNBCB4BBBCGBCCBCDBKLLBeeBBBnCFFBEBCCCBGBTBB+BDDBFBNHBjDDDBHBMGBqCBBcECFBByBTBCBBGKBCjBBKlDlDBSBYDBFCBCCBDGBEDBOLBCLLBCBgWCBzdDBdCBeBBfBBhCfBKuBuBBBBC2D2DBjBjB3DLBFLB8GEB6BJBCcBDxBxBBsBBDLBVEBwBQBnB
2272IBNCBfMB5BNBxBTB5ECBCUBFHHDCBnG-BBxWgBB--CCBuEhDhDBeBrRFBqDBB1udDBCJBhBBBxCBBxIEEFYYBDBF0C0CBzBzBBQBbRBOnBnBBGBaMBtBDBwBNBlBkCkCBMBNJJBuBuBBBBzBCCBBBDBBGBBCqBqBBDBGBBtHHBCBBx5TiXiXBOBRPBuejHjH2EEBn0BCBCBBGDBpBCBFmFmFB+R+RBCBiCEB+JBBuCFBnCKByBDB7DCB2BOBqBDDBLLBCBuBKBI+B+BBBBlBNBRBBtBNNBBBxBNBJDBCBB9CLBHDD+ELBWDB4BBBCGBDBBDCBKLLBDDBFBEEBkCIBCDDCDBCEBCPPBzCzCBQBYyCyCBSBsHGBDIBcBBzCQBrDMBmDOBhIOB2HFBCBBDDBCCCBuEuEBFBDGBEddBIBpBGBCDBJKKBJBvBPBnGHBoGHBCHBzCVBCNB7DFBECCBCCBFBCjCjCBDBCBBCEB8KDBKBBCxBxBBFBEEBYmnFmnFHOBpmLRBhuCEB8BGB5gBCCB1BBIDByCMMBslTslTBizEizEBsBBDWB-QEBEFBJHBDGBfDB1ECB89B2BBFxBBJPPXEBCOBxqBGBCQBDGBCBBCEBlDhFhFBFB4L+B+BBCB9PDB-HBB0HDDIBBG7O7OBFBuDGB29lYvHB",!1)),Mc:()=>new hae(Bae("joC4B4BDCBJDBCBBzBBB7BCBHBBDBBLsBsB7BCBjC7B7BBBBJCCB2B2BB7B7BCHHBDDBLLnDBBCBBECBCCBLqBqBBBB+BDB+BBB7BCCBDBDBBCBBKBBdPPB7B7BBBBGCBCCBLrBrBBsCsCBBBHHBTBBrKBBgCsFsFBFFHDDBaaBLLBBBDGBWBBDFBDLLBBB5zBffiEIIBGBCBB7KDBDCBFBBCFBhHBB7BCCKCCBJJBEByExBxBGCCBDBCBB+BffFBBD9B9BDCBCEEBxBxBBGBJBBsFWW35EBB0-dBBD5C5CBzBzBBOBvEBBwBxBxBBFFBDDBBBvDBBDBBZuBuBCuDuDDBBGuHuHBCCBCCBCC0gZCCgEuBuBBBBFBB0DZZB8B8BxBCBKBBO+C+CBBBEBBCrFrFBBBgBBB7BBBCDBDBBDCBKLLB1C1CBBBIDDCDBCBBCmDmDBBBJBBErDrDBBBHCCBCBDuHuHBBBHDBDyDyDBBBJBBCuDuDCBBHoDoDCBBFmImIBBBK4H4HBEBCBBFDDCvEvEBBBJDBF1C1CeBB-BqGqGECCoGPPrDIID2G2GBDBFBBC-K-KBNNxBBBJBBCpvQpvQBBBlxD2BBpDBB0rYBBHFB",!1)),Me:()=>new hae(Bae("okBBB1xF-wB-wBBCBCCBsshBCB",!1)),Mn:()=>new hae(Bae("gYvDB0IEBqIsBBCCCBCCBCCpCKBxBUBRmDmDBFBDFBDBBCDBkBffBZB8CKB7BIBKZZBCBCIBCCBCEBsBCB8BIBrBXBCfB4BCCFHBFEEBFBLBBe7B7BFDBJVVBbbDBB6BFFBFFBDDBBBEffBEEMBB6BFFBDBCBBFVVBXXBEBC7B7BDCCBCBJIIBMMBff+BNNzBEE4BCCBBBGCBCDBIBBMBBe7B7BDHHGBBVBBdBB6BBBFDBJVVBeepCIIBBBC7C7CDGBNHBjDDDBHBMGBqCBBcEC4BNBCEBCBBGKBCjBBKnDnDBCBCFBCBBDBBaBBFCBRDBODDBHHQgWgWBBBzdCBeBBfBBfBBhCBBCGBJDDBJBKuBuBBBBC2D2DBjBjB3DCBFBBKHHBBB8GBBD7B7BCGBCCCDHBHJBDxBxBBMBCeBDLBVDBxBCCBDBCGGpBIBNBBhBDBDBBCCB5BCCBEECCB7BHBDBB5ECBCMBCGBFHHEBBnG-BBxWMBFEEBKB--CCBuEhDhDBeBrRDBsDBB1udFFBIBhBBBxCBBxIEEFaaBGG4EBBbRBOnBnBBGBaKBvBCBxBDDBCBDBBoBkCkCBEBDBBDBBNJJwB0B0BCCBDBBGBBCrBrBBJJvHDDFx5Tx5TiXPBRPBuejHjH2EEBn0BCBCBBGDBpBCBFmFmFB+R+RBCBiCEB+JBBuCFBnCKByBDB8D3B3BBNBqBDDBLLBBByBDBDBBI+B+BBBBlBEBCHB-BNNB1B1BBHBLDBDgDgDBBBDCCBHHD+E+EEHBWBB6BBBEmBmBBFBEEBnCFBOECPBB2CHBDCBCYY1CFBCFFBCCBvHvHBCBHBBCBBcBB2CHBDCCBrDrDCDDBEBCmDmDCDDBCBCEBkIIBCBBhIBBCFFxEDBDBBFhBhBBIBpBFBDDBJKKBEBDCBvBMBCBBnGCCBBBCqGqGBFBCFBCzCzCBUBDGBCBBCBB7DFBECCBCCBFBCpCpCBEEC8K8KBMMB1B1BBDBGCCYmnFmnFHOBpmLLBECBhuCEB8BGB5gBgCgCBCByC5lT5lTBizEizEBsBBDWBhRCBSHBDGBfDB1ECB89B2BBFxBBJPPXEBCOBxqBGBCQBDGBCBBCEBlDhFhFBFB4L+B+BBCB9PDB-HBB0HDDIBBG7O7OBFBuDGB29lYvHB",!1)),N:()=>new hae(Bae("wBJB5DBBGDDBBBitBJBnEJBnGJB9MJB3DJBFFBtDJB3DJB3DJBDFBvDMB0DJBJGBoDJBpDGBISBuDJBhDJB3DJBnCTBtIJBnCJBwWTBybCBwHJBHJBXJBtJJBhEKBmFJBHJB3FJB3CJBnEJBHJB3gBEEBEBHJBnGyBBDEB3W7BBvCVB3TdBqrBqYqYaIBPCB4KDBrEJBfHBCOBhBJBoBOBh7cJB9FJBhKFB7EJBnBJBnGJBXJB3CJB3MJB34UJBuPsBBN4BBSBB2KaBlBDBeJJnEEBrGJBvdHBaGBoBIBsCEBXFBhFBBDPBDtBBhCIB1BBBfCBsCEBpDHBZHBqBGBrKFBxBJBHJB3IeB-EJBrBDBxDGBnEdBhEJB9BJBxEJBITB8HJB3KJB3DJB3LJBnDJBHTBtCLBlNSB+CJB3UJB3CcBkHJBnCJB3BJBnLJBnDUBshBuDBimPJBnpCJB3CJBnEJBCGBvQJBnIWB+KCB6nXJBnuBTBNTBtDYB2iBxBBhqCJBnNJB3PJB4HJBtWIBhEJB4Y6BBCCBCDBtCsBBCOBjeMBk3CJB",!1)),Nd:()=>new hae(Bae("wBJnxBJnEJnGJ9MJ3DJ3DJ3DJ3DJ3DJ3DJ3DJ3DJ3DJhDJ3DJnCJ3IJnCJn6BJnBJtJJhEJnFJHJ3FJ3CJnEJHJnuiBJnVJnBJnGJXJ3CJ3MJ34UJnsBJnkCJHJ9YJhEJ9BJxEJ3IJ3KJ3DJ3LJnDJHTtCJnNJnDJ3UJ3CJ3HJnCJ3BJnLJ3uQJnpCJ3CJnEJ3QJ37XJ12CxBhqCJnNJ3PJ4HJ2aJ30EJ",!0)),Nl:()=>new hae(Bae("u3FCBwzCiBBDDB-zDaaBHBPCBs1dJBxyW0BBtOJJnEEBrhIuDBm8SCB",!1)),No:()=>new hae(Bae("yFBBGDDBBB2pCFB5LFB5DCBmEGB6GGBSIByNJB2hBTB0jBJBhP20B20BEFBHJBnGPBqB3W3WB6BBvCVB3TdBqrB1kB1kBBCBrEJBfHBCOBhBJBoBOBxrdFBymWsBBiCDBSBB2KaBlBDB1pBHBaGBoBIBsCEBXFBhFBBDPBDtBBhCIB1BBBfCBsCEBpDHBZHBqBGBrKFBhLeB-EJBrBDBxDGBnETB8LTBmqBBBvNIBobSB0aUBn8SGB-YWBqhZTBNTBtDYBvqFIBid6BBCCBCDBtCsBBCOBjeMB",!1)),P:()=>new hae(Bae("hBCBCFBCDBLBBEBBbCBCccCkBkBGEELBBEEE-VJJzOFBqBBB0BCCDDDtBBBVBBCBBOCCBBBrCDBnDsBsBBMBqHCB3BOBgBmImIBLLtE5D5D6DnMnMNwLwL7CLLBpFpFBNBCmBmBBCBoCrCrCBDBFBBwDFBsFlTlTBHB4EuTuTtBBBvCCBoCBB+ECBCCBmBKB6JBB5GBBhEGBCFBhFBBLGBdCB9DDB8BEB-BBBhCHBM9Z9ZBWBJTBCMBCLBfBBPBB6TDBeBB+hBNBwCBBgBJB0MVBgCDBhBBB8XDBCBBxDwEwEBtBBCfBDLBkNCBFJBDLBRNNjD7C7CjgdBBuICBkDLL0DFB9LDB3CBBpBCBCyByBBwBwBiDMBRBB9DDB-DBBRBB6HzqUzqUBxGxGBI
2272BXiBBCNBCFFCBB2ECBCFBCDBLBBEBBbCBCccCCCBFB7MCB9UxBxB-MoXoXoGgBgBxIIBnBxDxDBFBjCGB6CDByO-J-JjBlElEBDBtBDB+FGBuDBBCDB-DDBxBBBwCDBFOOCCB5CFBsDrJrJBCCBzDzDBDBLBBCpDpD7HWBqDCBdMBtCjEjEBBB9HpIpIBBB8E9C9CBGB0CCBCEB+CJB4GgDgDBDBrBBBmUBBrCMBwFxjBxjBBDB97CBB8zOBBmEiCiCBDBJpRpRBBBoJDBoK9lT9lTovHEB07C-a-aBAB",!1)),Pc:()=>new hae(Bae("-Cg-Hg-HBUU-u3BBBZCBwHAB",!1)),Pd:()=>new hae(Bae("tB9qB9qB0BiyDiyDmgBqgCqgCBEBiwDDDgBBBFdd-NUUwDxszBxszBBmBmBLqFqFhzD-J-J",!1)),Pe:()=>new hae(Bae("pB0B0BgB+1D+1DC-6B-6BqtC4B4BQ7T7TCff-hBMCxChBhBCGC1MUChCCCiBmhBmhBCECtBGCtNICEGCDBB-ozB6G6GeOCESSCCCrF0B0BgBGD",!1)),Pf:()=>new hae(Bae("7F+6H+6HEddpuDCCFDDQEE",!1)),Pi:()=>new hae(Bae("rFt7Ht7HDBBDaapuDCCFDDQEE",!1)),Po:()=>new hae(Bae("hBCBCCBDECBLLBEEBcclCGGPBBI-V-VJzOzOBEBqB3B3BDDDtBBBVBBCBBOCCBBBrCDBnDsBsBBMBqHCB3BOBgBmImIBLLtE5D5D6DnMnMNwLwL7CLLBpFpFBNBCxDxDrCEBFBBwDFBsFlTlTBHBmY9D9DBBBoCBB+ECBCCBmBFBCDB6JBB5GBBhEGBCFBhFBBLGBdCB9DDB8BEB-BBBhCHBMjajaBJJBGBJIBDDBDCBEKBCCCBIB7kDDBCBBxDwEwEBFFBBBDDDBHBCBBCDDBLLBDBCJBDDBCCCBLBDCBtNCB6B+F+FjgdBBuICBkDLL0DFB9LDB3CBBpBCBCyByBBwBwBiDMBRBB9DDB-DBBRBB6HlxUlxUBFBDXXVBBDDBECBCDBICBHCCB2E2EBBBCCBDECBLLBEEBcclBDDB7M7MBBB9UxBxB-MoXoXoGgBgBxIIBnBxDxDBFBjCGB6CDB0ZlElEBDBtBDB+FGBuDBBCDB-DDBxBBBwCDBFOOCCB5CFBsDrJrJBCCBzDzDBDBLBBCpDpD7HWBqDCBdMBtCjEjEBBB9HpIpIBBB8E9C9CBGB0CCBCEB+CJB4GgDgDBDBrBBBmUBBrCMBwFxjBxjBBDB97CBB8zOBBmEiCiCBDBJpRpRBBBoJDBoK9lT9lTovHEB07C-a-aBAB",!1)),Ps:()=>new hae(Bae("oBzBzBgB-1D-1DC-6B-6B-rCEEnB4B4BQ7T7TCff-hBMCxChBhBCGC1MUChCCCiBmhBmhBCECaTTCECtNICEGCDipzBipzB4GeeCMCESSCCCrFzBzBgBEEDAB",!1)),S:()=>new hae(Bae("kBHHRCBgBCCcCCkBEBCBBDCCBCBDEEfgBgBrODBNNBGGBCCCBPB2DPPBxDxDsErIrIBBB3DCBDDDBvGvGLUUB4H4HIBBpEqLqLBHHB2H2H-DjEjEBGBlEwGwGqBmGmGiGCBQCCBBBDFBVECmEHBCFBCBBGDBmGBBxXJB0WuLuLlL+E+EBgBBiLJBKIBhiBCCBBBMCBOCBOCBOBBmCOOoBCBOCBUhBB-BBBCDBCBBLCCBBBGFBCECFMMBFFBDBGDBC7B7BBFFB2LBFcBD+HBXKByCtCBXnTBtBwBBDeBLyMBX+BBFfBD1LBDpEBmHFBmLBBvBZBC4CBN1GBbPBFOOBNNWBBHBB8CBB0HBBFJBhBlBBKRRBdBMdBJQQBeBLmBBQ-JBhuG-BBx0V2BB6RWBKBBoDBB+EDBLDB+RCBiHPPB+9T+9TpEgBBuLPBhCBB3BHBtBDBjDCCBBBD7E7EHRRBBBgBCCcCCiEGBCGBOBB6JIB6BQBDCBCMBEwBwBBrBB7zBBBwSmWmWBiKiKBGBnjC2kC2kCBbBr6SDBG3qU3qUk7DvHBLCBEzNBHWBQQBgDzDB9B1HBLmBBD7BBGCBXBBIdBF8BBWhCBE7F7FB1CBrbaagBaagBaagBaagBaa9B-PB4BDBzBHBCNBCBBp2BwNwNttCEE+DiOiOBvIvIBqBBFjDBNOBDOBCOBCkBBYgFB5BcBOrBBFIBIBBPFB7E4eBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBBPIBoB3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBC7CBLAB",!1)),Sc:()=>new hae(Bae("kB+D+DBCBqnB8D8DzPBBzPBBI2H2HoImSmS8sClmClmCBgBB37hBkuVkuVtD7E7E8GBBEBB3-HDB-4wBxtCxtC",!1)),Sk:()=>new hae(Bae("+CCCoCHHFEEqQDBNNBGGBCCCBPB2DPPBjoBjoB15FCCBBBMCBOCBOCBOBB9kEBBkzdWBKBBoDBBxePPBniUniUBPB8bCCjF4g9B4g9BBDB",!1)),Sm:()=>new hae(Bae("rBRRBBB+BCCuBFFmBgBgB-XwQwQBBB8xGOOoBCBOCBsEoBoBBDBHlClCBDBGBBFGDIgBgBBDDCgBgBBqIBhBBB7CffBXBpBFB2OKK3BHBwDxKxKBDBDeBLPBhIiEBX+BBFfBDhIBxBUBDFB9+zB5Z5ZCCBlFRRBBB+BCCkEHHBCBitDBBhrwBx+Bx+BagBgBagBgBagBgBagBgBat5Ft5FB-uC-uCBHB",!1)),So:()=>new hae(Bae("mFDDFCCyerIrIBgEgEBvGvGLUUB4H4HkQ2L2LjEFBClElEwGqBqBoMCBQCCBBBDFBVECmEHBCFBCBBGDBmGBBxXJB0WzWzW+EhBBiLJBKIBksBBBCDBCBBLCCBHHBEBCECFMMBPPCBBC7B7BBKKBDBDDBCBBCBBCGBCeBDBBCCCBdBtIHBFTBDGBDwCBCdBanBBHnCBXKByCtCBX2FBCIBC1BBJuDBC3HBtBrBBhC-HBhQvBBWBBHmBBDpEBmHFBmLBBvBZBC4CBN1GBbPBFOOBNNWBBHBBxKBBFJBhBlBBKRRBdBMdBJQQBeBLmBBQ-JBhuG-BBx0V2BBibDBLBBC+R+RBBBqqUPBuLPBhCBB3BHBuBCBlPEEFBBOBB6JIB6BQBDCBCMBEwBwBBrBB7zBBBwSpgBpgBBGBnjC2kC2kCBGBFQBr6SDBG3qU3qUk7DvHBLCBEzNBHWBQPBhDzDB9B1HBLmBBD7BBGCBXBBIdBF8BBWhCBE7F7FB1CBqlB-PB4BDBzBHBCNBCBBp2B96C96CiEyWyWBqBBFjDBNOBDOBCOBCkBBYgFB5BcBOrBBFIBIBBPFB7E6HBG4WBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBB-B3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBC7CBLAB",!1)),Z:()=>new hae(Bae("gBgEgEgvFgsCgsCBJBeBBGwBwBh9DAB",!1)),Zl:()=>new hae(Bae("ohIA",!0)),Zp:()=>new hae(Bae("phIA",!0)),Zs:()=>new hae(Bae("gBgEgEgvFgsCgsCBJBlBwBwBh9DAB",!1)),ASCII_Hex_Digit:()=>new hae(Bae("wBJIFbF",!0)),Alphabetic:()=>new hae(Bae("hCZBHZBwBLLFGGBVBCeBCpOBFLBPEBICC3CeeBQBCBBDDBCHHCCBCCCBSBCyCBCqEBJlFBClBBDHHBnBBoBNBCCCBCCBCCJaBFDBeKBG3BBCGBPlDBCHBFHBFCBLCBDRRBuBBOkDBZgBBKBBFGGBWBDSBUYBIKBGXBCGBIJJBoBBLLBEGBHrCBCPBCCBFOBOSBCHBDBBDVBCGBCEEBCBEHBDBBDBBCJJFBBCEBNBBLFFBBBCFBFBBDVBCGBCBBCBBCBBFEBFBBDBBF
2272IIBCBCSSBEBMCBCIBCCBCVBCGBCBBCEBEIBCCBCBBEQQBCBWDBFCBCHBDBBDVBCGBCBBCEBEHBDBBDBBKBBFBBCEBORRBCCBEBECBCDBEBBCCCBEEBEEBBBELBFEBECBCCBEHHpBMBCCBCWBCPBEHBCCBCCBJBBCCBCBBDDBdDBCHBCCBCWBCJBCEBEHBCCBCCBJBBGCBCDBOCBNMBCCBCoBBDHBCCBCCBCGGBCBIEBXFBCCBCRBEXBCIBCDDBFBJFBCCCBGBTBBO5BBGGBH0B0BBECBDBCXBCCCBRBCCBDEBCHHPDBhBgCgCBGBCjBBFSBFPBCjBBkC2BBCDDBDBR-BBLDBDlBBCGGDqBBCsKBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBmBPBR1CBDFBErTBDQBCZBGqCBEKBITBMUBNTBNMBCCBCBBNzBBDSBPFFkC4CBIqBBGlCBLeBCLBFIBYdBDEBMrBBFZB3BbBF+BBDTBzBYYBMMBBByBzBBCOBCHB0BpBBDDBLrBBCKBP2BBXCBLjBBDKBGqBBDCBqBDBCFBCBBEGGB+FBUhBBM1IBDFBDlBBDFBDHBCGCBdBD0BBCGBCEEBBBCGBEDBDFBFMBGCBCGB1DOORMBmDFFDJBCEEBDBHGCBCBCKBDDBGEBFSSBnBBuZzBB34BkHBHDBEBBNlBBCGGD3BBIRRBVBKGBCGBCGBCGBCGBCGBCGBCGBCfBwB2O2OBBBaIBIEBDEBF1CBHCBC5CBCDBGqBBC9CBSfBxBPBhQ-tGBhCs0VBkCtBBDsIBEPBLBBVuBBGHBEwDBoBIBDmDBDxCBVUBCgBBZzBBNjCBCtBtBBEBECCBBBLgBBGiBBOcBEyBBCLBQRRBOBLEBC2BBKNBTWBEkCBCCCZCBDPBDDBMFBDFBDFBKGBCGBCqBBCNBH6DBWj9KBNWBFwBBloItLBDpDBnBGBNEBGLBCMBCEBCCCBCCBCCBqDBiBqLBT-BBD1BBpBLB1DEBCmEBlBZBHZBM4CBEFBDFBDFBDCBkBLBCZBCSBCBBCOBDNBjB6DBmC0BBsIcBEwBBwBfBOdBGqBBGdBDjBBFHBCEBrB9EBTjBBFjBBFnBBJzBBNKBCOBCGBCBBCKBCOBCGBCBBEzBBN2JBKVBLHBZFBCpBBCIBmCFBDCCBqBBCBBEDDBVBLWBKeBiCSBCBBLVBLZBHZBnB3BBHBBhCDBCBBGHBCCBCcBrBcBEcBkBHBCbBc1BBLVBLSBORBvDoCB4ByBBOyBBOnBBjBbBEGGBVB7HpBBCBBEBBRFBzBCBEcBLJJBUBrBRBvBUBcWBKlCBsBEBL4BBKOOBXBYyBBSDBJiBBEKKB+BBCDBKBBLCCkBRBChBBDHHBCB-BGBCCCBCBCOBCJBI4BBYDBCHBDBBDVBCGBCBBCEBEHBDBBDBBEHHGGBdJBCDDClBBCJBCDDCDBCBBECCtBhCBCCBCDBVCBfhCBDBBC5F5FB0BBDGBaFBjB+BBCEE8B1BBDoCoCBZBDNBWGB6F4BBoD-BBgBHBDDDBGBCBBCdBCBBDBBDDB+CHBDtBBDFBCCCBccBxBBDJBSnCBGTTBnCBoDHB5CgBBgBIBCsBBCGBCyByBBcBDVBCNBqCGBCBBCrBBECCBCCBBBCDDBZZBEBCBBCkBBCBBCDBCYYBqBBlIWBKQBCoBBECBwDwCwCB4cBnDuDBSjGBtyCgDBQvhBBSFBa68DBGmSB61GuBBy2B4RBIeBSuCBSdBTvBBRDBgBUBGSBxNsBB0G-BBhBYBDYBtBqCBF4BBIQBhCBBCNNBFBK1mHBqBfBiDyDB+vIDBCGBCBBCiJBQeeBBBDPPBCBJrMBloCqDBGMBEIBIJBFi7Fi7FBzCBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDYBCYBCeBCYBCeBCYBCeBCYBCeBCYBCHB15BeBHFB2GGBCQBDGBCBBCEBG9BBiBxDxDBrBBLGBRiKiKBcBTrBBlPbBlHdBDwGwGBdBCVBJBBhHGBCDBCBBCOBCkGB8BjCBEEE1lBDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1TZBHZBHZB3zD-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),Dash:()=>new hae(Bae("tB9qB9qB0BiyDiyDmgBqgCqgCBEB+BoBoBQnMnMlgDDDgBBBFdd-NUUwDxszBxszBBmBmBLqFqFhzD-J-J",!1)),Emoji:()=>new hae(Bae("jBHHGJBwDFFu8HNN5GXX7CFBQBBwLBBNnFnFaKBFCBoGoHoHBLLK7B7BBCBCEBKGDBDDFDDCBBDIEBJJBBBGCCGLBMBBDCCBCCTDDBTTBEBCCCBEEBGGDBBFBBMBBGBBDGGBECBVVBGGBEBCDBDFFDDDBEBCDDCCCHEEHLLBQQDFFCFFBBBCMMBxBxBBBBKeP1LBBwOCBUBB0BFF7mBNN6SCCrrvDrGrGhFBBNBBPDDBIBsCZBCBBYVVDIBWBBvFhBBDvDBDBBCCBDyCBDCBCmIBC+BBMFBCXBIBBDHBNDDBCBDFFBOOBDDJBBKGGBBBNCBJCBDCCFHHEHHB0CBxBlCBGHBDDBEJBECCBEEDJBkHLBF8I8IBtBBCJBC4FBxDMBEKBE4BBCFFBOBDLBFJB",!1)),Emoji_Component:()=>new hae(Bae("jBHHGJB0+H2G2Gsp3B3+8B3+8BBYB8PEBxtBDBtzhY-CB",!1)),Emoji_Modifier:()=>new hae(Bae("7-8DE",!0)),Emoji_Modifier_Base:()=>new hae(Bae("9wJ8G8GRDB4jzD9B9BBBBDDDBBB2DBBDKBWSBEFFBBBCCBICCZqGqGBFFWFFBvFvFBBBEEB0CRRBBBKMMgSDDJHBHKKBIBDCB5B+B+BBCCBCCSCBCMBmHCBrBIB",!1)),Emoji_Presentation:()=>new hae(Bae("64IBBuGDBEDDqQBBWBBzBLBsBUUOJJBSSBGGBJJGWWIBBCFFDIIFBBdkBkBCFFBBBC+B+BBBBZPP8aBB0BFFvlxDrGrG-FDDBIBsCZBCZZVDDBDBCCBWBBvFgBBNIBClCBCVBNqBBFEBNQBEEEBlCBCCCB5FBD+BBODBCXBTbbBOO3C0CBxBlCBHEEBBBDDBEDBMBBIIBkHLBF8I8IBtBBCJBC4FBxDMBEKBE4BBCFFBOBDLBFJB",!1)),Extended_Pictographic:()=>new hae(Bae("pFFFu8HNN5GXX7CFBQBBwLBBNnFnFaKBFCBoGoHoHBLLK7B7BBCBCEBKGDBDDFDDCBBDIEBJJBBBGCCGLBMBBDCCBCCTDDBTTBEBCCCBEEBGGDBBFBBMBBGBBDGGBECBVVBGGBEBCDBDFFDDDBEBCDDCCCHEEHLLBQQDFFCFFBBBCMMBxBxBBBBKeP1LBBwOCBUBB0BFF7mBNN6SCCrrvDoBoBBCBlDLBQBBQPPBmBmBBIBxDBBNBBPDDBIBU3BBcOBLVVDIBCDBKWBH7FBDvDBDBBCCBDyCBDCBCDBG9HBC+BBMFBCXBIBBDHBNDDBCBDFFBOOBDDJBBKGGBBBNCBJCBDCCFHHEHHB0CBxBlCBGHBDQBECCBEBDMB7GlBBNDB5BHBLFBpBHBfBBNDBDNBKmBBNuBBCJBC4FB5CHBPxEBhI9fB",!1)),Hex_Digit:()=>new hae(Bae("wBJIFbFq1-BJIFbF",!0)),Lowercase:()=>new hae(Bae("hDZBwBLLFlBlBBWBCHBC2BCBQCBuBCDECBBBDCCDEEBFFDEEBBBDDDCCCDCCBCCDEECDDBDDBBBHGDCOCBSCBDDCEEC4BCBFBDDDBCCFICBjCBDiBBIBBfEBhDsBsBCEEDDBTccBhBBCBBECBCWCBDBCGDB0B0BBuBBCgBCK0BCDMCBgDCxBoBBo6CqBBCDB5XFBjkCIBC2D2DB+FBiC0ECBHBCgDCBH
2272BJFBLHBJHBJFBLHBJHBJNBDHBJHBJHBJEBCBBHEEBBBCBBJDBDBBJHBLCBCBB6DOORMBuDEEBEEcKFDBBJDBFiBiBBOBFsasaBYBn6BvBBCEEBGCFCCBCCBGBEiDCBIICFFNlBBCGG0oesBCUaCBBBmEMCBBBC8BCBIBCCCDICFCCDCCBBBCSCGGGCMCFCCDOCWDBCCCBBB2ZqBBCNBHvCBh6TGBNEBqhBZBumBnBBpEjBB8EKBCOBCGBCBBkODDBBBCpBBCIBmoByBB+DVB75CfBhsVfB8BYBnqZZBbGBCRBbZBbDBCCCBFBCKBbZBbZBbZBbZBbZBbZBbZBbZBbbBdYBCFBbYBCFBbYBCFBbYBCFBbYBCFBC15B15BBIBCTBHFBmI9BB1lChBB",!1)),Math:()=>new hae(Bae("rBRRBBBgBeeCuBuBFmBmBgB5W5WBBBDbbBDDBBBwQCBuwGccBBBMEEOPPBCBWEBMEBiCMBFEEBFFBDBTFFDJBCDDBEBHEEBDDBCCBBBCFBENBClClCBWBCFBCBBFBBFfBCHHBPPBqIBJDBVBB7CffBZBCZZMGB+NBBNJBFFBFBBDBBEEBPCCDFBMHBGBB6BCCeDBKCBxK-BBhI-PBxBUBDFB9+zB4Z4ZBEBCjFjFRCBeCCeCCkEHHBCBitDBBhrwBwoBwoBBzCBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDjJBDxBBhwFDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1BBB-uCIB",!1)),Quotation_Mark:()=>new hae(Bae("iBFFkEQQ96HHBaBBowDqOqOBCBOCBixzBDB+FFF7CBB",!1)),Terminal_Punctuation:()=>new hae(Bae("hBLLCMMBEE-ZJJiQ6B6BpCPPCCB1FsBsBBJBCsHsHB3B3BBEBCHBgBmImIB1nB1nBBtFtFFFB4JBB2YHBmY9D9DBBBoCBB+ECBEoBoBBCBDBB7JBBjLDBjFBBLBBCCBeCB8FEB-BBBldYYBKKBBBwlDCBzJOOFLLCBBEBBtNBB8ndBBuICBkHEB-LBB3CBBgD4E4EBBB0ECBgERRB6H6HnxUDDB6B6BBBBCDBqFLLCMMBEEiCDD7hBxBxBnkBoGoG3JBB5EFBlCFB6CDB5dEBtBDB+FGBxDDBgECBiEBBHRRB5C5CBDBtDrJrJB2D2DBBBNBBnLDBEOBqDBB6HCBmQCC8HBB4CBBFBB-MCBuBmUmUBrCrCBspBspBBDB6vRBBmEiCiCBBBLqRqRBoJoJBnwTnwTovHDB",!1)),Uppercase:()=>new hae(Bae("hCZBmDWBCGBiB2BCDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIJDCMCDQCDDDCCBC4BCIBBCBBDCCBCBCGCiJCCEJJHCCBBBCCCBCCBPBCIBkBDDBBBEWCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBpCDBNDBNDBNEBMDBnIFFECBDCBDEEBDBHGCBCBDDBLBBGbbBOBUzZzZBYBx5BvBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoqZZBbZBbZBbCCBGDBDDBCBCHBbZBbBBCDBDHBCGBcBBCDBCEBCEEBFBcZBbZBbZBbZBbZBbZBfYBiBYBiBYBiBYBiBYBiB2pE2pEBgBBvgCZBHZBHZB",!1)),White_Space:()=>new hae(Bae("JEBTlDlDbgvFgvFgsCKBeBBGwBwBh9DAB",!1))})),i(a,"SCRIPTS",new mae({Adlam:()=>new hae(Bae("go6DrCFJFB",!0)),Ahom:()=>new hae(Bae("g4lCaDOFW",!0)),Anatolian_Hieroglyphs:()=>new hae(Bae("ggxCmS",!0)),Arabic:()=>new hae(Bae("gwBEBCFBCNBCCBCfBCJBMZBCrDBChBBxCvBBxHhBBGqCBCcBxy8BtPBDvEBhBPBxDEBCmEBk7DeBkCFBJIBiBFBh43BDBCaBCBBCDDCJBCDBCCCHFFCECBBBCBBCDDCICBCCDDBCGBCDBCDBCCCBIBCQBGCBCEBCQB1BBB",!1)),Armenian:()=>new hae(Bae("xpBlBDxBDCks9BE",!0)),Avestan:()=>new hae(Bae("g4iC1BEG",!0)),Balinese:()=>new hae(Bae("g4GsCCxB",!0)),Bamum:()=>new hae(Bae("g1pB3CpowB4R",!0)),Bassa_Vah:()=>new hae(Bae("w26CdDF",!0)),Batak:()=>new hae(Bae("g+GzBJD",!0)),Bengali:()=>new hae(Bae("gsCDBCHBDBBDVBCGBCEEBCBDIBDBBDDBJFFBCCBDBDYB",!1)),Beria_Erfe:()=>new hae(Bae("g17CYDY",!0)),Bhaiksuki:()=>new hae(Bae("ggnCICsBCNLc",!0)),Bopomofo:()=>new hae(Bae("qXB6wLqBxDf",!0)),Brahmi:()=>new hae(Bae("ggkCtCFjBKA",!0)),Braille:()=>new hae(Bae("ggK-H",!0)),Buginese:()=>new hae(Bae("gwGbDB",!0)),Buhid:()=>new hae(Bae("g6FT",!0)),Canadian_Aboriginal:()=>new hae(Bae("ggF-TxRlC7tgCP",!0)),Carian:()=>new hae(Bae("g1gCwB",!0)),Caucasian_Albanian:()=>new hae(Bae("wphCzBMA",!0)),Chakma:()=>new hae(Bae("gokC0BCR",!0)),Cham:()=>new hae(Bae("gwqB2BKNDJDD",!0)),Cherokee:()=>new hae(Bae("g9E1CDFz7lBvC",!0)),Chorasmian:()=>new hae(Bae("w9jCb",!0)),Common:()=>new hae(Bae("AgCBbFBbuBBCOBCEBYgBgBiOmBBGEBDTB1DKKHCC+THHPEEhB9E9ElQiEiEB6mB6mB2MDBjJwvBwvBBBBoCBBsGBBCumBumBOIIBCBCFBCCBDmYmYBKBD2CBCKBEKBCOBShBB-BlBBCCBDFBCaBCQBqBCBF5UBXKBW-cBhIzTBDpEBhQ9CBzMUBCCCBXBQHBFDB8CBBE7C7CB0E0EBOBhBlBBKxBxBB+BBgBwCBwB5C5CBmFBhuG-BBhoWhBBnDCBmFJB1HhFhFsMPPBzuUzuUBxGxGBIBXiBBCSBCDB0ECCBeBbFBbKBLuBuBBhChCBFBCGBLEBjICBFsBBEIBxCMB0BsBBlHaBltuBDB96D8HBEzNBHWBQQBgDzDB9B1HBLmBBD9BBEQBJBBIdBF8BB2GTBNTBN2CBKYBoE0CBCmCBCBBDDDBDDBCBCLBCCCBFBCgCBCDBDHBCGBCbBCDBCEBCEEBFBCzKBDjJBDxBByjFjCBtC8BBjWrBBFjDBNOBDOBCOBCkBBLtFB5BZBCBBOrBBFIBIBBPFB7E4eBEQBEMBE5GBHLBFQQBKBF3BBJJBHnBBJdBDLBFBBPIBoB3KBJNBDMBEKBE4BBCFFBOBDLBFJBIyEBCmDBnghYffB+CB",!1)),Coptic:()=>new hae(Bae("ifNxkKzDGG",!0)),Cuneiform:()=>new hae(Bae("ggoC5cnDuDCEMjG",!0)),Cypriot:()=>new hae(Bae("ggiCFBDCCBqBBCBBEDD",!1)),Cypro_Minoan:()=>new hae(Bae("w8rCiD",!0)),Cyrillic:()=>new hae(Bae("ggBkEBDoFBx6FKBhFtCtCojEfBhie-CBv8VBBhw4B9BBiBAB",!1)),Deseret:()=>new hae(Bae("gghCvC",!0)),Devanagari:()=>new hae(Bae("goCwCFODZh7nBfhwcJ",!0)),Dives_Akuru:()=>new hae(Bae("gomCGBDDDBGBCBBCdBCBBDLBKJB",!1)),Dogra:()=>new hae(Bae("ggmC7B",!0)),Duployan:()=>new hae(Bae("ggvDqDGMEIIJDD",!0)),Egyptian_Hieroglyphs:()=>new hae(Bae("ggsC1iBL68D",!0)),Elbasan:()=>new hae(Bae("gohCnB",!0)),Elymaic:()=>new hae(Bae("g-jCW",!0)),Ethiopic:()=>new hae(Bae("gwEoCBCDBDGBCCCBCBDoBBCDBDgBBCDBDGBCCCBCBDOBC4BBCDBDiCBDfBEZBnvGWBKGBCGBCGBCGBCGBCGBCGBCGBjpfFBDFBDFBKGBCGBylvCGBCD
2272BCBBCOB",!1)),Garay:()=>new hae(Bae("gqjClBEcJB",!0)),Georgian:()=>new hae(Bae("glElBBCGGDqBBCDBx8CqBBDCBhiElBBCGG",!1)),Glagolitic:()=>new hae(Bae("ggL-Ch9sDGCQDGCBCE",!0)),Gothic:()=>new hae(Bae("w5gCa",!0)),Grantha:()=>new hae(Bae("g4kCDBCHBDBBDVBCGBCBBCEBDIBDBBDCBDHHGGBDGBEEB",!1)),Greek:()=>new hae(Bae("wbDBCCBDDBCFFCCCBBBCCCBSBC+BBPPBnpGEBzBEBFEB1ChKhKBUBDFBDlBBDFBDHBCGCBdBD0BBCOBCNBDFBCSBDCBCIBoJ-xiB-xiB7uVuCBSgj0Bgj0BBkCB",!1)),Gujarati:()=>new hae(Bae("h0CCBCIBCCBCVBCGBCBBCEBDJBCCBCCBDQQBCBDLBIGB",!1)),Gunjala_Gondi:()=>new hae(Bae("grnCFCBCkBCBCFIJ",!0)),Gurmukhi:()=>new hae(Bae("hwCCBCFBFBBDVBCGBCBBCBBCBBDCCBDBFBBDCBEIIBCBCIIBPB",!1)),Gurung_Khema:()=>new hae(Bae("go4C5B",!0)),Han:()=>new hae(Bae("g0LZBC4CBN1GBwBCCaIBPDBle-tGBhC-vUBhoWtLBDpDBpodBBNGBqgkB-2pBBhB9oEBDt0FBDwpHBQtTBjtC9QBjvBq6EBGppIB",!1)),Hangul:()=>new hae(Bae("goE-HvxHBiI9CyDeiCei3dckUj9KNWFwBl9JeEFDFDFDC",!0)),Hanifi_Rohingya:()=>new hae(Bae("gojCnBJJ",!0)),Hanunoo:()=>new hae(Bae("g5FU",!0)),Hatran:()=>new hae(Bae("gniCSCBGE",!0)),Hebrew:()=>new hae(Bae("xsB2BBJaBFFBpp9BZBCEBCCCBCCBCCBIB",!1)),Hiragana:()=>new hae(Bae("hiM1CBHCBi7-C+IBTeeBBBulQAB",!1)),Imperial_Aramaic:()=>new hae(Bae("giiCVCI",!0)),Inherited:()=>new hae(Bae("gYvDB2IBBlOKBbhXhXBCB8qEtBBDLBlPCBCMBCGBFHHEBBnG-BBtQBBjGgBB65DDBsDBBmrzBPBRNBwejHjH7iEl+uBl+uBBsBBDWBhRCBSHBDGBfDBz6rYvHB",!1)),Inscriptional_Pahlavi:()=>new hae(Bae("g7iCSGH",!0)),Inscriptional_Parthian:()=>new hae(Bae("g6iCVDH",!0)),Javanese:()=>new hae(Bae("gsqBtCDJFB",!0)),Kaithi:()=>new hae(Bae("gkkCiCLA",!0)),Kannada:()=>new hae(Bae("gkDMCCCWCJCEDICCCDIBGCCDDJCC",!0)),Katakana:()=>new hae(Bae("hlM5CBDCBxHPBxGuBBC3CBvgzBJBCsBBzisBDBCGBCBBCgJgJBBBzBPPBCB",!1)),Kawi:()=>new hae(Bae("g4nCQCoBEc",!0)),Kayah_Li:()=>new hae(Bae("goqBtBCA",!0)),Kharoshthi:()=>new hae(Bae("gwiCDCBGHCCCcDCFJII",!0)),Khitan_Small_Script:()=>new hae(Bae("k-7C84G84GB0OBqBAB",!1)),Khmer:()=>new hae(Bae("g8F9CDJHJnPf",!0)),Khojki:()=>new hae(Bae("gwkCRCuB",!0)),Khudawadi:()=>new hae(Bae("w1kC6BGJ",!0)),Kirat_Rai:()=>new hae(Bae("gq7C5B",!0)),Lao:()=>new hae(Bae("h0DBBCCCBDBCXBCCCBVBDEBCCCBFBCJBDDB",!1)),Latin:()=>new hae(Bae("hCZBHZBwBQQGWBCeBCgOBoBEB8wGlBBHwBBGDBGMBClCBiC-HByLOORMBuEBBHccSoBB42CfBj1elDBExCBVOBxZqBBCIBCDB38TGB7gBZBHZBmhCFBCpBBCIBm61BeBHFB",!1)),Lepcha:()=>new hae(Bae("ggH3BEOEC",!0)),Limbu:()=>new hae(Bae("goGeBCLBFLBFEEBKB",!1)),Linear_A:()=>new hae(Bae("gwhC2JKVLH",!0)),Linear_B:()=>new hae(Bae("gggCLCZCSCBCODNjB6D",!0)),Lisu:()=>new hae(Bae("wmpBvBx1eA",!0)),Lycian:()=>new hae(Bae("g0gCc",!0)),Lydian:()=>new hae(Bae("gpiCZGA",!0)),Mahajani:()=>new hae(Bae("wqkCmB",!0)),Makasar:()=>new hae(Bae("g3nCY",!0)),Malayalam:()=>new hae(Bae("goDMCCCyBCCCFFPDZ",!0)),Mandaic:()=>new hae(Bae("giCbDA",!0)),Manichaean:()=>new hae(Bae("g2iCmBFL",!0)),Marchen:()=>new hae(Bae("wjnCfDVCN",!0)),Masaram_Gondi:()=>new hae(Bae("gonCGBCBBCrBBECCBCCBHBJJB",!1)),Medefaidrin:()=>new hae(Bae("gy7C6C",!0)),Meetei_Mayek:()=>new hae(Bae("g3qBWqGtBDJ",!0)),Mende_Kikakui:()=>new hae(Bae("gg6DkGDP",!0)),Meroitic_Cursive:()=>new hae(Bae("gtiCXFTDtB",!0)),Meroitic_Hieroglyphs:()=>new hae(Bae("gsiCf",!0)),Miao:()=>new hae(Bae("g47CqCF4BIQ",!0)),Modi:()=>new hae(Bae("gwlCkCMJ",!0)),Mongolian:()=>new hae(Bae("ggGBBDCCBSBH4CBIqBB2t-BMB",!1)),Mro:()=>new hae(Bae("gy6CeCJFB",!0)),Multani:()=>new hae(Bae("g0kCGBCCCBCBCOBCKB",!1)),Myanmar:()=>
2272new hae(Bae("ggE-EhqmBeiDfxibT",!0)),Nabataean:()=>new hae(Bae("gkiCeJI",!0)),Nag_Mundari:()=>new hae(Bae("wm5DpB",!0)),Nandinagari:()=>new hae(Bae("gtmCHDtBDK",!0)),New_Tai_Lue:()=>new hae(Bae("gsGrBFZHKEB",!0)),Newa:()=>new hae(Bae("gglC7CCE",!0)),Nko:()=>new hae(Bae("g+B6BDC",!0)),Nushu:()=>new hae(Bae("h-7CvsQvsQBqMB",!1)),Nyiakeng_Puachue_Hmong:()=>new hae(Bae("go4DsBENDJFB",!0)),Ogham:()=>new hae(Bae("g0Fc",!0)),Ol_Chiki:()=>new hae(Bae("wiHvB",!0)),Ol_Onal:()=>new hae(Bae("wu5DqBFA",!0)),Old_Hungarian:()=>new hae(Bae("gkjCyBOyBIF",!0)),Old_Italic:()=>new hae(Bae("g4gCjBKC",!0)),Old_North_Arabian:()=>new hae(Bae("g0iCf",!0)),Old_Permic:()=>new hae(Bae("w6gCqB",!0)),Old_Persian:()=>new hae(Bae("g9gCjBFN",!0)),Old_Sogdian:()=>new hae(Bae("g4jCnB",!0)),Old_South_Arabian:()=>new hae(Bae("gziCf",!0)),Old_Turkic:()=>new hae(Bae("ggjCoC",!0)),Old_Uyghur:()=>new hae(Bae("w7jCZ",!0)),Oriya:()=>new hae(Bae("h4CCCHDBDVCGCBCEDIDBDCICFBCEDR",!0)),Osage:()=>new hae(Bae("wlhCjBFjB",!0)),Osmanya:()=>new hae(Bae("gkhCdDJ",!0)),Pahawh_Hmong:()=>new hae(Bae("g46ClCLJCGCUGS",!0)),Palmyrene:()=>new hae(Bae("gjiCf",!0)),Pau_Cin_Hau:()=>new hae(Bae("g2mC4B",!0)),Phags_Pa:()=>new hae(Bae("giqB3B",!0)),Phoenician:()=>new hae(Bae("goiCbEA",!0)),Psalter_Pahlavi:()=>new hae(Bae("g8iCRIDNG",!0)),Rejang:()=>new hae(Bae("wpqBjBMA",!0)),Runic:()=>new hae(Bae("g1FqCEK",!0)),Samaritan:()=>new hae(Bae("ggCtBDO",!0)),Saurashtra:()=>new hae(Bae("gkqBlCJL",!0)),Sharada:()=>new hae(Bae("gskC-ChsCH",!0)),Shavian:()=>new hae(Bae("wihCvB",!0)),Siddham:()=>new hae(Bae("gslC1BDlB",!0)),Sidetic:()=>new hae(Bae("gqiCZ",!0)),SignWriting:()=>new hae(Bae("gg2DrUQECO",!0)),Sinhala:()=>new hae(Bae("hsDCBCRBEXBCIBCDDBFBEFFBEBCCCBGBHJBDCBt-gCTB",!1)),Sogdian:()=>new hae(Bae("w5jCpB",!0)),Sora_Sompeng:()=>new hae(Bae("wmkCYIJ",!0)),Soyombo:()=>new hae(Bae("wymCyC",!0)),Sundanese:()=>new hae(Bae("g8G-BhIH",!0)),Sunuwar:()=>new hae(Bae("g+mChBPJ",!0)),Syloti_Nagri:()=>new hae(Bae("ggqBsB",!0)),Syriac:()=>new hae(Bae("g4BNC7BDCxIK",!0)),Tagalog:()=>new hae(Bae("g4FVKA",!0)),Tagbanwa:()=>new hae(Bae("g7FMCCCB",!0)),Tai_Le:()=>new hae(Bae("wqGdDE",!0)),Tai_Tham:()=>new hae(Bae("gxG+BCcDKHJHN",!0)),Tai_Viet:()=>new hae(Bae("g0qBiCZE",!0)),Tai_Yo:()=>new hae(Bae("g25DeCVJB",!0)),Takri:()=>new hae(Bae("g0lC5BHJ",!0)),Tamil:()=>new hae(Bae("i8CBBCFBECBCDBEBBCCCBEEBEEBBBELBFEBECBCDBDHHPUBm+kCxBBOAB",!1)),Tangsa:()=>new hae(Bae("wz6CuCCJ",!0)),Tangut:()=>new hae(Bae("g-7CgBgBB+3GBhQeBiDyDB",!1)),Telugu:()=>new hae(Bae("ggDMCCCWCPDICCCDIBCCCBDDDJII",!0)),Thaana:()=>new hae(Bae("g8BxB",!0)),Thai:()=>new hae(Bae("hwD5BGb",!0)),Tibetan:()=>new hae(Bae("g4DnCCjBFmBCjBCOCGFB",!0)),Tifinagh:()=>new hae(Bae("wpL3BIBPA",!0)),Tirhuta:()=>new hae(Bae("gklCnCJJ",!0)),Todhri:()=>new hae(Bae("guhCzB",!0)),Tolong_Siki:()=>new hae(Bae("wtnCrBFJ",!0)),Toto:()=>new hae(Bae("w04De",!0)),Tulu_Tigalari:()=>new hae(Bae("g8kCJBCDDClBBCJBCDDCDBCJBCBBJBB",!1)),Ugaritic:()=>new hae(Bae("g8gCdCA",!0)),Unknown:()=>new hae(Bae("4bBBHDBICCVuMuMnBBBzBBBE4B4BBGBcDBHKBvI9B9BBmDmDBMB8BBByBBBQddBCCMEBjBEBuHJJBDDBXXICCBBBFBBKBBDBBFHBCDBDGGBaaBEEHDBDBBXIIDGDBCCGDBDBBECBCGBFCCBFBSJBEKKEXXIDDGBBLIEBCCBNBFBBNGBIEEJBBDBBXIIDGGBKKBDDBEEBFBEDBDGGBTTBIBDHHBBBEFFBBBDCCDCBDCBECBNDBGCBEFFBCCBEBCNBWEBOEEYRRBKKEFFBFBDEEDBBFBBLGBXEEYLLGBBKEEFGBDEBEFFBLLELBOEE0BEEHDBRBBbEETCBZKKCBBICBCDBHCCJFBLBBELB7BDBekBBDCCGZZCYYBGGCIILBBFfBpClBlBBCBoBlBlBQOOBjBBnGCCBDBCBB6LFFBIICFFBqBqBFBBiBFFBIICFFBQQ6BFFBkCkCBhBhBBBBbFB3CBBHBB+UCB6CGBXIBZIBVLBOEEDLB-CBBLFBLFBbFB6CGBsBEBnCJBgBNNBCBNDBCCBrBBBGKBtBDBbFBMCB-BBBiCeeBMMBEBLFBPBBvBBBNTBuCnFnFBGB9BCBQCB-BEBsBBBMHBsBEB3QBBHBBnBBBHBBJGCgBBB2BQQPBBHUUBEEKmDmDNBBcOOBBBjBNBiBOBtEDB7UVBMUB14BBB-LEBuBCCBDBCBB5BGBDNBZIBI4BI-DhBBb6C6CBKB3GZBxC3C3CBoDoDBDBsB-C-C3CIBxBuzcuzcBBB4BIB9KTB5FHB+GTB9BCBLFB5BHBnCHBNFB1DKBfCBvCMMBCBiB4B4BBHBPBBLBBoDXBdJBHBBHBBHIBIII9BDB-DBBLFBl9KLBYDByBjoIBvLBBrDlBBILBGEBbGGCGDrUfBrBFB0BUUFDBGoEoEBCC-FCBHBBHBBHBBECBIIIBIBGBBNbbUDDQBBPhBB8DEBEDBuBCB5COOBBBCuBBvBhEBeCByBOBdDBlBIBfEBsBEBfmBmBBCBPpBB-EBBLFBlBDBlBDBpBHB1BKBNQQIDDMQQIDDBBB1BLB4JIBXJBJXBHrBrBKkCBHBBCtBtBDCBCBBYpCpCBGBKvBBUDDBDBiBCBcEBclBB5BDBVBBzBDDBDBJEEeBBEDBLGBKGBhCfBoBDBNIB3BCBeBBcEBbGBFLBIvCBqC2BB0BMB0BGBvBHBLFBnBCBeHBDvGBgBrBrBEBBDPBHHBKgBBvBHBrBVBblBBdTBYIBvCDBlBIBlCJBCBBaGBLFB2BTTBGBoBIBhDVVBJBTwBwB
2272B8BBICCFQQMFB8BEBLFBFJJBDDBXXIDDGLLBDDBEEBCCBEBCEBIBBICBGKBLCCBCCnBLLCBBCFFLDDBGBDcB9CGGBcBpCHBLlFB3BBBnBhBBmCKBLFBOSB7BFBLFBVbBcBBQDBY4FB9BjDB0CLBJBBCBBJDDfDDBNNBHBLlCBJBBvBBBMaBpCHB0CMBqCGBL1CBJ3CBjBNBLFBKuBuBPJBeCBhBBBXPPBnCBIDDtBCBCDDKHBLFBHDDmBDDHGBLFBtBDBL1HBaGBSqBqBBBBe0CBCOBzBMB8clDBwDGGBJBlGryCBkDMB3iBJB88DEBoS41GB7Bl2BB6RGBgBLLBCByCLLBEBfBBHJBnCJBLIIWEBUvNB7BlGB8CEBaBBarBBsCDB6BGBS-BBGKBIIB3mHoBBhBgDB0D8vIBFIIDkJkJBNBCcBEBBCNBFHBtMjoCBsDEBOCBKGBLBBJ76DB+HCB1NFBYOBSOBvBBBYIB1D7BB3HJBoBBBjGUBnC5DBVLBVLB4CIBamEB2CoCoCDBBCBBDBBFNNCIIiCFFBJJIddFGGCCBI1K1KBlJlJB-V-VBNBGQQBuiBBgBFBH0GBISSBIIDGGBDB-BgBBCvDBuBCBPBBLDBD-JBgBQB7BEBCvOBrB1GBsBDBC-FBgBXXBGBD-GBIFFDQQmGBBRoBBtCDBLDBDwYBlCrCB+BhGBFccDCCBCCLFFCCCBEBCDBCECEDDCBBCICDCCBFFIKFCLLSEBEGGSzBBDtIBtBDBlDLBQBBQQQmBJBvF3BBeMBtBDBKGBDNBH5EB6eCBSCBOCB7GFBNDBCOBNDB5BHBLFBpBHBfBBNDBDNBKmBB5KHBPBBOCBMCB6BCCBCBRBBNDBLGB0EoDoDBjgBBh3pBfB-oEBBv0FBBypHOBvThtCB-QhvBBs6EEBrpIm8yVBCdBhD-DBxHvw-FB",!1)),Vai:()=>new hae(Bae("gopBrJ",!0)),Vithkuqi:()=>new hae(Bae("wrhCKCOCGCBCKCOCGCB",!0)),Wancho:()=>new hae(Bae("g24D5BGA",!0)),Warang_Citi:()=>new hae(Bae("glmCyCNA",!0)),Yezidi:()=>new hae(Bae("g0jCpBCCDB",!0)),Yi:()=>new hae(Bae("ggoBskBE2B",!0)),Zanabazar_Square:()=>new hae(Bae("gwmCnC",!0))})),i(a,"FOLD_CATEGORIES",new mae({L:()=>new hae(Bae("laA",!0)),LC:()=>new hae(Bae("laA",!0)),Ll:()=>new hae(Bae("hCZBmDWBCGBiBuBCEECDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIBBCBBCBBCOCDQCDBBCCCBBBC4BCIBBCBBDCCBCBCGC3HrBrBCEEJHHCCBCCCBCCBPBCIBkBJJCUCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBZHBJHBJHBJEBMEBMDBNEBMEBqJEEBHHxC9zC9zCBuBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoyehBB",!1)),Lt:()=>new hae(Bae("kOCCBCCBCClBCCtsHHBJHBJHBMQQwBAB",!1)),Lu:()=>new hae(Bae("hDZB7BqBqBBWBCHBCuBCEECDOCDsBCDECBBBDCCDEEGDDECBDDDCCCDFFDEECDDECCGBBCBBCBBCOCBSCDBBCEECkBCEQCJDDBCCFICBEBCBBCCCBEEBCCBCBCEBDCCBDDIDDCBBEFBGLLBnFnFsBCCEEEBBBvBDBCdBCBBECBCWCBDBCGD1BvBBCgBCK0BCDMCBgDCyBlBBq6CqBBDCB5XFBjkCIBCvHvHERRzD0ECGGGC8CCBHBJFBLHBJHBJFBMGCJHBJNBzBBBNSSBPPBEEpL2B2Bs1CvBBCEEBGCHDDLiDCJCCFNNBkBBCGG0oesBCUaCoEMCE8BCLCCDICFFFCBBDSCMOCFCCDOCb9a9advCBi8UZBumBnBBpEjBB8EKBCOBCGBCBBk4ByBB+DVB75CfBhsVfB8BYBvyehBB",!1)),M:()=>new hae(Bae("5cgBgBlgHAB",!1)),Mn:()=>new hae(Bae("5cgBgBlgHAB",!1)),Emoji:()=>new hae(Bae("8mJA",!0)),Extended_Pictographic:()=>new hae(Bae("8mJA",!0)),Lowercase:()=>new hae(Bae("hCZBmDWBCGBiBuBCEECDOCDuBCBECEBBCCCBCCBBBDDBCBBCCBEBBCBBCECBCCDCCBCCBBBCCCBEEIBBCBBCBBCOCDQCDBBCCCBBBC4BCIBBCBBDCCBCBCGCiJCCEJJHCCBBBCCCBCCBPBCIBkBJJCUCGDDCBBDyBBxBgBCK2BCBMCD+CCDlBBq6ClBBCGGzW1CB0kCHHBpBBDCBhK0ECKgDCKHBJFBLHBJHBJFBMGCJHBZHBJHBJHBJEBMEBMDBNEBMEBqJEEBHHuBPBUzZzZBYBx5BvBBxBCCBBBDGCBCBCDDJCBCgDCJCCFuqeuqeCqBCUaCoEMCE8BCLECBICFCCDCCEUCBDBCEBCOCBCBCCCBQCZs5Vs5VBYBmmBnBBpEjBB9EKBCOBCGBCBBr3ByBB+EVB75CfBhsVfBhCYBoyehBB",!1)),Math:()=>new hae(Bae("ycGDCHHFMMDDDCHHFAB",!1)),Uppercase:()=>new hae(Bae("hDZB7BqBqBBWBCHBCuBCEECDOCDsBCDECBBBDCCDEEGDDECBDDDCCCDFFDEECDDECCGBBCBBCBBCOCBSCDBBCEECkBCEQCJDDBCCFICBEBCBBCCCBEEBCCBCBCEBDCCBDDIDDCBBEFBGLLBnFnFsBCCEEEBBBvBDBCdBCBBECBCWCBDBCGD1BvBBCgBCK0BCDMCBgDCyBlBBq6CqBBDCB5XFBjkCIBCvHvHERRzD0ECGGGC8CCBHBJFBLHBJHBJFBMGCJHBJNBzBBBNSSBPPBEEpLiBiBBOBFsasaBYBn6BvBBCEEBGCHDDLiDCJCCFNNBkBBCGG0oesBCUaCoEMCE8BCLCCDICFFFCBBDSCMOCFCCDOCb9a9advCBi8UZBumBnBBpEjBB8EKBCOBCGBCBBk4ByBB+DVB75CfBhsVfB8BYBvyehBB",!1))})),i(a,"FOLD_SCRIPT",new mae({Common:()=>new hae(Bae("8cgBgB",!1)),Greek:()=>new hae(Bae("1FwUwU",!1)),Inherited:()=>new hae(Bae("5cgBgBlgHAB",!1))})),a),vae=(i(s=class{static is32(e,t){let n=0,r=e.length;for(;n<r;){const i=n+Math.floor((r-n)/2),a=e.getLo(i),s=e.getHi(i);if(a<=t&&t<=s)return(t-a)%e.getStride(i)===0;t<a?r=i:n=i+1}return!1}static is(e,t){if(t<=s.MAX_LATIN1){for(let n=0;n<e.length;n++){if(t>e.getHi(n))continue;const r=e.getLo(n);return!(t<r)&&(t-r)%e.getStride(n)===0}return!1}return e.length>0&&t>=e.getLo(0)&&s.is32(e,t)}static isUpper(e){if(e<=s.MAX_LATIN1){const t=String.fromCodePoint(e);return t.toUpperCase()===t&&t.toLowerCase()!==t}return s.is(gae.Upper,e)}static isPrint(e){return e<=s.MAX_LATIN1?e>=32&&e<s.MAX_ASCII||e>=161&&173!==e:s.is(gae.Print,e)}static simpleFold(e){if(gae.CASE_ORBIT.has(e))return gae.CASE_ORBIT.get(e);const t=dae.toLowerCase(e);return t!==e?t:dae.toUpperCase(e)}static equalsIgnoreCase(e,t){if(e===t)return!0;
vendor: 10,790 bytes, line 2272
2272if(e<0||t<0)return!1;if(e<=s.MAX_ASCII&&t<=s.MAX_ASCII)return 65<=e&&e<=90&&(e|=32),65<=t&&t<=90&&(t|=32),e===t;for(let n=s.simpleFold(e);n!==e;n=s.simpleFold(n))if(n===t)return!0;return!1}},"MAX_RUNE",1114111),i(s,"MAX_ASCII",127),i(s,"MAX_LATIN1",255),i(s,"MAX_BMP",65535),i(s,"MIN_FOLD",65),i(s,"MAX_FOLD",125251),i(s,"MIN_HIGH_SURROGATE",55296),i(s,"MAX_HIGH_SURROGATE",56319),i(s,"MIN_LOW_SURROGATE",56320),i(s,"MAX_LOW_SURROGATE",57343),i(s,"MIN_SUPPLEMENTARY_CODE_POINT",65536),s);const yae=new Uint8Array(256);for(let i=0;i<256;i++)yae[i]=97<=i&&i<=122||65<=i&&i<=90||48<=i&&i<=57||95===i?1:0;let Cae=null,_ae=null;var bae=(i(o=class{static emptyInts(){return[]}static isByteArray(e){return Array.isArray(e)||e instanceof Uint8Array}static isalnum(e){return dae.CODES.get("0")<=e&&e<=dae.CODES.get("9")||dae.CODES.get("a")<=e&&e<=dae.CODES.get("z")||dae.CODES.get("A")<=e&&e<=dae.CODES.get("Z")}static unhex(e){return dae.CODES.get("0")<=e&&e<=dae.CODES.get("9")?e-dae.CODES.get("0"):dae.CODES.get("a")<=e&&e<=dae.CODES.get("f")?e-dae.CODES.get("a")+10:dae.CODES.get("A")<=e&&e<=dae.CODES.get("F")?e-dae.CODES.get("A")+10:-1}static escapeRune(e){let t="";if(vae.isPrint(e))o.METACHARACTERS.indexOf(String.fromCodePoint(e))>=0&&(t+="\\"),t+=String.fromCodePoint(e);else switch(e){case dae.CODES.get('"'):t+='\\"';break;case dae.CODES.get("\\"):t+="\\\\";break;case dae.CODES.get("\t"):t+="\\t";break;case dae.CODES.get("\n"):t+="\\n";break;case dae.CODES.get("\r"):t+="\\r";break;case dae.CODES.get("\b"):t+="\\b";break;case dae.CODES.get("\f"):t+="\\f";break;default:{let n=e.toString(16);e<256?(t+="\\x",1===n.length&&(t+="0"),t+=n):t+=`\\x{${n}}`;break}}return t}static stringToRunes(e){const t=String(e),n=[];let r=0;for(;r<t.length;){const e=t.codePointAt(r);n.push(e),r+=e>vae.MAX_BMP?2:1}return n}static runeToString(e){return String.fromCodePoint(e)}static isWordRune(e){return e<256&&1===yae[e]}static emptyOpContext(e,t){let n=0;return e<0&&(n|=o.EMPTY_BEGIN_TEXT|o.EMPTY_BEGIN_LINE),10===e&&(n|=o.EMPTY_BEGIN_LINE),t<0&&(n|=o.EMPTY_END_TEXT|o.EMPTY_END_LINE),10===t&&(n|=o.EMPTY_END_LINE),o.isWordRune(e)!==o.isWordRune(t)?n|=o.EMPTY_WORD_BOUNDARY:n|=o.EMPTY_NO_WORD_BOUNDARY,n}static quoteMeta(e){return e.split("").map(e=>o.METACHARACTERS.indexOf(e)>=0?`\\${e}`:e).join("")}static charCount(e){return e>vae.MAX_BMP?2:1}static toArray(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}static stringToUtf8ByteArray(e){if(globalThis.TextEncoder)return Cae||(Cae=new TextEncoder),Cae.encode(e);{let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):(64512&i)===vae.MIN_HIGH_SURROGATE&&r+1<e.length&&(64512&e.charCodeAt(r+1))===vae.MIN_LOW_SURROGATE?(i=vae.MIN_SUPPLEMENTARY_CODE_POINT+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}}static utf8ByteArrayToString(e){if(globalThis.TextDecoder){_ae||(_ae=new TextDecoder("utf-8"));const t=e instanceof Uint8Array?e:new Uint8Array(e);return _ae.decode(t)}{let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){let a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-vae.MIN_SUPPLEMENTARY_CODE_POINT;t[r++]=String.fromCharCode(vae.MIN_HIGH_SURROGATE+(a>>10)),t[r++]=String.fromCharCode(vae.MIN_LOW_SURROGATE+(1023&a))}else{let a=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}}return t.join("")}}},"METACHARACTERS","\\.+*?()|[]{}^$"),i(o,"EMPTY_BEGIN_LINE",1),i(o,"EMPTY_END_LINE",2),i(o,"EMPTY_BEGIN_TEXT",4),i(o,"EMPTY_END_TEXT",8),i(o,"EMPTY_WORD_BOUNDARY",16),i(o,"EMPTY_NO_WORD_BOUNDARY",32),i(o,"EMPTY_ALL",-1),o);const wae=(e=[],t=0)=>{const n=Object.create(null);for(let r=0;r<e.length;r++){const i=e[r],a=t+r;n[i]=a,n[a]=i}return Object.freeze(n)};var Dae=(i(l=class{getEncoding(){throw Error("not implemented")}asCharSequence(){throw Error("not implemented")}asBytes(){throw Error("not implemented")}length(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===l.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===l.Encoding.UTF_16}},"Encoding",wae(["UTF_16","UTF_8"])),l),Eae=class extends Dae{constructor(e=null){super(),this.bytes=e}getEncoding(){return Dae.Encoding.UTF_8}asCharSequence(){return bae.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}},kae=class extends Dae{constructor(e=null){super(),this.charSequence=e}getEncoding(){return Dae.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return bae.stringToUtf8ByteArray(this.charSequence.toString())}length(){return this.charSequence.length}},Sae=class{static utf16(e){return new kae(e)}static utf8(e){return bae.isByteArray(e)?new Eae(e):new Eae(bae.stringToUtf8ByteArray(e))}},xae=class{static EOF(){return-8}constructor(){this.end=0}canCheckPrefix(){return!0}endPos(){return this.end}hasString(){return!1}hasAnyString(){return!1}prefixLength(){return 0}},Tae=class extends xae{constructor(e,t=0,n=e.length){super(),this.bytes=e,this.start=t,this.end=n}hasString(e,t){const n=e.bytes;if(0===n.length)return!0;const r=this.indexOf(this.bytes,n,this.start+t);return-1!==r&&r<=this.end-n.length}hasAnyString(e,t){return!!e.ac8&&e.ac8.searchUTF8(this.bytes,this.start+t,this.end)}step(e){if((e+=this.start)>=this.end)return xae.EOF();const t=255&this.bytes[e];if(t<128)return t<<3|1;if(t>=194&&t<=223&&e+1<this.end){const n=255&this.bytes[e+1];return 128!=(192&n)?t<<3|1:((31&t)<<6|63&n)<<3|2}if(t>=224&&t<=239&&e+2<this.end){const n=255&this.bytes[e+1];if(128!=(192&n))return t<<3|1;const r=255&this.bytes[e+2];return 128!=(192&r)?t<<3|1:((15&t)<<12|(63&n)<<6|63&r)<<3|3}if(t>=240&&t<=244&&e+3<this.end){const n=255&this.bytes[e+1];if(128!=(192&n))return t<<3|1;const r=255&this.bytes[e+2];if(128!=(192&r))return t<<3|1;const i=255&this.bytes[e+3];return 128!=(192&i)?t<<3|1:((7&t)<<18|(63&n)<<12|(63&r)<<6|63&i)<<3|4}return t<<3|1}index(e,t){t+=this.start;const n=this.indexOf(this.bytes,e.prefixUTF8,t);return n<0?n:n-t}context(e){let t=-1;if((e+=this.start)>this.start&&e<=this.end){let n=e-1;if(t=this.bytes[n--],t>=128){let r=e-4;for(r<this.start&&(r=this.start);n>=r&&128==(192&this.bytes[n]);)n--;n<this.start&&(n=this.start),t=this.step(n-this.start)>>3}}const n=e<this.end?this.step(e-this.start)>>3:-1;return bae.emptyOpContext(t,n)}indexOf(e,t,n=0){let r=t.length;if(0===r)return n<=this.end?n:-1;const i=t[0];let a=this.end-r;const s="function"==typeof e.indexOf;let o=n;for(;o<=a;){if(s){if(o=e.indexOf(i,o),-1===o||o>a)return-1}else{for(;o<=a&&e[o]!==i;)o++;if(o>a)return-1}let n=!0;for(let i=1;i<r;i++)if(e[o+i]!==t[i]){n=!1;break}if(n)return o;o++}return-1}prefixLength(e){return e.prefixUTF8.length}},Oae=class extends xae{constructor(e,t=0,n=e.length){super(),this.charSequence=e,this.start=t,this.end=n}hasString(e,t){const n=this.charSequence.indexOf(e.str,this.start+t);return-1!==n&&n<=this.end-e.str.length}hasAnyString(e,t){return!!e.ac16&&e.ac16.searchUTF16(this.charSequence,this.start+t,this.end)}step(e){if((e+=this.start)>=this.end)return xae.EOF();const t=this.charSequence.charCodeAt(e);if(t<vae.MIN_HIGH_SURROGATE||t>vae.MAX_HIGH_SURROGATE||e+1>=this.end)return t<<3|1;const n=this.charSequence.charCodeAt(e+1);return n>=vae.MIN_LOW_SURROGATE&&n<=vae.MAX_LOW_SURROGATE?1024*(t-vae.MIN_HIGH_SURROGATE)+(n-vae.MIN_LOW_SURROGATE)+vae.MIN_SUPPLEMENTARY_CODE_POINT<<3|2:t<<3|1}index(e,t){t+=this.start;const n=this.charSequence.indexOf(e.prefix,t);return n<0||n>this.end-e.prefix.length?-1:n-t}context(e){const t=(e+=this.start)>this.start&&e<=this.end?this.charSequence.charCodeAt(e-1):-1,n=e<this.end?this.charSequence.charCodeAt(e):-1;return bae.emptyOpContext(t,n)}prefixLength(e){return e.prefix.length}},Aae=class{static fromUTF8(e,t=0,n=e.length){return new Tae(e,t,n)}static fromUTF16(e,t=0,n=e.length){return new Oae(e,t,n)}},Iae=class extends Error{constructor(e){super(e),this.name="RE2JSException"}},Pae=class extends Iae{constructor(e,t=null){let n=`error parsing regexp: ${e}`;t&&(n+=`: \`${t}\``),super(n),this.name="RE2JSSyntaxException",this.message=n,this.error=e,this.input=t}getDescription(){return this.error}getPattern(){return this.input}},Nae=class extends Iae{constructor(e){super(e),this.name="RE2JSCompileException"}},Rae=class extends Iae{constructor(e){super(e),this.name="RE2JSGroupException"}},Mae=class extends Iae{constructor(e){super(e),this.name="RE2JSFlagsException"}},Fae=class extends Iae{constructor(e){super(e),this.name="RE2JSInternalException"}},Lae=(u=class{static quoteReplacement(e,t=!1){return t?e.indexOf("\\")<0&&e.indexOf("$")<0?e:e.split("").map(e=>{const t=e.codePointAt(0);return t===dae.CODES.get("\\")||t===dae.CODES.get("$")?`\\${e}`:e}).join(""):e.indexOf("$")<0?e:e.split("").map(e=>e.codePointAt(0)===dae.CODES.get("$")?"$$":e).join("")}constructor(e,t){if(null===e)throw new Error("pattern is null");this.patternInput=e;const n=this.patternInput.re2();this.patternGroupCount=n.numberOfCapturingGroups(),this.groups=[],this.namedGroups=n.namedGroups,this.numberOfInstructions=n.numberOfInstructions(),t instanceof Dae?this.resetMatcherInput(t):bae.isByteArray(t)?this.resetMatcherInput(Sae.utf8(t)):this.resetMatcherInput(Sae.utf16(t))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(e){if(null===e)throw new Error("input is null");return e instanceof Dae||(e=bae.isByteArray(e)?Sae.utf8(e):Sae.utf16(e)),this.matcherInput=e,this.reset(),this}start(e=0){if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new Rae(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e]}end(e=0){if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new Rae(`group '${e}' not found`);e=t}return this.loadGroup(e),this.groups[2*e+1]}programSize(){return this.numberOfInstructions}group(e=0){if("string"==typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new Rae(`group '${e}' not found`);e=t}const t=this.start(e),n=this.end(e);return t<0&&n<0?null:this.substring(t,n)}getNamedGroups(){if(!this.hasMatch)throw new Rae("perhaps no match attempted");const e=Object.create(null);for(const t of Object.keys(this.namedGroups))e[t]=this.group(t);return e}groupCount(){return this.patternGroupCount}loadGroup(e){if(e<0||e>this.patternGroupCount)throw new Rae(`Group index out of bounds: ${e}`);if(!this.hasMatch)throw new Rae("perhaps no match attempted");if(0===e||this.hasGroups)return;
2272const t=this.matcherInputLength,n=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],t,this.anchorFlag,1+this.patternGroupCount);if(!n[0])throw new Rae("inconsistency in matching group data");this.groups=n[1],this.hasGroups=!0}matches(){return this.genMatch(0,eae.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,eae.ANCHOR_START)}find(e=null){if(null!==e){if(e<0||e>this.matcherInputLength)throw new Rae(`start index out of bounds: ${e}`);return this.reset(),this.genMatch(e,0)}if(e=0,this.hasMatch&&(e=this.groups[1],this.groups[0]===this.groups[1])){const t=(this.matcherInput.isUTF16Encoding()?Aae.fromUTF16(this.matcherInput.asCharSequence(),0,this.matcherInputLength):Aae.fromUTF8(this.matcherInput.asBytes(),0,this.matcherInputLength)).step(e);t<0?e++:e+=7&t}return this.genMatch(e,eae.UNANCHORED)}genMatch(e,t){const n=this.patternInput.re2().matchMachineInput(this.matcherInput,e,this.matcherInputLength,t,1);return n[0]?(this.groups=n[1],this.hasMatch=!0,this.hasGroups=0===this.patternGroupCount,this.anchorFlag=t,!0):(this.hasMatch=!1,!1)}substring(e,t){return this.matcherInput.isUTF8Encoding()?bae.utf8ByteArrayToString(this.matcherInput.asBytes().slice(e,t)):this.matcherInput.asCharSequence().substring(e,t).toString()}inputLength(){return this.matcherInputLength}appendReplacement(e,t=!1){let n="";const r=this.start(),i=this.end();return this.appendPos<r&&(n+=this.substring(this.appendPos,r)),this.appendPos=i,n+=t?this.appendReplacementInternalJava(e):this.appendReplacementInternalJs(e),n}appendReplacementInternalJava(e){let t="",n=0;const r=e.length;let i=0;for(;i<r;){const a=e.codePointAt(i);if(a!==dae.CODES.get("\\")){if(a===dae.CODES.get("$")){if(n<i&&(t+=e.substring(n,i)),i+1>=r)throw new Rae("Illegal group reference: group index is missing");const a=e.codePointAt(i+1);if(dae.CODES.get("0")<=a&&a<=dae.CODES.get("9")){let s=a-dae.CODES.get("0"),o=i+2;for(;o<r;o++){const t=e.codePointAt(o);if(t<dae.CODES.get("0")||t>dae.CODES.get("9")||10*s+t-dae.CODES.get("0")>this.patternGroupCount)break;s=10*s+t-dae.CODES.get("0")}if(s>this.patternGroupCount)throw new Rae(`n > number of groups: ${s}`);const l=this.group(s);null!==l&&(t+=l),i=o,n=i}else{if(a!==dae.CODES.get("{"))throw new Rae("Illegal group reference");{let a=i+2;for(;a<r&&e.codePointAt(a)!==dae.CODES.get("}");)a++;if(a>=r)throw new Rae("named capture group is missing trailing '}'");const s=e.substring(i+2,a),o=this.group(s);null!==o&&(t+=o),i=a+1,n=i}}continue}i++}else{if(n<i&&(t+=e.substring(n,i)),i++,i>=r)throw new Rae("character to be escaped is missing");n=i,i++}}return n<r&&(t+=e.substring(n,r)),t}appendReplacementInternalJs(e){let t="",n=0;const r=e.length;for(let i=0;i<r-1;i++)if(e.codePointAt(i)===dae.CODES.get("$")){let a=e.codePointAt(i+1);if(dae.CODES.get("$")===a){n<i&&(t+=e.substring(n,i)),t+="$",i++,n=i+1;continue}if(dae.CODES.get("&")===a){n<i&&(t+=e.substring(n,i));const r=this.group(0);t+=null!==r?r:"$&",i++,n=i+1;continue}if(dae.CODES.get("`")===a){n<i&&(t+=e.substring(n,i)),t+=this.substring(0,this.start(0)),i++,n=i+1;continue}if(dae.CODES.get("'")===a){n<i&&(t+=e.substring(n,i)),t+=this.substring(this.end(0),this.matcherInputLength),i++,n=i+1;continue}if(dae.CODES.get("1")<=a&&a<=dae.CODES.get("9")){let s=a-dae.CODES.get("0");for(n<i&&(t+=e.substring(n,i)),i+=2;i<r&&(a=e.codePointAt(i),!(a<dae.CODES.get("0")||a>dae.CODES.get("9")||10*s+a-dae.CODES.get("0")>this.patternGroupCount));i++)s=10*s+a-dae.CODES.get("0");if(s>this.patternGroupCount){t+=`$${s}`,n=i,i--;continue}const o=this.group(s);null!==o&&(t+=o),n=i,i--;continue}if(a===dae.CODES.get("<")){n<i&&(t+=e.substring(n,i)),i++;let r=i+1;for(;r<e.length&&e.codePointAt(r)!==dae.CODES.get(">")&&e.codePointAt(r)!==dae.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==dae.CODES.get(">")){t+=e.substring(i-1,r+1),n=r+1,i=r;continue}const a=e.substring(i+1,r);if(Object.prototype.hasOwnProperty.call(this.namedGroups,a)){const e=this.group(a);null!==e&&(t+=e)}else t+=`$<${a}>`;n=r+1,i=r;continue}}return n<r&&(t+=e.substring(n,r)),t}appendTail(){return this.substring(this.appendPos,this.matcherIn
vendor: 4,705 bytes, line 2272
2272putLength)}replaceAll(e,t=!1){return this.replace(e,!0,t)}replaceFirst(e,t=!1){return this.replace(e,!1,t)}replace(e,t=!0,n=!1){let r="";this.reset();const i="function"==typeof e,a=Object.keys(this.namedGroups).length>0;let s=null;if(i){if(this.groupCount()>=u.MAX_REPLACER_ARGS)throw new Rae("Too many capture groups to safely invoke replacer function");s=this.matcherInput.isUTF8Encoding()?this.matcherInput.asBytes():this.matcherInput.asCharSequence()}for(;this.find()&&(r+=i?this.appendReplacementFunc(e,a,s):this.appendReplacement(e,n),t););return r+=this.appendTail(),r}appendReplacementFunc(e,t,n){let r="";const i=this.start(),a=this.end();this.appendPos<i&&(r+=this.substring(this.appendPos,i)),this.appendPos=a;const s=this.buildReplacerArgs(i,t,n);return r+=String(e(...s)),r}buildReplacerArgs(e,t,n){const r=[this.group(0)],i=this.groupCount();for(let a=1;a<=i;a++){const e=this.start(a);e<0?r.push(void 0):r.push(this.substring(e,this.end(a)))}if(r.push(e),r.push(n),t){const e=this.getNamedGroups();for(const t in e)null===e[t]&&(e[t]=void 0);r.push(e)}return r}},i(u,"MAX_REPLACER_ARGS",65535),u),jae=(i(c=class{static isRuneOp(e){return c.RUNE<=e&&e<=c.RUNE_ANY_NOT_NL}static escapeRunes(e){let t='"';for(let n of e)t+=bae.escapeRune(n);return t+='"',t}constructor(e){this.op=e,this.out=0,this.arg=0,this.runes=[],this.next=null}matchRune(e){if(1===this.runes.length){const t=this.runes[0];return 0!==(this.arg&eae.FOLD_CASE)?vae.equalsIgnoreCase(t,e):e===t}const t=this.runes.length;if(0===t)return!1;if(2===t||4===t||6===t||8===t){for(let n=0;n<t;n+=2){if(e<this.runes[n])return!1;if(e<=this.runes[n+1])return!0}return!1}let n=0,r=t>>1;for(;r>1;){const t=r>>1;n+=this.runes[n+t<<1]<=e?t:0,r-=t}n+=this.runes[n<<1]<=e?1:0;const i=n-1;return i>=0&&e<=this.runes[i<<1|1]}matchRunePos(e){if(1===this.runes.length){const t=this.runes[0];return 0!==(this.arg&eae.FOLD_CASE)?vae.equalsIgnoreCase(t,e)?0:-1:e===t?0:-1}const t=this.runes.length;if(0===t)return-1;if(2===t||4===t||6===t||8===t){for(let n=0;n<t;n+=2){if(e<this.runes[n])return-1;if(e<=this.runes[n+1])return Math.floor(n/2)}return-1}let n=0,r=t>>1;for(;r>1;){const t=r>>1;n+=this.runes[n+t<<1]<=e?t:0,r-=t}n+=this.runes[n<<1]<=e?1:0;const i=n-1;return i>=0&&e<=this.runes[i<<1|1]?i:-1}toString(){switch(this.op){case c.ALT:return`alt -> ${this.out}, ${this.arg}`;case c.ALT_MATCH:return`altmatch -> ${this.out}, ${this.arg}`;case c.CAPTURE:return`cap ${this.arg} -> ${this.out}`;case c.EMPTY_WIDTH:return`empty ${this.arg} -> ${this.out}`;case c.MATCH:return"match"+(0!==this.arg?` ${this.arg}`:"");case c.FAIL:return"fail";case c.NOP:return`nop -> ${this.out}`;case c.LB_WRITE:return`lbwrite ${this.arg} -> ${this.out}`;case c.LB_CHECK:return`lbcheck ${this.arg} -> ${this.out}`;case c.RUNE:return null===this.runes?"rune <null>":["rune ",c.escapeRunes(this.runes),0!==(this.arg&eae.FOLD_CASE)?"/i":""," -> ",this.out].join("");case c.RUNE1:return`rune1 ${c.escapeRunes(this.runes)} -> ${this.out}`;case c.RUNE_ANY:return`any -> ${this.out}`;case c.RUNE_ANY_NOT_NL:return`anynotnl -> ${this.out}`;default:throw new Error("unhandled case in Inst.toString")}}},"ALT",1),i(c,"ALT_MATCH",2),i(c,"CAPTURE",3),i(c,"EMPTY_WIDTH",4),i(c,"FAIL",5),i(c,"MATCH",6),i(c,"NOP",7),i(c,"RUNE",8),i(c,"RUNE1",9),i(c,"RUNE_ANY",10),i(c,"RUNE_ANY_NOT_NL",11),i(c,"LB_WRITE",12),i(c,"LB_CHECK",13),c),Hae=class{constructor(e){this.sparse=new Int32Array(e),this.densePcs=new Int32Array(e),this.denseCaps=null,this.size=0,this.ncap=0}init(e){this.ncap=e;const t=this.densePcs.length*e;(!this.denseCaps||this.denseCaps.length<t)&&(this.denseCaps=new Int32Array(t))}contains(e){const t=this.sparse[e];return t<this.size&&this.densePcs[t]===e}isEmpty(){return 0===this.size}add(e){const t=this.size++;return this.sparse[e]=t,this.densePcs[t]=e,t}clear(){this.size=0}toString(){let e="{";for(let t=0;t<this.size;t++)0!==t&&(e+=", "),e+=this.densePcs[t];return e+="}",e}},Uae=class e{static fromRE2(t){const n=new e;return n.prog=t.prog,n.re2=t,n.q0=new Hae(n.prog.numInst()),n.q1=new Hae(n.prog.numInst()),n.matched=!1,n.matchcap=new Int32Array(n.prog.numCap<2?2:n.prog.numCap),n.ncap=0,n}static fromMachine(t){return e.fromRE2(t.re2)}constructor(){this.prog=null,this.re2=null,this.q0=null,this.q1=null,this.matched=!1,this.matchcap=null,this.ncap=0,this.lbTable=null}init(e){this.ncap=e,e>this.matchcap.length?this.matchcap=new Int32Array(e).fill(-1):this.matchcap.fill(-1),this.q0.init(e),this.q1.init(e),this.prog.numLb>0&&((!this.lbTable||this.lbTable.length<this.prog.numLb+1)&&(this.lbTable=new Int32Array(this.prog.numLb+1)),this.lbTable.fill(-1))}submatches(){return 0===this.ncap?bae.emptyInts():bae.toArray(this.matchcap.subarray(0,this.ncap))}
2272match(e,t,n){const r=this.re2.cond;if(r===bae.EMPTY_ALL)return!1;if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==t)return!1;this.matched=!1,this.matchcap.fill(-1);let i,a=this.prog.numLb>0?0:t,s=t,o=this.q0,l=this.q1,u=e.step(a),c=u>>3,d=7&u,h=-1,p=0;for(u!==xae.EOF()&&(u=e.step(a+d),h=u>>3,p=7&u),i=0===a?bae.emptyOpContext(-1,c):e.context(a);;){if(o.isEmpty()){if(0!==(r&bae.EMPTY_BEGIN_TEXT)&&0!==a)break;if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==a)break;if(this.matched)break;if(0===this.prog.numLb&&0!==this.re2.prefix.length&&h!==this.re2.prefixRune&&e.canCheckPrefix()){const t=e.index(this.re2,a);if(t<0)break;a+=t,u=e.step(a),c=u>>3,d=7&u,u=e.step(a+d),h=u>>3,p=7&u,i=e.context(a)}}if(0===a&&this.prog.numLb>0)for(let e=0;e<this.prog.lbStarts.length;e++)this.add(o,this.prog.lbStarts[e],a,this.matchcap,0,i);this.matched||0!==a&&n!==eae.UNANCHORED||a>=s&&(this.ncap>0&&(this.matchcap[0]=a),this.add(o,this.prog.start,a,this.matchcap,0,i));const t=a+d;if(i=e.context(t),this.step(o,l,a,t,c,i,n,a===e.endPos()),0===d)break;if(0===this.ncap&&this.matched)break;a+=d,c=h,d=p,-1!==c&&(u=e.step(a+d),h=u>>3,p=7&u);const f=o;o=l,l=f}return l.clear(),this.matched}matchSet(e,t,n){const r=this.re2.cond;if(r===bae.EMPTY_ALL)return[];if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==t)return[];let i=this.prog.numLb>0?0:t,a=t,s=this.q0,o=this.q1,l=e.step(i),u=l>>3,c=7&l,d=-1,h=0;l!==xae.EOF()&&(l=e.step(i+c),d=l>>3,h=7&l);let p=0===i?bae.emptyOpContext(-1,u):e.context(i);const f=new Set;for(;;){if(s.isEmpty()){if(0!==(r&bae.EMPTY_BEGIN_TEXT)&&0!==i)break;if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==i)break}if(0===i&&this.prog.numLb>0)for(let e=0;e<this.prog.lbStarts.length;e++)this.add(s,this.prog.lbStarts[e],i,this.matchcap,0,p);0!==i&&n!==eae.UNANCHORED||i>=a&&this.add(s,this.prog.start,i,this.matchcap,0,p);const t=i+c;p=e.context(t);for(let r=0;r<s.size;r++){const a=s.densePcs[r],l=this.prog.inst[a],c=r*this.ncap;let d=!1;switch(l.op){case jae.MATCH:if(n===eae.ANCHOR_BOTH&&i!==e.endPos())break;f.add(l.arg);break;case jae.RUNE:d=l.matchRune(u);break;case jae.RUNE1:d=u===l.runes[0];break;case jae.RUNE_ANY:d=!0;break;case jae.RUNE_ANY_NOT_NL:d=10!==u;break;default:continue}d&&this.add(o,l.out,t,s.denseCaps,c,p)}if(s.clear(),0===c)break;i+=c,u=d,c=h,-1!==u&&(l=e.step(i+c),d=l>>3,h=7&l);const B=s;s=o,o=B}return o.clear(),Array.from(f).sort((e,t)=>e-t)}step(e,t,n,r,i,a,s,o){const l=this.re2.longest;for(let u=0;u<e.size;u++){const c=e.densePcs[u],d=u*this.ncap;if(l&&this.matched&&this.ncap>0&&this.matchcap[0]<e.denseCaps[d])continue;const h=this.prog.inst[c];let p=!1;switch(h.op){case jae.MATCH:if(s===eae.ANCHOR_BOTH&&!o)break;if(this.ncap>0&&(!l||!this.matched||this.matchcap[1]<n)){e.denseCaps[d+1]=n;for(let t=0;t<this.ncap;t++)this.matchcap[t]=e.denseCaps[d+t]}l||(e.size=0),this.matched=!0;break;case jae.RUNE:p=h.matchRune(i);break;case jae.RUNE1:p=i===h.runes[0];break;case jae.RUNE_ANY:p=!0;break;case jae.RUNE_ANY_NOT_NL:p=10!==i;break;default:continue}p&&this.add(t,h.out,r,e.denseCaps,d,a)}e.clear()}add(e,t,n,r,i,a){for(;;){if(0===t)return;if(e.contains(t))return;const s=e.add(t),o=this.prog.inst[t];switch(o.op){case jae.FAIL:return;case jae.ALT:case jae.ALT_MATCH:this.add(e,o.out,n,r,i,a),t=o.arg;continue;case jae.EMPTY_WIDTH:if(0===(o.arg&~a)){t=o.out;continue}return;case jae.NOP:t=o.out;continue;case jae.CAPTURE:if(o.arg<this.ncap){const t=r[i+o.arg];return r[i+o.arg]=n,this.add(e,o.out,n,r,i,a),void(r[i+o.arg]=t)}t=o.out;continue;case jae.LB_WRITE:this.lbTable[Math.abs(o.arg)]=n,t=o.out;continue;case jae.LB_CHECK:if(o.arg>0){if(this.lbTable[o.arg]===n){t=o.out;continue}}else if(this.lbTable[-o.arg]!==n){t=o.out;continue}return;case jae.MATCH:case jae.RUNE:case jae.RUNE1:case jae.RUNE_ANY:case jae.RUNE_ANY_NOT_NL:if(this.ncap>0){const t=s*this.ncap;for(let n=0;n<this.ncap;n++)e.denseCaps[t+n]=r[i+n]}return;default:throw new Fae("unhandled")}}}};const Gae=e=>{let t=-2128831035;for(let n=0;n<e.length;n++)t^=e[n],t=Math.imul(t,16777619);return t},Yae=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0};var Vae=class{constructor(e,t,n=[]){this.nfaStates=e,this.isMatch=t,this.matchIDs=n,this.nextLatin1=new Array(vae.MAX_LATIN1+1).fill(null),this.nextLatin1Anchored=new Array(vae.MAX_LATIN1+1).fill(null),this.transKeys=[],this.transVals=[],this.lastSeen=0}},qae=(i(d=class{constructor(e,t=8388608){this.prog=e,this.stateCache=new Map,this.stateCount=0,this.startState=null,this.stateLimit=Math.max(1,Math.floor(t/d.STATE_MEMORY_ESTIMATE)),this.cacheClears=0,this.failed=!1,this.clock=0}computeClosure(e){const t=new Set,n=[...e];let r=!1;const i=[];for(;n.length>0;){const e=n.pop();if(t.has(e))continue;t.add(e);const a=this.prog.getInst(e);switch(a.op){case jae.MATCH:r=!0,i.includes(a.arg)||i.push(a.arg);break;case jae.ALT:case jae.ALT_MATCH:n.push(a.out),n.push(a.arg);break;case jae.NOP:case jae.CAPTURE:n.push(a.out);break;case jae.EMPTY_WIDTH:case jae.LB_WRITE:case jae.LB_CHECK:return null}}const a=Int32Array.from(t).sort();return i.sort((e,t)=>
vendor: 30,646 bytes, line 2272
2272e-t),{pcs:a,isMatch:r,matchIDs:i}}getState(e){const t=this.computeClosure(e);if(!t)return null;const n=t.pcs,r=Gae(n);let i=this.stateCache.get(r);if(i)for(let s=0;s<i.length;s++){const e=i[s];if(Yae(e.nfaStates,n))return e.lastSeen=++this.clock,e}else i=[],this.stateCache.set(r,i);if(this.failed)return null;if(this.stateCount>=this.stateLimit){if(this.cacheClears++,this.cacheClears>=d.MAX_CACHE_CLEARS)return this.failed=!0,this.stateCache.clear(),this.stateCount=0,this.startState=null,null;this.evictCache(),i=this.stateCache.get(r),i||(i=[],this.stateCache.set(r,i))}const a=new Vae(n,t.isMatch,t.matchIDs);return a.lastSeen=++this.clock,i.push(a),this.stateCount++,a}evictCache(){const e=[];for(const a of this.stateCache.values())for(let t=0;t<a.length;t++)e.push(a[t]);e.sort((e,t)=>e.lastSeen-t.lastSeen);const t=Math.max(1,Math.floor(this.stateLimit/2)),n=e.length-t,r=e.slice(n),i=new Set(r);this.stateCache.clear(),this.stateCount=0;for(let a=0;a<r.length;a++){const e=r[a];e.nextLatin1.fill(null),e.nextLatin1Anchored.fill(null),e.transKeys.length=0,e.transVals.length=0;const t=Gae(e.nfaStates);let n=this.stateCache.get(t);n||(n=[],this.stateCache.set(t,n)),n.push(e),this.stateCount++}this.startState&&!i.has(this.startState)&&(this.startState=null)}step(e,t,n){if(t<=vae.MAX_LATIN1)if(n===eae.UNANCHORED){const n=e.nextLatin1[t];if(null!==n)return n}else{const n=e.nextLatin1Anchored[t];if(null!==n)return n}else{const r=t+(n===eae.UNANCHORED?0:vae.MAX_RUNE+1),i=e.transKeys,a=i.length;for(let t=0;t<a;t++)if(i[t]===r)return e.transVals[t]}const r=[];for(let a=0;a<e.nfaStates.length;a++){const n=e.nfaStates[a],i=this.prog.getInst(n);jae.isRuneOp(i.op)&&i.matchRune(t)&&r.push(i.out)}n===eae.UNANCHORED&&r.push(this.prog.start);const i=this.getState(r);if(t<=vae.MAX_LATIN1)n===eae.UNANCHORED?e.nextLatin1[t]=i:e.nextLatin1Anchored[t]=i;else{const r=t+(n===eae.UNANCHORED?0:vae.MAX_RUNE+1);e.transKeys.push(r),e.transVals.push(i)}return i}match(e,t,n){if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==t)return!1;if(!this.startState&&(this.startState=this.getState([this.prog.start]),!this.startState))return null;let r=e.endPos(),i=this.startState;if(i.isMatch){if(n!==eae.ANCHOR_BOTH)return!0;if(t===r)return!0}let a=t;for(;a<r;){const t=e.step(a),s=t>>3,o=7&t;if(0===o)break;if(i=n===eae.UNANCHORED&&s<=vae.MAX_LATIN1&&i.nextLatin1[s]||this.step(i,s,n),null===i)return null;if(i.lastSeen=++this.clock,i.isMatch){if(n!==eae.ANCHOR_BOTH)return!0;if(a+o===r)return!0}if(0===i.nfaStates.length&&n!==eae.UNANCHORED)return!1;a+=o}return!1}matchSet(e,t,n){if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==t)return[];if(!this.startState&&(this.startState=this.getState([this.prog.start]),!this.startState))return null;let r=e.endPos(),i=this.startState;const a=new Set,s=(e,t)=>{e.isMatch&&(n===eae.ANCHOR_BOTH?t===r&&e.matchIDs.forEach(e=>a.add(e)):e.matchIDs.forEach(e=>a.add(e)))};s(i,t);let o=t;for(;o<r;){const t=e.step(o),r=t>>3,a=7&t;if(0===a)break;if(i=n===eae.UNANCHORED&&r<=vae.MAX_LATIN1&&i.nextLatin1[r]||this.step(i,r,n),null===i)return null;if(i.lastSeen=++this.clock,o+=a,s(i,o),0===i.nfaStates.length&&n!==eae.UNANCHORED)break}return Array.from(a).sort((e,t)=>e-t)}},"MAX_CACHE_CLEARS",5),i(d,"STATE_MEMORY_ESTIMATE",838),d),$ae=class{constructor(){this.end=0,this.cap=new Int32Array(0),this.matchcap=new Int32Array(0),this.ncap=0,this.jobPc=new Int32Array(256),this.jobArg=new Uint8Array(256),this.jobPos=new Int32Array(256),this.jobLen=0,this.visited=new Uint32Array(0)}reset(e,t,n){this.end=t,this.jobLen=0,this.ncap=n;const r=e.numInst()*(t+1)+32-1>>>5;this.visited.length<r?this.visited=new Uint32Array(r):this.visited.fill(0,0,r),this.cap.length<n?this.cap=new Int32Array(n).fill(-1):this.cap.fill(-1,0,n),this.matchcap.length<n?this.matchcap=new Int32Array(n).fill(-1):this.matchcap.fill(-1,0,n)}shouldVisit(e,t){const n=e*(this.end+1)+t,r=n>>>5,i=1<<(31&n);return 0===(this.visited[r]&i)&&(this.visited[r]|=i,!0)}push(e,t,n,r){if(e.prog.getInst(t).op!==jae.FAIL&&(r||this.shouldVisit(t,n))){if(this.jobLen>=this.jobPc.length){const e=2*this.jobPc.length,t=new Int32Array(e);t.set(this.jobPc),this.jobPc=t;const n=new Uint8Array(e);n.set(this.jobArg),this.jobArg=n;const r=new Int32Array(e);r.set(this.jobPos),this.jobPos=r}this.jobPc[this.jobLen]=t,this.jobArg[this.jobLen]=r?1:0,this.jobPos[this.jobLen]=n,this.jobLen++}}tryBacktrack(e,t,n,r,i){const a=e.longest;for(this.push(e,n,r,!1);this.jobLen>0;){this.jobLen--;let n=this.jobPc[this.jobLen],r=1===this.jobArg[this.jobLen],s=this.jobPos[this.jobLen],o=!0;for(;o||this.shouldVisit(n,s);){o=!1;const l=e.prog.getInst(n);switch(l.op){case jae.FAIL:throw new Fae("unexpected InstFail");case jae.ALT:if(r){r=!1,n=l.arg;continue}this.push(e,n,s,!0),n=l.out;continue;case jae.ALT_MATCH:{const t=e.prog.getInst(l.out);if(jae.isRuneOp(t.op)){this.push(e,l.arg,s,!1),n=l.arg,s=this.end;continue}this.push(e,l.out,this.end,!1),n=l.out;continue}case jae.RUNE:{const e=t.step(s);if(e===xae.EOF())break;if(!l.matchRune(e>>3))break;s+=7&e,n=l.out;continue}case jae.RUNE1:{const e=t.step(s);if(e===xae.EOF())break;if(e>>3!==l.runes[0])break;s+=7&e,n=l.out;continue}case jae.RUNE_ANY_NOT_NL:{const e=t.step(s);if(e===xae.EOF())break;if(e>>3==10)break;s+=7&e,n=l.out;continue}case jae.RUNE_ANY:{const e=t.step(s);if(e===xae.EOF())break;s+=7&e,n=l.out;continue}case jae.CAPTURE:if(r){this.cap[l.arg]=s;break}l.arg<this.ncap&&(this.push(e,n,this.cap[l.arg],!0),this.cap[l.arg]=s),n=l.out;continue;case jae.EMPTY_WIDTH:{const e=t.context(s);if(0!==(l.arg&~e))break;n=l.out;continue}case jae.NOP:n=l.out;continue;case jae.MATCH:{if(i===eae.ANCHOR_BOTH&&s!==this.end)break;if(0===this.ncap)return!0;this.ncap>1&&(this.cap[1]=s);const e=this.matchcap[1];if((-1===e||a&&s>0&&s>e)&&this.matchcap.set(this.cap),!a)return!0;if(s===this.end)return!0;break}case jae.LB_WRITE:case jae.LB_CHECK:throw new Fae("Backtracker cannot evaluate Lookbehind instructions");default:throw new Fae("bad inst")}break}}return a&&this.matchcap.length>1&&this.matchcap[1]>=0}};const Wae=[];var zae=class e{static shouldBacktrack(e){return e.numInst()<=500}static maxBitStateLen(t){return e.shouldBacktrack(t)?Math.floor(262144/t.numInst()):0}static execute(e,t,n,r,i){const a=e.cond;if(a===bae.EMPTY_ALL)return null;if((r===eae.ANCHOR_START||r===eae.ANCHOR_BOTH)&&0!==n)return null;if(0!==(a&bae.EMPTY_BEGIN_TEXT)&&0!==n)return null;const s=Wae.length>0?Wae.pop():new $ae,o=t.endPos();s.reset(e.prog,o,i);let l=!1;if(0!==(a&bae.EMPTY_BEGIN_TEXT)||r===eae.ANCHOR_START||r===eae.ANCHOR_BOTH)s.ncap>0&&(s.cap[0]=n),s.tryBacktrack(e,t,e.prog.start,n,r)&&(l=!0);else{let i=-1;for(;n<=o&&0!==i;n+=i){if(e.prefix.length>0){const r=t.index(e,n);if(r<0)break;n+=r}if(s.ncap>0&&(s.cap[0]=n),s.tryBacktrack(e,t,e.prog.start,n,r)){l=!0;break}const a=t.step(n);i=a===xae.EOF()?0:7&a}}if(!l)return Wae.push(s),null;const u=0===i?[]:bae.toArray(s.matchcap.subarray(0,i));return Wae.push(s),u}},Jae=class{constructor(e){this.sparse=new Uint32Array(e),this.dense=new Uint32Array(e),this.size=0,this.nextIndex=0}empty(){return this.nextIndex>=this.size}next(){return this.dense[this.nextIndex++]}clear(){this.size=0,this.nextIndex=0}contains(e){return e<this.sparse.length&&this.sparse[e]<this.size&&this.dense[this.sparse[e]]===e}insert(e){this.contains(e)||this.insertNew(e)}insertNew(e){e>=this.sparse.length||(this.sparse[e]=this.size,this.dense[this.size]=e,this.size++)}},Kae=class{constructor(e){this.start=e.start,this.numCap=e.numCap,this.inst=new Array(e.inst.length);for(let t=0;t<e.inst.length;t++){const n=e.inst[t],r=new jae(n.op);r.out=n.out,r.arg=n.arg,r.runes=n.runes?n.runes.slice():[],r.next=null,this.inst[t]=r}}},Qae=class e{static compile(e){if(0===e.start)return null;if(e.numLb>0)return null;const t=e.inst[e.start];if(t.op!==jae.EMPTY_WIDTH||0===(t.arg&bae.EMPTY_BEGIN_TEXT))return null;let n=!1;for(let i=0;i<e.inst.length;i++)if(e.inst[i].op===jae.ALT||e.inst[i].op===jae.ALT_MATCH){n=!0;break}for(let i=0;i<e.inst.length;i++){const t=e.inst[i],r=e.inst[t.out].op;switch(t.op){case jae.ALT:case jae.ALT_MATCH:if(r===jae.MATCH||e.inst[t.arg].op===jae.MATCH)return null;break;case jae.EMPTY_WIDTH:if(r===jae.MATCH){if((t.arg&bae.EMPTY_END_TEXT)===bae.EMPTY_END_TEXT)continue;return null}break;default:if(r===jae.MATCH&&n)return null}}let r=(e=>{const t=new Kae(e);for(let n=0;n<t.inst.length;n++){const e=t.inst[n];if(e.op!==jae.ALT&&e.op!==jae.ALT_MATCH)continue;let r="out",i="arg",a=t.inst[e[i]];if(a.op!==jae.ALT&&a.op!==jae.ALT_MATCH&&(r="arg",i="out",a=t.inst[e[i]],a.op!==jae.ALT&&a.op!==jae.ALT_MATCH))continue;const s=t.inst[e[r]];if(s.op===jae.ALT||s.op===jae.ALT_MATCH)continue;let o="out",l="arg",u=!1;a.out===n?u=!0:a.arg===n&&(u=!0,o="arg",l="out"),u&&(a[o]=e[r]),e[r]===a[o]&&(e[i]=a[l])}return t})(e);return r=(e=>{if(e.inst.length>=1e3)return null;const t=new Jae(e.inst.length),n=new Jae(e.inst.length),r=new Array(e.inst.length),i=new Array(e.inst.length).fill(!1),a=s=>{let o=!0;const l=e.inst[s];if(n.contains(s))return!0;switch(n.insert(s),l.op){case jae.ALT:case jae.ALT_MATCH:{o=a(l.out)&&a(l.arg);let e=i[l.out],t=i[l.arg];if(e&&t)return!1;if(t){const n=l.out;l.out=l.arg,l.arg=n;const r=e;e=t,t=r}e&&(i[s]=!0,l.op=jae.ALT_MATCH);const n=((e,t,n,r)=>{const i=e.length,a=t.length;let s=0,o=0;const l=[],u=[];let c=!0,d=-1;const h=i=>{const a=i?e:t,c=i?s:o,h=i?n:r;return!(d>0&&a[c]<=l[d]||(l.push(a[c],a[c+1]),i?s+=2:o+=2,d+=2,u.push(h),0))};for(;s<i||o<a;)if(c=o>=a?h(!0):s>=i||t[o]<e[s]?h(!1):h(!0),!c)return null;return{merged:l,next:u}})(r[l.out]||[],r[l.arg]||[],l.out,l.arg);if(!n)return!1;r[s]=n.merged,l.next=new Uint32Array(n.next);break}case jae.CAPTURE:case jae.EMPTY_WIDTH:case jae.NOP:o=a(l.out),i[s]=i[l.out],r[s]=r[l.out]?r[l.out].slice():[],l.next=new Uint32Array(Math.floor(r[s].length/2)+1).fill(l.out);break;case jae.MATCH:case jae.FAIL:i[s]=l.op===jae.MATCH;break;case jae.RUNE:{if(i[s]=!1,l.next&&l.next.length>0)break;if(t.insert(l.out),!l.runes||0===l.runes.length){r[s]=[],l.next=new Uint32Array([l.out]);break}let e=[];if(1===l.runes.length&&0!==(l.arg&eae.FOLD_CASE)){const t=l.runes[0];e.push(t,t);for(let n=vae.simpleFold(t);n!==t;n=vae.simpleFold(n))e.push(n,n);e.sort((e,t)=>e-t)}else for(let t=0;t<l.runes.length;t++)e.push(l.runes[t]);r[s]=e,l.next=new Uint32Array(Math.floor(e.length/2)+1).fill(l.out),l.op=jae.RUNE;break}case jae.RUNE1:{if(i[s]=!1,l.next&&l.next.length>0)break;t.insert(l.out);let e=[];if(0!==(l.arg&eae.FOLD_CASE)){const t=l.runes[0];e.push(t,t);for(let n=vae.simpleFold(t);n!==t;n=vae.simpleFold(n))e.push(n,n);e.sort((e,t)=>e-t)}else e.push(l.runes[0],l.runes[0]);r[s]=e,l.next=new Uint32Array(Math.floor(e.length/2)+1).fill(l.out),l.op=jae.RUNE;break}case jae.RUNE_ANY:if(i[s]=!1,l.next&&l.next.length>0)break;t.insert(l.out),r[s]=[0,vae.MAX_RUNE],l.next=new Uint32Array([l.out]);break;case jae.RUNE_ANY_NOT_NL:if(i[s]=!1,l.next&&l.next.length>0)break;t.insert(l.out),r[s]=[0,9,11,vae.MAX_RUNE],l.next=new Uint32Array(Math.floor(r[s].length/2)+1).fill(l.out)}return o};for(t.clear(),t.insert(e.start);!t.empty();)if(n.clear(),!a(t.next()))return null;for(let s=0;s<e.inst.length;s++)r[s]&&(e.inst[s].runes=r[s]);return e})(r),null!==r&&((e,t)=>{for(let n=0;n<t.inst.length;n++){const r=t.inst[n];switch(r.op){case jae.ALT:case jae.ALT_MATCH:case jae.RUNE:break;case jae.CAPTURE:case jae.EMPTY_WIDTH:case jae.NOP:case jae.MATCH:case jae.FAIL:e.inst[n].next=null;break;case jae.RUNE1:case jae.RUNE_ANY:case jae.RUNE_ANY_NOT_NL:e.inst[n].next=null,e.inst[n].op=r.op,e.inst[n].runes=r.runes?r.runes.slice():[]}}})(r,e),r}static next(e,t){const n=e.matchRunePos(t);return n>=0?e.next[n]:e.op===jae.ALT_MATCH?e.out:0}static execute(t,n,r,i,a){const s=t.onepass;if(!s)return null;const o=new Int32Array(a).fill(-1);let l=!1,u=n.step(r),c=u>>3,d=7&u,h=xae.EOF(),p=-1,f=0;u!==xae.EOF()&&(h=n.step(r+d),h!==xae.EOF()&&(p=h>>3,f=7&h));let B,m=0===r?bae.emptyOpContext(-1,c):n.context(r),g=s.start;for(;;){switch(B=s.inst[g],g=B.out,B.op){case jae.MATCH:return i===eae.ANCHOR_BOTH&&r!==n.endPos()?null:(l=!0,o.length>0&&(o[0]=0,o[1]=r),0===a?[]:bae.toArray(o));case jae.RUNE:if(!B.matchRune(c))return null;break;case jae.RUNE1:if(c!==B.runes[0])return null;break;case jae.RUNE_ANY:break;case jae.RUNE_ANY_NOT_NL:if(10===c)return null;break;case jae.ALT:case jae.ALT_MATCH:g=e.next(B,c);continue;case jae.FAIL:return null;case jae.NOP:continue;case jae.EMPTY_WIDTH:if(0!==(B.arg&~m))return null;continue;case jae.CAPTURE:B.arg<o.length&&(o[B.arg]=r);continue;default:throw new Fae("bad inst")}if(0===d)break;m=bae.emptyOpContext(c,p),r+=d,c=p,d=f,-1!==c&&(h=n.step(r+d),h!==xae.EOF()?(p=h>>3,f=7&h):(p=-1,f=0))}return l?0===a?[]:bae.toArray(o):null}},Zae=(i(h=class{static isPseudoOp(e){return e>=h.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(e){return e===dae.CODES.get("-")?"\\":""}static fromRegexp(e){const t=new h(e.op);return t.flags=e.flags,t.subs=e.subs,t.runes=e.runes,t.cap=e.cap,t.min=e.min,t.max=e.max,t.name=e.name,t.namedGroups=e.namedGroups,t.lb=e.lb,t}constructor(e){this.op=e,this.flags=0,this.subs=h.emptySubs(),this.runes=[],this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups=Object.create(null),this.lb=0}reinit(){this.flags=0,this.subs=h.emptySubs(),this.runes=[],this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups=Object.create(null),this.lb=0}toString(){return this.appendTo()}appendTo(){let e="";switch(this.op){case h.Op.NO_MATCH:e+="[^\\x00-\\x{10FFFF}]";break;case h.Op.EMPTY_MATCH:e+="(?:)";break;case h.Op.STAR:case h.Op.PLUS:case h.Op.QUEST:case h.Op.REPEAT:{const t=this.subs[0];switch(t.op>h.Op.CAPTURE||t.op===h.Op.LITERAL&&t.runes.length>1?e+=`(?:${t.appendTo()})`:e+=t.appendTo(),this.op){case h.Op.STAR:e+="*";break;case h.Op.PLUS:e+="+";break;case h.Op.QUEST:e+="?";break;case h.Op.REPEAT:e+=`{${this.min}`,this.min!==this.max&&(e+=",",this.max>=0&&(e+=this.max)),e+="}"}0!==(this.flags&eae.NON_GREEDY)&&(e+="?");break}case h.Op.CONCAT:for(let t of this.subs)t.op===h.Op.ALTERNATE?e+=`(?:${t.appendTo()})`:e+=t.appendTo();break;case h.Op.ALTERNATE:{let t="";for(let n of this.subs)e+=t,t="|",e+=n.appendTo();break}case h.Op.LITERAL:0!==(this.flags&eae.FOLD_CASE)&&(e+="(?i:");for(let t of this.runes)e+=bae.escapeRune(t);0!==(this.flags&eae.FOLD_CASE)&&(e+=")");break;case h.Op.ANY_CHAR_NOT_NL:e+="(?-s:.)";break;case h.Op.ANY_CHAR:e+="(?s:.)";break;case h.Op.PLB:e+=`(?<=${this.subs[0].appendTo()})`;break;case h.Op.NLB:e+=`(?<!${this.subs[0].appendTo()})`;break;case h.Op.CAPTURE:null===this.name||0===this.name.length?e+="(":e+=`(?P<${this.name}>`,this.subs[0].op!==h.Op.EMPTY_MATCH&&(e+=this.subs[0].appendTo()),e+=")";break;case h.Op.BEGIN_TEXT:e+="\\A";break;case h.Op.END_TEXT:0!==(this.flags&eae.WAS_DOLLAR)?e+="(?-m:$)":e+="\\z";break;case h.Op.BEGIN_LINE:e+="^";break;case h.Op.END_LINE:e+="$";break;case h.Op.WORD_BOUNDARY:e+="\\b";break;case h.Op.NO_WORD_BOUNDARY:e+="\\B";break;case h.Op.CHAR_CLASS:if(this.runes.length%2!=0){e+="[invalid char class]";break}if(e+="[",0===this.runes.length)e+="^\\x00-\\x{10FFFF}";else if(0===this.runes[0]&&this.runes[this.runes.length-1]===vae.MAX_RUNE){e+="^";for(let t=1;t<this.runes.length-1;t+=2){const n=this.runes[t]+1,r=this.runes[t+1]-1;e+=h.quoteIfHyphen(n),e+=bae.escapeRune(n),n!==r&&(e+="-",e+=h.quoteIfHyphen(r),e+=bae.escapeRune(r))}}else for(let t=0;t<this.runes.length;t+=2){const n=this.runes[t],r=this.runes[t+1];e+=h.quoteIfHyphen(n),e+=bae.escapeRune(n),n!==r&&(e+="-",e+=h.quoteIfHyphen(r),e+=bae.escapeRune(r))}e+="]";break;default:e+=this.op}return e}maxCap(){let e=0;if(this.op===h.Op.CAPTURE&&(e=this.cap),null!==this.subs)for(let t of this.subs){const n=t.maxCap();e<n&&(e=n)}return e}equals(e){if(!(null!==e&&e instanceof h))return!1;if(this.op!==e.op)return!1;switch(this.op){case h.Op.END_TEXT:if((this.flags&eae.WAS_DOLLAR)!==(e.flags&eae.WAS_DOLLAR))return!1;break;case h.Op.LITERAL:case h.Op.CHAR_CLASS:if(null===this.runes&&null===e.runes)break;if(null===this.runes||null===e.runes)return!1;if(this.runes.length!==e.runes.length)return!1;for(let t=0;t<this.runes.length;t++)if(this.runes[t]!==e.runes[t])return!1;break;case h.Op.ALTERNATE:case h.Op.CONCAT:if(this.subs.length!==e.subs.length)return!1;for(let t=0;t<this.subs.length;++t)if(!this.subs[t].equals(e.subs[t]))return!1;break;case h.Op.STAR:case h.Op.PLUS:case h.Op.QUEST:if((this.flags&eae.NON_GREEDY)!==(e.flags&eae.NON_GREEDY)||!this.subs[0].equals(e.subs[0]))return!1;break;case h.Op.REPEAT:if((this.flags&eae.NON_GREEDY)!==(e.flags&eae.NON_GREEDY)||this.min!==e.min||this.max!==e.max||!this.subs[0].equals(e.subs[0]))return!1;break;case h.Op.CAPTURE:if(this.cap!==e.cap||(null===this.name?null!==e.name:this.name!==e.name)||!this.subs[0].equals(e.subs[0]))return!1;break;case h.Op.PLB:case h.Op.NLB:if(this.lb!==e.lb||!this.subs[0].equals(e.subs[0]))return!1}return!0}},"Op",wae(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","PLB","NLB","LEFT_PAREN","VERTICAL_BAR"])),h),Xae=class{constructor(e){this.next=[Object.create(null)],this.fail=[0],this.match=[!1];for(const n of e){let e=0;for(let t=0;t<n.length;t++){const r=n[t];r in this.next[e]||(this.next.push(Object.create(null)),this.fail.push(0),this.match.push(!1),this.next[e][r]=this.next.length-1),e=this.next[e][r]}this.match[e]=!0}const t=[];for(const n in this.next[0])if(Object.prototype.hasOwnProperty.call(this.next[0],n)){const e=this.next[0][n];this.fail[e]=0,t.push(e)}for(;t.length>0;){const e=t.shift();for(const n in this.next[e])if(Object.prototype.hasOwnProperty.call(this.next[e],n)){const r=this.next[e][n];let i=this.fail[e];for(;0!==i&&!(n in this.next[i]);)i=this.fail[i];n in this.next[i]?this.fail[r]=this.next[i][n]:this.fail[r]=0,this.match[r]=this.match[r]||this.match[this.fail[r]],t.push(r)}}}searchUTF16(e,t,n){let r=0;for(let i=t;i<n;i++){const t=e.charCodeAt(i);for(;0!==r&&!(t in this.next[r]);)r=this.fail[r];if(t in this.next[r]&&(r=this.next[r][t]),this.match[r])return!0}return!1}searchUTF8(e,t,n){let r=0;for(let i=t;i<n;i++){const t=e[i];for(;0!==r&&!(t in this.next[r]);)r=this.fail[r];if(t in this.next[r]&&(r=this.next[r][t]),this.match[r])return!0}return!1}},ese=(i(p=class{constructor(e){this.type=e,this.subs=[],this.str="",this.bytes=null,this.ac16=null,this.ac8=null}eval(e,t){switch(this.type){case p.Type.NONE:return!0;case p.Type.EXACT:return e.hasString(this,t);case p.Type.AND:for(let n=0;n<this.subs.length;n++)if(!this.subs[n].eval(e,t))return!1;return!0;case p.Type.OR:if(this.ac16&&this.ac8)return e.hasAnyString(this,t);for(let n=0;n<this.subs.length;n++)if(this.subs[n].eval(e,t))return!0;return!1;default:return!0}}},"Type",{NONE:0,EXACT:1,AND:2,OR:3}),p),tse=class e{static build(t){const n=e.fromRegexp(t);return e.simplify(n)}static fromRegexp(t){if(!t)return new ese(ese.Type.NONE);switch(t.op){case Zae.Op.PLB:case Zae.Op.NLB:case Zae.Op.NO_MATCH:case Zae.Op.EMPTY_MATCH:case Zae.Op.BEGIN_LINE:case Zae.Op.END_LINE:case Zae.Op.BEGIN_TEXT:case Zae.Op.END_TEXT:case Zae.Op.WORD_BOUNDARY:case Zae.Op.NO_WORD_BOUNDARY:case Zae.Op.CHAR_CLASS:case Zae.Op.ANY_CHAR_NOT_NL:case Zae.Op.ANY_CHAR:return new ese(ese.Type.NONE);case Zae.Op.LITERAL:{if(0===t.runes.length||0!==(t.flags&eae.FOLD_CASE))return new ese(ese.Type.NONE);const e=new ese(ese.Type.EXACT);let n="";for(let r=0;r<t.runes.length;r++)n+=String.fromCodePoint(t.runes[r]);return e.str=n,e.bytes=bae.stringToUtf8ByteArray(e.str),e}case Zae.Op.CAPTURE:case Zae.Op.PLUS:return e.fromRegexp(t.subs[0]);case Zae.Op.REPEAT:return t.min>=1?e.fromRegexp(t.subs[0]):new ese(ese.Type.NONE);case Zae.Op.CONCAT:{const n=new ese(ese.Type.AND);for(const r of t.subs)n.subs.push(e.fromRegexp(r));return n}case Zae.Op.ALTERNATE:{const n=new ese(ese.Type.OR);for(const r of t.subs)n.subs.push(e.fromRegexp(r));return n}default:return new ese(ese.Type.NONE)}}static simplify(t){if(t.type===ese.Type.EXACT||t.type===ese.Type.NONE)return t;if(t.type===ese.Type.AND){const n=[];for(const r of t.subs){const t=e.simplify(r);if(t.type!==ese.Type.NONE)if(t.type===ese.Type.AND)for(let e=0;e<t.subs.length;e++)n.push(t.subs[e]);else n.push(t)}return 0===n.length?new ese(ese.Type.NONE):1===n.length?n[0]:(t.subs=n,t)}if(t.type===ese.Type.OR){const n=[];for(const s of t.subs){const t=e.simplify(s);if(t.type===ese.Type.NONE)return new ese(ese.Type.NONE);if(t.type===ese.Type.OR)for(let e=0;e<t.subs.length;e++)n.push(t.subs[e]);else n.push(t)}if(0===n.length)return new ese(ese.Type.NONE);if(1===n.length)return n[0];const r=new Set,i=[];for(const e of n)e.type===ese.Type.EXACT?r.has(e.str)||(r.add(e.str),i.push(e)):i.push(e);t.subs=i;let a=!0;for(const e of i)if(e.type!==ese.Type.EXACT){a=!1;break}return a&&i.length>1&&(t.ac16=new Xae(i.map(e=>{const t=[];for(let n=0;n<e.str.length;n++)t.push(e.str.charCodeAt(n));return t})),t.ac8=new Xae(i.map(e=>e.bytes))),t}return t}},nse=class{constructor(e=0,t=0){this.head=e,this.tail=t}},rse=class{constructor(){this.inst=[],this.start=0,this.numCap=2,this.lbStarts=[],this.numLb=0}getInst(e){return this.inst[e]}numInst(){return this.inst.length}addInst(e){this.inst.push(new jae(e))}skipNop(e){let t=this.inst[e];for(;t.op===jae.NOP||t.op===jae.CAPTURE;)t=this.inst[e],e=t.out;return t}prefix(){let e="",t=this.skipNop(this.start);if(!jae.isRuneOp(t.op)||1!==t.runes.length)return[t.op===jae.MATCH,e];for(;jae.isRuneOp(t.op)&&1===t.runes.length&&0===(t.arg&eae.FOLD_CASE);)e+=String.fromCodePoint(t.runes[0]),t=this.skipNop(t.out);return[t.op===jae.MATCH,e]}startCond(){let e=0,t=this.start;e:for(;;){const n=this.inst[t];switch(n.op){case jae.EMPTY_WIDTH:e|=n.arg;break;case jae.FAIL:return-1;case jae.CAPTURE:case jae.NOP:break;default:break e}t=n.out}return e}patch(e,t){let n=e.head;for(;0!==n;){const e=this.inst[n>>1];1&n?(n=e.arg,e.arg=t):(n=e.out,e.out=t)}}append(e,t){if(0===e.head)return t;if(0===t.head)return e;const n=this.inst[e.tail>>1];return 1&e.tail?n.arg=t.head:n.out=t.head,new nse(e.head,t.tail)}toString(){let e="";for(let t=0;t<this.inst.length;t++){const n=e.length;e+=t,t===this.start&&(e+="*"),e+="        ".substring(e.length-n),e+=this.inst[t],e+="\n"}return e}},ise=class{constructor(e=0,t=new nse,n=!1){this.i=e,this.out=t,this.nullable=n}},ase=class e{static ANY_RUNE_NOT_NL(){return[0,dae.CODES.get("\n")-1,dae.CODES.get("\n")+1,vae.MAX_RUNE]}static ANY_RUNE(){return[0,vae.MAX_RUNE]}static compileRegexp(t){const n=new e,r=n.compile(t);return n.prog.patch(r.out,n.newInst(jae.MATCH).i),n.prog.start=r.i,n.prog}static compileSet(t){const n=new e;if(0===t.length)return n.prog.start=n.newInst(jae.FAIL).i,n.prog;let r=[];for(let e=0;e<t.length;e++){const i=n.compile(t[e]),a=n.newInst(jae.MATCH);n.prog.getInst(a.i).arg=e,n.prog.patch(i.out,a.i),r.push(i.i)}let i=r[0];for(let e=1;e<r.length;e++){const t=n.newInst(jae.ALT),a=n.prog.getInst(t.i);a.out=i,a.arg=r[e],i=t.i}return n.prog.start=i,n.prog}constructor(){this.prog=new rse,this.newInst(jae.FAIL)}newInst(e){return this.prog.addInst(e),new ise(this.prog.numInst()-1,new nse,!0)}nop(){const e=this.newInst(jae.NOP);return e.out=new nse(e.i<<1,e.i<<1),e}fail(){return new ise}cap(e){const t=this.newInst(jae.CAPTURE);return t.out=new nse(t.i<<1,t.i<<1),this.prog.getInst(t.i).arg=e,this.prog.numCap<e+1&&(this.prog.numCap=e+1),t}cat(e,t){return 0===e.i||0===t.i?this.fail():(this.prog.patch(e.out,t.i),new ise(e.i,t.out,e.nullable&&t.nullable))}alt(e,t){if(0===e.i)return t;if(0===t.i)return e;const n=this.newInst(jae.ALT),r=this.prog.getInst(n.i);return r.out=e.i,r.arg=t.i,n.out=this.prog.append(e.out,t.out),n.nullable=e.nullable||t.nullable,n}loop(e,t){const n=this.newInst(jae.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=new nse(n.i<<1,n.i<<1)):(r.out=e.i,n.out=new nse(n.i<<1|1,n.i<<1|1)),this.prog.patch(e.out,n.i),n}quest(e,t){const n=this.newInst(jae.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=new nse(n.i<<1,n.i<<1)):(r.out=e.i,n.out=new nse(n.i<<1|1,n.i<<1|1)),n.out=this.prog.append(n.out,e.out),n}star(e,t){return e.nullable?this.quest(this.plus(e,t),t):this.loop(e,t)}plus(e,t){return new ise(e.i,this.loop(e,t).out,e.nullable)}empty(e){const t=this.newInst(jae.EMPTY_WIDTH);return this.prog.getInst(t.i).arg=e,t.out=new nse(t.i<<1,t.i<<1),t}rune(e,t){const n=this.newInst(jae.RUNE);n.nullable=!1;const r=this.prog.getInst(n.i);return r.runes=e,t&=eae.FOLD_CASE,1===e.length&&vae.simpleFold(e[0])!==e[0]||(t&=~eae.FOLD_CASE),r.arg=t,n.out=new nse(n.i<<1,n.i<<1),0===(t&eae.FOLD_CASE)&&1===e.length||2===e.length&&e[0]===e[1]?r.op=jae.RUNE1:2===e.length&&0===e[0]&&e[1]===vae.MAX_RUNE?r.op=jae.RUNE_ANY:4===e.length&&0===e[0]&&e[1]===dae.CODES.get("\n")-1&&e[2]===dae.CODES.get("\n")+1&&e[3]===vae.MAX_RUNE&&(r.op=jae.RUNE_ANY_NOT_NL),n}lookBehind(t,n){const r=this.newInst(jae.LB_WRITE);this.prog.getInst(r.i).arg=n;const i=this.rune(e.ANY_RUNE(),0),a=this.star(i,!0),s=this.cat(a,t);this.prog.patch(s.out,r.i);const o=this.newInst(jae.LB_CHECK);return this.prog.getInst(o.i).arg=n,this.prog.lbStarts.push(s.i),Math.abs(n)>this.prog.numLb&&(this.prog.numLb=Math.abs(n)),o.out=new nse(o.i<<1,o.i<<1),o}compile(t){switch(t.op){case Zae.Op.NO_MATCH:return this.fail();case Zae.Op.EMPTY_MATCH:return this.nop();case Zae.Op.LITERAL:if(0===t.runes.length)return this.nop();{let e=null;for(let n of t.runes){const r=this.rune([n],t.flags);e=null===e?r:this.cat(e,r)}return e}case Zae.Op.CHAR_CLASS:return this.rune(t.runes,t.flags);case Zae.Op.ANY_CHAR_NOT_NL:return this.rune(e.ANY_RUNE_NOT_NL(),0);case Zae.Op.ANY_CHAR:return this.rune(e.ANY_RUNE(),0);case Zae.Op.BEGIN_LINE:return this.empty(bae.EMPTY_BEGIN_LINE);case Zae.Op.END_LINE:return this.empty(bae.EMPTY_END_LINE);case Zae.Op.BEGIN_TEXT:return this.empty(bae.EMPTY_BEGIN_TEXT);case Zae.Op.END_TEXT:return this.empty(bae.EMPTY_END_TEXT);case Zae.Op.WORD_BOUNDARY:return this.empty(bae.EMPTY_WORD_BOUNDARY);case Zae.Op.NO_WORD_BOUNDARY:return this.empty(bae.EMPTY_NO_WORD_BOUNDARY);case Zae.Op.PLB:case Zae.Op.NLB:return this.lookBehind(this.compile(t.subs[0]),t.lb);case Zae.Op.CAPTURE:{const e=this.cap(t.cap<<1),n=this.compile(t.subs[0]),r=this.cap(t.cap<<1|1);return this.cat(this.cat(e,n),r)}case Zae.Op.STAR:return this.star(this.compile(t.subs[0]),0!==(t.flags&eae.NON_GREEDY));case Zae.Op.PLUS:return this.plus(this.compile(t.subs[0]),0!==(t.flags&eae.NON_GREEDY));case Zae.Op.QUEST:return this.quest(this.compile(t.subs[0]),0!==(t.flags&eae.NON_GREEDY));case Zae.Op.CONCAT:if(0===t.subs.length)return this.nop();{let e=null;for(let n of t.subs){const t=this.compile(n);e=null===e?t:this.cat(e,t)}return e}case Zae.Op.ALTERNATE:if(0===t.subs.length)return this.nop();{let e=null;for(let n of t.subs){const t=this.compile(n);e=null===e?t:this.alt(e,t)}return e}default:throw new Nae("regexp: unhandled case in compile")}}},sse=class e{static simplify(t){if(null===t)return null;switch(t.op){case Zae.Op.PLB:case Zae.Op.NLB:case Zae.Op.CAPTURE:{const n=e.simplify(t.subs[0]);if(n!==t.subs[0]){const e=Zae.fromRegexp(t);return e.runes=[],e.subs=[n],e}return t}case Zae.Op.CONCAT:case Zae.Op.ALTERNATE:{const n=[];let r=!1;for(let i=0;i<t.subs.length;i++){const a=t.subs[i],s=e.simplify(a);if(s!==a&&(r=!0),t.op===Zae.Op.CONCAT){if(s.op===Zae.Op.NO_MATCH)return new Zae(Zae.Op.NO_MATCH);if(s.op===Zae.Op.EMPTY_MATCH){r=!0;continue}if(s.op===Zae.Op.CONCAT){r=!0;for(let e=0;e<s.subs.length;e++)n.push(s.subs[e]);continue}}else if(t.op===Zae.Op.ALTERNATE){if(s.op===Zae.Op.NO_MATCH){r=!0;continue}if(s.op===Zae.Op.ALTERNATE){r=!0;for(let e=0;e<s.subs.length;e++)n.push(s.subs[e]);continue}}n.push(s)}if(r){if(0===n.length)return new Zae(t.op===Zae.Op.CONCAT?Zae.Op.EMPTY_MATCH:Zae.Op.NO_MATCH);if(1===n.length)return n[0];const e=Zae.fromRegexp(t);return e.runes=[],e.subs=n,e}return t}case Zae.Op.CHAR_CLASS:return null===t.runes?t:0===t.runes.length?new Zae(Zae.Op.NO_MATCH):2===t.runes.length&&0===t.runes[0]&&t.runes[1]===vae.MAX_RUNE?new Zae(Zae.Op.ANY_CHAR):4===t.runes.length&&0===t.runes[0]&&t.runes[1]===dae.CODES.get("\n")-1&&t.runes[2]===dae.CODES.get("\n")+1&&t.runes[3]===vae.MAX_RUNE?new Zae(Zae.Op.ANY_CHAR_NOT_NL):t;case Zae.Op.STAR:case Zae.Op.PLUS:case Zae.Op.QUEST:{const n=e.simplify(t.subs[0]);return e.simplify1(t.op,t.flags,n,t)}case Zae.Op.REPEAT:{if(0===t.min&&0===t.max)return new Zae(Zae.Op.EMPTY_MATCH);const n=e.simplify(t.subs[0]);if(-1===t.max){if(0===t.min)return e.simplify1(Zae.Op.STAR,t.flags,n,null);if(1===t.min)return e.simplify1(Zae.Op.PLUS,t.flags,n,null);const r=new Zae(Zae.Op.CONCAT),i=[];for(let e=0;e<t.min-1;e++)i.push(n);return i.push(e.simplify1(Zae.Op.PLUS,t.flags,n,null)),r.subs=i.slice(0),e.simplify(r)}if(1===t.min&&1===t.max)return n;let r=null;if(t.min>0){r=[];for(let e=0;e<t.min;e++)r.push(n)}if(t.max>t.min){let i=e.simplify1(Zae.Op.QUEST,t.flags,n,null);for(let r=t.min+1;r<t.max;r++){const r=new Zae(Zae.Op.CONCAT);r.subs=[n,i],i=e.simplify1(Zae.Op.QUEST,t.flags,r,null)}if(null===r)return i;r.push(i)}if(null!==r){const t=new Zae(Zae.Op.CONCAT);return t.subs=r.slice(0),e.simplify(t)}return new Zae(Zae.Op.NO_MATCH)}}return t}static simplify1(e,t,n,r){if(n.op===Zae.Op.EMPTY_MATCH)return n;if(n.op===Zae.Op.NO_MATCH)return e===Zae.Op.PLUS?n:new Zae(Zae.Op.EMPTY_MATCH);if(e===n.op&&(t&eae.NON_GREEDY)===(n.flags&eae.NON_GREEDY))return n;if(null!==r&&r.op===e&&(r.flags&eae.NON_GREEDY)===(t&eae.NON_GREEDY)&&n===r.subs[0])return r;const i=new Zae(e);return i.flags=t,i.subs=[n],i}},ose=class{constructor(e,t){this.sign=e,this.cls=t}};const lse=[48,57],use=[9,10,12,13,32,32],cse=[48,57,65,90,95,95,97,122],dse=new Map([["\\d",new ose(1,lse)],["\\D",new ose(-1,lse)],["\\s",new ose(1,use)],["\\S",new ose(-1,use)],["\\w",new ose(1,cse)],["\\W",new ose(-1,cse)]]),hse=[48,57,65,90,97,122],pse=[65,90,97,122],fse=[0,127],Bse=[9,9,32,32],mse=[0,31,127,127],gse=[48,57],vse=[33,126],yse=[97,122],Cse=[32,126],_se=[33,47,58,64,91,96,123,126],bse=[9,13,32,32],wse=[65,90],Dse=[48,57,65,90,95,95,97,122],Ese=[48,57,65,70,97,102],kse=new Map([["[:alnum:]",new ose(1,hse)],["[:^alnum:]",new ose(-1,hse)],["[:alpha:]",new ose(1,pse)],["[:^alpha:]",new ose(-1,pse)],["[:ascii:]",new ose(1,fse)],["[:^ascii:]",new ose(-1,fse)],["[:blank:]",new ose(1,Bse)],["[:^blank:]",new ose(-1,Bse)],["[:cntrl:]",new ose(1,mse)],["[:^cntrl:]",new ose(-1,mse)],["[:digit:]",new ose(1,gse)],["[:^digit:]",new ose(-1,gse)],["[:graph:]",new ose(1,vse)],["[:^graph:]",new ose(-1,vse)],["[:lower:]",new ose(1,yse)],["[:^lower:]",new ose(-1,yse)],["[:print:]",new ose(1,Cse)],["[:^print:]",new ose(-1,Cse)],["[:punct:]",new ose(1,_se)],["[:^punct:]",new ose(-1,_se)],["[:space:]",new ose(1,bse)],["[:^space
2272:]",new ose(-1,bse)],["[:upper:]",new ose(1,wse)],["[:^upper:]",new ose(-1,wse)],["[:word:]",new ose(1,Dse)],["[:^word:]",new ose(-1,Dse)],["[:xdigit:]",new ose(1,Ese)],["[:^xdigit:]",new ose(-1,Ese)]]);var Sse=class e{static charClassToString(e,t){let n="[";for(let r=0;r<t;r+=2){r>0&&(n+=" ");const t=e[r],i=e[r+1];n+=t===i?`0x${t.toString(16)}`:`0x${t.toString(16)}-0x${i.toString(16)}`}return n+="]",n}static cmp(e,t,n,r){const i=e[t]-n;return 0!==i?i:r-e[t+1]}static qsortIntPair(t,n,r){const i=(n+r)/2&-2,a=t[i],s=t[i+1];let o=n,l=r;for(;o<=l;){for(;o<r&&e.cmp(t,o,a,s)<0;)o+=2;for(;l>n&&e.cmp(t,l,a,s)>0;)l-=2;if(o<=l){if(o!==l){let e=t[o];t[o]=t[l],t[l]=e,e=t[o+1],t[o+1]=t[l+1],t[l+1]=e}o+=2,l-=2}}n<l&&e.qsortIntPair(t,n,l),o<r&&e.qsortIntPair(t,o,r)}constructor(e=bae.emptyInts()){this.r=e,this.len=e.length}toArray(){return this.len===this.r.length?this.r:this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;e.qsortIntPair(this.r,0,this.len-2);let t=2;for(let e=2;e<this.len;e+=2){const n=this.r[e],r=this.r[e+1];n<=this.r[t-1]+1?r>this.r[t-1]&&(this.r[t-1]=r):(this.r[t]=n,this.r[t+1]=r,t+=2)}return this.len=t,this}appendLiteral(e,t){return 0!==(t&eae.FOLD_CASE)?this.appendFoldedRange(e,e):this.appendRange(e,e)}appendRange(e,t){if(this.len>0)for(let n=2;n<=4;n+=2)if(this.len>=n){const r=this.r[this.len-n],i=this.r[this.len-n+1];if(e<=i+1&&r<=t+1)return e<r&&(this.r[this.len-n]=e),t>i&&(this.r[this.len-n+1]=t),this}return this.r[this.len++]=e,this.r[this.len++]=t,this}appendFoldedRange(e,t){if(e<=vae.MIN_FOLD&&t>=vae.MAX_FOLD)return this.appendRange(e,t);if(t<vae.MIN_FOLD||e>vae.MAX_FOLD)return this.appendRange(e,t);e<vae.MIN_FOLD&&(this.appendRange(e,vae.MIN_FOLD-1),e=vae.MIN_FOLD),t>vae.MAX_FOLD&&(this.appendRange(vae.MAX_FOLD+1,t),t=vae.MAX_FOLD);for(let n=e;n<=t;n++){this.appendRange(n,n);for(let e=vae.simpleFold(n);e!==n;e=vae.simpleFold(e))this.appendRange(e,e)}return this}appendClass(e){for(let t=0;t<e.length;t+=2)this.appendRange(e[t],e[t+1]);return this}appendFoldedClass(e){for(let t=0;t<e.length;t+=2)this.appendFoldedRange(e[t],e[t+1]);return this}appendNegatedClass(e){let t=0;for(let n=0;n<e.length;n+=2){const r=e[n],i=e[n+1];t<=r-1&&this.appendRange(t,r-1),t=i+1}return t<=vae.MAX_RUNE&&this.appendRange(t,vae.MAX_RUNE),this}appendTable(e){for(let t=0;t<e.length;++t){const n=e.getLo(t),r=e.getHi(t),i=e.getStride(t);if(1!==i)for(let e=n;e<=r;e+=i)this.appendRange(e,e);else this.appendRange(n,r)}return this}appendNegatedTable(e){let t=0;for(let n=0;n<e.length;++n){const r=e.getLo(n),i=e.getHi(n),a=e.getStride(n);if(1!==a)for(let e=r;e<=i;e+=a)t<=e-1&&this.appendRange(t,e-1),t=e+1;else t<=r-1&&this.appendRange(t,r-1),t=i+1}return t<=vae.MAX_RUNE&&this.appendRange(t,vae.MAX_RUNE),this}appendTableWithSign(e,t){return t<0?this.appendNegatedTable(e):this.appendTable(e)}negateClass(){let e=0,t=0;for(let n=0;n<this.len;n+=2){const r=this.r[n],i=this.r[n+1];e<=r-1&&(this.r[t]=e,this.r[t+1]=r-1,t+=2),e=i+1}return this.len=t,e<=vae.MAX_RUNE&&(this.r[this.len++]=e,this.r[this.len++]=vae.MAX_RUNE),this}appendClassWithSign(e,t){return t<0?this.appendNegatedClass(e):this.appendClass(e)}appendGroup(t,n){let r=t.cls;return n&&(r=(new e).appendFoldedClass(r).cleanClass().toArray()),this.appendClassWithSign(r,t.sign)}toString(){return e.charClassToString(this.r,this.len)}},xse=class{constructor(e){this.str=e,this.position=0}pos(){return this.position}rewindTo(e){this.position=e}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(e){this.position+=e}skipString(e){this.position+=e.length}pop(){const e=this.str.codePointAt(this.position);return this.position+=bae.charCount(e),e}lookingAt(e){return this.str.startsWith(e,this.position)}rest(){return this.str.substring(this.position)}from(e){return this.str.substring(e,this.position)}toString(){return this.rest()}},Tse=(f=class{static unicodeTable(e){return"Any"===e?{tab:f.ANY_TABLE,fold:f.ANY_TABLE,sign:1}:"Ascii"===e?{tab:f.ASCII_TABLE,fold:f.ASCII_FOLD_TABLE,sign:1}:"Assigned"===e?{tab:gae.CATEGORIES.get("Cn"),fold:gae.CATEGORIES.get("Cn"),sign:-1}
vendor: 17,654 bytes, line 2272
2272:"Lc"===e?{tab:gae.CATEGORIES.get("LC"),fold:gae.FOLD_CATEGORIES.get("LC"),sign:1}:gae.CATEGORIES.has(e)?{tab:gae.CATEGORIES.get(e),fold:gae.FOLD_CATEGORIES.get(e),sign:1}:gae.SCRIPTS.has(e)?{tab:gae.SCRIPTS.get(e),fold:gae.FOLD_SCRIPT.get(e),sign:1}:null}static minFoldRune(e){if(e<vae.MIN_FOLD||e>vae.MAX_FOLD)return e;let t=e;const n=e;for(e=vae.simpleFold(e);e!==n;e=vae.simpleFold(e))t>e&&(t=e);return t}static leadingRegexp(e){if(e.op===Zae.Op.EMPTY_MATCH)return null;if(e.op===Zae.Op.CONCAT&&e.subs.length>0){const t=e.subs[0];return t.op===Zae.Op.EMPTY_MATCH?null:t}return e}static literalRegexp(e,t){const n=new Zae(Zae.Op.LITERAL);return n.flags=t,n.runes=bae.stringToRunes(e),n}static parse(e,t){return new f(e,t).parseInternal()}static parseRepeat(e){const t=e.pos();if(!e.more()||!e.lookingAt("{"))return-1;e.skip(1);const n=f.parseInt(e);if(-1===n)return-1;if(!e.more())return-1;let r;if(e.lookingAt(",")){if(e.skip(1),!e.more())return-1;if(e.lookingAt("}"))r=-1;else if(-1===(r=f.parseInt(e)))return-1}else r=n;if(!e.more()||!e.lookingAt("}"))return-1;if(e.skip(1),n<0||n>1e3||-2===r||r>1e3||r>=0&&n>r)throw new Pae(f.ERR_INVALID_REPEAT_SIZE,e.from(t));return n<<16|r&vae.MAX_BMP}static isValidCaptureName(e){if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.codePointAt(t);if(n!==dae.CODES.get("_")&&!bae.isalnum(n))return!1}return!0}static parseInt(e){const t=e.pos();for(;e.more()&&e.peek()>=dae.CODES.get("0")&&e.peek()<=dae.CODES.get("9");)e.skip(1);const n=e.from(t);return 0===n.length||n.length>1&&n.codePointAt(0)===dae.CODES.get("0")?-1:n.length>8?-2:parseInt(n,10)}static isCharClass(e){return e.op===Zae.Op.LITERAL&&1===e.runes.length||e.op===Zae.Op.CHAR_CLASS||e.op===Zae.Op.ANY_CHAR_NOT_NL||e.op===Zae.Op.ANY_CHAR}static matchRune(e,t){switch(e.op){case Zae.Op.LITERAL:return 1===e.runes.length&&e.runes[0]===t;case Zae.Op.CHAR_CLASS:for(let n=0;n<e.runes.length;n+=2)if(e.runes[n]<=t&&t<=e.runes[n+1])return!0;return!1;case Zae.Op.ANY_CHAR_NOT_NL:return t!==dae.CODES.get("\n");case Zae.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(e,t){switch(e.op){case Zae.Op.ANY_CHAR:break;case Zae.Op.ANY_CHAR_NOT_NL:f.matchRune(t,dae.CODES.get("\n"))&&(e.op=Zae.Op.ANY_CHAR);break;case Zae.Op.CHAR_CLASS:t.op===Zae.Op.LITERAL?e.runes=new Sse(e.runes).appendLiteral(t.runes[0],t.flags).toArray():e.runes=new Sse(e.runes).appendClass(t.runes).toArray();break;case Zae.Op.LITERAL:if(t.runes[0]===e.runes[0]&&t.flags===e.flags)break;e.op=Zae.Op.CHAR_CLASS,e.runes=(new Sse).appendLiteral(e.runes[0],e.flags).appendLiteral(t.runes[0],t.flags).toArray()}}static parseEscape(e){const t=e.pos();if(e.skip(1),!e.more())throw new Pae(f.ERR_TRAILING_BACKSLASH);let n=e.pop();e:switch(n){case dae.CODES.get("1"):case dae.CODES.get("2"):case dae.CODES.get("3"):case dae.CODES.get("4"):case dae.CODES.get("5"):case dae.CODES.get("6"):case dae.CODES.get("7"):if(!e.more()||e.peek()<dae.CODES.get("0")||e.peek()>dae.CODES.get("7"))break;case dae.CODES.get("0"):{let t=n-dae.CODES.get("0");for(let n=1;n<3&&!(!e.more()||e.peek()<dae.CODES.get("0")||e.peek()>dae.CODES.get("7"));n++)t=8*t+e.peek()-dae.CODES.get("0"),e.skip(1);return t}case dae.CODES.get("x"):{if(!e.more())break;if(n=e.pop(),n===dae.CODES.get("{")){let t=0,r=0;for(;;){if(!e.more())break e;if(n=e.pop(),n===dae.CODES.get("}"))break;const i=bae.unhex(n);if(i<0)break e;if(r=16*r+i,r>vae.MAX_RUNE)break e;t++}if(0===t)break e;return r}const t=bae.unhex(n);if(!e.more())break;n=e.pop();const r=bae.unhex(n);if(t<0||r<0)break;return 16*t+r}case dae.CODES.get("a"):return dae.CODES.get("�");case dae.CODES.get("f"):return dae.CODES.get("\f");case dae.CODES.get("n"):return dae.CODES.get("\n");case dae.CODES.get("r"):return dae.CODES.get("\r");case dae.CODES.get("t"):return dae.CODES.get("\t");case dae.CODES.get("v"):return dae.CODES.get("\v");default:if(n<=vae.MAX_ASCII&&!bae.isalnum(n))return n}throw new Pae(f.ERR_INVALID_ESCAPE,e.from(t))}static parseClassChar(e,t){if(!e.more())throw new Pae(f.ERR_MISSING_BRACKET,e.from(t));return e.lookingAt("\\")?f.parseEscape(e):e.pop()}static concatRunes(e,t){for(let n=0;n<t.length;n++)e.push(t[n]);return e}static hasCapture(e){if(null===e)return!1;if(e.op===Zae.Op.CAPTURE)return!0;if(e.subs)for(let t of e.subs)if(f.hasCapture(t))return!0;return!1}constructor(e,t=0){this.wholeRegexp=e,this.flags=t,this.numCap=0,this.namedGroups=Object.create(null),this.stack=[],this.free=null,this.numRegexp=0,this.numRunes=0,this.repeats=0,this.height=null,this.size=null,this.nlb=0}newRegexp(e){let t=this.free;return null!==t&&null!==t.subs&&t.subs.length>0?(this.free=t.subs[0],t.reinit(),t.op=e):(t=new Zae(e),this.numRegexp+=1),t}reuse(e){null!==this.height&&this.height.has(e)&&this.height.delete(e),null!==e.subs&&e.subs.length>0&&(e.subs[0]=this.free),this.free=e}checkLimits(e){if(this.numRunes>f.MAX_RUNES)throw new Pae(f.ERR_LARGE);this.checkSize(e),this.checkHeight(e)}checkSize(e){if(null===this.size){if(0===this.repeats&&(this.repeats=1),e.op===Zae.Op.REPEAT){let t=e.max;-1===t&&(t=e.min),t<=0&&(t=1),t>Math.floor(f.MAX_SIZE/this.repeats)?this.repeats=f.MAX_SIZE:this.repeats*=t}if(this.numRegexp<Math.floor(f.MAX_SIZE/this.repeats))return;this.size=new Map;for(let e of this.stack)this.checkSize(e)}if(this.calcSize(e,!0)>f.MAX_SIZE)throw new Pae(f.ERR_LARGE)}calcSize(e,t=!1){if(!t&&null!==this.size&&this.size.has(e))return this.size.get(e);let n=0;switch(e.op){case Zae.Op.LITERAL:n=e.runes.length;break;case Zae.Op.PLB:case Zae.Op.NLB:case Zae.Op.CAPTURE:case Zae.Op.STAR:n=2+this.calcSize(e.subs[0]);break;case Zae.Op.PLUS:case Zae.Op.QUEST:n=1+this.calcSize(e.subs[0]);break;case Zae.Op.CONCAT:for(let t of e.subs)n+=this.calcSize(t);break;case Zae.Op.ALTERNATE:for(let t of e.subs)n+=this.calcSize(t);e.subs.length>1&&(n=n+e.subs.length-1);break;case Zae.Op.REPEAT:{let t=this.calcSize(e.subs[0]);if(-1===e.max){n=0===e.min?2+t:1+e.min*t;break}n=e.max*t+(e.max-e.min);break}}return n=Math.max(1,n),null===this.size&&(this.size=new Map),this.size.set(e,n),n}checkHeight(e){if(!(this.numRegexp<f.MAX_HEIGHT)){if(null===this.height){this.height=new Map;for(let e of this.stack)this.checkHeight(e)}if(this.calcHeight(e,!0)>f.MAX_HEIGHT)throw new Pae(f.ERR_NESTING_DEPTH)}}calcHeight(e,t=!1){if(!t&&null!==this.height&&this.height.has(e))return this.height.get(e);let n=1;for(let r of e.subs){const e=this.calcHeight(r);n<1+e&&(n=1+e)}return null===this.height&&(this.height=new Map),this.height.set(e,n),n}pop(){return this.stack.pop()}popToPseudo(){const e=this.stack.length;let t=e;for(;t>0&&!Zae.isPseudoOp(this.stack[t-1].op);)t--;const n=this.stack.slice(t,e);return this.stack=this.stack.slice(0,t),n}push(e){if(this.numRunes+=e.runes.length,e.op===Zae.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]===e.runes[1]){if(this.maybeConcat(e.runes[0],this.flags&~eae.FOLD_CASE))return null;e.op=Zae.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags&~eae.FOLD_CASE}else if(e.op===Zae.Op.CHAR_CLASS&&4===e.runes.length&&e.runes[0]===e.runes[1]&&e.runes[2]===e.runes[3]&&vae.simpleFold(e.runes[0])===e.runes[2]&&vae.simpleFold(e.runes[2])===e.runes[0]||e.op===Zae.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]+1===e.runes[1]&&vae.simpleFold(e.runes[0])===e.runes[1]&&vae.simpleFold(e.runes[1])===e.runes[0]){if(this.maybeConcat(e.runes[0],this.flags|eae.FOLD_CASE))return null;e.op=Zae.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags|eae.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(e),this.checkLimits(e),e}maybeConcat(e,t){const n=this.stack.length;if(n<2)return!1;const r=this.stack[n-1],i=this.stack[n-2];return r.op===Zae.Op.LITERAL&&i.op===Zae.Op.LITERAL&&(r.flags&eae.FOLD_CASE)===(i.flags&eae.FOLD_CASE)&&(i.runes=f.concatRunes(i.runes,r.runes),e>=0?(r.runes=[e],r.flags=t,!0):(this.pop(),this.reuse(r),!1))}newLiteral(e,t){const n=this.newRegexp(Zae.Op.LITERAL);return n.flags=t,0!==(t&eae.FOLD_CASE)&&(e=f.minFoldRune(e)),n.runes=[e],n}literal(e){this.push(this.newLiteral(e,this.flags))}op(e){const t=this.newRegexp(e);return t.flags=this.flags,this.push(t)}repeat(e,t,n,r,i,a){let s=this.flags;if(0!==(s&eae.PERL_X)&&(i.more()&&i.lookingAt("?")&&(i.skip(1),s^=eae.NON_GREEDY),-1!==a))throw new Pae(f.ERR_INVALID_REPEAT_OP,i.from(a));const o=this.stack.length;if(0===o)throw new Pae(f.ERR_MISSING_REPEAT_ARGUMENT,i.from(r));const l=this.stack[o-1];if(Zae.isPseudoOp(l.op))throw new Pae(f.ERR_MISSING_REPEAT_ARGUMENT,i.from(r));const u=this.newRegexp(e);if(u.min=t,u.max=n,u.flags=s,u.subs=[l],this.stack[o-1]=u,this.checkLimits(u),e===Zae.Op.REPEAT&&(t>=2||n>=2)&&!this.repeatIsValid(u,1e3))throw new Pae(f.ERR_INVALID_REPEAT_SIZE,i.from(r))}repeatIsValid(e,t){if(e.op===Zae.Op.REPEAT){let n=e.max;if(0===n)return!0;if(n<0&&(n=e.min),n>t)return!1;n>0&&(t=Math.trunc(t/n))}for(let n of e.subs)if(!this.repeatIsValid(n,t))return!1;return!0}concat(){this.maybeConcat(-1,0);const e=this.popToPseudo();return 0===e.length?this.push(this.newRegexp(Zae.Op.EMPTY_MATCH)):this.push(this.collapse(e,Zae.Op.CONCAT))}alternate(){const e=this.popToPseudo();return e.length>0&&this.cleanAlt(e[e.length-1]),0===e.length?this.push(this.newRegexp(Zae.Op.NO_MATCH)):this.push(this.collapse(e,Zae.Op.ALTERNATE))}cleanAlt(e){e.op===Zae.Op.CHAR_CLASS&&(e.runes=new Sse(e.runes).cleanClass().toArray(),2===e.runes.length&&0===e.runes[0]&&e.runes[1]===vae.MAX_RUNE?(e.runes=[],e.op=Zae.Op.ANY_CHAR):4===e.runes.length&&0===e.runes[0]&&e.runes[1]===dae.CODES.get("\n")-1&&e.runes[2]===dae.CODES.get("\n")+1&&e.runes[3]===vae.MAX_RUNE&&(e.runes=[],e.op=Zae.Op.ANY_CHAR_NOT_NL))}collapse(e,t){if(1===e.length)return e[0];let n=0;for(let s of e)n+=s.op===t?s.subs.length:1;let r=new Array(n).fill(null),i=0;for(let s of e)if(s.op===t){for(let e=0;e<s.subs.length;e++)r[i++]=s.subs[e];this.reuse(s)}else r[i++]=s;let a=this.newRegexp(t);if(a.subs=r,t===Zae.Op.ALTERNATE&&(a.subs=this.factor(a.subs),1===a.subs.length)){const e=a;a=a.subs[0],this.reuse(e)}return a}factor(e){if(e.length<2)return e;let t=0,n=e.length,r=0,i=null,a=0,s=0,o=0;for(let u=0;u<=n;u++){let l=null,c=0,d=0;if(u<n){let n=e[t+u];if(n.op===Zae.Op.CONCAT&&n.subs.length>0&&(n=n.subs[0]),n.op===Zae.Op.LITERAL&&(l=n.runes,c=n.runes.length,d=n.flags&eae.FOLD_CASE),d===s){let e=0;for(;e<a&&e<c&&i[e]===l[e];)e++;if(e>0){a=e;continue}}}if(u===o);else if(u===o+1)e[r++]=e[t+o];else{const n=this.newRegexp(Zae.Op.LITERAL);n.flags=s,n.runes=i.slice(0,a);for(let r=o;r<u;r++)e[t+r]=this.removeLeadingString(e[t+r],a),this.checkLimits(e[t+r]);const l=this.collapse(e.slice(t+o,t+u),Zae.Op.ALTERNATE),c=this.newRegexp(Zae.Op.CONCAT);c.subs=[n,l],e[r++]=c}o=u,i=l,a=c,s=d}n=r,t=0,o=0,r=0;let l=null;for(let u=0;u<=n;u++){let i=null;if(!(u<n&&(i=f.leadingRegexp(e[t+u]),null!==l&&l.equals(i)&&(f.isCharClass(l)||l.op===Zae.Op.REPEAT&&l.min===l.max&&f.isCharClass(l.subs[0]))))){if(u===o);else if(u===o+1)e[r++]=e[t+o];else{const n=l;for(let r=o;r<u;r++){const n=r!==o;e[t+r]=this.removeLeadingRegexp(e[t+r],n),this.checkLimits(e[t+r])}const i=this.collapse(e.slice(t+o,t+u),Zae.Op.ALTERNATE),a=this.newRegexp(Zae.Op.CONCAT);a.subs=[n,i],e[r++]=a}o=u,l=i}}n=r,t=0,o=0,r=0;for(let u=0;u<=n;u++)if(!(u<n&&f.isCharClass(e[t+u]))){if(u===o);else if(u===o+1)e[r++]=e[t+o];else{let n=o;for(let r=o+1;r<u;r++){const i=e[t+n],a=e[t+r];(i.op<a.op||i.op===a.op&&(null!==i.runes?i.runes.length:0)<(null!==a.runes?a.runes.length:0))&&(n=r)}const i=e[t+o];e[t+o]=e[t+n],e[t+n]=i;for(let r=o+1;r<u;r++)f.mergeCharClass(e[t+o],e[t+r]),this.reuse(e[t+r]);this.cleanAlt(e[t+o]),e[r++]=e[t+o]}u<n&&(e[r++]=e[t+u]),o=u+1}n=r,t=0,o=0,r=0;for(let u=0;u<n;++u)u+1<n&&e[t+u].op===Zae.Op.EMPTY_MATCH&&e[t+u+1].op===Zae.Op.EMPTY_MATCH||(e[r++]=e[t+u]);return n=r,t=0,e.slice(t,n)}removeLeadingString(e,t){if(e.op===Zae.Op.CONCAT&&e.subs.length>0){const n=this.removeLeadingString(e.subs[0],t);if(e.subs[0]=n,n.op===Zae.Op.EMPTY_MATCH)switch(this.reuse(n),e.subs.length){case 0:case 1:e.op=Zae.Op.EMPTY_MATCH,e.subs=Zae.emptySubs();break;case 2:{const t=e;e=e.subs[1],this.reuse(t);break}default:e.subs=e.subs.slice(1,e.subs.length)}return e}return e.op===Zae.Op.LITERAL&&(e.runes=e.runes.slice(t,e.runes.length),0===e.runes.length&&(e.op=Zae.Op.EMPTY_MATCH)),e}removeLeadingRegexp(e,t){if(e.op===Zae.Op.CONCAT&&e.subs.length>0){switch(t&&this.reuse(e.subs[0]),e.subs=e.subs.slice(1,e.subs.length),e.subs.length){case 0:e.op=Zae.Op.EMPTY_MATCH,e.subs=Zae.emptySubs();break;case 1:{const t=e;e=e.subs[0],this.reuse(t);break}}return e}return t&&this.reuse(e),this.newRegexp(Zae.Op.EMPTY_MATCH)}parseInternal(){if(0!==(this.flags&eae.LITERAL))return f.literalRegexp(this.wholeRegexp,this.flags);let e=-1,t=-1,n=-1;const r=new xse(this.wholeRegexp);for(;r.more();){let i=-1;e:switch(r.peek()){case dae.CODES.get("("):if(0!==(this.flags&eae.LOOKBEHIND)){if(r.lookingAt("(?<=")){this.parsePosLookBehind(),r.skip(4);break}if(r.lookingAt("(?<!")){this.parseNegLookBehind(),r.skip(4);break}}if(0!==(this.flags&eae.PERL_X)&&r.lookingAt("(?")){this.parsePerlFlags(r);break}this.op(Zae.Op.LEFT_PAREN).cap=++this.numCap,r.skip(1);break;case dae.CODES.get("|"):this.parseVerticalBar(),r.skip(1);break;case dae.CODES.get(")"):this.parseRightParen(),r.skip(1);break;case dae.CODES.get("^"):0!==(this.flags&eae.ONE_LINE)?this.op(Zae.Op.BEGIN_TEXT):this.op(Zae.Op.BEGIN_LINE),r.skip(1);break;case dae.CODES.get("$"):0!==(this.flags&eae.ONE_LINE)?this.op(Zae.Op.END_TEXT).flags|=eae.WAS_DOLLAR:this.op(Zae.Op.END_LINE),r.skip(1);break;case dae.CODES.get("."):0!==(this.flags&eae.DOT_NL)?this.op(Zae.Op.ANY_CHAR):this.op(Zae.Op.ANY_CHAR_NOT_NL),r.skip(1);break;case dae.CODES.get("["):this.parseClass(r);break;case dae.CODES.get("*"):case dae.CODES.get("+"):case dae.CODES.get("?"):{i=r.pos();let a=null;switch(r.pop()){case dae.CODES.get("*"):a=Zae.Op.STAR;break;case dae.CODES.get("+"):a=Zae.Op.PLUS;break;case dae.CODES.get("?"):a=Zae.Op.QUEST}this.repeat(a,t,n,i,r,e);break}case dae.CODES.get("{"):{i=r.pos();const a=f.parseRepeat(r);if(a<0){r.rewindTo(i),this.literal(r.pop());break}t=a>>16,n=(a&vae.MAX_BMP)<<16>>16,this.repeat(Zae.Op.REPEAT,t,n,i,r,e);break}case dae.CODES.get("\\"):{const e=r.pos();if(r.skip(1),0!==(this.flags&eae.PERL_X)&&r.more())switch(r.pop()){case dae.CODES.get("A"):this.op(Zae.Op.BEGIN_TEXT);break e;case dae.CODES.get("b"):this.op(Zae.Op.WORD_BOUNDARY);break e;case dae.CODES.get("B"):this.op(Zae.Op.NO_WORD_BOUNDARY);break e;case dae.CODES.get("C"):throw new Pae(f.ERR_INVALID_ESCAPE,"\\C");case dae.CODES.get("Q"):{let e=r.rest();const t=e.indexOf("\\E");t>=0?(e=e.substring(0,t),r.skipString(e),r.skipString("\\E")):r.skipString(e);let n=0;for(;n<e.length;){const t=e.codePointAt(n);this.literal(t),n+=bae.charCount(t)}break e}case dae.CODES.get("z"):this.op(Zae.Op.END_TEXT);break e;default:r.rewindTo(e)}else r.rewindTo(e);const t=this.newRegexp(Zae.Op.CHAR_CLASS);if(t.flags=this.flags,r.lookingAt("\\p")||r.lookingAt("\\P")){const e=new Sse;if(this.parseUnicodeClass(r,e)){t.runes=e.toArray(),this.push(t);break e}}const n=new Sse;if(this.parsePerlClassEscape(r,n)){t.runes=n.toArray(),this.push(t);break e}r.rewindTo(e),this.reuse(t),this.literal(f.parseEscape(r));break}default:this.literal(r.pop())}e=i}if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),1!==this.stack.length)throw new Pae(f.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(e){const t=e.pos(),n=e.rest();if(n.startsWith("(?P<")||n.startsWith("(?<")){const t="P"===n.charAt(2)?4:3,r=n.indexOf(">");if(r<0)throw new Pae(f.ERR_INVALID_NAMED_CAPTURE,n);const i=n.substring(t,r);if(e.skipString(i),e.skip(t+1),!f.isValidCaptureName(i))throw new Pae(f.ERR_INVALID_NAMED_CAPTURE,n.substring(0,r+1));const a=this.op(Zae.Op.LEFT_PAREN);if(a.cap=++this.numCap,this.namedGroups[i])throw new Pae(f.ERR_DUPLICATE_NAMED_CAPTURE,i);return this.namedGroups[i]=this.numCap,void(a.name=i)}e.skip(2);let r=this.flags,i=1,a=!1;e:for(;e.more();){const t=e.pop();switch(t){case dae.CODES.get("i"):r|=eae.FOLD_CASE,a=!0;break;case dae.CODES.get("m"):r&=~eae.ONE_LINE,a=!0;break;case dae.CODES.get("s"):r|=eae.DOT_NL,a=!0;break;case dae.CODES.get("U"):r|=eae.NON_GREEDY,a=!0;break;case dae.CODES.get("-"):if(i<0)break e;i=-1,r=~r,a=!1;break;case dae.CODES.get(":"):case dae.CODES.get(")"):if(i<0){if(!a)break e;r=~r}return t===dae.CODES.get(":")&&this.op(Zae.Op.LEFT_PAREN),void(this.flags=r);default:break e}}throw new Pae(f.ERR_INVALID_PERL_OP,e.from(t))}parsePosLookBehind(){const e=this.newRegexp(Zae.Op.LEFT_PAREN);return e.flags=this.flags,e.lb=++this.nlb,this.push(e)}parseNegLookBehind(){const e=this.newRegexp(Zae.Op.LEFT_PAREN);return e.flags=this.flags,e.lb=-++this.nlb,this.push(e)}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(Zae.Op.VERTICAL_BAR)}swapVerticalBar(){const e=this.stack.length;if(e>=3&&this.stack[e-2].op===Zae.Op.VERTICAL_BAR&&f.isCharClass(this.stack[e-1])&&f.isCharClass(this.stack[e-3])){let t=this.stack[e-1],n=this.stack[e-3];if(t.op>n.op){const r=n;n=t,t=r,this.stack[e-3]=n}return f.mergeCharClass(n,t),this.reuse(t),this.pop(),!0}if(e>=2){const t=this.stack[e-1],n=this.stack[e-2];if(n.op===Zae.Op.VERTICAL_BAR)return e>=3&&this.cleanAlt(this.stack[e-3]),this.stack[e-2]=t,this.stack[e-1]=n,!0}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length<2)throw new Pae(f.ERR_UNEXPECTED_PAREN,this.wholeRegexp);const e=this.pop(),t=this.pop();if(t.op!==Zae.Op.LEFT_PAREN)throw new Pae(f.ERR_UNEXPECTED_PAREN,this.wholeRegexp);if(this.flags=t.flags,0!==t.lb){if(f.hasCapture(e))throw new Pae(f.ERR_INVALID_CAPTURE_IN_LOOKBEHIND,this.wholeRegexp);return t.lb>0?t.op=Zae.Op.PLB:t.op=Zae.Op.NLB,t.subs=[e],void this.push(t)}
22720===t.cap?this.push(e):(t.op=Zae.Op.CAPTURE,t.subs=[e],this.push(t))}parsePerlClassEscape(e,t){const n=e.pos();if(0===(this.flags&eae.PERL_X)||!e.more()||e.pop()!==dae.CODES.get("\\")||!e.more())return!1;e.pop();const r=e.from(n),i=dse.has(r)?dse.get(r):null;return null!==i&&(t.appendGroup(i,0!==(this.flags&eae.FOLD_CASE)),!0)}parseNamedClass(e,t){const n=e.rest(),r=n.indexOf(":]");if(r<0)return!1;const i=n.substring(0,r+2);e.skipString(i);const a=kse.has(i)?kse.get(i):null;if(null===a)throw new Pae(f.ERR_INVALID_CHAR_RANGE,i);return t.appendGroup(a,0!==(this.flags&eae.FOLD_CASE)),!0}parseUnicodeClass(e,t){const n=e.pos();if(0===(this.flags&eae.UNICODE_GROUPS)||!e.lookingAt("\\p")&&!e.lookingAt("\\P"))return!1;e.skip(1);let r,i=1,a=e.pop();if(a===dae.CODES.get("P")&&(i=-1),!e.more())throw e.rewindTo(n),new Pae(f.ERR_INVALID_CHAR_RANGE,e.rest());if(a=e.pop(),a!==dae.CODES.get("{"))r=bae.runeToString(a);else{const t=e.rest(),i=t.indexOf("}");if(i<0)throw e.rewindTo(n),new Pae(f.ERR_INVALID_CHAR_RANGE,e.rest());r=t.substring(0,i),e.skipString(r),e.skip(1)}0!==r.length&&r.codePointAt(0)===dae.CODES.get("^")&&(i=0-i,r=r.substring(1));const s=f.unicodeTable(r);if(null===s)throw new Pae(f.ERR_INVALID_CHAR_RANGE,e.from(n));s.sign<0&&(i=0-i);const o=s.tab,l=s.fold;if(0===(this.flags&eae.FOLD_CASE)||null===l)t.appendTableWithSign(o,i);else{const e=(new Sse).appendTable(o).appendTable(l).cleanClass().toArray();t.appendClassWithSign(e,i)}return!0}parseClass(e){const t=e.pos();e.skip(1);const n=this.newRegexp(Zae.Op.CHAR_CLASS);n.flags=this.flags;const r=new Sse;let i=1;e.more()&&e.lookingAt("^")&&(i=-1,e.skip(1),0===(this.flags&eae.CLASS_NL)&&r.appendRange(dae.CODES.get("\n"),dae.CODES.get("\n")));let a=!0;for(;!e.more()||e.peek()!==dae.CODES.get("]")||a;){if(e.more()&&e.lookingAt("-")&&0===(this.flags&eae.PERL_X)&&!a){const n=e.rest();if("-"===n||!n.startsWith("-]"))throw e.rewindTo(t),new Pae(f.ERR_INVALID_CHAR_RANGE,e.rest())}a=!1;const n=e.pos();if(e.lookingAt("[:")){if(this.parseNamedClass(e,r))continue;e.rewindTo(n)}if(this.parseUnicodeClass(e,r))continue;if(this.parsePerlClassEscape(e,r))continue;e.rewindTo(n);const i=f.parseClassChar(e,t);let s=i;if(e.more()&&e.lookingAt("-"))if(e.skip(1),e.more()&&e.lookingAt("]"))e.skip(-1);else if(s=f.parseClassChar(e,t),s<i)throw new Pae(f.ERR_INVALID_CHAR_RANGE,e.from(n));0===(this.flags&eae.FOLD_CASE)?r.appendRange(i,s):r.appendFoldedRange(i,s)}e.skip(1),r.cleanClass(),i<0&&r.negateClass(),n.runes=r.toArray(),this.push(n)}},i(f,"ERR_INTERNAL_ERROR","regexp/syntax: internal error"),i(f,"ERR_INVALID_CHAR_RANGE","invalid character class range"),i(f,"ERR_INVALID_ESCAPE","invalid escape sequence"),i(f,"ERR_INVALID_NAMED_CAPTURE","invalid named capture"),i(f,"ERR_INVALID_PERL_OP","invalid or unsupported Perl syntax"),i(f,"ERR_INVALID_REPEAT_OP","invalid nested repetition operator"),i(f,"ERR_INVALID_REPEAT_SIZE","invalid repeat count"),i(f,"ERR_MISSING_BRACKET","missing closing ]"),i(f,"ERR_MISSING_PAREN","missing closing )"),i(f,"ERR_MISSING_REPEAT_ARGUMENT","missing argument to repetition operator"),i(f,"ERR_TRAILING_BACKSLASH","trailing backslash at end of expression"),i(f,"ERR_DUPLICATE_NAMED_CAPTURE","duplicate capture group name"),i(f,"ERR_UNEXPECTED_PAREN","unexpected )"),i(f,"ERR_NESTING_DEPTH","expression nests too deeply"),i(f,"ERR_LARGE","expression too large"),i(f,"ERR_INVALID_CAPTURE_IN_LOOKBEHIND","invalid capture in lookbehind"),i(f,"MAX_HEIGHT",1e3),i(f,"MAX_SIZE",3355443),i(f,"MAX_RUNES",33554432),i(f,"ANY_TABLE",new hae(new Uint32Array([0,vae.MAX_RUNE,1]))),i(f,"ASCII_TABLE",new hae(new Uint32Array([0,127,1]))),i(f,"ASCII_FOLD_TABLE",new hae(new Uint32Array([0,127,1,383,383,1,8490,8490,1]))),f),Ose=class e{static initTest(t){const n=e.compile(t),r=new e(n.expr,n.prog,n.numSubexp,n.longest);return r.cond=n.cond,r.prefix=n.prefix,r.prefixUTF8=n.prefixUTF8,r.prefixComplete=n.prefixComplete,r.prefixRune=n.prefixRune,r.prefilter=n.prefilter,r}static compile(t){return e.compileImpl(t,eae.PERL,!1)}static compilePOSIX(t){return e.compileImpl(t,eae.POSIX,!0)}static compileImpl(t,n,r){let i=Tse.parse(t,n);const a=i.maxCap();i=sse.simplify(i);const s=tse.build(i),o=ase.compileRegexp(i),l=new e(t,o,a,r);
vendor: 10,463 bytes, line 2272
2272l.prefilter=s.type===ese.Type.NONE?null:s;const[u,c]=o.prefix();return l.prefixComplete=u,l.prefix=c,l.prefixUTF8=bae.stringToUtf8ByteArray(l.prefix),l.prefix.length>0&&(l.prefixRune=l.prefix.codePointAt(0)),l.namedGroups=i.namedGroups,l}static match(t,n){return e.compile(t).match(n)}constructor(e,t,n=0,r=0){this.expr=e,this.prog=t,this.numSubexp=n,this.longest=r,this.cond=t.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.machinePool=[],this.dfa=new qae(this.prog),this.onepass=Qae.compile(this.prog),this.prefilter=null}matchPrefixComplete(e,t,n,r){if((n===eae.ANCHOR_START||n===eae.ANCHOR_BOTH)&&0!==t)return null;let i=-1,a=-1;const s=e.prefixLength(this);if(n===eae.UNANCHORED){const n=e.index(this,t);if(n<0)return null;i=t+n,a=i+s}else if(n===eae.ANCHOR_BOTH){if(e.endPos()!==s)return null;if(0!==e.index(this,0))return null;i=0,a=s}else if(n===eae.ANCHOR_START){if(0!==e.index(this,0))return null;i=0,a=s}if(i<0)return null;if(r>0){const e=new Int32Array(r).fill(-1);return e[0]=i,e[1]=a,Array.from(e)}return[]}executeEngine(e,t,n,r){if(this.prefixComplete&&(0===r||0===this.numSubexp))return this.matchPrefixComplete(e,t,n,r);if(null!==this.prefilter&&n===eae.UNANCHORED&&!this.prefilter.eval(e,t))return null;if(null!==this.onepass)return Qae.execute(this,e,t,n,r);if(r>0)return 0===this.prog.numLb&&e.endPos()<=zae.maxBitStateLen(this.prog)?zae.execute(this,e,t,n,r):this.doExecuteNFA(e,t,n,r);if(0===this.prog.numLb){const i=this.dfa.match(e,t,n);if(null!==i)return i?[]:null;if(e.endPos()<=zae.maxBitStateLen(this.prog))return zae.execute(this,e,t,n,r)}return this.doExecuteNFA(e,t,n,r)}numberOfCapturingGroups(){return this.numSubexp}numberOfInstructions(){return this.prog.numInst()}get(){return this.machinePool.length>0?this.machinePool.pop():null}reset(){this.machinePool.length=0}put(e){this.machinePool.push(e)}toString(){return this.expr}doExecuteNFA(e,t,n,r){let i=this.get();i||(i=Uae.fromRE2(this)),i.init(r);const a=i.match(e,t,n)?i.submatches():null;return this.put(i),a}match(e){return null!==this.executeEngine(Aae.fromUTF16(e),0,eae.UNANCHORED,0)}matchWithGroup(e,t,n,r,i){return e instanceof Dae||(e=bae.isByteArray(e)?Sae.utf8(e):Sae.utf16(e)),this.matchMachineInput(e,t,n,r,i)}matchMachineInput(e,t,n,r,i){if(t>n)return[!1,null];const a=e.isUTF16Encoding()?Aae.fromUTF16(e.asCharSequence(),0,n):Aae.fromUTF8(e.asBytes(),0,n),s=this.executeEngine(a,t,r,2*i);return null===s?[!1,null]:[!0,s]}matchUTF8(e){return null!==this.executeEngine(Aae.fromUTF8(e),0,eae.UNANCHORED,0)}replaceAll(e,t){return this.replaceAllFunc(e,()=>t,2*e.length+1)}replaceFirst(e,t){return this.replaceAllFunc(e,()=>t,1)}replaceAllFunc(e,t,n){let r=0,i=0,a="";const s=Aae.fromUTF16(e);let o=0;for(;i<=e.length;){const l=this.executeEngine(s,i,eae.UNANCHORED,2);if(null===l||0===l.length)break;a+=e.substring(r,l[0]),(l[1]>r||0===l[0])&&(a+=t(e.substring(l[0],l[1])),o++),r=l[1];const u=7&s.step(i);if(i+u>l[1]?i+=u:i+1>l[1]?i++:i=l[1],o>=n)break}return a+=e.substring(r),a}pad(e){if(null===e)return null;let t=2*(1+this.numSubexp);if(e.length<t){let n=new Array(t).fill(-1);for(let t=0;t<e.length;t++)n[t]=e[t];e=n}return e}allMatches(e,t,n=e=>e){let r=[];const i=e.endPos();t<0&&(t=i+1);let a=0,s=0,o=-1;for(;s<t&&a<=i;){const t=this.executeEngine(e,a,eae.UNANCHORED,this.prog.numCap);if(null===t||0===t.length)break;let l=!0;if(t[1]===a){t[0]===o&&(l=!1);const n=e.step(a);n<0?a=i+1:a+=7&n}else a=t[1];o=t[1],l&&(r.push(n(this.pad(t))),s++)}return r}findUTF8(e){const t=this.executeEngine(Aae.fromUTF8(e),0,eae.UNANCHORED,2);return null===t?null:e.slice(t[0],t[1])}findUTF8Index(e){const t=this.executeEngine(Aae.fromUTF8(e),0,eae.UNANCHORED,2);return null===t?null:t.slice(0,2)}find(e){const t=this.executeEngine(Aae.fromUTF16(e),0,eae.UNANCHORED,2);return null===t?"":e.substring(t[0],t[1])}findIndex(e){return this.executeEngine(Aae.fromUTF16(e),0,eae.UNANCHORED,2)}findUTF8Submatch(e){const t=this.executeEngine(Aae.fromUTF8(e),0,eae.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n}findUTF8SubmatchIndex(e){return this.pad(this.executeEngine(Aae.fromUTF8(e),0,eae.UNANCHORED,this.prog.numCap))}findSubmatch(e){const t=this.executeEngine(Aae.fromUTF16(e),0,eae.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n}findSubmatchIndex(e){return this.pad(this.executeEngine(Aae.fromUTF16(e),0,eae.UNANCHORED,this.prog.numCap))}findAllUTF8(e,t){const n=this.allMatches(Aae.fromUTF8(e),t,t=>e.slice(t[0],t[1]));return 0===n.length?null:n}findAllUTF8Index(e,t){const n=this.allMatches(Aae.fromUTF8(e),t,e=>e.slice(0,2));return 0===n.length?null:n}findAll(e,t){const n=this.allMatches(Aae.fromUTF16(e),t,t=>e.substring(t[0],t[1]));return 0===n.length?null:n}findAllIndex(e,t){const n=this.allMatches(Aae.fromUTF16(e),t,e=>e.slice(0,2));return 0===n.length?null:n}findAllUTF8Submatch(e,t){const n=this.allMatches(Aae.fromUTF8(e),t,t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n});return 0===n.length?null:n}findAllUTF8SubmatchIndex(e,t){const n=this.allMatches(Aae.fromUTF8(e),t);return 0===n.length?null:n}findAllSubmatch(e,t){const n=this.allMatches(Aae.fromUTF16(e),t,t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n});return 0===n.length?null:n}findAllSubmatchIndex(e,t){const n=this.allMatches(Aae.fromUTF16(e),t);return 0===n.length?null:n}},Ase=class e{static isHexadecimal(e){return"0"<=e&&e<="9"||"A"<=e&&e<="F"||"a"<=e&&e<="f"}static translate(t){let n="";if(t instanceof RegExp&&(t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t=t.source),"string"!=typeof t)return t;let r="",i=!1,a=t.length;0===a&&(r="(?:)",i=!0);let s=!1,o=0;for(;o<a;){let n=t[o];if("\\"===n){if(o+1<a)switch(n=t[o+1],n){case"\\":r+="\\\\",o+=2;continue;case"c":if(o+2<a){let e=t[o+2].charCodeAt(0);if(e>=65&&e<=90||e>=97&&e<=122){let t=e%32;r+="\\x",r+=(t>>4).toString(16).toUpperCase(),r+=(15&t).toString(16).toUpperCase(),o+=3,i=!0;continue}}r+="c",o+=2,i=!0;continue;case"u":if(o+2<a)if("{"===t[o+2]){let n=o+3,s=!1,l=!1;for(;n<a;){const r=t[n];if("}"===r){l=!0;break}if(!e.isHexadecimal(r))break;s=!0,n++}if(l&&s){r+="\\x",o+=2,i=!0;continue}}else if(o+5<a){let n=!0;for(let r=0;r<4;r++)if(!e.isHexadecimal(t[o+2+r])){n=!1;break}if(n){r+="\\x{"+t.substring(o+2,o+6)+"}",o+=6,i=!0;continue}}r+="u",o+=2,i=!0;continue;case"x":{let n=!1;if(o+2<a&&"{"===t[o+2]){let r=o+3,i=!1,s=!1;for(;r<a;){const n=t[r];if("}"===n){s=!0;break}if(!e.isHexadecimal(n))break;i=!0,r++}s&&i&&(n=!0)}else o+3<a&&e.isHexadecimal(t[o+2])&&e.isHexadecimal(t[o+3])&&(n=!0);n?(r+="\\x",o+=2):(r+="x",o+=2,i=!0);continue}case"n":case"r":case"t":case"a":case"f":case"v":case"d":case"D":case"s":case"S":case"w":case"W":case"b":case"B":case"p":case"P":case"A":case"z":case"Q":case"E":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":r+="\\"+n,o+=2;continue;default:{let e=t.codePointAt(o+1);if(e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122){let n=bae.charCount(e);r+=t.substring(o+1,o+1+n),o+=n+1,i=!0}else{r+="\\";let n=bae.charCount(e);r+=t.substring(o+1,o+1+n),o+=n+1}continue}}}else{if("/"===n){r+="\\/",o+=1,i=!0;continue}if("["===n)s=!0;else if("]"===n)s=!1;else if(!s&&"("===n&&o+2<a&&"?"===t[o+1]&&"<"===t[o+2]&&o+3<a&&!"=!>)".includes(t[o+3])){r+="(?P<",o+=3,i=!0;continue}}let l=t.codePointAt(o),u=bae.charCount(l);r+=t.substring(o,o+u),o+=u}const l=i?r:t;return n.length>0?`(?${n})${l}`:l}};B=class{static quote(e){return bae.quoteMeta(e)}static quoteReplacement(e,t=!1){return Lae.quoteReplacement(e,t)}static translateRegExp(e){return Ase.translate(e)}static compile(e,t=0){let n=e;if(0!==(t&B.CASE_INSENSITIVE)&&(n=`(?i)${n}`),0!==(t&B.DOTALL)&&(n=`(?s)${n}`),0!==(t&B.MULTILINE)&&(n=`(?m)${n}`),0!==(t&~(B.MULTILINE|B.DOTALL|B.CASE_INSENSITIVE|B.DISABLE_UNICODE_GROUPS|B.LONGEST_MATCH|B.LOOKBEHINDS)))throw new Mae("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH, LOOKBEHINDS");let r=eae.PERL;0!==(t&B.DISABLE_UNICODE_GROUPS)&&(r&=~eae.UNICODE_GROUPS),0!==(t&B.LOOKBEHINDS)&&(r|=eae.LOOKBEHIND);const i=new B(e,t);return i.re2Input=Ose.compileImpl(n,r,0!==(t&B.LONGEST_MATCH)),i}static matches(e,t){return B.compile(e).testExact(t)}static initTest(e,t,n){if(null==e)throw new Error("pattern is null");if(null==n)throw new Error("re2 is null");const r=new B(e,t);return r.re2Input=n,r}constructor(e,t){this.patternInput=e,this.flagsInput=t,this.re2Input=null}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(e){return this.testExact(e)}matcher(e){return bae.isByteArray(e)&&(e=Sae.utf8(e)),new Lae(this,e)}test(e){return bae.isByteArray(e)?this.re2Input.matchUTF8(e):this.re2Input.match(e)}testExact(e){const t=bae.isByteArray(e)?Aae.fromUTF8(e):Aae.fromUTF16(e);return null!==this.re2Input.executeEngine(t,0,eae.ANCHOR_BOTH,0)}exec(e){const t=this.matcher(e);if(!t.find())return null;const n=[t.group(0)];for(let i=1;i<=t.groupCount();i++){const e=t.group(i);n.push(null===e?void 0:e)}n.index=t.start(0),n.input=e;const r=this.namedGroups();if(Object.keys(r).length>0){const e=t.getNamedGroups();for(const t in e)null===e[t]&&(e[t]=void 0);n.groups=e}else n.groups=void 0;return n}split(e,t=0){const n=this.matcher(e),r=[];let i=0,a=0;for(;n.find();)if(0!==a||0!==n.end()){if(t>0&&r.length===t-1)break;if(a===n.start()){if(0===t){i+=1,a=n.end();continue}}else for(;i>0;)r.push(""),i-=1;r.push(n.substring(a,n.start())),a=n.end()}else a=n.end();if(0===t&&a!==n.inputLength()){for(;i>0;)r.push(""),i-=1;r.push(n.substring(a,n.inputLength()))}return 0===t&&(0!==r.length||a===n.inputLength()&&a>0)||r.push(n.substring(a,n.inputLength())),r}*matchAll(e){const t=this.matcher(e);for(;t.find();){const n=[t.group(0)];for(let e=1;e<=t.groupCount();e++){const r=t.group(e);n.push(null===r?void 0:r)}n.index=t.start(0),n.input=e;const r=this.namedGroups();if(Object.keys(r).length>0){const e=t.getNamedGroups();for(const t in e)null===e[t]&&(e[t]=void 0);n.groups=e}else n.groups=void 0;yield n}}toString(){return this.patternInput}
2272programSize(){return this.re2Input.numberOfInstructions()}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(e){return this===e||null!==e&&this.constructor===e.constructor&&this.flagsInput===e.flagsInput&&this.patternInput===e.patternInput}},i(B,"CASE_INSENSITIVE",tae),i(B,"DOTALL",nae),i(B,"MULTILINE",rae),i(B,"DISABLE_UNICODE_GROUPS",iae),i(B,"LONGEST_MATCH",aae),i(B,"LOOKBEHINDS",sae);
2273/**
2274     * @license
2275     * Copyright 2017 Google LLC
2276     *
2277     * Licensed under the Apache License, Version 2.0 (the "License");
2278     * you may not use this file except in compliance with the License.
2279     * You may obtain a copy of the License at
2280     *
2281     *   http://www.apache.org/licenses/LICENSE-2.0
2282     *
2283     * Unless required by applicable law or agreed to in writing, software
2284     * distributed under the License is distributed on an "AS IS" BASIS,
2285     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2286     * See the License for the specific language governing permissions and
2287     * limitations under the License.
2288     */
2289let Ise="12.19.0";
2290/**
2291     * @license
2292     * Copyright 2020 Google LLC
2293     *
2294     * Licensed under the Apache License, Version 2.0 (the "License");
2295     * you may not use this file except in compliance with the License.
2296     * You may obtain a copy of the License at
2297     *
2298     *   http://www.apache.org/licenses/LICENSE-2.0
2299     *
2300     * Unless required by applicable law or agreed to in writing, software
2301     * distributed under the License is distributed on an "AS IS" BASIS,
2302     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2303     * See the License for the specific language governing permissions and
2304     * limitations under the License.
2305     */
2306/**
2307     * @license
2308     * Copyright 2017 Google LLC
2309     *
2310     * Licensed under the Apache License, Version 2.0 (the "License");
2311     * you may not use this file except in compliance with the License.
2312     * You may obtain a copy of the License at
2313     *
2314     *   http://www.apache.org/licenses/LICENSE-2.0
2315     *
2316     * Unless required by applicable law or agreed to in writing, software
2317     * distributed under the License is distributed on an "AS IS" BASIS,
2318     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2319     * See the License for the specific language governing permissions and
2320     * limitations under the License.
2321     */
2322const Pse=new I1("@firebase/firestore");function Nse(e,...t){if(Pse.logLevel<=k1.DEBUG){const n=t.map(Mse);Pse.debug(`Firestore (${Ise}): ${e}`,...n)}}function Rse(e,...t){if(Pse.logLevel<=k1.ERROR){const n=t.map(Mse);Pse.error(`Firestore (${Ise}): ${e}`,...n)}}function Mse(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(n){return e}var t}
2323/**
2324     * @license
2325     * Copyright 2017 Google LLC
2326     *
2327     * Licensed under the Apache License, Version 2.0 (the "License");
2328     * you may not use this file except in compliance with the License.
2329     * You may obtain a copy of the License at
2330     *
2331     *   http://www.apache.org/licenses/LICENSE-2.0
2332     *
2333     * Unless required by applicable law or agreed to in writing, software
2334     * distributed under the License is distributed on an "AS IS" BASIS,
2335     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2336     * See the License for the specific language governing permissions and
2337     * limitations under the License.
2338     */function Fse(e,t,n){let r="Unexpected state";"string"==typeof t?r=t:n=t,Lse(e,r,n)}function Lse(e,t,n){let r=`FIRESTORE (${Ise}) INTERNAL ASSERTION FAILED: ${t} (ID: ${e.toString(16)})`;if(void 0!==n)try{r+=" CONTEXT: "+JSON.stringify(n)}catch(i){r+=" CONTEXT: "+n}throw Rse(r),new Error(r)}function jse(e,t,n,r){let i="Unexpected state";"string"==typeof n?i=n:r=n,e||Lse(t,i,r)}
2339/**
2340     * @license
2341     * Copyright 2020 Google LLC
2342     *
2343     * Licensed under the Apache License, Version 2.0 (the "License");
2344     * you may not use this file except in compliance with the License.
2345     * You may obtain a copy of the License at
2346     *
2347     *   http://www.apache.org/licenses/LICENSE-2.0
2348     *
2349     * Unless required by applicable law or agreed to in writing, softw
vendor: 4,592 bytes, lines 2349-2388
2349are
2350     * distributed under the License is distributed on an "AS IS" BASIS,
2351     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2352     * See the License for the specific language governing permissions and
2353     * limitations under the License.
2354     */
2355function Hse(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}
2356/**
2357     * @license
2358     * Copyright 2017 Google LLC
2359     *
2360     * Licensed under the Apache License, Version 2.0 (the "License");
2361     * you may not use this file except in compliance with the License.
2362     * You may obtain a copy of the License at
2363     *
2364     *   http://www.apache.org/licenses/LICENSE-2.0
2365     *
2366     * Unless required by applicable law or agreed to in writing, software
2367     * distributed under the License is distributed on an "AS IS" BASIS,
2368     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2369     * See the License for the specific language governing permissions and
2370     * limitations under the License.
2371     */class Use{static newId(){const e=62*Math.floor(256/62);let t="";for(;t.length<20;){const n=Hse(40);for(let r=0;r<n.length;++r)t.length<20&&n[r]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%62))}return t}}function Gse(e,t){return e<t?-1:e>t?1:0}function Yse(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.charAt(r),i=t.charAt(r);if(n!==i)return Vse(n)===Vse(i)?Gse(n,i):Vse(n)?1:-1}return Gse(e.length,t.length)}function Vse(e){const t=e.charCodeAt(0);return t>=55296&&t<=57343}
2372/**
2373     * @license
2374     * Copyright 2017 Google LLC
2375     *
2376     * Licensed under the Apache License, Version 2.0 (the "License");
2377     * you may not use this file except in compliance with the License.
2378     * You may obtain a copy of the License at
2379     *
2380     *   http://www.apache.org/licenses/LICENSE-2.0
2381     *
2382     * Unless required by applicable law or agreed to in writing, software
2383     * distributed under the License is distributed on an "AS IS" BASIS,
2384     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2385     * See the License for the specific language governing permissions and
2386     * limitations under the License.
2387     */
2388class qse{constructor(e,t){this.comparator=e,this.root=t||Wse.EMPTY}insert(e,t){return new qse(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,Wse.BLACK,null,null))}remove(e){return new qse(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Wse.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){const e=[];return this.inorderTraversal((t,n)=>(e.push(`${t}:${n}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new $se(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new $se(this.root,e,this.comparator,!1)}getReverseIterator(){return new $se(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new $se(this.root,e,this.comparator,!0)}}class $se{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class Wse{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:Wse.RED,this.left=null!=r?r:Wse.EMPTY,this.right=null!=i?i:Wse.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,i){return new Wse(null!=e?e:this.key,null!=t?t:this.value,
vendor: 4,709 bytes, lines 2388-2405
2388null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return Wse.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return Wse.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,Wse.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Wse.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw Fse(43730,{key:this.key,value:this.value});if(this.right.isRed())throw Fse(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw Fse(27949);return e+(this.isRed()?0:1)}}Wse.EMPTY=null,Wse.RED=!0,Wse.BLACK=!1,Wse.EMPTY=new class{constructor(){this.size=0}get key(){throw Fse(57766)}get value(){throw Fse(16141)}get color(){throw Fse(16727)}get left(){throw Fse(29726)}get right(){throw Fse(36894)}copy(e,t,n,r,i){return this}insert(e,t,n){return new Wse(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};
2389/**
2390     * @license
2391     * Copyright 2017 Google LLC
2392     *
2393     * Licensed under the Apache License, Version 2.0 (the "License");
2394     * you may not use this file except in compliance with the License.
2395     * You may obtain a copy of the License at
2396     *
2397     *   http://www.apache.org/licenses/LICENSE-2.0
2398     *
2399     * Unless required by applicable law or agreed to in writing, software
2400     * distributed under the License is distributed on an "AS IS" BASIS,
2401     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2402     * See the License for the specific language governing permissions and
2403     * limitations under the License.
2404     */
2405class zse{constructor(e){this.comparator=e,this.data=new qse(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new Jse(this.data.getIterator())}getIteratorFrom(e){return new Jse(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;
vendor: 4,089 bytes, lines 2405-2437
2405return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof zse))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new zse(this.comparator);return t.data=e,t}}class Jse{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}
2406/**
2407     * @license
2408     * Copyright 2017 Google LLC
2409     *
2410     * Licensed under the Apache License, Version 2.0 (the "License");
2411     * you may not use this file except in compliance with the License.
2412     * You may obtain a copy of the License at
2413     *
2414     *   http://www.apache.org/licenses/LICENSE-2.0
2415     *
2416     * Unless required by applicable law or agreed to in writing, software
2417     * distributed under the License is distributed on an "AS IS" BASIS,
2418     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2419     * See the License for the specific language governing permissions and
2420     * limitations under the License.
2421     */const Kse="cancelled",Qse="invalid-argument",Zse="failed-precondition";class Xse extends r1{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}
2422/**
2423     * @license
2424     * Copyright 2017 Google LLC
2425     *
2426     * Licensed under the Apache License, Version 2.0 (the "License");
2427     * you may not use this file except in compliance with the License.
2428     * You may obtain a copy of the License at
2429     *
2430     *   http://www.apache.org/licenses/LICENSE-2.0
2431     *
2432     * Unless required by applicable law or agreed to in writing, software
2433     * distributed under the License is distributed on an "AS IS" BASIS,
2434     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2435     * See the License for the specific language governing permissions and
2436     * limitations under the License.
2437     */const eoe="__name__";class toe{constructor(e,t,n){void 0===t?t=0:t>e.length&&Fse(637,{offset:t,range:e.length}),void 0===n?n=e.length-t:n>e.length-t&&Fse(1746,{length:n,range:e.length-t}),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===toe.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof toe?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=toe.compareSegments(e.get(r),t.get(r));if(0!==n)return n}return Gse(e.length,t.length)}static compareSegments(e,t){const n=toe.isNumericId(e),r=toe.isNumericId(t);return n&&!r?-1:!n&&r?1:n&&r?toe.extractNumericId(e).compare(toe.extractNumericId(t)):Yse(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Qie.fromString(e.substring(4,e.length-2))}}class noe extends toe{construct(e,t,n){return new noe(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toStringWithLeadingSlash(){return`/${this.canonicalString()}`}
vendor: 4,343 bytes, lines 2437-2475
2437toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const n of e){if(n.indexOf("//")>=0)throw new Xse(Qse,`Invalid segment (${n}). Paths must not contain // in them.`);t.push(...n.split("/").filter(e=>e.length>0))}return new noe(t)}static emptyPath(){return new noe([])}}const roe=/^[_a-zA-Z][_a-zA-Z0-9]*$/;let ioe=class e extends toe{construct(t,n,r){return new e(t,n,r)}static isValidIdentifier(e){return roe.test(e)}canonicalString(){return this.toArray().map(t=>(t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===eoe}static keyField(){return new e([eoe])}static fromServerFormat(t){const n=[];let r="",i=0;const a=()=>{if(0===r.length)throw new Xse(Qse,`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let s=!1;for(;i<t.length;){const e=t[i];if("\\"===e){if(i+1===t.length)throw new Xse(Qse,"Path has trailing escape character: "+t);const e=t[i+1];if("\\"!==e&&"."!==e&&"`"!==e)throw new Xse(Qse,"Path has invalid escape sequence: "+t);r+=e,i+=2}else"`"===e?(s=!s,i++):"."!==e||s?(r+=e,i++):(a(),i++)}if(a(),s)throw new Xse(Qse,"Unterminated ` in path: "+t);return new e(n)}static emptyPath(){return new e([])}};
2438/**
2439     * @license
2440     * Copyright 2017 Google LLC
2441     *
2442     * Licensed under the Apache License, Version 2.0 (the "License");
2443     * you may not use this file except in compliance with the License.
2444     * You may obtain a copy of the License at
2445     *
2446     *   http://www.apache.org/licenses/LICENSE-2.0
2447     *
2448     * Unless required by applicable law or agreed to in writing, software
2449     * distributed under the License is distributed on an "AS IS" BASIS,
2450     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2451     * See the License for the specific language governing permissions and
2452     * limitations under the License.
2453     */function aoe(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function soe(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}
2454/**
2455     * @license
2456     * Copyright 2017 Google LLC
2457     *
2458     * Licensed under the Apache License, Version 2.0 (the "License");
2459     * you may not use this file except in compliance with the License.
2460     * You may obtain a copy of the License at
2461     *
2462     *   http://www.apache.org/licenses/LICENSE-2.0
2463     *
2464     * Unless required by applicable law or agreed to in writing, software
2465     * distributed under the License is distributed on an "AS IS" BASIS,
2466     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2467     * See the License for the specific language governing permissions and
2468     * limitations under the License.
2469     */
2470class ooe{constructor(e){this.path=e}static fromPath(e){return new ooe(noe.fromString(e))}static fromName(e){return new ooe(noe.fromString(e).popFirst(5))}static empty(){return new ooe(noe.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===noe.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return noe.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ooe(new noe(e.slice()))}}function loe(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function uoe(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const n=(t=e).constructor?t.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var t;return"function"==typeof e?"a function":Fse(12329,{type:typeof e})}
2471/**
2472     * @license
2473     * Copyright 2025 Google LLC
2474     *
2475     * Licensed under the Apache License, Version 2.0 (the "License");
2476     * you may not use this file except in compliance with the License.
2477     * You may obtain a copy of the License at
2478     *
2479     *   http://www.apache.org/licenses/LICENSE-2.0
2480     *
2481     * Unless required by applicable law or agreed to in writing, software
2482     * distributed under the License is distributed on an "AS IS" BASIS,
2483     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2484     * See the License for the specific language governing permissions and
2485     * limitations under the License.
2486     */function coe(e,t){const n={typeString:e};return t&&(n.value=t),n}function doe(e,t){if(!loe(e))throw new Xse(Qse,"JSON must be an object");let n;for(const r in t)if(t[r]){const i=t[r].typeString,a="value"in t[r]?{value:t[r].value}:void 0;if(!(r in e)){n=`JSON missing required field: '${r}'`;break}const s=e[r];if(i&&typeof s!==i){n=`JSON field '${r}' must be a ${i}.`;break}if(void 0!==a&&s!==a.value){n=`Expected '${r}' field to equal '${a.value}'`;break}}if(n)throw new Xse(Qse,n);return!0}
2487/**
2488     * @license
2489     * Copyright 2017 Google LLC
2490     *
2491     * Licensed under the Apache License, Version 2.0 (the "License");
2492     * you may not use this file except in compliance with the License.
2493     * You may obtain a copy of the License at
2494     *
2495     *   http://www.apache.org/licenses/LICENSE-2.0
2496     *
2497     * Unless required by applicable law or agreed to in writing, software
2498     * distributed under the License is distributed on an "AS IS" BASIS,
2499     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2500     * See the License for the specific language governing permissions and
2501     * limitations under the License.
2502     */const hoe=-62135596800,poe=1e6;class foe{static now(){return foe.fromMillis(Date.now())}static fromDate(e){return foe.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*poe);return new foe(t,n)}static fromInstant(e){if(!e||"bigint"!=typeof e.t)throw new Xse(Qse,"Invalid Temporal.Instant object provided.");return foe._fromEpochNanoseconds(e.t)}
vendor: 4,082 bytes, lines 2502-2535
2502static _fromEpochNanoseconds(e){let t,n;if(e>=0n)t=Number(e/1000000000n),n=Number(e%1000000000n);else{const r=e%1000000000n;0n===r?(t=Number(e/1000000000n),n=0):(t=Number(e/1000000000n-1n),n=Number(r+1000000000n))}return new foe(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Xse(Qse,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Xse(Qse,"Timestamp nanoseconds out of range: "+t);if(e<hoe)throw new Xse(Qse,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Xse(Qse,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/poe}toInstant(){if("undefined"==typeof Temporal||!Temporal.Instant)throw new Xse(Zse,"The Temporal object is not available in the current environment.");const e=1000000000n*BigInt(this.seconds)+BigInt(this.nanoseconds);return Temporal.Instant.__PRIVATE_fromEpochNanoseconds(e)}_compareTo(e){return this.seconds===e.seconds?Gse(this.nanoseconds,e.nanoseconds):Gse(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:foe._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(doe(e,foe._jsonSchema))return new foe(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-hoe;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}foe._jsonSchemaVersion="firestore/timestamp/1.0",foe._jsonSchema={type:coe("string",foe._jsonSchemaVersion),seconds:coe("number"),nanoseconds:coe("number")};
2503/**
2504     * @license
2505     * Copyright 2023 Google LLC
2506     *
2507     * Licensed under the Apache License, Version 2.0 (the "License");
2508     * you may not use this file except in compliance with the License.
2509     * You may obtain a copy of the License at
2510     *
2511     *   http://www.apache.org/licenses/LICENSE-2.0
2512     *
2513     * Unless required by applicable law or agreed to in writing, software
2514     * distributed under the License is distributed on an "AS IS" BASIS,
2515     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2516     * See the License for the specific language governing permissions and
2517     * limitations under the License.
2518     */
2519class Boe extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}
2520/**
2521     * @license
2522     * Copyright 2020 Google LLC
2523     *
2524     * Licensed under the Apache License, Version 2.0 (the "License");
2525     * you may not use this file except in compliance with the License.
2526     * You may obtain a copy of the License at
2527     *
2528     *   http://www.apache.org/licenses/LICENSE-2.0
2529     *
2530     * Unless required by applicable law or agreed to in writing, software
2531     * distributed under the License is distributed on an "AS IS" BASIS,
2532     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2533     * See the License for the specific language governing permissions and
2534     * limitations under the License.
2535     */class moe{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(t){throw"undefined"!=typeof DOMException&&t instanceof DOMException?new Boe("Invalid base64 string: "+t):t}}(e);return new moe(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new moe(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Gse(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}moe.EMPTY_BYTE_STRING=new moe("");const goe=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2535function voe(e){if(jse(!!e,39018),"string"==typeof e){let t=0;const n=goe.exec(e);if(jse(!!n,46558,{timestamp:e}),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:yoe(e.seconds),nanos:yoe(e.nanos)}}function yoe(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Coe(e){return"string"==typeof e?moe.fromBase64String(e):moe.fromUint8Array(e)}
2536/**
2537     * @license
2538     * Copyright 2020 Google LLC
2539     *
2540     * Licensed under the Apache License, Version 2.0 (the "License");
2541     * you may not use this file except in compliance with the License.
2542     * You may obtain a copy of the License at
2543     *
2544     *   http://www.apache.org/licenses/LICENSE-2.0
2545     *
2546     * Unless required by applicable law or agreed to in writing, software
2547     * distributed under the License is distributed on an "AS IS" BASIS,
2548     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2549     * See the License for the specific language governing permissions and
2550     * limitations under the License.
2551     */function _oe(e){var t,n;return"server_timestamp"===(null==(n=((null==(t=null==e?void 0:e.mapValue)?void 0:t.fields)||{}).__type__)?void 0:n.stringValue)}function boe(e){const t=voe(e.mapValue.fields.__local_write_time__.timestampValue);return new foe(t.seconds,t.nanos)}const woe="(default)";class Doe{constructor(e,t){this.projectId=e,this.database=t||woe}static empty(){return new Doe("","")}get isDefaultDatabase(){return this.database===woe}isEqual(e){return e instanceof Doe&&e.projectId===this.projectId&&e.database===this.database}}function Eoe(e){return 0===e&&1/e==-1/0}
2552/**
2553     * @license
2554     * Copyright 2020 Google LLC
2555     *
2556     * Licensed under the Apache License, Version 2.0 (the "License");
2557     * you may not use this file except in compliance with the License.
2558     * You may obtain a copy of the License at
2559     *
2560     *   http://www.apache.org/licenses/LICENSE-2.0
2561     *
2562     * Unless required by applicable law or agreed to in writing, software
2563     * distributed under the License is distributed on an "AS IS" BASIS,
2564     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2565     * See the License for the specific language governing permissions and
2566     * limitations under the License.
2567     */
2568const koe="__type__",Soe="__max__",xoe={fields:{__type__:{stringValue:Soe}}},Toe="__vector__",Ooe="value";function Aoe(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?_oe(e)?4:function(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===Soe}
2569/**
2570     * @license
2571     * Copyright 2017 Google LLC
2572     *
2573     * Licensed under the Apache License, Version 2.0 (the "License");
2574     * you may not use this file except in compliance with the License.
2575     * You may obtain a copy of the License at
2576     *
2577     *   http://www.apache.org/licenses/LICENSE-2.0
2578     *
2579     * Unless required by applicable law or agreed to in writing, software
2580     * distributed under the License is distributed on an "AS IS" BASIS,
2581     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2582     * See the License for the specific language governing permissions and
2583     * limitations under the License.
2584     */(e)?9007199254740991:Foe(e)?10:11:Fse(28295,{value:e})}function Ioe(e,t,n){if(e===t)return!0;const r=Aoe(e);if(r!==Aoe(t))return!1;switch(r){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return boe(e).isEqual(boe(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=voe(e.timestampValue),r=voe(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return i=t,Coe(e.bytesValue).isEqual(Coe(i.bytesValue));case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return yoe(e.geoPointValue.latitude)===yoe(t.geoPointValue.latitude)&&yoe(e.geoPointValue.longitude)===yoe(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t,n){if("integerValue"in e&&"integerValue"in t)return yoe(e.integerValue)===yoe(t.integerValue);let r,i;if("doubleValue"in e&&"doubleValue"in t)r=yoe(e.doubleValue),i=yoe(t.doubleValue);else{if(!(null==n?void 0:n.i))return!1;r=yoe(e.integerValue??e.doubleValue),i=yoe(t.integerValue??t.doubleValue)}return r===i?!!(null==n?void 0:n.o)||Eoe(r)===Eoe(i):!(void 0!==n&&!n.u)&&isNaN(r)&&isNaN(i)}
vendor: 4,182 bytes, line 2584
2584(e,t,n);case 9:return function(e,t,n){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}(e.arrayValue.values||[],t.arrayValue.values||[],(e,t)=>Ioe(e,t,n));case 10:case 11:return function(e,t,n){const r=e.mapValue.fields||{},i=t.mapValue.fields||{};if(aoe(r)!==aoe(i))return!1;for(const a in r)if(r.hasOwnProperty(a)&&(void 0===i[a]||!Ioe(r[a],i[a],n)))return!1;return!0}(e,t,n);default:return Fse(52216,{left:e})}var i}function Poe(e,t){if(e===t)return 0;const n=Aoe(e),r=Aoe(t);if(n!==r)return Gse(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Gse(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=yoe(e.integerValue||e.doubleValue),r=yoe(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return Noe(e.timestampValue,t.timestampValue);case 4:return Noe(boe(e),boe(t));case 5:return Yse(e.stringValue,t.stringValue);case 6:return function(e,t){const n=Coe(e),r=Coe(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let i=0;i<n.length&&i<r.length;i++){const e=Gse(n[i],r[i]);if(0!==e)return e}return Gse(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=Gse(yoe(e.latitude),yoe(t.latitude));return 0!==n?n:Gse(yoe(e.longitude),yoe(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return Roe(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n,r,i,a;const s=e.fields||{},o=t.fields||{},l=null==(n=s[Ooe])?void 0:n.arrayValue,u=null==(r=o[Ooe])?void 0:r.arrayValue,c=Gse((null==(i=null==l?void 0:l.values)?void 0:i.length)||0,(null==(a=null==u?void 0:u.values)?void 0:a.length)||0);return 0!==c?c:Roe(l,u)}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===xoe&&t===xoe)return 0;if(e===xoe)return 1;if(t===xoe)return-1;const n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(let s=0;s<r.length&&s<a.length;++s){const e=Yse(r[s],a[s]);if(0!==e)return e;const t=Poe(n[r[s]],i[a[s]]);if(0!==t)return t}return Gse(r.length,a.length)}(e.mapValue,t.mapValue);default:throw Fse(23264,{l:n})}}function Noe(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Gse(e,t);const n=voe(e),r=voe(t),i=Gse(n.seconds,r.seconds);return 0!==i?i:Gse(n.nanos,r.nanos)}function Roe(e,t){const n=e.values||[],r=t.values||[];for(let i=0;i<n.length&&i<r.length;++i){const e=Poe(n[i],r[i]);if(void 0!==e&&0!==e)return e}return Gse(n.length,r.length)}function Moe(e){return!!e&&"mapValue"in e}function Foe(e){var t,n;return(null==(n=((null==(t=null==e?void 0:e.mapValue)?void 0:t.fields)||{})[koe])?void 0:n.stringValue)===Toe}function Loe(e){if(e.geoPointValue)return{geoPointValue:{...e.geoPointValue}};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:{...e.timestampValue}};if(e.mapValue){const t={mapValue:{fields:{}}};return soe(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=Loe(n)),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=Loe(e.arrayValue.values[n]);return t}return{...e}}class joe{constructor(e){this.value=e}static empty(){return new joe({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!Moe(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Loe(t)}setAll(e){let t=ioe.emptyPath(),n={},r=[];e.forEach((e,i)=>{if(!t.isImmediateParentOf(i)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=Loe(e):r.push(i.lastSegment())});const i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){const t=this.field(e.popLast());Moe(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Ioe(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];Moe(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}
2584applyChanges(e,t,n){soe(t,(t,n)=>e[t]=n);for(const r of n)delete e[r]}clone(){return new joe(Loe(this.value))}}
2585/**
2586     * @license
2587     * Copyright 2020 Google LLC
2588     *
2589     * Licensed under the Apache License, Version 2.0 (the "License");
2590     * you may not use this file except in compliance with the License.
2591     * You may obtain a copy of the License at
2592     *
2593     *   http://www.apache.org/licenses/LICENSE-2.0
2594     *
2595     * Unless required by applicable law or agreed to in writing, software
2596     * distributed under the License is distributed on an "AS IS" BASIS,
2597     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2598     * See the License for the specific language governing permissions and
2599     * limitations under the License.
2600     */function Hoe(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Eoe(t)?"-0":t}}function Uoe(e,t,n){return function(e){return"number"==typeof e&&Number.isInteger(e)&&!Eoe(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}(t)?function(e){return{integerValue:""+e}}(t):Hoe(e,t)}
2601/**
2602     * @license
2603     * Copyright 2022 Google LLC
2604     *
2605     * Licensed under the Apache License, Version 2.0 (the "License");
2606     * you may not use this file except in compliance with the License.
2607     * You may obtain a copy of the License at
2608     *
2609     *   http://www.apache.org/licenses/LICENSE-2.0
2610     *
2611     * Unless required by applicable law or agreed to in writing, software
2612     * distributed under the License is distributed on an "AS IS" BASIS,
2613     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2614     * See the License for the specific language governing permissions and
2615     * limitations under the License.
2616     */class Goe{constructor(e,t="asc"){this.field=e,this.dir=t}}
2617/**
2618     * @license
2619     * Copyright 2017 Google LLC
2620     *
2621     * Licensed under the Apache License, Version 2.0 (the "License");
2622     * you may not use this file except in compliance with the License.
2623     * You may obtain a copy of the License at
2624     *
2625     *   http://www.apache.org/licenses/LICENSE-2.0
2626     *
2627     * Unless required by applicable law or agreed to in writing, software
2628     * distributed under the License is distributed on an "AS IS" BASIS,
2629     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2630     * See the License for the specific language governing permissions and
2631     * limitations under the License.
2632     */
2633/**
2634     * @license
2635     * Copyright 2017 Google LLC
2636     *
2637     * Licensed under the Apache License, Version 2.0 (the "License");
2638     * you may not use this file except in compliance with the License.
2639     * You may obtain a copy of the License at
2640     *
2641     *   http://www.apache.org/licenses/LICENSE-2.0
2642     *
2643     * Unless required by applicable law or agreed to in writing, software
2644     * distributed under the License is distributed on an "AS IS" BASIS,
2645     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2646     * See the License for the specific language governing permissions and
2647     * limitations under the License.
2648     */
2649class Yoe{constructor(e,t=null,n=[],r=[],i=null,a="F",s=null,o=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=a,this.startAt=s,this.endAt=o,this.A=null,this.V=null,this.m=null,this.startAt,this.endAt}}function Voe(e){return(t,n)=>{let r=!1;for(const i of function(e){const t=e;if(null===t.A){t.A=[];const e=new Set;for(const r of t.explicitOrderBy)t.A.push(r),e.add(r.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";(function(e){let t=new zse(ioe.comparator);return e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t})(t).forEach(r=>{e.has(r.canonicalString())||r.isKeyField()||t.A.push(new Goe(r,n))}),e.has(ioe.keyField().canonicalString())||t.A.push(new Goe(ioe.keyField(),n))}return t.A}(e)){const e=qoe(i,t,n);if(0!==e)return e;r=r||i.field.isKeyField()}return 0}}function qoe(e,t,n){const r=e.field.isKeyField()?ooe.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?Poe(r,i):Fse(42886)}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Fse(19790,{direction:e.dir})}}
2650/**
2651     * @license
2652     * Copyright 2017 Google LLC
2653     *
2654     * Licensed under the Apache License, Version 2.0 (the "License");
2655     * you may not use this file except in compliance with the License.
2656     * You may obtain a copy of the License at
2657     *
2658     *   http://www.apache.org/licenses/LICENSE-2.0
2659     *
2660     * Unless required by applicable law or agreed to in writing, software
2661     * distributed under the License is distributed on an "AS IS" BASIS,
2662     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2663     * See the License for the specific language governing permissions and
2664     * limitations under the License.
2665     */var $oe,Woe;function zoe(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function Joe(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function Koe(e,t){return function(e,t){const n=(r=e,new noe(["projects",r.projectId,"databases",r.database])).child("documents");var r;return void 0===t?n:n.child(t)}(e,t).canonicalString()}function Qoe(e){return!!e&&"function"==typeof e._toProto&&"ProtoValue"===e._protoValueType}function Zoe(e,t){const n={fields:{}};return t.forEach((t,r)=>{if("string"!=typeof r)throw new Error(`Cannot encode map with non-string key: ${r}`);n.fields[r]=t._toProto(e)}),{mapValue:n}}function Xoe(e){return{stringValue:e}}
2666/**
2667     * @license
2668     * Copyright 2020 Google LLC
2669     *
2670     * Licensed under the Apache License, Version 2.0 (the "License");
2671     * you may not use this file except in compliance with the License.
2672     * You may obtain a copy of the License at
2673     *
2674     *   http://www.apache.org/licenses/LICENSE-2.0
2675     *
2676     * Unless required by applicable law or agreed to in writing, software
2677     * distributed under the License is distributed on an "AS IS" BASIS,
2678     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2679     * See the License for the specific language governing permissions and
2680     * limitations under the License.
2681     */(Woe=$oe||($oe={}))[Woe.OK=0]="OK",Woe[Woe.CANCELLED=1]="CANCELLED",Woe[Woe.UNKNOWN=2]="UNKNOWN",Woe[Woe.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Woe[Woe.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Woe[Woe.NOT_FOUND=5]="NOT_FOUND",Woe[Woe.ALREADY_EXISTS=6]="ALREADY_EXISTS",Woe[Woe.PERMISSION_DENIED=7]="PERMISSION_DENIED",Woe[Woe.UNAUTHENTICATED=16]="UNAUTHENTICATED",Woe[Woe.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Woe[Woe.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Woe[Woe.ABORTED=10]="ABORTED",Woe[Woe.OUT_OF_RANGE=11]="OUT_OF_RANGE",Woe[Woe.UNIMPLEMENTED=12]="UNIMPLEMENTED",Woe[Woe.INTERNAL=13]="INTERNAL",Woe[Woe.UNAVAILABLE=14]="UNAVAILABLE",Woe[Woe.DATA_LOSS=15]="DATA_LOSS",
2682/**
2683     * @license
2684     * Copyright 2022 Google LLC
2685     *
2686     * Licensed under the Apache License, Version 2.0 (the "License");
2687     * you may not use this file except in compliance with the License.
2688     * You may obtain a copy of the License at
2689     *
2690     *   http://www.apache.org/licenses/LICENSE-2.0
2691     *
2692     * Unless required by applicable law or agreed to in writing, software
2693     * distributed under the License is distributed on an "AS IS" BASIS,
2694     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2695     * See the License for the specific language governing permissions and
2696     * limitations under the License.
2697     */
2698new Qie([4294967295,4294967295],0);class ele{constructor(e){this._byteString=e}static fromBase64String(e){try{return new ele(moe.fromBase64String(e))}catch(t){throw new Xse(Qse,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new ele(moe.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:ele._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(doe(e,ele._jsonSchema))return ele.fromBase64String(e.bytes)}}ele._jsonSchemaVersion="firestore/bytes/1.0",ele._jsonSchema={type:coe("string",ele._jsonSchemaVersion),bytes:coe("string")};
2699/**
2700     * @license
2701     * Copyright 2020 Google LLC
2702     *
2703     * Licensed under the Apache License, Version 2.0 (the "License");
2704     * you may not use this file except in compliance with the License.
2705     * You may obtain a copy of the License at
2706     *
2707     *   http://www.apache.org/licenses/LICENSE-2.0
2708     *
2709     * Unless required by applicable law or agreed to in writing, software
2710     * distributed under the License is distributed on an "AS IS" BASIS,
2711     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2712     * See the License for the specific language governing permissions and
2713     * limitations under the License.
2714     */
2715class tle{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new Xse(Qse,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ioe(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}
2716/**
2717     * @license
2718     * Copyright 2020 Google LLC
2719     *
2720     * Licensed under the Apache License, Version 2.0 (the "License");
2721     * you may not use this file except in compliance with the License.
2722     * You may obtain a copy of the License at
2723     *
2724     *   http://www.apache.org/licenses/LICENSE-2.0
2725     *
2726     * Unless required by applicable law or agreed to in writing, software
2727     * distributed under the License is distributed on an "AS IS" BASIS,
2728     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2729     * See the License for the specific language governing permissions and
2730     * limitations under the License.
2731     */
2732class nle{constructor(e){this._methodName=e}}
2733/**
2734     * @license
2735     * Copyright 2017 Google LLC
2736     *
2737     * Licensed under the Apache License, Version 2.0 (the "License");
2738     * you may not use this file except in compliance with the License.
2739     * You may obtain a copy of the License at
2740     *
2741     *   http://www.apache.org/licenses/LICENSE-2.0
2742     *
2743     * Unless required by applicable law or agreed to in writing, software
2744     * distributed under the License is distributed on an "AS IS" BASIS,
2745     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2746     * See the License for the specific language governing permissions and
2747     * limitations under the License.
2748     */class rle{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Xse(Qse,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Xse(Qse,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return Gse(this._lat,e._lat)||Gse(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:rle._jsonSchemaVersion}}static fromJSON(e){if(doe(e,rle._jsonSchema))return new rle(e.latitude,e.longitude)}}rle._jsonSchemaVersion="firestore/geoPoint/1.0",rle._jsonSchema={type:coe("string",rle._jsonSchemaVersion),latitude:coe("number"),longitude:coe("number")};
2749/**
2750     * @license
2751     * Copyright 2017 Google LLC
2752     *
2753     * Licensed under the Apache License, Version 2.0 (the "License");
2754     * you may not use this file except in compliance with the License.
2755     * You may obtain a copy of the License at
2756     *
2757     *   http://www.apache.org/licenses/LICENSE-2.0
2758     *
2759     * Unless required by applicable law or agreed to in writing, software
2760     * distributed under the License is distributed on an "AS IS" BASIS,
2761     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2762     * See the License for the specific language governing permissions and
2763     * limitations under the License.
2764     */
2765class ile{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}ile.UNAUTHENTICATED=new ile(null),ile.GOOGLE_CREDENTIALS=new ile("google-credentials-uid"),ile.FIRST_PARTY=new ile("first-party-uid"),ile.MOCK_USER=new ile("mock-user");
2766/**
2767     * @license
2768     * Copyright 2017 Google LLC
2769     *
2770     * Licensed under the Apache License, Version 2.0 (the "License");
2771     * you may not use this file except in compliance with the License.
2772     * You may obtain a copy of the License at
2773     *
2774     *   http://www.apache.org/licenses/LICENSE-2.0
2775     *
2776     * Unless required by applicable law or agreed to in writing, software
2777     * distributed under the License is distributed on an "AS IS" BASIS,
2778     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2779     * See the License for the specific language governing permissions and
2780     * limitations under the License.
2781     */
2782class ale{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}
2783/**
2784     * @license
2785     * Copyright 2017 Google LLC
2786     *
2787     * Licensed under the Apache License, Version 2.0 (the "License");
2788     * you may not use this file except in compliance with the License.
2789     * You may obtain a copy of the License at
2790     *
2791     *   http://www.apache.org/licenses/LICENSE-2.0
2792     *
2793     * Unless required by applicable law or agreed to in writing, software
2794     * distributed under the License is distributed on an "AS IS" BASIS,
2795     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2796     * See the License for the specific language governing permissions and
2797     * limitations under the License.
2798     */class sle{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class ole{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(ile.UNAUTHENTICATED))}shutdown(){}}class lle{constructor(e){this.De=e,this.currentUser=ile.UNAUTHENTICATED,this.xe=0,this.forceRefresh=!1,this.auth=null}start(e,t){jse(void 0===this.Ce,42304);let n=this.xe;const r=e=>this.xe!==n?(n=this.xe,t(e)):Promise.resolve();let i=new ale;this.Ce=()=>{this.xe++,this.currentUser=this.Fe(),i.resolve(),i=new ale,e.enqueueRetryable(()=>r(this.currentUser))};const a=()=>{const t=i;e.enqueueRetryable(async()=>{await t.promise,await r(this.currentUser)})},s=e=>{Nse("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.Ce&&(this.auth.addAuthTokenListener(this.Ce),a())};this.De.onInit(e=>s(e)),setTimeout(()=>{if(!this.auth){const e=this.De.getImmediate({optional:!0});e?s(e):(Nse("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new ale)}},0),a()}getToken(){const e=this.xe,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.xe!==e?(Nse("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(jse("string"==typeof t.accessToken,31837,{Oe:t}),new sle(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.Ce&&this.auth.removeAuthTokenListener(this.Ce),this.Ce=void 0}Fe(){const e=this.auth&&this.auth.getUid();return jse(null===e||"string"==typeof e,2055,{Me:e}),new ile(e)}}class ule{constructor(e,t,n){this.Ne=e,this.Le=t,this.Be=n,this.type="FirstParty",this.user=ile.FIRST_PARTY,this.Ue=new Map}ke(){return this.Be?this.Be():null}get headers(){this.Ue.set("X-Goog-AuthUser",this.Ne);const e=this.ke();return e&&this.Ue.set("Authorization",e),this.Le&&this.Ue.set("X-Goog-Iam-Authorization-Token",this.Le),this.Ue}}class cle{constructor(e,t,n){this.Ne=e,this.Le=t,this.Be=n}getToken(){return Promise.resolve(new ule(this.Ne,this.Le,this.Be))}start(e,t){e.enqueueRetryable(()=>t(ile.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class dle{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class hle{constructor(e,t){this.qe=t,this.forceRefresh=!1,this.appCheck=null,this.$e=null,this.Ke=null,I2(e)&&e.settings.appCheckToken&&(this.Ke=e.settings.appCheckToken)}start(e,t){jse(void 0===this.Ce,3512);const n=e=>{null!=e.error&&Nse("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);const n=e.token!==this.$e;return this.$e=e.token,Nse("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.Ce=t=>{e.enqueueRetryable(()=>n(t))};const r=e=>{Nse("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.Ce&&this.appCheck.addTokenListener(this.Ce)};this.qe.onInit(e=>r(e)),setTimeout(()=>{if(!this.appCheck){const e=this.qe.getImmediate({optional:!0});e?r(e):Nse("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.Ke)return Promise.resolve(new dle(this.Ke));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(jse("string"==typeof e.token,44558,{tokenResult:e}),this.$e=e.token,new dle(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.Ce&&this.appCheck.removeTokenListener(this.Ce),this.Ce=void 0}}class ple{constructor(e,t,n=1e3,r=1.5,i=6e4){this.Ct=e,this.timerId=t,this.Ft=n,this.Ot=r,this.Mt=i,this.Nt=0,this.Lt=null,this.Bt=Date.now(),this.reset()}reset(){this.Nt=0}Ut(){this.Nt=this.Mt}kt(e){this.cancel();const t=Math.floor(this.Nt+this.qt()),n=Math.max(0,Date.now()-this.Bt),r=Math.max(0,t-n);r>0&&Nse("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.Nt}
2798 ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.Lt=this.Ct.enqueueAfterDelay(this.timerId,r,()=>(this.Bt=Date.now(),e())),this.Nt*=this.Ot,this.Nt<this.Ft&&(this.Nt=this.Ft),this.Nt>this.Mt&&(this.Nt=this.Mt)}$t(){null!==this.Lt&&(this.Lt.skipDelay(),this.Lt=null)}cancel(){null!==this.Lt&&(this.Lt.cancel(),this.Lt=null)}qt(){return(Math.random()-.5)*this.Nt}}
2799/**
2800     * @license
2801     * Copyright 2020 Google LLC
2802     *
2803     * Licensed under the Apache License, Version 2.0 (the "License");
2804     * you may not use this file except in compliance with the License.
2805     * You may obtain a copy of the License at
2806     *
2807     *   http://www.apache.org/licenses/LICENSE-2.0
2808     *
2809     * Unless required by applicable law or agreed to in writing, software
2810     * distributed under the License is distributed on an "AS IS" BASIS,
2811     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2812     * See the License for the specific language governing permissions and
2813     * limitations under the License.
2814     */const fle=new Map,Ble=!0;
2815/**
2816     * @license
2817     * Copyright 2018 Google LLC
2818     *
2819     * Licensed under the Apache License, Version 2.0 (the "License");
2820     * you may not use this file except in compliance with the License.
2821     * You may obtain a copy of the License at
2822     *
2823     *   http://www.apache.org/licenses/LICENSE-2.0
2824     *
2825     * Unless required by applicable law or agreed to in writing, software
2826     * distributed under the License is distributed on an "AS IS" BASIS,
2827     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2828     * See the License for the specific language governing permissions and
2829     * limitations under the License.
2830     */class mle{constructor(e){if(void 0===e.host){if(void 0!==e.ssl)throw new Xse(Qse,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=Ble}else this.host=e.host,this.ssl=e.ssl??Ble;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e._customHeaders&&(this._customHeaders={...e._customHeaders}),void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new Xse(Qse,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}if(function(e,t,n,r){if(!0===t&&!0===r)throw new Xse(Qse,`${e} and ${n} cannot be used together.`)}("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=function(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}(e.experimentalLongPollingOptions??{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new Xse(Qse,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new Xse(Qse,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new Xse(Qse,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams,void 0!==e.grpcFlowControlWindow){if("number"!=typeof e.grpcFlowControlWindow||e.grpcFlowControlWindow<=0||e.grpcFlowControlWindow>2147483647||!Number.isInteger(e.grpcFlowControlWindow))throw new Xse(Qse,"grpcFlowControlWindow must be a positive integer and cannot exceed 2147483647");this.grpcFlowControlWindow=e.grpcFlowControlWindow}}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(
2831/**
2832        * @license
2833        * Copyright 2023 Google LLC
2834        *
2835        * Licensed under the Apache License, Version 2.0 (the "License");
2836        * you may not use this file except in compliance with the License.
2837        * You may obtain a copy of the License at
2838        *
2839        *   http://www.apache.org/licenses/LICENSE-2.0
2840        *
2841        * Unless required by applicable law or agreed to in writing, software
2842        * distributed under the License is distributed on an "AS IS" BASIS,
2843        * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2844        * See the License for the specific language governing permissions and
2845        * limitations under the License.
2846        */
2847t=this.experimentalLongPollingOptions,n=e.experimentalLongPollingOptions,t.timeoutSeconds===n.timeoutSeconds)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams&&this.grpcFlowControlWindow===e.grpcFlowControlWindow&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(e[i]!==t[i])return!1;return!0}(this._customHeaders,e._customHeaders);var t,n}}let gle=class{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new mle({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Xse(Zse,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new Xse(Zse,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new mle(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new ole;switch(e.type){case"firstParty":return new cle(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new Xse(Qse,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=fle.get(e);t&&(Nse("ComponentProvider","Removing Datastore"),fle.delete(e),t.terminate())}(this),Promise.resolve()}};
2848/**
2849     * @license
2850     * Copyright 2020 Google LLC
2851     *
2852     * Licensed under the Apache License, Version 2.0 (the "License");
2853     * you may not use this file except in compliance with the License.
2854     * You may obtain a copy of the License at
2855     *
2856     *   http://www.apache.org/licenses/LICENSE-2.0
2857     *
2858     * Unless required by applicable law or agreed to in writing, software
2859     * distributed under the License is distributed on an "AS IS" BASIS,
2860     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2861     * See the License for the specific language governing permissions and
2862     * limitations under the License.
2863     */class vle{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new vle(this.firestore,e,this._query)}}class yle{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Cle(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new yle(this.firestore,e,this._key)}toJSON(){return{type:yle._jsonSchemaVersion,referencePath:this._key.toString()}}
2863static fromJSON(e,t,n){if(doe(t,yle._jsonSchema))return new yle(e,n||null,new ooe(noe.fromString(t.referencePath)))}}yle._jsonSchemaVersion="firestore/documentReference/1.0",yle._jsonSchema={type:coe("string",yle._jsonSchemaVersion),referencePath:coe("string")};class Cle extends vle{constructor(e,t,n){super(e,t,function(e){return new Yoe(e)}(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new yle(this.firestore,null,new ooe(e))}withConverter(e){return new Cle(this.firestore,e,this._path)}}
2864/**
2865     * @license
2866     * Copyright 2017 Google LLC
2867     *
2868     * Licensed under the Apache License, Version 2.0 (the "License");
2869     * you may not use this file except in compliance with the License.
2870     * You may obtain a copy of the License at
2871     *
2872     *   http://www.apache.org/licenses/LICENSE-2.0
2873     *
2874     * Unless required by applicable law or agreed to in writing, software
2875     * distributed under the License is distributed on an "AS IS" BASIS,
2876     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2877     * See the License for the specific language governing permissions and
2878     * limitations under the License.
2879     */
2880/**
2881     * @license
2882     * Copyright 2024 Google LLC
2883     *
2884     * Licensed under the Apache License, Version 2.0 (the "License");
2885     * you may not use this file except in compliance with the License.
2886     * You may obtain a copy of the License at
2887     *
2888     *   http://www.apache.org/licenses/LICENSE-2.0
2889     *
2890     * Unless required by applicable law or agreed to in writing, software
2891     * distributed under the License is distributed on an "AS IS" BASIS,
2892     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2893     * See the License for the specific language governing permissions and
2894     * limitations under the License.
2895     */class _le{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(this._values,e._values)}toJSON(){return{type:_le._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(doe(e,_le._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(e=>"number"==typeof e))return new _le(e.vectorValues);throw new Xse(Qse,"Expected 'vectorValues' field to be a number array")}}}function ble(e,t,n){if(Dle(e=C1(e)))return function(e,t,n){if(!Dle(n)||!loe(n)){const r=uoe(n);throw"an object"===r?t.createError(e+" a custom object"):t.createError(e+" "+r)}}("Unsupported field value:",t,e),function(e,t){const n={};return function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):soe(e,(e,r)=>{const i=ble(r,t.childContextForField(e));null!=i&&(n[e]=i)}),{mapValue:{fields:n}}}(e,t);if(e instanceof nle)return function(e,t){if(!function(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Fse(40011,{dataSource:e})}}(t.dataSource))throw t.createError(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.createError(`${e._methodName}() is not currently supported inside arrays`);const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.arrayElement&&4!==t.dataSource)throw t.createError("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const i of e){let e=ble(i,t.childContextForArray(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=C1(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return Uoe(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=foe.fromDate(e);return{timestampValue:zoe(t.serializer,n)}}if(e instanceof foe){const n=new foe(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:zoe(t.serializer,n)}}if(wle(e)){const n=foe.fromInstant(e),r=new foe(n.seconds,1e3*Math.floor(n.nanoseconds/1e3));return{timestampValue:zoe(t.serializer,r)}}if(e instanceof rle)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof ele)return{bytesValue:Joe(t.serializer,e._byteString)};if(e instanceof yle){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.createError(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:Koe(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof _le)return function(e,t){const n=e instanceof _le?e.toArray():e;return{mapValue:{fields:{[koe]:{stringValue:Toe},[Ooe]:{arrayValue:{values:n.map(e=>{if("number"!=typeof e)throw t.createError("VectorValues must only contain numeric values.");return Hoe(t.serializer,e)})}}}}}}(e,t);if(Qoe(e))return e._toProto(t.serializer);throw t.createError(`Unsupported field value: ${uoe(e)}`)}(e,t)}function wle(e){if("object"!=typeof e||null===e)return!1;if("undefined"!=typeof Temporal&&"function"==typeof Temporal.Instant&&e instanceof Temporal.Instant)return!0;const t=e;return"Temporal.Instant"===t[Symbol.toStringTag]&&"bigint"==typeof t.t}function Dle(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof foe||e instanceof rle||e instanceof ele||e instanceof yle||e instanceof nle||e instanceof _le||wle(e)||Qoe(e))}function Ele(e,t,n){if((t=C1(t))instanceof tle)return t._internalPath;if("string"==typeof t)return function(e,t,n){if(t.search(kle)>=0)throw Sle(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new tle(...t.split("."))._internalPath}catch(r){throw Sle(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}(e,t);throw Sle("Field path arguments must be of type string or ",e,!1,void 0,n)}_le._jsonSchemaVersion="firestore/vectorValue/1.0",_le._jsonSchema={type:coe("string",_le._jsonSchemaVersion),vectorValues:coe("object")};const kle=new RegExp("[~\\*/\\[\\]]");function Sle(e,t,n,r,i){const a=r&&!r.isEmpty(),s=void 0!==i;let o=`Function ${t}
2895() called with invalid data`;n&&(o+=" (via `toFirestore()`)"),o+=". ";let l="";return(a||s)&&(l+=" (found",a&&(l+=` in field ${r}`),s&&(l+=` in document ${i}`),l+=")"),new Xse(Qse,o+e+l)}
2896/**
2897     * @license
2898     * Copyright 2025 Google LLC
2899     *
2900     * Licensed under the Apache License, Version 2.0 (the "License");
2901     * you may not use this file except in compliance with the License.
2902     * You may obtain a copy of the License at
2903     *
2904     *   http://www.apache.org/licenses/LICENSE-2.0
2905     *
2906     * Unless required by applicable law or agreed to in writing, software
2907     * distributed under the License is distributed on an "AS IS" BASIS,
2908     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2909     * See the License for the specific language governing permissions and
2910     * limitations under the License.
2911     */
2912class xle{constructor(e){this.optionDefinitions=e}_getKnownOptions(e,t){const n=joe.empty();for(const r in this.optionDefinitions)if(this.optionDefinitions.hasOwnProperty(r)){const i=this.optionDefinitions[r];if(r in e){const a=e[r];let s;i.nestedOptions&&loe(a)?s={mapValue:{fields:new xle(i.nestedOptions).getOptionsProto(t,a)}}:a&&(s=ble(a,t)??void 0),s&&n.set(ioe.fromServerFormat(i.serverName),s)}}return n}getOptionsProto(e,t,n){const r=this._getKnownOptions(t,e);if(n){const t=new Map(function(e,t){const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(t(e[r],r,e));return n}(n,(t,n)=>[ioe.fromServerFormat(n),void 0!==t?ble(t,e):null]));r.setAll(t)}return r.value.mapValue.fields??{}}}
2913/**
2914     * @license
2915     * Copyright 2024 Google LLC
2916     *
2917     * Licensed under the Apache License, Version 2.0 (the "License");
2918     * you may not use this file except in compliance with the License.
2919     * You may obtain a copy of the License at
2920     *
2921     *   http://www.apache.org/licenses/LICENSE-2.0
2922     *
2923     * Unless required by applicable law or agreed to in writing, software
2924     * distributed under the License is distributed on an "AS IS" BASIS,
2925     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2926     * See the License for the specific language governing permissions and
2927     * limitations under the License.
2928     */
2929/**
2930     * @license
2931     * Copyright 2024 Google LLC
2932     *
2933     * Licensed under the Apache License, Version 2.0 (the "License");
2934     * you may not use this file except in compliance with the License.
2935     * You may obtain a copy of the License at
2936     *
2937     *   http://www.apache.org/licenses/LICENSE-2.0
2938     *
2939     * Unless required by applicable law or agreed to in writing, software
2940     * distributed under the License is distributed on an "AS IS" BASIS,
2941     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2942     * See the License for the specific language governing permissions and
2943     * limitations under the License.
2944     */
2945class Tle{constructor(e){this.optionsProto=void 0,({rawOptions:this.rawOptions,...this.knownOptions}=e)}_readUserData(e){this.optionsProto=this._optionsUtil.getOptionsProto(e,this.knownOptions,this.rawOptions)}_toProto(e){return{name:this._name,options:this.optionsProto}}}class Ole extends Tle{get _name(){return"add_fields"}get _optionsUtil(){return new xle({})}constructor(e,t){super(t),this.fields=e}_toProto(e){return{...super._toProto(e),args:[Zoe(e,this.fields)]}}_readUserData(e){super._readUserData(e),Hle(this.fields,e)}}class Ale extends Tle{get _name(){return"aggregate"}get _optionsUtil(){return new xle({})}constructor(e,t,n){super(n),this.groups=e,this.accumulators=t}_toProto(e){return{...super._toProto(e),args:[Zoe(e,this.accumulators),Zoe(e,this.groups)]}}_readUserData(e){super._readUserData(e),Hle(this.groups,e),Hle(this.accumulators,e)}}class Ile extends Tle{get _name(){return"distinct"}get _optionsUtil(){return new xle({})}constructor(e,t){super(t),this.groups=e}_toProto(e){return{...super._toProto(e),args:[Zoe(e,this.groups)]}}_readUserData(e){super._readUserData(e),Hle(this.groups,e)}}class Ple extends Tle{get _name(){return"collection"}get _optionsUtil(){return new xle({forceIndex:{serverName:"force_index"}})}constructor(e,t){super(t),this.hr=e.startsWith("/")?e:"/"+e}_toProto(e){return{...super._toProto(e),args:[{referenceValue:this.hr}]}}_readUserData(e){super._readUserData(e)}}class Nle extends Tle{get _name(){return"collection_group"}get _optionsUtil(){return new xle({forceIndex:{serverName:"force_index"}})}constructor(e,t){super(t),this.collectionId=e}_toProto(e){return{...super._toProto(e),args:[{referenceValue:""},{stringValue:this.collectionId}]}}_readUserData(e){super._readUserData(e)}}class Rle extends Tle{get _name(){return"database"}get _optionsUtil(){return new xle({})}_toProto(e){return{...super._toProto(e)}}_readUserData(e){super._readUserData(e)}}class Mle extends Tle{get _name(){return"documents"}get _optionsUtil(){return new xle({})}constructor(e,t){if(super(t),!e||0===e.length)throw new Xse(Qse,"Empty document paths are not allowed in DocumentsSource");const n=e.map(e=>e.startsWith("/")?e:"/"+e),r=new Set(n);if(r.size!==n.length)throw new Xse(Qse,"Duplicate document paths are not allowed in DocumentsSource");this.Tr=n,this.Pr=r}_toProto(e){return{...super._toProto(e),args:this.Tr.map(e=>({referenceValue:e}))}}_readUserData(e){super._readUserData(e)}}class Fle extends Tle{get _name(){return"select"}get _optionsUtil(){return new xle({})}constructor(e,t){super(t),this.selections=e}_toProto(e){return{...super._toProto(e),args:[Zoe(e,this.selections)]}}_readUserData(e){super._readUserData(e),Hle(this.selections,e)}}class Lle extends Tle{get _name(){return"sort"}get _optionsUtil(){return new xle({})}constructor(e,t){super(t),this.orderings=e}_toProto(e){return{...super._toProto(e),args:this.orderings.map(t=>t._toProto(e))}}_readUserData(e){super._readUserData(e),Hle(this.orderings,e)}}class jle extends Tle{get _name(){return"replace_with"}get _optionsUtil(){return new xle({})}constructor(e,t){super(t),this.map=e}_toProto(e){return{...super._toProto(e),args:[this.map._toProto(e),Xoe(jle.Ir)]}}_readUserData(e){super._readUserData(e),Hle(this.map,e)}}function Hle(e,t){return function(e){return"function"==typeof e._readUserData}(e)?e._readUserData(t):Array.isArray(e)||e instanceof Map?e.forEach(e
2945=>e._readUserData(t)):Object.values(e).forEach(e=>e._readUserData(t)),e}
2946// Copyright 2024 Google LLC* @license
2947jle.Ir="full_replace";class Ule{constructor(e,t,n){this.serializer=e,this.stages=t,this.listenOptions=n,this.isCorePipeline=!0}getPipelineCollection(){return Yle(this)}getPipelineCollectionGroup(){return Vle(this)}getPipelineCollectionId(){return function(e){switch(Gle(e)){case"collection":return noe.fromString(Yle(e)).lastSegment();case"collection_group":return Vle(e);default:return}}(this)}getPipelineDocuments(){return function(e){if("documents"===Gle(e))return e.stages[0].Tr}(this)}getPipelineFlavor(){return function(e){let t="exact";return e.stages.forEach((n,r)=>{n._name!==Ile.name&&n._name!==Ale.name||(t="keyless"),n._name===Fle.name&&"exact"===t&&(t="augmented"),n._name===Ole.name&&r<e.stages.length-1&&"exact"===t&&(t="augmented")}),t}(this)}getPipelineSourceType(){return Gle(this)}}function Gle(e){const t=e.stages[0];return t instanceof Ple||t instanceof Nle||t instanceof Rle||t instanceof Mle?t._name:"unknown"}function Yle(e){if("collection"===Gle(e))return e.stages[0].hr}function Vle(e){if("collection_group"===Gle(e))return e.stages[0].collectionId}BigInt("0x7fffffffffffffff"),BigInt("0x8000000000000000"),BigInt(-62135596800);BigInt(253402300799),BigInt(1e3),BigInt(1e6);BigInt(999),BigInt(999999);
2948/**
2949     * @license
2950     * Copyright 2017 Google LLC
2951     *
2952     * Licensed under the Apache License, Version 2.0 (the "License");
2953     * you may not use this file except in compliance with the License.
2954     * You may obtain a copy of the License at
2955     *
2956     *   http://www.apache.org/licenses/LICENSE-2.0
2957     *
2958     * Unless required by applicable law or agreed to in writing, software
2959     * distributed under the License is distributed on an "AS IS" BASIS,
2960     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2961     * See the License for the specific language governing permissions and
2962     * limitations under the License.
2963     */
2964class qle{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new ale,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,i){const a=Date.now()+n,s=new qle(e,t,a,r,i);return s.start(n),s}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Xse(Kse,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function $le(){return"undefined"!=typeof document?document:null}var Wle,zle;(zle=Wle||(Wle={})).Default="default",zle.Cache="cache";
2965/**
2966     * @license
2967     * Copyright 2020 Google LLC
2968     *
2969     * Licensed under the Apache License, Version 2.0 (the "License");
2970     * you may not use this file except in compliance with the License.
2971     * You may obtain a copy of the License at
2972     *
2973     *   http://www.apache.org/licenses/LICENSE-2.0
2974     *
2975     * Unless required by applicable law or agreed to in writing, software
2976     * distributed under the License is distributed on an "AS IS" BASIS,
2977     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2978     * See the License for the specific language governing permissions and
2979     * limitations under the License.
2980     */
2981let Jle=class{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new yle(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new Kle(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){var e;return(null==(e=this._document)?void 0:e.data.clone().value.mapValue.fields)??void 0}get(e){if(this._document){const t=this._document.data.field(Ele("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}},Kle=class extends Jle{data(){return super.data()}};
2982/**
2983     * @license
2984     * Copyright 2020 Google LLC
2985     *
2986     * Licensed under the Apache License, Version 2.0 (the "License");
2987     * you may not use this file except in compliance with the License.
2988     * You may obtain a copy of the License at
2989     *
2990     *   http://www.apache.org/licenses/LICENSE-2.0
2991     *
2992     * Unless required by applicable law or agreed to in writing, software
2993     * distributed under the License is distributed on an "AS IS" BASIS,
2994     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2995     * See the License for the specific language governing permissions and
2996     * limitations under the License.
2997     */const Qle="AsyncQueue";class Zle{constructor(e=Promise.resolve()){this.$c=[],this.Kc=!1,this.Qc=[],this.Wc=null,this.Gc=!1,this.zc=!1,this.jc=[],this.Ht=new ple(this,"async_queue_retry"),this.Hc=()=>{const e=$le();e&&Nse(Qle,"Visibility state changed to "+e.visibilityState),this.Ht.$t()},this.Jc=e;const t=$le();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Hc)}get isShuttingDown(){return this.Kc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Yc(),this.Zc(e)}enterRestrictedMode(e){if(!this.Kc){this.Kc=!0,this.zc=e||!1;const t=$le();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Hc)}}enqueue(e){if(this.Yc(),this.Kc)return new Promise(()=>{});const t=new ale;return this.Zc(()=>this.Kc&&this.zc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.$c.push(e),this.Xc()))}async Xc(){if(0!==this.$c.length){try{await this.$c[0](),this.$c.shift(),this.Ht.reset()}catch(zle){if(!function(e){return"IndexedDbTransactionError"===e.name}
2998/**
2999     * @license
3000     * Copyright 2020 Google LLC
3001     *
3002     * Licensed under the Apache License, Version 2.0 (the "License");
3003     * you may not use this file except in compliance with the License.
3004     * You may obtain a copy of the License at
3005     *
3006     *   http://www.apache.org/licenses/LICENSE-2.0
3007     *
3008     * Unless required by applicable law or agreed to in writing, software
3009     * distributed under the License is distributed on an "AS IS" BASIS,
3010     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3011     * See the License for the specific language governing permissions and
3012     * limitations under the License.
3013     */(zle))throw zle;Nse(Qle,"Operation failed with retryable error: "+zle)}this.$c.length>0&&this.Ht.kt(()=>this.Xc())}}Zc(e){const t=this.Jc.then(()=>(this.Gc=!0,e().catch(e=>{throw this.Wc=e,this.Gc=!1,Rse("INTERNAL UNHANDLED ERROR: ",Xle(e)),e}).then(e=>(this.Gc=!1,e))));return this.Jc=t,t}enqueueAfterDelay(e,t,n){this.Yc(),this.jc.indexOf(e)>-1&&(t=0);const r=qle.createAndSchedule(this,e,t,n,e=>this.el(e));return this.Qc.push(r),r}Yc(){this.Wc&&Fse(47125,{tl:Xle(this.Wc)})}verifyOperationInProgress(){}async nl(){let e;do{e=this.Jc,await e}while(e!==this.Jc)}rl(e){for(const t of this.Qc)if(t.timerId===e)return!0;return!1}il(e){return this.nl().then(()=>{this.Qc.sort((e,t)=>e.targetTimeMs-t.targetTimeMs);for(const t of this.Qc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.nl()})}sl(e){this.jc.push(e)}el(e){const t=this.Qc.indexOf(e);this.Qc.splice(t,1)}}function Xle(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}class eue extends gle{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new Zle,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new Zle(e),this._firestoreClient=void 0,await e}}}class tue{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class nue extends Jle{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new rue(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const n=this._document.data.field(Ele("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Xse(Zse,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=nue._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),t):t}}nue._jsonSchemaVersion="firestore/documentSnapshot/1.0",nue._jsonSchema={type:coe("string",nue._jsonSchemaVersion),bundleSource:coe("string","DocumentSnapshot"),bundleName:coe("string"),bundle:coe("string")};class rue extends nue{data(e={}){return super.data(e)}}class iue{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new tue(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new rue(this._firestore,this._userDataWriter,n.key,n,new tue(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}
3013docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Xse(Qse,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{!function(e){return e instanceof Ule}(e._snapshot.query)?Voe(e.query._query):function(e){!function(e){for(let t=e.stages.length-1;t>=0;t--){const n=e.stages[t];if(n instanceof Lle)return n.orderings}throw new Error("Pipeline must contain at least one Sort stage")}(e)}(e._snapshot.query);const r=new rue(e._firestore,e._userDataWriter,n.doc.key,n.doc,new tue(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{const r=new rue(e._firestore,e._userDataWriter,t.doc.key,t.doc,new tue(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let i=-1,a=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),a=n.indexOf(t.doc.key)),{type:aue(t.type),doc:r,oldIndex:i,newIndex:a}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Xse(Zse,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=iue._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Use.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const t=[],n=[],r=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),n.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),r.push(e.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function aue(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Fse(61501,{type:e})}}
3014/**
3015     * @license
3016     * Copyright 2025 Google LLC
3017     *
3018     * Licensed under the Apache License, Version 2.0 (the "License");
3019     * you may not use this file except in compliance with the License.
3020     * You may obtain a copy of the License at
3021     *
3022     *   http://www.apache.org/licenses/LICENSE-2.0
3023     *
3024     * Unless required by applicable law or agreed to in writing, software
3025     * distributed under the License is distributed on an "AS IS" BASIS,
3026     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3027     * See the License for the specific language governing permissions and
3028     * limitations under the License.
3029     */iue._jsonSchemaVersion="firestore/querySnapshot/1.0",iue._jsonSchema={type:coe("string",iue._jsonSchemaVersion),bundleSource:coe("string","QuerySnapshot"),bundleName:coe("string"),bundle:coe("string")};const sue="@firebase/firestore",oue="4.17.2";
3030/**
3031     * @license
3032     * Copyright 2020 Google LLC
3033     *
3034     * Licensed under the Apache License, Version 2.0 (the "License");
3035     * you may not use this file except in compliance with the License.
3036     * You may obtain a copy of the License at
3037     *
3038     *   http://www.apache.org/licenses/LICENSE-2.0
3039     *
3040     * Unless required by applicable law or agreed to in writing, software
3041     * distributed under the License is distributed on an "AS IS" BASIS,
3042     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3043     * See the License for the specific language governing permissions and
3044     * limitations under the License.
3045     */
3046!function(e,t=!0){(function(e){Ise=e})(R2),A2(new b1("firestore",(e,{instanceIdentifier:n,options:r})=>{const i=e.getProvider("app").getImmediate(),a=new eue(new lle(e.getProvider("auth-internal")),new hle(i,e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Xse(Qse,'"projectId" not provided in firebase.initializeApp.');return new Doe(e.options.projectId,t)}(i,n),i);return r={useFetchStreams:t,...r},a._setSettings(r),a},"PUBLIC").setMultipleInstances(!0)),F2(sue,oue,e),F2(sue,oue,"esm2020")}();
3047/**
3048     * @license
3049     * Copyright 2017 Google LLC
3050     *
3051     * Licensed under the Apache License, Version 2.0 (the "License");
3052     * you may not use this file except in compliance with the License.
3053     * You may obtain a copy of the License at
3054     *
3055     *   http://www.apache.org/licenses/LICENSE-2.0
3056     *
3057     * Unless required by applicable law or agreed to in writing, software
3058     * distributed under the License is distributed on an "AS IS" BASIS,
3059     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3060     * See the License for the specific language governing permissions and
3061     * limitations under the License.
3062     */
3063const lue="firebasestorage.googleapis.com";
3064/**
3065     * @license
3066     * Copyright 2017 Google LLC
3067     *
3068     * Licensed under the Apache License, Version 2.0 (the "License");
3069     * you may not use this file except in compliance with the License.
3070     * You may obtain a copy of the License at
3071     *
3072     *   http://www.apache.org/licenses/LICENSE-2.0
3073     *
3074     * Unless required by applicable law or agreed to in writing, software
3075     * distributed under the License is distributed on an "AS IS" BASIS,
3076     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3077     * See the License for the specific language governing permissions and
3078     * limitations under the License.
3079     */
3080class uue extends r1{constructor(e,t,n=0){super(fue(e),`Firebase Storage: ${t} (${fue(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,uue.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return fue(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var cue,due,hue,pue;function fue(e){return"storage/"+e}function Bue(e){return new uue(cue.INVALID_ARGUMENT,e)}function mue(){return new uue(cue.APP_DELETED,"The Firebase app was deleted.")}(due=cue||(cue={})).UNKNOWN="unknown",due.OBJECT_NOT_FOUND="object-not-found",due.BUCKET_NOT_FOUND="bucket-not-found",due.PROJECT_NOT_FOUND="project-not-found",due.QUOTA_EXCEEDED="quota-exceeded",due.UNAUTHENTICATED="unauthenticated",due.UNAUTHORIZED="unauthorized",due.UNAUTHORIZED_APP="unauthorized-app",due.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",due.INVALID_CHECKSUM="invalid-checksum",due.CANCELED="canceled",due.INVALID_EVENT_NAME="invalid-event-name",due.INVALID_URL="invalid-url",due.INVALID_DEFAULT_BUCKET="invalid-default-bucket",due.NO_DEFAULT_BUCKET="no-default-bucket",due.CANNOT_SLICE_BLOB="cannot-slice-blob",due.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",due.NO_DOWNLOAD_URL="no-download-url",due.INVALID_ARGUMENT="invalid-argument",due.INVALID_ARGUMENT_COUNT="invalid-argument-count",due.APP_DELETED="app-deleted",due.INVALID_ROOT_OPERATION="invalid-root-operation",due.INVALID_FORMAT="invalid-format",due.INTERNAL_ERROR="internal-error",due.UNSUPPORTED_ENVIRONMENT="unsupported-environment";
3081/**
3082     * @license
3083     * Copyright 2017 Google LLC
3084     *
3085     * Licensed under the Apache License, Version 2.0 (the "License");
3086     * you may not use this file except in compliance with the License.
3087     * You may obtain a copy of the License at
3088     *
3089     *   http://www.apache.org/licenses/LICENSE-2.0
3090     *
3091     * Unless required by applicable law or agreed to in writing, software
3092     * distributed under the License is distributed on an "AS IS" BASIS,
3093     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3094     * See the License for the specific language governing permissions and
3095     * limitations under the License.
3096     */
3097class gue{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=gue.makeFromUrl(e,t)}catch(zle){return new gue(e,"")}if(""===n.path)return n;throw r=e,new uue(cue.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;
3097const r="([A-Za-z0-9.\\-_]+)",i=new RegExp("^gs://"+r+"(/(.*))?$","i");function a(e){e.path_=decodeURIComponent(e.path)}const s=t.replace(/[.]/g,"\\."),o=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${s}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:a},{regex:new RegExp(`^https?://${t===lue?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:a}];for(let l=0;l<o.length;l++){const t=o[l],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let i=r[t.indices.path];i||(i=""),n=new gue(e,i),t.postModify(n);break}}if(null==n)throw function(e){return new uue(cue.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class vue{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}
3098/**
3099     * @license
3100     * Copyright 2017 Google LLC
3101     *
3102     * Licensed under the Apache License, Version 2.0 (the "License");
3103     * you may not use this file except in compliance with the License.
3104     * You may obtain a copy of the License at
3105     *
3106     *   http://www.apache.org/licenses/LICENSE-2.0
3107     *
3108     * Unless required by applicable law or agreed to in writing, software
3109     * distributed under the License is distributed on an "AS IS" BASIS,
3110     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3111     * See the License for the specific language governing permissions and
3112     * limitations under the License.
3113     */function yue(e,t,n,r){if(r<t)throw Bue(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw Bue(`Invalid value for '${e}'. Expected ${n} or less.`)}(pue=hue||(hue={}))[pue.NO_ERROR=0]="NO_ERROR",pue[pue.NETWORK_ERROR=1]="NETWORK_ERROR",pue[pue.ABORT=2]="ABORT";
3114/**
3115     * @license
3116     * Copyright 2017 Google LLC
3117     *
3118     * Licensed under the Apache License, Version 2.0 (the "License");
3119     * you may not use this file except in compliance with the License.
3120     * You may obtain a copy of the License at
3121     *
3122     *   http://www.apache.org/licenses/LICENSE-2.0
3123     *
3124     * Unless required by applicable law or agreed to in writing, software
3125     * distributed under the License is distributed on an "AS IS" BASIS,
3126     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3127     * See the License for the specific language governing permissions and
3128     * limitations under the License.
3129     */
3130class Cue{constructor(e,t,n,r,i,a,s,o,l,u,c,d=!0,h=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=a,this.callback_=s,this.errorCallback_=o,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=c,this.retry=d,this.isUsingEmulator=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){const e=(e,t)=>{if(t)return void e(!1,new _ue(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===hue.NO_ERROR,i=n.getStatus();if(!t||
3131/**
3132     * @license
3133     * Copyright 2022 Google LLC
3134     *
3135     * Licensed under the Apache License, Version 2.0 (the "License");
3136     * you may not use this file except in compliance with the License.
3137     * You may obtain a copy of the License at
3138     *
3139     *   http://www.apache.org/licenses/LICENSE-2.0
3140     *
3141     * Unless required by applicable law or agreed to in writing, software
3142     * distributed under the License is distributed on an "AS IS" BASIS,
3143     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3144     * See the License for the specific language governing permissions and
3145     * limitations under the License.
3146     */
3147function(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}(i,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===hue.ABORT;return void e(!1,new _ue(!1,null,t))}const a=-1!==this.successCodes_.indexOf(i);e(!0,new _ue(a,n))})},t=(e,t)=>{const n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(zle){r(zle)}else if(null!==i){const e=new uue(cue.UNKNOWN,"An unknown error occurred, please check the error payload for server response.");e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else t.canceled?r(this.appDelete_?mue():new uue(cue.CANCELED,"User canceled the upload/download.")):r(new uue(cue.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))};this.canceled_?t(0,new _ue(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,a=null,s=!1,o=0;function l(){return 2===o}let u=!1;function c(...e){u||(u=!0,t.apply(null,e))}function d(t){i=setTimeout(()=>{i=null,e(p,l())},t)}function h(){a&&clearTimeout(a)}function p(e,...t){if(u)return void h();if(e)return h(),void c.call(null,e,...t);if(l()||s)return h(),void c.call(null,e,...t);let n;r<64&&(r*=2),1===o?(o=2,n=0):n=1e3*(r+Math.random()),d(n)}let f=!1;function B(e){f||(f=!0,h(),u||(null!==i?(e||(o=2),clearTimeout(i),d(0)):e||(o=1)))}return d(0),a=setTimeout(()=>{s=!0,B(!0)},n),B}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class _ue{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function bue(e,t,n,r,i,a,s=!0,o=!1){const l=function(e){const t=encodeURIComponent;let n="?";for(const r in e)e.hasOwnProperty(r)&&(n=n+(t(r)+"=")+t(e[r])+"&");return n=n.slice(0,-1),n}
3147(e.urlParams),u=e.url+l,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}(c,a),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,r),new Cue(u,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,s,o)}
3148/**
3149     * @license
3150     * Copyright 2017 Google LLC
3151     *
3152     * Licensed under the Apache License, Version 2.0 (the "License");
3153     * you may not use this file except in compliance with the License.
3154     * You may obtain a copy of the License at
3155     *
3156     *   http://www.apache.org/licenses/LICENSE-2.0
3157     *
3158     * Unless required by applicable law or agreed to in writing, software
3159     * distributed under the License is distributed on an "AS IS" BASIS,
3160     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3161     * See the License for the specific language governing permissions and
3162     * limitations under the License.
3163     */
3164/**
3165     * @license
3166     * Copyright 2019 Google LLC
3167     *
3168     * Licensed under the Apache License, Version 2.0 (the "License");
3169     * you may not use this file except in compliance with the License.
3170     * You may obtain a copy of the License at
3171     *
3172     *   http://www.apache.org/licenses/LICENSE-2.0
3173     *
3174     * Unless required by applicable law or agreed to in writing, software
3175     * distributed under the License is distributed on an "AS IS" BASIS,
3176     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3177     * See the License for the specific language governing permissions and
3178     * limitations under the License.
3179     */
3180class wue{constructor(e,t){this._service=e,this._location=t instanceof gue?t:gue.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new wue(e,t)}get root(){const e=new gue(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return function(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new gue(this._location.bucket,e);return new wue(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new uue(cue.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}function Due(e,t){const n=null==t?void 0:t.storageBucket;return null==n?null:gue.makeFromBucketSpec(n,e)}class Eue{constructor(e,t,n,r,i,a=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=a,this._bucket=null,this._host=lue,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?gue.makeFromBucketSpec(r,this._host):Due(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=gue.makeFromBucketSpec(this._url,e):this._bucket=Due(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){yue("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){yue("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if(I2(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});
3180return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new wue(this,e)}_makeRequest(e,t,n,r,i=!0){if(this._deleted)return new vue(mue());{const a=bue(e,this._appId,n,r,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(a),a.getPromise().then(()=>this._requests.delete(a),()=>this._requests.delete(a)),a}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const kue="@firebase/storage",Sue="0.14.5";
3181/**
3182     * @license
3183     * Copyright 2020 Google LLC
3184     *
3185     * Licensed under the Apache License, Version 2.0 (the "License");
3186     * you may not use this file except in compliance with the License.
3187     * You may obtain a copy of the License at
3188     *
3189     *   http://www.apache.org/licenses/LICENSE-2.0
3190     *
3191     * Unless required by applicable law or agreed to in writing, software
3192     * distributed under the License is distributed on an "AS IS" BASIS,
3193     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3194     * See the License for the specific language governing permissions and
3195     * limitations under the License.
3196     */
3197function xue(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),i=e.getProvider("app-check-internal");return new Eue(n,r,i,t,R2)}function Tue(e,{firebaseApp:t,modules:n=[]}){e.provide(Kie,t);for(const r of n)r(t,e)}A2(new b1("storage",xue,"PUBLIC").setMultipleInstances(!0)),F2(kue,Sue,""),F2(kue,Sue,"esm2020"),window.navigation&&window.navigation.addEventListener("navigate",e=>{window.location.href!==e.destination.url&&(yN.ids=[])}),async function({id:e="app",resolve:t,setup:n,title:r,progress:i={},page:a,render:s,defaults:o={}}){Db.replace(o);const l="undefined"==typeof window,u=Db.get("future.useScriptElementForInitialPage"),c=a||((e,t=!1)=>{if("undefined"==typeof window)return null;if(!t){const t=document.getElementById(e);if(null==t?void 0:t.dataset.page)return JSON.parse(t.dataset.page)}const n=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return(null==n?void 0:n.textContent)?JSON.parse(n.textContent):null})(e,u),d=e=>Promise.resolve(t(e)).then(e=>e.default||e);let h=[];const p=await Promise.all([d(c.component),U_.decryptHistory().catch(()=>{})]).then(([t])=>{const i={initialPage:c,initialComponent:t,resolveComponent:d,titleCallback:r};return n(l?{el:null,App:yb,props:{...i,onHeadUpdate:e=>h=e},plugin:Cb}:{el:document.getElementById(e),App:yb,props:i,plugin:Cb})});if(!l&&i&&function({delay:e=250,color:t="#29d",includeCSS:n=!0,showSpinner:r=!1}={}){j_(e),F_.configure({showSpinner:r,includeCSS:n,color:t})}(i),l&&s){const t=()=>u?[Vs("script",{"data-page":e,type:"application/json",innerHTML:JSON.stringify(c).replace(/\//g,"\\/").replace(/</g,"\\u003c")}),Vs("div",{id:e,innerHTML:p?s(p):""})]:Vs("div",{id:e,"data-page":JSON.stringify(c),innerHTML:p?s(p):""});await s(Hl({render:()=>t()}))}}({resolve:e=>{const t=Object.assign({"../../front/src/modules/404/404Page.vue":Ib,"../../front/src/modules/Exception/ExceptionPage.vue":fS,"../../front/src/modules/busca/BuscarNoticias.vue":zM,"../../front/src/modules/busca/components/ConteudoBuscaDesktop.vue":QR,"../../front/src/modules/busca/components/ConteudoBuscaMobile.vue":VM,"../../front/src/modules/busca/components/DropdownFiltrosMobile.vue":PM,"../../front/src/modules/busca/components/PopoverPeriodos.vue":IN,"../../front/src/modules/circuitoPet/CircuitoPet.vue":WH,"../../front/src/modules/circuitoPet/PetEnviado.vue":QH,"../../front/src/modules/colunista/Colunista.vue":oU,"../../front/src/modules/colunista/components/InfoColunista.vue":rU,"../../front/src/modules/editoria/Editoria.vue":XU,"../../front/src/modules/editoria/EditoriaPublicidadeLegal.vue":wG,"../../front/src/modules/editoria/components/Editoria/ConteudoEditoriaDesktop.vue":AU,"../../front/src/modules/editoria/components/Editoria/ConteudoEditoriaMobile.vue":JU,"../../front/src/modules/editoria/components/Editoria/EditoriaHeader.vue":wU,"../../front/src/modules/editoria/components/Editoria/EditoriaHeaderMobile.vue":UU,"../../front/src/modules/editoria/components/PublicidadeLegal/CardPublicidadeLegal.vue":dG,"../../front/src/modules/faleConosco/ContatoEnviado.vue":kG,"../../front/src/modules/faleConosco/FaleConosco.vue":HG,"../../front/src/modules/home/Home.vue":j$,"../../front/src/modules/noticia/Noticia.vue":z8,"../../front/src/modules/noticia/components/NoticiaBanner.vue":ZQ,"../../front/src/modules/noticia/components/NoticiaBannerWhatsapp.vue":nZ,"../../front/src/modules/noticia/components/NoticiaConteudo.vue":kX,"../../front/src/modules/noticia/components/NoticiaDivisor.vue":$Q,"../../front/src/modules/noticia/components/NoticiaGaleria.vue":GQ,"../../front/src/modules/noticia/components/NoticiaGaleriaIOS.vue":PQ,"../../front/src/modules/noticia/components/NoticiaImagem.vue":aW,"../../front/src/modules/noticia/components/NoticiaLegenda.vue":w8,"../../front/src/modules/noticia/components/NoticiaParagrafo.vue":d8,"../../front/src/modules/noticia/components/NoticiaTempoReal.vue":P0,"../../front/src/modules/noticia/components/NoticiaTitulo.vue":Z$,"../../front/src/modules/publicidadeLegal/PublicidadeLegal.vue":r7,"../../front/src/modules/publicidadeLegal/components/PublicidadeLegalTitulo.vue":e7,"../../front/src/modules/sugestaoPauta/PautaEnviado.vue":o7,"../../front/src/modules/sugestaoPauta/SugestaoPauta.vue":E7})[`../../front/src/modules/${e}.vue`];return t.default.layout=t.default.layout||jee,t},setup({el:e,App:t,props:n,plugin:r}){const i=jl({render:()=>Vs(t,n)});i.use(r).use(S7).use(Xne).use(wre).use(yte,{appName:"Portal Engeplus",pageTrackerScreenviewEnabled:!0,pageTrackerEnabled:!0,enabled:!0,config:{id:"G-WQEMVR13C4",params:{send_page_view:!0}}}).mixin({resolvePreserveState:()=>!1}).use(Tue,{firebaseApp:X9}),i.directive("mask",dre),i.directive("observe-visibility",zee),i.mou
3197nt(e)}})}},function(){return t||(0,e[r(e)[0]])((t={exports:{}}).exports,t),t.exports});export default a();

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