PageSourceSearch

https://paydici.com/vite/assets/vue-axios.esm.min-B95V2tEX.js

js paydici.com collected 2026-10-03 22:14:21 UTC 638,716 bytes, 599 lines download raw bytes

1var rv=Object.defineProperty,iv=Object.defineProperties;var sv=Object.getOwnPropertyDescriptors;var Vu=Object.getOwnPropertySymbols;var ov=Object.prototype.hasOwnProperty,av=Object.prototype.propertyIsEnumerable;var wr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),lv=e=>{throw TypeError(e)},Yu=Math.pow,Wu=(e,t,n)=>t in e?rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))ov.call(t,n)&&Wu(e,n,t[n]);if(Vu)for(var n of Vu(t))av.call(t,n)&&Wu(e,n,t[n]);return e},at=(e,t)=>iv(e,sv(t));var Yt=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{a(n.next(l))}catch(u){i(u)}},o=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);a((n=n.apply(e,t)).next())}),Cr=function(e,t){this[0]=e,this[1]=t},Ju=(e,t,n)=>{var r=(a,l,u,c)=>{try{var d=n[a](l),h=(l=d.value)instanceof Cr,v=d.done;Promise.resolve(h?l[0]:l).then(f=>h?r(a==="return"?a:"next",l[1]?{done:f.done,value:f.value}:f,u,c):u({value:f,done:v})).catch(f=>r("throw",f,u,c))}catch(f){c(f)}},i=(a,l,u,c)=>o[a]=d=>(l=new Promise((h,v,f)=>(f=()=>r(a,d,h,v),s?s.then(f):f())),c=()=>s===u&&(s=0),s=u=l.then(c,c),l),s,o={};return n=n.apply(e,t),o[wr("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},Ku=e=>{var t=e[wr("asyncIterator")],n=!1,r,i={};return t==null?(t=e[wr("iterator")](),r=s=>i[s]=o=>t[s](o)):(t=t.call(e),r=s=>i[s]=o=>{if(n){if(n=!1,s==="throw")throw o;return o}return n=!0,{done:!1,value:new Cr(new Promise(a=>{var l=t[s](o);l instanceof Object||lv("Object expected"),a(l)}),1)}}),i[wr("iterator")]=()=>i,r("next"),"throw"in t?r("throw"):i.throw=s=>{throw s},"return"in t&&r("return"),i},Xu=(e,t,n)=>(t=e[wr("asyncIterator")])?t.call(e):(e=e[wr("iterator")](),t={},n=(r,i)=>(i=e[r])&&(t[r]=s=>new Promise((o,a,l)=>(s=i.call(e,s),l=s.done,Promise.resolve(s.value).then(u=>o({value:u,done:l}),a)))),n("next"),n("return"),t);var uv={};var ie=Object.freeze({}),lt=Array.isArray;function tt(e){return e==null}function T(e){return e!=null}function kt(e){return e===!0}function cv(e){return e===!1}function Mi(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function gt(e){return typeof e=="function"}function Kt(e){return e!==null&&typeof e=="object"}var Bl=Object.prototype.toString;function pe(e){return Bl.call(e)==="[object Object]"}function dv(e){return Bl.call(e)==="[object RegExp]"}function Nh(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function Ua(e){return T(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function hv(e){return e==null?"":Array.isArray(e)||pe(e)&&e.toString===Bl?JSON.stringify(e,fv,2):String(e)}function fv(e,t){return t&&t.__v_isRef?t.value:t}function Ai(e){var t=parseFloat(e);return isNaN(t)?e:t}function $e(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(s){return n[s.toLowerCase()]}:function(s){return n[s]}}$e("slot,component",!0);var pv=$e("key,ref,slot,slot-scope,is");function Pn(e,t){var n=e.length;if(n){if(t===e[n-1]){e.length=n-1;return}var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var mv=Object.prototype.hasOwnProperty;function ne(e,t){return mv.call(e,t)}function cr(e){var t=Object.create(null);return function(r){var i=t[r];return i||(t[r]=e(r))}}var gv=/-(\w)/g,er=cr(function(e){return e.replace(gv,function(t,n){return n?n.toUpperCase():""})}),vv=cr(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),bv=/\B([A-Z])/g,Ii=cr(function(e){return e.replace(bv,"-$1").toLowerCase()});function _v(e,t){function n(r){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return n._length=e.length,n}function yv(e,t){return e.bind(t)}var jh=Function.prototype.bind?yv:_v;function qa(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function Ct(e,t){for(var n in t)e[n]=t[n];return e}function Uh(e){for(var t={},n=0;n<e.length;n++)e[n]&&Ct(t,e[n]);return t}function Tt(e,t,n){}var ns=function(e,t,n){return!1},qh=function(e){return e};function nr(e,t){if(e===t)return!0;var n=Kt(e),r=Kt(t);if(n&&r)try{var i=Array.isArray(e),s=Array.isArray(t);if(i&&s)return e.length===t.length&&e.every(function(l,u){return nr(l,t[u])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(!i&&!s){var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every(function(l){return nr(e[l],t[l])})}else return!1}catch(l){return!1}else return!n&&!r?String(e)===String(t):!1}function Hh(e,t){for(var n=0;n<e.length;n++)if(nr(e[n],t))return n;return-1}function Ls(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function Ha(e,t){return e===t?e===0&&1/e!==1/t:e===e||t===t}var Zu="data-server-rendered",ro=["component","directive","filter"],Gh=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","
1serverPrefetch","renderTracked","renderTriggered"],xe={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ns,isReservedAttr:ns,isUnknownElement:ns,getTagNamespace:Tt,parsePlatformTagName:qh,mustUseProp:ns,async:!0,_lifecycleHooks:Gh},wv=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function zh(e){var t=(e+"").charCodeAt(0);return t===36||t===95}function ce(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Cv=new RegExp("[^".concat(wv.source,".$_\\d]"));function xv(e){if(!Cv.test(e)){var t=e.split(".");return function(n){for(var r=0;r<t.length;r++){if(!n)return;n=n[t[r]]}return n}}}var Av="__proto__"in{},ge=typeof window!="undefined",Se=ge&&window.navigator.userAgent.toLowerCase(),Nr=Se&&/msie|trident/.test(Se),jr=Se&&Se.indexOf("msie 9.0")>0,Vh=Se&&Se.indexOf("edge/")>0;Se&&Se.indexOf("android")>0;var Sv=Se&&/iphone|ipad|ipod|ios/.test(Se),Qu=Se&&Se.match(/firefox\/(\d+)/),Ga={}.watch,Wh=!1;if(ge)try{var tc={};Object.defineProperty(tc,"passive",{get:function(){Wh=!0}}),window.addEventListener("test-passive",null,tc)}catch(e){}var rs,$n=function(){return rs===void 0&&(!ge&&typeof global!="undefined"?rs=global.process&&uv.VUE_ENV==="server":rs=!1),rs},Bs=ge&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Or(e){return typeof e=="function"&&/native code/.test(e.toString())}var Fi=typeof Symbol!="undefined"&&Or(Symbol)&&typeof Reflect!="undefined"&&Or(Reflect.ownKeys),Si;typeof Set!="undefined"&&Or(Set)?Si=Set:Si=(function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(t){return this.set[t]===!0},e.prototype.add=function(t){this.set[t]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e})();var Jt=null;function Ev(){return Jt&&{proxy:Jt}}function Tn(e){e===void 0&&(e=null),e||Jt&&Jt._scope.off(),Jt=e,e&&e._scope.on()}var me=(function(){function e(t,n,r,i,s,o,a,l){this.tag=t,this.data=n,this.children=r,this.text=i,this.elm=s,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=l,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e})(),Yn=function(e){e===void 0&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function Tr(e){return new me(void 0,void 0,void 0,String(e))}function za(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Tv=0,bs=[],Dv=function(){for(var e=0;e<bs.length;e++){var t=bs[e];t.subs=t.subs.filter(function(n){return n}),t._pending=!1}bs.length=0},an=(function(){function e(){this._pending=!1,this.id=Tv++,this.subs=[]}return e.prototype.addSub=function(t){this.subs.push(t)},e.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,bs.push(this))}
1,e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(t){for(var n=this.subs.filter(function(o){return o}),r=0,i=n.length;r<i;r++){var s=n[r];s.update()}},e})();an.target=null;var _s=[];function Ur(e){_s.push(e),an.target=e}function qr(){_s.pop(),an.target=_s[_s.length-1]}var Yh=Array.prototype,Ms=Object.create(Yh),kv=["push","pop","shift","unshift","splice","sort","reverse"];kv.forEach(function(e){var t=Yh[e];ce(Ms,e,function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=t.apply(this,r),o=this.__ob__,a;switch(e){case"push":case"unshift":a=r;break;case"splice":a=r.slice(2);break}return a&&o.observeArray(a),o.dep.notify(),s})});var ec=Object.getOwnPropertyNames(Ms),Jh={},Ml=!0;function Dn(e){Ml=e}var Ov={notify:Tt,depend:Tt,addSub:Tt,removeSub:Tt},nc=(function(){function e(t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),this.value=t,this.shallow=n,this.mock=r,this.dep=r?Ov:new an,this.vmCount=0,ce(t,"__ob__",this),lt(t)){if(!r)if(Av)t.__proto__=Ms;else for(var i=0,s=ec.length;i<s;i++){var o=ec[i];ce(t,o,Ms[o])}n||this.observeArray(t)}else for(var a=Object.keys(t),i=0;i<a.length;i++){var o=a[i];kn(t,o,Jh,void 0,n,r)}}return e.prototype.observeArray=function(t){for(var n=0,r=t.length;n<r;n++)ln(t[n],!1,this.mock)},e})();
1function ln(e,t,n){if(e&&ne(e,"__ob__")&&e.__ob__ instanceof nc)return e.__ob__;if(Ml&&(n||!$n())&&(lt(e)||pe(e))&&Object.isExtensible(e)&&!e.__v_skip&&!zt(e)&&!(e instanceof me))return new nc(e,t,n)}function kn(e,t,n,r,i,s,o){o===void 0&&(o=!1);var a=new an,l=Object.getOwnPropertyDescriptor(e,t);if(!(l&&l.configurable===!1)){var u=l&&l.get,c=l&&l.set;(!u||c)&&(n===Jh||arguments.length===2)&&(n=e[t]);var d=i?n&&n.__ob__:ln(n,!1,s);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var v=u?u.call(e):n;return an.target&&(a.depend(),d&&(d.dep.depend(),lt(v)&&Xh(v))),zt(v)&&!i?v.value:v},set:function(v){var f=u?u.call(e):n;if(Ha(f,v)){if(c)c.call(e,v);else{if(u)return;if(!i&&zt(f)&&!zt(v)){f.value=v;return}else n=v}d=i?v&&v.__ob__:ln(v,!1,s),a.notify()}}}),a}}function Il(e,t,n){if(!Ni(e)){var r=e.__ob__;return lt(e)&&Nh(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&ln(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(kn(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}}function Kh(e,t){if(lt(e)&&Nh(t)){e.splice(t,1);return}var n=e.__ob__;e._isVue||n&&n.vmCount||Ni(e)||ne(e,t)&&(delete e[t],n&&n.dep.notify())}function Xh(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),lt(t)&&Xh(t)}function Fl(e){return Qh(e,!1),e}function Zh(e){return Qh(e,!0),ce(e,"__v_isShallow",!0),e}function Qh(e,t){Ni(e)||ln(e,t,$n())}function mi(e){return Ni(e)?mi(e.__v_raw):!!(e&&e.__ob__)}function rc(e){return!!(e&&e.__v_isShallow)}function Ni(e){return!!(e&&e.__v_isReadonly)}var tf="__v_isRef";function zt(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return Rv(e,!1)}function Rv(e,t){if(zt(e))return e;var n={};return ce(n,tf,!0),ce(n,"__v_isShallow",t),ce(n,"dep",kn(n,"value",e,null,t,$n())),n}function st(e){return zt(e)?e.value:e}function Va(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var r=t[n];if(zt(r))return r.value;var i=r&&r.__ob__;return i&&i.dep.depend(),r},set:function(r){var i=t[n];zt(i)&&!zt(r)?i.value=r:t[n]=r}})}function Et(e,t){var n,r,i=gt(e);i?(n=e,r=Tt):(n=e.get,r=e.set);var s=$n()?null:new ji(Jt,n,Tt,{lazy:!0}),o={effect:s,get value(){return s?(s.dirty&&s.evaluate(),an.target&&s.depend(),s.value):n()},set value(a){r(a)}};return ce(o,tf,!0),ce(o,"__v_isReadonly",i),o}var io="watcher",ic="".concat(io," callback"),sc="".concat(io," getter"),Pv="".concat(io," cleanup"),oc={};function Ei(e,t,n){return $v(e,t,n)}function $v(e,t,n){var r=n===void 0?ie:n,i=r.immediate,s=r.deep,o=r.flush,a=o===void 0?"pre":o;r.onTrack,r.onTrigger;var l=Jt,u=function(E,w,C){C===void 0&&(C=null);var P=un(E,null,C,l,w);return s&&P&&P.__ob__&&P.__ob__.dep.depend(),P},c,d=!1,h=!1;if(zt(e)?(c=function(){return e.value},d=rc(e)):mi(e)?(c=function(){return e.__ob__.dep.depend(),e},s=!0):lt(e)?(h=!0,d=e.some(function(E){return mi(E)||rc(E)}),c=function(){return e.map(function(E){if(zt(E))return E.value;if(mi(E))return E.__ob__.dep.depend(),Br(E);if(gt(E))return u(E,sc)})}):gt(e)?t?c=function(){return u(e,sc)}:c=function(){if(!(l&&l._isDestroyed))return f&&f(),u(e,io,[g])}:c=Tt,t&&s){var v=c;c=function(){return Br(v())}}var f,g=function(E){f=_.onStop=function(){u(E,Pv)}};if($n())return g=Tt,t?i&&u(t,ic,[c(),h?[]:void 0,g]):c(),Tt;var _=new ji(Jt,c,Tt,{lazy:!0});_.noRecurse=!t;var S=h?[]:oc;return _.run=function(){if(_.active)if(t){var E=_.get();(s||d||(h?E.some(function(w,C){return Ha(w,S[C])}
1):Ha(E,S)))&&(f&&f(),u(t,ic,[E,S===oc?void 0:S,g]),S=E)}else _.get()},a==="sync"?_.update=_.run:a==="post"?(_.post=!0,_.update=function(){return Qa(_)}):_.update=function(){if(l&&l===Jt&&!l._isMounted){var E=l._preWatchers||(l._preWatchers=[]);E.indexOf(_)<0&&E.push(_)}else Qa(_)},t?i?_.run():S=_.get():a==="post"&&l?l.$once("hook:mounted",function(){return _.get()}):_.get(),function(){_.teardown()}}var re,Lv=(function(){function e(t){t===void 0&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=re,!t&&re&&(this.index=(re.scopes||(re.scopes=[])).push(this)-1)}return e.prototype.run=function(t){if(this.active){var n=re;try{return re=this,t()}finally{re=n}}},e.prototype.on=function(){re=this},e.prototype.off=function(){re=this.parent},e.prototype.stop=function(t){if(this.active){var n=void 0,r=void 0;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].teardown();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},e})();function Bv(e,t){t===void 0&&(t=re),t&&t.active&&t.effects.push(e)}function Mv(){return re}function ac(e,t){Jt&&(ef(Jt)[e]=t)}function ef(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function lc(e,t,n){n===void 0&&(n=!1);var r=Jt;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&gt(t)?t.call(r):t}}var uc=cr(function(e){var t=e.charAt(0)==="&";e=t?e.slice(1):e;var n=e.charAt(0)==="~";e=n?e.slice(1):e;var r=e.charAt(0)==="!";return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}});function Wa(e,t){function n(){var r=n.fns;if(lt(r))for(var i=r.slice(),s=0;s<i.length;s++)un(i[s],null,arguments,t,"v-on handler");else return un(r,null,arguments,t,"v-on handler")}return n.fns=e,n}function nf(e,t,n,r,i,s){var o,a,l,u;for(o in e)a=e[o],l=t[o],u=uc(o),tt(a)||(tt(l)?(tt(a.fns)&&(a=e[o]=Wa(a,s)),kt(u.once)&&(a=e[o]=i(u.name,a,u.capture)),n(u.name,a,u.capture,u.passive,u.params)):a!==l&&(l.fns=a,e[o]=l));for(o in t)tt(e[o])&&(u=uc(o),r(u.name,t[o],u.capture))}function xn(e,t,n){e instanceof me&&(e=e.data.hook||(e.data.hook={}));var r,i=e[t];function s(){n.apply(this,arguments),Pn(r.fns,s)}tt(i)?r=Wa([s]):T(i.fns)&&kt(i.merged)?(r=i,r.fns.push(s)):r=Wa([i,s]),r.merged=!0,e[t]=r}function Iv(e,t,n){var r=t.options.props;if(!tt(r)){var i={},s=e.attrs,o=e.props;if(T(s)||T(o))for(var a in r){var l=Ii(a);cc(i,o,a,l,!0)||cc(i,s,a,l,!1)}return i}}function cc(e,t,n,r,i){if(T(t)){if(ne(t,n))return e[n]=t[n],i||delete t[n],!0;if(ne(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Fv(e){for(var t=0;t<e.length;t++)if(lt(e[t]))return Array.prototype.concat.apply([],e);return e}function Nl(e){return Mi(e)?[Tr(e)]:lt(e)?rf(e):void 0}function ii(e){return T(e)&&T(e.text)&&cv(e.isComment)}function rf(e,t){var n=[],r,i,s,o;for(r=0;r<e.length;r++)i=e[r],!(tt(i)||typeof i=="boolean")&&(s=n.length-1,o=n[s],lt(i)?i.length>0&&(i=rf(i,"".concat(t||"","_").concat(r)),ii(i[0])&&ii(o)&&(n[s]=Tr(o.text+i[0].text),i.shift()),n.push.apply(n,i)):Mi(i)?ii(o)?n[s]=Tr(o.text+i):i!==""&&n.push(Tr(i)):ii(i)&&ii(o)?n[s]=Tr(o.text+i.text):(kt(e._isVList)&&T(i.tag)&&tt(i.key)&&T(t)&&(i.key="__vlist".concat(t,"_").concat(r,"__")),n.push(i)));return n}function Nv(e,t){var n=null,r,i,s,o;if(lt(e)||typeof e=="string")for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if(typeof e=="number")for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(Kt(e))if(Fi&&e[Symbol.iterator]){n=[];for(var a=e[Symbol.iterator](),l=a.next();!l.done;)n.push(t(l.value,n.length)),l=a.next()}else for(s=Object.keys(e),n=new Array(s.length),r=0,i=s.length;r<i;r++)o=s[r],n[r]=t(e[o],o,r);return T(n)||(n=[]),n._isVList=!0,n}function jv(e,t,n,r){var i=this.$scopedSlots[e],s;i?(n=n||{},r&&(n=Ct(Ct({},r),n)),s=i(n)||(gt(t)?t():t)):s=this.$slots[e]||(gt(t)?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},s):s}function Uv(e){return Us(this.$options,"filters",e)||qh}function dc(e,t){return lt(e)?e.indexOf(t)===-1:e!==t}function qv(e,t,n,r,i){var s=xe.keyCodes[t]||n;return i&&r&&!xe.keyCodes[t]?dc(i,r):s?dc(s,e):r?Ii(r)!==t:e===void 0}function Hv(e,t,n,r,i){if(n&&Kt(n)){lt(n)&&(n=Uh(n));var s=void 0,o=function(l){if(l==="class"||l==="style"||pv(l))s=e;else{var u=e.attrs&&e.attrs.type;s=r||xe.mustUseProp(t,u,l)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=er(l),d=Ii(l);if(!(c in s)&&!(d in s)&&(s[l]=n[l],i)){var h=e.on||(e.on={});h["update:".concat(l)]=function(v){n[l]=v}}};for(var a in n)o(a)}return e}function Gv(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),sf(r,"__static__".concat(e),!1)),r}function zv(e,t,n){return sf(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function sf(e,t,n){if(lt(e))for(var r=0;r<e.length;r++)e[r]&&typeof e[r]!="string"&&hc(e[r],"".concat(t,"_").concat(r),n);else hc(e,t,n)}function hc(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Vv(e,t){if(t&&pe(t)){var n=e.on=e.on?Ct({},e.on):{};for(var r in t){var i=n[r],s=t[r];n[r]=i?[].concat(i,s):s}}return e}function of(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var s=e[i];lt(s)?of(s,t,n):s&&(s.proxy&&(s.fn.proxy=!0),t[s.key]=s.fn)}return r&&(t.$key=r),t}function Wv(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];typeof r=="string"&&r&&(e[t[n]]=t[n+1])}return e}function Yv(e,t){return typeof e=="string"?t+e:e}function af(e){e._o=zv,e._n=Ai,e._s=hv,e._l=Nv,e._t=jv,e._q=nr,e._i=Hh,e._m=Gv,e._f=Uv,e._k=qv,e._b=Hv,e._v=Tr,e._e=Yn,e._u=of,e._g=Vv,e._d=Wv,e._p=Yv}function jl(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,(s.context===t||s.fnContext===t)&&o&&o.slot!=null){var a=o.slot,l=n[a]||(n[a]=[]);s.tag==="template"?l.push.apply(l,s.children||[]):l.push(s)}else(n.default||(n.default=[])).push(s)}for(var u in n)n[u].every(Jv)&&delete n[u];return n}function Jv(e){return e.isComment&&!e.asyncFactory||e.text===" "}function Ti(e){return e.isComment&&e.asyncFactory}function gi(e,t,n,r){var i,s=Object.keys(n).length>0,o=t?!!t.$stable:!s,a=t&&t.$key;if(!t)i={};else{if(t._normalized)return t._normalized;if(o&&r&&r!==ie&&a===r.$key&&!s&&!r.$hasNormal)return r;i={};for(var l in t)t[l]&&l[0]!=="$"&&(i[l]=Kv(e,n,l,t[l]))}for(var u in n)u in i||(i[u]=Xv(n,u));return t&&Object.isExtensible(t)&&(t._normalized=i),ce(i,"$stable",o),ce(i,"$key",a),ce(i,"$hasNormal",s),i}function Kv(e,t,n,r){var i=function(){var s=Jt;Tn(e);var o=arguments.length?r.apply(null,arguments):r({});o=o&&typeof o=="object"&&!lt(o)?[o]:Nl(o);var a=o&&o[0];return Tn(s),o&&(!a||o.length===1&&a.isComment&&!Ti(a))?void 0:o};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function Xv(e,t){return function(){return e[t]}}function Zv(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=Qv(e);Tn(e),Ur();var i=un(n,null,[e._props||Zh({}),r],e,"setup");if(qr(),Tn(),gt(i))t.render=i;else if(Kt(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var s in i)s!=="__sfc"&&Va(o,i,s)}else for(var s in i)zh(s)||Va(e,i,s)}}function Qv(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};ce(t,"_v_attr_proxy",!0),Is(t,e.$attrs,ie,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};Is(t,e.$listeners,ie,e,"$listeners")}return e._listenersProxy},get slots(){return eb(e)},emit:jh(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach(function(n){return Va(e,t,n)})}}}function Is(e,t,n,r,i){var s=!1;for(var o in t)o in e?t[o]!==n[o]&&(s=!0):(s=!0,tb(e,o,r,i));for(var o in e)o in t||(s=!0,delete e[o]);return s}function tb(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function eb(e){return e._slotsProxy||lf(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function lf(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function nb(e){e._vnode=null,e._staticTrees=null;
1var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=jl(t._renderChildren,r),e.$scopedSlots=n?gi(e.$parent,n.data.scopedSlots,e.$slots):ie,e._c=function(s,o,a,l){return Fs(e,s,o,a,l,!1)},e.$createElement=function(s,o,a,l){return Fs(e,s,o,a,l,!0)};var i=n&&n.data;kn(e,"$attrs",i&&i.attrs||ie,null,!0),kn(e,"$listeners",t._parentListeners||ie,null,!0)}var ys=null;function rb(e){af(e.prototype),e.prototype.$nextTick=function(t){return Di(t,this)},e.prototype._render=function(){var t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&t._isMounted&&(t.$scopedSlots=gi(t.$parent,i.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&lf(t._slotsProxy,t.$scopedSlots)),t.$vnode=i;var s=Jt,o=ys,a;try{Tn(t),ys=t,a=r.call(t._renderProxy,t.$createElement)}catch(l){rr(l,t,"render"),a=t._vnode}finally{ys=o,Tn(s)}return lt(a)&&a.length===1&&(a=a[0]),a instanceof me||(a=Yn()),a.parent=i,a}}function Io(e,t){return(e.__esModule||Fi&&e[Symbol.toStringTag]==="Module")&&(e=e.default),Kt(e)?t.extend(e):e}function ib(e,t,n,r,i){var s=Yn();return s.asyncFactory=e,s.asyncMeta={data:t,context:n,children:r,tag:i},s}function sb(e,t){if(kt(e.error)&&T(e.errorComp))return e.errorComp;if(T(e.resolved))return e.resolved;var n=ys;if(n&&T(e.owners)&&e.owners.indexOf(n)===-1&&e.owners.push(n),kt(e.loading)&&T(e.loadingComp))return e.loadingComp;if(n&&!T(e.owners)){var r=e.owners=[n],i=!0,s=null,o=null;n.$on("hook:destroyed",function(){return Pn(r,n)});var a=function(d){for(var h=0,v=r.length;h<v;h++)r[h].$forceUpdate();d&&(r.length=0,s!==null&&(clearTimeout(s),s=null),o!==null&&(clearTimeout(o),o=null))},l=Ls(function(d){e.resolved=Io(d,t),i?r.length=0:a(!0)}),u=Ls(function(d){T(e.errorComp)&&(e.error=!0,a(!0))}),c=e(l,u);return Kt(c)&&(Ua(c)?tt(e.resolved)&&c.then(l,u):Ua(c.component)&&(c.component.then(l,u),T(c.error)&&(e.errorComp=Io(c.error,t)),T(c.loading)&&(e.loadingComp=Io(c.loading,t),c.delay===0?e.loading=!0:s=setTimeout(function(){s=null,tt(e.resolved)&&tt(e.error)&&(e.loading=!0,a(!1))},c.delay||200)),T(c.timeout)&&(o=setTimeout(function(){o=null,tt(e.resolved)&&u(null)},c.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}function uf(e){if(lt(e))for(var t=0;t<e.length;t++){var n=e[t];if(T(n)&&(T(n.componentOptions)||Ti(n)))return n}}var ob=1,cf=2;function Fs(e,t,n,r,i,s){return(lt(n)||Mi(n))&&(i=r,r=n,n=void 0),kt(s)&&(i=cf),ab(e,t,n,r,i)}function ab(e,t,n,r,i){if(T(n)&&T(n.__ob__)||(T(n)&&T(n.is)&&(t=n.is),!t))return Yn();lt(r)&&gt(r[0])&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===cf?r=Nl(r):i===ob&&(r=Fv(r));var s,o;if(typeof t=="string"){var a=void 0;o=e.$vnode&&e.$vnode.ns||xe.getTagNamespace(t),xe.isReservedTag(t)?s=new me(xe.parsePlatformTagName(t),n,r,void 0,void 0,e):(!n||!n.pre)&&T(a=Us(e.$options,"components",t))?s=yc(a,n,e,r,t):s=new me(t,n,r,void 0,void 0,e)}else s=yc(t,n,e,r);return lt(s)?s:T(s)?(T(o)&&df(s,o),T(n)&&lb(n),s):Yn()}function df(e,t,n){if(e.ns=t,e.tag==="foreignObject"&&(t=void 0,n=!0),T(e.children))for(var r=0,i=e.children.length;r<i;r++){var s=e.children[r];T(s.tag)&&(tt(s.ns)||kt(n)&&s.tag!=="svg")&&df(s,t,n)}}function lb(e){Kt(e.style)&&Br(e.style),Kt(e.class)&&Br(e.class)}function rr(e,t,n){Ur();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var s=0;s<i.length;s++)try{var o=i[s].call(r,e,t,n)===!1;if(o)return}catch(a){fc(a,r,"errorCaptured hook")}}fc(e,t,n)}finally{qr()}}function un(e,t,n,r,i){var s;try{s=n?e.apply(t,n):e.call(t),s&&!s._isVue&&Ua(s)&&!s._handled&&(s.catch(function(o){return rr(o,r,i+" (Promise/async)")}),s._handled=!0)}catch(o){rr(o,r,i)}return s}function fc(e,t,n){if(xe.errorHandler)try{return xe.errorHandler.call(null,e,t,n)}catch(r){r!==e&&pc(r)}pc(e)}function pc(e,t,n){if(ge&&typeof console!="undefined")console.error(e);else throw e}var Ya=!1,Ja=[],Ka=!1;function is(){Ka=!1;var e=Ja.slice(0);Ja.length=0;for(var t=0;t<e.length;t++)e[t]()}var di;if(typeof Promise!="undefined"&&Or(Promise)){var ub=Promise.resolve();di=function(){ub.then(is),Sv&&setTimeout(Tt)},Ya=!0}else if(!Nr&&typeof MutationObserver!="undefined"&&(Or(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var ss=1,cb=new MutationObserver(is),mc=document.createTextNode(String(ss));cb.observe(mc,{characterData:!0}
1),di=function(){ss=(ss+1)%2,mc.data=String(ss)},Ya=!0}else typeof setImmediate!="undefined"&&Or(setImmediate)?di=function(){setImmediate(is)}:di=function(){setTimeout(is,0)};function Di(e,t){var n;if(Ja.push(function(){if(e)try{e.call(t)}catch(r){rr(r,t,"nextTick")}else n&&n(t)}),Ka||(Ka=!0,di()),!e&&typeof Promise!="undefined")return new Promise(function(r){n=r})}function hf(e){return function(t,n){if(n===void 0&&(n=Jt),!!n)return db(n,e,t)}}function db(e,t,n){var r=e.$options;r[t]=_f(r[t],n)}var hb=hf("beforeMount"),fb=hf("beforeDestroy"),pb="2.7.16",gc=new Si;function Br(e){return ws(e,gc),gc.clear(),e}function ws(e,t){var n,r,i=lt(e);if(!(!i&&!Kt(e)||e.__v_skip||Object.isFrozen(e)||e instanceof me)){if(e.__ob__){var s=e.__ob__.dep.id;if(t.has(s))return;t.add(s)}if(i)for(n=e.length;n--;)ws(e[n],t);else if(zt(e))ws(e.value,t);else for(r=Object.keys(e),n=r.length;n--;)ws(e[r[n]],t)}}var mb=0,ji=(function(){function e(t,n,r,i,s){Bv(this,re&&!re._vm?re:t?t._scope:void 0),(this.vm=t)&&s&&(t._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++mb,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Si,this.newDepIds=new Si,this.expression="",gt(n)?this.getter=n:(this.getter=xv(n),this.getter||(this.getter=Tt)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){Ur(this);var t,n=this.vm;try{t=this.getter.call(n,n)}catch(r){if(this.user)rr(r,n,'getter for watcher "'.concat(this.expression,'"'));else throw r}finally{this.deep&&Br(t),qr(),this.cleanupDeps()}return t},e.prototype.addDep=function(t){var n=t.id;this.newDepIds.has(n)||(this.newDepIds.add(n),this.newDeps.push(t),this.depIds.has(n)||t.addSub(this))},e.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var n=this.deps[t];this.newDepIds.has(n.id)||n.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qa(this)},e.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||Kt(t)||this.deep){var n=this.value;if(this.value=t,this.user){var r='callback for watcher "'.concat(this.expression,'"');un(this.cb,this.vm,[t,n],this.vm,r)}else this.cb.call(this.vm,t,n)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1}
1,e.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&Pn(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e})();function gb(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ff(e,t)}var ki;function vb(e,t){ki.$on(e,t)}function bb(e,t){ki.$off(e,t)}function _b(e,t){var n=ki;return function r(){var i=t.apply(null,arguments);i!==null&&n.$off(e,r)}}function ff(e,t,n){ki=e,nf(t,n||{},vb,bb,_b,e),ki=void 0}function yb(e){var t=/^hook:/;e.prototype.$on=function(n,r){var i=this;if(lt(n))for(var s=0,o=n.length;s<o;s++)i.$on(n[s],r);else(i._events[n]||(i._events[n]=[])).push(r),t.test(n)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(n,r){var i=this;function s(){i.$off(n,s),r.apply(i,arguments)}return s.fn=r,i.$on(n,s),i},e.prototype.$off=function(n,r){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(lt(n)){for(var s=0,o=n.length;s<o;s++)i.$off(n[s],r);return i}var a=i._events[n];if(!a)return i;if(!r)return i._events[n]=null,i;for(var l,u=a.length;u--;)if(l=a[u],l===r||l.fn===r){a.splice(u,1);break}return i},e.prototype.$emit=function(n){var r=this,i=r._events[n];if(i){i=i.length>1?qa(i):i;for(var s=qa(arguments,1),o='event handler for "'.concat(n,'"'),a=0,l=i.length;a<l;a++)un(i[a],r,s,r,o)}return r}}var Jn=null;function pf(e){var t=Jn;return Jn=e,function(){Jn=t}}function wb(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Cb(e){e.prototype._update=function(t,n){var r=this,i=r.$el,s=r._vnode,o=pf(r);r._vnode=t,s?r.$el=r.__patch__(s,t):r.$el=r.__patch__(r.$el,t,n,!1),o(),i&&(i.__vue__=null),r.$el&&(r.$el.__vue__=r);for(var a=r;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},e.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Re(t,"beforeDestroy"),t._isBeingDestroyed=!0;var n=t.$parent;n&&!n._isBeingDestroyed&&!t.$options.abstract&&Pn(n.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Re(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function xb(e,t,n){e.$el=t,e.$options.render||(e.$options.render=Yn),Re(e,"beforeMount");var r;r=function(){e._update(e._render(),n)};var i={before:function(){e._isMounted&&!e._isDestroyed&&Re(e,"beforeUpdate")}};new ji(e,r,Tt,i,!0),n=!1;var s=e._preWatchers;if(s)for(var o=0;o<s.length;o++)s[o].run();return e.$vnode==null&&(e._isMounted=!0,Re(e,"mounted")),e}function Ab(e,t,n,r,i){var s=r.data.scopedSlots,o=e.$scopedSlots,a=!!(s&&!s.$stable||o!==ie&&!o.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),l=!!(i||e.$options._renderChildren||a),u=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i;var c=r.data.attrs||ie;e._attrsProxy&&Is(e._attrsProxy,c,u.data&&u.data.attrs||ie,e,"$attrs")&&(l=!0),e.$attrs=c,n=n||ie;var d=e.$options._parentListeners;if(e._listenersProxy&&Is(e._listenersProxy,n,d||ie,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,ff(e,n,d),t&&e.$options.props){Dn(!1);for(var h=e._props,v=e.$options._propKeys||[],f=0;f<v.length;f++){var g=v[f],_=e.$options.props;h[g]=Vl(g,_,t,e)}Dn(!0),e.$options.propsData=t}l&&(e.$slots=jl(i,r.context),e.$forceUpdate())}function mf(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Ul(e,t){if(t){if(e._directInactive=!1,mf(e))return}else if(e._directInactive)return;if(e._inactive||e._inactive===null){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Ul(e.$children[n]);Re(e,"activated")}}function gf(e,t){if(!(t&&(e._directInactive=!0,mf(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)gf(e.$children[n]);Re(e,"deactivated")}}function Re(e,t,n,r){r===void 0&&(r=!0),Ur();var i=Jt,s=Mv();r&&Tn(e);var o=e.$options[t],a="".concat(t," hook");if(o)for(var l=0,u=o.length;l<u;l++)un(o[l],e,null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),r&&(Tn(i),s&&s.on()),qr()}var rn=[],ql=[],Ns={}
vendor: 11,275 bytes, line 1
1,Xa=!1,Hl=!1,Dr=0;function Sb(){Dr=rn.length=ql.length=0,Ns={},Xa=Hl=!1}var vf=0,Za=Date.now;if(ge&&!Nr){var Fo=window.performance;Fo&&typeof Fo.now=="function"&&Za()>document.createEvent("Event").timeStamp&&(Za=function(){return Fo.now()})}var Eb=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Tb(){vf=Za(),Hl=!0;var e,t;for(rn.sort(Eb),Dr=0;Dr<rn.length;Dr++)e=rn[Dr],e.before&&e.before(),t=e.id,Ns[t]=null,e.run();var n=ql.slice(),r=rn.slice();Sb(),Ob(n),Db(r),Dv(),Bs&&xe.devtools&&Bs.emit("flush")}function Db(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Re(r,"updated")}}function kb(e){e._inactive=!1,ql.push(e)}function Ob(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Ul(e[t],!0)}function Qa(e){var t=e.id;if(Ns[t]==null&&!(e===an.target&&e.noRecurse)){if(Ns[t]=!0,!Hl)rn.push(e);else{for(var n=rn.length-1;n>Dr&&rn[n].id>e.id;)n--;rn.splice(n+1,0,e)}Xa||(Xa=!0,Di(Tb))}}function Rb(e){var t=e.$options.provide;if(t){var n=gt(t)?t.call(e):t;if(!Kt(n))return;for(var r=ef(e),i=Fi?Reflect.ownKeys(n):Object.keys(n),s=0;s<i.length;s++){var o=i[s];Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(n,o))}}}function Pb(e){var t=bf(e.$options.inject,e);t&&(Dn(!1),Object.keys(t).forEach(function(n){kn(e,n,t[n])}),Dn(!0))}function bf(e,t){if(e){for(var n=Object.create(null),r=Fi?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var s=r[i];if(s!=="__ob__"){var o=e[s].from;if(o in t._provided)n[s]=t._provided[o];else if("default"in e[s]){var a=e[s].default;n[s]=gt(a)?a.call(t):a}}}return n}}function Gl(e,t,n,r,i){var s=this,o=i.options,a;ne(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var l=kt(o._compiled),u=!l;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||ie,this.injections=bf(o.inject,r),this.slots=function(){return s.$slots||gi(r,e.scopedSlots,s.$slots=jl(n,r)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return gi(r,e.scopedSlots,this.slots())}}),l&&(this.$options=o,this.$slots=this.slots(),this.$scopedSlots=gi(r,e.scopedSlots,this.$slots)),o._scopeId?this._c=function(c,d,h,v){var f=Fs(a,c,d,h,v,u);return f&&!lt(f)&&(f.fnScopeId=o._scopeId,f.fnContext=r),f}:this._c=function(c,d,h,v){return Fs(a,c,d,h,v,u)}}af(Gl.prototype);function $b(e,t,n,r,i){var s=e.options,o={},a=s.props;if(T(a))for(var l in a)o[l]=Vl(l,a,t||ie);else T(n.attrs)&&bc(o,n.attrs),T(n.props)&&bc(o,n.props);var u=new Gl(n,o,i,r,e),c=s.render.call(null,u._c,u);if(c instanceof me)return vc(c,n,u.parent,s);if(lt(c)){for(var d=Nl(c)||[],h=new Array(d.length),v=0;v<d.length;v++)h[v]=vc(d[v],n,u.parent,s);return h}}function vc(e,t,n,r,i){var s=za(e);return s.fnContext=n,s.fnOptions=r,t.slot&&((s.data||(s.data={})).slot=t.slot),s}function bc(e,t){for(var n in t)e[er(n)]=t[n]}function js(e){return e.name||e.__name||e._componentTag}var zl={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;zl.prepatch(n,n)}else{var r=e.componentInstance=Lb(e,Jn);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Ab(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Re(n,"mounted")),e.data.keepAlive&&(t._isMounted?kb(n):Ul(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?gf(t,!0):t.$destroy())}},_c=Object.keys(zl);function yc(e,t,n,r,i){if(!tt(e)){var s=n.$options._base;if(Kt(e)&&(e=s.extend(e)),typeof e=="function"){var o;if(tt(e.cid)&&(o=e,e=sb(o,s),e===void 0))return ib(o,t,n,r,i);t=t||{},Yl(e),T(t.model)&&Ib(e.options,t);var a=Iv(t,e);if(kt(e.options.functional))return $b(e,a,t,n,r);var l=t.on;if(t.on=t.nativeOn,kt(e.options.abstract)){var u=t.slot;t={},u&&(t.slot=u)}Bb(t);var c=js(e.options)||i,d=new me("vue-component-".concat(e.cid).concat(c?"-".concat(c):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:l,tag:i,children:r},o);return d}}}function Lb(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return T(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Bb(e){for(var t=e.hook||(e.hook={}),n=0;n<_c.length;n++){var r=_c[n],i=t[r],s=zl[r];i!==s&&!(i&&i._merged)&&(t[r]=i?Mb(s,i):s)}}function Mb(e,t){var n=function(r,i){e(r,i),t(r,i)};return n._merged=!0,n}function Ib(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),s=i[r],o=t.model.callback;T(s)?(lt(s)?s.indexOf(o)===-1:s!==o)&&(i[r]=[o].concat(s)):i[r]=o}var Fb=Tt,Ue=xe.optionMergeStrategies;function Oi(e,t,n){if(n===void 0&&(n=!0),!t)return e;for(var r,i,s,o=Fi?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)r=o[a],r!=="__ob__"&&(i=e[r],s=t[r],!n||!ne(e,r)?Il(e,r,s):i!==s&&pe(i)&&pe(s)&&Oi(i,s));return e}function wc(e,t,n){return n?function(){var i=gt(t)?t.call(n,n):t,s=gt(e)?e.call(n,n):e;return i?Oi(i,s):s}:t?e?function(){return Oi(gt(t)?t.call(this,this):t,gt(e)?e.call(this,this):e)}:t:e}Ue.data=function(e,t,n){return n?wc(e,t,n):t&&typeof t!="function"?e:wc(e,t)};function _f(e,t){var n=t?e?e.concat(t):lt(t)?t:[t]:e;return n&&Nb(n)}function Nb(e){for(var t=[],n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}Gh.forEach(function(e){Ue[e]=_f});function jb(e,t,n,r){var i=Object.create(e||null);return t?Ct(i,t):i}ro.forEach(function(e){Ue[e+"s"]=jb});Ue.watch=function(e,t,n,r){if(e===Ga&&(e=void 0),t===Ga&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};Ct(i,e);for(var s in t){var o=i[s],a=t[s];o&&!lt(o)&&(o=[o]),i[s]=o?o.concat(a):lt(a)?a:[a]}return i};Ue.props=Ue.methods=Ue.inject=Ue.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return Ct(i,e),t&&Ct(i,t),i};Ue.provide=function(e,t){return e?function(){var n=Object.create(null);return Oi(n,gt(e)?e.call(this):e),t&&Oi(n,gt(t)?t.call(this):t,!1),n}:t};var Ub=function(e,t){return t===void 0?e:t};function qb(e,t){var n=e.props;if(n){var r={},i,s,o;if(lt(n))for(i=n.length;i--;)s=n[i],typeof s=="string"&&(o=er(s),r[o]={type:null});else if(pe(n))for(var a in n)s=n[a],o=er(a),r[o]=pe(s)?s:{type:s};e.props=r}}function Hb(e,t){var n=e.inject;if(n){var r=e.inject={};if(lt(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(pe(n))for(var s in n){var o=n[s];r[s]=pe(o)?Ct({from:s},o):{from:o}}}}function Gb(e){var t=e.directives;if(t)for(var n in t){var r=t[n];gt(r)&&(t[n]={bind:r,update:r})}}function ir(e,t,n){if(gt(t)&&(t=t.options),qb(t),Hb(t),Gb(t),!t._base&&(t.extends&&(e=ir(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=ir(e,t.mixins[r],n);var s={},o;for(o in e)a(o);for(o in t)ne(e,o)||a(o);function a(l){var u=Ue[l]||Ub;s[l]=u(e[l],t[l],n,l)}return s}function Us(e,t,n,r){if(typeof n=="string"){var i=e[t];if(ne(i,n))return i[n];var s=er(n);if(ne(i,s))return i[s];var o=vv(s);if(ne(i,o))return i[o];var a=i[n]||i[s]||i[o];return a}}function Vl(e,t,n,r){var i=t[e],s=!ne(n,e),o=n[e],a=xc(Boolean,i.type);if(a>-1){if(s&&!ne(i,"default"))o=!1;else if(o===""||o===Ii(e)){var l=xc(String,i.type);(l<0||a<l)&&(o=!0)}}if(o===void 0){o=zb(r,i,e);var u=Ml;Dn(!0),ln(o),Dn(u)}return o}function zb(e,t,n){if(ne(t,"default")){var r=t.default;return e&&e.$options.propsData&&e.$options.propsData[n]===void 0&&e._props[n]!==void 0?e._props[n]:gt(r)&&tl(t.type)!=="Function"?r.call(e):r}}var Vb=/^\s*function (\w+)/;function tl(e){var t=e&&e.toString().match(Vb);return t?t[1]:""}function Cc(e,t){return tl(e)===tl(t)}function xc(e,t){if(!lt(t))return Cc(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Cc(t[n],e))return n;return-1}var wn={enumerable:!0,configurable:!0,get:Tt,set:Tt};function Wl(e,t,n){wn.get=function(){return this[t][n]},wn.set=function(i){this[t][n]=i},Object.defineProperty(e,n,wn)}function Wb(e){var t=e.$options;if(t.props&&Yb(e,t.props),Zv(e),t.methods&&Qb(e,t.methods),t.data)Jb(e);else{var n=ln(e._data={});n&&n.vmCount++}t.computed&&Zb(e,t.computed),t.watch&&t.watch!==Ga&&t_(e,t.watch)}function Yb(e,t){var n=e.$options.propsData||{},r=e._props=Zh({}),i=e.$options._propKeys=[],s=!e.$parent;s||Dn(!1);var o=function(l){i.push(l);var u=Vl(l,t,n,e);kn(r,l,u,void 0,!0),l in e||Wl(e,"_props",l)};for(var a in t)o(a);Dn(!0)}function Jb(e){var t=e.$options.data;t=e._data=gt(t)?Kb(t,e):t||{},pe(t)||(t={});var n=Object.keys(t),r=e.$options.props;e.$options.methods;for(var i=n.length;i--;){var s=n[i];r&&ne(r,s)||zh(s)||Wl(e,"_data",s)}var o=ln(t);o&&o.vmCount++}function Kb(e,t){Ur();try{return e.call(t,t)}catch(n){return rr(n,t,"data()"),{}}finally{qr()}}var Xb={lazy:!0};function Zb(e,t){var n=e._computedWatchers=Object.create(null),r=$n();for(var i in t){var s=t[i],o=gt(s)?s:s.get;r||(n[i]=new ji(e,o||Tt,Tt,Xb)),i in e||yf(e,i,s)}}function yf(e,t,n){var r=!$n();gt(n)?(wn.get=r?Ac(t):Sc(n),wn.set=Tt):(wn.get=n.get?r&&n.cache!==!1?Ac(t):Sc(n.get):Tt,wn.set=n.set||Tt),Object.defineProperty(e,t,wn)}function Ac(e){return function(){var n=this._computedWatchers&&this._computedWatchers[e];if(n)return n.dirty&&n.evaluate(),an.target&&n.depend(),n.value}}function Sc(e){return function(){return e.call(this,this)}}function Qb(e,t){e.$options.props;for(var n in t)e[n]=typeof t[n]!="function"?Tt:jh(t[n],e)}function t_(e,t){for(var n in t){var r=t[n];if(lt(r))for(var i=0;i<r.length;i++)el(e,n,r[i]);else el(e,n,r)}}function el(e,t,n,r){return pe(n)&&(r=n,n=n.handler),typeof n=="string"&&(n=e[n]),e.$watch(t,n,r)}function e_(e){var t={};t.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Il,e.prototype.$delete=Kh,e.prototype.$watch=function(r,i,s){var o=this;if(pe(i))return el(o,r,i,s);s=s||{},s.user=!0;var a=new ji(o,r,i,s);if(s.immediate){var l='callback for immediate watcher "'.concat(a.expression,'"');Ur(),un(i,o,[a.value],o,l),qr()}return function(){a.teardown()}}}var n_=0;function r_(e){e.prototype._init=function(t){var n=this;n._uid=n_++,n._isVue=!0,n.__v_skip=!0,n._scope=new Lv(!0),n._scope.parent=void 0,n._scope._vm=!0,t&&t._isComponent?i_(n,t):n.$options=ir(Yl(n.constructor),t||{},n),n._renderProxy=n,n._self=n,wb(n),gb(n),nb(n),Re(n,"beforeCreate",void 0,!1),Pb(n),Wb(n),Rb(n),Re(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}function i_(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Yl(e){var t=e.options;if(e.super){var n=Yl(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=s_(e);i&&Ct(e.extendOptions,i),t=e.options=ir(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function s_(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function dt(e){this._init(e)}r_(dt);e_(dt);yb(dt);Cb(dt);rb(dt);function o_(e){e.use=function(t){var n=this._installedPlugins||(this._installedPlugins=[]);if(n.indexOf(t)>-1)return this;
1var r=qa(arguments,1);return r.unshift(this),gt(t.install)?t.install.apply(t,r):gt(t)&&t.apply(null,r),n.push(t),this}}function a_(e){e.mixin=function(t){return this.options=ir(this.options,t),this}}function l_(e){e.cid=0;var t=1;e.extend=function(n){n=n||{};var r=this,i=r.cid,s=n._Ctor||(n._Ctor={});if(s[i])return s[i];var o=js(n)||js(r.options),a=function(u){this._init(u)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=t++,a.options=ir(r.options,n),a.super=r,a.options.props&&u_(a),a.options.computed&&c_(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,ro.forEach(function(l){a[l]=r[l]}),o&&(a.options.components[o]=a),a.superOptions=r.options,a.extendOptions=n,a.sealedOptions=Ct({},a.options),s[i]=a,a}}function u_(e){var t=e.options.props;for(var n in t)Wl(e.prototype,"_props",n)}function c_(e){var t=e.options.computed;for(var n in t)yf(e.prototype,n,t[n])}function d_(e){ro.forEach(function(t){e[t]=function(n,r){return r?(t==="component"&&pe(r)&&(r.name=r.name||n,r=this.options._base.extend(r)),t==="directive"&&gt(r)&&(r={bind:r,update:r}),this.options[t+"s"][n]=r,r):this.options[t+"s"][n]}})}function Ec(e){return e&&(js(e.Ctor.options)||e.tag)}function os(e,t){return lt(e)?e.indexOf(t)>-1:typeof e=="string"?e.split(",").indexOf(t)>-1:dv(e)?e.test(t):!1}function Tc(e,t){var n=e.cache,r=e.keys,i=e._vnode,s=e.$vnode;for(var o in n){var a=n[o];if(a){var l=a.name;l&&!t(l)&&nl(n,o,r,i)}}s.componentOptions.children=void 0}function nl(e,t,n,r){var i=e[t];i&&(!r||i.tag!==r.tag)&&i.componentInstance.$destroy(),e[t]=null,Pn(n,t)}var Dc=[String,RegExp,Array],h_={name:"keep-alive",abstract:!0,props:{include:Dc,exclude:Dc,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var s=r.tag,o=r.componentInstance,a=r.componentOptions;t[i]={name:Ec(a),tag:s,componentInstance:o},n.push(i),this.max&&n.length>parseInt(this.max)&&nl(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)nl(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Tc(e,function(n){return os(t,n)})}),this.$watch("exclude",function(t){Tc(e,function(n){return!os(t,n)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=uf(e),n=t&&t.componentOptions;if(n){var r=Ec(n),i=this,s=i.include,o=i.exclude;if(s&&(!r||!os(s,r))||o&&r&&os(o,r))return t;var a=this,l=a.cache,u=a.keys,c=t.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,Pn(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},f_={KeepAlive:h_};function p_(e){var t={};t.get=function(){return xe},Object.defineProperty(e,"config",t),e.util={warn:Fb,extend:Ct,mergeOptions:ir,defineReactive:kn},e.set=Il,e.delete=Kh,e.nextTick=Di,e.observable=function(n){return ln(n),n},e.options=Object.create(null),ro.forEach(function(n){e.options[n+"s"]=Object.create(null)}),e.options._base=e,Ct(e.options.components,f_),o_(e),a_(e),l_(e),d_(e)}p_(dt);Object.defineProperty(dt.prototype,"$isServer",{get:$n});Object.defineProperty(dt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(dt,"FunctionalRenderContext",{value:Gl});dt.version=pb;var m_=$e("style,class"),g_=$e("input,textarea,option,select,progress"),v_=function(e,t,n){return n==="value"&&g_(e)&&t!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"},wf=$e("contenteditable,draggable,spellcheck"),b_=$e("events,caret,typing,plaintext-only"),__=function(e,t){return qs(t)||t==="false"?"false":e==="contenteditable"&&b_(t)?t:"true"},y_=$e("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),rl="http://www.w3.org/1999/xlink",Jl=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},Cf=function(e){return Jl(e)?e.slice(6,e.length):""},qs=function(e){return e==null||e===!1};function w_(e){for(var t=e.data,n=e,r=e;T(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=kc(r.data,t));for(;T(n=n.parent);)n&&n.data&&(t=kc(t,n.data));return C_(t.staticClass,t.class)}function kc(e,t){return{staticClass:Kl(e.staticClass,t.staticClass),class:T(e.class)?[e.class,t.class]:t.class}}function C_(e,t){return T(e)||T(t)?Kl(e,Xl(t)):""}function Kl(e,t){return e?t?e+" "+t:e:t||""}function Xl(e){return Array.isArray(e)?x_(e):Kt(e)?A_(e):typeof e=="string"?e:""}function x_(e){for(var t="",n,r=0,i=e.length;r<i;r++)T(n=Xl(e[r]))&&n!==""&&(t&&(t+=" "),t+=n);return t}function A_(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var S_={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},E_=$e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Zl=$e("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),xf=function(e){return E_(e)||Zl(e)};function T_(e){if(Zl(e))return"svg";if(e==="math")return"math"}var as=Object.create(null);function D_(e){if(!ge)return!0;
vendor: 9,360 bytes, line 1
1if(xf(e))return!1;if(e=e.toLowerCase(),as[e]!=null)return as[e];var t=document.createElement(e);return e.indexOf("-")>-1?as[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:as[e]=/HTMLUnknownElement/.test(t.toString())}var il=$e("text,number,password,search,email,tel,url");function k_(e){if(typeof e=="string"){var t=document.querySelector(e);return t||document.createElement("div")}else return e}function O_(e,t){var n=document.createElement(e);return e!=="select"||t.data&&t.data.attrs&&t.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function R_(e,t){return document.createElementNS(S_[e],t)}function P_(e){return document.createTextNode(e)}function $_(e){return document.createComment(e)}function L_(e,t,n){e.insertBefore(t,n)}function B_(e,t){e.removeChild(t)}function M_(e,t){e.appendChild(t)}function I_(e){return e.parentNode}function F_(e){return e.nextSibling}function N_(e){return e.tagName}function j_(e,t){e.textContent=t}function U_(e,t){e.setAttribute(t,"")}var q_=Object.freeze({__proto__:null,createElement:O_,createElementNS:R_,createTextNode:P_,createComment:$_,insertBefore:L_,removeChild:B_,appendChild:M_,parentNode:I_,nextSibling:F_,tagName:N_,setTextContent:j_,setStyleScope:U_}),H_={create:function(e,t){kr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(kr(e,!0),kr(t))},destroy:function(e){kr(e,!0)}};function kr(e,t){var n=e.data.ref;if(T(n)){var r=e.context,i=e.componentInstance||e.elm,s=t?null:i,o=t?void 0:i;if(gt(n)){un(n,r,[s],r,"template ref function");return}var a=e.data.refInFor,l=typeof n=="string"||typeof n=="number",u=zt(n),c=r.$refs;if(l||u){if(a){var d=l?c[n]:n.value;t?lt(d)&&Pn(d,i):lt(d)?d.includes(i)||d.push(i):l?(c[n]=[i],Oc(r,n,c[n])):n.value=[i]}else if(l){if(t&&c[n]!==i)return;c[n]=o,Oc(r,n,s)}else if(u){if(t&&n.value!==i)return;n.value=s}}}}function Oc(e,t,n){var r=e._setupState;r&&ne(r,t)&&(zt(r[t])?r[t].value=n:r[t]=n)}var An=new me("",{},[]),si=["create","activate","update","remove","destroy"];function Un(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&T(e.data)===T(t.data)&&G_(e,t)||kt(e.isAsyncPlaceholder)&&tt(t.asyncFactory.error))}function G_(e,t){if(e.tag!=="input")return!0;var n,r=T(n=e.data)&&T(n=n.attrs)&&n.type,i=T(n=t.data)&&T(n=n.attrs)&&n.type;return r===i||il(r)&&il(i)}function z_(e,t,n){var r,i,s={};for(r=t;r<=n;++r)i=e[r].key,T(i)&&(s[i]=r);return s}function V_(e){var t,n,r={},i=e.modules,s=e.nodeOps;for(t=0;t<si.length;++t)for(r[si[t]]=[],n=0;n<i.length;++n)T(i[n][si[t]])&&r[si[t]].push(i[n][si[t]]);function o(x){return new me(s.tagName(x).toLowerCase(),{},[],void 0,x)}function a(x,m){function b(){--b.listeners===0&&l(x)}return b.listeners=m,b}function l(x){var m=s.parentNode(x);T(m)&&s.removeChild(m,x)}function u(x,m,b,y,M,R,F){if(T(x.elm)&&T(R)&&(x=R[F]=za(x)),x.isRootInsert=!M,!c(x,m,b,y)){var N=x.data,B=x.children,G=x.tag;T(G)?(x.elm=x.ns?s.createElementNS(x.ns,G):s.createElement(G,x),S(x),f(x,B,m),T(N)&&_(x,m),v(b,x.elm,y)):kt(x.isComment)?(x.elm=s.createComment(x.text),v(b,x.elm,y)):(x.elm=s.createTextNode(x.text),v(b,x.elm,y))}}function c(x,m,b,y){var M=x.data;if(T(M)){var R=T(x.componentInstance)&&M.keepAlive;if(T(M=M.hook)&&T(M=M.init)&&M(x,!1),T(x.componentInstance))return d(x,m),v(b,x.elm,y),kt(R)&&h(x,m,b,y),!0}}function d(x,m){T(x.data.pendingInsert)&&(m.push.apply(m,x.data.pendingInsert),x.data.pendingInsert=null),x.elm=x.componentInstance.$el,g(x)?(_(x,m),S(x)):(kr(x),m.push(x))}function h(x,m,b,y){for(var M,R=x;R.componentInstance;)if(R=R.componentInstance._vnode,T(M=R.data)&&T(M=M.transition)){for(M=0;M<r.activate.length;++M)r.activate[M](An,R);m.push(R);break}v(b,x.elm,y)}function v(x,m,b){T(x)&&(T(b)?s.parentNode(b)===x&&s.insertBefore(x,m,b):s.appendChild(x,m))}function f(x,m,b){if(lt(m))for(var y=0;y<m.length;++y)u(m[y],b,x.elm,null,!0,m,y);else Mi(x.text)&&s.appendChild(x.elm,s.createTextNode(String(x.text)))}function g(x){for(;x.componentInstance;)x=x.componentInstance._vnode;return T(x.tag)}function _(x,m){for(var b=0;b<r.create.length;++b)r.create[b](An,x);t=x.data.hook,T(t)&&(T(t.create)&&t.create(An,x),T(t.insert)&&m.push(x))}function S(x){var m;if(T(m=x.fnScopeId))s.setStyleScope(x.elm,m);else for(var b=x;b;)T(m=b.context)&&T(m=m.$options._scopeId)&&s.setStyleScope(x.elm,m),b=b.parent;T(m=Jn)&&m!==x.context&&m!==x.fnContext&&T(m=m.$options._scopeId)&&s.setStyleScope(x.elm,m)}function E(x,m,b,y,M,R){for(;y<=M;++y)u(b[y],R,x,m,!1,b,y)}function w(x){var m,b,y=x.data;if(T(y))for(T(m=y.hook)&&T(m=m.destroy)&&m(x),m=0;m<r.destroy.length;++m)r.destroy[m](x);if(T(m=x.children))for(b=0;b<x.children.length;++b)w(x.children[b])}function C(x,m,b){for(;m<=b;++m){var y=x[m];T(y)&&(T(y.tag)?(P(y),w(y)):l(y.elm))}}function P(x,m){if(T(m)||T(x.data)){var b,y=r.remove.length+1;for(T(m)?m.listeners+=y:m=a(x.elm,y),T(b=x.componentInstance)&&T(b=b._vnode)&&T(b.data)&&P(b,m),b=0;b<r.remove.length;++b)r.remove[b](x,m);T(b=x.data.hook)&&T(b=b.remove)?b(x,m):m()}else l(x.elm)}function k(x,m,b,y,M){for(var R=0,F=0,N=m.length-1,B=m[0],G=m[N],z=b.length-1,X=b[0],vt=b[z],Z,Lt,xt,bt,wt=!M;R<=N&&F<=z;)tt(B)?B=m[++R]:tt(G)?G=m[--N]:Un(B,X)?(j(B,X,y,b,F),B=m[++R],X=b[++F]):Un(G,vt)?(j(G,vt,y,b,z),G=m[--N],vt=b[--z]):Un(B,vt)?(j(B,vt,y,b,z),wt&&s.insertBefore(x,B.elm,s.nextSibling(G.elm)),B=m[++R],vt=b[--z]):Un(G,X)?(j(G,X,y,b,F),wt&&s.insertBefore(x,G.elm,B.elm),G=m[--N],X=b[++F]):(tt(Z)&&(Z=z_(m,R,N)),Lt=T(X.key)?Z[X.key]:L(X,m,R,N),tt(Lt)?u(X,y,x,B.elm,!1,b,F):(xt=m[Lt],Un(xt,X)?(j(xt,X,y,b,F),m[Lt]=void 0,wt&&s.insertBefore(x,xt.elm,B.elm)):u(X,y,x,B.elm,!1,b,F)),X=b[++F]);R>N?(bt=tt(b[z+1])?null:b[z+1].elm,E(x,bt,b,F,z,y)):F>z&&C(m,R,N)}function L(x,m,b,y){for(var M=b;M<y;M++){var R=m[M];if(T(R)&&Un(x,R))return M}}function j(x,m,b,y,M,R){if(x!==m){T(m.elm)&&T(y)&&(m=y[M]=za(m));var F=m.elm=x.elm;if(kt(x.isAsyncPlaceholder)){T(m.asyncFactory.resolved)?O(x.elm,m,b):m.isAsyncPlaceholder=!0;return}if(kt(m.isStatic)&&kt(x.isStatic)&&m.key===x.key&&(kt(m.isCloned)||kt(m.isOnce))){m.componentInstance=x.componentInstance;return}var N,B=m.data;T(B)&&T(N=B.hook)&&T(N=N.prepatch)&&N(x,m);var G=x.children,z=m.children;if(T(B)&&g(m)){for(N=0;N<r.update.length;++N)r.update[N](x,m);T(N=B.hook)&&T(N=N.update)&&N(x,m)}tt(m.text)?T(G)&&T(z)?G!==z&&k(F,G,z,b,R):T(z)?(T(x.text)&&s.setTextContent(F,""),E(F,null,z,0,z.length-1,b)):T(G)?C(G,0,G.length-1):T(x.text)&&s.setTextContent(F,""):x.text!==m.text&&s.setTextContent(F,m.text),T(B)&&T(N=B.hook)&&T(N=N.postpatch)&&N(x,m)}}function U(x,m,b){if(kt(b)&&T(x.parent))x.parent.data.pendingInsert=m;else for(var y=0;y<m.length;++y)m[y].data.hook.insert(m[y])}var q=$e("attrs,class,staticClass,staticStyle,key");function O(x,m,b,y){var M,R=m.tag,F=m.data,N=m.children;if(y=y||F&&F.pre,m.elm=x,kt(m.isComment)&&T(m.asyncFactory))return m.isAsyncPlaceholder=!0,!0;if(T(F)&&(T(M=F.hook)&&T(M=M.init)&&M(m,!0),T(M=m.componentInstance)))return d(m,b),!0;if(T(R)){if(T(N))if(!x.hasChildNodes())f(m,N,b);else if(T(M=F)&&T(M=M.domProps)&&T(M=M.innerHTML)){if(M!==x.innerHTML)return!1}else{for(var B=!0,G=x.firstChild,z=0;z<N.length;z++){if(!G||!O(G,N[z],b,y)){B=!1;break}G=G.nextSibling}if(!B||G)return!1}if(T(F)){var X=!1;for(var vt in F)if(!q(vt)){X=!0,_(m,b);break}!X&&F.class&&Br(F.class)}}else x.data!==m.text&&(x.data=m.text);return!0}return function(m,b,y,M){if(tt(b)){T(m)&&w(m);return}var R=!1,F=[];if(tt(m))R=!0,u(b,F);else{var N=T(m.nodeType);if(!N&&Un(m,b))j(m,b,F,null,null,M);else{if(N){if(m.nodeType===1&&m.hasAttribute(Zu)&&(m.removeAttribute(Zu),y=!0),kt(y)&&O(m,b,F))return U(b,F,!0),m;m=o(m)}var B=m.elm,G=s.parentNode(B);if(u(b,F,B._leaveCb?null:G,s.nextSibling(B)),T(b.parent))for(var z=b.parent,X=g(b);z;){for(var vt=0;vt<r.destroy.length;++vt)r.destroy[vt](z);if(z.elm=b.elm,X){for(var Z=0;Z<r.create.length;++Z)r.create[Z](An,z);var Lt=z.data.hook.insert;if(Lt.merged)for(var xt=Lt.fns.slice(1),bt=0;bt<xt.length;bt++)xt[bt]()}else kr(z);z=z.parent}T(G)?C([m],0,0):T(m.tag)&&w(m)}}return U(b,F,R),b.elm}}var W_={create:No,update:No,destroy:function(t){No(t,An)}};function No(e,t){(e.data.directives||t.data.directives)&&Y_(e,t)}function Y_(e,t){var n=e===An,r=t===An,i=Rc(e.data.directives,e.context),s=Rc(t.data.directives,t.context),o=[],a=[],l,u,c;for(l in s)u=i[l],c=s[l],u?(c.oldValue=u.value,c.oldArg=u.arg,oi(c,"update",t,e),c.def&&c.def.componentUpdated&&a.push(c)):(oi(c,"bind",t,e),c.def&&c.def.inserted&&o.push(c));if(o.length){var d=function(){for(var h=0;h<o.length;h++)oi(o[h],"inserted",t,e)};n?xn(t,"insert",d):d()}if(a.length&&xn(t,"postpatch",function(){for(var h=0;h<a.length;h++)oi(a[h],"componentUpdated",t,e)}),!n)for(l in i)s[l]||oi(i[l],"unbind",e,e,r)}var J_=Object.create(null);function Rc(e,t){var n=Object.create(null);if(!e)return n;var r,i;for(r=0;r<e.length;r++){if(i=e[r],i.modifiers||(i.modifiers=J_),n[K_(i)]=i,t._setupState&&t._setupState.__sfc){var s=i.def||Us(t,"_setupState","v-"+i.name);typeof s=="function"?i.def={bind:s,update:s}:i.def=s}i.def=i.def||Us(t.$options,"directives",i.name)}return n}function K_(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function oi(e,t,n,r,i){var s=e.def&&e.def[t];if(s)try{s(n.elm,e,n,r,i)}catch(o){rr(o,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var X_=[H_,W_];function Pc(e,t){var n=t.componentOptions;
1if(!(T(n)&&n.Ctor.options.inheritAttrs===!1)&&!(tt(e.data.attrs)&&tt(t.data.attrs))){var r,i,s,o=t.elm,a=e.data.attrs||{},l=t.data.attrs||{};(T(l.__ob__)||kt(l._v_attr_proxy))&&(l=t.data.attrs=Ct({},l));for(r in l)i=l[r],s=a[r],s!==i&&$c(o,r,i,t.data.pre);(Nr||Vh)&&l.value!==a.value&&$c(o,"value",l.value);for(r in a)tt(l[r])&&(Jl(r)?o.removeAttributeNS(rl,Cf(r)):wf(r)||o.removeAttribute(r))}}function $c(e,t,n,r){r||e.tagName.indexOf("-")>-1?Lc(e,t,n):y_(t)?qs(n)?e.removeAttribute(t):(n=t==="allowfullscreen"&&e.tagName==="EMBED"?"true":t,e.setAttribute(t,n)):wf(t)?e.setAttribute(t,__(t,n)):Jl(t)?qs(n)?e.removeAttributeNS(rl,Cf(t)):e.setAttributeNS(rl,t,n):Lc(e,t,n)}function Lc(e,t,n){if(qs(n))e.removeAttribute(t);else{if(Nr&&!jr&&e.tagName==="TEXTAREA"&&t==="placeholder"&&n!==""&&!e.__ieph){var r=function(i){i.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Z_={create:Pc,update:Pc};function Bc(e,t){var n=t.elm,r=t.data,i=e.data;if(!(tt(r.staticClass)&&tt(r.class)&&(tt(i)||tt(i.staticClass)&&tt(i.class)))){var s=w_(t),o=n._transitionClasses;T(o)&&(s=Kl(s,Xl(o))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Q_={create:Bc,update:Bc},jo="__r",Uo="__c";function ty(e){if(T(e[jo])){var t=Nr?"change":"input";e[t]=[].concat(e[jo],e[t]||[]),delete e[jo]}T(e[Uo])&&(e.change=[].concat(e[Uo],e.change||[]),delete e[Uo])}var Ri;function ey(e,t,n){var r=Ri;return function i(){var s=t.apply(null,arguments);s!==null&&Af(e,i,n,r)}}var ny=Ya&&!(Qu&&Number(Qu[1])<=53);function ry(e,t,n,r){if(ny){var i=vf,s=t;t=s._wrapper=function(o){if(o.target===o.currentTarget||o.timeStamp>=i||o.timeStamp<=0||o.target.ownerDocument!==document)return s.apply(this,arguments)}}Ri.addEventListener(e,t,Wh?{capture:n,passive:r}:n)}function Af(e,t,n,r){(r||Ri).removeEventListener(e,t._wrapper||t,n)}function qo(e,t){if(!(tt(e.data.on)&&tt(t.data.on))){var n=t.data.on||{},r=e.data.on||{};Ri=t.elm||e.elm,ty(n),nf(n,r,ry,Af,ey,t.context),Ri=void 0}}var iy={create:qo,update:qo,destroy:function(e){return qo(e,An)}},ls;function Mc(e,t){if(!(tt(e.data.domProps)&&tt(t.data.domProps))){var n,r,i=t.elm,s=e.data.domProps||{},o=t.data.domProps||{};(T(o.__ob__)||kt(o._v_attr_proxy))&&(o=t.data.domProps=Ct({},o));for(n in s)n in o||(i[n]="");for(n in o){if(r=o[n],n==="textContent"||n==="innerHTML"){if(t.children&&(t.children.length=0),r===s[n])continue;i.childNodes.length===1&&i.removeChild(i.childNodes[0])}if(n==="value"&&i.tagName!=="PROGRESS"){i._value=r;var a=tt(r)?"":String(r);sy(i,a)&&(i.value=a)}else if(n==="innerHTML"&&Zl(i.tagName)&&tt(i.innerHTML)){ls=ls||document.createElement("div"),ls.innerHTML="<svg>".concat(r,"</svg>");for(var l=ls.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(r!==s[n])try{i[n]=r}catch(u){}}}}function sy(e,t){return!e.composing&&(e.tagName==="OPTION"||oy(e,t)||ay(e,t))}function oy(e,t){var n=!0;try{n=document.activeElement!==e}catch(r){}return n&&e.value!==t}function ay(e,t){var n=e.value,r=e._vModifiers;if(T(r)){if(r.number)return Ai(n)!==Ai(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ly={create:Mc,update:Mc},uy=cr(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(i){if(i){var s=i.split(r);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t});function Ho(e){var t=Sf(e.style);return e.staticStyle?Ct(e.staticStyle,t):t}function Sf(e){return Array.isArray(e)?Uh(e):typeof e=="string"?uy(e):e}function cy(e,t){for(var n={},r,i=e;i.componentInstance;)i=i.componentInstance._vnode,i&&i.data&&(r=Ho(i.data))&&Ct(n,r);(r=Ho(e.data))&&Ct(n,r);for(var s=e;s=s.parent;)s.data&&(r=Ho(s.data))&&Ct(n,r);return n}var dy=/^--/,Ic=/\s*!important$/,Fc=function(e,t,n){if(dy.test(t))e.style.setProperty(t,n);else if(Ic.test(n))e.style.setProperty(Ii(t),n.replace(Ic,""),"important");else{var r=hy(t);if(Array.isArray(n))for(var i=0,s=n.length;i<s;i++)e.style[r]=n[i];else e.style[r]=n}},Nc=["Webkit","Moz","ms"],us,hy=cr(function(e){if(us=us||document.createElement("div").style,e=er(e),e!=="filter"&&e in us)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Nc.length;n++){var r=Nc[n]+t;if(r in us)return r}});function jc(e,t){var n=t.data,r=e.data;if(!(tt(n.staticStyle)&&tt(n.style)&&tt(r.staticStyle)&&tt(r.style))){var i,s,o=t.elm,a=r.staticStyle,l=r.normalizedStyle||r.style||{},u=a||l,c=Sf(t.data.style)||{};t.data.normalizedStyle=T(c.__ob__)?Ct({},c):c;var d=cy(t);for(s in u)tt(d[s])&&Fc(o,s,"");for(s in d)i=d[s],Fc(o,s,i==null?"":i)}}var fy={create:jc,update:jc},Ef=/\s+/;function Tf(e,t){if(!(!t||!(t=t.trim())))if(e.classList)t.indexOf(" ")>-1?t.split(Ef).forEach(function(r){return e.classList.add(r)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Df(e,t){if(!(!t||!(t=t.trim())))if(e.classList)t.indexOf(" ")>-1?t.split(Ef).forEach(function(i){return e.classList.remove(i)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function kf(e){if(e){if(typeof e=="object"){var t={};return e.css!==!1&&Ct(t,Uc(e.name||"v")),Ct(t,e),t}else if(typeof e=="string")return Uc(e)}}var Uc=cr(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),Of=ge&&!jr,Sr="transition",Go="animation",Cs="transition",Hs="transitionend",sl="animation",Rf="animationend";Of&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Cs="WebkitTransition",Hs="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(sl="WebkitAnimation",Rf="webkitAnimationEnd"));var qc=ge?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:(function(e){return e()});function Pf(e){qc(function(){qc(e)})}function Kn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Tf(e,t))}function sn(e,t){e._transitionClasses&&Pn(e._transitionClasses,t),Df(e,t)}function $f(e,t,n){var r=Lf(e,t),i=r.type,s=r.timeout,o=r.propCount;if(!i)return n();var a=i===Sr?Hs:Rf,l=0,u=function(){e.removeEventListener(a,c),n()},c=function(d){d.target===e&&++l>=o&&u()};setTimeout(function(){l<o&&u()},s+1),e.addEventListener(a,c)}var py=/\b(transform|all)(,|$)/;function Lf(e,t){var n=window.getComputedStyle(e),r=(n[Cs+"Delay"]||"").split(", "),i=(n[Cs+"Duration"]||"").split(", "),s=Hc(r,i),o=(n[sl+"Delay"]||"").split(", "),a=(n[sl+"Duration"]||"").split(", "),l=Hc(o,a),u,c=0,d=0;t===Sr?s>0&&(u=Sr,c=s,d=i.length):t===Go?l>0&&(u=Go,c=l,d=a.length):(c=Math.max(s,l),u=c>0?s>l?Sr:Go:null,d=u?u===Sr?i.length:a.length:0);var h=u===Sr&&py.test(n[Cs+"Property"]);return{type:u,timeout:c,propCount:d,hasTransform:h}}function Hc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(n,r){return Gc(n)+Gc(e[r])}))}function Gc(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ol(e,t){var n=e.elm;T(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=kf(e.data.transition);if(!tt(r)&&!(T(n._enterCb)||n.nodeType!==1)){for(var i=r.css,s=r.type,o=r.enterClass,a=r.enterToClass,l=r.enterA
1ctiveClass,u=r.appearClass,c=r.appearToClass,d=r.appearActiveClass,h=r.beforeEnter,v=r.enter,f=r.afterEnter,g=r.enterCancelled,_=r.beforeAppear,S=r.appear,E=r.afterAppear,w=r.appearCancelled,C=r.duration,P=Jn,k=Jn.$vnode;k&&k.parent;)P=k.context,k=k.parent;var L=!P._isMounted||!e.isRootInsert;if(!(L&&!S&&S!=="")){var j=L&&u?u:o,U=L&&d?d:l,q=L&&c?c:a,O=L&&_||h,x=L&&gt(S)?S:v,m=L&&E||f,b=L&&w||g,y=Ai(Kt(C)?C.enter:C),M=i!==!1&&!jr,R=Ql(x),F=n._enterCb=Ls(function(){M&&(sn(n,q),sn(n,U)),F.cancelled?(M&&sn(n,j),b&&b(n)):m&&m(n),n._enterCb=null});e.data.show||xn(e,"insert",function(){var N=n.parentNode,B=N&&N._pending&&N._pending[e.key];B&&B.tag===e.tag&&B.elm._leaveCb&&B.elm._leaveCb(),x&&x(n,F)}),O&&O(n),M&&(Kn(n,j),Kn(n,U),Pf(function(){sn(n,j),F.cancelled||(Kn(n,q),R||(Mf(y)?setTimeout(F,y):$f(n,s,F)))})),e.data.show&&(t&&t(),x&&x(n,F)),!M&&!R&&F()}}}function Bf(e,t){var n=e.elm;T(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=kf(e.data.transition);if(tt(r)||n.nodeType!==1)return t();if(T(n._leaveCb))return;var i=r.css,s=r.type,o=r.leaveClass,a=r.leaveToClass,l=r.leaveActiveClass,u=r.beforeLeave,c=r.leave,d=r.afterLeave,h=r.leaveCancelled,v=r.delayLeave,f=r.duration,g=i!==!1&&!jr,_=Ql(c),S=Ai(Kt(f)?f.leave:f),E=n._leaveCb=Ls(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),g&&(sn(n,a),sn(n,l)),E.cancelled?(g&&sn(n,o),h&&h(n)):(t(),d&&d(n)),n._leaveCb=null});v?v(w):w();function w(){E.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),u&&u(n),g&&(Kn(n,o),Kn(n,l),Pf(function(){sn(n,o),E.cancelled||(Kn(n,a),_||(Mf(S)?setTimeout(E,S):$f(n,s,E)))})),c&&c(n,E),!g&&!_&&E())}}function Mf(e){return typeof e=="number"&&!isNaN(e)}function Ql(e){if(tt(e))return!1;var t=e.fns;return T(t)?Ql(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function zc(e,t){t.data.show!==!0&&ol(t)}var my=ge?{create:zc,activate:zc,remove:function(e,t){e.data.show!==!0?Bf(e,t):t()}}:{},gy=[Z_,Q_,iy,ly,fy,my],vy=gy.concat(X_),by=V_({nodeOps:q_,modules:vy});jr&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&tu(e,"input")});var If={inserted:function(e,t,n,r){n.tag==="select"?(r.elm&&!r.elm._vOptions?xn(n,"postpatch",function(){If.componentUpdated(e,t,n)}):Vc(e,t,n.context),e._vOptions=[].map.call(e.options,Gs)):(n.tag==="textarea"||il(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",_y),e.addEventListener("compositionend",Jc),e.addEventListener("change",Jc),jr&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if(n.tag==="select"){Vc(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Gs);if(i.some(function(o,a){return!nr(o,r[a])})){var s=e.multiple?t.value.some(function(o){return Yc(o,i)}):t.value!==t.oldValue&&Yc(t.value,i);s&&tu(e,"change")}}}};function Vc(e,t,n){Wc(e,t),(Nr||Vh)&&setTimeout(function(){Wc(e,t)},0)}function Wc(e,t,n){var r=t.value,i=e.multiple;if(!(i&&!Array.isArray(r))){for(var s,o,a=0,l=e.options.length;a<l;a++)if(o=e.options[a],i)s=Hh(r,Gs(o))>-1,o.selected!==s&&(o.selected=s);else if(nr(Gs(o),r)){e.selectedIndex!==a&&(e.selectedIndex=a);return}i||(e.selectedIndex=-1)}}function Yc(e,t){return t.every(function(n){return!nr(n,e)})}function Gs(e){return"_value"in e?e._value:e.value}function _y(e){e.target.composing=!0}function Jc(e){e.target.composing&&(e.target.composing=!1,tu(e.target,"input"))}function tu(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function al(e){return e.componentInstance&&(!e.data||!e.data.transition)?al(e.componentInstance._vnode):e}var yy={bind:function(e,t,n){var r=t.value;n=al(n);var i=n.data&&n.data.transition,s=e.__vOriginalDisplay=e.style.display==="none"?"":e.style.display;r&&i?(n.data.show=!0,ol(n,function(){e.style.display=s})):e.style.display=r?s:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!=!i){n=al(n);var s=n.data&&n.data.transition;s?(n.data.show=!0,r?ol(n,function(){e.style.display=e.__vOriginalDisplay}):Bf(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},wy={model:If,show:yy},Ff={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterA
1ctiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ll(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ll(uf(t.children)):e}function Nf(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[er(r)]=i[r];return t}function Kc(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Cy(e){for(;e=e.parent;)if(e.data.transition)return!0}function xy(e,t){return t.key===e.key&&t.tag===e.tag}var Ay=function(e){return e.tag||Ti(e)},Sy=function(e){return e.name==="show"},Ey={name:"transition",props:Ff,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ay),!!n.length)){var r=this.mode,i=n[0];if(Cy(this.$vnode))return i;var s=ll(i);if(!s)return i;if(this._leaving)return Kc(e,i);var o="__transition-".concat(this._uid,"-");s.key=s.key==null?s.isComment?o+"comment":o+s.tag:Mi(s.key)?String(s.key).indexOf(o)===0?s.key:o+s.key:s.key;var a=(s.data||(s.data={})).transition=Nf(this),l=this._vnode,u=ll(l);if(s.data.directives&&s.data.directives.some(Sy)&&(s.data.show=!0),u&&u.data&&!xy(s,u)&&!Ti(u)&&!(u.componentInstance&&u.componentInstance._vnode.isComment)){var c=u.data.transition=Ct({},a);if(r==="out-in")return this._leaving=!0,xn(c,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Kc(e,i);if(r==="in-out"){if(Ti(s))return l;var d,h=function(){d()};xn(a,"afterEnter",h),xn(a,"enterCancelled",h),xn(c,"delayLeave",function(v){d=v})}}return i}}},jf=Ct({tag:String,moveClass:String},Ff);delete jf.mode;var Ty={props:jf,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=pf(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],s=this.children=[],o=Nf(this),a=0;a<i.length;a++){var l=i[a];l.tag&&l.key!=null&&String(l.key).indexOf("__vlist")!==0&&(s.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o)}if(r){for(var u=[],c=[],a=0;a<r.length;a++){var l=r[a];l.data.transition=o,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?u.push(l):c.push(l)}this.kept=e(t,null,u),this.removed=c}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";!e.length||!this.hasMove(e[0].elm,t)||(e.forEach(Dy),e.forEach(ky),e.forEach(Oy),this._reflow=document.body.offsetHeight,e.forEach(function(n){if(n.data.moved){var r=n.elm,i=r.style;Kn(r,t),i.transform=i.WebkitTransform=i.transitionDuration="",r.addEventListener(Hs,r._moveCb=function s(o){o&&o.target!==r||(!o||/transform$/.test(o.propertyName))&&(r.removeEventListener(Hs,s),r._moveCb=null,sn(r,t))})}}))},methods:{hasMove:function(e,t){if(!Of)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(i){Df(n,i)}),Tf(n,t),n.style.display="none",this.$el.appendChild(n);var r=Lf(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Dy(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ky(e){e.data.newPos=e.elm.getBoundingClientRect()}function Oy(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),s.transitionDuration="0s"}}var Ry={Transition:Ey,TransitionGroup:Ty};dt.config.mustUseProp=v_;dt.config.isReservedTag=xf;dt.config.isReservedAttr=m_;dt.config.getTagNamespace=T_;dt.config.isUnknownElement=D_;Ct(dt.options.directives,wy);Ct(dt.options.components,Ry);dt.prototype.__patch__=ge?by:Tt;dt.prototype.$mount=function(e,t){return e=e&&ge?k_(e):void 0,xb(this,e,t)};ge&&setTimeout(function(){xe.devtools&&Bs&&Bs.emit("init",dt)},0);function Py(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[r].concat(i.init):r,n.call(this,i)}}function r(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var $y=typeof window!="undefined"?window:typeof global!="undefined"?global:{},xr=$y.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ly(e){xr&&(e._devtoolHook=xr,xr.emit("vuex:init",e),xr.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,n){xr.emit("vuex:mutation",t,n)},{prepend:!0}),e.subscribeAction(function(t,n){xr.emit("vuex:action",t,n)},{prepend:!0}))}function By(e,t){return e.filter(t)[0]}function ul(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=By(t,function(i){return i.original===e});if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}
1),Object.keys(e).forEach(function(i){r[i]=ul(e[i],t)}),r}function Hr(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Uf(e){return e!==null&&typeof e=="object"}function My(e){return e&&typeof e.then=="function"}function Iy(e,t){return function(){return e(t)}}var Le=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},qf={namespaced:{configurable:!0}};qf.namespaced.get=function(){return!!this._rawModule.namespaced};Le.prototype.addChild=function(t,n){this._children[t]=n};Le.prototype.removeChild=function(t){delete this._children[t]};Le.prototype.getChild=function(t){return this._children[t]};Le.prototype.hasChild=function(t){return t in this._children};Le.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Le.prototype.forEachChild=function(t){Hr(this._children,t)};Le.prototype.forEachGetter=function(t){this._rawModule.getters&&Hr(this._rawModule.getters,t)};Le.prototype.forEachAction=function(t){this._rawModule.actions&&Hr(this._rawModule.actions,t)};Le.prototype.forEachMutation=function(t){this._rawModule.mutations&&Hr(this._rawModule.mutations,t)};Object.defineProperties(Le.prototype,qf);var dr=function(t){this.register([],t,!1)};dr.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};dr.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};dr.prototype.update=function(t){Hf([],this.root,t)};dr.prototype.register=function(t,n,r){var i=this;r===void 0&&(r=!0);var s=new Le(n,r);if(t.length===0)this.root=s;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],s)}n.modules&&Hr(n.modules,function(a,l){i.register(t.concat(l),a,r)})};dr.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],i=n.getChild(r);i&&i.runtime&&n.removeChild(r)};dr.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function Hf(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;Hf(e.concat(r),t.getChild(r),n.modules[r])}}var se,ve=function(t){var n=this;t===void 0&&(t={}),!se&&typeof window!="undefined"&&window.Vue&&Vf(window.Vue);var r=t.plugins;r===void 0&&(r=[]);var i=t.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new dr(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new se,this._makeLocalGettersCache=Object.create(null);var s=this,o=this,a=o.dispatch,l=o.commit;this.dispatch=function(h,v){return a.call(s,h,v)},this.commit=function(h,v,f){return l.call(s,h,v,f)},this.strict=i;var u=this._modules.root.state;so(this,u,[],this._modules.root),nu(this,u),r.forEach(function(d){return d(n)});var c=t.devtools!==void 0?t.devtools:se.config.devtools;c&&Ly(this)},eu={state:{configurable:!0}};eu.state.get=function(){return this._vm._data.$$state};eu.state.set=function(e){};ve.prototype.commit=function(t,n,r){var i=this,s=zs(t,n,r),o=s.type,a=s.payload,l={type:o,payload:a},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(d){d(a)})}),this._subscribers.slice().forEach(function(c){return c(l,i.state)}))};ve.prototype.dispatch=function(t,n){var r=this,i=zs(t,n),s=i.type,o=i.payload,a={type:s,payload:o},l=this._actions[s];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(a,r.state)})}catch(c){}var u=l.length>1?Promise.all(l.map(function(c){return c(o)})):l[0](o);return new Promise(function(c,d){u.then(function(h){try{r._actionSubscribers.filter(function(v){return v.after}).forEach(function(v){return v.after(a,r.state)})}catch(v){}c(h)},function(h){try{r._actionSubscribers.filter(function(v){return v.error}
1).forEach(function(v){return v.error(a,r.state,h)})}catch(v){}d(h)})})}};ve.prototype.subscribe=function(t,n){return Gf(t,this._subscribers,n)};ve.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return Gf(r,this._actionSubscribers,n)};ve.prototype.watch=function(t,n,r){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},n,r)};ve.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})};ve.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),so(this,this.state,t,this._modules.get(t),r.preserveState),nu(this,this.state)};ve.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=ru(n.state,t.slice(0,-1));se.delete(r,t[t.length-1])}),zf(this)};ve.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};ve.prototype.hotUpdate=function(t){this._modules.update(t),zf(this,!0)};ve.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(ve.prototype,eu);function Gf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function zf(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;so(e,n,[],e._modules.root,!0),nu(e,n,t)}function nu(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={};Hr(i,function(a,l){s[l]=Iy(a,e),Object.defineProperty(e.getters,l,{get:function(){return e._vm[l]},enumerable:!0})});var o=se.config.silent;se.config.silent=!0,e._vm=new se({data:{$$state:t},computed:s}),se.config.silent=o,e.strict&&Hy(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),se.nextTick(function(){return r.$destroy()}))}function so(e,t,n,r,i){var s=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!s&&!i){var a=ru(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){se.set(a,l,r.state)})}var u=r.context=Fy(e,o,n);r.forEachMutation(function(c,d){var h=o+d;jy(e,h,c,u)}),r.forEachAction(function(c,d){var h=c.root?d:o+d,v=c.handler||c;Uy(e,h,v,u)}),r.forEachGetter(function(c,d){var h=o+d;qy(e,h,c,u)}),r.forEachChild(function(c,d){so(e,t,n.concat(d),c,i)})}function Fy(e,t,n){var r=t==="",i={dispatch:r?e.dispatch:function(s,o,a){var l=zs(s,o,a),u=l.payload,c=l.options,d=l.type;return(!c||!c.root)&&(d=t+d),e.dispatch(d,u)},commit:r?e.commit:function(s,o,a){var l=zs(s,o,a),u=l.payload,c=l.options,d=l.type;(!c||!c.root)&&(d=t+d),e.commit(d,u,c)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return Ny(e,t)}},state:{get:function(){return ru(e.state,n)}}}),i}function Ny(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var s=i.slice(r);Object.defineProperty(n,s,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function jy(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){n.call(e,r.state,o)})}function Uy(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return My(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function qy(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(s){return n(r.state,r.getters,s.state,s.getters)})}function Hy(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function ru(e,t){return t.reduce(function(n,r){return n[r]},e)}function zs(e,t,n){return Uf(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function Vf(e){se&&e===se||(se=e,Py(se))}var Wf=ao(function(e,t){var n={};return oo(t).forEach(function(r){var i=r.key,s=r.val;n[i]=function(){var a=this.$store.state,l=this.$store.getters;if(e){var u=lo(this.$store,"mapState",e);if(!u)return;a=u.context.state,l=u.context.getters}return typeof s=="function"?s.call(this,a,l):a[s]},n[i].vuex=!0}),n}),Yf=ao(function(e,t){var n={};return oo(t).forEach(function(r){var i=r.key,s=r.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var u=this.$store.commit;if(e){var c=lo(this.$store,"mapMutations",e);if(!c)return;u=c.context.commit}return typeof s=="function"?s.apply(this,[u].concat(a)):u.apply(this.$store,[s].concat(a))}}),n}),ct=ao(function(e,t){var n={};return oo(t).forEach(function(r){var i=r.key,s=r.val;s=e+s,n[i]=function(){if(!(e&&!lo(this.$store,"mapGetters",e)))return this.$store.getters[s]},n[i].vuex=!0}),n}),Ht=ao(function(e,t){var n={};return oo(t).forEach(function(r){var i=r.key,s=r.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var u=this.$store.dispatch;if(e){var c=lo(this.$store,"mapActions",e);if(!c)return;u=c.context.dispatch}return typeof s=="function"?s.apply(this,[u].concat(a)):u.apply(this.$store,[s].concat(a))}}),n}),Gy=function(e){return{mapState:Wf.bind(null,e),mapGetters:ct.bind(null,e),mapMutations:Yf.bind(null,e),mapActions:Ht.bind(null,e)}};function oo(e){return zy(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}
1}):[]}function zy(e){return Array.isArray(e)||Uf(e)}function ao(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function lo(e,t,n){var r=e._modulesNamespaceMap[n];return r}function Vy(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(c,d,h){return!0});var r=e.transformer;r===void 0&&(r=function(c){return c});var i=e.mutationTransformer;i===void 0&&(i=function(c){return c});var s=e.actionFilter;s===void 0&&(s=function(c,d){return!0});var o=e.actionTransformer;o===void 0&&(o=function(c){return c});var a=e.logMutations;a===void 0&&(a=!0);var l=e.logActions;l===void 0&&(l=!0);var u=e.logger;return u===void 0&&(u=console),function(c){var d=ul(c.state);typeof u!="undefined"&&(a&&c.subscribe(function(h,v){var f=ul(v);if(n(h,d,f)){var g=Qc(),_=i(h),S="mutation "+h.type+g;Xc(u,S,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",_),u.log("%c next state","color: #4CAF50; font-weight: bold",r(f)),Zc(u)}d=f}),l&&c.subscribeAction(function(h,v){if(s(h,v)){var f=Qc(),g=o(h),_="action "+h.type+f;Xc(u,_,t),u.log("%c action","color: #03A9F4; font-weight: bold",g),Zc(u)}}))}}function Xc(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function Zc(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function Qc(){var e=new Date;return" @ "+cs(e.getHours(),2)+":"+cs(e.getMinutes(),2)+":"+cs(e.getSeconds(),2)+"."+cs(e.getMilliseconds(),3)}function Wy(e,t){return new Array(t+1).join(e)}function cs(e,t){return Wy("0",t-e.toString().length)+e}var Jf={Store:ve,install:Vf,version:"3.6.2",mapState:Wf,mapMutations:Yf,mapGetters:ct,mapActions:Ht,createNamespacedHelpers:Gy,createLogger:Vy};const He={fetch:function(e){const t=JSON.parse(localStorage.getItem(`paydici-${e}`)),n=JSON.parse("[]");if(t===null||typeof t!="object"||!Object.keys(t).includes("expiration"))return n;const r=new Date(t.expiration);return new Date>r?(localStorage.removeItem(`paydici-${e}`),n):t.content},save:function(e,t){const n=new Date,r=new Date(n.setDate(n.getDate()+3)),i=JSON.stringify({expiration:r,content:t});localStorage.setItem(`paydici-${e}`,i)}};var Sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hi={exports:{}};hi.exports;var td;function Yy(){return td||(td=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,s=2,o=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",h="[object Error]",v="[object Function]",f="[object GeneratorFunction]",g="[object Map]",_="[object Number]",S="[object Null]",E="[object Object]",w="[object Promise]",C="[object Proxy]",P="[object RegExp]",k="[object Set]",L="[object String]",j="[object Symbol]",U="[object Undefined]",q="[object WeakMap]",O="[object ArrayBuffer]",x="[object DataView]",m="[object Float32Array]",b="[object Float64Array]",y="[object Int8Array]",M="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",G="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,vt=/^(?:0|[1-9]\d*)$/,Z={};Z[m]=Z[b]=Z[y]=Z[M]=Z[R]=Z[F]=Z[N]=Z[B]=Z[G]=!0,Z[a]=Z[l]=Z[O]=Z[c]=Z[x]=Z[d]=Z[h]=Z[v]=Z[g]=Z[_]=Z[E]=Z[P]=Z[k]=Z[L]=Z[q]=!1;var Lt=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,xt=typeof self=="object"&&self&&self.Object===Object&&self,bt=Lt||xt||Function("return this")(),wt=t&&!t.nodeType&&t,Xt=wt&&!0&&e&&!e.nodeType&&e,Y=Xt&&Xt.exports===wt,K=Y&&Lt.process,et=(function(){try{return K&&K.binding&&K.binding("util")}catch(p){}})(),ot=et&&et.isTypedArray;function Rt(p,A){for(var I=-1,V=p==null?0:p.length,St=0,it=[];++I<V;){var Pt=p[I];A(Pt,I,p)&&(it[St++]=Pt)}return it}function ht(p,A){for(var I=-1,V=A.length,St=p.length;++I<V;)p[St+I]=A[I];return p}function _t(p,A){for(var I=-1,V=p==null?0:p.length;++I<V;)if(A(p[I],I,p))return!0;return!1}function Zt(p,A){for(var I=-1,V=Array(p);++I<p;)V[I]=A(I);return V}function Nt(p){return function(A){return p(A)}}function Ee(p,A){return p.has(A)}function Te(p,A){return p==null?void 0:p[A]}function Bn(p){var A=-1,I=Array(p.size);return p.forEach(function(V,St){I[++A]=[St,V]}),I}function vr(p,A){return function(I){return p(A(I))}}function Do(p){var A=-1,I=Array(p.size);return p.forEach(function(V){I[++A]=V}),I}var ko=Array.prototype,Oo=Function.prototype,br=Object.prototype,_r=bt["__core-js_shared__"],Yi=Oo.toString,D=br.hasOwnProperty,H=(function(){var p=/[^.]+$/.exec(_r&&_r.keys&&_r.keys.IE_PROTO||"");
vendor: 8,729 bytes, line 1
1return p?"Symbol(src)_1."+p:""})(),Q=br.toString,At=RegExp("^"+Yi.call(D).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=Y?bt.Buffer:void 0,_e=bt.Symbol,Qr=bt.Uint8Array,We=br.propertyIsEnumerable,Ye=ko.splice,Fe=_e?_e.toStringTag:void 0,Je=Object.getOwnPropertySymbols,Mn=Ve?Ve.isBuffer:void 0,Ji=vr(Object.keys,Object),Ro=yr(bt,"DataView"),ti=yr(bt,"Map"),Po=yr(bt,"Promise"),$o=yr(bt,"Set"),Lo=yr(bt,"WeakMap"),ei=yr(Object,"create"),ug=Nn(Ro),cg=Nn(ti),dg=Nn(Po),hg=Nn($o),fg=Nn(Lo),Bu=_e?_e.prototype:void 0,Bo=Bu?Bu.valueOf:void 0;function In(p){var A=-1,I=p==null?0:p.length;for(this.clear();++A<I;){var V=p[A];this.set(V[0],V[1])}}function pg(){this.__data__=ei?ei(null):{},this.size=0}function mg(p){var A=this.has(p)&&delete this.__data__[p];return this.size-=A?1:0,A}function gg(p){var A=this.__data__;if(ei){var I=A[p];return I===r?void 0:I}return D.call(A,p)?A[p]:void 0}function vg(p){var A=this.__data__;return ei?A[p]!==void 0:D.call(A,p)}function bg(p,A){var I=this.__data__;return this.size+=this.has(p)?0:1,I[p]=ei&&A===void 0?r:A,this}In.prototype.clear=pg,In.prototype.delete=mg,In.prototype.get=gg,In.prototype.has=vg,In.prototype.set=bg;function Ke(p){var A=-1,I=p==null?0:p.length;for(this.clear();++A<I;){var V=p[A];this.set(V[0],V[1])}}function _g(){this.__data__=[],this.size=0}function yg(p){var A=this.__data__,I=Xi(A,p);if(I<0)return!1;var V=A.length-1;return I==V?A.pop():Ye.call(A,I,1),--this.size,!0}function wg(p){var A=this.__data__,I=Xi(A,p);return I<0?void 0:A[I][1]}function Cg(p){return Xi(this.__data__,p)>-1}function xg(p,A){var I=this.__data__,V=Xi(I,p);return V<0?(++this.size,I.push([p,A])):I[V][1]=A,this}Ke.prototype.clear=_g,Ke.prototype.delete=yg,Ke.prototype.get=wg,Ke.prototype.has=Cg,Ke.prototype.set=xg;function Fn(p){var A=-1,I=p==null?0:p.length;for(this.clear();++A<I;){var V=p[A];this.set(V[0],V[1])}}function Ag(){this.size=0,this.__data__={hash:new In,map:new(ti||Ke),string:new In}}function Sg(p){var A=Zi(this,p).delete(p);return this.size-=A?1:0,A}function Eg(p){return Zi(this,p).get(p)}function Tg(p){return Zi(this,p).has(p)}function Dg(p,A){var I=Zi(this,p),V=I.size;return I.set(p,A),this.size+=I.size==V?0:1,this}Fn.prototype.clear=Ag,Fn.prototype.delete=Sg,Fn.prototype.get=Eg,Fn.prototype.has=Tg,Fn.prototype.set=Dg;function Ki(p){var A=-1,I=p==null?0:p.length;for(this.__data__=new Fn;++A<I;)this.add(p[A])}function kg(p){return this.__data__.set(p,r),this}function Og(p){return this.__data__.has(p)}Ki.prototype.add=Ki.prototype.push=kg,Ki.prototype.has=Og;function hn(p){var A=this.__data__=new Ke(p);this.size=A.size}function Rg(){this.__data__=new Ke,this.size=0}function Pg(p){var A=this.__data__,I=A.delete(p);return this.size=A.size,I}function $g(p){return this.__data__.get(p)}function Lg(p){return this.__data__.has(p)}function Bg(p,A){var I=this.__data__;if(I instanceof Ke){var V=I.__data__;if(!ti||V.length<n-1)return V.push([p,A]),this.size=++I.size,this;I=this.__data__=new Fn(V)}return I.set(p,A),this.size=I.size,this}hn.prototype.clear=Rg,hn.prototype.delete=Pg,hn.prototype.get=$g,hn.prototype.has=Lg,hn.prototype.set=Bg;function Mg(p,A){var I=Qi(p),V=!I&&Xg(p),St=!I&&!V&&Mo(p),it=!I&&!V&&!St&&Gu(p),Pt=I||V||St||it,jt=Pt?Zt(p.length,String):[],Gt=jt.length;for(var Dt in p)D.call(p,Dt)&&!(Pt&&(Dt=="length"||St&&(Dt=="offset"||Dt=="parent")||it&&(Dt=="buffer"||Dt=="byteLength"||Dt=="byteOffset")||Vg(Dt,Gt)))&&jt.push(Dt);return jt}function Xi(p,A){for(var I=p.length;I--;)if(ju(p[I][0],A))return I;return-1}function Ig(p,A,I){var V=A(p);return Qi(p)?V:ht(V,I(p))}function ni(p){return p==null?p===void 0?U:S:Fe&&Fe in Object(p)?Gg(p):Kg(p)}function Mu(p){return ri(p)&&ni(p)==a}function Iu(p,A,I,V,St){return p===A?!0:p==null||A==null||!ri(p)&&!ri(A)?p!==p&&A!==A:Fg(p,A,I,V,Iu,St)}function Fg(p,A,I,V,St,it){var Pt=Qi(p),jt=Qi(A),Gt=Pt?l:fn(p),Dt=jt?l:fn(A);Gt=Gt==a?E:Gt,Dt=Dt==a?E:Dt;var le=Gt==E,De=Dt==E,Wt=Gt==Dt;if(Wt&&Mo(p)){if(!Mo(A))return!1;Pt=!0,le=!1}if(Wt&&!le)return it||(it=new hn),Pt||Gu(p)?Fu(p,A,I,V,St,it):qg(p,A,Gt,I,V,St,it);if(!(I&i)){var ye=le&&D.call(p,"__wrapped__"),we=De&&D.call(A,"__wrapped__");if(ye||we){var pn=ye?p.value():p,Xe=we?A.value():A;return it||(it=new hn),St(pn,Xe,I,V,it)}}return Wt?(it||(it=new hn),Hg(p,A,I,V,St,it)):!1}function Ng(p){if(!Hu(p)||Yg(p))return!1;var A=Uu(p)?At:X;return A.test(Nn(p))}function jg(p){return ri(p)&&qu(p.length)&&!!Z[ni(p)]}function Ug(p){if(!Jg(p))return Ji(p);var A=[];for(var I in Object(p))D.call(p,I)&&I!="constructor"&&A.push(I);return A}function Fu(p,A,I,V,St,it){var Pt=I&i,jt=p.length,Gt=A.length;if(jt!=Gt&&!(Pt&&Gt>jt))return!1;var Dt=it.get(p);if(Dt&&it.get(A))return Dt==A;var le=-1,De=!0,Wt=I&s?new Ki:void 0;for(it.set(p,A),it.set(A,p);++le<jt;){var ye=p[le],we=A[le];if(V)var pn=Pt?V(we,ye,le,A,p,it):V(ye,we,le,p,A,it);if(pn!==void 0){if(pn)continue;De=!1;break}if(Wt){if(!_t(A,function(Xe,jn){if(!Ee(Wt,jn)&&(ye===Xe||St(ye,Xe,I,V,it)))return Wt.push(jn)})){De=!1;break}}else if(!(ye===we||St(ye,we,I,V,it))){De=!1;break}}return it.delete(p),it.delete(A),De}function qg(p,A,I,V,St,it,Pt){switch(I){case x:if(p.byteLength!=A.byteLength||p.byteOffset!=A.byteOffset)return!1;p=p.buffer,A=A.buffer;case O:return!(p.byteLength!=A.byteLength||!it(new Qr(p),new Qr(A)));case c:case d:case _:return ju(+p,+A);case h:return p.name==A.name&&p.message==A.message;case P:case L:return p==A+"";case g:var jt=Bn;case k:var Gt=V&i;if(jt||(jt=Do),p.size!=A.size&&!Gt)return!1;var Dt=Pt.get(p);if(Dt)return Dt==A;V|=s,Pt.set(p,A);var le=Fu(jt(p),jt(A),V,St,it,Pt);return Pt.delete(p),le;case j:if(Bo)return Bo.call(p)==Bo.call(A)}return!1}function Hg(p,A,I,V,St,it){var Pt=I&i,jt=Nu(p),Gt=jt.length,Dt=Nu(A),le=Dt.length;if(Gt!=le&&!Pt)return!1;for(var De=Gt;De--;){var Wt=jt[De];if(!(Pt?Wt in A:D.call(A,Wt)))return!1}var ye=it.get(p);if(ye&&it.get(A))return ye==A;var we=!0;it.set(p,A),it.set(A,p);for(var pn=Pt;++De<Gt;){Wt=jt[De];var Xe=p[Wt],jn=A[Wt];if(V)var zu=Pt?V(jn,Xe,Wt,A,p,it):V(Xe,jn,Wt,p,A,it);if(!(zu===void 0?Xe===jn||St(Xe,jn,I,V,it):zu)){we=!1;break}pn||(pn=Wt=="constructor")}if(we&&!pn){var ts=p.constructor,es=A.constructor;ts!=es&&"constructor"in p&&"constructor"in A&&!(typeof ts=="function"&&ts instanceof ts&&typeof es=="function"&&es instanceof es)&&(we=!1)}return it.delete(p),it.delete(A),we}function Nu(p){return Ig(p,tv,zg)}function Zi(p,A){var I=p.__data__;return Wg(A)?I[typeof A=="string"?"string":"hash"]:I.map}function yr(p,A){var I=Te(p,A);return Ng(I)?I:void 0}function Gg(p){var A=D.call(p,Fe),I=p[Fe];try{p[Fe]=void 0;var V=!0}catch(it){}var St=Q.call(p);return V&&(A?p[Fe]=I:delete p[Fe]),St}var zg=Je?function(p){return p==null?[]:(p=Object(p),Rt(Je(p),function(A){return We.call(p,A)}))}:ev,fn=ni;(Ro&&fn(new Ro(new ArrayBuffer(1)))!=x||ti&&fn(new ti)!=g||Po&&fn(Po.resolve())!=w||$o&&fn(new $o)!=k||Lo&&fn(new Lo)!=q)&&(fn=function(p){var A=ni(p),I=A==E?p.constructor:void 0,V=I?Nn(I):"";if(V)switch(V){case ug:return x;case cg:return g;case dg:return w;case hg:return k;case fg:return q}return A});function Vg(p,A){return A=A==null?o:A,!!A&&(typeof p=="number"||vt.test(p))&&p>-1&&p%1==0&&p<A}function Wg(p){var A=typeof p;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?p!=="__proto__":p===null}function Yg(p){return!!H&&H in p}function Jg(p){var A=p&&p.constructor,I=typeof A=="function"&&A.prototype||br;return p===I}function Kg(p){return Q.call(p)}function Nn(p){if(p!=null){try{return Yi.call(p)}catch(A){}try{return p+""}catch(A){}}return""}function ju(p,A){return p===A||p!==p&&A!==A}var Xg=Mu((function(){return arguments})())?Mu:function(p){return ri(p)&&D.call(p,"callee")&&!We.call(p,"callee")},Qi=Array.isArray;function Zg(p){return p!=null&&qu(p.length)&&!Uu(p)}var Mo=Mn||nv;function Qg(p,A){return Iu(p,A)}function Uu(p){if(!Hu(p))return!1;var A=ni(p);return A==v||A==f||A==u||A==C}function qu(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=o}function Hu(p){var A=typeof p;return p!=null&&(A=="object"||A=="function")}function ri(p){return p!=null&&typeof p=="object"}var Gu=ot?Nt(ot):jg;function tv(p){return Zg(p)?Mg(p):Ug(p)}function ev(){return[]}function nv(){return!1}e.exports=Qg})(hi,hi.exports)),hi.exports}var Jy=Yy();const Kf=Be(Jy);var zo,ed;function Ky(){if(ed)return zo;ed=1;var e=200,t="__lodash_hash_undefined__",n=1/0,r="[object Function]",i="[object GeneratorFunction]",s=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,l=typeof self=="object"&&self&&self.Object===Object&&self,u=a||l||Function("return this")();function c(D,H){var Q=D?D.length:0;return!!Q&&h(D,H,0)>-1}function d(D,H,Q,At){for(var Ve=D.length,_e=Q+-1;++_e<Ve;)if(H(D[_e],_e,D))return _e;return-1}
1function h(D,H,Q){if(H!==H)return d(D,v,Q);for(var At=Q-1,Ve=D.length;++At<Ve;)if(D[At]===H)return At;return-1}function v(D){return D!==D}function f(D,H){return D.has(H)}function g(D,H){return D==null?void 0:D[H]}function _(D){var H=!1;if(D!=null&&typeof D.toString!="function")try{H=!!(D+"")}catch(Q){}return H}function S(D){var H=-1,Q=Array(D.size);return D.forEach(function(At){Q[++H]=At}),Q}var E=Array.prototype,w=Function.prototype,C=Object.prototype,P=u["__core-js_shared__"],k=(function(){var D=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""})(),L=w.toString,j=C.hasOwnProperty,U=C.toString,q=RegExp("^"+L.call(j).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=E.splice,x=Te(u,"Map"),m=Te(u,"Set"),b=Te(Object,"create");function y(D){var H=-1,Q=D?D.length:0;for(this.clear();++H<Q;){var At=D[H];this.set(At[0],At[1])}}function M(){this.__data__=b?b(null):{}}function R(D){return this.has(D)&&delete this.__data__[D]}function F(D){var H=this.__data__;if(b){var Q=H[D];return Q===t?void 0:Q}return j.call(H,D)?H[D]:void 0}function N(D){var H=this.__data__;return b?H[D]!==void 0:j.call(H,D)}function B(D,H){var Q=this.__data__;return Q[D]=b&&H===void 0?t:H,this}y.prototype.clear=M,y.prototype.delete=R,y.prototype.get=F,y.prototype.has=N,y.prototype.set=B;function G(D){var H=-1,Q=D?D.length:0;for(this.clear();++H<Q;){var At=D[H];this.set(At[0],At[1])}}function z(){this.__data__=[]}function X(D){var H=this.__data__,Q=ht(H,D);if(Q<0)return!1;var At=H.length-1;return Q==At?H.pop():O.call(H,Q,1),!0}function vt(D){var H=this.__data__,Q=ht(H,D);return Q<0?void 0:H[Q][1]}function Z(D){return ht(this.__data__,D)>-1}function Lt(D,H){var Q=this.__data__,At=ht(Q,D);return At<0?Q.push([D,H]):Q[At][1]=H,this}G.prototype.clear=z,G.prototype.delete=X,G.prototype.get=vt,G.prototype.has=Z,G.prototype.set=Lt;function xt(D){var H=-1,Q=D?D.length:0;for(this.clear();++H<Q;){var At=D[H];this.set(At[0],At[1])}}function bt(){this.__data__={hash:new y,map:new(x||G),string:new y}}function wt(D){return Ee(this,D).delete(D)}function Xt(D){return Ee(this,D).get(D)}function Y(D){return Ee(this,D).has(D)}function K(D,H){return Ee(this,D).set(D,H),this}xt.prototype.clear=bt,xt.prototype.delete=wt,xt.prototype.get=Xt,xt.prototype.has=Y,xt.prototype.set=K;function et(D){var H=-1,Q=D?D.length:0;for(this.__data__=new xt;++H<Q;)this.add(D[H])}function ot(D){return this.__data__.set(D,t),this}function Rt(D){return this.__data__.has(D)}et.prototype.add=et.prototype.push=ot,et.prototype.has=Rt;function ht(D,H){for(var Q=D.length;Q--;)if(Oo(D[Q][0],H))return Q;return-1}function _t(D){if(!_r(D)||vr(D))return!1;var H=br(D)||_(D)?q:o;return H.test(Do(D))}function Zt(D,H,Q){var At=-1,Ve=c,_e=D.length,Qr=!0,We=[],Ye=We;if(_e>=e){var Fe=Nt(D);if(Fe)return S(Fe);Qr=!1,Ve=f,Ye=new et}else Ye=We;t:for(;++At<_e;){var Je=D[At],Mn=Je;if(Je=Je!==0?Je:0,Qr&&Mn===Mn){for(var Ji=Ye.length;Ji--;)if(Ye[Ji]===Mn)continue t;We.push(Je)}else Ve(Ye,Mn,Q)||(Ye!==We&&Ye.push(Mn),We.push(Je))}return We}var Nt=m&&1/S(new m([,-0]))[1]==n?function(D){return new m(D)}:Yi;function Ee(D,H){var Q=D.__data__;return Bn(H)?Q[typeof H=="string"?"string":"hash"]:Q.map}function Te(D,H){var Q=g(D,H);return _t(Q)?Q:void 0}function Bn(D){var H=typeof D;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?D!=="__proto__":D===null}function vr(D){return!!k&&k in D}function Do(D){if(D!=null){try{return L.call(D)}catch(H){}try{return D+""}catch(H){}}return""}function ko(D){return D&&D.length?Zt(D):[]}function Oo(D,H){return D===H||D!==D&&H!==H}function br(D){var H=_r(D)?U.call(D):"";return H==r||H==i}function _r(D){var H=typeof D;return!!D&&(H=="object"||H=="function")}function Yi(){}return zo=ko,zo}var Xy=Ky();const Vo=Be(Xy),Xf="LOAD_COMMON",Zf="UPDATE_PARCELS_CLAIMED",Qf="FETCH_CART",iu="ADD_TO_CART",tp="REMOVE_FROM_CART",cl="STORE_COMPANY_SLUG",ep="SELECTED_PAYMENT_METHOD",np="SELECTED_EWALLET_TYPE",rp="ALL_FEES",ip="TERMS_AND_CONDITIONS",sp="FUTURE_SCHEDULED_ORDER",op="CLEAR_CART",ap="STORE_IMPORT_PARAMS",su="STORE_IMPORT_ERRORS",lp="UPDATE_CART_AMOUNT",up="FETCH_BILL_GROUP_STORE",uo="ADD_TO_BILL_GROUP_STORE",cp="CLEAR_BILL_GROUP_STORE",dp="CLAIM_BILL_GROUP_FROM_STORE",hp="REMOVE_FROM_BILL_GROUP_STORE",fp="UPDATE_BILL_GROUP_STORE",ou="RECEIVE_BILL_GROUPS_FOR_SEARCH",pp="CLAIM_BILL_GROUP_FROM_SEARCH",mp="CLEAR_BILL_GROUPS",gp="UNCLAIM_BILL_GROUP",vp="FETCH_SEARCH",dl="RECEIVE_BILL_GROUPS_FOR_DASHBOARD",Ge="SET_FLASH",bp="CLEAR_FLASH",_p={billGroupStore:[]},Zy={billGroupStore:e=>e.billGroupStore},Qy={[up](e,t){e.billGroupStore=He.fetch(`${t}-bill-group-store`)},[uo](e,t){const n=e.billGroupStore.find(r=>r.bill_group_uid===t.billGroup.bill_group_uid);if(!n)e.billGroupStore.push(t.billGroup);else{const r=e.billGroupStore.indexOf(n);n.bills.find(s=>s.bill_code===t.bill.bill_code)||(n.bills.push(t.bill),n.cartSearchIds=n.cartSearchIds.concat(t.billGroup.cartSearchIds),e.billGroupStore[r]=n)}},[hp](e,t){const n=e.billGroupStore.find(i=>i.bill_group_uid===t.billGroupUid);if(!n)return;const r=e.billGroupStore.indexOf(n);e.billGroupStore.splice(r,1)},[cp](e){e.billGroupStore=[]},[dp](e,t){const n=e.billGroupStore.find(r=>r.bill_group_uid===t.bill_group_uid);n.parcel.claimed=t.claimed},[fp](e,t){const n=t.updatedBillGroupsInCart,r=n[0];e.billGroupStore.forEach((i,s)=>{i.bill_group_uid===r.bill_group_uid&&e.billGroupStore.splice(s,1,n[0])}),He.save(`${t.companySlug}-bill-group-store`,e.billGroupStore)}};function Rr(e){const t=_p.billGroupStore.find(n=>n.bill_group_uid===e.bill_group_uid);if(t)return t}function co(e){const t=Rr(e);if(t)return t.bills.find(n=>n.bill_code===e.bill_code)}function au(e){const t=co(e);if(t)return t.options.find(n=>n.option_code===e.option_code)}function f$(e){const t=Object.assign({},Rr(e)),n=[];return e.bill_codes.map(r=>{n.push(Object.assign({},co({bill_group_uid:e.bill_group_uid,bill_code:r})))}),t.bills=n,t}function tw(e){const t=Object.assign({},Rr(e)),n=Object.assign({},co(e)),r=Object.assign({},au(e));return delete n.options,t.bills=[n],t.option=r,t}const ew={state:_p,getters:Zy,mutations:Qy},Gr={cartItems:[],importParams:null,importErrors:[],storedCompanySlug:null,selectedPaymentMethod:null,
1selectedEwalletType:null,allFees:[],agreedToTermsAndCond:!1,futureScheduledOrder:!1},nw={cartItems:e=>e.cartItems,selectedPm:e=>e.selectedPaymentMethod,selectedEwalletType:e=>e.selectedEwalletType,allFees:e=>e.allFees,agreedToTermsAndCond:e=>e.agreedToTermsAndCond,futureScheduledOrder:e=>e.futureScheduledOrder,cartEmpty:e=>e.cartItems.length===0,cartAmount:e=>e.cartItems.reduce((t,n)=>{const r=typeof n.amount=="string"?parseFloat(n.amount):n.amount;return t+r},0),cartProducts:e=>{if(e.cartItems.length>0)return e.cartItems.map(t=>{const n=yp(t.option_code),r=(t==null?void 0:t.hashed_parcel_id)||null;return{amount:t.amount,code:n.product_code,disablePm:n.disable_pm,hashedParcelId:r}})},cartLoaded:e=>{if(e.importParams===null||e.importErrors.length>0)return!0;const r=Vo(e.cartItems.map(s=>s.bill_group_uid)).map(s=>Rr({bill_group_uid:s}).cartSearchIds).reduce((s,o)=>s.concat(o),[]);return e.importParams.items.map(s=>s.q.map(o=>o.id||o.group_code)).flat().every(s=>r.includes(s))},cartImportParams:e=>e.importParams,allowClearCart:e=>Vo(e.cartItems.map(r=>r.bill_group_uid)).map(r=>Rr({bill_group_uid:r})).every(r=>!r.lock_cart_after_search),clearCartOnImport:e=>Vo(e.cartItems.map(r=>r.bill_group_uid)).map(r=>Rr({bill_group_uid:r})).some(r=>r.clear_cart_on_import)},rw={[Qf](e,t){e.cartItems=He.fetch(`${t}-cart-items`)},[iu](e,t){const{bill:n,option:r,amount:i,billGroup:s}=t,o=new Date,a={bill_group_uid:s.bill_group_uid,bill_code:n.bill_code,option_code:r.option_code,hashed_parcel_id:s.parcel.hashed_id,amount:i,added_at:o,refresh_params:r.refresh_params,search_group_slug:r.search_group_slug},l=e.cartItems.find(u=>u.bill_code===a.bill_code);if(l){const u=e.cartItems.indexOf(l);dt.set(e.cartItems,u,a)}else e.cartItems.push(a)},[tp](e,t){ow(e,t)},[cl](e,t){e.storedCompanySlug=t},[ep](e,t){e.selectedPaymentMethod=t},[np](e,t){e.selectedEwalletType=t},[rp](e,t){e.allFees=t},[ip](e,t){e.agreedToTermsAndCond=t},[sp](e,t){e.futureScheduledOrder=t},[op](e){e.cartItems=[],e.importParams=null},[ap](e,t){e.importParams=t},[su](e,t){e.importErrors.push(t)},[lp](e,t){e.cartItems.forEach(n=>{const r=au(n);r?r.amount_due_in_cents===0&&r.payment_max_in_cents===0?n.amount=0:r.editable||(n.amount=r.amount_due_in_cents/100):n.amount=0})}};function iw(e){let t;const n=Gr.cartItems.find(r=>r.bill_code===e.bill_code);if(n&&(t=co(n)),t&&(t.bill_code===n.bill_code||t.description==="Other"))return n}function p$(e){let t;const n=Gr.cartItems.find(r=>r.option_code===e.option_code);return n&&(t=yp(n.option_code)),t?t&&Kf(t.option_code,e.option_code):!1}function yp(e){const t=Gr.cartItems.find(n=>n.option_code===e);if(t)return au(t)}function sw(){const e={};return Gr.cartItems.forEach(t=>{e[t.bill_group_uid]=e[t.bill_group_uid]||[],e[t.bill_group_uid].push(t.bill_code)}),e}function Vs(){return Gr.cartItems.map(e=>{const t=tw(e)||{};return Object.assign({},t,{selectedAmount:e.amount})})}function ow(e,t){const n=e.cartItems.find(r=>r.bill_code===t.bill_code);if(n){const r=e.cartItems.indexOf(n);e.cartItems.splice(r,1)}}const aw={state:Gr,getters:nw,mutations:rw},lw={dashboardCurrentPage:null,dashboardTotalPages:null,dashboardBillGroups:null},uw={dashboardBillGroups:e=>e.dashboardBillGroups,dashboardPageData:e=>({current:e.dashboardCurrentPage,total:e.dashboardTotalPages})},cw={[dl](e,t){e.dashboardCurrentPage=t.current_page,e.dashboardTotalPages=t.total_pages,e.dashboardBillGroups=t.bill_groups||[]}},dw={state:lw,getters:uw,mutations:cw},hw={searchParams:null,searchCurrentPage:null,searchTotalPages:null,searchBillGroups:null},fw={searchParams:e=>e.searchParams,searchBillGroups:e=>e.searchBillGroups,searchPageData:e=>({current:e.searchCurrentPage,total:e.searchTotalPages})},pw={[ou](e,t){const{params:n,results:r}=t;e.searchParams=n,e.searchCurrentPage=r.current_page,e.searchTotalPages=r.total_pages,e.searchBillGroups=r.bill_groups},[mp](e){e.searchBillGroups=null},[pp](e,t){const n=e.searchBillGroups.find(i=>i.bill_group_uid===t),r=e.searchBillGroups.indexOf(n);n.parcel.claimed=!0,dt.set(e.searchBillGroups,r,n)},[gp](e,t){const n=e.searchBillGroups.find(i=>i.bill_group_uid===t),r=e.searchBillGroups.indexOf(n);n.parcel.claimed=!1,dt.set(e.searchBillGroups,r,n)},[vp](e){e.searchBillGroups=He.fetch("searchBillGroups"),e.searchParams=He.fetch("search")}},mw={state:hw,getters:fw,mutations:pw},gw={flashMessages:[]},vw={flashMessages:e=>e.flashMessages},bw={[Ge](e,t){e.flashMessages.push({status:t.status,content:t.content,persisted:t.persisted||!1})},[bp](e){e.flashMessages=[]}},_w={state:gw,getters:vw,mutations:bw},yw={loggedIn:null,userRole:null,actingRole:null,companyData:{},paths:{},clientConfig:{},searchGroups:[],customText:{},staticText:{},envInfo:{},statesData:{},recaptchaKey:"",searchId:""},ww={loggedIn:e=>e.loggedIn,companyData:e=>e.companyData,userRole:e=>e.userRole,actingRole:e=>e.actingRole,paths:e=>e.paths,clientConfig:e=>e.clientConfig,searchGroups:e=>e.searchGroups,token:e=>e.token,customText:e=>e.customText,staticText:e=>e.staticText,envInfo:e=>e.envInfo,statesData:e=>e.statesData,recaptchaKey:e=>e.recaptchaKey,searchId:e=>e.searchId},Cw={[Xf](e,t){e.loggedIn=t.logged_in,e.companyData=t.companyData,e.userRole=t.userRole,e.actingRole=t.actingRole,e.paths=t.paths,e.clientConfig=t.clientConfig,e.searchGroups=t.searchGroups,e.token=t.token,e.customText=t.customText,e.staticText=t.staticText,e.envInfo=t.envInfo,e.statesData=t.statesData,e.recaptchaKey=t.recaptchaKey,e.searchId=t.searchId},[Zf](e,t){e.actingRole.parcelsClaimed.push([t.group_code,t.unique_name])}},Ws={state:yw,getters:ww,mutations:Cw},xw=["ADD_TO_CART","REMOVE_FROM_CART","CLEAR_CART","UPDATE_CART_AMOUNT"],Aw=["RECEIVE_BILL_GROUPS_FOR_SEARCH","CLAIM_BILL_GROUP_FROM_SEARCH","UNCLAIM_BILL_GROUP"],Sw=["ADD_TO_BILL_GROUP_STORE","REMOVE_FROM_BILL_GROUP_STORE","CLEAR_BILL_GROUP_STORE","CLAIM_BILL_GROUP_FROM_STORE","UPDATE_BILL_GROUP_STORE"],Ew=e=>{e.subscribe((t,n)=>{if(xw.includes(t.type)){const r=Ws.state.companyData?Ws.state.companyData.slug:n.cart.storedCompanySlug;He.save(`${r}-cart-items`,n.cart.cartItems),He.save(`${r}-bill-group-store`,n.billGroupStore.billGroupStore)}})},Tw=e=>{e.subscribe((t,n)=>{Aw.includes(t.type)&&(He.save("search",n.searchResults.searchParams),He.save("searchBillGroups",n.searchResults.searchBillGroups))})},Dw=e=>{e.subscribe((t,n)=>{Sw.includes(t.type)&&He.save(`${Ws.state.companyData.slug}-bill-group-store`,n.billGroupStore.billGroupStore)})},kw=[Ew,Tw,Dw],Ow=({commit:e},t)=>{e(Xf,t)},Rw=({commit:e},t)=>{e(Qf,t)},Pw=({commit:e},t)=>{e(ep,t.replace("_card",""))},$w=({commit:e},t)=>{e(np,t)},Lw=({commit:e},t)=>{e(rp,t)},Bw=({commit:e},t)=>{e(ip,t)},Mw=({commit:e},t)=>{e(sp,t)},Iw=({commit:e},t)=>{e(uo,{billGroup:t.billGroup,bill:t.billGroup.bills[0]}),e(iu,t)},Fw=({commit:e},t)=>{e(tp,t.bill),sw()[t.billGroup.bill_group_uid]||e(hp,{billGroupUid:t.billGroup.bill_group_uid})},Nw=({commit:e},t)=>{t&&e(cl,t),e(op),e(cl,null)},jw=({commit:e,dispatch:t},n)=>{const{importParams:r,importPath:i,companyName:s,token:o}=n;e(ap,r);for(var a of r.items)a.import=!0,dt.axios.post(i,at(J({},a),{authenticity_token:o})).then(l=>{t("updateImportCartItem",l.data)}).catch(()=>{const l=`Did not receive a response from ${s}, please try again later.`;e(Ge,{status:"error",content:l}),e(su,l)})},Uw=({commit:e},t)=>{if(t.status!=="waiting")if(t.errors.length){const n=t.errors.join(", ");e(Ge,{status:"error",content:n}),e(su,n)}else{const n=t.results.bill_groups[0],r=n.bills[0];if(!iw(r)){e(uo,{billGroup:n,bill:r});const i=r.options[0],s=parseFloat((i.amount_due_in_cents/100).toFixed(2)),o=n.selectedAmount||s;e(iu,{bill:r,option:i,amount:o,billGroup:n})}}},qw=({commit:e,dispatch:t},n)=>{const{searchPath:r,params:i,companySlug:s}=n;dt.axios.post(r,i).then(o=>{const a={data:o.data,slug:s};t("updateCartItem",a)}).catch(o=>{e(Ge,{status:"error",content:"error "+o})})},Hw=({commit:e},t)=>{var i;const n=t.data,r=t.slug;if(n.status!=="waiting"&&!(!n.errors&&!n.results))if((i=n.errors)!=null&&i.length){const s=n.errors.join(", ");e(Ge,{status:"error",content:s})}else{const s=n.results.bill_groups;e(fp,{updatedBillGroupsInCart:s,companySlug:r}),e(lp,r)}},Gw=({commit:e},t)=>{e(up,t)},zw=({commit:e},t)=>{e(uo,{billGroup:t.billGroup,bill:t.bill})},Vw=({commit:e})=>{e(cp)},Ww=({commit:e},t)=>{e(dp,t),e(Zf,t)},Yw=({commit:e})=>{e(vp)},Jw=({commit:e},t)=>{if(t.status!=="waiting")if(t.errors.length){const n=t.errors.join(", ");e(Ge,{status:"error",content:n,persisted:!1});const r=t.redirectUrl;r&&r.match(/^\//)!==null&&setTimeout(()=>{window.location=r},1e3)}else e(ou,{params:t.params,results:t.results})},Kw=({commit:e,dispatch:t},n)=>{const{searchPath:r,params:i,companyName:s}=n;dt.axios.post(r,i).then(o=>{t("updateSearchResults",o.data)}).catch(()=>{e(Ge,{status:"error",content:`Did not receive a response from ${s}, please try again later.`}),e(ou,{params:i,results:{}})})},Xw=({commit:e})=>{e(mp)},Zw=({commit:e},t)=>{e(pp,t)},Qw=({commit:e},t)=>{e(gp,t)},t0=({commit:e},t)=>{const{dashboardBillGroupSearchPath:n,params:r,companyName:i}=t;dt.axios.get(n,{params:r}).then(s=>{s.data.errors.length&&e(Ge,{status:"error",content:s.data.errors}),e(dl,s.data.subject)}).catch(()=>{e(Ge,{status:"error",content:`Did not receive a response from ${i}, please try again later.`}),e(dl,{})})},e0=({commit:e},t)=>{e(Ge,t)},n0=({commit:e})=>{e(bp)},r0=Object.freeze(Object.defineProperty({__proto__:null,addToBillGroupStore:zw,addToCart:Iw,agreedToTermsAndCond:Bw,allFees:Lw,claimBillGroupFromSearch:Zw,claimBillGroupFromStore:Ww,clearBillGroupStore:Vw,clearBillGroups:Xw,clearCart:Nw,clearFlash:n0,fetchBillGroupStore:Gw,fetchCart:Rw,fetchStoredSearchResults:Yw,futureScheduledOrder:Mw,getBillGroupsForDashboard:t0,getSearchResults:Kw,importCart:jw,loadCommon:Ow,refreshCartItem:qw,removeFromCart:Fw,selectedEwalletType:$w,selectedPm:Pw,setFlash:e0,unclaimBillGroup:Qw,updateCartItem:Hw,updateImportCartItem:Uw,updateSearchResults:Jw},Symbol.toStringTag,{value:"Module"}));dt.use(Jf);const m$=new Jf.Store({actions:r0,plugins:kw,modules:{cart:aw,billGroupStore:ew,dashboard:dw,searchResults:mw,flashMessages:_w,commonData:Ws}}),Vt={mounted(){this.configuration.primaryColor&&!(window.CSS&&window.CSS.supports&&window.CSS.supports("color","var(--primaryColor)"))&&this.setIEThemeStyles()},data(){return{royal:"#003E96",oceanic:"#04B3CF",kelp:"#8CC540"}},computed:at(J({},ct({userRole:"userRole"}
1)),{configuration(){return!this.clientConfig&&!this.config?{primaryColor:this.royal,accentColor:this.oceanic,primaryHover:this.oceanic,accentHover:"hsl(214.55, 100%, 34.4%)"}:this.clientConfig?this.clientConfig:this.config},themeColors(){return{"--primaryColor":this.configuration.primaryColor,"--accentColor":this.configuration.accentColor,"--primaryHover":this.configuration.primaryHover,"--accentHover":this.configuration.accentHover}}}),created(){this.configuration.primaryColor=this.userRole&&this.userRole.staff?this.royal:this.configuration.primaryColor,this.configuration.primaryHover=this.userRole&&this.userRole.staff?this.oceanic:this.configuration.primaryHover,this.configuration.accentColor=this.userRole&&this.userRole.staff?this.oceanic:this.configuration.accentColor},methods:{setIEThemeStyles(){var i;const e=`<style>
2        .primary-color { color: ${this.configuration.primaryColor}!important; }
3        .accent-color { color: ${this.configuration.accentColor}!important; }
4        .primary-bg { background-color: ${this.configuration.primaryColor}!important; }
5        .accent-bg { background-color: ${this.configuration.accentColor}!important; }
6        .btn-primary { background: ${this.configuration.primaryColor}!important; }
7        .btn-primary:hover { background: ${this.configuration.primaryColor}; background: ${this.configuration.primaryHover}!important; }
8        .primary-hover:hover { color: ${this.configuration.primaryHover}!important; }
9        .btn-select { color: ${this.configuration.primaryColor}!important; border: 2px solid ${this.configuration.primaryColor}!important;}
10        .btn-select:hover { color: ${this.configuration.primaryHover}!important; border-color: ${this.configuration.primaryColor}!important; }
11        .btn-select:active, .btn-select:visited { color: ${this.configuration.primaryColor}!important; }
12        .btn-select:active:hover, .btn-select:visited:hover { color: ${this.configuration.primaryHover}!important; }
13        .primary-links a { color: ${this.configuration.primaryColor}!important; }
14        .primary-links a:hover { color: ${this.configuration.primaryColor}; color: ${this.configuration.primaryHover}!important; }
15        .primary-badge  { background-color: ${this.configuration.primaryColor}!important; }
16        .secondary { background: ${this.configuration.accentColor}!important; }
17        div:not(.toggle-switch-wrapper) > input[type="checkbox"]:checked + label::before {
18          background-color: ${this.configuration.primaryColor}!important;
19          border-color: ${this.configuration.primaryColor}!important;
20          content: "";
21        }
22        div:not(.toggle-switch-wrapper) > input[type="checkbox"]:checked + label::after {
23          content: "";
24          background-color: ${this.configuration.primaryColor}!important;
25        }
26      </style>`,t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=(i=document.getElementById("main"))==null?void 0:i.dataset.cspNonce;r&&n.setAttribute("nonce",r),n.innerHTML=e,t.appendChild(n)}}};var ds={exports:{}};var nd;function i0(){return nd||(nd=1,(function(e,t){(function(n,r){var i={};i.version="0.4.1",i.settings={currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}};var s=Array.prototype.map,o=Array.isArray,a=Object.prototype.toString;function l(w){return!!(w===""||w&&w.charCodeAt&&w.substr)}function u(w){return o?o(w):a.call(w)==="[object Array]"}function c(w){return w&&a.call(w)==="[object Object]"}function d(w,C){var P;w=w||{},C=C||{};for(P in C)C.hasOwnProperty(P)&&w[P]==null&&(w[P]=C[P]);return w}function h(w,C,P){var k=[],L,j;if(!w)return k;if(s&&w.map===s)return w.map(C,P);for(L=0,j=w.length;L<j;L++)k[L]=C.call(P,w[L],L,w);return k}function v(w,C){return w=Math.round(Math.abs(w)),isNaN(w)?C:w}function f(w){var C=i.settings.currency.format;return typeof w=="function"&&(w=w()),l(w)&&w.match("%v")?{pos:w,neg:w.replace("-","").replace("%v","-%v"),zero:w}:!w||!w.pos||!w.pos.match("%v")?l(C)?i.settings.currency.format={pos:C,neg:C.replace("%v","-%v"),zero:C}:C:w}var g=i.unformat=i.parse=function(w,C){if(u(w))return h(w,function(L){return g(L,C)});if(w=w||0,typeof w=="number")return w;C=C||i.settings.number.decimal;var P=new RegExp("[^0-9-"+C+"]",["g"]),k=parseFloat((""+w).replace(/\((.*)\)/,"-$1").replace(P,"").replace(C,"."));return isNaN(k)?0:k},_=i.toFixed=function(w,C){C=v(C,i.settings.number.precision);var P=Math.pow(10,C);return(Math.round(i.unformat(w)*P)/P).toFixed(C)},S=i.formatNumber=i.format=function(w,C,P,k){if(u(w))return h(w,function(x){return S(x,C,P,k)});w=g(w);var L=d(c(C)?C:{precision:C,thousand:P,decimal:k},i.settings.number),j=v(L.precision),U=w<0?"-":"",q=parseInt(_(Math.abs(w||
260),j),10)+"",O=q.length>3?q.length%3:0;return U+(O?q.substr(0,O)+L.thousand:"")+q.substr(O).replace(/(\d{3})(?=\d)/g,"$1"+L.thousand)+(j?L.decimal+_(Math.abs(w),j).split(".")[1]:"")},E=i.formatMoney=function(w,C,P,k,L,j){if(u(w))return h(w,function(x){return E(x,C,P,k,L,j)});w=g(w);var U=d(c(C)?C:{symbol:C,precision:P,thousand:k,decimal:L,format:j},i.settings.currency),q=f(U.format),O=w>0?q.pos:w<0?q.neg:q.zero;return O.replace("%s",U.symbol).replace("%v",S(Math.abs(w),v(U.precision),U.thousand,U.decimal))};i.formatColumn=function(w,C,P,k,L,j){if(!w)return[];var U=d(c(C)?C:{symbol:C,precision:P,thousand:k,decimal:L,format:j},i.settings.currency),q=f(U.format),O=q.pos.indexOf("%s")<q.pos.indexOf("%v"),x=0,m=h(w,function(b,y){if(u(b))return i.formatColumn(b,U);b=g(b);var M=b>0?q.pos:b<0?q.neg:q.zero,R=M.replace("%s",U.symbol).replace("%v",S(Math.abs(b),v(U.precision),U.thousand,U.decimal));return R.length>x&&(x=R.length),R});return h(m,function(b,y){return l(b)&&b.length<x?O?b.replace(U.symbol,U.symbol+new Array(x-b.length+1).join(" ")):new Array(x-b.length+1).join(" ")+b:b})},e.exports&&(t=e.exports=i),t.accounting=i})()})(ds,ds.exports)),ds.exports}var s0=i0();const hl=Be(s0);var xs={exports:{}},o0=xs.exports,rd;function a0(){return rd||(rd=1,(function(e,t){(function(n,r){e.exports=r()})(o0,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",u="day",c="week",d="month",h="quarter",v="year",f="date",g="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={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("_")},w=function(m,b,y){var M=String(m);return!M||M.length>=b?m:""+Array(b+1-M.length).join(y)+m},C={s:w,z:function(m){var b=-m.utcOffset(),y=Math.abs(b),M=Math.floor(y/60),R=y%60;return(b<=0?"+":"-")+w(M,2,"0")+":"+w(R,2,"0")},m:function m(b,y){if(b.date()<y.date())return-m(y,b);var M=12*(y.year()-b.year())+(y.month()-b.month()),R=b.clone().add(M,d),F=y-R<0,N=b.clone().add(M+(F?-1:1),d);return+(-(M+(y-R)/(F?R-N:N-R))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:d,y:v,w:c,d:u,D:f,h:l,m:a,s:o,ms:s,Q:h}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},P="en",k={};k[P]=E;var L=function(m){return m instanceof O},j=function m(b,y,M){var R;if(!b)return P;if(typeof b=="string"){var F=b.toLowerCase();k[F]&&(R=F),y&&(k[F]=y,R=F);var N=b.split("-");if(!R&&N.length>1)return m(N[0])}else{var B=b.name;k[B]=b,R=B}return!M&&R&&(P=R),R||!M&&P},U=function(m,b){if(L(m))return m.clone();var y=typeof b=="object"?b:{};return y.date=m,y.args=arguments,new O(y)},q=C;q.l=j,q.i=L,q.w=function(m,b){return U(m,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var O=(function(){function m(y){this.$L=j(y.locale,null,!0),this.parse(y)}var b=m.prototype;return b.parse=function(y){this.$d=(function(M){var R=M.date,F=M.utc;if(R===null)return new Date(NaN);if(q.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var N=R.match(_);if(N){var B=N[2]-1||0,G=(N[7]||"0").substring(0,3);return F?new Date(Date.UTC(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)):new Date(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)}}return new Date(R)})(y),this.$x=y.x||{},this.init()},b.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},b.$utils=function(){return q},b.isValid=function(){return this.$d.toString()!==g},b.isSame=function(y,M){var R=U(y);return this.startOf(M)<=R&&R<=this.endOf(M)},b.isAfter=function(y,M){return U(y)<this.startOf(M)},b.isBefore=function(y,M){return this.endOf(M)<U(y)},b.$g=function(y,M,R){return q.u(y)?this[M]:this.set(R,y)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(y,M){var R=this,F=!!q.u(M)||M,N=q.p(y),B=function(bt,wt){var Xt=q.w(R.$u?Date.UTC(R.$y,wt,bt):new Date(R.$y,wt,bt),R);return F?Xt:Xt.endOf(u)},G=function(bt,wt){return q.w(R.toDate()[bt].apply(R.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(wt)),R)},z=this.$W,X=this.$M,vt=this.$D,Z="set"+(this.$u?"UTC":"");switch(N){case v:return F?B(1,0):B(31,11);case d:return F?B(1,X):B(0,X+1);case c:var Lt=this.$locale().weekStart||0,xt=(z<Lt?z+7:z)-Lt;return B(F?vt-xt:vt+(6-xt),X);case u:case f:return G(Z+"Hours",0);case l:return G(Z+"Minutes",1);case a:return G(Z+"Seconds",2);case o:return G(Z+"Milliseconds",3);default:return this.clone()}},b.endOf=function(y){return this.startOf(y,!1)},b.$set=function(y,M){var R,F=q.p(y),N="set"+(this.$u?"UTC":""),B=(R={},R[u]=N+"Date",R[f]=N+"Date",R[d]=N+"Month",R[v]=N+"FullYear",R[l]=N+"Hours",R[a]=N+"Minutes",R[o]=N+"Seconds",R[s]=N+"Milliseconds",R)[F],G=F===u?this.$D+(M-this.$W):M;if(F===d||F===v){var z=this.clone().set(f,1);z.$d[B](G),z.init(),this.$d=z.set(f,Math.min(this.$D,z.daysInMonth())).$d}else B&&this.$d[B](G);return this.init(),this},b.set=function(y,M){return this.clone().$set(y,M)},b.get=function(y){return this[q.p(y)]()},b.add=function(y,M){var R,F=this;y=Number(y);var N=q.p(M),B=function(X){var vt=U(F);return q.w(vt.date(vt.date()+Math.round(X*y)),F)};if(N===d)return this.set(d,this.$M+y);if(N===v)return this.set(v,this.$y+y);if(N===u)return B(1);if(N===c)return B(7);var G=(R={},R[a]=r,R[l]=i,R[o]=n,R)[N]||1,z=this.$d.getTime()+y*G;return q.w(z,this)},b.subtract=function(y,M){return this.add(-1*y,M)},b.format=function(y){var M=this,R=this.$locale();if(!this.isValid())return R.invalidDate||g;var F=y||"YYYY-MM-DDTHH:mm:ssZ",N=q.z(this),B=this.$H,G=this.$m,z=this.$M,X=R.weekdays,vt=R.months,Z=function(wt,Xt,Y,K){return wt&&(wt[Xt]||wt(M,F))||Y[Xt].slice(0,K)},Lt=function(wt){return q.s(B%12||12,wt,"0")},xt=R.meridiem||function(wt,Xt,Y){var K=wt<12?"AM":"PM";return Y?K.toLowerCase():K},bt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:z+1,MM:q.s(z+1,2,"0"),MMM:Z(R.monthsShort,z,vt,3),MMMM:Z(vt,z),D:this.$D,DD:q.s(this.$D,2,"0"),d:String(this.$W),dd:Z(R.weekdaysMin,this.$W,X,2),ddd:Z(R.weekdaysShort,this.$W,X,3),dddd:X[this.$W],H:String(B),HH:q.s(B,2,"0"),h:Lt(1),h
26h:Lt(2),a:xt(B,G,!0),A:xt(B,G,!1),m:String(G),mm:q.s(G,2,"0"),s:String(this.$s),ss:q.s(this.$s,2,"0"),SSS:q.s(this.$ms,3,"0"),Z:N};return F.replace(S,(function(wt,Xt){return Xt||bt[wt]||N.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(y,M,R){var F,N=q.p(M),B=U(y),G=(B.utcOffset()-this.utcOffset())*r,z=this-B,X=q.m(this,B);return X=(F={},F[v]=X/12,F[d]=X,F[h]=X/3,F[c]=(z-G)/6048e5,F[u]=(z-G)/864e5,F[l]=z/i,F[a]=z/r,F[o]=z/n,F)[N]||z,R?X:q.a(X)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return k[this.$L]},b.locale=function(y,M){if(!y)return this.$L;var R=this.clone(),F=j(y,M,!0);return F&&(R.$L=F),R},b.clone=function(){return q.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},m})(),x=O.prototype;return U.prototype=x,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",u],["$M",d],["$y",v],["$D",f]].forEach((function(m){x[m[1]]=function(b){return this.$g(b,m[0],m[1])}})),U.extend=function(m,b){return m.$i||(m(b,O,U),m.$i=!0),U},U.locale=j,U.isDayjs=L,U.unix=function(m){return U(1e3*m)},U.en=k[P],U.Ls=k,U.p={},U}))})(xs)),xs.exports}var l0=a0();const Ui=Be(l0);var As={exports:{}},u0=As.exports,id;function c0(){return id||(id=1,(function(e,t){(function(n,r){e.exports=r()})(u0,(function(){return function(n,r,i){var s=r.prototype,o=s.format;i.en.ordinal=function(a){var l=["th","st","nd","rd"],u=a%100;return"["+a+(l[(u-20)%10]||l[u]||l[0])+"]"},s.format=function(a){var l=this,u=this.$locale();if(!this.isValid())return o.bind(this)(a);var c=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),h==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),h==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return h}}));return o.bind(this)(d)}}}))})(As)),As.exports}var d0=c0();const h0=Be(d0);var Ss={exports:{}},f0=Ss.exports,sd;function p0(){return sd||(sd=1,(function(e,t){(function(n,r){e.exports=r()})(f0,(function(){var n={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"};return function(r,i,s){var o=i.prototype,a=o.format;s.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=(function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,f,g){var _=g&&g.toUpperCase();return f||h[g]||n[g]||h[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,E,w){return E||w.slice(1)}))}))})(l,u===void 0?{}:u);return a.call(this,c)}}}))})(Ss)),Ss.exports}var m0=p0();const g0=Be(m0);var Es={exports:{}},v0=Es.exports,od;function b0(){return od||(od=1,(function(e,t){(function(n,r){e.exports=r()})(v0,(function(){return function(n,r){r.prototype.isSameOrBefore=function(i,s){return this.isSame(i,s)||this.isBefore(i,s)}}}))})(Es)),Es.exports}var _0=b0();const y0=Be(_0);var Ts={exports:{}},w0=Ts.exports,ad;function C0(){return ad||(ad=1,(function(e,t){(function(n,r){e.exports=r()})(w0,(function(){return function(n,r){r.prototype.isSameOrAfter=function(i,s){return this.isSame(i,s)||this.isAfter(i,s)}}}))})(Ts)),Ts.exports}var x0=C0();const A0=Be(x0);Ui.extend(h0);Ui.extend(g0);Ui.extend(y0);Ui.extend(A0);function S0(e){return e?e.replace(/[^0-9]/g,"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):""}function g$(e){return e?e.replace(/_/g," ").replace(/(\w+)/g,function(t){return t.charAt(0).toUpperCase()+t.slice(1)}):""}function ld(e){return`${["a","e","i","o","u"].indexOf(e[0].toLowerCase())===-1?"a":"an"} ${e}`}function zr(e){return e?e[0].toUpperCase()+e.slice(1):""}function lu(e){return hl.formatMoney(e,{precision:2})}function v$(e,t){if(e){const n=new Date(e);return Ui(n).format(t)}else return""}function b$(){const e=new Date,t=new Date;return t.setDate(e.getDate()+1),t}function E0(e){return Yt(this,null,function*(){return Array.prototype.map.call(new Uint8Array(yield window.crypto.subtle.digest("SHA-256",
26new TextEncoder().encode(e))),t=>("0"+t.toString(16)).slice(-2)).join("")})}function wp(e){const{marginLeft:t,marginTop:n,width:r,height:i}=window.getComputedStyle(e);e.style.left=`${e.offsetLeft-parseFloat(t,10)}px`,e.style.top=`${e.offsetTop-parseFloat(n,10)}px`,e.style.width=r,e.style.height=i}function W(e,t,n,r,i,s,o,a){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),s&&(l._scopeId="data-v-"+s),{exports:e,options:l}}const T0={name:"required-error",props:{field:{type:Object,required:!0},name:{type:String,required:!0}},computed:{hasModel:function(){return this.field.$model},fieldInvalid:function(){var n,r,i;const e=(n=this.field)==null?void 0:n.$dirty,t=((r=this.field.required)==null?void 0:r.$invalid)||((i=this.field.requiredIf)==null?void 0:i.$invalid);return e&&t}},methods:{capitalize:zr}};var D0=function(){var t=this,n=t._self._c;return n("transition",{attrs:{name:"error-slide"}},[t.hasModel?n("div",{directives:[{name:"show",rawName:"v-show",value:t.fieldInvalid&&t.field.$model.length===0,expression:"fieldInvalid && field.$model.length === 0"}],staticClass:"error tw-text-sm tw-mt-[.20rem]"},[n("span",{attrs:{id:`${t.name.replace(/ /g,"_")}_required`}},[t._v(t._s(t.capitalize(t.name))+" required.")])]):n("div",{directives:[{name:"show",rawName:"v-show",value:t.fieldInvalid,expression:"fieldInvalid"}],staticClass:"error tw-text-sm tw-mt-[.20rem]"},[n("span",{attrs:{id:`${t.name.replace(/ /g,"_")}_required`}},[t._v(t._s(t.capitalize(t.name))+" required.")])])])},k0=[],O0=W(T0,D0,k0,!1,null,null);const Vr=O0.exports,R0=Object.freeze(Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"})),Me={props:{id:{type:String,default:""},klass:{type:String,default:""},name:{type:String,default:""}},mounted(){this.formatValue()},methods:{touchInput(){this.$emit("input-touched")},selectAll(e){setTimeout(function(){e.target.select()},0)}}},P0={name:"custom-select",mixins:[Me],props:{value:{type:[String,Number],default:null},options:{type:Array,required:!0},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},condensed:{type:Boolean,default:!1},ariaLabelText:{type:[String,Number],required:!0}},data(){return{showDesktopOptions:!1,displayLabel:"",hovered:"",selectSearch:"",focused:!1}},computed:{singleSelectOption:function(){return this.options.length===1?(this.setOption(this.options[0]),!0):!1},currentOption:function(){const e=this.options.find(t=>this.optionValue(t)===this.value);return e===void 0?"":e},selectClasses:function(){return{"select-box":!0,disabled:this.disabled,"condensed-select-box":this.condensed}},arrowClass:function(){return{"dropdown-arrow":!0,focus:this.focused,error:this.error,"single-select":this.singleSelectOption}},desktopSelectClass:function(){return{"desktop-select":!0,focus:this.focused,error:this.error,"single-select":this.singleSelectOption}},mobileSelectClass:function(){return{"mobile-select":!0,focus:this.focused,error:this.error,disabled:this.singleSelectOption,"single-select":this.singleSelectOption}}},watch:{value:function(e,t){this.setDisplayLabel()},options:function(){this.setDisplayLabel(this.value),this.hovered=this.displayLabel},selectSearch:function(){if(!this.selectSearch)return;let e;this.selectSearch.length>1&&this.selectSearch.split("").every(n=>n===this.selectSearch[0])?e=this.oneLetterSearch():e=this.stringSearch(),e?(this.setOption(e),this.showDesktopOptions&&this.scrollToOption(e)):(this.updateValue(""),this.displayLabel="",this.hovered=""),setTimeout(()=>{this.selectSearch=""},4e3)}},mounted(){this.setDisplayLabel()},methods:{optionValue:function(e){return typeof e=="object"?e.value:e},optionLabel:function(e){return typeof e=="object"?e.label:String(e)},updateValue(e){const t=this.options.find(r=>this.optionValue(r)===e),n=t?this.optionValue(t):e;this.$emit("input",n)},formatValue(){return this.value},oneLetterSearch:function(){const e=[];this.options.forEach(r=>{this.optionLabel(r).split(" ")[0][0].toLowerCase()===this.selectSearch[0]&&e.push(this.optionValue(r))});const t=this.selectSearch.length-1;return e.length<=t?e[e.length-1]:e[t]},stringSearch:function(){const e=this.firstWordSearch();return e.length===0&&this.options.forEach(t=>{this.matchAgainstList(this.optionLabel(t))&&e.push(this.optionValue(t))}),this.options.find(t=>this.optionValue(t)===e[0])},firstWordSearch:function(){const e=[];return this.options.forEach(t=>{const n=this.optionLabel(t).split(" ")[0];this.matchAgainstList(n)&&e.push(this.optionValue(t))}),e},matchAgainstList:function(e){const t=["of","the"],n=e.toString().split(" ").filter(s=>t.indexOf(s)===-1),r=new RegExp("^"+this.selectSearch,"i");return n.filter(s=>r.test(s)).length>0},toggleDesktopDropdown:function(){if(!this.disabled&&!this.singleSelectOption)return this.showDesktopOptions?this.closeDesktopDropdown():this.openAndJumpToOption()},openAndJumpToOption:function(){this.openDesktopDropdown().then(()=>{this.maybeFixMaxHeight(),document.getElementById(this.id+"_select").childNodes[0].focus(),this.currentOption&&this.scrollToOption(this.currentOption)})},openDesktopDropdown:function(){return new Promise((e,t)=>
26{if(this.showDesktopOptions)return e();this.showDesktopOptions=!0,window.addEventListener("click",this.desktopSelectClickHandler),this.focused=!0,this.$nextTick(e())})},maybeFixMaxHeight:function(){const e=document.getElementById(this.id+"_options"),t=e.getBoundingClientRect().bottom,n=document.getElementsByTagName("body")[0].getBoundingClientRect().bottom;if(t<=n)return;const r=Math.ceil(t-n),s=parseInt(window.getComputedStyle(e).maxHeight)-r;e.style.maxHeight=`${s}px`},closeDesktopDropdown:function(){this.showDesktopOptions=!1,this.focused=!1,window.removeEventListener("click",this.desktopSelectClickHandler),this.value||this.updateValue("")},desktopSelectClickHandler:function(e){const t=document.getElementById(`${this.id}_select`);!t||t.contains(e.target)||(this.touchInput(),this.hovered=this.displayLabel,this.closeDesktopDropdown())},handleTab:function(e){this.focused=!1,this.showDesktopOptions&&this.closeDesktopDropdown(),this.touchInput(),this.value||this.updateValue("")},focusAndMaybeSetListener:function(){this.showDesktopOptions||window.addEventListener("click",this.desktopSelectClickHandler),this.focused=!0},setDisplayLabel:function(){const e=this.currentOption?this.optionLabel(this.currentOption):"";this.displayLabel=e,this.hovered=this.displayLabel},selectOption:function(e){this.setOption(e),this.showDesktopOptions=!1,window.removeEventListener("click",this.desktopSelectClickHandler)},setOption:function(e){this.updateValue(this.optionValue(e)),this.setDisplayLabel()},selectOptionWithEnter:function(e){e.preventDefault(),this.selectOption(this.currentOption)},selectOptionWithClick:function(e){this.selectOption(e),this.focused=!1,this.touchInput()},elementHover:function(e){this.hovered=e.target.innerHTML.trim()},elementUnHover:function(){this.hovered=this.displayLabel},hoverClass:function(e){if(String(this.hovered)===this.optionLabel(e))return"hover"},setNextOption:function(){if(this.displayLabel==="")this.setOption(this.options[0]),this.showDesktopOptions&&this.scrollToOption(this.options[0]);else{const e=this.options.indexOf(this.currentOption),t=this.options[e+1];t&&(this.setOption(t),this.showDesktopOptions&&this.scrollToOption(t))}},setPreviousOption:function(){if(this.displayLabel==="")return;const e=this.options.indexOf(this.currentOption),t=this.options[e-1];t&&(this.setOption(t),this.showDesktopOptions&&this.scrollToOption(t))},scrollToOption:function(e){const t=this.pixelsToTop(e),n=this.pixelsToBottom(e);if(this.dropdownViewport().bottom<t&&this.scrollTo(t),t<=this.dropdownViewport().top)return this.scrollTo(t);if(n>=this.dropdownViewport().bottom)return this.scrollTo(this.dropdownViewport().top+this.optionHeight())},dropdownElement:function(){return document.getElementById(this.id+"_options")},optionHeight:function(){return this.dropdownElement().children[0].offsetHeight},dropdownViewport:function(){const e=this.dropdownElement();return{top:e.scrollTop,bottom:e.scrollTop+e.offsetHeight}},pixelsToTop:function(e){const t=this.options.indexOf(e);let n=0;for(let r=0;r<t;r++)n+=this.optionHeight();return n},pixelsToBottom:function(e){return this.pixelsToTop(e)+this.optionHeight()},scrollTo:function(e){return this.dropdownElement()?this.dropdownElement().scrollTop=e:null}}};var $0=function(){var t=this,n=t._self._c;return n("div",{class:t.selectClasses,attrs:{id:"select_wrapper_"+t.id}},[t._t("default"),t._v(" "),n("input",{staticClass:"tw-input",attrs:{type:"hidden",id:t.id,name:t.name},domProps:{value:t.value}}),t._v(" "),n("div",{class:t.mobileSelectClass},[n("div",{staticClass:"tw-flex tw-relative tw-items-center"},[t.options.length>1?n("i",{staticClass:"tw-text-gray-400 fa-lg tw-right-0 tw-mr-3 tw-absolute fa-classic fa-regular fa-angle-down tw-pointer-events-none",attrs:{id:t.id+"_mobile_dropdown_arrow"}}):t._e(),t._v(" "),n("select",{staticClass:"tw-px-4",attrs:{id:t.id+"_mobile_select",disabled:t.disabled,"aria-label":t.ariaLabelText},domProps:{value:t.value},on:{input:function(r){return t.updateValue(r.target.value)},blur:function(r){return t.touchInput()}}},[n("option",{attrs:{disabled:""}}),t._v(" "),t._l(t.options,function(r,i){return n("option",{key:i,domProps:{value:t.optionValue(r)}},[t._v(`
27          `+t._s(t.optionLabel(r))+`
28        `)])})],2)])]),t._v(" "),n("div",{class:t.desktopSelectClass,attrs:{id:t.id+"_select"}},[n("div",{staticClass:"tw-flex tw-items-center tw-h-12 tw-relative",attrs:{id:t.id+"_desktop_select"}},[t.options.length>1?n("i",{staticClass:"tw-text-gray-400 fa-lg tw-right-0 tw-mr-3 tw-absolute fa-classic fa-regular fa-angle-down tw-pointer-events-none",attrs:{id:t.id+"_desktop_dropdown_arrow"}}):t._e(),t._v(" "),n("select",{staticClass:"tw-px-4",attrs:{id:t.id+"_options",disabled:t.disabled,"aria-label":t.ariaLabelText},domProps:{value:t.value},on:{change:function(r){return t.updateValue(r.target.value)},keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"tab",9,r.key,"Tab")?null:t.handleTab(r)},focus:function(r){return t.focusAndMaybeSetListener()}}},t._l(t.options,function(r,i){return n("option",{key:i,attrs:{id:t.optionLabel(r)+"_option","aria-labelledby":t.optionValue(r)+"_option"},domProps:{value:t.optionValue(r)}},[t._v(`
29          `+t._s(t.optionLabel(r))+`
30        `)])}),0)])])],2)},L0=[],B0=W(P0,$0,L0,!1,null,null);const M0=B0.exports,I0=Object.freeze(Object.defineProperty({__proto__:null,default:M0},Symbol.toStringTag,{value:"Module"}));function F0(e){return e===!0}function uu(e){return/\d{1}/.test(e)}function cu(e){return/[A-Z]/.test(e)}function du(e){return/[a-z]/.test(e)}function _$(e){return Object.keys(e).some(t=>e[t]===!0)}function y$(e){return Object.keys(e).some(t=>{var n;return((n=e[t])==null?void 0:n.value)===!0})}function w$(e){const t=Object.keys(e).some(i=>{var s;return((s=e[i])==null?void 0:s.value)===!0}),n=this.editedGroup.customApiSearchFields.some(i=>typeof i.value=="string"&&i.value.length>0),r=this.editedGroup.useCustomApiSearches&&n;return t||r}function C$(e){return!e||e.length===0?!0:/^\d{10}$/.test(e)}function N0(e){return/^\d{5}(?:[-\s]\d{4})?$/.test(e)}function j0(e){return/^(?!.*[DFIOQU])[A-VXY][0-9][A-Z]\s?[0-9][A-Z][0-9]$/.test(e)}function x$(e){return["US","MX"].includes(this.country)?N0(e):this.country==="CA"?j0(e):!0}function A$(e){return/#[0-9A-Fa-f]{6}\b/.test(e)}function S$(e){const t=e!=null,n=!isNaN(e);return t&&n}function E$(e){if(/[^0-9 -]+/.test(e))return!1;let t=0,n=0,r=!1,i,s;if(e=e.replace(/\D/g,""),e.length<13||e.length>19)return!1;for(i=e.length-1;i>=0;i--)s=e.charAt(i),n=parseInt(s,10),r&&(n*=2)>9&&(n-=9),t+=n,r=!r;return t%10===0}function T$(e){return e.length===0?!0:e.length===3||e.length===4}function D$(e){return e[0]!=="4"?!0:this.creditSelected?this.acceptedCreditCardNetworks.includes("VISA"):this.acceptedDebitCardNetworks.includes("VISA")}function k$(e){return e[0]!=="5"?!0:this.creditSelected?this.acceptedCreditCardNetworks.includes("MASTERCARD"):this.acceptedDebitCardNetworks.includes("MASTERCARD")}function O$(e){return e[0]==="3"&&(e[1]==="4"||e[1]==="7")?this.creditSelected?this.acceptedCreditCardNetworks.includes("AMERICAN_EXPRESS"):this.acceptedDebitCardNetworks.includes("AMERICAN_EXPRESS"):!0}function R$(e){return e[0]!=="6"?!0:this.creditSelected?this.acceptedCreditCardNetworks.includes("DISCOVER"):this.acceptedDebitCardNetworks.includes("DISCOVER")}function cn(e){return this.v$.$touch(),this.v$.$error?(e.preventDefault(),this.$nextTick(()=>{var s,o,a,l,u,c;const t='[style*="display: none"]):not(div.message):not([class*="-select"]',n=document.querySelectorAll("input.error:not("+t+"), div.select-box.error-border:not("+t+"), div.error:not("+t+")"),r=document.querySelectorAll("div.error:not("+t+")"),i=((o=(s=r[0])==null?void 0:s.attributes)==null?void 0:o.prefix)!==void 0?((u=(l=(a=r[0])==null?void 0:a.attributes)==null?void 0:l.prefix)==null?void 0:u.value)+" ":"";if(n.length>0){const d=n[0].parentNode;this.setFlash({status:"error",content:"Error when submitting form: "+i+((c=r[0])==null?void 0:c.innerText)});const h=d.querySelector("input");h!==null&&h.focus();const v=window.pageYOffset||document.documentElement.scrollTop,f=n[0].getBoundingClientRect().top+v,g=73+d.offsetHeight||114,_=f-g;window.scrollTo({top:_,behavior:"smooth"})}}),!1):!0}function P$(e){let t=this.$refs.input;t instanceof Array||(t=[t]);for(let n=0;n<t.length;n++)if(t[n].canSave===!1)return e.preventDefault(),window.scrollTo({top:t[n].$el.getBoundingClientRect().top+document.documentElement.scrollTop-150,behavior:"smooth"}),this.setFlash({status:"error",content:"Invalid syntax found - please carefully check each bracket."}),!1}function $$(){this.v$.$touch();const e=document.querySelectorAll("button.maybe-disable, input.maybe-disable")[0];e.disabled=!this.v$.$error}function L$(){return this._data.routingFound}function U0(e){return e.startsWith("https://")}function B$(e){if(!e)return!0;
30if(!U0(e))return!1;try{const t=new URL(e);return e===t.origin}catch(t){return!1}}function M$(e){return parseFloat(e)>0}function I$(e){return e===null||e===""?!0:/^[a-zA-Z-]+$/.test(e)}function F$(e){return/^\S*$/.test(e)}function N$(e){return e===null||e===""?!0:/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9]{2,}(?:[A-z0-9-]*[A-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-z0-9-]*[A-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/.test(e)}dt.util.warn;function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ud(Object(n),!0).forEach(function(r){q0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(e){return typeof e=="function"}function fl(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ho(e){return Ys(e.$validator)?Pi({},e):{$validator:e}}function Cp(e){return typeof e=="object"?e.$valid:e}function xp(e){return e.$validator||e}function H0(e,t){if(!fl(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!fl(t)&&!Ys(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const n=ho(t);return n.$params=Pi(Pi({},n.$params||{}),e),n}function G0(e,t){if(!Ys(e)&&typeof st(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!fl(t)&&!Ys(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const n=ho(t);return n.$message=e,n}function z0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=ho(e);return Pi(Pi({},n),{},{$async:!0,$watchTargets:t})}function V0(e){return{$validator(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return st(t).reduce((s,o,a)=>{const l=Object.entries(o).reduce((u,c)=>{let[d,h]=c;const v=e[d]||{},f=Object.entries(v).reduce((g,_)=>{let[S,E]=_;const C=xp(E).call(this,h,o,a,...r),P=Cp(C);if(g.$data[S]=C,g.$data.$invalid=!P||!!g.$data.$invalid,g.$data.$error=g.$data.$invalid,!P){let k=E.$message||"";const L=E.$params||{};typeof k=="function"&&(k=k({$pending:!1,$invalid:!P,$params:L,$model:h,$response:C})),g.$errors.push({$property:d,$message:k,$params:L,$response:C,$model:h,$pending:!1,$validator:S})}return{$valid:g.$valid&&P,$data:g.$data,$errors:g.$errors}},{$valid:!0,$data:{},$errors:[]});return u.$data[d]=f.$data,u.$errors[d]=f.$errors,{$valid:u.$valid&&f.$valid,$data:u.$data,$errors:u.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:s.$valid&&l.$valid,$data:s.$data.concat(l.$data),$errors:s.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:t=>{let{$response:n}=t;return n?n.$errors.map(r=>Object.values(r).map(i=>i.map(s=>s.$message)).reduce((i,s)=>i.concat(s),[])):[]}}}const hr=e=>{if(e=st(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length},hu=e=>(e=st(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function Ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=>(r=st(r),!hr(r)||t.every(i=>(i.lastIndex=0,i.test(r))))}var j$=Object.freeze({__proto__:null,forEach:V0,len:hu,normalizeValidatorObject:ho,regex:Ln,req:hr,unwrap:st,unwrapNormalizedValidator:xp,unwrapValidatorResponse:Cp,withAsync:z0,withMessage:G0,withParams:H0});Ln(/^[a-zA-Z]*$/);Ln(/^[a-zA-Z0-9]*$/);var W0=Ln(/^\d*(\.\d+)?$/),U$={$validator:W0,$message:"Value must be numeric",$params:{type:"numeric"}};function Y0(e,t){return n=>!hr(n)||(!/\s/.test(n)||n instanceof Date)&&+st(e)<=+n&&+st(t)>=+n}function q$(e,t){return{$validator:Y0(e,t),$message:n=>{let{$params:r}=n;return`The value must be between ${r.min} and ${r.max}`},$params:{min:e,max:t,type:"between"}}}const J0=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var K0=Ln(J0),Wr={$validator:K0,$message:"Value is not a valid email address",$params:{type:"email"}};function X0(e){return t=>!hr(t)||hu(t)<=st(e)}function H$(e){return{$validator:X0(e),$message:t=>{let{$params:n}=t;return`The maximum length allowed is ${n.max}`},$params:{max:e,type:"maxLength"}}}function Z0(e){return t=>!hr(t)||hu(t)>=st(e)}function fu(e){return{$validator:Z0(e),$message:t=>{let{$params:n}=t;return`This field should be at least ${n.min} characters long`},$params:{min:e,type:"minLength"}}}function Q0(e){return typeof e=="string"&&(e=e.trim()),hr(e)}var qt={$validator:Q0,$message:"Value is required",$params:{type:"required"}};const cd=(e,t)=>e?hr(typeof t=="string"?t.trim():t):!0;function tC(e){return function(t,n){if(typeof e!="function")return cd(st(e),t);const r=e.call(this,t,n);return cd(r,t)}}function dd(e){return{$validator:tC(e),$message:"The value is required",$params:{type:"requiredIf",prop:e}}}function eC(e){return t=>st(t)===st(e)}function pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:eC(e),$message:n=>`The value must be equal to the ${t} value`,$params:{equalTo:e,otherName:t,type:"sameAs"}}}
vendor: 9,825 bytes, line 30
30const nC=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;Ln(nC);Ln(/(^[0-9]*$)|(^-[0-9]+$)/);Ln(/^[-]?\d*(\.\d+)?$/);dt.util.warn;function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hd(Object(n),!0).forEach(function(r){rC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,r)=>(t.includes(r)||(n[r]=st(e[r])),n),{})}function Js(e){return typeof e=="function"}function iC(e){return mi(e)||Ni(e)}function Ap(e,t,n){let r=e;const i=t.split(".");for(let s=0;s<i.length;s++){if(!r[i[s]])return n;r=r[i[s]]}return r}function Wo(e,t,n){return Et(()=>e.some(r=>Ap(t,r,{[n]:!1})[n]))}function pd(e,t,n){return Et(()=>e.reduce((r,i)=>{const s=Ap(t,i,{[n]:!1})[n]||[];return r.concat(s)},[]))}function Sp(e,t,n,r){return e.call(r,st(t),st(n),r)}function Ep(e){return e.$valid!==void 0?!e.$valid:!e}function sC(e,t,n,r,i,s,o){let{$lazy:a,$rewardEarly:l}=i,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0;const v=Oe(!!r.value),f=Oe(0);n.value=!1;const g=Ei([t,r].concat(u,h),()=>{if(a&&!r.value||l&&!d.value&&!n.value)return;let _;try{_=Sp(e,t,c,o)}catch(S){_=Promise.reject(S)}f.value++,n.value=!!f.value,v.value=!1,Promise.resolve(_).then(S=>{f.value--,n.value=!!f.value,s.value=S,v.value=Ep(S)}).catch(S=>{f.value--,n.value=!!f.value,s.value=S,v.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:v,$unwatch:g}}function oC(e,t,n,r,i,s,o,a){let{$lazy:l,$rewardEarly:u}=r;const c=()=>({}),d=Et(()=>{if(l&&!n.value||u&&!a.value)return!1;let h=!0;try{const v=Sp(e,t,o,s);i.value=v,h=Ep(v)}catch(v){i.value=v}return h});return{$unwatch:c,$invalid:d}}function aC(e,t,n,r,i,s,o,a,l,u,c){const d=Oe(!1),h=e.$params||{},v=Oe(null);let f,g;e.$async?{$invalid:f,$unwatch:g}=sC(e.$validator,t,d,n,r,v,i,e.$watchTargets,l,u,c):{$invalid:f,$unwatch:g}=oC(e.$validator,t,n,r,v,i,l,u);const _=e.$message;return{$message:Js(_)?Et(()=>_(fd({$pending:d,$invalid:f,$params:fd(h),$model:t,$response:v,$validator:s,$propertyPath:a,$property:o}))):_||"",$params:h,$pending:d,$invalid:f,$response:v,$unwatch:g}}function lC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=st(e),n=Object.keys(t),r={},i={},s={};let o=null;return n.forEach(a=>{const l=t[a];switch(!0){case Js(l.$validator):r[a]=l;break;case Js(l):r[a]={$validator:l};break;case a==="$validationGroups":o=l;break;case a.startsWith("$"):s[a]=l;break;default:i[a]=l}}),{rules:r,nestedValidators:i,config:s,validationGroups:o}}const uC="__root";function cC(e,t,n,r,i,s,o,a,l){const u=Object.keys(e),c=r.get(i,e),d=Oe(!1),h=Oe(!1),v=Oe(0);if(c){if(!c.$partial)return c;c.$unwatch(),d.value=c.$dirty.value}const f={$dirty:d,$path:i,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return u.length?(u.forEach(g=>{f[g]=aC(e[g],t,f.$dirty,s,o,g,n,i,l,h,v)}),f.$externalResults=Et(()=>a.value?[].concat(a.value).map((g,_)=>({$propertyPath:i,$property:n,$validator:"$externalResults",$uid:`${i}-externalResult-${_}`,$message:g,$params:{},$response:null,$pending:!1})):[]),f.$invalid=Et(()=>{const g=u.some(_=>st(f[_].$invalid));return h.value=g,!!f.$externalResults.value.length||g}),f.$pending=Et(()=>u.some(g=>st(f[g].$pending))),f.$error=Et(()=>f.$dirty.value?f.$pending.value||f.$invalid.value:!1),f.$silentErrors=Et(()=>u.filter(g=>st(f[g].$invalid)).map(g=>{const _=f[g];return Fl({$propertyPath:i,$property:n,$validator:g,$uid:`${i}-${g}`,$message:_.$message,$params:_.$params,$response:_.$response,$pending:_.$pending})}).concat(f.$externalResults.value)),f.$errors=Et(()=>f.$dirty.value?f.$silentErrors.value:[]),f.$unwatch=()=>u.forEach(g=>{f[g].$unwatch()}),f.$commit=()=>{h.value=!0,v.value=Date.now()},r.set(i,e,f),f):(c&&r.set(i,e,f),f)}function dC(e,t,n,r,i,s,o){const a=Object.keys(e);return a.length?a.reduce((l,u)=>(l[u]=pl({validations:e[u],state:t,key:u,parentKey:n,resultsCache:r,globalConfig:i,instance:s,externalResults:o}),l),{}):{}}function hC(e,t,n){const r=Et(()=>[t,n].filter(f=>f).reduce((f,g)=>f.concat(Object.values(st(g))),[])),i=Et({get(){return e.$dirty.value||(r.value.length?r.value.every(f=>f.$dirty):!1)},set(f){e.$dirty.value=f}}),s=Et(()=>{const f=st(e.$silentErrors)||[],g=r.value.filter(_=>(st(_).$silentErrors||[]).length).reduce((_,S)=>_.concat(...S.$silentErrors),[]);return f.concat(g)}),o=Et(()=>{const f=st(e.$errors)||[],g=r.value.filter(_=>(st(_).$errors||[]).length).reduce((_,S)=>_.concat(...S.$errors),[]);return f.concat(g)}),a=Et(()=>r.value.some(f=>f.$invalid)||st(e.$invalid)||!1),l=Et(()=>r.value.some(f=>st(f.$pending))||st(e.$pending)||!1),u=Et(()=>r.value.some(f=>f.$dirty)||r.value.some(f=>f.$anyDirty)||i.value),c=Et(()=>i.value?l.value||a.value:!1),d=()=>{e.$touch(),r.value.forEach(f=>{f.$touch()})},h=()=>{e.$commit(),r.value.forEach(f=>{f.$commit()})},v=()=>{e.$reset(),r.value.forEach(f=>{f.$reset()})};return r.value.length&&r.value.every(f=>f.$dirty)&&d(),{$dirty:i,$errors:o,$invalid:a,$anyDirty:u,$error:c,$pending:l,$touch:d,$reset:v,$silentErrors:s,$commit:h}}function pl(e){let{validations:t,state:n,key:r,parentKey:i,childResults:s,resultsCache:o,globalConfig:a={},instance:l,externalResults:u}=e;const c=i?`${i}.${r}`:r,{rules:d,nestedValidators:h,config:v,validationGroups:f}=lC(t),g=_n(_n({},a),v),_=r?Et(()=>{const B=st(n);return B?st(B[r]):void 0}):n,S=_n({},st(u)||{}),E=Et(()=>{const B=st(u);return r?B?st(B[r]):void 0:B}),w=cC(d,_,r,o,c,g,l,E,n),C=dC(h,_,c,o,g,l,E),P={};f&&Object.entries(f).forEach(B=>{let[G,z]=B;P[G]={$invalid:Wo(z,C,"$invalid"),$error:Wo(z,C,"$error"),$pending:Wo(z,C,"$pending"),$errors:pd(z,C,"$errors"),$silentErrors:pd(z,C,"$silentErrors")}});const{$dirty:k,$errors:L,$invalid:j,$anyDirty:U,$error:q,$pending:O,$touch:x,$reset:m,$silentErrors:b,$commit:y}=hC(w,C,s),M=r?Et({get:()=>st(_),set:B=>{k.value=!0;const G=st(n),z=st(u);z&&(z[r]=S[r]),zt(G[r])?G[r].value=B:G[r]=B}}):null;r&&g.$autoDirty&&Ei(_,()=>{k.value||x();const B=st(u);B&&(B[r]=S[r])},{flush:"sync"});function R(){return Yt(this,null,function*(){return x(),g.$rewardEarly&&(y(),yield Di()),yield Di(),new Promise(B=>{if(!O.value)return B(!j.value);const G=Ei(O,()=>{B(!j.value),G()})})})}function F(B){return(s.value||{})[B]}function N(){zt(u)?u.value=S:Object.keys(S).length===0?Object.keys(u).forEach(B=>{delete u[B]}):Object.assign(u,S)}return Fl(_n(_n(_n({},w),{},{$model:M,$dirty:k,$error:q,$errors:L,$invalid:j,$anyDirty:U,$pending:O,$touch:x,$reset:m,$path:c||uC,$silentErrors:b,$validate:R,$commit:y},s&&{$getResultsForChild:F,$clearExternalResults:N,$validationGroups:P}),C))}class fC{constructor(){this.storage=new Map}set(t,n,r){this.storage.set(t,{rules:n,result:r})}checkRulesValidity(t,n,r){const i=Object.keys(r),s=Object.keys(n);return s.length!==i.length||!s.every(a=>i.includes(a))?!1:s.every(a=>n[a].$params?Object.keys(n[a].$params).every(l=>st(r[a].$params[l])===st(n[a].$params[l])):!0)}get(t,n){const r=this.storage.get(t);if(!r)return;const{rules:i,result:s}=r,o=this.checkRulesValidity(t,n,i),a=s.$unwatch?s.$unwatch:()=>({});return o?s:{$dirty:s.$dirty,$partial:!0,$unwatch:a}}}const Ds={COLLECT_ALL:!0,COLLECT_NONE:!1},md=Symbol("vuelidate#injectChildResults"),gd=Symbol("vuelidate#removeChildResults");function pC(e){let{$scope:t,instance:n}=e;const r={},i=Oe([]),s=Et(()=>i.value.reduce((c,d)=>(c[d]=st(r[d]),c),{}));function o(c,d){let{$registerAs:h,$scope:v,$stopPropagation:f}=d;f||t===Ds.COLLECT_NONE||v===Ds.COLLECT_NONE||t!==Ds.COLLECT_ALL&&t!==v||(r[h]=c,i.value.push(h))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],o);function a(c){i.value=i.value.filter(d=>d!==c),delete r[c]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],a);const l=lc(md,[]);ac(md,n.__vuelidateInjectInstances);const u=lc(gd,[]);return ac(gd,n.__vuelidateRemoveInstances),{childResults:s,sendValidationResultsToParent:l,removeValidationResultsFromParent:u}}function Tp(e){return new Proxy(e,{get(t,n){return typeof t[n]=="object"?Tp(t[n]):Et(()=>t[n])}})}let vd=0;function dn(e,t){var n;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(r=e,e=void 0,t=void 0);let{$registerAs:i,$scope:s=Ds.COLLECT_ALL,$stopPropagation:o,$externalResults:a,currentVueInstance:l}=r;const u=l||((n=Ev())===null||n===void 0?void 0:n.proxy),c=u?u.$options:{};i||(vd+=1,i=`_vuelidate_${vd}`);const d=Oe({}),h=new fC,{childResults:v,sendValidationResultsToParent:f,removeValidationResultsFromParent:g}=u?pC({$scope:s,instance:u}):{childResults:Oe({})};if(!e&&c.validations){const _=c.validations;t=Oe({}),hb(()=>{t.value=u,Ei(()=>Js(_)?_.call(t.value,new Tp(t.value)):_,S=>{d.value=pl({validations:S,state:t,childResults:v,resultsCache:h,globalConfig:r,instance:u,externalResults:a||u.vuelidateExter
30nalResults})},{immediate:!0})}),r=c.validationsConfig||r}else{const _=zt(e)||iC(e)?e:Fl(e||{});Ei(_,S=>{d.value=pl({validations:S,state:t,childResults:v,resultsCache:h,globalConfig:r,instance:u!=null?u:{},externalResults:a})},{immediate:!0})}return u&&(f.forEach(_=>_(d,{$registerAs:i,$scope:s,$stopPropagation:o})),fb(()=>g.forEach(_=>_(i)))),Et(()=>_n(_n({},st(d.value)),v.value))}const fr={data:function(){return{attempts:{}}},methods:at(J({},Ht(["setFlash"])),{retryEndpoint:function(e,t,n,r){return dt.set(this.attempts,r,0),new Promise((i,s)=>{this.retryCall(e,t,n,r,5e3,i,s)})},retryCall:function(e,t,n,r,i,s,o){this.axios({method:e,url:t,data:n}).then(a=>{a.data.status==="error"?o(a):a.data.status==="success"||a.data.status===200||a.status===200?s(a):o(a)}).catch(a=>{this.attempts[r]++<3?setTimeout(()=>{this.retryCall(e,t,n,r,i+5e3,s,o)},i):o(a)})},callEndpoint:function(e,t,n,r=!1){const i={method:e,url:t};if(n)if(e==="GET"){const s=new window.URLSearchParams;for(const o in n)s.append(o,n[o]);i.params=s}else i.data=n;return new Promise((s,o)=>{this.axios(i).then(a=>a.status!==200?(this.setFlash({status:"error",content:"A server error has occurred. Please try again."}),o(a)):r?s(a):(a.data.content!=null&&this.setFlash({status:a.data.status,content:a.data.content}),a.data.status==="error"?o(a):s(a))).catch(a=>(this.setFlash({status:"error",content:"A server error has occurred. Please try again."}),o(a)))})}})},Yr={methods:{toggleModal:function(e){this[e]=!this[e],this.setBodyOverflow(e)},setBodyOverflow:function(e){const t=this[e]?{overflow:"hidden"}:{overflow:"auto"};Object.assign(document.getElementsByTagName("body")[0].style,t)}}};var mC="2.1.4";const Xn="[data-trix-attachment]",mu={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},te={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,htmlAttributes:["language"],text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(e){return bd(e.parentNode)===te[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(e){return bd(e.parentNode)===te[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},bd=e=>{var t;return e==null||(t=e.tagName)===null||t===void 0?void 0:t.toLowerCase()},_d=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),Yo=_d&&parseInt(_d[1]);var qi={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:Yo&&Yo>12,samsungAndroid:Yo&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:typeof InputEvent!="undefined"&&["data","getTargetRanges","inputType"].every((e=>e in InputEvent.prototype))},nt={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption…",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL…",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"};const gC=[nt.bytes,nt.KB,nt.MB,nt.GB,nt.TB,nt.PB];var Dp={prefix:"IEC",precision:2,formatter(e){switch(e){case 0:return"0 ".concat(nt.bytes);case 1:return"1 ".concat(nt.byte);default:let t;this.prefix==="SI"?t=1e3:this.prefix==="IEC"&&(t=1024);const n=Math.floor(Math.log(e)/Math.log(t)),r=(e/Math.pow(t,n)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(r," ").concat(gC[n])}}};const fo="\uFEFF",Cn=" ",kp=function(e){for(const t in e){const n=e[t];this[t]=n}return this},gu=document.documentElement,vC=gu.matches,Ot=function(e){let{onElement:t,matchingSelector:n,withCallback:r,inPhase:i,preventDefault:s,times:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};
30const a=t||gu,l=n,u=i==="capturing",c=function(d){o!=null&&--o==0&&c.destroy();const h=On(d.target,{matchingSelector:l});h!=null&&(r==null||r.call(h,d,h),s&&d.preventDefault())};return c.destroy=()=>a.removeEventListener(e,c,u),a.addEventListener(e,c,u),c},vi=function(e){let{onElement:t,bubbles:n,cancelable:r,attributes:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=t!=null?t:gu;n=n!==!1,r=r!==!1;const o=document.createEvent("Events");return o.initEvent(e,n,r),i!=null&&kp.call(o,i),s.dispatchEvent(o)},Op=function(e,t){if((e==null?void 0:e.nodeType)===1)return vC.call(e,t)},On=function(e){let{matchingSelector:t,untilNode:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.parentNode;if(e!=null){if(t==null)return e;if(e.closest&&n==null)return e.closest(t);for(;e&&e!==n;){if(Op(e,t))return e;e=e.parentNode}}},vu=e=>document.activeElement!==e&&zn(e,document.activeElement),zn=function(e,t){if(e&&t)for(;t;){if(t===e)return!0;t=t.parentNode}},Jo=function(e){var t;if((t=e)===null||t===void 0||!t.parentNode)return;let n=0;for(e=e.previousSibling;e;)n++,e=e.previousSibling;return n},Rn=e=>{var t;return e==null||(t=e.parentNode)===null||t===void 0?void 0:t.removeChild(e)},Ks=function(e){let{onlyNodesOfType:t,usingFilter:n,expandEntityReferences:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(()=>{switch(t){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(e,i,n!=null?n:null,r===!0)},Qt=e=>{var t;return e==null||(t=e.tagName)===null||t===void 0?void 0:t.toLowerCase()},ut=function(e){let t,n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="object"?(r=e,e=r.tagName):r={attributes:r};const i=document.createElement(e);if(r.editable!=null&&(r.attributes==null&&(r.attributes={}),r.attributes.contenteditable=r.editable),r.attributes)for(t in r.attributes)n=r.attributes[t],i.setAttribute(t,n);if(r.style)for(t in r.style)n=r.style[t],i.style[t]=n;if(r.data)for(t in r.data)n=r.data[t],i.dataset[t]=n;return r.className&&r.className.split(" ").forEach((s=>{i.classList.add(s)})),r.textContent&&(i.textContent=r.textContent),r.childNodes&&[].concat(r.childNodes).forEach((s=>{i.appendChild(s)})),i};let ai;const bi=function(){if(ai!=null)return ai;ai=[];for(const e in te){const t=te[e];t.tagName&&ai.push(t.tagName)}return ai},Ko=e=>Pr(e==null?void 0:e.firstChild),yd=function(e){let{strict:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{strict:!0};return t?Pr(e):Pr(e)||!Pr(e.firstChild)&&(function(n){return bi().includes(Qt(n))&&!bi().includes(Qt(n.firstChild))})(e)},Pr=e=>bC(e)&&(e==null?void 0:e.data)==="block",bC=e=>(e==null?void 0:e.nodeType)===Node.COMMENT_NODE,$r=function(e){let{name:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e)return _i(e)?e.data===fo?!t||e.parentNode.dataset.trixCursorTarget===t:void 0:$r(e.firstChild)},Zn=e=>Op(e,Xn),Rp=e=>_i(e)&&(e==null?void 0:e.data)==="",_i=e=>(e==null?void 0:e.nodeType)===Node.TEXT_NODE,bu={level2Enabled:!0,getLevel(){return this.level2Enabled&&qi.supportsInputEvents?2:0},pickFiles(e){const t=ut("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});t.addEventListener("change",(()=>{e(t.files),Rn(t)})),Rn(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()}};var ks={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:`
31`},sr={bold:{tagName:"strong",inheritable:!0,parser(e){const t=window.getComputedStyle(e);return t.fontWeight==="bold"||t.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:e=>window.getComputedStyle(e).fontStyle==="italic"},href:{groupTagName:"a",parser(e){const t="a:not(".concat(Xn,")"),n=e.closest(t);if(n)return n.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},Pp={getDefaultHTML:()=>`<div class="trix-button-row">
32      <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">
33        <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="`.concat(nt.bold,'" tabindex="-1">').concat(nt.bold,`</button>
34        <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="`).concat(nt.italic,'" tabindex="-1">').concat(nt.italic,`</button>
35        <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="`).concat(nt.strike,'" tabindex="-1">').concat(nt.strike,`</button>
36        <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="`).concat(nt.link,'" tabindex="-1">').concat(nt.link,`</button>
37      </span>
38
39      <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">
40        <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="`).concat(nt.heading1,'" tabindex="-1">').concat(nt.heading1,`</button>
41        <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="`).concat(nt.quote,'" tabindex="-1">').concat(nt.quote,`</button>
42        <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="`).concat(nt.code,'" tabindex="-1">').concat(nt.code,`</button>
43        <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="`).concat(nt.bullets,'" tabindex="-1">').concat(nt.bullets,`</button>
44        <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="`).concat(nt.numbers,'" tabindex="-1">').concat(nt.numbers,`</button>
45        <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="`).concat(nt.outdent,'" tabindex="-1">').concat(nt.outdent,`</button>
46        <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="`).concat(nt.indent,'" tabindex="-1">').concat(nt.indent,`</button>
47      </span>
48
49      <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">
50        <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="`).concat(nt.attachFiles,'" tabindex="-1">').concat(nt.attachFiles,`</button>
51      </span>
52
53      <span class="trix-button-group-spacer"></span>
54
55      <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">
56        <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="`).concat(nt.undo,'" tabindex="-1">').concat(nt.undo,`</button>
57        <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="`).concat(nt.redo,'" tabindex="-1">').concat(nt.redo,`</button>
58      </span>
59    </div>
60
61    <div class="trix-dialogs" data-trix-dialogs>
62      <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">
63        <div class="trix-dialog__link-fields">
64          <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="`).concat(nt.urlPlaceholder,'" aria-label="').concat(nt.url,`" required data-trix-input>
65          <div class="trix-button-group">
66            <input type="button" class="trix-button trix-button--dialog" value="`).concat(nt.link,`" data-trix-method="setAttribute">
67            <input type="button" class="trix-button trix-button--dialog" value="`).concat(nt.unlink,`" data-trix-method="removeAttribute">
68          </div>
69        </div>
70      </div>
71    </div>`)};const ml={interval:5e3};var Hi=Object.freeze({__proto__:null,attachments:mu,blockAttributes:te,browser:qi,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},fileSize:Dp,input:bu,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:nt,parser:ks,textAttributes:sr,toolbar:Pp,undo:ml});class Ft{static proxyMethod(t){const{name:n,toMethod:r,toProperty:i,optional:s}=_C(t);this.prototype[n]=function(){let o,a;var l,u;return r?a=s?(l=this[r])===null||l===void 0?void 0:l.call(this):this[r]():i&&(a=this[i]),s?(o=(u=a)===null||u===void 0?void 0:u[n],o?wd.call(o,a,arguments):void 0):(o=a[n],wd.call(o,a,arguments))}}}const _C=function(e){const t=e.match(yC);if(!t)throw new Error("can't parse @proxyMethod expression: ".concat(e));const n={name:t[4]};return t[2]!=null?n.toMethod=t[1]:n.toProperty=t[1],t[3]!=null&&(n.optional=!0),n},{apply:wd}=Function.prototype,yC=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$");var Xo,Zo,Qo;class $i extends Ft{static box(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(t==null?void 0:t.toString())}static fromUCS2String(t){return new this(t,gl(t))}static fromCodepoints(t){return new this(vl(t),t)}
71constructor(t,n){super(...arguments),this.ucs2String=t,this.codepoints=n,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}offsetToUCS2Offset(t){return vl(this.codepoints.slice(0,Math.max(0,t))).length}offsetFromUCS2Offset(t){return gl(this.ucs2String.slice(0,Math.max(0,t))).length}slice(){return this.constructor.fromCodepoints(this.codepoints.slice(...arguments))}charAt(t){return this.slice(t,t+1)}isEqualTo(t){return this.constructor.box(t).ucs2String===this.ucs2String}toJSON(){return this.ucs2String}getCacheKey(){return this.ucs2String}toString(){return this.ucs2String}}const wC=((Xo=Array.from)===null||Xo===void 0?void 0:Xo.call(Array,"👼").length)===1,CC=((Zo=" ".codePointAt)===null||Zo===void 0?void 0:Zo.call(" ",0))!=null,xC=((Qo=String.fromCodePoint)===null||Qo===void 0?void 0:Qo.call(String,32,128124))===" 👼";let gl,vl;gl=wC&&CC?e=>Array.from(e).map((t=>t.codePointAt(0))):function(e){const t=[];let n=0;const{length:r}=e;for(;n<r;){let i=e.charCodeAt(n++);if(55296<=i&&i<=56319&&n<r){const s=e.charCodeAt(n++);(64512&s)==56320?i=((1023&i)<<10)+(1023&s)+65536:n--}t.push(i)}return t},vl=xC?e=>String.fromCodePoint(...Array.from(e||[])):function(e){return(()=>{const t=[];return Array.from(e).forEach((n=>{let r="";n>65535&&(n-=65536,r+=String.fromCharCode(n>>>10&1023|55296),n=56320|1023&n),t.push(r+String.fromCharCode(n))})),t})().join("")};let AC=0;class pr extends Ft{static fromJSONString(t){return this.fromJSON(JSON.parse(t))}constructor(){super(...arguments),this.id=++AC}hasSameConstructorAs(t){return this.constructor===(t==null?void 0:t.constructor)}isEqualTo(t){return this===t}inspect(){const t=[],n=this.contentsForInspection()||{};for(const r in n){const i=n[r];t.push("".concat(r,"=").concat(i))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(t.length?" ".concat(t.join(", ")):"",">")}contentsForInspection(){}toJSONString(){return JSON.stringify(this)}toUTF16String(){return $i.box(this)}getCacheKey(){return this.id.toString()}}const or=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},_u=function(e){const t=e.slice(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 t.splice(...r),t},SC=/[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/,EC=(function(){const e=ut("input",{dir:"auto",name:"x",dirName:"x.dir"}),t=ut("textarea",{dir:"auto",name:"y",dirName:"y.dir"}),n=ut("form");n.appendChild(e),n.appendChild(t);const r=(function(){try{return new FormData(n).has(t.dirName)}catch(s){return!1}})(),i=(function(){try{return e.matches(":dir(ltr),:dir(rtl)")}catch(s){return!1}})();return r?function(s){return t.value=s,new FormData(n).get(t.dirName)}:i?function(s){return e.value=s,e.matches(":dir(rtl)")?"rtl":"ltr"}:function(s){const o=s.trim().charAt(0);return SC.test(o)?"rtl":"ltr"}})();let ta=null,ea=null,na=null,hs=null;const bl=()=>(ta||(ta=DC().concat(TC())),ta),Mt=e=>te[e],TC=()=>(ea||(ea=Object.keys(te)),ea),_l=e=>sr[e],DC=()=>(na||(na=Object.keys(sr)),na),$p=function(e,t){kC(e).textContent=t.replace(/%t/g,e)},kC=function(e){const t=document.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("data-tag-name",e.toLowerCase());const n=OC();return n&&t.setAttribute("nonce",n),document.head.insertBefore(t,document.head.firstChild),t},OC=function(){const e=Cd("trix-csp-nonce")||Cd("csp-nonce");if(e)return e.getAttribute("content")},Cd=e=>document.head.querySelector("meta[name=".concat(e,"]")),xd={"application/x-trix-feature-detection":"test"},Lp=function(e){const t=e.getData("text/plain"),n=e.getData("text/html");if(!t||!n)return t==null?void 0:t.length;{const{body:r}=new DOMParser().parseFromString(n,"text/html");if(r.textContent===t)return!r.querySelector("*")}},Bp=/Mac|^iP/.test(navigator.platform)?e=>e.metaKey:e=>e.ctrlKey,yu=e=>setTimeout(e,1),Mp=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={};for(const n in e){const r=e[n];t[n]=r}return t},Jr=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0},pt=function(e){if(e!=null)return Array.isArray(e)||(e=[e,e]),[Ad(e[0]),Ad(e[1]!=null?e[1]:e[0])]},on=function(e){if(e==null)return;const[t,n]=pt(e);return yl(t,n)},Xs=function(e,t){if(e==null||t==null)return;const[n,r]=pt(e),[i,s]=pt(t);return yl(n,i)&&yl(r,s)},Ad=function(e){return typeof e=="number"?e:Mp(e)},yl=function(e,t){return typeof e=="number"?e===t:Jr(e,t)};class Ip extends Ft{constructor(){super(...arguments),this.update=this.update.bind(this),this.selectionManagers=[]}start(){this.started||(this.started=!0,document.addEventListener("selectionchange",this.update,!0))}stop(){if(this.started)return this.started=!1,document.removeEventListener("selectionchange",this.update,!0)}registerSelectionManager(t){if(!this.selectionManagers.includes(t))return this.selectionManagers.push(t),this.start()}unregisterSelectionManager(t){if(this.selectionManagers=this.selectionManagers.filter((n=>n!==t)),this.selectionManagers.length===0)return this.stop()}notifySelectionManagersOfSelectionChange(){return this.selectionManagers.map((t=>t.selectionDidChange()))}update(){this.notifySelectionManagersOfSelectionChange()}reset(){this.update()}}const ar=new Ip,Fp=function(){const e=window.getSelection();if(e.rangeCount>0)return e},yi=function(){var e;const t=(e=Fp())===null||e===void 0?void 0:e.getRangeAt(0);if(t&&!RC(t))return t},Np=function(e){const t=window.getSelection();
vendor: 20,273 bytes, lines 71-72
71return t.removeAllRanges(),t.addRange(e),ar.update()},RC=e=>Sd(e.startContainer)||Sd(e.endContainer),Sd=e=>!Object.getPrototypeOf(e),fi=e=>e.replace(new RegExp("".concat(fo),"g"),"").replace(new RegExp("".concat(Cn),"g")," "),wu=new RegExp("[^\\S".concat(Cn,"]")),Cu=e=>e.replace(new RegExp("".concat(wu.source),"g")," ").replace(/\ {2,}/g," "),Ed=function(e,t){if(e.isEqualTo(t))return["",""];const n=ra(e,t),{length:r}=n.utf16String;let i;if(r){const{offset:s}=n,o=e.codepoints.slice(0,s).concat(e.codepoints.slice(s+r));i=ra(t,$i.fromCodepoints(o))}else i=ra(t,e);return[n.utf16String.toString(),i.utf16String.toString()]},ra=function(e,t){let n=0,r=e.length,i=t.length;for(;n<r&&e.charAt(n).isEqualTo(t.charAt(n));)n++;for(;r>n+1&&e.charAt(r-1).isEqualTo(t.charAt(i-1));)r--,i--;return{utf16String:e.slice(n,r),offset:n}};class de extends pr{static fromCommonAttributesOfObjects(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(!t.length)return new this;let n=li(t[0]),r=n.getKeys();return t.slice(1).forEach((i=>{r=n.getKeysCommonToHash(li(i)),n=n.slice(r)})),n}static box(t){return li(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(...arguments),this.values=Os(t)}add(t,n){return this.merge(PC(t,n))}remove(t){return new de(Os(this.values,t))}get(t){return this.values[t]}has(t){return t in this.values}merge(t){return new de($C(this.values,LC(t)))}slice(t){const n={};return Array.from(t).forEach((r=>{this.has(r)&&(n[r]=this.values[r])})),new de(n)}getKeys(){return Object.keys(this.values)}getKeysCommonToHash(t){return t=li(t),this.getKeys().filter((n=>this.values[n]===t.values[n]))}isEqualTo(t){return or(this.toArray(),li(t).toArray())}isEmpty(){return this.getKeys().length===0}toArray(){if(!this.array){const t=[];for(const n in this.values){const r=this.values[n];t.push(t.push(n,r))}this.array=t.slice(0)}return this.array}toObject(){return Os(this.values)}toJSON(){return this.toObject()}contentsForInspection(){return{values:JSON.stringify(this.values)}}}const PC=function(e,t){const n={};return n[e]=t,n},$C=function(e,t){const n=Os(e);for(const r in t){const i=t[r];n[r]=i}return n},Os=function(e,t){const n={};return Object.keys(e).sort().forEach((r=>{r!==t&&(n[r]=e[r])})),n},li=function(e){return e instanceof de?e:new de(e)},LC=function(e){return e instanceof de?e.values:e};class xu{static groupObjects(){let t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{depth:r,asTree:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i&&r==null&&(r=0);const s=[];return Array.from(n).forEach((o=>{var a;if(t){var l,u,c;if((l=o.canBeGrouped)!==null&&l!==void 0&&l.call(o,r)&&(u=(c=t[t.length-1]).canBeGroupedWith)!==null&&u!==void 0&&u.call(c,o,r))return void t.push(o);s.push(new this(t,{depth:r,asTree:i})),t=null}(a=o.canBeGrouped)!==null&&a!==void 0&&a.call(o,r)?t=[o]:s.push(o)})),t&&s.push(new this(t,{depth:r,asTree:i})),s}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{depth:n,asTree:r}=arguments.length>1?arguments[1]:void 0;this.objects=t,r&&(this.depth=n,this.objects=this.constructor.groupObjects(this.objects,{asTree:r,depth:this.depth+1}))}getObjects(){return this.objects}getDepth(){return this.depth}getCacheKey(){const t=["objectGroup"];return Array.from(this.getObjects()).forEach((n=>{t.push(n.getCacheKey())})),t.join("/")}}class BC extends Ft{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.objects={},Array.from(t).forEach((n=>{const r=JSON.stringify(n);this.objects[r]==null&&(this.objects[r]=n)}))}find(t){const n=JSON.stringify(t);return this.objects[n]}}class MC{constructor(t){this.reset(t)}add(t){const n=Td(t);this.elements[n]=t}remove(t){const n=Td(t),r=this.elements[n];if(r)return delete this.elements[n],r}reset(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return this.elements={},Array.from(t).forEach((n=>{this.add(n)})),t}}const Td=e=>e.dataset.trixStoreKey;class Zs extends Ft{isPerforming(){return this.performing===!0}hasPerformed(){return this.performed===!0}hasSucceeded(){return this.performed&&this.succeeded}hasFailed(){return this.performed&&!this.succeeded}getPromise(){return this.promise||(this.promise=new Promise(((t,n)=>(this.performing=!0,this.perform(((r,i)=>{this.succeeded=r,this.performing=!1,this.performed=!0,this.succeeded?t(i):n(i)})))))),this.promise}perform(t){return t(!1)}release(){var t,n;(t=this.promise)===null||t===void 0||(n=t.cancel)===null||n===void 0||n.call(t),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}}Zs.proxyMethod("getPromise().then"),Zs.proxyMethod("getPromise().catch");class mr extends Ft{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.object=t,this.options=n,this.childViews=[],this.rootView=this}getNodes(){return this.nodes||(this.nodes=this.createNodes()),this.nodes.map((t=>t.cloneNode(!0)))}invalidate(){var t;return this.nodes=null,this.childViews=[],(t=this.parentView)===null||t===void 0?void 0:t.invalidate()}invalidateViewForObject(t){var n;return(n=this.findViewForObject(t))===null||n===void 0?void 0:n.invalidate()}findOrCreateCachedChildView(t,n,r){let i=this.getCachedViewForObject(n);return i?this.recordChildView(i):(i=this.createChildView(...arguments),this.cacheViewForObject(i,n)),i}createChildView(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n instanceof xu&&(r.viewClass=t,t=IC);const i=new t(n,r);return this.recordChildView(i)}recordChildView(t){return t.parentView=this,t.rootView=this.rootView,this.childViews.push(t),t}getAllChildViews(){let t=[];return this.childViews.forEach((n=>{t.push(n),t=t.concat(n.getAllChildViews())})),t}findElement(){return this.findElementForObject(this.object)}findElementForObject(t){const n=t==null?void 0:t.id;if(n)return this.rootView.element.querySelector("[data-trix-id='".concat(n,"']"))}findViewForObject(t){for(const n of this.getAllChildViews())if(n.object===t)return n}getViewCache(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?(this.viewCache||(this.viewCache={}),this.viewCache):void 0}isViewCachingEnabled(){return this.shouldCacheViews!==!1}enableViewCaching(){this.shouldCacheViews=!0}disableViewCaching(){this.shouldCacheViews=!1}getCachedViewForObject(t){var n;return(n=this.getViewCache())===null||n===void 0?void 0:n[t.getCacheKey()]}cacheViewForObject(t,n){const r=this.getViewCache();r&&(r[n.getCacheKey()]=t)}garbageCollectCachedViews(){const t=this.getViewCache();if(t){const n=this.getAllChildViews().concat(this).map((r=>r.object.getCacheKey()));for(const r in t)n.includes(r)||delete t[r]}}}class IC extends mr{constructor(){super(...arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}getChildViews(){return this.childViews.length||Array.from(this.objectGroup.getObjects()).forEach((t=>{this.findOrCreateCachedChildView(this.viewClass,t,this.options)})),this.childViews}createNodes(){const t=this.createContainerElement();return this.getChildViews().forEach((n=>{Array.from(n.getNodes()).forEach((r=>{t.appendChild(r)}))})),[t]}createContainerElement(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(t)}}const FC="style href src width height language class".split(" "),NC="javascript:".split(" "),jC="script iframe form noscript".split(" ");class po extends Ft{static setHTML(t,n){const r=new this(n).sanitize(),i=r.getHTML?r.getHTML():r.outerHTML;t.innerHTML=i}static sanitize(t,n){const r=new this(t,n);return r.sanitize(),r}constructor(t){let{allowedAttributes:n,forbiddenProtocols:r,forbiddenElements:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.allowedAttributes=n||FC,this.forbiddenProtocols=r||NC,this.forbiddenElements=i||jC,this.body=UC(t)}sanitize(){return this.sanitizeElements(),this.normalizeListElementNesting()}getHTML(){return this.body.innerHTML}getBody(){return this.body}sanitizeElements(){const t=Ks(this.body),n=[];for(;t.nextNode();){const r=t.currentNode;switch(r.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(r)?n.push(r):this.sanitizeElement(r);break;case Node.COMMENT_NODE:n.push(r)}}return n.forEach((r=>Rn(r))),this.body}sanitizeElement(t){return t.hasAttribute("href")&&this.forbiddenProtocols.includes(t.protocol)&&t.removeAttribute("href"),Array.from(t.attributes).forEach((n=>{let{name:r}=n;this.allowedAttributes.includes(r)||r.indexOf("data-trix")===0||t.removeAttribute(r)})),t}normalizeListElementNesting(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((t=>{const n=t.previousElementSibling;n&&Qt(n)==="li"&&n.appendChild(t)})),this.body}elementIsRemovable(t){if((t==null?void 0:t.nodeType)===Node.ELEMENT_NODE)return this.elementIsForbidden(t)||this.elementIsntSerializable(t)}elementIsForbidden(t){return this.forbiddenElements.includes(Qt(t))}elementIsntSerializable(t){return t.getAttribute("data-trix-serialize")==="false"&&!Zn(t)}}const UC=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";e=e.replace(/<\/html[^>]*>[^]*$/i,"</html>");const t=document.implementation.createHTMLDocument("");return t.documentElement.innerHTML=e,Array.from(t.head.querySelectorAll("style")).forEach((n=>{t.body.appendChild(n)})),t.body},{css:mn}=Hi;class Au extends mr{constructor(){super(...arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}createContentNodes(){return[]}createNodes(){let t;const n=t=ut({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),r=this.getHref();return r&&(t=ut({tagName:"a",editable:!1,attributes:{href:r,tabindex:-1}}),n.appendChild(t)),this.attachment.hasContent()?po.setHTML(t,this.attachment.getContent()):this.createContentNodes().forEach((i=>{t.appendChild(i)})),t.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=ut({tagName:"progress",attributes:{class:mn.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),n.appendChild(this.progressElement)),[Dd("left"),n,Dd("right")]}createCaptionElement(){const t=ut({tagName:"figcaption",className:mn.attachmentCaption}),n=this.attachmentPiece.getCaption();if(n)t.classList.add("".concat(mn.attachmentCaption,"--edited")),t.textContent=n;else{let r,i;const s=this.getCaptionConfig();if(s.name&&(r=this.attachment.getFilename()),s.size&&(i=this.attachment.getFormattedFilesize()),r){const o=ut({tagName:"span",className:mn.attachmentName,textContent:r});t.appendChild(o)}if(i){r&&t.appendChild(document.createTextNode(" "));const o=ut({tagName:"span",className:mn.attachmentSize,textContent:i});t.appendChild(o)}}return t}getClassName(){const t=[mn.attachment,"".concat(mn.attachment,"--").concat(this.attachment.getType())],n=this.attachment.getExtension();return n&&t.push("".concat(mn.attachment,"--").concat(n)),t.join(" ")}getData(){const t={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},{attributes:n}=this.attachmentPiece;return n.isEmpty()||(t.trixAttributes=JSON.stringify(n)),this.attachment.isPending()&&(t.trixSerialize=!1),t}getHref(){if(!qC(this.attachment.getContent(),"a"))return this.attachment.getHref()}getCaptionConfig(){var t;const n=this.attachment.getType(),r=Mp((t=mu[n])===null||t===void 0?void 0:t.caption);return n==="file"&&(r.name=!0),r}findProgressElement(){var t;return(t=this.findElement())===null||t===void 0?void 0:t.querySelector("progress")}attachmentDidChangeUploadProgress(){const t=this.attachment.getUploadProgress(),n=this.findProgressElement();n&&(n.value=t)}}const Dd=e=>ut({tagName:"span",textContent:fo,data:{trixCursorTarget:e,trixSerialize:!1}}),qC=function(e,t){const n=ut("div");return po.setHTML(n,e||""),n.querySelector(t)};class jp extends Au{constructor(){super(...arguments),this.attachment.previewDelegate=this}createContentNodes(){return this.image=ut({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]}createCaptionElement(){const t=super.createCaptionElement(...arguments);return t.textContent||t.setAttribute("data-trix-placeholder",nt.captionPlaceholder),t}refresh(t){var n;if(t||(t=(n=this.findElement())===null||n===void 0?void 0:n.querySelector("img")),t)return this.updateAttributesForImage(t)}updateAttributesForImage(t){const n=this.attachment.getURL(),r=this.attachment.getPreviewURL();if(t.src=r||n,r===n)t.removeAttribute("data-trix-serialized-attributes");else{const a=JSON.stringify({src:n});t.setAttribute("data-trix-serialized-attributes",a)}const i=this.attachment.getWidth(),s=this.attachment.getHeight();i!=null&&(t.width=i),s!=null&&(t.height=s);const o=["imageElement",this.attachment.id,t.src,t.width,t.height].join("/");t.dataset.trixStoreKey=o}attachmentDidChangeAttributes(){return this.refresh(this.image),this.refresh()}}class Up extends mr{constructor(){super(...arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),this.textConfig=this.options.textConfig,this.context=this.options.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}createNodes(){let t=this.attachment?this.createAttachmentNodes():this.createStringNodes();const n=this.createElement();if(n){const r=(function(i){for(;(s=i)!==null&&s!==void 0&&s.firstElementChild;){var s;i=i.firstElementChild}return i})(n);Array.from(t).forEach((i=>{r.appendChild(i)})),t=[n]}return t}createAttachmentNodes(){const t=this.attachment.isPreviewable()?jp:Au;return this.createChildView(t,this.piece.attachment,{piece:this.piece}).getNodes()}createStringNodes(){var t;if((t=this.textConfig)!==null&&t!==void 0&&t.plaintext)return[document.createTextNode(this.string)];{const n=[],r=this.string.split(`
72`);for(let i=0;i<r.length;i++){const s=r[i];if(i>0){const o=ut("br");n.push(o)}if(s.length){const o=document.createTextNode(this.preserveSpaces(s));n.push(o)}}return n}}createElement(){let t,n,r;const i={};for(n in this.attributes){r=this.attributes[n];const o=_l(n);if(o){if(o.tagName){var s;const a=ut(o.tagName);s?(s.appendChild(a),s=a):t=s=a}if(o.styleProperty&&(i[o.styleProperty]=r),o.style)for(n in o.style)r=o.style[n],i[n]=r}}if(Object.keys(i).length)for(n in t||(t=ut("span")),i)r=i[n],t.style[n]=r;return t}createContainerElement(){for(const t in this.attributes){const n=this.attributes[t],r=_l(t);if(r&&r.groupTagName){const i={};return i[t]=n,ut(r.groupTagName,i)}}}preserveSpaces(t){return this.context.isLast&&(t=t.replace(/\ $/,Cn)),t=t.replace(/(\S)\ {3}(\S)/g,"$1 ".concat(Cn," $2")).replace(/\ {2}/g,"".concat(Cn," ")).replace(/\ {2}/g," ".concat(Cn)),(this.context.isFirst||this.context.followsWhitespace)&&(t=t.replace(/^\ /,Cn)),t}}class qp extends mr{constructor(){super(...arguments),this.text=this.object,this.textConfig=this.options.textConfig}createNodes(){const t=[],n=xu.groupObjects(this.getPieces()),r=n.length-1;for(let s=0;s<n.length;s++){const o=n[s],a={};s===0&&(a.isFirst=!0),s===r&&(a.isLast=!0),HC(i)&&(a.followsWhitespace=!0);const l=this.findOrCreateCachedChildView(Up,o,{textConfig:this.textConfig,context:a});t.push(...Array.from(l.getNodes()||[]));var i=o}return t}getPieces(){return Array.from(this.text.getPieces()).filter((t=>!t.hasAttribute("blockBreak")))}}const HC=e=>/\s$/.test(e==null?void 0:e.toString()),{css:kd}=Hi;class Hp extends mr{constructor(){super(...arguments),this.block=this.object,this.attributes=this.block.getAttributes()}createNodes(){const t=[document.createComment("block")];if(this.block.isEmpty())t.push(ut("br"));else{var n;const r=(n=Mt(this.block.getLastAttribute()))===null||n===void 0?void 0:n.text,i=this.findOrCreateCachedChildView(qp,this.block.text,{textConfig:r});t.push(...Array.from(i.getNodes()||[])),this.shouldAddExtraNewlineElement()&&t.push(ut("br"))}if(this.attributes.length)return t;{let r;const{tagName:i}=te.default;this.block.isRTL()&&(r={dir:"rtl"});const s=ut({tagName:i,attributes:r});return t.forEach((o=>s.appendChild(o))),[s]}}createContainerElement(t){const n={};let r;const i=this.attributes[t],{tagName:s,htmlAttributes:o=[]}=Mt(i);if(t===0&&this.block.isRTL()&&Object.assign(n,{dir:"rtl"}),i==="attachmentGallery"){const a=this.block.getBlockBreakPosition();r="".concat(kd.attachmentGallery," ").concat(kd.attachmentGallery,"--").concat(a)}return Object.entries(this.block.htmlAttributes).forEach((a=>{let[l,u]=a;o.includes(l)&&(n[l]=u)})),ut({tagName:s,className:r,attributes:n})}shouldAddExtraNewlineElement(){return/\n\n$/.test(this.block.toString())}}class mo extends mr{static render(t){const n=ut("div"),r=new this(t,{element:n});return r.render(),r.sync(),n}constructor(){super(...arguments),this.element=this.options.element,this.elementStore=new MC,this.setDocument(this.object)}setDocument(t){t.isEqualTo(this.document)||(this.document=this.object=t)}render(){if(this.childViews=[],this.shadowElement=ut("div"),!this.document.isEmpty()){const t=xu.groupObjects(this.document.getBlocks(),{asTree:!0});Array.from(t).forEach((n=>{const r=this.findOrCreateCachedChildView(Hp,n);Array.from(r.getNodes()).map((i=>this.shadowElement.appendChild(i)))}))}}isSynced(){return GC(this.shadowElement,this.element)}sync(){const t=this.createDocumentFragmentForSync();for(;this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(t),this.didSync()}didSync(){return this.elementStore.reset(Od(this.element)),yu((()=>this.garbageCollectCachedViews()))}createDocumentFragmentForSync(){const t=document.createDocumentFragment();return Array.from(this.shadowElement.childNodes).forEach((n=>{t.appendChild(n.cloneNode(!0))})),Array.from(Od(t)).forEach((n=>{const r=this.elementStore.remove(n);r&&n.parentNode.replaceChild(r,n)})),t}}const Od=e=>e.querySelectorAll("[data-trix-store-key]"),GC=(e,t)=>Rd(e.innerHTML)===Rd(t.innerHTML),Rd=e=>e.replace(/&nbsp;/g," ");function he(e,t,n){return(t=zC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zC(e){var t=(function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var s=i.call(n,r);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)})(e,"string");return typeof t=="symbol"?t:String(t)}class gr extends pr{static registerType(t,n){n.type=t,this.types[t]=n}static fromJSON(t){const n=this.types[t.type];if(n)return n.fromJSON(t)}constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.attributes=de.box(n)}copyWithAttributes(t){return new this.constructor(this.getValue(),t)}copyWithAdditionalAttributes(t){return this.copyWithAttributes(this.attributes.merge(t))}copyWithoutAttribute(t){return this.copyWithAttributes(this.attributes.remove(t))}copy(){return this.copyWithAttributes(this.attributes)}getAttribute(t){return this.attributes.get(t)}getAttributesHash(){return this.attributes}getAttributes(){return this.attributes.toObject()}hasAttribute(t){return this.attributes.has(t)}hasSameStringValueAsPiece(t){return t&&this.toString()===t.toString()}hasSameAttributesAsPiece(t){return t&&(this.attributes===t.attributes||this.attributes.isEqualTo(t.attributes))}isBlockBreak(){return!1}isEqualTo(t){return super.isEqualTo(...arguments)||this.hasSameConstructorAs(t)&&this.hasSameStringValueAsPiece(t)&&this.hasSameAttributesAsPiece(t)}isEmpty(){return this.length===0}isSerializable(){return!0}toJSON(){return{type:this.constructor.type,attributes:this.getAttributes()}}contentsForInspection(){return{type:this.constructor.type,attributes:this.attributes.inspect()}}canBeGrouped(){return this.hasAttribute("href")}canBeGroupedWith(t){return this.getAttribute("href")===t.getAttribute("href")}getLength(){return this.length}canBeConsolidatedWith(t){return!1}}he(gr,"types",{});class Gp extends Zs{constructor(t){super(...arguments),this.url=t}perform(t){const n=new Image;n.onload=()=>
72(n.width=this.width=n.naturalWidth,n.height=this.height=n.naturalHeight,t(!0,n)),n.onerror=()=>t(!1),n.src=this.url}}class Kr extends pr{static attachmentForFile(t){const n=new this(this.attributesForFile(t));return n.setFile(t),n}static attributesForFile(t){return new de({filename:t.name,filesize:t.size,contentType:t.type})}static fromJSON(t){return new this(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),this.releaseFile=this.releaseFile.bind(this),this.attributes=de.box(t),this.didChangeAttributes()}getAttribute(t){return this.attributes.get(t)}hasAttribute(t){return this.attributes.has(t)}getAttributes(){return this.attributes.toObject()}setAttributes(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=this.attributes.merge(t);var r,i,s,o;if(!this.attributes.isEqualTo(n))return this.attributes=n,this.didChangeAttributes(),(r=this.previewDelegate)===null||r===void 0||(i=r.attachmentDidChangeAttributes)===null||i===void 0||i.call(r,this),(s=this.delegate)===null||s===void 0||(o=s.attachmentDidChangeAttributes)===null||o===void 0?void 0:o.call(s,this)}didChangeAttributes(){if(this.isPreviewable())return this.preloadURL()}isPending(){return this.file!=null&&!(this.getURL()||this.getHref())}isPreviewable(){return this.attributes.has("previewable")?this.attributes.get("previewable"):Kr.previewablePattern.test(this.getContentType())}getType(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"}getURL(){return this.attributes.get("url")}getHref(){return this.attributes.get("href")}getFilename(){return this.attributes.get("filename")||""}getFilesize(){return this.attributes.get("filesize")}getFormattedFilesize(){const t=this.attributes.get("filesize");return typeof t=="number"?Dp.formatter(t):""}getExtension(){var t;return(t=this.getFilename().match(/\.(\w+)$/))===null||t===void 0?void 0:t[1].toLowerCase()}getContentType(){return this.attributes.get("contentType")}hasContent(){return this.attributes.has("content")}getContent(){return this.attributes.get("content")}getWidth(){return this.attributes.get("width")}getHeight(){return this.attributes.get("height")}getFile(){return this.file}setFile(t){if(this.file=t,this.isPreviewable())return this.preloadFile()}releaseFile(){this.releasePreloadedFile(),this.file=null}getUploadProgress(){return this.uploadProgress!=null?this.uploadProgress:0}setUploadProgress(t){var n,r;if(this.uploadProgress!==t)return this.uploadProgress=t,(n=this.uploadProgressDelegate)===null||n===void 0||(r=n.attachmentDidChangeUploadProgress)===null||r===void 0?void 0:r.call(n,this)}toJSON(){return this.getAttributes()}getCacheKey(){return[super.getCacheKey(...arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")}getPreviewURL(){return this.previewURL||this.preloadingURL}setPreviewURL(t){var n,r,i,s;if(t!==this.getPreviewURL())return this.previewURL=t,(n=this.previewDelegate)===null||n===void 0||(r=n.attachmentDidChangeAttributes)===null||r===void 0||r.call(n,this),(i=this.delegate)===null||i===void 0||(s=i.attachmentDidChangePreviewURL)===null||s===void 0?void 0:s.call(i,this)}preloadURL(){return this.preload(this.getURL(),this.releaseFile)}preloadFile(){if(this.file)return this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)}releasePreloadedFile(){this.fileObjectURL&&(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null)}preload(t,n){if(t&&t!==this.getPreviewURL())return this.preloadingURL=t,new Gp(t).then((r=>{let{width:i,height:s}=r;return this.getWidth()&&this.getHeight()||this.setAttributes({width:i,height:s}),this.preloadingURL=null,this.setPreviewURL(t),n==null?void 0:n()})).catch((()=>(this.preloadingURL=null,n==null?void 0:n())))}}he(Kr,"previewablePattern",/^image(\/(gif|png|webp|jpe?g)|$)/);class Mr extends gr{static fromJSON(t){return new this(Kr.fromJSON(t.attachment),t.attributes)}constructor(t){super(...arguments),this.attachment=t,this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}ensureAttachmentExclusivelyHasAttribute(t){this.hasAttribute(t)&&(this.attachment.hasAttribute(t)||this.attachment.setAttributes(this.attributes.slice([t])),this.attributes=this.attributes.remove(t))}removeProhibitedAttributes(){const t=this.attributes.slice(Mr.permittedAttributes);t.isEqualTo(this.attributes)||(this.attributes=t)}getValue(){return this.attachment}isSerializable(){return!this.attachment.isPending()}getCaption(){return this.attributes.get("caption")||""}isEqualTo(t){var n;return super.isEqualTo(t)&&this.attachment.id===(t==null||(n=t.attachment)===null||n===void 0?void 0:n.id)}toString(){return""}toJSON(){const t=super.toJSON(...arguments);return t.attachment=this.attachment,t}getCacheKey(){return[super.getCacheKey(...arguments),this.attachment.getCacheKey()].join("/")}toConsole(){return JSON.stringify(this.toString())}}he(Mr,"permittedAttributes",["caption","presentation"]),gr.registerType("attachment",Mr);class Su extends gr{static fromJSON(t){return new this(t.string,t.attributes)}constructor(t){super(...arguments),this.string=(n=>n.replace(/\r\n?/g,`
73`))(t),this.length=this.string.length}getValue(){return this.string}toString(){return this.string.toString()}isBlockBreak(){return this.toString()===`
74`&&this.getAttribute("blockBreak")===!0}toJSON(){const t=super.toJSON(...arguments);return t.string=this.string,t}canBeConsolidatedWith(t){return t&&this.hasSameConstructorAs(t)&&this.hasSameAttributesAsPiece(t)}consolidateWith(t){return new this.constructor(this.toString()+t.toString(),this.attributes)}splitAtOffset(t){let n,r;return t===0?(n=null,r=this):t===this.length?(n=this,r=null):(n=new this.constructor(this.string.slice(0,t),this.attributes),r
vendor: 27,996 bytes, lines 74-82
74=new this.constructor(this.string.slice(t),this.attributes)),[n,r]}toConsole(){let{string:t}=this;return t.length>15&&(t=t.slice(0,14)+"…"),JSON.stringify(t.toString())}}gr.registerType("string",Su);class Qs extends pr{static box(t){return t instanceof this?t:new this(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.objects=t.slice(0),this.length=this.objects.length}indexOf(t){return this.objects.indexOf(t)}splice(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new this.constructor(_u(this.objects,...n))}eachObject(t){return this.objects.map(((n,r)=>t(n,r)))}insertObjectAtIndex(t,n){return this.splice(n,0,t)}insertSplittableListAtIndex(t,n){return this.splice(n,0,...t.objects)}insertSplittableListAtPosition(t,n){const[r,i]=this.splitObjectAtPosition(n);return new this.constructor(r).insertSplittableListAtIndex(t,i)}editObjectAtIndex(t,n){return this.replaceObjectAtIndex(n(this.objects[t]),t)}replaceObjectAtIndex(t,n){return this.splice(n,1,t)}removeObjectAtIndex(t){return this.splice(t,1)}getObjectAtIndex(t){return this.objects[t]}getSplittableListInRange(t){const[n,r,i]=this.splitObjectsAtRange(t);return new this.constructor(n.slice(r,i+1))}selectSplittableList(t){const n=this.objects.filter((r=>t(r)));return new this.constructor(n)}removeObjectsInRange(t){const[n,r,i]=this.splitObjectsAtRange(t);return new this.constructor(n).splice(r,i-r+1)}transformObjectsInRange(t,n){const[r,i,s]=this.splitObjectsAtRange(t),o=r.map(((a,l)=>i<=l&&l<=s?n(a):a));return new this.constructor(o)}splitObjectsAtRange(t){let n,[r,i,s]=this.splitObjectAtPosition(WC(t));return[r,n]=new this.constructor(r).splitObjectAtPosition(YC(t)+s),[r,i,n-1]}getObjectAtPosition(t){const{index:n}=this.findIndexAndOffsetAtPosition(t);return this.objects[n]}splitObjectAtPosition(t){let n,r;const{index:i,offset:s}=this.findIndexAndOffsetAtPosition(t),o=this.objects.slice(0);if(i!=null)if(s===0)n=i,r=0;else{const a=this.getObjectAtIndex(i),[l,u]=a.splitAtOffset(s);o.splice(i,1,l,u),n=i+1,r=l.getLength()-s}else n=o.length,r=0;return[o,n,r]}consolidate(){const t=[];let n=this.objects[0];return this.objects.slice(1).forEach((r=>{var i,s;(i=(s=n).canBeConsolidatedWith)!==null&&i!==void 0&&i.call(s,r)?n=n.consolidateWith(r):(t.push(n),n=r)})),n&&t.push(n),new this.constructor(t)}consolidateFromIndexToIndex(t,n){const r=this.objects.slice(0).slice(t,n+1),i=new this.constructor(r).consolidate().toArray();return this.splice(t,r.length,...i)}findIndexAndOffsetAtPosition(t){let n,r=0;for(n=0;n<this.objects.length;n++){const i=r+this.objects[n].getLength();if(r<=t&&t<i)return{index:n,offset:t-r};r=i}return{index:null,offset:null}}findPositionAtIndexAndOffset(t,n){let r=0;for(let i=0;i<this.objects.length;i++){const s=this.objects[i];if(i<t)r+=s.getLength();else if(i===t){r+=n;break}}return r}getEndPosition(){return this.endPosition==null&&(this.endPosition=0,this.objects.forEach((t=>this.endPosition+=t.getLength()))),this.endPosition}toString(){return this.objects.join("")}toArray(){return this.objects.slice(0)}toJSON(){return this.toArray()}isEqualTo(t){return super.isEqualTo(...arguments)||VC(this.objects,t==null?void 0:t.objects)}contentsForInspection(){return{objects:"[".concat(this.objects.map((t=>t.inspect())).join(", "),"]")}}}const VC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(e.length!==t.length)return!1;let n=!0;for(let r=0;r<e.length;r++){const i=e[r];n&&!i.isEqualTo(t[r])&&(n=!1)}return n},WC=e=>e[0],YC=e=>e[1];class ke extends pr{static textForAttachmentWithAttributes(t,n){return new this([new Mr(t,n)])}static textForStringWithAttributes(t,n){return new this([new Su(t,n)])}static fromJSON(t){return new this(Array.from(t).map((n=>gr.fromJSON(n))))}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments);const n=t.filter((r=>!r.isEmpty()));this.pieceList=new Qs(n)}copy(){return this.copyWithPieceList(this.pieceList)}copyWithPieceList(t){return new this.constructor(t.consolidate().toArray())}copyUsingObjectMap(t){const n=this.getPieces().map((r=>t.find(r)||r));return new this.constructor(n)}appendText(t){return this.insertTextAtPosition(t,this.getLength())}insertTextAtPosition(t,n){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList,n))}removeTextAtRange(t){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t))}replaceTextAtRange(t,n){return this.removeTextAtRange(n).insertTextAtPosition(t,n[0])}moveTextFromRangeToPosition(t,n){if(t[0]<=n&&n<=t[1])return;const r=this.getTextAtRange(t),i=r.getLength();return t[0]<n&&(n-=i),this.removeTextAtRange(t).insertTextAtPosition(r,n)}addAttributeAtRange(t,n,r){const i={};return i[t]=n,this.addAttributesAtRange(i,r)}addAttributesAtRange(t,n){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(n,(r=>r.copyWithAdditionalAttributes(t))))}removeAttributeAtRange(t,n){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(n,(r=>r.copyWithoutAttribute(t))))}setAttributesAtRange(t,n){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(n,(r=>r.copyWithAttributes(t))))}getAttributesAtPosition(t){var n;return((n=this.pieceList.getObjectAtPosition(t))===null||n===void 0?void 0:n.getAttributes())||{}}getCommonAttributes(){const t=Array.from(this.pieceList.toArray()).map((n=>n.getAttributes()));return de.fromCommonAttributesOfObjects(t).toObject()}getCommonAttributesAtRange(t){return this.getTextAtRange(t).getCommonAttributes()||{}}getExpandedRangeForAttributeAtOffset(t,n){let r,i=r=n;const s=this.getLength();for(;i>0&&this.getCommonAttributesAtRange([i-1,r])[t];)i--;for(;r<s&&this.getCommonAttributesAtRange([n,r+1])[t];)r++;return[i,r]}getTextAtRange(t){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t))}getStringAtRange(t){return this.pieceList.getSplittableListInRange(t).toString()}getStringAtPosition(t){return this.getStringAtRange([t,t+1])}startsWithString(t){return this.getStringAtRange([0,t.length])===t}endsWithString(t){const n=this.getLength();return this.getStringAtRange([n-t.length,n])===t}getAttachmentPieces(){return this.pieceList.toArray().filter((t=>!!t.attachment))}getAttachments(){return this.getAttachmentPieces().map((t=>t.attachment))}getAttachmentAndPositionById(t){let n=0;for(const i of this.pieceList.toArray()){var r;if(((r=i.attachment)===null||r===void 0?void 0:r.id)===t)return{attachment:i.attachment,position:n};n+=i.length}return{attachment:null,position:null}}getAttachmentById(t){const{attachment:n}=this.getAttachmentAndPositionById(t);return n}getRangeOfAttachment(t){const n=this.getAttachmentAndPositionById(t.id),r=n.position;if(t=n.attachment)return[r,r+1]}updateAttributesForAttachment(t,n){const r=this.getRangeOfAttachment(n);return r?this.addAttributesAtRange(t,r):this}getLength(){return this.pieceList.getEndPosition()}isEmpty(){return this.getLength()===0}isEqualTo(t){var n;return super.isEqualTo(t)||(t==null||(n=t.pieceList)===null||n===void 0?void 0:n.isEqualTo(this.pieceList))}isBlockBreak(){return this.getLength()===1&&this.pieceList.getObjectAtIndex(0).isBlockBreak()}eachPiece(t){return this.pieceList.eachObject(t)}getPieces(){return this.pieceList.toArray()}getPieceAtPosition(t){return this.pieceList.getObjectAtPosition(t)}contentsForInspection(){return{pieceList:this.pieceList.inspect()}}toSerializableText(){const t=this.pieceList.selectSplittableList((n=>n.isSerializable()));return this.copyWithPieceList(t)}toString(){return this.pieceList.toString()}toJSON(){return this.pieceList.toJSON()}toConsole(){return JSON.stringify(this.pieceList.toArray().map((t=>JSON.parse(t.toConsole()))))}getDirection(){return EC(this.toString())}isRTL(){return this.getDirection()==="rtl"}}class qe extends pr{static fromJSON(t){return new this(ke.fromJSON(t.text),t.attributes,t.htmlAttributes)}constructor(t,n,r){super(...arguments),this.text=JC(t||new ke),this.attributes=n||[],this.htmlAttributes=r||{}}isEmpty(){return this.text.isBlockBreak()}isEqualTo(t){return!!super.isEqualTo(t)||this.text.isEqualTo(t==null?void 0:t.text)&&or(this.attributes,t==null?void 0:t.attributes)&&Jr(this.htmlAttributes,t==null?void 0:t.htmlAttributes)}copyWithText(t){return new qe(t,this.attributes,this.htmlAttributes)}copyWithoutText(){return this.copyWithText(null)}copyWithAttributes(t){return new qe(this.text,t,this.htmlAttributes)}copyWithoutAttributes(){return this.copyWithAttributes(null)}copyUsingObjectMap(t){const n=t.find(this.text);return n?this.copyWithText(n):this.copyWithText(this.text.copyUsingObjectMap(t))}addAttribute(t){const n=this.attributes.concat(Pd(t));return this.copyWithAttributes(n)}addHTMLAttribute(t,n){const r=Object.assign({},this.htmlAttributes,{[t]:n});return new qe(this.text,this.attributes,r)}removeAttribute(t){const{listAttribute:n}=Mt(t),r=Ld(Ld(this.attributes,t),n);return this.copyWithAttributes(r)}removeLastAttribute(){return this.removeAttribute(this.getLastAttribute())}getLastAttribute(){return $d(this.attributes)}getAttributes(){return this.attributes.slice(0)}getAttributeLevel(){return this.attributes.length}getAttributeAtLevel(t){return this.attributes[t-1]}hasAttribute(t){return this.attributes.includes(t)}hasAttributes(){return this.getAttributeLevel()>0}getLastNestableAttribute(){return $d(this.getNestableAttributes())}getNestableAttributes(){return this.attributes.filter((t=>Mt(t).nestable))}getNestingLevel(){return this.getNestableAttributes().length}decreaseNestingLevel(){const t=this.getLastNestableAttribute();return t?this.removeAttribute(t):this}increaseNestingLevel(){const t=this.getLastNestableAttribute();if(t){const n=this.attributes.lastIndexOf(t),r=_u(this.attributes,n+1,0,...Pd(t));return this.copyWithAttributes(r)}return this}getListItemAttributes(){return this.attributes.filter((t=>Mt(t).listAttribute))}isListItem(){var t;return(t=Mt(this.getLastAttribute()))===null||t===void 0?void 0:t.listAttribute}isTerminalBlock(){var t;return(t=Mt(this.getLastAttribute()))===null||t===void 0?void 0:t.terminal}breaksOnReturn(){var t;return(t=Mt(this.getLastAttribute()))===null||t===void 0?void 0:t.breakOnReturn}findLineBreakInDirectionFromPosition(t,n){const r=this.toString();let i;switch(t){case"forward":i=r.indexOf(`
75`,n);break;case"backward":i=r.slice(0,n).lastIndexOf(`
76`)}if(i!==-1)return i}contentsForInspection(){return{text:this.text.inspect(),attributes:this.attributes}}toString(){return this.text.toString()}toJSON(){return{text:this.text,attributes:this.attributes,htmlAttributes:this.htmlAttributes}}getDirection(){return this.text.getDirection()}isRTL(){return this.text.isRTL()}getLength(){return this.text.getLength()}canBeConsolidatedWith(t){return!this.hasAttributes()&&!t.hasAttributes()&&this.getDirection()===t.getDirection()}consolidateWith(t){const n=ke.textForStringWithAttributes(`
77`),r=this.getTextWithoutBlockBreak().appendText(n);return this.copyWithText(r.appendText(t.text))}splitAtOffset(t){let n,r;return t===0?(n=null,r=this):t===this.getLength()?(n=this,r=null):(n=this.copyWithText(this.text.getTextAtRange([0,t])),r=this.copyWithText(this.text.getTextAtRange([t,this.getLength()]))),[n,r]}getBlockBreakPosition(){return this.text.getLength()-1}getTextWithoutBlockBreak(){return zp(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()}canBeGrouped(t){return this.attributes[t]}canBeGroupedWith(t,n){const r=t.getAttributes(),i=r[n],s=this.attributes[n];return s===i&&!(Mt(s).group===!1&&!(()=>{if(!hs){hs=[];for(const o in te){const{listAttribute:a}=te[o];a!=null&&hs.push(a)}}return hs})().includes(r[n+1]))&&(this.getDirection()===t.getDirection()||t.isEmpty())}}const JC=function(e){return e=KC(e),e=ZC(e)},KC=function(e){let t=!1;const n=e.getPieces();let r=n.slice(0,n.length-1);const i=n[n.length-1];return i?(r=r.map((s=>s.isBlockBreak()?(t=!0,QC(s)):s)),t?new ke([...r,i]):e):e},XC=ke.textForStringWithAttributes(`
78`,{blockBreak:!0}),ZC=function(e){return zp(e)?e:e.appendText(XC)},zp=function(e){const t=e.getLength();return t===0?!1:e.getTextAtRange([t-1,t]).isBlockBreak()},QC=e=>e.copyWithoutAttribute("blockBreak"),Pd=function(e){const{listAttribute:t}=Mt(e);return t?[t,e]:[e]},$d=e=>e.slice(-1)[0],Ld=function(e,t){const n=e.lastIndexOf(t);return n===-1?e:_u(e,n,1)};class Ce extends pr{static fromJSON(t){return new this(Array.from(t).map((n=>qe.fromJSON(n))))}static fromString(t,n){const r=ke.textForStringWithAttributes(t,n);return new this([new qe(r)])}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),t.length===0&&(t=[new qe]),this.blockList=Qs.box(t)}isEmpty(){const t=this.getBlockAtIndex(0);return this.blockList.length===1&&t.isEmpty()&&!t.hasAttributes()}copy(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray();return new this.constructor(t)}copyUsingObjectsFromDocument(t){const n=new BC(t.getObjects());return this.copyUsingObjectMap(n)}copyUsingObjectMap(t){const n=this.getBlocks().map((r=>t.find(r)||r.copyUsingObjectMap(t)));return new this.constructor(n)}copyWithBaseBlockAttributes(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const n=this.getBlocks().map((r=>{const i=t.concat(r.getAttributes());return r.copyWithAttributes(i)}));return new this.constructor(n)}replaceBlock(t,n){const r=this.blockList.indexOf(t);return r===-1?this:new this.constructor(this.blockList.replaceObjectAtIndex(n,r))}insertDocumentAtRange(t,n){const{blockList:r}=t;n=pt(n);let[i]=n;const{index:s,offset:o}=this.locationFromPosition(i);let a=this;const l=this.getBlockAtPosition(i);return on(n)&&l.isEmpty()&&!l.hasAttributes()?a=new this.constructor(a.blockList.removeObjectAtIndex(s)):l.getBlockBreakPosition()===o&&i++,a=a.removeTextAtRange(n),new this.constructor(a.blockList.insertSplittableListAtPosition(r,i))}mergeDocumentAtRange(t,n){let r,i;n=pt(n);const[s]=n,o=this.locationFromPosition(s),a=this.getBlockAtIndex(o.index).getAttributes(),l=t.getBaseBlockAttributes(),u=a.slice(-l.length);if(or(l,u)){const h=a.slice(0,-l.length);r=t.copyWithBaseBlockAttributes(h)}else r=t.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(a);const c=r.getBlockCount(),d=r.getBlockAtIndex(0);if(or(a,d.getAttributes())){const h=d.getTextWithoutBlockBreak();if(i=this.insertTextAtRange(h,n),c>1){r=new this.constructor(r.getBlocks().slice(1));const v=s+h.getLength();i=i.insertDocumentAtRange(r,v)}}else i=this.insertDocumentAtRange(r,n);return i}insertTextAtRange(t,n){n=pt(n);const[r]=n,{index:i,offset:s}=this.locationFromPosition(r),o=this.removeTextAtRange(n);return new this.constructor(o.blockList.editObjectAtIndex(i,(a=>a.copyWithText(a.text.insertTextAtPosition(t,s)))))}removeTextAtRange(t){let n;t=pt(t);const[r,i]=t;if(on(t))return this;const[s,o]=Array.from(this.locationRangeFromRange(t)),a=s.index,l=s.offset,u=this.getBlockAtIndex(a),c=o.index,d=o.offset,h=this.getBlockAtIndex(c);if(i-r==1&&u.getBlockBreakPosition()===l&&h.getBlockBreakPosition()!==d&&h.text.getStringAtPosition(d)===`
79`)n=this.blockList.editObjectAtIndex(c,(v=>v.copyWithText(v.text.removeTextAtRange([d,d+1]))));else{let v;const f=u.text.getTextAtRange([0,l]),g=h.text.getTextAtRange([d,h.getLength()]),_=f.appendText(g);v=a!==c&&l===0&&u.getAttributeLevel()>=h.getAttributeLevel()?h.copyWithText(_):u.copyWithText(_);const S=c+1-a;n=this.blockList.splice(a,S,v)}return new this.constructor(n)}moveTextFromRangeToPosition(t,n){let r;t=pt(t);const[i,s]=t;if(i<=n&&n<=s)return this;let o=this.getDocumentAtRange(t),a=this.removeTextAtRange(t);const l=i<n;l&&(n-=o.getLength());const[u,...c]=o.getBlocks();return c.length===0?(r=u.getTextWithoutBlockBreak(),l&&(n+=1)):r=u.text,a=a.insertTextAtRange(r,n),c.length===0?a:(o=new this.constructor(c),n+=r.getLength(),a.insertDocumentAtRange(o,n))}addAttributeAtRange(t,n,r){let{blockList:i}=this;return this.eachBlockAtRange(r,((s,o,a)=>i=i.editObjectAtIndex(a,(function(){return Mt(t)?s.addAttribute(t,n):o[0]===o[1]?s:s.copyWithText(s.text.addAttributeAtRange(t,n,o))})))),new this.constructor(i)}addAttribute(t,n){let{blockList:r}=this;return this.eachBlock(((i,s)=>r=r.editObjectAtIndex(s,(()=>i.addAttribute(t,n))))),new this.constructor(r)}removeAttributeAtRange(t,n){let{blockList:r}=this;return this.eachBlockAtRange(n,(function(i,s,o){Mt(t)?r=r.editObjectAtIndex(o,(()=>i.removeAttribute(t))):s[0]!==s[1]&&(r=r.editObjectAtIndex(o,(()=>i.copyWithText(i.text.removeAttributeAtRange(t,s)))))})),new this.constructor(r)}updateAttributesForAttachment(t,n){const r=this.getRangeOfAttachment(n),[i]=Array.from(r),{index:s}=this.locationFromPosition(i),o=this.getTextAtIndex(s);return new this.constructor(this.blockList.editObjectAtIndex(s,(a=>a.copyWithText(o.updateAttributesForAttachment(t,n)))))}removeAttributeForAttachment(t,n){const r=this.getRangeOfAttachment(n);return this.removeAttributeAtRange(t,r)}setHTMLAttributeAtPosition(t,n,r){const i=this.getBlockAtPosition(t),s=i.addHTMLAttribute(n,r);return this.replaceBlock(i,s)}insertBlockBreakAtRange(t){let n;t=pt(t);const[r]=t,{offset:i}=this.locationFromPosition(r),s=this.removeTextAtRange(t);return i===0&&(n=[new qe]),new this.constructor(s.blockList.insertSplittableListAtPosition(new Qs(n),r))}applyBlockAttributeAtRange(t,n,r){const i=this.expandRangeToLineBreaksAndSplitBlocks(r);let s=i.document;r=i.range;const o=Mt(t);if(o.listAttribute){s=s.removeLastListAttributeAtRange(r,{exceptAttributeName:t});const a=s.convertLineBreaksToBlockBreaksInRange(r);s=a.document,r=a.range}else s=o.exclusive?s.removeBlockAttributesAtRange(r):o.terminal?s.removeLastTerminalAttributeAtRange(r):s.consolidateBlocksAtRange(r);return s.addAttributeAtRange(t,n,r)}removeLastListAttributeAtRange(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{blockList:r}=this;return this.eachBlockAtRange(t,(function(i,s,o){const a=i.getLastAttribute();a&&Mt(a).listAttribute&&a!==n.exceptAttributeName&&(r=r.editObjectAtIndex(o,(()=>i.removeAttribute(a))))})),new this.constructor(r)}removeLastTerminalAttributeAtRange(t){let{blockList:n}=this;return this.eachBlockAtRange(t,(function(r,i,s){const o=r.getLastAttribute();o&&Mt(o).terminal&&(n=n.editObjectAtIndex(s,(()=>r.removeAttribute(o))))})),new this.constructor(n)}removeBlockAttributesAtRange(t){let{blockList:n}=this;return this.eachBlockAtRange(t,(function(r,i,s){r.hasAttributes()&&(n=n.editObjectAtIndex(s,(()=>r.copyWithoutAttributes())))})),new this.constructor(n)}expandRangeToLineBreaksAndSplitBlocks(t){let n;t=pt(t);let[r,i]=t;const s=this.locationFromPosition(r),o=this.locationFromPosition(i);let a=this;const l=a.getBlockAtIndex(s.index);if(s.offset=l.findLineBreakInDirectionFromPosition("backward",s.offset),s.offset!=null&&(n=a.positionFromLocation(s),a=a.insertBlockBreakAtRange([n,n+1]),o.index+=1,o.offset-=a.getBlockAtIndex(s.index).getLength(),s.index+=1),s.offset=0,o.offset===0&&o.index>s.index)o.index-=1,o.offset=a.getBlockAtIndex(o.index).getBlockBreakPosition();else{const u=a.getBlockAtIndex(o.index);u.text.getStringAtRange([o.offset-1,o.offset])===`
80`?o.offset-=1:o.offset=u.findLineBreakInDirectionFromPosition("forward",o.offset),o.offset!==u.getBlockBreakPosition()&&(n=a.positionFromLocation(o),a=a.insertBlockBreakAtRange([n,n+1]))}return r=a.positionFromLocation(s),i=a.positionFromLocation(o),{document:a,range:t=pt([r,i])}}convertLineBreaksToBlockBreaksInRange(t){t=pt(t);let[n]=t;const r=this.getStringAtRange(t).slice(0,-1);let i=this;return r.replace(/.*?\n/g,(function(s){n+=s.length,i=i.insertBlockBreakAtRange([n-1,n])})),{document:i,range:t}}consolidateBlocksAtRange(t){t=pt(t);const[n,r]=t,i=this.locationFromPosition(n).index,s=this.locationFromPosition(r).index;return new this.constructor(this.blockList.consolidateFromIndexToIndex(i,s))}getDocumentAtRange(t){t=pt(t);const n=this.blockList.getSplittableListInRange(t).toArray();return new this.constructor(n)}getStringAtRange(t){let n;const r=t=pt(t);return r[r.length-1]!==this.getLength()&&(n=-1),this.getDocumentAtRange(t).toString().slice(0,n)}getBlockAtIndex(t){return this.blockList.getObjectAtIndex(t)}getBlockAtPosition(t){const{index:n}=this.locationFromPosition(t);return this.getBlockAtIndex(n)}getTextAtIndex(t){var n;return(n=this.getBlockAtIndex(t))===null||n===void 0?void 0:n.text}getTextAtPosition(t){const{index:n}=this.locationFromPosition(t);return this.getTextAtIndex(n)}getPieceAtPosition(t){const{index:n,offset:r}=this.locationFromPosition(t);return this.getTextAtIndex(n).getPieceAtPosition(r)}getCharacterAtPosition(t){const{index:n,offset:r}=this.locationFromPosition(t);return this.getTextAtIndex(n).getStringAtRange([r,r+1])}getLength(){return this.blockList.getEndPosition()}getBlocks(){return this.blockList.toArray()}getBlockCount(){return this.blockList.length}getEditCount(){return this.editCount}eachBlock(t){return this.blockList.eachObject(t)}eachBlockAtRange(t,n){let r,i;t=pt(t);const[s,o]=t,a=this.locationFromPosition(s),l=this.locationFromPosition(o);if(a.index===l.index)return r=this.getBlockAtIndex(a.index),i=[a.offset,l.offset],n(r,i,a.index);for(let u=a.index;u<=l.index;u++)if(r=this.getBlockAtIndex(u),r){switch(u){case a.index:i=[a.offset,r.text.getLength()];break;case l.index:i=[0,l.offset];break;default:i=[0,r.text.getLength()]}n(r,i,u)}}getCommonAttributesAtRange(t){t=pt(t);const[n]=t;if(on(t))return this.getCommonAttributesAtPosition(n);{const r=[],i=[];return this.eachBlockAtRange(t,(function(s,o){if(o[0]!==o[1])return r.push(s.text.getCommonAttributesAtRange(o)),i.push(Bd(s))})),de.fromCommonAttributesOfObjects(r).merge(de.fromCommonAttributesOfObjects(i)).toObject()}}getCommonAttributesAtPosition(t){let n,r;const{index:i,offset:s}=this.locationFromPosition(t),o=this.getBlockAtIndex(i);if(!o)return{};const a=Bd(o),l=o.text.getAttributesAtPosition(s),u=o.text.getAttributesAtPosition(s-1),c=Object.keys(sr).filter((d=>sr[d].inheritable));for(n in u)r=u[n],(r===l[n]||c.includes(n))&&(a[n]=r);return a}getRangeOfCommonAttributeAtPosition(t,n){const{index:r,offset:i}=this.locationFromPosition(n),s=this.getTextAtIndex(r),[o,a]=Array.from(s.getExpandedRangeForAttributeAtOffset(t,i)),l=this.positionFromLocation({index:r,offset:o}),u=this.positionFromLocation({index:r,offset:a});return pt([l,u])}getBaseBlockAttributes(){let t=this.getBlockAtIndex(0).getAttributes();for(let n=1;n<this.getBlockCount();n++){const r=this.getBlockAtIndex(n).getAttributes(),i=Math.min(t.length,r.length);t=(()=>{const s=[];for(let o=0;o<i&&r[o]===t[o];o++)s.push(r[o]);return s})()}return t}getAttachmentById(t){for(const n of this.getAttachments())if(n.id===t)return n}getAttachmentPieces(){let t=[];return this.blockList.eachObject((n=>{let{text:r}=n;return t=t.concat(r.getAttachmentPieces())})),t}getAttachments(){return this.getAttachmentPieces().map((t=>t.attachment))}getRangeOfAttachment(t){let n=0;const r=this.blockList.toArray();for(let i=0;i<r.length;i++){const{text:s}=r[i],o=s.getRangeOfAttachment(t);if(o)return pt([n+o[0],n+o[1]]);n+=s.getLength()}}getLocationRangeOfAttachment(t){const n=this.getRangeOfAttachment(t);return this.locationRangeFromRange(n)}getAttachmentPieceForAttachment(t){for(const n of this.getAttachmentPieces())if(n.attachment===t)return n}findRangesForBlockAttribute(t){let n=0;const r=[];return this.getBlocks().forEach((i=>{const s=i.getLength();i.hasAttribute(t)&&r.push([n,n+s]),n+=s})),r}findRangesForTextAttribute(t){let{withValue:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=0,i=[];const s=[];return this.getPieces().forEach((o=>{const a=o.getLength();(function(l){return n?l.getAttribute(t)===n:l.hasAttribute(t)})(o)&&(i[1]===r?i[1]=r+a:s.push(i=[r,r+a])),r+=a})),s}locationFromPosition(t){const n=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,t));if(n.index!=null)return n;{const r=this.getBlocks();return{index:r.length-1,offset:r[r.length-1].getLength()}}}positionFromLocation(t){return this.blockList.findPositionAtIndexAndOffset(t.index,t.offset)}locationRangeFromPosition(t){return pt(this.locationFromPosition(t))}locationRangeFromRange(t){if(!(t=pt(t)))return;const[n,r]=Array.from(t),i=this.locationFromPosition(n),s=this.locationFromPosition(r);return pt([i,s])}rangeFromLocationRange(t){let n;t=pt(t);const r=this.positionFromLocation(t[0]);return on(t)||(n=this.positionFromLocation(t[1])),pt([r,n])}isEqualTo(t){return this.blockList.isEqualTo(t==null?void 0:t.blockList)}getTexts(){return this.getBlocks().map((t=>t.text))}getPieces(){const t=[];return Array.from(this.getTexts()).forEach((n=>{t.push(...Array.from(n.getPieces()||[]))})),t}getObjects(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())}toSerializableDocument(){const t=[];return this.blockList.eachObject((n=>t.push(n.copyWithText(n.text.toSerializableText())))),new this.constructor(t)}toString(){return this.blockList.toString()}toJSON(){return this.blockList.toJSON()}toConsole(){return JSON.stringify(this.blockList.toArray().map((t=>JSON.parse(t.text.toConsole()))))}}const Bd=function(e){const t={},n=e.getLastAttribute();return n&&(t[n]=!0),t},ia=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{string:e=fi(e),attributes:t,type:"string"}},Md=(e,t)=>{try{return JSON.parse(e.getAttribute("data-trix-".concat(t)))}catch(n){return{}}};class Li extends Ft{static parse(t,n){const r=new this(t,n);return r.parse(),r}constructor(t){let{referenceElement:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.html=t,this.referenceElement=n,this.blocks=[],this.blockElements=[],this.processedElements=[]}getDocument(){return Ce.fromJSON(this.blocks)}parse(){try{this.createHiddenContainer(),po.setHTML(this.containerElement,this.html);const t=Ks(this.containerElement,{usingFilter:ex});for(;t.nextNode();)this.processNode(t.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}}createHiddenContainer(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=ut({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))}removeHiddenContainer(){return Rn(this.containerElement)}processNode(t){switch(t.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(t))return this.appendBlockForTextNode(t),this.processTextNode(t);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(t),this.processElement(t)}}appendBlockForTextNode(t){const n=t.parentNode;if(n===this.currentBlockElement&&this.isBlockElement(t.previousSibling))return this.appendStringWithAttributes(`
81`);if(n===this.containerElement||this.isBlockElement(n)){var r;const i=this.getBlockAttributes(n),s=this.getBlockHTMLAttributes(n);or(i,(r=this.currentBlock)===null||r===void 0?void 0:r.attributes)||(this.currentBlock=this.appendBlockForAttributesWithElement(i,n,s),this.currentBlockElement=n)}}appendBlockForElement(t){const n=this.isBlockElement(t),r=zn(this.currentBlockElement,t);if(n&&!this.isBlockElement(t.firstChild)){if(!this.isInsignificantTextNode(t.firstChild)||!this.isBlockElement(t.firstElementChild)){const i=this.getBlockAttributes(t),s=this.getBlockHTMLAttributes(t);if(t.firstChild){if(r&&or(i,this.currentBlock.attributes))return this.appendStringWithAttributes(`
82`);this.currentBlock=this.appendBlockForAttributesWithElement(i,t,s),this.currentBlockElement=t}}}else if(this.currentBlockElement&&!r&&!n){const i=this.findParentBlockElement(t);if(i)return this.appendBlockForElement(i);this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null}}findParentBlockElement(t){let{parentElement:n}=t;
82for(;n&&n!==this.containerElement;){if(this.isBlockElement(n)&&this.blockElements.includes(n))return n;n=n.parentElement}return null}processTextNode(t){let n=t.data;var r;return Id(t.parentNode)||(n=Cu(n),Vp((r=t.previousSibling)===null||r===void 0?void 0:r.textContent)&&(n=nx(n))),this.appendStringWithAttributes(n,this.getTextAttributes(t.parentNode))}processElement(t){let n;if(Zn(t)){if(n=Md(t,"attachment"),Object.keys(n).length){const r=this.getTextAttributes(t);this.appendAttachmentWithAttributes(n,r),t.innerHTML=""}return this.processedElements.push(t)}switch(Qt(t)){case"br":return this.isExtraBR(t)||this.isBlockElement(t.nextSibling)||this.appendStringWithAttributes(`
83`,this.getTextAttributes(t)),this.processedElements.push(t);case"img":n={url:t.getAttribute("src"),contentType:"image"};const r=(i=>{const s=i.getAttribute("width"),o=i.getAttribute("height"),a={};return s&&(a.width=parseInt(s,10)),o&&(a.height=parseInt(o,10)),a})(t);for(const i in r){const s=r[i];n[i]=s}return this.appendAttachmentWithAttributes(n,this.getTextAttributes(t)),this.processedElements.push(t);case"tr":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(ks.tableRowSeparator);break;case"td":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(ks.tableCellSeparator)}}appendBlockForAttributesWithElement(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.blockElements.push(n);const i=(function(){return{text:[],attributes:arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},htmlAttributes:arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}}})(t,r);return this.blocks.push(i),i}appendEmptyBlock(){return this.appendBlockForAttributesWithElement([],null)}appendStringWithAttributes(t,n){return this.appendPiece(ia(t,n))}appendAttachmentWithAttributes(t,n){return this.appendPiece((function(r){return{attachment:r,attributes:arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},type:"attachment"}})(t,n))}appendPiece(t){return this.blocks.length===0&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(t)}appendStringToTextAtIndex(t,n){const{text:r}=this.blocks[n],i=r[r.length-1];if((i==null?void 0:i.type)!=="string")return r.push(ia(t));i.string+=t}prependStringToTextAtIndex(t,n){const{text:r}=this.blocks[n],i=r[0];if((i==null?void 0:i.type)!=="string")return r.unshift(ia(t));i.string=t+i.string}getTextAttributes(t){let n;const r={};for(const i in sr){const s=sr[i];if(s.tagName&&On(t,{matchingSelector:s.tagName,untilNode:this.containerElement}))r[i]=!0;else if(s.parser){if(n=s.parser(t),n){let o=!1;for(const a of this.findBlockElementAncestors(t))if(s.parser(a)===n){o=!0;break}o||(r[i]=n)}}else s.styleProperty&&(n=t.style[s.styleProperty],n&&(r[i]=n))}if(Zn(t)){const i=Md(t,"attributes");for(const s in i)n=i[s],r[s]=n}return r}getBlockAttributes(t){const n=[];for(;t&&t!==this.containerElement;){for(const i in te){const s=te[i];var r;s.parse!==!1&&Qt(t)===s.tagName&&((r=s.test)!==null&&r!==void 0&&r.call(s,t)||!s.test)&&(n.push(i),s.listAttribute&&n.push(s.listAttribute))}t=t.parentNode}return n.reverse()}getBlockHTMLAttributes(t){const n={},r=Object.values(te).find((i=>i.tagName===Qt(t)));return((r==null?void 0:r.htmlAttributes)||[]).forEach((i=>{t.hasAttribute(i)&&(n[i]=t.getAttribute(i))})),n}findBlockElementAncestors(t){const n=[];for(;t&&t!==this.containerElement;
vendor: 6,545 bytes, lines 83-88
83){const r=Qt(t);bi().includes(r)&&n.push(t),t=t.parentNode}return n}isBlockElement(t){if((t==null?void 0:t.nodeType)===Node.ELEMENT_NODE&&!Zn(t)&&!On(t,{matchingSelector:"td",untilNode:this.containerElement}))return bi().includes(Qt(t))||window.getComputedStyle(t).display==="block"}isInsignificantTextNode(t){if((t==null?void 0:t.nodeType)!==Node.TEXT_NODE||!rx(t.data))return;const{parentNode:n,previousSibling:r,nextSibling:i}=t;return tx(n.previousSibling)&&!this.isBlockElement(n.previousSibling)||Id(n)?void 0:!r||this.isBlockElement(r)||!i||this.isBlockElement(i)}isExtraBR(t){return Qt(t)==="br"&&this.isBlockElement(t.parentNode)&&t.parentNode.lastChild===t}needsTableSeparator(t){if(ks.removeBlankTableCells){var n;const r=(n=t.previousSibling)===null||n===void 0?void 0:n.textContent;return r&&/\S/.test(r)}return t.previousSibling}translateBlockElementMarginsToNewlines(){const t=this.getMarginOfDefaultBlockElement();for(let n=0;n<this.blocks.length;n++){const r=this.getMarginOfBlockElementAtIndex(n);r&&(r.top>2*t.top&&this.prependStringToTextAtIndex(`
84`,n),r.bottom>2*t.bottom&&this.appendStringToTextAtIndex(`
85`,n))}}getMarginOfBlockElementAtIndex(t){const n=this.blockElements[t];if(n&&n.textContent&&!bi().includes(Qt(n))&&!this.processedElements.includes(n))return Fd(n)}getMarginOfDefaultBlockElement(){const t=ut(te.default.tagName);return this.containerElement.appendChild(t),Fd(t)}}const Id=function(e){const{whiteSpace:t}=window.getComputedStyle(e);return["pre","pre-wrap","pre-line"].includes(t)},tx=e=>e&&!Vp(e.textContent),Fd=function(e){const t=window.getComputedStyle(e);if(t.display==="block")return{top:parseInt(t.marginTop),bottom:parseInt(t.marginBottom)}},ex=function(e){return Qt(e)==="style"?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},nx=e=>e.replace(new RegExp("^".concat(wu.source,"+")),""),rx=e=>new RegExp("^".concat(wu.source,"*$")).test(e),Vp=e=>/\s$/.test(e),ix=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],wl="data-trix-serialized-attributes",sx="[".concat(wl,"]"),ox=new RegExp("<!--block-->","g"),ax={"application/json":function(e){let t;if(e instanceof Ce)t=e;else{if(!(e instanceof HTMLElement))throw new Error("unserializable object");t=Li.parse(e.innerHTML).getDocument()}return t.toSerializableDocument().toJSONString()},"text/html":function(e){let t;if(e instanceof Ce)t=mo.render(e);else{if(!(e instanceof HTMLElement))throw new Error("unserializable object");t=e.cloneNode(!0)}return Array.from(t.querySelectorAll("[data-trix-serialize=false]")).forEach((n=>{Rn(n)})),ix.forEach((n=>{Array.from(t.querySelectorAll("[".concat(n,"]"))).forEach((r=>{r.removeAttribute(n)}))})),Array.from(t.querySelectorAll(sx)).forEach((n=>{try{const r=JSON.parse(n.getAttribute(wl));n.removeAttribute(wl);for(const i in r){const s=r[i];n.setAttribute(i,s)}}catch(r){}})),t.innerHTML.replace(ox,"")}};var lx=Object.freeze({__proto__:null});class Bt extends Ft{constructor(t,n){super(...arguments),this.attachmentManager=t,this.attachment=n,this.id=this.attachment.id,this.file=this.attachment.file}remove(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)}}Bt.proxyMethod("attachment.getAttribute"),Bt.proxyMethod("attachment.hasAttribute"),Bt.proxyMethod("attachment.setAttribute"),Bt.proxyMethod("attachment.getAttributes"),Bt.proxyMethod("attachment.setAttributes"),Bt.proxyMethod("attachment.isPending"),Bt.proxyMethod("attachment.isPreviewable"),Bt.proxyMethod("attachment.getURL"),Bt.proxyMethod("attachment.getHref"),Bt.proxyMethod("attachment.getFilename"),Bt.proxyMethod("attachment.getFilesize"),Bt.proxyMethod("attachment.getFormattedFilesize"),Bt.proxyMethod("attachment.getExtension"),Bt.proxyMethod("attachment.getContentType"),Bt.proxyMethod("attachment.getFile"),Bt.proxyMethod("attachment.setFile"),Bt.proxyMethod("attachment.releaseFile"),Bt.proxyMethod("attachment.getUploadProgress"),Bt.proxyMethod("attachment.setUploadProgress");class Wp extends Ft{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.managedAttachments={},Array.from(t).forEach((n=>{this.manageAttachment(n)}))}getAttachments(){const t=[];for(const n in this.managedAttachments){const r=this.managedAttachments[n];t.push(r)}return t}manageAttachment(t){return this.managedAttachments[t.id]||(this.managedAttachments[t.id]=new Bt(this,t)),this.managedAttachments[t.id]}attachmentIsManaged(t){return t.id in this.managedAttachments}requestRemovalOfAttachment(t){var n,r;if(this.attachmentIsManaged(t))return(n=this.delegate)===null||n===void 0||(r=n.attachmentManagerDidRequestRemovalOfAttachment)===null||r===void 0?void 0:r.call(n,t)}unmanageAttachment(t){const n=this.managedAttachments[t.id];return delete this.managedAttachments[t.id],n}}class Yp{constructor(t){this.composition=t,this.document=this.composition.document;const n=this.composition.getSelectedRange();this.startPosition=n[0],this.endPosition=n[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}shouldInsertBlockBreak(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?this.startLocation.offset!==0:this.breaksOnReturn&&this.nextCharacter!==`
86`}shouldBreakFormattedBlock(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&this.nextCharacter===`
87`||this.previousCharacter===`
88`)}shouldDecreaseListLevel(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()}shouldPrependListItem(){return this.block.isListItem()&&this.startLocation.offset===0&&!this.block.isEmpty()}shouldRemoveLastBlockAttribute(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()}}class yn extends Ft{constructor(){super(...arguments),this.document=new Ce,this.attachments=[],this.currentAttributes={},this.revision=0}setDocument(t){var n,r;if(!t.isEqualTo(this.document))return this.document=t,this.refreshAttachments(),this.revision++,(n=this.delegate)===null||n===void 0||(r=n.compositionDidChangeDocument)===null||r===void 0?void 0:r.call(n,t)}getSnapshot(){return{document:this.document,selectedRange:this.getSelectedRange()}}
88loadSnapshot(t){var n,r,i,s;let{document:o,selectedRange:a}=t;return(n=this.delegate)===null||n===void 0||(r=n.compositionWillLoadSnapshot)===null||r===void 0||r.call(n),this.setDocument(o!=null?o:new Ce),this.setSelection(a!=null?a:[0,0]),(i=this.delegate)===null||i===void 0||(s=i.compositionDidLoadSnapshot)===null||s===void 0?void 0:s.call(i)}insertText(t){let{updatePosition:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{updatePosition:!0};const r=this.getSelectedRange();this.setDocument(this.document.insertTextAtRange(t,r));const i=r[0],s=i+t.getLength();return n&&this.setSelection(s),this.notifyDelegateOfInsertionAtRange([i,s])}insertBlock(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new qe;const n=new Ce([t]);return this.insertDocument(n)}insertDocument(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Ce;const n=this.getSelectedRange();this.setDocument(this.document.insertDocumentAtRange(t,n));const r=n[0],i=r+t.getLength();return this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])}insertString(t,n){const r=this.getCurrentTextAttributes(),i=ke.textForStringWithAttributes(t,r);return this.insertText(i,n)}insertBlockBreak(){const t=this.getSelectedRange();this.setDocument(this.document.insertBlockBreakAtRange(t));const n=t[0],r=n+1;return this.setSelection(r),this.notifyDelegateOfInsertionAtRange([n,r])}insertLineBreak(){const t=new Yp(this);if(t.shouldDecreaseListLevel())return this.decreaseListLevel(),this.setSelection(t.startPosition);if(t.shouldPrependListItem()){const n=new Ce([t.block.copyWithoutText()]);return this.insertDocument(n)}return t.shouldInsertBlockBreak()?this.insertBlockBreak():t.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():t.shouldBreakFormattedBlock()?this.breakFormattedBlock(t):this.insertString(`
89`)}insertHTML(t){const n=Li.parse(t).getDocument(),r=this.getSelectedRange();this.setDocument(this.document.mergeDocumentAtRange(n,r));const i=r[0],s=i+n.getLength()-1;return this.setSelection(s),this.notifyDelegateOfInsertionAtRange([i,s])}replaceHTML(t){const n=Li.parse(t).getDocument().copyUsingObjectsFromDocument(this.document),r=this.getLocationRange({strict:!1}),i=this.document.rangeFromLocationRange(r);return this.setDocument(n),this.setSelection(i)}insertFile(t){return this.insertFiles([t])}insertFiles(t){const n=[];return Array.from(t).forEach((r=>{var i;if((i=this.delegate)!==null&&i!==void 0&&i.compositionShouldAcceptFile(r)){const s=Kr.attachmentForFile(r);n.push(s)}})),this.insertAttachments(n)}insertAttachment(t){return this.insertAttachments([t])}insertAttachments(t){let n=new ke;return Array.from(t).forEach((r=>{var i;const s=r.getType(),o=(i=mu[s])===null||i===void 0?void 0:i.presentation,a=this.getCurrentTextAttributes();o&&(a.presentation=o);const l=ke.textForAttachmentWithAttributes(r,a);n=n.appendText(l)})),this.insertText(n)}shouldManageDeletingInDirection(t){const n=this.getLocationRange();if(on(n)){if(t==="backward"&&n[0].offset===0||this.shouldManageMovingCursorInDirection(t))return!0}else if(n[0].index!==n[1].index)return!0;return!1}deleteInDirection(t){let n,r,i,{length:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getLocationRange();let a=this.getSelectedRange();const l=on(a);if(l?r=t==="backward"&&o[0].offset===0:i=o[0].index!==o[1].index,r&&this.canDecreaseBlockAttributeLevel()){const u=this.getBlock();if(u.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(a[0]),u.isEmpty())return!1}return l&&(a=this.getExpandedRangeInDirection(t,{length:s}),t==="backward"&&(n=this.getAttachmentAtRange(a))),n?(this.editAttachment(n),!1):(this.setDocument(this.document.removeTextAtRange(a)),this.setSelection(a[0]),!r&&!i&&void 0)}moveTextFromRange(t){const[n]=Array.from(this.getSelectedRange());return this.setDocument(this.document.moveTextFromRangeToPosition(t,n)),this.setSelection(n)}removeAttachment(t){const n=this.document.getRangeOfAttachment(t);if(n)return this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(n)),this.setSelection(n[0])}removeLastBlockAttribute(){const[t,n]=Array.from(this.getSelectedRange()),r=this.document.getBlockAtPosition(n);return this.removeCurrentAttribute(r.getLastAttribute()),this.setSelection(t)}insertPlaceholder(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")}selectPlaceholder(){if(this.placeholderPosition!=null)return this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+1]),this.get
89SelectedRange()}forgetPlaceholder(){this.placeholderPosition=null}hasCurrentAttribute(t){const n=this.currentAttributes[t];return n!=null&&n!==!1}toggleCurrentAttribute(t){const n=!this.currentAttributes[t];return n?this.setCurrentAttribute(t,n):this.removeCurrentAttribute(t)}canSetCurrentAttribute(t){return Mt(t)?this.canSetCurrentBlockAttribute(t):this.canSetCurrentTextAttribute(t)}canSetCurrentTextAttribute(t){const n=this.getSelectedDocument();if(n){for(const r of Array.from(n.getAttachments()))if(!r.hasContent())return!1;return!0}}canSetCurrentBlockAttribute(t){const n=this.getBlock();if(n)return!n.isTerminalBlock()}setCurrentAttribute(t,n){return Mt(t)?this.setBlockAttribute(t,n):(this.setTextAttribute(t,n),this.currentAttributes[t]=n,this.notifyDelegateOfCurrentAttributesChange())}setHTMLAtributeAtPosition(t,n,r){var i;const s=this.document.getBlockAtPosition(t),o=(i=Mt(s.getLastAttribute()))===null||i===void 0?void 0:i.htmlAttributes;if(s&&o!=null&&o.includes(n)){const a=this.document.setHTMLAttributeAtPosition(t,n,r);this.setDocument(a)}}setTextAttribute(t,n){const r=this.getSelectedRange();if(!r)return;const[i,s]=Array.from(r);if(i!==s)return this.setDocument(this.document.addAttributeAtRange(t,n,r));if(t==="href"){const o=ke.textForStringWithAttributes(n,{href:n});return this.insertText(o)}}setBlockAttribute(t,n){const r=this.getSelectedRange();if(this.canSetCurrentAttribute(t))return this.setDocument(this.document.applyBlockAttributeAtRange(t,n,r)),this.setSelection(r)}removeCurrentAttribute(t){return Mt(t)?(this.removeBlockAttribute(t),this.updateCurrentAttributes()):(this.removeTextAttribute(t),delete this.currentAttributes[t],this.notifyDelegateOfCurrentAttributesChange())}removeTextAttribute(t){const n=this.getSelectedRange();if(n)return this.setDocument(this.document.removeAttributeAtRange(t,n))}removeBlockAttribute(t){const n=this.getSelectedRange();if(n)return this.setDocument(this.document.removeAttributeAtRange(t,n))}canDecreaseNestingLevel(){var t;return((t=this.getBlock())===null||t===void 0?void 0:t.getNestingLevel())>0}canIncreaseNestingLevel(){var t;const n=this.getBlock();if(n){if((t=Mt(n.getLastNestableAttribute()))===null||t===void 0||!t.listAttribute)return n.getNestingLevel()>0;{const r=this.getPreviousBlock();if(r)return(function(){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return or((arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).slice(0,i.length),i)})(r.getListItemAttributes(),n.getListItemAttributes())}}}decreaseNestingLevel(){const t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.decreaseNestingLevel()))}increaseNestingLevel(){const t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.increaseNestingLevel()))}canDecreaseBlockAttributeLevel(){var t;return((t=this.getBlock())===null||t===void 0?void 0:t.getAttributeLevel())>0}decreaseBlockAttributeLevel(){var t;const n=(t=this.getBlock())===null||t===void 0?void 0:t.getLastAttribute();if(n)return this.removeCurrentAttribute(n)}decreaseListLevel(){let[t]=Array.from(this.getSelectedRange());const{index:n}=this.document.locationFromPosition(t);let r=n;const i=this.getBlock().getAttributeLevel();let s=this.document.getBlockAtIndex(r+1);for(;s&&s.isListItem()&&!(s.getAttributeLevel()<=i);)r++,s=this.document.getBlockAtIndex(r+1);t=this.document.positionFromLocation({index:n,offset:0});const o=this.document.positionFromLocation({index:r,offset:0});return this.setDocument(this.document.removeLastListAttributeAtRange([t,o]))}updateCurrentAttributes(){const t=this.getSelectedRange({ignoreLock:!0});if(t){const n=this.document.getCommonAttributesAtRange(t);if(Array.from(bl()).forEach((r=>{n[r]||this.canSetCurrentAttribute(r)||(n[r]=!1)})),!Jr(n,this.currentAttributes))return this.currentAttributes=n,this.notifyDelegateOfCurrentAttributesChange()}}getCurrentAttributes(){return kp.call({},this.currentAttributes)}getCurrentTextAttributes(){const t={};for(const n in this.currentAttributes){const r=this.currentAttributes[n];r!==!1&&_l(n)&&(t[n]=r)}return t}freezeSelection(){return this.setCurrentAttribute("frozen",!0)}thawSelection(){return this.removeCurrentAttribute("frozen")}hasFrozenSelection(){return this.hasCurrentAttribute("frozen")}setSelection(t){var n;const r=this.document.locationRangeFromRange(t);return(n=this.delegate)===null||n===void 0?void 0:n.compositionDidRequestChangingSelectionToLocationRange(r)}getSelectedRange(){const t=this.getLocationRange();if(t)return this.document.rangeFromLocationRange(t)}
89setSelectedRange(t){const n=this.document.locationRangeFromRange(t);return this.getSelectionManager().setLocationRange(n)}getPosition(){const t=this.getLocationRange();if(t)return this.document.positionFromLocation(t[0])}getLocationRange(t){return this.targetLocationRange?this.targetLocationRange:this.getSelectionManager().getLocationRange(t)||pt({index:0,offset:0})}withTargetLocationRange(t,n){let r;this.targetLocationRange=t;try{r=n()}finally{this.targetLocationRange=null}return r}withTargetRange(t,n){const r=this.document.locationRangeFromRange(t);return this.withTargetLocationRange(r,n)}withTargetDOMRange(t,n){const r=this.createLocationRangeFromDOMRange(t,{strict:!1});return this.withTargetLocationRange(r,n)}getExpandedRangeInDirection(t){let{length:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[r,i]=Array.from(this.getSelectedRange());return t==="backward"?n?r-=n:r=this.translateUTF16PositionFromOffset(r,-1):n?i+=n:i=this.translateUTF16PositionFromOffset(i,1),pt([r,i])}shouldManageMovingCursorInDirection(t){if(this.editingAttachment)return!0;const n=this.getExpandedRangeInDirection(t);return this.getAttachmentAtRange(n)!=null}moveCursorInDirection(t){let n,r;if(this.editingAttachment)r=this.document.getRangeOfAttachment(this.editingAttachment);else{const i=this.getSelectedRange();r=this.getExpandedRangeInDirection(t),n=!Xs(i,r)}if(t==="backward"?this.setSelectedRange(r[0]):this.setSelectedRange(r[1]),n){const i=this.getAttachmentAtRange(r);if(i)return this.editAttachment(i)}}expandSelectionInDirection(t){let{length:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getExpandedRangeInDirection(t,{length:n});return this.setSelectedRange(r)}expandSelectionForEditing(){if(this.hasCurrentAttribute("href"))return this.expandSelectionAroundCommonAttribute("href")}expandSelectionAroundCommonAttribute(t){const n=this.getPosition(),r=this.document.getRangeOfCommonAttributeAtPosition(t,n);return this.setSelectedRange(r)}selectionContainsAttachments(){var t;return((t=this.getSelectedAttachments())===null||t===void 0?void 0:t.length)>0}selectionIsInCursorTarget(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())}positionIsCursorTarget(t){const n=this.document.locationFromPosition(t);if(n)return this.locationIsCursorTarget(n)}positionIsBlockBreak(t){var n;return(n=this.document.getPieceAtPosition(t))===null||n===void 0?void 0:n.isBlockBreak()}getSelectedDocument(){const t=this.getSelectedRange();if(t)return this.document.getDocumentAtRange(t)}getSelectedAttachments(){var t;return(t=this.getSelectedDocument())===null||t===void 0?void 0:t.getAttachments()}getAttachments(){return this.attachments.slice(0)}refreshAttachments(){const t=this.document.getAttachments(),{added:n,removed:r}=(function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const o=[],a=[],l=new Set;i.forEach((c=>{l.add(c)}));const u=new Set;return s.forEach((c=>{u.add(c),l.has(c)||o.push(c)})),i.forEach((c=>{u.has(c)||a.push(c)})),{added:o,removed:a}})(this.attachments,t);return this.attachments=t,Array.from(r).forEach((i=>{var s,o;i.delegate=null,(s=this.delegate)===null||s===void 0||(o=s.compositionDidRemoveAttachment)===null||o===void 0||o.call(s,i)})),(()=>{const i=[];return Array.from(n).forEach((s=>{var o,a;s.delegate=this,i.push((o=this.delegate)===null||o===void 0||(a=o.c
89ompositionDidAddAttachment)===null||a===void 0?void 0:a.call(o,s))})),i})()}attachmentDidChangeAttributes(t){var n,r;return this.revision++,(n=this.delegate)===null||n===void 0||(r=n.compositionDidEditAttachment)===null||r===void 0?void 0:r.call(n,t)}attachmentDidChangePreviewURL(t){var n,r;return this.revision++,(n=this.delegate)===null||n===void 0||(r=n.compositionDidChangeAttachmentPreviewURL)===null||r===void 0?void 0:r.call(n,t)}editAttachment(t,n){var r,i;if(t!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=t,(r=this.delegate)===null||r===void 0||(i=r.compositionDidStartEditingAttachment)===null||i===void 0?void 0:i.call(r,this.editingAttachment,n)}stopEditingAttachment(){var t,n;this.editingAttachment&&((t=this.delegate)===null||t===void 0||(n=t.compositionDidStopEditingAttachment)===null||n===void 0||n.call(t,this.editingAttachment),this.editingAttachment=null)}updateAttributesForAttachment(t,n){return this.setDocument(this.document.updateAttributesForAttachment(t,n))}removeAttributeForAttachment(t,n){return this.setDocument(this.document.removeAttributeForAttachment(t,n))}breakFormattedBlock(t){let{document:n}=t;const{block:r}=t;let i=t.startPosition,s=[i-1,i];r.getBlockBreakPosition()===t.startLocation.offset?(r.breaksOnReturn()&&t.nextCharacter===`
90`?i+=1:n=n.removeTextAtRange(s),s=[i,i]):t.nextCharacter===`
91`?t.previousCharacter===`
92`?s=[i-1,i+1]:(s=[i,i+1],i+=1):t.startLocation.offset-1!=0&&(i+=1);const o=new Ce([r.removeLastAttribute().copyWithoutText()]);return this.setDocument(n.insertDocumentAtRange(o,s)),this.setSelection(i)}getPreviousBlock(){const t=this.getLocationRange();if(t){const{index:n}=t[0];if(n>0)return this.document.getBlockAtIndex(n-1)}}getBlock(){const t=this.getLocationRange();if(t)return this.document.getBlockAtIndex(t[0].index)}getAttachmentAtRange(t){const n=this.document.getDocumentAtRange(t);if(n.toString()==="".concat("",`
93`))return n.getAttachments()[0]}notifyDelegateOfCurrentAttributesChange(){var t,n;return(t=this.delegate)===null||t===void 0||(n=t.compositionDidChangeCurrentAttributes)===null||n===void 0?void 0:n.call(t,this.currentAttributes)}notifyDelegateOfInsertionAtRange(t){var n,r;return(n=this.delegate)===null||n===void 0||(r=n.compositionDidPerformInsertionAtRange)===null||r===void 0?void 0:r.call(n,t)}translateUTF16PositionFromOffset(t,n){const r=this.document.toUTF16String(),i=r.offsetFromUCS2Offset(t);return r.offsetToUCS2Offset(i+n)}}yn.proxyMethod("getSelectionManager().getPointRange"),yn.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),yn.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),yn.proxyMethod("getSelectionManager().locationIsCursorTarget"),yn.proxyMethod("getSelectionManager().selectionIsExpanded"),yn.proxyMethod("delegate?.getSelectionManager");class Cl extends Ft{constructor(t){super(...arguments),this.composition=t,this.undoEntries=[],this.redoEntries=[]}recordUndoEntry(t){let{context:n,consolidatable:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.undoEntries.slice(-1)[0];if(!r||!ux(i,t,n)){const s=this.createEntry({description:t,context:n});this.undoEntries.push(s),this.redoEntries=[]}}undo(){const t=this.undoEntries.pop();if(t){const n=this.createEntry(t);return this.redoEntries.push(n),this.composition.loadSnapshot(t.snapshot)}}redo(){const t=this.redoEntries.pop();if(t){const n=this.createEntry(t);return this.undoEntries.push(n),this.composition.loadSnapshot(t.snapshot)}}canUndo(){return this.undoEntries.length>0}canRedo(){return this.redoEntries.length>0}createEntry(){let{description:t,context:n}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{description:t==null?void 0:t.toString(),context:JSON.stringify(n),snapshot:this.composition.getSnapshot()}}}const ux=(e,t,n)=>(e==null?void 0:e.description)===(t==null?void 0:t.toString())&&(e==null?void 0:e.context)===JSON.stringify(n),sa="attachmentGallery";class Jp{constructor(t){this.document=t.document,this.selectedRange=t.selectedRange}perform(){return this.removeBlockAttribute(),this.applyBlockAttribute()}getSnapshot(){return{document:this.document,selectedRange:this.selectedRange}}removeBlockAttribute(){return this.findRangesOfBlocks().map((t=>this.document=this.document.removeAttributeAtRange(sa,t)))}applyBlockAttribute(){let t=0;
vendor: 4,696 bytes, lines 93-95
93this.findRangesOfPieces().forEach((n=>{n[1]-n[0]>1&&(n[0]+=t,n[1]+=t,this.document.getCharacterAtPosition(n[1])!==`
94`&&(this.document=this.document.insertBlockBreakAtRange(n[1]),n[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),n[1]++,t++),n[0]!==0&&this.document.getCharacterAtPosition(n[0]-1)!==`
95`&&(this.document=this.document.insertBlockBreakAtRange(n[0]),n[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),n[0]++,t++),this.document=this.document.applyBlockAttributeAtRange(sa,!0,n))}))}findRangesOfBlocks(){return this.document.findRangesForBlockAttribute(sa)}findRangesOfPieces(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})}moveSelectedRangeForward(){this.selectedRange[0]+=1,this.selectedRange[1]+=1}}const Kp=function(e){const t=new Jp(e);return t.perform(),t.getSnapshot()},cx=[Kp];class Xp{constructor(t,n,r){this.insertFiles=this.insertFiles.bind(this),this.composition=t,this.selectionManager=n,this.element=r,this.undoManager=new Cl(this.composition),this.filters=cx.slice(0)}loadDocument(t){return this.loadSnapshot({document:t,selectedRange:[0,0]})}loadHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=Li.parse(t,{referenceElement:this.element}).getDocument();return this.loadDocument(n)}loadJSON(t){let{document:n,selectedRange:r}=t;return n=Ce.fromJSON(n),this.loadSnapshot({document:n,selectedRange:r})}loadSnapshot(t){return this.undoManager=new Cl(this.composition),this.composition.loadSnapshot(t)}getDocument(){return this.composition.document}getSelectedDocument(){return this.composition.getSelectedDocument()}getSnapshot(){return this.composition.getSnapshot()}toJSON(){return this.getSnapshot()}deleteInDirection(t){return this.composition.deleteInDirection(t)}insertAttachment(t){return this.composition.insertAttachment(t)}insertAttachments(t){return this.composition.insertAttachments(t)}insertDocument(t){return this.composition.insertDocument(t)}insertFile(t){return this.composition.insertFile(t)}insertFiles(t){return this.composition.insertFiles(t)}insertHTML(t){return this.composition.insertHTML(t)}insertString(t){return this.composition.insertString(t)}insertText(t){return this.composition.insertText(t)}insertLineBreak(){return this.composition.insertLineBreak()}getSelectedRange(){return this.composition.getSelectedRange()}getPosition(){return this.composition.getPosition()}getClientRectAtPosition(t){const n=this.getDocument().locationRangeFromRange([t,t+1]);return this.selectionManager.getClientRectAtLocationRange(n)}expandSelectionInDirection(t){return this.composition.expandSelectionInDirection(t)}moveCursorInDirection(t){return this.composition.moveCursorInDirection(t)}setSelectedRange(t){return this.composition.setSelectedRange(t)}activateAttribute(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this.composition.setCurrentAttribute(t,n)}attributeIsActive(t){return this.composition.hasCurrentAttribute(t)}canActivateAttribute(t){return this.composition.canSetCurrentAttribute(t)}deactivateAttribute(t){return this.composition.removeCurrentAttribute(t)}setHTMLAtributeAtPosition(t,n,r){this.composition.setHTMLAtributeAtPosition(t,n,r)}canDecreaseNestingLevel(){return this.composition.canDecreaseNestingLevel()}canIncreaseNestingLevel(){return this.composition.canIncreaseNestingLevel()}decreaseNestingLevel(){if(this.canDecreaseNestingLevel())return this.composition.decreaseNestingLevel()}increaseNestingLevel(){if(this.canIncreaseNestingLevel())return this.composition.increaseNestingLevel()}canRedo(){return this.undoManager.canRedo()}canUndo(){return this.undoManager.canUndo()}recordUndoEntry(t){let{context:n,consolidatable:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.undoManager.recordUndoEntry(t,{context:n,consolidatable:r})}redo(){if(this.canRedo())return this.undoManager.redo()}undo(){if(this.canUndo())return this.undoManager.undo()}}class Zp{constructor(t){this.element=t}findLocationFromContainerAndOffset(t,n){let{strict:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{strict:!0},i=0,s=!1;const o={index:0,offset:0},a=this.findAttachmentElementParentForNode(t);a&&(t=a.parentNode,n=Jo(a));const l=Ks(this.element,{usingFilter:Qp});for(;l.nextNode();){const u=l.currentNode;if(u===t&&_i(t)){$r(u)||(o.offset+=n);break}if(u.parentNode===t){if(i++===n)break}else if(!zn(t,u)&&i>0)break;yd(u,{strict:r})?(s&&o.index++,o.offset=0,s=!0):o.offset+=oa(u)}return o}findContainerAndOffsetFromLocation(t){let n,r;if(t.index===0&&t.offset===0){for(n=this.element,r=0;n.firstChild;)if(n=n.firstChild,Ko(n)){r=1;break}return[n,r]}let[i,s]=this.findNodeAndOffsetFromLocation(t);
95if(i){if(_i(i))oa(i)===0?(n=i.parentNode.parentNode,r=Jo(i.parentNode),$r(i,{name:"right"})&&r++):(n=i,r=t.offset-s);else{if(n=i.parentNode,!yd(i.previousSibling)&&!Ko(n))for(;i===n.lastChild&&(i=n,n=n.parentNode,!Ko(n)););r=Jo(i),t.offset!==0&&r++}return[n,r]}}findNodeAndOffsetFromLocation(t){let n,r,i=0;for(const s of this.getSignificantNodesForIndex(t.index)){const o=oa(s);if(t.offset<=i+o)if(_i(s)){if(n=s,r=i,t.offset===r&&$r(n))break}else n||(n=s,r=i);if(i+=o,i>t.offset)break}return[n,r]}findAttachmentElementParentForNode(t){for(;t&&t!==this.element;){if(Zn(t))return t;t=t.parentNode}}getSignificantNodesForIndex(t){const n=[],r=Ks(this.element,{usingFilter:dx});let i=!1;for(;r.nextNode();){const o=r.currentNode;var s;if(Pr(o)){if(s!=null?s++:s=0,s===t)i=!0;else if(i)break}else i&&n.push(o)}return n}}const oa=function(e){return e.nodeType===Node.TEXT_NODE?$r(e)?0:e.textContent.length:Qt(e)==="br"||Zn(e)?1:0},dx=function(e){return hx(e)===NodeFilter.FILTER_ACCEPT?Qp(e):NodeFilter.FILTER_REJECT},hx=function(e){return Rp(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Qp=function(e){return Zn(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT};class tm{createDOMRangeFromPoint(t){let n,{x:r,y:i}=t;if(document.caretPositionFromPoint){const{offsetNode:s,offset:o}=document.caretPositionFromPoint(r,i);return n=document.createRange(),n.setStart(s,o),n}if(document.caretRangeFromPoint)return document.caretRangeFromPoint(r,i);if(document.body.createTextRange){const s=yi();try{const o=document.body.createTextRange();o.moveToPoint(r,i),o.select()}catch(o){}return n=yi(),Np(s),n}}getClientRectsForDOMRange(t){const n=Array.from(t.getClientRects());return[n[0],n[n.length-1]]}}class Gn extends Ft{constructor(t){super(...arguments),this.didMouseDown=this.didMouseDown.bind(this),this.selectionDidChange=this.selectionDidChange.bind(this),this.element=t,this.locationMapper=new Zp(this.element),this.pointMapper=new tm,this.lockCount=0,Ot("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}getLocationRange(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.strict===!1?this.createLocationRangeFromDOMRange(yi()):t.ignoreLock?this.currentLocationRange:this.lockedLocationRange?this.lockedLocationRange:this.currentLocationRange}setLocationRange(t){if(this.lockedLocationRange)return;t=pt(t);const n=this.createDOMRangeFromLocationRange(t);n&&(Np(n),this.updateCurrentLocationRange(t))}setLocationRangeFromPointRange(t){t=pt(t);const n=this.getLocationAtPoint(t[0]),r=this.getLocationAtPoint(t[1]);this.setLocationRange([n,r])}getClientRectAtLocationRange(t){const n=this.createDOMRangeFromLocationRange(t);if(n)return this.getClientRectsForDOMRange(n)[1]}locationIsCursorTarget(t){const n=Array.from(this.findNodeAndOffsetFromLocation(t))[0];return $r(n)}lock(){this.lockCount++==0&&(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange())}unlock(){if(--this.lockCount==0){const{lockedLocationRange:t}=this;if(this.lockedLocationRange=null,t!=null)return this.setLocationRange(t)}}clearSelection(){var t;return(t=Fp())===null||t===void 0?void 0:t.removeAllRanges()}selectionIsCollapsed(){var t;return((t=yi())===null||t===void 0?void 0:t.collapsed)===!0}selectionIsExpanded(){return!this.selectionIsCollapsed()}createLocationRangeFromDOMRange(t,n){if(t==null||!this.domRangeWithinElement(t))return;const r=this.findLocationFromContainerAndOffset(t.startContainer,t.startOffset,n);if(!r)return;const i=t.collapsed?void 0:this.findLocationFromContainerAndOffset(t.endContainer,t.endOffset,n);return pt([r,i])}didMouseDown(){return this.pauseTemporarily()}pauseTemporarily(){let t;this.paused=!0;const n=()=>
vendor: 4,337 bytes, line 95
95{if(this.paused=!1,clearTimeout(r),Array.from(t).forEach((i=>{i.destroy()})),zn(document,this.element))return this.selectionDidChange()},r=setTimeout(n,200);t=["mousemove","keydown"].map((i=>Ot(i,{onElement:document,withCallback:n})))}selectionDidChange(){if(!this.paused&&!vu(this.element))return this.updateCurrentLocationRange()}updateCurrentLocationRange(t){var n,r;if((t!=null?t:t=this.createLocationRangeFromDOMRange(yi()))&&!Xs(t,this.currentLocationRange))return this.currentLocationRange=t,(n=this.delegate)===null||n===void 0||(r=n.locationRangeDidChange)===null||r===void 0?void 0:r.call(n,this.currentLocationRange.slice(0))}createDOMRangeFromLocationRange(t){const n=this.findContainerAndOffsetFromLocation(t[0]),r=on(t)?n:this.findContainerAndOffsetFromLocation(t[1])||n;if(n!=null&&r!=null){const i=document.createRange();return i.setStart(...Array.from(n||[])),i.setEnd(...Array.from(r||[])),i}}getLocationAtPoint(t){const n=this.createDOMRangeFromPoint(t);var r;if(n)return(r=this.createLocationRangeFromDOMRange(n))===null||r===void 0?void 0:r[0]}domRangeWithinElement(t){return t.collapsed?zn(this.element,t.startContainer):zn(this.element,t.startContainer)&&zn(this.element,t.endContainer)}}Gn.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),Gn.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),Gn.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),Gn.proxyMethod("pointMapper.createDOMRangeFromPoint"),Gn.proxyMethod("pointMapper.getClientRectsForDOMRange");var em=Object.freeze({__proto__:null,Attachment:Kr,AttachmentManager:Wp,AttachmentPiece:Mr,Block:qe,Composition:yn,Document:Ce,Editor:Xp,HTMLParser:Li,HTMLSanitizer:po,LineBreakInsertion:Yp,LocationMapper:Zp,ManagedAttachment:Bt,Piece:gr,PointMapper:tm,SelectionManager:Gn,SplittableList:Qs,StringPiece:Su,Text:ke,UndoManager:Cl}),fx=Object.freeze({__proto__:null,ObjectView:mr,AttachmentView:Au,BlockView:Hp,DocumentView:mo,PieceView:Up,PreviewableAttachmentView:jp,TextView:qp});const{lang:aa,css:qn,keyNames:px}=Hi,la=function(e){return function(){const t=e.apply(this,arguments);t.do(),this.undos||(this.undos=[]),this.undos.push(t.undo)}};class nm extends Ft{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(...arguments),he(this,"makeElementMutable",la((()=>({do:()=>{this.element.dataset.trixMutable=!0},undo:()=>delete this.element.dataset.trixMutable})))),he(this,"addToolbar",la((()=>{const s=ut({tagName:"div",className:qn.attachmentToolbar,data:{trixMutable:!0},childNodes:ut({tagName:"div",className:"trix-button-row",childNodes:ut({tagName:"span",className:"trix-button-group trix-button-group--actions",childNodes:ut({tagName:"button",className:"trix-button trix-button--remove",textContent:aa.remove,attributes:{title:aa.remove},data:{trixAction:"remove"}})})})});return this.attachment.isPreviewable()&&s.appendChild(ut({tagName:"div",className:qn.attachmentMetadataContainer,childNodes:ut({tagName:"span",className:qn.attachmentMetadata,childNodes:[ut({tagName:"span",className:qn.attachmentName,textContent:this.attachment.getFilename(),attributes:{title:this.attachment.getFilename()}}),ut({tagName:"span",className:qn.attachmentSize,textContent:this.attachment.getFormattedFilesize()})]})})),Ot("click",{onElement:s,withCallback:this.didClickToolbar}),Ot("click",{onElement:s,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),vi("trix-attachment-before-toolbar",{onElement:this.element,attributes:{toolbar:s,attachment:this.attachment}}),{do:()=>this.element.appendChild(s),undo:()=>Rn(s)}}))),he(this,"installCaptionEditor",la((()=>{const s=ut({tagName:"textarea",className:qn.attachmentCaptionEditor,attributes:{placeholder:aa.captionPlaceholder},data:{trixMutable:!0}});s.value=this.attachmentPiece.getCaption();const o=s.cloneNode();o.classList.add("trix-autoresize-clone"),o.tabIndex=-1;const a=function(){o.value=s.value,s.style.height=o.scrollHeight+"px"};Ot("input",{onElement:s,withCallback:a}),Ot("input",{onElement:s,withCallback:this.didInputCaption}),Ot("keydown",{onElement:s,withCallback:this.didKeyDownCaption}),Ot("change",{onElement:s,withCallback:this.didChangeCaption}),Ot("blur",{onElement:s,withCallback:this.didBlurCaption});const l=this.element.querySelector("figcaption"),u=l.cloneNode();return{do:()=>
95{if(l.style.display="none",u.appendChild(s),u.appendChild(o),u.classList.add("".concat(qn.attachmentCaption,"--editing")),l.parentElement.insertBefore(u,l),a(),this.options.editCaption)return yu((()=>s.focus()))},undo(){Rn(u),l.style.display=null}}}))),this.didClickToolbar=this.didClickToolbar.bind(this),this.didClickActionButton=this.didClickActionButton.bind(this),this.didKeyDownCaption=this.didKeyDownCaption.bind(this),this.didInputCaption=this.didInputCaption.bind(this),this.didChangeCaption=this.didChangeCaption.bind(this),this.didBlurCaption=this.didBlurCaption.bind(this),this.attachmentPiece=t,this.element=n,this.container=r,this.options=i,this.attachment=this.attachmentPiece.attachment,Qt(this.element)==="a"&&(this.element=this.element.firstChild),this.install()}install(){this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()&&this.installCaptionEditor()}uninstall(){var t;let n=this.undos.pop();for(this.savePendingCaption();n;)n(),n=this.undos.pop();(t=this.delegate)===null||t===void 0||t.didUninstallAttachmentEditor(this)}savePendingCaption(){if(this.pendingCaption!=null){const s=this.pendingCaption;var t,n,r,i;this.pendingCaption=null,s?(t=this.delegate)===null||t===void 0||(n=t.attachmentEditorDidRequestUpdatingAttributesForAttachment)===null||n===void 0||n.call(t,{caption:s},this.attachment):(r=this.delegate)===null||r===void 0||(i=r.attachmentEditorDidRequestRemovingAttributeForAttachment)===null||i===void 0||i.call(r,"caption",this.attachment)}}didClickToolbar(t){return t.preventDefault(),t.stopPropagation()}didClickActionButton(t){var n;if(t.target.getAttribute("data-trix-action")==="remove")return(n=this.delegate)===null||n===void 0?void 0:n.attachmentEditorDidRequestRemovalOfAttachment(this.attachment)}didKeyDownCaption(t){var n,r;if(px[t.keyCode]==="return")return t.preventDefault(),this.savePendingCaption(),(n=this.delegate)===null||n===void 0||(r=n.attachmentEditorDidRequestDeselectingAttachment)===null||r===void 0?void 0:r.call(n,this.attachment)}didInputCaption(t){this.pendingCaption=t.target.value.replace(/\s/g," ").trim()}didChangeCaption(t){return this.savePendingCaption()}didBlurCaption(t){return this.savePendingCaption()}}class rm extends Ft{constructor(t,n){super(...arguments),this.didFocus=this.didFocus.bind(this),this.didBlur=this.didBlur.bind(this),this.didClickAttachment=this.didClickAttachment.bind(this),this.element=t,this.composition=n,this.documentView=new mo(this.composition.document,{element:this.element}),Ot("focus",{onElement:this.element,withCallback:this.didFocus}),Ot("blur",{onElement:this.element,withCallback:this.didBlur}),Ot("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),Ot("mousedown",{onElement:this.element,matchingSelector:Xn,withCallback:this.didClickAttachment}),Ot("click",{onElement:this.element,matchingSelector:"a".concat(Xn),preventDefault:!0})}didFocus(t){var n;const r=()=>{var i,s;if(!this.focused)return this.focused=!0,(i=this.delegate)===null||i===void 0||(s=i.compositionControllerDidFocus)===null||s===void 0?void 0:s.call(i)};return((n=this.blurPromise)===null||n===void 0?void 0:n.then(r))||r()}didBlur(t){this.blurPromise=new Promise((n=>yu((()=>{var r,i;return vu(this.element)||(this.focused=null,(r=this.delegate)===null||r===void 0||(i=r.compositionControllerDidBlur)===null||i===void 0||i.call(r)),this.blurPromise=null,n()}))))}didClickAttachment(t,n){var r,i;const s=this.findAttachmentForElement(n),o=!!On(t.target,{matchingSelector:"figcaption"});return(r=this.delegate)===null||r===void 0||(i=r.compositionControllerDidSelectAttachment)===null||i===void 0?void 0:i.call(r,s,{editCaption:o})}getSerializableElement(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element}render(){var t,n,r,i,s,o;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&((r=this.delegate)===null||r===void 0||(i=r.compositionControllerWillSyncDocumentView)===null||i===void 0||i.call(r),this.documentView.sync(),(s=this.delegate)===null||s===void 0||(o=s.compositionControllerDidSyncDocumentView)===null||o===void 0||o.call(s)),(t=this.delegate)===null||t===void 0||(n=t.compositionControllerDidRender)===null||n===void 0?void 0:n.call(t)}rerenderViewForObject(t){return this.invalidateViewForObject(t),this.render()}invalidateViewForObject(t){return this.documentView.invalidateViewForObject(t)}isViewCachingEnabled(){return this.documentView.isViewCachingEnabled()}enableViewCaching(){return this.documentView.enableViewCaching()}disableViewCaching(){return this.documentView.disableViewCaching()}refreshViewCache(){return this.documentView.garbageCollectCachedViews()}isEditingAttachment(){return!!this.attachmentEditor}installAttachmentEditorForAttachment(t,n){var r;if(((r=this.attachmentEditor)===null||r===void 0?void 0:r.attachment)===t)return;
95const i=this.documentView.findElementForObject(t);if(!i)return;this.uninstallAttachmentEditor();const s=this.composition.document.getAttachmentPieceForAttachment(t);this.attachmentEditor=new nm(s,i,this.element,n),this.attachmentEditor.delegate=this}uninstallAttachmentEditor(){var t;return(t=this.attachmentEditor)===null||t===void 0?void 0:t.uninstall()}didUninstallAttachmentEditor(){return this.attachmentEditor=null,this.render()}attachmentEditorDidRequestUpdatingAttributesForAttachment(t,n){var r,i;return(r=this.delegate)===null||r===void 0||(i=r.compositionControllerWillUpdateAttachment)===null||i===void 0||i.call(r,n),this.composition.updateAttributesForAttachment(t,n)}attachmentEditorDidRequestRemovingAttributeForAttachment(t,n){var r,i;return(r=this.delegate)===null||r===void 0||(i=r.compositionControllerWillUpdateAttachment)===null||i===void 0||i.call(r,n),this.composition.removeAttributeForAttachment(t,n)}attachmentEditorDidRequestRemovalOfAttachment(t){var n,r;return(n=this.delegate)===null||n===void 0||(r=n.compositionControllerDidRequestRemovalOfAttachment)===null||r===void 0?void 0:r.call(n,t)}attachmentEditorDidRequestDeselectingAttachment(t){var n,r;return(n=this.delegate)===null||n===void 0||(r=n.compositionControllerDidRequestDeselectingAttachment)===null||r===void 0?void 0:r.call(n,t)}canSyncDocumentView(){return!this.isEditingAttachment()}findAttachmentForElement(t){return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId,10))}}class im extends Ft{}const sm="data-trix-mutable",mx="[".concat(sm,"]"),gx={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};class om extends Ft{constructor(t){super(t),this.didMutate=this.didMutate.bind(this),this.element=t,this.observer=new window.MutationObserver(this.didMutate),this.start()}start(){return this.reset(),this.observer.observe(this.element,gx)}stop(){return this.observer.disconnect()}didMutate(t){var n,r;if(this.mutations.push(...Array.from(this.findSignificantMutations(t)||[])),this.mutations.length)return(n=this.delegate)===null||n===void 0||(r=n.elementDidMutate)===null||r===void 0||r.call(n,this.getMutationSummary()),this.reset()}reset(){this.mutations=[]}findSignificantMutations(t){return t.filter((n=>this.mutationIsSignificant(n)))}mutationIsSignificant(t){if(this.nodeIsMutable(t.target))return!1;for(const n of Array.from(this.nodesModifiedByMutation(t)))if(this.nodeIsSignificant(n))return!0;return!1}nodeIsSignificant(t){return t!==this.element&&!this.nodeIsMutable(t)&&!Rp(t)}nodeIsMutable(t){return On(t,{matchingSelector:mx})}nodesModifiedByMutation(t){const n=[];switch(t.type){case"attributes":t.attributeName!==sm&&n.push(t.target);break;case"characterData":n.push(t.target.parentNode),n.push(t.target);break;case"childList":n.push(...Array.from(t.addedNodes||[])),n.push(...Array.from(t.removedNodes||[]))}return n}getMutationSummary(){return this.getTextMutationSummary()}getTextMutationSummary(){const{additions:t,deletions:n}=this.getTextChangesFromCharacterData(),r=this.getTextChangesFromChildList();Array.from(r.additions).forEach((a=>{Array.from(t).includes(a)||t.push(a)})),n.push(...Array.from(r.deletions||[]));const i={},s=t.join("");s&&(i.textAdded=s);const o=n.join("");return o&&(i.textDeleted=o),i}getMutationsByType(t){return Array.from(this.mutations).filter((n=>n.type===t))}getTextChangesFromChildList(){let t,n;const r=[],i=[];return Array.from(this.getMutationsByType("childList")).forEach((s=>{r.push(...Array.from(s.addedNodes||[])),i.push(...Array.from(s.removedNodes||[]))})),r.length===0&&i.length===1&&Pr(i[0])?(t=[],n=[`
96`]):(t=xl(r),n=xl(i)),{additions:t.filter(((s,o)=>s!==n[o])).map(fi),deletions:n.filter(((s,o)=>s!==t[o])).map(fi)}}getTextChangesFromCharacterData(){let t,n;const r=this.getMutationsByType("characterData");if(r.length){const i=r[0],s=r[r.length-1],o=(function(a,l){let u,c;return a=$i.box(a),(l=$i.box(l)).length<a.length?[c,u]=Ed(a,l):[u,c]=Ed(l,a),{added:u,removed:c}})(fi(i.oldValue),fi(s.target.data));t=o.added,n=o.removed}return{additions:t?[t]:[],deletions:n?[n]:[]}}}const xl=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const n of Array.from(e))switch(n.nodeType){case Node.TEXT_NODE:t.push(n.data);break;case Node.ELEMENT_NODE:Qt(n)==="br"?t.push(`
97`):t.push(...Array.from(xl(n.childNodes)||[]))}return t};class am extends Zs{constructor(t){super(...arguments),this.file=t}perform(t){const n=new FileReader;return n.onerror=()=>t(!1),n.onload=()=>{n.onerror=null;try{n.abort()}catch(r){}return t(!0,this.file)},n.readAsArrayBuffer(this.file)}}class vx{constructor(t){this.element=t}shouldIgnore(t){return!!qi.samsungAndroid&&(this.previousEvent=this.event,this.event=t,this.checkSamsungKeyboardBuggyModeStart(),this.checkSamsungKeyboardBuggyModeEnd(),this.buggyMode)}checkSamsungKeyboardBuggyModeStart(){this.insertingLongTextAfterUnidentifiedChar(
97)&&bx(this.element.innerText,this.event.data)&&(this.buggyMode=!0,this.event.preventDefault())}checkSamsungKeyboardBuggyModeEnd(){this.buggyMode&&this.event.inputType!=="insertText"&&(this.buggyMode=!1)}insertingLongTextAfterUnidentifiedChar(){var t;return this.isBeforeInputInsertText()&&this.previousEventWasUnidentifiedKeydown()&&((t=this.event.data)===null||t===void 0?void 0:t.length)>50}isBeforeInputInsertText(){return this.event.type==="beforeinput"&&this.event.inputType==="insertText"}previousEventWasUnidentifiedKeydown(){var t,n;return((t=this.previousEvent)===null||t===void 0?void 0:t.type)==="keydown"&&((n=this.previousEvent)===null||n===void 0?void 0:n.key)==="Unidentified"}}const bx=(e,t)=>Nd(e)===Nd(t),_x=new RegExp("(".concat("","|").concat(fo,"|").concat(Cn,"|\\s)+"),"g"),Nd=e=>e.replace(_x," ").trim();class go extends Ft{constructor(t){super(...arguments),this.element=t,this.mutationObserver=new om(this.element),this.mutationObserver.delegate=this,this.flakyKeyboardDetector=new vx(this.element);for(const n in this.constructor.events)Ot(n,{onElement:this.element,withCallback:this.handlerFor(n)})}elementDidMutate(t){}editorWillSyncDocumentView(){return this.mutationObserver.stop()}editorDidSyncDocumentView(){return this.mutationObserver.start()}requestRender(){var t,n;return(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidRequestRender)===null||n===void 0?void 0:n.call(t)}requestReparse(){var t,n;return(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidRequestReparse)===null||n===void 0||n.call(t),this.requestRender()}attachFiles(t){const n=Array.from(t).map((r=>new am(r)));return Promise.all(n).then((r=>{this.handleInput((function(){var i,s;return(i=this.delegate)===null||i===void 0||i.inputControllerWillAttachFiles(),(s=this.responder)===null||s===void 0||s.insertFiles(r),this.requestRender()}))}))}handlerFor(t){return n=>{n.defaultPrevented||this.handleInput((()=>{if(!vu(this.element)){if(this.flakyKeyboardDetector.shouldIgnore(n))return;this.eventName=t,this.constructor.events[t].call(this,n)}}))}}handleInput(t){try{var n;(n=this.delegate)===null||n===void 0||n.inputControllerWillHandleInput(),t.call(this)}finally{var r;(r=this.delegate)===null||r===void 0||r.inputControllerDidHandleInput()}}createLinkHTML(t,n){const r=document.createElement("a");return r.href=t,r.textContent=n||t,r.outerHTML}}var ua;he(go,"events",{});const{browser:yx,keyNames:lm}=Hi;let wx=0;class en extends go{constructor(){super(...arguments),this.resetInputSummary()}setInputSummary(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.inputSummary.eventName=this.eventName;for(const n in t){const r=t[n];this.inputSummary[n]=r}return this.inputSummary}resetInputSummary(){this.inputSummary={}}reset(){return this.resetInputSummary(),ar.reset()}elementDidMutate(t){var n,r;return this.isComposing()?(n=this.delegate)===null||n===void 0||(r=n.inputControllerDidAllowUnhandledInput)===null||r===void 0?void 0:r.call(n):this.handleInput((function(){return this.mutationIsSignificant(t)&&(this.mutationIsExpected(t)?this.requestRender():this.requestReparse()),this.reset()}))}mutationIsExpected(t){let{textAdded:n,textDeleted:r}=t;if(this.inputSummary.preferDocument)return!0;const i=n!=null?n===this.inputSummary.textAdded:!this.inputSummary.textAdded,s=r!=null?this.inputSummary.didDelete:!this.inputSummary.didDelete,o=[`
98`,` 
99`].includes(n)&&!i,a=r===`
100`&&!s;if(o&&!a||a&&!o){const u=this.getSelectedRange();if(u){var l;const c=o?n.replace(/\n$/,"").length||-1:(n==null?void 0:n.length)||1;if((l=this.responder)!==null&&l!==void 0&&l.positionIsBlockBreak(u[1]+c))return!0}}return i&&s}mutationIsSignificant(t){var n;const r=Object.keys(t).length>0,i=((n=this.compositionInput)===null||n===void 0?void 0:n.getEndData())==="";return r||!i}getCompositionInput(){if(this.isComposing())return this.compositionInput;this.compositionInput=new bn(this)}isComposing(){return this.compositionInput&&!this.compositionInput.isEnded()}deleteInDirection(t,n){var r;return((r=this.responder)===null||r===void 0?void 0:r.deleteInDirection(t))!==!1?this.setInputSummary({didDelete:!0}):n?(n.preventDefault(),this.requestRender()):void 0}serializeSelectionToDataTransfer(t){var n;if(!(function(i){if(i==null||!i.setData)return!1;for(const s in xd){const o=xd[s];try{if(i.setData(s,o),!i.getData(s)===o)return!1}catch(a){return!1}}return!0})(t))return;const r=(n=this.responder)===null||n===void 0?void 0:n.getSelectedDocument().toSerializableDocument();return t.setData("application/x-trix-document",JSON.stringify(r)),t.setData("text/html",mo.render(r).innerHTML),t.setData("text/plain",r.toString().replace(/\n$/,"")),!0}canAcceptDataTransfer(t){const n={};
100return Array.from((t==null?void 0:t.types)||[]).forEach((r=>{n[r]=!0})),n.Files||n["application/x-trix-document"]||n["text/html"]||n["text/plain"]}getPastedHTMLUsingHiddenElement(t){const n=this.getSelectedRange(),r={position:"absolute",left:"".concat(window.pageXOffset,"px"),top:"".concat(window.pageYOffset,"px"),opacity:0},i=ut({style:r,tagName:"div",editable:!0});return document.body.appendChild(i),i.focus(),requestAnimationFrame((()=>{const s=i.innerHTML;return Rn(i),this.setSelectedRange(n),t(s)}))}}he(en,"events",{keydown(e){this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0;const t=lm[e.keyCode];if(t){var n;let i=this.keys;["ctrl","alt","shift","meta"].forEach((s=>{var o;e["".concat(s,"Key")]&&(s==="ctrl"&&(s="control"),i=(o=i)===null||o===void 0?void 0:o[s])})),((n=i)===null||n===void 0?void 0:n[t])!=null&&(this.setInputSummary({keyName:t}),ar.reset(),i[t].call(this,e))}if(Bp(e)){const i=String.fromCharCode(e.keyCode).toLowerCase();if(i){var r;const s=["alt","shift"].map((o=>{if(e["".concat(o,"Key")])return o})).filter((o=>o));s.push(i),(r=this.delegate)!==null&&r!==void 0&&r.inputControllerDidReceiveKeyboardCommand(s)&&e.preventDefault()}}},keypress(e){if(this.inputSummary.eventName!=null||e.metaKey||e.ctrlKey&&!e.altKey)return;const t=Ax(e);var n,r;return t?((n=this.delegate)===null||n===void 0||n.inputControllerWillPerformTyping(),(r=this.responder)===null||r===void 0||r.insertString(t),this.setInputSummary({textAdded:t,didDelete:this.selectionIsExpanded()})):void 0},textInput(e){const{data:t}=e,{textAdded:n}=this.inputSummary;if(n&&n!==t&&n.toUpperCase()===t){var r;const i=this.getSelectedRange();return this.setSelectedRange([i[0],i[1]+n.length]),(r=this.responder)===null||r===void 0||r.insertString(t),this.setInputSummary({textAdded:t}),this.setSelectedRange(i)}},dragenter(e){e.preventDefault()},dragstart(e){var t,n;return this.serializeSelectionToDataTransfer(e.dataTransfer),this.draggedRange=this.getSelectedRange(),(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidStartDrag)===null||n===void 0?void 0:n.call(t)},dragover(e){if(this.draggedRange||this.canAcceptDataTransfer(e.dataTransfer)){e.preventDefault();const r={x:e.clientX,y:e.clientY};var t,n;if(!Jr(r,this.draggingPoint))return this.draggingPoint=r,(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidReceiveDragOverPoint)===null||n===void 0?void 0:n.call(t,this.draggingPoint)}},dragend(e){var t,n;(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidCancelDrag)===null||n===void 0||n.call(t),this.draggedRange=null,this.draggingPoint=null},drop(e){var t,n;e.preventDefault();const r=(t=e.dataTransfer)===null||t===void 0?void 0:t.files,i=e.dataTransfer.getData("application/x-trix-document"),s={x:e.clientX,y:e.clientY};if((n=this.responder)===null||n===void 0||n.setLocationRangeFromPointRange(s),r!=null&&r.length)this.attachFiles(r);else if(this.draggedRange){var o,a;(o=this.delegate)===null||o===void 0||o.inputControllerWillMoveText(),(a=this.responder)===null||a===void 0||a.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()}else if(i){var l;const u=Ce.fromJSONString(i);(l=this.responder)===null||l===void 0||l.insertDocument(u),this.requestRender()}this.draggedRange=null,this.draggingPoint=null},cut(e){var t,n;if((t=this.responder)!==null&&t!==void 0&&t.selectionIsExpanded()&&(this.serializeSelectionToDataTransfer(e.clipboardData)&&e.preventDefault(),(n=this.delegate)===null||n===void 0||n.inputControllerWillCutText(),this.deleteInDirection("backward"),e.defaultPrevented))return this.requestRender()},copy(e){var t;(t=this.responder)!==null&&t!==void 0&&t.selectionIsExpanded()&&this.serializeSelectionToDataTransfer(e.clipboardData)&&e.preventDefault()},paste(e){const t=e.clipboardData||e.testClipboardData,n={clipboard:t};if(!t||Sx(e))return void this.getPastedHTMLUsingHiddenElement((C=>{var P,k,L;return n.type="text/html",n.html=C,(P=this.delegate)===null||P===void 0||P.inputControllerWillPaste(n),(k=this.responder)===null||k===void 0||k.insertHTML(n.html),this.requestRender(),(L=this.delegate)===null||L===void 0?void 0:L.inputControllerDidPaste(n)}));const r=t.getData("URL"),i=t.getData("text/html"),s=t.getData("public.url-name");if(r){var o,a,l;let C;n.type="text/html",C=s?Cu(s).trim():r,n.html=this.createLinkHTML(r,C),(o=this.delegate)===null||o===void 0||o.inputControllerWillPaste(n),this.setInputSummary({textAdded:C,didDelete:this.selectionIsExpanded()}),(a=this.responder)===null||a===void 0||a.insertHTML(n.html),this.requestRender(),(l=this.delegate)===null||l===void 0||l.inputControllerDidPaste(n)}else if(Lp(t)){var u,c,d;
100n.type="text/plain",n.string=t.getData("text/plain"),(u=this.delegate)===null||u===void 0||u.inputControllerWillPaste(n),this.setInputSummary({textAdded:n.string,didDelete:this.selectionIsExpanded()}),(c=this.responder)===null||c===void 0||c.insertString(n.string),this.requestRender(),(d=this.delegate)===null||d===void 0||d.inputControllerDidPaste(n)}else if(i){var h,v,f;n.type="text/html",n.html=i,(h=this.delegate)===null||h===void 0||h.inputControllerWillPaste(n),(v=this.responder)===null||v===void 0||v.insertHTML(n.html),this.requestRender(),(f=this.delegate)===null||f===void 0||f.inputControllerDidPaste(n)}else if(Array.from(t.types).includes("Files")){var g,_;const C=(g=t.items)===null||g===void 0||(g=g[0])===null||g===void 0||(_=g.getAsFile)===null||_===void 0?void 0:_.call(g);if(C){var S,E,w;const P=Cx(C);!C.name&&P&&(C.name="pasted-file-".concat(++wx,".").concat(P)),n.type="File",n.file=C,(S=this.delegate)===null||S===void 0||S.inputControllerWillAttachFiles(),(E=this.responder)===null||E===void 0||E.insertFile(n.file),this.requestRender(),(w=this.delegate)===null||w===void 0||w.inputControllerDidPaste(n)}}e.preventDefault()},compositionstart(e){return this.getCompositionInput().start(e.data)},compositionupdate(e){return this.getCompositionInput().update(e.data)},compositionend(e){return this.getCompositionInput().end(e.data)},beforeinput(e){this.inputSummary.didInput=!0},input(e){return this.inputSummary.didInput=!0,e.stopPropagation()}}),he(en,"keys",{backspace(e){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",e)},delete(e){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",e)},return(e){var t,n;return this.setInputSummary({preferDocument:!0}),(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0?void 0:n.insertLineBreak()},tab(e){var t,n;(t=this.responder)!==null&&t!==void 0&&t.canIncreaseNestingLevel()&&((n=this.responder)===null||n===void 0||n.increaseNestingLevel(),this.requestRender(),e.preventDefault())},left(e){var t;if(this.selectionIsInCursorTarget())return e.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("backward")},right(e){var t;if(this.selectionIsInCursorTarget())return e.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("forward")},control:{d(e){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",e)},h(e){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",e)},o(e){var t,n;return e.preventDefault(),(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0||n.insertString(`
101`,{updatePosition:!1}),this.requestRender()}},shift:{return(e){var t,n;(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0||n.insertString(`
102`),this.requestRender(),e.preventDefault()},tab(e){var t,n;(t=this.responder)!==null&&t!==void 0&&t.canDecreaseNestingLevel()&&((n=this.responder)===null||n===void 0||n.decreaseNestingLevel(),this.requestRender(),e.preventDefault())},left(e){if(this.selectionIsInCursorTarget())return e.preventDefault(),this.expandSelectionInDirection("backward")},right(e){if(this.selectionIsInCursorTarget())return e.preventDefault(),this.expandSelectionInDirection("forward")}},alt:{backspace(e){var t;return this.setInputSummary({preferDocument:!1}),(t=this.delegate)===null||t===void 0?void 0:t.inputControllerWillPerformTyping()}},meta:{backspace(e){var t;return this.setInputSummary({preferDocument:!1}),(t=this.delegate)===null||t===void 0?void 0:t.inputControllerWillPerformTyping()}}}),en.proxyMethod("responder?.getSelectedRange"),en.proxyMethod("responder?.setSelectedRange"),en.proxyMethod("responder?.expandSelectionInDirection"),en.proxyMethod("responder?.selectionIsInCursorTarget"),en.proxyMethod("responder?.selectionIsExpanded");const Cx=e=>{var t;return(t=e.type)===null||t===void 0||(t=t.match(/\/(\w+)$/))===null||t===void 0?void 0:t[1]}
102,xx=!((ua=" ".codePointAt)===null||ua===void 0||!ua.call(" ",0)),Ax=function(e){if(e.key&&xx&&e.key.codePointAt(0)===e.keyCode)return e.key;{let t;if(e.which===null?t=e.keyCode:e.which!==0&&e.charCode!==0&&(t=e.charCode),t!=null&&lm[t]!=="escape")return $i.fromCodepoints([t]).toString()}},Sx=function(e){const t=e.clipboardData;if(t){if(t.types.includes("text/html")){for(const n of t.types){const r=/^CorePasteboardFlavorType/.test(n),i=/^dyn\./.test(n)&&t.getData(n);if(r||i)return!0}return!1}{const n=t.types.includes("com.apple.webarchive"),r=t.types.includes("com.apple.flat-rtfd");return n||r}}};class bn extends Ft{constructor(t){super(...arguments),this.inputController=t,this.responder=this.inputController.responder,this.delegate=this.inputController.delegate,this.inputSummary=this.inputController.inputSummary,this.data={}}start(t){if(this.data.start=t,this.isSignificant()){var n,r;this.inputSummary.eventName==="keypress"&&this.inputSummary.textAdded&&((r=this.responder)===null||r===void 0||r.deleteInDirection("left")),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=(n=this.responder)===null||n===void 0?void 0:n.getSelectedRange()}}update(t){if(this.data.update=t,this.isSignificant()){const n=this.selectPlaceholder();n&&(this.forgetPlaceholder(),this.range=n)}}end(t){return this.data.end=t,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),(n=this.delegate)===null||n===void 0||n.inputControllerWillPerformTyping(),(r=this.responder)===null||r===void 0||r.setSelectedRange(this.range),(i=this.responder)===null||i===void 0||i.insertString(this.data.end),(s=this.responder)===null||s===void 0?void 0:s.setSelectedRange(this.range[0]+this.data.end.length)):this.data.start!=null||this.data.update!=null?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset();var n,r,i,s}getEndData(){return this.data.end}isEnded(){return this.getEndData()!=null}isSignificant(){return!yx.composesExistingText||this.inputSummary.didInput}canApplyToDocument(){var t,n;return((t=this.data.start)===null||t===void 0?void 0:t.length)===0&&((n=this.data.end)===null||n===void 0?void 0:n.length)>0&&this.range}}bn.proxyMethod("inputController.setInputSummary"),bn.proxyMethod("inputController.requestRender"),bn.proxyMethod("inputController.requestReparse"),bn.proxyMethod("responder?.selectionIsExpanded"),bn.proxyMethod("responder?.insertPlaceholder"),bn.proxyMethod("responder?.selectPlaceholder"),bn.proxyMethod("responder?.forgetPlaceholder");class wi extends go{constructor(){super(...arguments),this.render=this.render.bind(this)}elementDidMutate(){return this.scheduledRender?this.composing?(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidAllowUnhandledInput)===null||n===void 0?void 0:n.call(t):void 0:this.reparse();var t,n}scheduleRender(){return this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)}render(){var t,n;cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||(n=this.delegate)===null||n===void 0||n.render(),(t=this.afterRender)===null||t===void 0||t.call(this),this.afterRender=null}reparse(){var t;return(t=this.delegate)===null||t===void 0?void 0:t.reparse()}insertString(){var t;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var i;return(i=this.responder)===null||i===void 0?void 0:i.insertString(n,r)}))}toggleAttributeIfSupported(t){var n;if(bl().includes(t))return(n=this.delegate)===null||n===void 0||n.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var r;return(r=this.responder)===null||r===void 0?void 0:r.toggleCurrentAttribute(t)}))}activateAttributeIfSupported(t,n){var r;if(bl().includes(t))return(r=this.delegate)===null||r===void 0||r.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var i;return(i=this.responder)===null||i===void 0?void 0:i.setCurrentAttribute(t,n)}))}deleteInDirection(t){let{recordUndoEntry:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{recordUndoEntry:!0};var r;n&&((r=this.delegate)===null||r===void 0||r.inputControllerWillPerformTyping());const i=()=>{var o;return(o=this.responder)===null||o===void 0?void 0:o.deleteInDirection(t)},s=this.getTargetDOMRange({minLength:this.composing?1:2});return s?this.withTargetDOMRange(s,i):i()}withTargetDOMRange(t,n){var r;return typeof t=="function"&&(n=t,t=this.getTargetDOMRange()),t?(r=this.responder)===null||r===void 0?void 0:r.withTargetDOMRange(t,n.bind(this)):(ar.reset(),n.call(this))}getTargetDOMRange(){var t,n;let{minLength:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{minLength:0};const i=(t=(n=this.event).getTargetRanges)===null||t===void 0?void 0:t.call(n);if(i&&i.length){const s=Ex(i[0]);if(r===0||s.toString().length>=r)return s}}withEvent(t,n){let r;this.event=t;try{r=n.call(this)}finally{this.event=null}return r}}he(wi,"events",{keydown(e){if(Bp(e)){var t;const n=kx(e);(t=this.delegate)!==null&&t!==void 0&&t.inputControllerDidReceiveKeyboardCommand(n)&&e.preventDefault()}else{let n=e.key;
102e.altKey&&(n+="+Alt"),e.shiftKey&&(n+="+Shift");const r=this.constructor.keys[n];if(r)return this.withEvent(e,r)}},paste(e){var t;let n;const r=(t=e.clipboardData)===null||t===void 0?void 0:t.getData("URL");return um(e)?(e.preventDefault(),this.attachFiles(e.clipboardData.files)):Dx(e)?(e.preventDefault(),n={type:"text/plain",string:e.clipboardData.getData("text/plain")},(i=this.delegate)===null||i===void 0||i.inputControllerWillPaste(n),(s=this.responder)===null||s===void 0||s.insertString(n.string),this.render(),(o=this.delegate)===null||o===void 0?void 0:o.inputControllerDidPaste(n)):r?(e.preventDefault(),n={type:"text/html",html:this.createLinkHTML(r)},(a=this.delegate)===null||a===void 0||a.inputControllerWillPaste(n),(l=this.responder)===null||l===void 0||l.insertHTML(n.html),this.render(),(u=this.delegate)===null||u===void 0?void 0:u.inputControllerDidPaste(n)):void 0;var i,s,o,a,l,u},beforeinput(e){const t=this.constructor.inputTypes[e.inputType];t&&(this.withEvent(e,t),this.scheduleRender())},input(e){ar.reset()},dragstart(e){var t,n;(t=this.responder)!==null&&t!==void 0&&t.selectionContainsAttachments()&&(e.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:(n=this.responder)===null||n===void 0?void 0:n.getSelectedRange(),point:da(e)})},dragenter(e){ca(e)&&e.preventDefault()},dragover(e){if(this.dragging){e.preventDefault();const n=da(e);var t;if(!Jr(n,this.dragging.point))return this.dragging.point=n,(t=this.responder)===null||t===void 0?void 0:t.setLocationRangeFromPointRange(n)}else ca(e)&&e.preventDefault()},drop(e){var t,n;if(this.dragging)return e.preventDefault(),(t=this.delegate)===null||t===void 0||t.inputControllerWillMoveText(),(n=this.responder)===null||n===void 0||n.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender();if(ca(e)){var r;e.preventDefault();const i=da(e);return(r=this.responder)===null||r===void 0||r.setLocationRangeFromPointRange(i),this.attachFiles(e.dataTransfer.files)}},dragend(){var e;this.dragging&&((e=this.responder)===null||e===void 0||e.setSelectedRange(this.dragging.range),this.dragging=null)},compositionend(e){this.composing&&(this.composing=!1,qi.recentAndroid||this.scheduleRender())}}),he(wi,"keys",{ArrowLeft(){var e,t;if((e=this.responder)!==null&&e!==void 0&&e.shouldManageMovingCursorInDirection("backward"))return this.event.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("backward")},ArrowRight(){var e,t;if((e=this.responder)!==null&&e!==void 0&&e.shouldManageMovingCursorInDirection("forward"))return this.event.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("forward")},Backspace(){var e,t,n;if((e=this.responder)!==null&&e!==void 0&&e.shouldManageDeletingInDirection("backward"))return this.event.preventDefault(),(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0||n.deleteInDirection("backward"),this.render()},Tab(){var e,t;if((e=this.responder)!==null&&e!==void 0&&e.canIncreaseNestingLevel())return this.event.preventDefault(),(t=this.responder)===null||t===void 0||t.increaseNestingLevel(),this.render()},"Tab+Shift"(){var e,t;if((e=this.responder)!==null&&e!==void 0&&e.canDecreaseNestingLevel())return this.event.preventDefault(),(t=this.responder)===null||t===void 0||t.decreaseNestingLevel(),this.render()}}),he(wi,"inputTypes",{deleteByComposition(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut(){return this.deleteInDirection("backward")},deleteByDrag(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var e;this.deleteByDragRange=(e=this.responder)===null||e===void 0?void 0:e.getSelectedRange()}))},deleteCompositionText(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent(){return this.deleteInDirection("backward")},deleteContentBackward(){return this.deleteInDirection("backward")},deleteContentForward(){return this.deleteInDirection("forward")},deleteEntireSoftLine(){return this.deleteInDirection("forward")},deleteHardLineBackward(){return this.deleteInDirection("backward")},deleteHardLineForward(){return this.deleteInDirection("forward")},deleteSoftLineBackward(){return this.deleteInDirection("backward")},deleteSoftLineForward(){return this.deleteInDirection("forward")},deleteWordBackward(){return this.deleteInDirection("backward")}
102,deleteWordForward(){return this.deleteInDirection("forward")},formatBackColor(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold(){return this.toggleAttributeIfSupported("bold")},formatFontColor(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent(){var e;if((e=this.responder)!==null&&e!==void 0&&e.canIncreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return(t=this.responder)===null||t===void 0?void 0:t.increaseNestingLevel()}))},formatItalic(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent(){var e;if((e=this.responder)!==null&&e!==void 0&&e.canDecreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return(t=this.responder)===null||t===void 0?void 0:t.decreaseNestingLevel()}))},formatRemove(){this.withTargetDOMRange((function(){for(const n in(e=this.responder)===null||e===void 0?void 0:e.getCurrentAttributes()){var e,t;(t=this.responder)===null||t===void 0||t.removeCurrentAttribute(n)}}))},formatSetBlockTextDirection(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough(){return this.toggleAttributeIfSupported("strike")},formatSubscript(){return this.toggleAttributeIfSupported("sub")},formatSuperscript(){return this.toggleAttributeIfSupported("sup")},formatUnderline(){return this.toggleAttributeIfSupported("underline")},historyRedo(){var e;return(e=this.delegate)===null||e===void 0?void 0:e.inputControllerWillPerformRedo()},historyUndo(){var e;return(e=this.delegate)===null||e===void 0?void 0:e.inputControllerWillPerformUndo()},insertCompositionText(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop(){const e=this.deleteByDragRange;var t;if(e)return this.deleteByDragRange=null,(t=this.delegate)===null||t===void 0||t.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var n;return(n=this.responder)===null||n===void 0?void 0:n.moveTextFromRange(e)}))},insertFromPaste(){const{dataTransfer:e}=this.event,t={dataTransfer:e},n=e.getData("URL"),r=e.getData("text/html");if(n){var i;let l;this.event.preventDefault(),t.type="text/html";const u=e.getData("public.url-name");l=u?Cu(u).trim():n,t.html=this.createLinkHTML(n,l),(i=this.delegate)===null||i===void 0||i.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var c;return(c=this.responder)===null||c===void 0?void 0:c.insertHTML(t.html)})),this.afterRender=()=>{var c;return(c=this.delegate)===null||c===void 0?void 0:c.inputControllerDidPaste(t)}}else if(Lp(e)){var s;t.type="text/plain",t.string=e.getData("text/plain"),(s=this.delegate)===null||s===void 0||s.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var l;return(l=this.responder)===null||l===void 0?void 0:l.insertString(t.string)})),this.afterRender=()=>{var l;return(l=this.delegate)===null||l===void 0?void 0:l.inputControllerDidPaste(t)}}else if(Tx(this.event)){var o;t.type="File",t.file=e.files[0],(o=this.delegate)===null||o===void 0||o.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var l;return(l=this.responder)===null||l===void 0?void 0:l.insertFile(t.file)})),this.afterRender=()=>{var l;return(l=this.delegate)===null||l===void 0?void 0:l.inputControllerDidPaste(t)}}else if(r){var a;this.event.preventDefault(),t.type="text/html",t.html=r,(a=this.delegate)===null||a===void 0||a.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var l;return(l=this.responder)===null||l===void 0?void 0:l.insertHTML(t.html)})),this.afterRender=()=>{var l;return(l=this.delegate)===null||l===void 0?void 0:l.inputControllerDidPaste(t)}}},insertFromYank(){return this.insertString(this.event.data)},insertLineBreak(){return this.insertString(`
103`)},insertLink(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList(){return this.toggleAttributeIfSupported("number")},insertParagraph(){var e;return(e=this.delegate)===null||e===void 0||e.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return(t=this.responder)===null||t===void 0?void 0:t.insertLineBreak()}))},insertReplacementText(){const e=this.event.dataTransfer.getData("text/plain"),t=this.event.getTargetRanges()[0];this.withTargetDOMRange(t,(()=>{this.insertString(e,{updatePosition:!1})}))},insertText(){var e;return this.insertString(this.event.data||((e=this.event.dataTransfer)===null||e===void 0?void 0:e.getData("text/plain")))},insertTranspose(){return this.insertString(this.event.data)},insertUnorderedList(){return this.toggleAttributeIfSupported("bullet")}});const Ex=function(e){const t=document.createRange();return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t},ca=e=>{var t;return Array.from(((t=e.dataTransfer)===null||t===void 0?void 0:t.types)||[]).includes("Files")},Tx=e=>{var t;return((t=e.dataTransfer.files)===null||t===void 0?void 0:t[0])&&!um(e)&&!(n=>{let{dataTransfer:r}=n;return r.types.includes("Files")&&r.types.includes("text/html")&&r.getData("text/html").includes("urn:schemas-microsoft-com:office:office")})(e)},um=function(e){const t=e.clipboardData;if(t)return Array.from(t.types).filter((n=>n.match(/file/i))).length===t.types.length&&t.files.length>=1},Dx=function(e){const t=e.clipboardData;if(t)return t.types.includes("text/plain")&&t.types.length===1},kx=function(e){const t=[];
103return e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.push(e.key),t},da=e=>({x:e.clientX,y:e.clientY}),Al="[data-trix-attribute]",Sl="[data-trix-action]",Ox="".concat(Al,", ").concat(Sl),vo="[data-trix-dialog]",Rx="".concat(vo,"[data-trix-active]"),Px="".concat(vo," [data-trix-method]"),jd="".concat(vo," [data-trix-input]"),Ud=(e,t)=>(t||(t=Er(e)),e.querySelector("[data-trix-input][name='".concat(t,"']"))),qd=e=>e.getAttribute("data-trix-action"),Er=e=>e.getAttribute("data-trix-attribute")||e.getAttribute("data-trix-dialog-attribute");class cm extends Ft{constructor(t){super(t),this.didClickActionButton=this.didClickActionButton.bind(this),this.didClickAttributeButton=this.didClickAttributeButton.bind(this),this.didClickDialogButton=this.didClickDialogButton.bind(this),this.didKeyDownDialogInput=this.didKeyDownDialogInput.bind(this),this.element=t,this.attributes={},this.actions={},this.resetDialogInputs(),Ot("mousedown",{onElement:this.element,matchingSelector:Sl,withCallback:this.didClickActionButton}),Ot("mousedown",{onElement:this.element,matchingSelector:Al,withCallback:this.didClickAttributeButton}),Ot("click",{onElement:this.element,matchingSelector:Ox,preventDefault:!0}),Ot("click",{onElement:this.element,matchingSelector:Px,withCallback:this.didClickDialogButton}),Ot("keydown",{onElement:this.element,matchingSelector:jd,withCallback:this.didKeyDownDialogInput})}didClickActionButton(t,n){var r;(r=this.delegate)===null||r===void 0||r.toolbarDidClickButton(),t.preventDefault();const i=qd(n);return this.getDialog(i)?this.toggleDialog(i):(s=this.delegate)===null||s===void 0?void 0:s.toolbarDidInvokeAction(i,n);var s}didClickAttributeButton(t,n){var r;(r=this.delegate)===null||r===void 0||r.toolbarDidClickButton(),t.preventDefault();const i=Er(n);var s;return this.getDialog(i)?this.toggleDialog(i):(s=this.delegate)===null||s===void 0||s.toolbarDidToggleAttribute(i),this.refreshAttributeButtons()}didClickDialogButton(t,n){const r=On(n,{matchingSelector:vo});return this[n.getAttribute("data-trix-method")].call(this,r)}didKeyDownDialogInput(t,n){if(t.keyCode===13){t.preventDefault();const r=n.getAttribute("name"),i=this.getDialog(r);this.setAttribute(i)}if(t.keyCode===27)return t.preventDefault(),this.hideDialog()}updateActions(t){return this.actions=t,this.refreshActionButtons()}refreshActionButtons(){return this.eachActionButton(((t,n)=>{t.disabled=this.actions[n]===!1}))}eachActionButton(t){return Array.from(this.element.querySelectorAll(Sl)).map((n=>t(n,qd(n))))}updateAttributes(t){return this.attributes=t,this.refreshAttributeButtons()}refreshAttributeButtons(){return this.eachAttributeButton(((t,n)=>(t.disabled=this.attributes[n]===!1,this.attributes[n]||this.dialogIsVisible(n)?(t.setAttribute("data-trix-active",""),t.classList.add("trix-active")):(t.removeAttribute("data-trix-active"),t.classList.remove("trix-active")))))}eachAttributeButton(t){return Array.from(this.element.querySelectorAll(Al)).map((n=>t(n,Er(n))))}applyKeyboardCommand(t){const n=JSON.stringify(t.sort());for(const r of Array.from(this.element.querySelectorAll("[data-trix-key]"))){const i=r.getAttribute("data-trix-key").split("+");if(JSON.stringify(i.sort())===n)return vi("mousedown",{onElement:r}),!0}return!1}dialogIsVisible(t){const n=this.getDialog(t);if(n)return n.hasAttribute("data-trix-active")}toggleDialog(t){return this.dialogIsVisible(t)?this.hideDialog():this.showDialog(t)}showDialog(t){var n,r;this.hideDialog(),(n=this.delegate)===null||n===void 0||n.toolbarWillShowDialog();const i=this.getDialog(t);i.setAttribute("data-trix-active",""),i.classList.add("trix-active"),Array.from(i.querySelectorAll("input[disabled]")).forEach((o=>{o.removeAttribute("disabled")}));const s=Er(i);if(s){const o=Ud(i,t);o&&(o.value=this.attributes[s]||"",o.select())}return(r=this.delegate)===null||r===void 0?void 0:r.toolbarDidShowDialog(t)}setAttribute(t){const n=Er(t),r=Ud(t,n);return r.willValidate&&!r.checkValidity()?(r.setAttribute("data-trix-validate",""),r.classList.add("trix-validate"),r.focus()):((i=this.delegate)===null||i===void 0||i.toolbarDidUpdateAttribute(n,r.value),this.hideDialog());var i}removeAttribute(t){var n;const r=Er(t);return(n=this.delegate)===null||n===void 0||n.toolbarDidRemoveAttribute(r),this.hideDialog()}hideDialog(){const t=this.element.querySelector(Rx);var n;if(t)return t.removeAttribute("data-trix-active"),t.classList.remove("trix-active"),this.resetDialogInputs(),(n=this.delegate)===null||n===void 0?void 0:n.toolbarDidHideDialog((r=>r.getAttribute("data-trix-dialog"))(t))}resetDialogInputs(){Array.from(this.element.querySelectorAll(jd)).forEac
vendor: 9,254 bytes, line 103
103h((t=>{t.setAttribute("disabled","disabled"),t.removeAttribute("data-trix-validate"),t.classList.remove("trix-validate")}))}getDialog(t){return this.element.querySelector("[data-trix-dialog=".concat(t,"]"))}}class Ci extends im{constructor(t){let{editorElement:n,document:r,html:i}=t;super(...arguments),this.editorElement=n,this.selectionManager=new Gn(this.editorElement),this.selectionManager.delegate=this,this.composition=new yn,this.composition.delegate=this,this.attachmentManager=new Wp(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=bu.getLevel()===2?new wi(this.editorElement):new en(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new rm(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new cm(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new Xp(this.composition,this.selectionManager,this.editorElement),r?this.editor.loadDocument(r):this.editor.loadHTML(i)}registerSelectionManager(){return ar.registerSelectionManager(this.selectionManager)}unregisterSelectionManager(){return ar.unregisterSelectionManager(this.selectionManager)}render(){return this.compositionController.render()}reparse(){return this.composition.replaceHTML(this.editorElement.innerHTML)}compositionDidChangeDocument(t){if(this.notifyEditorElement("document-change"),!this.handlingInput)return this.render()}compositionDidChangeCurrentAttributes(t){return this.currentAttributes=t,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})}compositionDidPerformInsertionAtRange(t){this.pasting&&(this.pastedRange=t)}compositionShouldAcceptFile(t){return this.notifyEditorElement("file-accept",{file:t})}compositionDidAddAttachment(t){const n=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-add",{attachment:n})}compositionDidEditAttachment(t){this.compositionController.rerenderViewForObject(t);const n=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-edit",{attachment:n}),this.notifyEditorElement("change")}compositionDidChangeAttachmentPreviewURL(t){return this.compositionController.invalidateViewForObject(t),this.notifyEditorElement("change")}compositionDidRemoveAttachment(t){const n=this.attachmentManager.unmanageAttachment(t);return this.notifyEditorElement("attachment-remove",{attachment:n})}compositionDidStartEditingAttachment(t,n){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(t),this.compositionController.installAttachmentEditorForAttachment(t,n),this.selectionManager.setLocationRange(this.attachmentLocationRange)}compositionDidStopEditingAttachment(t){this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null}compositionDidRequestChangingSelectionToLocationRange(t){if(!this.loadingSnapshot||this.isFocused())return this.requestedLocationRange=t,this.compositionRevisionWhenLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()}compositionWillLoadSnapshot(){this.loadingSnapshot=!0}compositionDidLoadSnapshot(){this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1}getSelectionManager(){return this.selectionManager}attachmentManagerDidRequestRemovalOfAttachment(t){return this.removeAttachment(t)}compositionControllerWillSyncDocumentView(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()}compositionControllerDidSyncDocumentView(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")}compositionControllerDidRender(){this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision}compositionControllerDidFocus(){return this.isFocusedInvisibly()&&this.setLocationRange({index:0,offset:0}),this.toolbarController.hideDialog(),this.notifyEditorElement("focus")}compositionControllerDidBlur(){return this.notifyEditorElement("blur")}compositionControllerDidSelectAttachment(t,n){return this.toolbarController.hideDialog(),this.composition.editAttachment(t,n)}compositionControllerDidRequestDeselectingAttachment(t){const n=this.attachmentLocationRange||this.composition.document.getLocationRangeOfAttachment(t);return this.selectionManager.setLocationRange(n[1])}compositionControllerWillUpdateAttachment(t){return this.editor.recordUndoEntry("Edit Attachment",{context:t.id,consolidatable:!0})}compositionControllerDidRequestRemovalOfAttachment(t){return this.removeAttachment(t)}inputControllerWillHandleInput(){this.handlingInput=!0,this.requestedRender=!1}inputControllerDidRequestRender(){this.requestedRender=!0}inputControllerDidHandleInput(){if(this.handlingInput=!1,this.requestedRender)return this.requestedRender=!1,this.render()}inputControllerDidAllowUnhandledInput(){return this.notifyEditorElement("change")}inputControllerDidRequestReparse(){return this.reparse()}inputControllerWillPerformTyping(){return this.recordTypingUndoEntry()}inputControllerWillPerformFormatting(t){return this.recordFormattingUndoEntry(t)}inputControllerWillCutText(){return this.editor.recordUndoEntry("Cut")}inputControllerWillPaste(t){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:t})}inputControllerDidPaste(t){return t.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:t})}inputControllerWillMoveText(){return this.editor.recordUndoEntry("Move")}inputControllerWillAttachFiles(){return this.editor.recordUndoEntry("Drop Files")}inputControllerWillPerformUndo(){return this.editor.undo()}inputControllerWillPerformRedo(){return this.editor.redo()}inputControllerDidReceiveKeyboardCommand(t){return this.toolbarController.applyKeyboardCommand(t)}inputControllerDidStartDrag(){this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()}inputControllerDidReceiveDragOverPoint(t){return this.selectionManager.setLocationRangeFromPointRange(t)}inputControllerDidCancelDrag(){this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null}locationRangeDidChange(t){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!Xs(this.attachmentLocationRange,t)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")}toolbarDidClickButton(){if(!this.getLocationRange())return this.setLocationRange({index:0,offset:0})}toolbarDidInvokeAction(t,n){return this.invokeAction(t,n)}toolbarDidToggleAttribute(t){if(this.recordFormattingUndoEntry(t),this.composition.toggleCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidUpdateAttribute(t,n){if(this.recordFormattingUndoEntry(t),this.composition.setCurrentAttribute(t,n),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidRemoveAttribute(t){if(this.recordFormattingUndoEntry(t),this.composition.removeCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarWillShowDialog(t){return this.composition.expandSelectionForEditing(),this.freezeSelection()}toolbarDidShowDialog(t){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:t})}toolbarDidHideDialog(t){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:t})}freezeSelection(){if(!this.selectionFrozen)return this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render()}thawSelection(){if(this.selectionFrozen)return this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()}canInvokeAction(t){return!!this.actionIsExternal(t)||!((n=this.actions[t])===null||n===void 0||(n=n.test)===null||n===void 0||!n.call(this));var n}invokeAction(t,n){return this.actionIsExternal(t)?this.notifyEditorElement("action-invoke",{actionName:t,invokingElement:n}):(r=this.actions[t])===null||r===void 0||(r=r.perform)===null||r===void 0?void 0:r.call(this);var r}actionIsExternal(t){return/^x-./.test(t)}getCurrentActions(){const t={};for(const n in this.actions)t[n]=this.canInvokeAction(n);return t}updateCurrentActions(){const t=this.getCurrentActions();if(!Jr(t,this.currentActions))return this.currentActions=t,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions})}runEditorFilters(){let t=this.composition.getSnapshot();
103if(Array.from(this.editor.filters).forEach((i=>{const{document:s,selectedRange:o}=t;t=i.call(this.editor,t)||{},t.document||(t.document=s),t.selectedRange||(t.selectedRange=o)})),n=t,r=this.composition.getSnapshot(),!Xs(n.selectedRange,r.selectedRange)||!n.document.isEqualTo(r.document))return this.composition.loadSnapshot(t);var n,r}updateInputElement(){const t=(function(n,r){const i=ax[r];if(i)return i(n);throw new Error("unknown content type: ".concat(r))})(this.compositionController.getSerializableElement(),"text/html");return this.editorElement.setInputElementValue(t)}notifyEditorElement(t,n){switch(t){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(t,n)}removeAttachment(t){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(t),this.render()}recordFormattingUndoEntry(t){const n=Mt(t),r=this.selectionManager.getLocationRange();if(n||!on(r))return this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0})}recordTypingUndoEntry(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})}getUndoContext(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return[this.getLocationContext(),this.getTimeContext(),...Array.from(n)]}getLocationContext(){const t=this.selectionManager.getLocationRange();return on(t)?t[0].index:t}getTimeContext(){return ml.interval>0?Math.floor(new Date().getTime()/ml.interval):0}isFocused(){var t;return this.editorElement===((t=this.editorElement.ownerDocument)===null||t===void 0?void 0:t.activeElement)}isFocusedInvisibly(){return this.isFocused()&&!this.getLocationRange()}get actions(){return this.constructor.actions}}he(Ci,"actions",{undo:{test(){return this.editor.canUndo()},perform(){return this.editor.undo()}},redo:{test(){return this.editor.canRedo()},perform(){return this.editor.redo()}},link:{test(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test(){return this.editor.canIncreaseNestingLevel()},perform(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test(){return this.editor.canDecreaseNestingLevel()},perform(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:()=>!0,perform(){return bu.pickFiles(this.editor.insertFiles)}}}),Ci.proxyMethod("getSelectionManager().setLocationRange"),Ci.proxyMethod("getSelectionManager().getLocationRange");var $x=Object.freeze({__proto__:null,AttachmentEditorController:nm,CompositionController:rm,Controller:im,EditorController:Ci,InputController:go,Level0InputController:en,Level2InputController:wi,ToolbarController:cm}),Lx=Object.freeze({__proto__:null,MutationObserver:om,SelectionChangeObserver:Ip}),Bx=Object.freeze({__proto__:null,FileVerificationOperation:am,ImagePreloadOperation:Gp});$p("trix-toolbar",`%t {
104  display: block;
105}
106
107%t {
108  white-space: nowrap;
109}
110
111%t [data-trix-dialog] {
112  display: none;
113}
114
115%t [data-trix-dialog][data-trix-active] {
116  display: block;
117}
118
119%t [data-trix-dialog] [data-trix-validate]:invalid {
120  background-color: #ffdddd;
121}`);class dm extends HTMLElement{connectedCallback(){this.innerHTML===""&&(this.innerHTML=Pp.getDefaultHTML())}}let Mx=0;const Ix=function(e){if(!e.hasAttribute("contenteditable"))return e.setAttribute("contenteditable",""),(function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.times=1,Ot(t,n)})("focus",{onElement:e,withCallback:()=>Fx(e)})},Fx=function(e){return Nx(e),jx()},Nx=function(e){var t,n;if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&t.call(n,"enableObjectResizing"))return document.execCommand("enableObjectResizing",!1,!1),Ot("mscontrolselect",{onElement:e,preventDefault:!0})},jx=function(e){var t,n;if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&t.call(n,"DefaultParagraphSeparator")){const{tagName:r}=te.default;if(["div","p"].includes(r))return document.execCommand("DefaultParagraphSeparator",!1,r)}},Hd=qi.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"};$p("trix-editor",`%t {
122    display: block;
123}
124
125%t:empty:not(:focus)::before {
126    content: attr(placeholder);
127    color: graytext;
128    cursor: text;
129    pointer-events: none;
130    white-space: pre-line;
131}
132
133%t a[contenteditable=false] {
134    cursor: text;
135}
136
137%t img {
138    max-width: 100%;
139    height: auto;
140}
141
142%t `.concat(Xn,` figcaption textarea {
143    resize: none;
144}
145
146%t `).concat(Xn,` figcaption textarea.trix-autoresize-clone {
147    position: absolute;
148    left: -9999px;
149    max-height: 0px;
150}
151
152%t `).concat(Xn,` figcaption[data-trix-placeholder]:empty::before {
153    content: attr(data-trix-placeholder);
154    color: graytext;
155}
156
157%t [data-trix-cursor-target] {
158    display: `).concat(Hd.display,` !important;
159    width: `).concat(Hd.width,` !important;
160    padding: 0 !important;
161    margin: 0 !important;
162    border: none !important;
163}
164
165%t [data-trix-cursor-target=left] {
166    vertical-align: top !important;
167    margin-left: -1px !important;
168}
169
170%t [data-trix-cursor-target=right] {
171    vertical-align: bottom !important;
172    margin-right: -1px !important;
173}`));class hm extends HTMLElement{get trixId(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++Mx),this.trixId)}get labels(){const t=[];this.id&&this.ownerDocument&&t.push(...Array.from(this.ownerDocument.querySelectorAll("label[for='".concat(this.id,"']"))||[]));const n=On(this,{matchingSelector:"label"});return n&&[this,null].includes(n.control)&&t.push(n),t}get toolbarElement(){var t;if(this.hasAttribute("toolbar"))return(t=this.ownerDocument)===null||t===void 0?void 0:t.getElementById(this.getAttribute("toolbar"));if(this.parentNode){const n="trix-toolbar-".concat(this.trixId);this.setAttribute("toolbar",n);const r=ut("trix-toolbar",{id:n});return this.parentNode.insertBefore(r,this),r}}get form(){var t;return(t=this.inputElement)===null||t===void 0?void 0:t.form}get inputElement(){var t;if(this.hasAttribute("input"))return(t=this.ownerDocument)===null||t===void 0?void 0:t.getElementById(this.getAttribute("input"));if(this.parentNode){const n="trix-input-".concat(this.trixId);this.setAttribute("input",n);const r=ut("input",{type:"hidden",id:n});return this.parentNode.insertBefore(r,this.nextElementSibling),r}}get editor(){var t;return(t=this.editorController)===null||t===void 0?void 0:t.editor}get name(){var t;return(t=this.inputElement)===null||t===void 0?void 0:t.name}get value(){var t;return(t=this.inputElement)===null||t===void 0?void 0:t.value}set value(t){var n;this.defaultValue=t,(n=this.editor)===null||n===void 0||n.loadHTML(this.defaultValue)}notify(t,n){if(this.editorController)return vi("trix-".concat(t),{onElement:this,attributes:n}
173)}setInputElementValue(t){this.inputElement&&(this.inputElement.value=t)}connectedCallback(){this.hasAttribute("data-trix-internal")||(Ix(this),(function(t){t.hasAttribute("role")||t.setAttribute("role","textbox")})(this),(function(t){if(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby"))return;const n=function(){const r=Array.from(t.labels).map((s=>{if(!s.contains(t))return s.textContent})).filter((s=>s)),i=r.join(" ");return i?t.setAttribute("aria-label",i):t.removeAttribute("aria-label")};n(),Ot("focus",{onElement:t,withCallback:n})})(this),this.editorController||(vi("trix-before-initialize",{onElement:this}),this.editorController=new Ci({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame((()=>vi("trix-initialize",{onElement:this})))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),(function(t){!document.querySelector(":focus")&&t.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===t&&t.focus()})(this))}disconnectedCallback(){var t;return(t=this.editorController)===null||t===void 0||t.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()}registerResetListener(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)}unregisterResetListener(){return window.removeEventListener("reset",this.resetListener,!1)}registerClickListener(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)}unregisterClickListener(){return window.removeEventListener("click",this.clickListener,!1)}resetBubbled(t){if(!t.defaultPrevented&&t.target===this.form)return this.reset()}clickBubbled(t){if(t.defaultPrevented||this.contains(t.target))return;const n=On(t.target,{matchingSelector:"label"});return n&&Array.from(this.labels).includes(n)?this.focus():void 0}reset(){this.value=this.defaultValue}}const Ir={VERSION:mC,config:Hi,core:lx,models:em,views:fx,controllers:$x,observers:Lx,operations:Bx,elements:Object.freeze({__proto__:null,TrixEditorElement:hm,TrixToolbarElement:dm}),filters:Object.freeze({__proto__:null,Filter:Jp,attachmentGalleryFilter:Kp})};Object.assign(Ir,em),window.Trix=Ir,setTimeout((function(){customElements.get("trix-toolbar")||customElements.define("trix-toolbar",dm),customElements.get("trix-editor")||customElements.define("trix-editor",hm)}),0);const Ux={data:function(){return{trixter:"TEST TRIX TEXT"}}};Hx();Gx();zx();addEventListener("trix-initialize",function(e){new qx(e.target)});addEventListener("trix-action-invoke",function(e){e.actionName==="x-horizontal-rule"&&t();function t(){e.target.editor.insertAttachment(n())}function n(){return new Ir.Attachment({content:"<hr>",contentType:"text/html"})}});addEventListener("trix-initialize",function(e){document.querySelector(".trix-button-group--file-tools").remove()});addEventListener("trix-file-accept",function(e){e.preventDefault()});class qx{constructor(t){this.element=t,this.insertHeadingElements(),this.insertDividerElements(),this.insertColorElements()}insertHeadingElements(){this.removeOriginalHeadingButton(),this.insertNewHeadingButton(),this.insertHeadingDialog()}removeOriginalHeadingButton(){this.buttonGroupBlockTools.removeChild(this.originalHeadingButton)}insertNewHeadingButton(){this.buttonGroupBlockTools.insertAdjacentHTML("afterbegin",this.headingButtonTemplate)}insertHeadingDialog(){this.dialogsElement.insertAdjacentHTML("beforeend",this.dialogHeadingTemplate)}insertDividerElements(){this.quoteButton.insertAdjacentHTML("afterend",this.horizontalButtonTemplate)}insertColorElements(){this.insertColorButton(),this.insertDialogColor()}insertColorButton(){this.buttonGroupTextTools.insertAdjacentHTML("beforeend",this.colorButtonTemplate)}insertDialogColor(){this.dialogsElement.insertAdjacentHTML("beforeend",this.dialogColorTemplate)}get buttonGroupBlockTools(){return this.toolbarElement.querySelector("[data-trix-button-group=block-tools]")}get buttonGroupTextTools(){return this.toolbarElement.querySelector("[data-trix-button-group=text-tools]")}get dialogsElement(){return this.toolbarElement.querySelector("[data-trix-dialogs]")}get originalHeadingButton(){return this.toolbarElement.querySelector("[data-trix-attribute=heading1]")}get quoteButton(){return this.toolbarElement.querySelector("[data-trix-attribute=quote]")}get toolbarElement(){return this.element.toolbarElement}get horizontalButtonTemplate(){return'<button type="button" class="trix-button trix-button--icon trix-button--icon-horizontal-rule" data-trix-action="x-horizontal-rule" tabindex="-1" title="Divider">Divider</button>'}get headingButtonTemplate(){return'<button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-action="x-heading" title="Heading" tabindex="-1">Heading</button>'}get colorButtonTemplate(){return'<button type="button" class="trix-button trix-button--icon trix-button--icon-color" data-trix-action="x-color" title="Color" tabindex="-1">Color</button>'}get dialogHeadingTemplate(){return`
174      <div class="trix-dialog trix-dialog--heading" data-trix-dialog="x-heading" data-trix-dialog-attribute="x-heading">
175        <div class="trix-dialog__link-fields">
176          <input type="text" name="x-heading" class="trix-dialog-hidden__input" data-trix-input>
177          <div class="trix-button-group">
178            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="heading1">H1</button>
179            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="heading2">H2</button>
180            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="heading3">H3</button>
181            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="heading4">H4</button>
182            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="heading5">H5</button>
183            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="heading6">H6</button>
184          </div>
185        </div>
186      </div>
187    `}get dialogColorTemplate(){return`
188      <div class="trix-dialog trix-dialog--color" data-trix-dialog="x-color" data-trix-dialog-attribute="x-color">
189        <div class="trix-dialog__link-fields">
190          <input type="text" name="x-color" class="trix-dialog-hidden__input" data-trix-input>
191          <div id="fg" class="trix-button-group">
192            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor1" data-trix-method="hideDialog"></button>
193            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor2" data-trix-method="hideDialog"></button>
194            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor3" data-trix-method="hideDialog"></button>
195            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor4" data-trix-method="hideDialog"></button>
196            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor5" data-trix-method="hideDialog"></button>
197            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor6" data-trix-method="hideDialog"></button>
198            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor7" data-trix-method="hideDialog"></button>
199            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor8" data-trix-method="hideDialog"></button>
200            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="fgColor9" data-trix-method="hideDialog"></button>
201          </div>
202          <div id="bg" class="trix-button-group">
203            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor1" data-trix-method="hideDialog"></button>
204            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor2" data-trix-method="hideDialog"></button>
205            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor3" data-trix-method="hideDialog"></button>
206            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor4" data-trix-method="hideDialog"></button>
207            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor5" data-trix-method="hideDialog"></button>
208            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor6" data-trix-method="hideDialog"></button>
209            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor7" data-trix-method="hideDialog"></button>
210            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor8" data-trix-method="hideDialog"></button>
211            <button type="button" class="trix-button trix-button--dialog" data-trix-attribute="bgColor9" data-trix-method="hideDialog"></button>
212          </div>
213        </div>
214      </div>
215    `}}function Hx(){Array.from(["h1","h2","h3","h4","h5","h6"]).forEach((e,t)=>{Ir.config.blockAttributes[`heading${t+1}`]={tagName:e,terminal:!0,breakOnReturn:!0,group:!1}})}function Gx(){Array.from(["rgb(136, 118, 38)","rgb(185, 94, 6)","rgb(207, 0, 0)","rgb(216, 28, 170)","rgb(144, 19, 254)","rgb(5, 98, 185)","rgb(17, 138, 15)","rgb(148, 82, 22)","rgb(102, 102, 102)"]).forEach((t,n)=>{Ir.config.textAttributes[`fgColor${n+1}`]={style:{color:t},inheritable:!0,parser:r=>r.style.color===t}})}function zx(){Array.from(["rgb(250, 247, 133)","rgb(255, 240, 219)","rgb(255, 229, 229)","rgb(255, 228, 247)","rgb(242, 237, 255)","rgb(225, 239, 252)","rgb(228, 248, 226)","rgb(238, 226, 215)","rgb(242, 242, 242)"]).forEach((t,n)=>{Ir.config.textAttributes[`bgColor${n+1}`]={style:{backgroundColor:t},inheritable:!0,parser:r=>r.style.backgroundColor===t}})}const Vx={name:"trix-input",mixins:[Ux],props:{customTags:{type:Array,default:function(){return[]}},id:{type:String,required:!0},value:{type:String,default:""},name:{type:String,required:!0},showToggleLink:{type:Boolean,default:!0},allowEditing:{type:Boolean,default:!0},defaultText:{type:String,default:""}},data:function(){return{trixText:this.value,showEditor:!this.showToggleLink&&this.allowEditing,canSave:!0,isActive:!1,editorNode:null}},computed:{editLinkText:function(){return this.showEditor?"Cancel":"Edit"},saveLinkText:function(){return this.showEditor?"Save":"Edit"},customTagsPresent:function(){return this.customTags.length>0},defaultTextAvailable:function(){return!!this.defaultText}},watch:{trixText:function(){this.$emit("input",this.trixText)},showEditor:function(e){e||(this.trixText=this.value)}},mounted(){this.initTemplateSync(),document.getElementById(`${this.id}_editor_wrapper`).addEventListener("focusout",e=>{this.canSave=this.checkBrackets(this.trixText)})},methods:{insertTag:function(e,t){document.querySelector(`trix-editor[input
215="${t}"]`).editor.insertString(`{{${e}}}`)},clearEditorText:function(){this.trixText="",this.showToggleLink&&(this.showEditor=!this.showEditor)},toggleEditLink:function(){this.showToggleLink&&(this.showEditor=!this.showEditor),this.editorNode.reset()},initTemplateSync:function(){const e=document.querySelectorAll(`#${this.id}_editor_wrapper trix-editor`)[0];this.editorNode=e;const t={childList:!0,subtree:!0,characterData:!0};new MutationObserver(()=>{this.trixText=e.innerHTML}).observe(e,t)},checkBrackets:function(e){if(e.split("{").length!==e.split("}").length||/{{[^}}]+{{/g.test(e))return!1;for(let n=0;n<e.length;n++)if(e[n]==="{"&&e[n+1]==="{"&&e[n+2]==="{"||e[n]==="}"&&e[n+1]==="}"&&e[n+2]==="}"||e[n]==="}"&&e[n+1]!=="}"&&e[n-1]!=="}"||e[n]==="{"&&e[n+1]!=="{"&&e[n-1]!=="{"||e[n]==="{"&&e[n+1]==="{"&&e[n+2]==="}")return!1;return!0},loadDefaultText:function(e){document.querySelector(`trix-editor[input="${e}"]`).editor.loadHTML(this.defaultText)}}};var Wx=function(){var t=this,n=t._self._c;return n("div",{staticClass:"editor-wrapper",class:{error:!t.canSave},attrs:{id:`${t.id}_editor_wrapper`}},[n("label",{attrs:{for:t.id}},[n("div",{staticClass:"md:tw-flex tw-contents tw-justify-between"},[n("div",[t._t("label-content")],2),t._v(" "),t.showToggleLink&&t.allowEditing?n("div",{staticClass:"md:tw-flex md:tw-space-x-3"},[t.showEditor?n("button",{staticClass:"save-editor toggle-edit btn btn-small btn-primary",attrs:{id:"config_information_form_submit",type:"submit"}},[t._v(`
216          `+t._s(t.saveLinkText)+`
217        `)]):t._e(),t._v(" "),t.showEditor?n("div",{staticClass:"md:tw-flex"},[t.defaultTextAvailable?n("a",{staticClass:"btn btn-small",attrs:{id:"load-default"},on:{click:function(r){return r.preventDefault(),t.loadDefaultText(`${t.id}_hidden_input`)}}},[t._v(`
218            Load default
219          `)]):t._e(),t._v(" "),n("input",{staticClass:"toggle-edit btn btn-small",attrs:{type:"reset",value:"Cancel"},on:{click:t.toggleEditLink}})]):n("a",{staticClass:"toggle-edit btn btn-small",class:t.showEditor?"tw-bg-gray-200":"btn-dark",on:{click:function(r){return r.preventDefault(),t.toggleEditLink.apply(null,arguments)}}},[t._v(`
220          Edit
221        `)])]):t._e()])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showEditor,expression:"showEditor"}]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"input",staticClass:"border",attrs:{name:t.name,id:`${t.id}_hidden_input`,type:"hidden"},domProps:{value:t.value},on:{input:function(r){r.target.composing||(t.value=r.target.value)}}}),t._v(" "),n("trix-editor",{staticClass:"custom-text-section",attrs:{input:`${t.id}_hidden_input`}}),t._v(" "),t.customTagsPresent?n("div",{staticClass:"tw-my-2 tw-gap-2 tw-flex tw-flex-wrap"},t._l(t.customTags,function(r){return n("div",{staticClass:"custom-tag btn btn-small",attrs:{id:"tag_"+r.value},on:{click:function(i){return i.preventDefault(),t.insertTag(r.value,`${t.id}_hidden_input`)}}},[t._v(`
222        `+t._s(r.name)+`
223      `)])}),0):t._e()],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.showEditor,expression:"!showEditor"}],staticClass:"display-text-wrapper"},[n("div",{staticClass:"display-text custom-text-section",domProps:{innerHTML:t._s(t.trixText)}})])])},Yx=[],Jx=W(Vx,Wx,Yx,!1,null,null);const Kx=Jx.exports,Xx=Object.freeze(Object.defineProperty({__proto__:null,default:Kx},Symbol.toStringTag,{value:"Module"}));function Lr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lr=function(t){return typeof t}:Lr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Zx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qx(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 tA(e,t,n){return t&&Qx(e.prototype,t),e}function eA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){eA(e,i,n[i])})}return e}var nA=(function(){function e(t,n,r,i){Zx(this,e),this.language=t,this.months=n,this.monthsAbbr=r,this.days=i,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}return tA(e,[{key:"language",get:function(){return this._language}
223,set:function(n){if(typeof n!="string")throw new TypeError("Language must be a string");this._language=n}},{key:"months",get:function(){return this._months},set:function(n){if(n.length!==12)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=n}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(n){if(n.length!==12)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=n}},{key:"days",get:function(){return this._days},set:function(n){if(n.length!==7)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=n}}]),e})(),fm=new nA("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),pm={useUtc:!1,getFullYear:function(t){return this.useUtc?t.getUTCFullYear():t.getFullYear()},getMonth:function(t){return this.useUtc?t.getUTCMonth():t.getMonth()},getDate:function(t){return this.useUtc?t.getUTCDate():t.getDate()},getDay:function(t){return this.useUtc?t.getUTCDay():t.getDay()},getHours:function(t){return this.useUtc?t.getUTCHours():t.getHours()},getMinutes:function(t){return this.useUtc?t.getUTCMinutes():t.getMinutes()},setFullYear:function(t,n,r){return this.useUtc?t.setUTCFullYear(n):t.setFullYear(n)},setMonth:function(t,n,r){return this.useUtc?t.setUTCMonth(n):t.setMonth(n)},setDate:function(t,n,r){return this.useUtc?t.setUTCDate(n):t.setDate(n)},compareDates:function(t,n){var r=new Date(t.getTime()),i=new Date(n.getTime());return this.useUtc?(r.setUTCHours(0,0,0,0),i.setUTCHours(0,0,0,0)):(r.setHours(0,0,0,0),i.setHours(0,0,0,0)),r.getTime()===i.getTime()},isValidDate:function(t){return Object.prototype.toString.call(t)!=="[object Date]"?!1:!isNaN(t.getTime())},getDayNameAbbr:function(t,n){if(Lr(t)!=="object")throw TypeError("Invalid Type");return n[this.getDay(t)]},getMonthName:function(t,n){if(!n)throw Error("missing 2nd parameter Months array");if(Lr(t)==="object")return n[this.getMonth(t)];if(typeof t=="number")return n[t];throw TypeError("Invalid type")},getMonthNameAbbr:function(t,n){if(!n)throw Error("missing 2nd paramter Months array");if(Lr(t)==="object")return n[this.getMonth(t)];if(typeof t=="number")return n[t];throw TypeError("Invalid type")},daysInMonth:function(t,n){return/8|3|5|10/.test(n)?30:n===1?!(t%4)&&t%100||!(t%400)?29:28:31},getNthSuffix:function(t){switch(t){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate:function(t,n,r){r=r||fm;var i=this.getFullYear(t),s=this.getMonth(t)+1,o=this.getDate(t),a=n.replace(/dd/,("0"+o).slice(-2)).replace(/d/,o).replace(/yyyy/,i).replace(/yy/,String(i).slice(2)).replace(/MMMM/,this.getMonthName(this.getMonth(t),r.months)).replace(/MMM/,this.getMonthNameAbbr(this.getMonth(t),r.monthsAbbr)).replace(/MM/,("0"+s).slice(-2)).replace(/M(?!a|ä|e)/,s).replace(/su/,this.getNthSuffix(this.getDate(t))).replace(/D(?!e|é|i)/,this.getDayNameAbbr(t,r.days));return a},createDateArray:function(t,n){for(var r=[];t<=n;)r.push(new Date(t)),t=this.setDate(new Date(t),this.getDate(new Date(t))+1);return r},validateDateInput:function(t){return t===null||t instanceof Date||typeof t=="string"||typeof t=="number"}},Gi=function(t){return Eu({},pm,{useUtc:t})},Gd=Eu({},pm),rA={props:{selectedDate:Date,resetTypedDate:[Date],format:[String,Function],translation:Object,inline:Boolean,id:String,name:String,refName:String,openDate:Date,placeholder:String,inputClass:[String,Object,Array],clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,disabled:Boolean,required:Boolean,typeable:Boolean,bootstrapStyling:Boolean,useUtc:Boolean},data:function(){var t=Gi(this.useUtc);return{input:null,typedDate:!1,utils:t}}
223,computed:{formattedValue:function(){return this.selectedDate?this.typedDate?this.typedDate:typeof this.format=="function"?this.format(this.selectedDate):this.utils.formatDate(new Date(this.selectedDate),this.format,this.translation):null},computedInputClass:function(){return this.bootstrapStyling?typeof this.inputClass=="string"?[this.inputClass,"form-control"].join(" "):Eu({"form-control":!0},this.inputClass):this.inputClass}},watch:{resetTypedDate:function(){this.typedDate=!1}},methods:{showCalendar:function(){this.$emit("showCalendar")},parseTypedDate:function(t){if([27,13].includes(t.keyCode)&&this.input.blur(),this.typeable){var n=Date.parse(this.input.value);isNaN(n)||(this.typedDate=this.input.value,this.$emit("typedDate",new Date(this.typedDate)))}},inputBlurred:function(){this.typeable&&isNaN(Date.parse(this.input.value))&&(this.clearDate(),this.input.value=null,this.typedDate=null),this.$emit("closeCalendar")},clearDate:function(){this.$emit("clearDate")}},mounted:function(){this.input=this.$el.querySelector("input")}};function iA(e,t,n,r,i,s,o,a,l,u){typeof o!="boolean"&&(l=a,a=o,o=!1);var c=typeof n=="function"?n.options:n;e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),r&&(c._scopeId=r);var d;if(s?(d=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(g=__VUE_SSR_CONTEXT__),t&&t.call(this,l(g)),g&&g._registeredComponents&&g._registeredComponents.add(s)},c._ssrRegister=d):t&&(d=o?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(f){t.call(this,a(f))}),d)if(c.functional){var h=c.render;c.render=function(g,_){return d.call(_),h(g,_)}}else{var v=c.beforeCreate;c.beforeCreate=v?[].concat(v,d):[d]}return n}var zi=iA;const sA=rA;var mm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"input-group":e.bootstrapStyling}},[e.calendarButton?n("span",{staticClass:"vdp-datepicker__calendar-button",class:{"input-group-prepend":e.bootstrapStyling},style:{"cursor:not-allowed;":e.disabled},on:{click:e.showCalendar}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.calendarButtonIcon},[e._v(`
224        `+e._s(e.calendarButtonIconContent)+`
225        `),e.calendarButtonIcon?e._e():n("span",[e._v("…")])])])]):e._e(),e._v(" "),n("input",{ref:e.refName,class:e.computedInputClass,attrs:{type:e.inline?"hidden":"text",name:e.name,id:e.id,"open-date":e.openDate,placeholder:e.placeholder,"clear-button":e.clearButton,disabled:e.disabled,required:e.required,readonly:!e.typeable,autocomplete:"off"},domProps:{value:e.formattedValue},on:{click:e.showCalendar,keyup:e.parseTypedDate,blur:e.inputBlurred}}),e._v(" "),e.clearButton&&e.selectedDate?n("span",{staticClass:"vdp-datepicker__clear-button",class:{"input-group-append":e.bootstrapStyling},on:{click:function(r){return e.clearDate()}}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.clearButtonIcon},[e.clearButtonIcon?e._e():n("span",[e._v("×")])])])]):e._e(),e._v(" "),e._t("afterDateInput")],2)},oA=[];mm._withStripped=!0;const aA=void 0,lA=void 0,uA=void 0,cA=!1;var dA=zi({render:mm,staticRenderFns:oA},aA,sA,lA,cA,uA,void 0,void 0),hA={props:{showDayView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,fullMonthName:Boolean,allowedToShowView:Function,dayCellContent:{type:Function,default:function(t){return t.date}},disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,mondayFirst:Boolean,useUtc:Boolean},data:function(){var t=Gi(this.useUtc);return{utils:t}},computed:{daysOfWeek:function(){if(this.mondayFirst){var t=this.translation.days.slice();return t.push(t.shift()),t}return this.translation.days},blankDays:function(){var t=this.pageDate,n=this.useUtc?new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)):new Date(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes());return this.mondayFirst?this.utils.getDay(n)>0?this.utils.getDay(n)-1:6:this.utils.getDay(n)},days:function(){for(var t=this.pageDate,n=[],r=this.useUtc?new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)):new Date(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes()),i=this.utils.daysInMonth(this.utils.getFullYear(r),this.utils.getMonth(r)),s=0;s<i;s++)n.push({date:this.utils.getDate(r),timestamp:r.getTime(),isSelected:this.isSelectedDate(r),isDisabled:this.isDisabledDate(r),isHighlighted:this.isHighlightedDate(r),isHighlightStart:this.isHighlightStart(r),isHighlightEnd:this.isHighlightEnd(r),isToday:this.utils.compareDates(r,new Date),isWeekend:this.utils.getDay(r)===0||this.utils.getDay(r)===6,isSaturday:this.utils.getDay(r)===6,isSunday:this.utils.getDay(r)===0}),this.utils.setDate(r,this.utils.getDate(r)+1);return n},currMonthName:function(){var t=this.fullMonthName?this.translation.months:this.translation.monthsAbbr;return this.utils.getMonthNameAbbr(this.utils.getMonth(this.pageDate),t)},currYearName:function(){var t=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(t)},isYmd:function(){return this.translation.ymd&&this.translation.ymd===!0},isLeftNavDisabled:function(){return this.isRtl?this.isNextMonthDisabled(this.pageTimestamp):this.isPreviousMonthDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousMonthDisabled(this.pageTimestamp):this.isNextMonthDisabled(this.pageTimestamp)}},methods:{selectDate:function(t){if(t.isDisabled)return this.$emit("selectedDisabled",t),!1;this.$emit("selectDate",t)},getPageMonth:function(){return this.utils.getMonth(this.pageDate)},showMonthCalendar:function(){this.$emit("showMonthCalendar")},changeMonth:function(t){var n=this.pageDate;this.utils.setMonth(n,this.utils.getMonth(n)+t),this.$emit("changedMonth",n)},previousMonth:function(){this.isPreviousMonthDisabled()||this.changeMonth(-1)},isPreviousMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var t=this.pageDate;return this.utils.getMonth(this.disabledDates.to)>=this.utils.getMonth(t)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(t)},nextMonth:function(){this.isNextMonthDisabled()||this.changeMonth(1)},isNextMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var t=this.pageDate;return this.utils.getMonth(this.disabledDates.from)<=this.utils.getMonth(t)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(t)},isSelectedDate:function(t){return this.selectedDate&&this.utils.compareDates(this.selectedDate,t)},isDisabledDate:function(t){var n=this,r=!1;return typeof this.disabledDates=="undefined"?!1:(typeof this.disabledDates.dates!="undefined"&&this.disabledDates.dates.forEac
225h(function(i){if(n.utils.compareDates(t,i))return r=!0,!0}),typeof this.disabledDates.to!="undefined"&&this.disabledDates.to&&t<this.disabledDates.to&&(r=!0),typeof this.disabledDates.from!="undefined"&&this.disabledDates.from&&t>this.disabledDates.from&&(r=!0),typeof this.disabledDates.ranges!="undefined"&&this.disabledDates.ranges.forEach(function(i){if(typeof i.from!="undefined"&&i.from&&typeof i.to!="undefined"&&i.to&&t<i.to&&t>i.from)return r=!0,!0}),typeof this.disabledDates.days!="undefined"&&this.disabledDates.days.indexOf(this.utils.getDay(t))!==-1&&(r=!0),typeof this.disabledDates.daysOfMonth!="undefined"&&this.disabledDates.daysOfMonth.indexOf(this.utils.getDate(t))!==-1&&(r=!0),typeof this.disabledDates.customPredictor=="function"&&this.disabledDates.customPredictor(t)&&(r=!0),r)},isHighlightedDate:function(t){var n=this;if(!(this.highlighted&&this.highlighted.includeDisabled)&&this.isDisabledDate(t))return!1;var r=!1;return typeof this.highlighted=="undefined"?!1:(typeof this.highlighted.dates!="undefined"&&this.highlighted.dates.forEach(function(i){if(n.utils.compareDates(t,i))return r=!0,!0}),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(r=t>=this.highlighted.from&&t<=this.highlighted.to),typeof this.highlighted.days!="undefined"&&this.highlighted.days.indexOf(this.utils.getDay(t))!==-1&&(r=!0),typeof this.highlighted.daysOfMonth!="undefined"&&this.highlighted.daysOfMonth.indexOf(this.utils.getDate(t))!==-1&&(r=!0),typeof this.highlighted.customPredictor=="function"&&this.highlighted.customPredictor(t)&&(r=!0),r)},dayClasses:function(t){return{selected:t.isSelected,disabled:t.isDisabled,highlighted:t.isHighlighted,today:t.isToday,weekend:t.isWeekend,sat:t.isSaturday,sun:t.isSunday,"highlight-start":t.isHighlightStart,"highlight-end":t.isHighlightEnd}},isHighlightStart:function(t){return this.isHighlightedDate(t)&&this.highlighted.from instanceof Date&&this.utils.getFullYear(this.highlighted.from)===this.utils.getFullYear(t)&&this.utils.getMonth(this.highlighted.from)===this.utils.getMonth(t)&&this.utils.getDate(this.highlighted.from)===this.utils.getDate(t)},isHighlightEnd:function(t){return this.isHighlightedDate(t)&&this.highlighted.to instanceof Date&&this.utils.getFullYear(this.highlighted.to)===this.utils.getFullYear(t)&&this.utils.getMonth(this.highlighted.to)===this.utils.getMonth(t)&&this.utils.getDate(this.highlighted.to)===this.utils.getDate(t)},isDefined:function(t){return typeof t!="undefined"&&t}}};const fA=hA;var gm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDayView,expression:"showDayView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(r){r.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(r){e.isRtl?e.nextMonth():e.previousMonth()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"day__month_btn",class:e.allowedToShowView("month")?"up":"",on:{click:e.showMonthCalendar}},[e._v(e._s(e.isYmd?e.currYearName:e.currMonthName)+" "+e._s(e.isYmd?e.currMonthName:e.currYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(r){e.isRtl?e.previousMonth():e.nextMonth()}}},[e._v(">")])]),e._v(" "),n("div",{class:e.isRtl?"flex-rtl":""},[e._l(e.daysOfWeek,function(r){return n("span",{key:r.timestamp,staticClass:"cell day-header"},[e._v(e._s(r))])}),e._v(" "),e.blankDays>0?e._l(e.blankDays,function(r){return n("span",{key:r.timestamp,staticClass:"cell day blank"})}):e._e(),e._l(e.days,function(r){return n("span",{key:r.timestamp,staticClass:"cell day",class:e.dayClasses(r),domProps:{innerHTML:e._s(e.dayCellContent(r))},on:{click:function(i){return e.selectDate(r)}}})})],2)],2)},pA=[];gm._withStripped=!0;const mA=void 0,gA=void 0,vA=void 0,bA=!1;var _A=zi({render:gm,staticRenderFns:pA},mA,fA,gA,bA,vA,void 0,void 0),yA={props:{showMonthView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},data:function(){var t=Gi(this.useUtc);return{utils:t}}
225,computed:{months:function(){for(var t=this.pageDate,n=[],r=this.useUtc?new Date(Date.UTC(t.getUTCFullYear(),0,t.getUTCDate())):new Date(t.getFullYear(),0,t.getDate(),t.getHours(),t.getMinutes()),i=0;i<12;i++)n.push({month:this.utils.getMonthName(i,this.translation.months),timestamp:r.getTime(),isSelected:this.isSelectedMonth(r),isDisabled:this.isDisabledMonth(r)}),this.utils.setMonth(r,this.utils.getMonth(r)+1);return n},pageYearName:function(){var t=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(t)},isLeftNavDisabled:function(){return this.isRtl?this.isNextYearDisabled(this.pageTimestamp):this.isPreviousYearDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousYearDisabled(this.pageTimestamp):this.isNextYearDisabled(this.pageTimestamp)}},methods:{selectMonth:function(t){if(t.isDisabled)return!1;this.$emit("selectMonth",t)},changeYear:function(t){var n=this.pageDate;this.utils.setFullYear(n,this.utils.getFullYear(n)+t),this.$emit("changedYear",n)},previousYear:function(){this.isPreviousYearDisabled()||this.changeYear(-1)},isPreviousYearDisabled:function(){return!this.disabledDates||!this.disabledDates.to?!1:this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(this.pageDate)},nextYear:function(){this.isNextYearDisabled()||this.changeYear(1)},isNextYearDisabled:function(){return!this.disabledDates||!this.disabledDates.from?!1:this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(this.pageDate)},showYearCalendar:function(){this.$emit("showYearCalendar")},isSelectedMonth:function(t){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(t)&&this.utils.getMonth(this.selectedDate)===this.utils.getMonth(t)},isDisabledMonth:function(t){var n=!1;return typeof this.disabledDates=="undefined"?!1:(typeof this.disabledDates.to!="undefined"&&this.disabledDates.to&&(this.utils.getMonth(t)<this.utils.getMonth(this.disabledDates.to)&&this.utils.getFullYear(t)<=this.utils.getFullYear(this.disabledDates.to)||this.utils.getFullYear(t)<this.utils.getFullYear(this.disabledDates.to))&&(n=!0),typeof this.disabledDates.from!="undefined"&&this.disabledDates.from&&(this.utils.getMonth(t)>this.utils.getMonth(this.disabledDates.from)&&this.utils.getFullYear(t)>=this.utils.getFullYear(this.disabledDates.from)||this.utils.getFullYear(t)>this.utils.getFullYear(this.disabledDates.from))&&(n=!0),typeof this.disabledDates.customPredictor=="function"&&this.disabledDates.customPredictor(t)&&(n=!0),n)}}};const wA=yA;var vm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showMonthView,expression:"showMonthView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(r){r.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(r){e.isRtl?e.nextYear():e.previousYear()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"month__year_btn",class:e.allowedToShowView("year")?"up":"",on:{click:e.showYearCalendar}},[e._v(e._s(e.pageYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(r){e.isRtl?e.previousYear():e.nextYear()}}},[e._v(">")])]),e._v(" "),e._l(e.months,function(r){return n("span",{key:r.timestamp,staticClass:"cell month",class:{selected:r.isSelected,disabled:r.isDisabled},on:{click:function(i){return i.stopPropagation(),e.selectMonth(r)}}},[e._v(e._s(r.month))])})],2)},CA=[];vm._withStripped=!0;const xA=void 0,AA=void 0,SA=void 0,EA=!1;var TA=zi({render:vm,staticRenderFns:CA},xA,wA,AA,EA,SA,void 0,void 0),DA={props:{showYearView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},computed:{years:function(){for(var t=this.pageDate,n=[],r=this.useUtc?new Date(Date.UTC(Math.floor(t.getUTCFullYear()/10)*10,t.getUTCMonth(),t.getUTCDate())):new Date(Math.floor(t.getFullYear()/10)*10,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()),i=0;i<10;i++)n.push({year:this.utils.getFullYear(r),timestamp:r.getTime(),isSelected:this.isSelectedYear(r),isDisabled:this.isDisabledYear(r)}),this.utils.setFullYear(r,this.utils.getFullYear(r)+1);return n},getPageDecade:function(){var t=Math.floor(this.utils.getFullYear(this.pageDate)/10)*10,n=t+9,r=this.translation.yearSuffix;return"".concat(t," - ").concat(n).concat(r)},isLeftNavDisabled:function(){return this.isRtl?this.isNextDecadeDisabled(this.pageTimestamp):this.isPreviousDecadeDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousDecadeDisabled(this.pageTimestamp):this.isNextDecadeDisabled(this.pageTimestamp)}},data:function(){var t=Gi(this.useUtc);return{utils:t}},methods:{selectYear:function(t){if(t.isDisabled)return!1;this.$emit("selectYear",t)},changeYear:function(t){var n=this.pageDate;this.utils.setFullYear(n,this.utils.getFullYear(n)+t),this.$emit("changedDecade",n)},previousDecade:function(){if(this.isPreviousDecadeDisabled())return!1;this.changeYear(-10)},isPreviousDecadeDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var t=this.utils.getFullYear(this.disabledDates.to),n=Math.floor(this.utils.getFullYear(this.pageDate)/10)*10-1;return t>n},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var t=this.utils.getFullYear(this.disabledDates.from),n=Math.ceil(this.utils.getFullYear(this.pageDate)/10)*10;return t<n},isSelectedYear:function(t){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(t)},isDisabledYear:function(t){var n=!1;return typeof this.disabledDates=="undefined"||!this.disabledDates?!1:(typeof this.disabledDates.to!="undefined"&&this.disabledDates.to&&this.utils.getFullYear(t)<this.utils.getFullYear(this.disabledDates.to)&&(n=!0),typeof this.disabledDates.from!="undefined"&&this.disabledDates.from&&this.utils.getFullYear(t)>this.utils.getFullYear(this.disabledDates.from)&&(n=!0),typeof this.disabledDates.customPredictor=="function"&&this.disabledDates.customPredictor(t)&&(n=!0),n)}}};const kA=DA;var bm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showYearView,expression:"showYearView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(r){r.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(r){e.isRtl?e.nextDecade():e.previousDecade()}}},[e._v("<")]),e._v(" "),n("span",[e._v(e._s(e.getPageDecade))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(r){e.isRtl?e.previousDecade():e.nextDecade()}}},[e._v(">")])]),e._v(" "),e._l(e.years,function(r){return n("span",{key:r.timestamp,staticClass:"cell year",class:{selected:r.isSelected,disabled:r.isDisabled},on:{click:function(i){return i.stopPropagation(),e.selectYear(r)}}},[e._v(e._s(r.year))])})],2)},OA=[];bm._withStripped=!0;const RA=void 0,PA=void 0,$A=void 0,LA=!1;var BA=zi({render:bm,staticRenderFns:OA},RA,kA,PA,LA,$A,void 0,void 0),MA={components:{DateInput:dA,PickerDay:_A,PickerMonth:TA,PickerYear:BA},props:{value:{validator:function(t){return Gd.validateDateInput(t)}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return fm}},openDate:{validator:function(t){return Gd.validateDateInput(t)}},dayCellContent:Function,fullMonthName:Boolean,disabledDates:Object,highlighted:Object,placeholder:String,inline:Boolean,calendarClass:[String,Object,Array],inputClass:[String,Object,Array],wrapperClass:[String,Object,Array],mondayFirst:Boolean,clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,bootstrapStyling:Boolean,initialView:String,disabled:Boolean,required:Boolean,typeable:Boolean,useUtc:Boolean,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"}},data:function(){var t=this.openDate?new Date(this.openDate):new Date,n=Gi(this.useUtc),r=n.setDate(t,1);return{pageTimestamp:r,selectedDate:null,showDayView:!1,showMonthView:!1,showYearView:!1,calendarHeight:0,resetTypedDate:new Date,utils:n}},watch:{value:function(t){this.setValue(t)},openDate:function(){this.setPageDate()},initialView:function(){this.setInitialView()}},computed:{computedInitialView:function(){return this.initialView?this.initialView:this.minimumView},pageDate:function(){return new Date(this.pageTimestamp)},translation:function(){return this.language},calendarStyle:function(){return{position:this.isInline?"static":void 0}},isOpen:function(){return this.showDayView||this.showMonthView||this.showYearView}
225,isInline:function(){return!!this.inline},isRtl:function(){return this.translation.rtl===!0}},methods:{resetDefaultPageDate:function(){if(this.selectedDate===null){this.setPageDate();return}this.setPageDate(this.selectedDate)},showCalendar:function(){if(this.disabled||this.isInline)return!1;if(this.isOpen)return this.close(!0);this.setInitialView()},setInitialView:function(){var t=this.computedInitialView;if(!this.allowedToShowView(t))throw new Error("initialView '".concat(this.initialView,"' cannot be rendered based on minimum '").concat(this.minimumView,"' and maximum '").concat(this.maximumView,"'"));switch(t){case"year":this.showYearCalendar();break;case"month":this.showMonthCalendar();break;default:this.showDayCalendar();break}},allowedToShowView:function(t){var n=["day","month","year"],r=n.indexOf(this.minimumView),i=n.indexOf(this.maximumView),s=n.indexOf(t);return s>=r&&s<=i},showDayCalendar:function(){return this.allowedToShowView("day")?(this.close(),this.showDayView=!0,!0):!1},showMonthCalendar:function(){return this.allowedToShowView("month")?(this.close(),this.showMonthView=!0,!0):!1},showYearCalendar:function(){return this.allowedToShowView("year")?(this.close(),this.showYearView=!0,!0):!1},setDate:function(t){var n=new Date(t);this.selectedDate=n,this.setPageDate(n),this.$emit("selected",n),this.$emit("input",n)},clearDate:function(){this.selectedDate=null,this.setPageDate(),this.$emit("selected",null),this.$emit("input",null),this.$emit("cleared")},selectDate:function(t){this.setDate(t.timestamp),this.isInline||this.close(!0),this.resetTypedDate=new Date},selectDisabledDate:function(t){this.$emit("selectedDisabled",t)},selectMonth:function(t){var n=new Date(t.timestamp);this.allowedToShowView("day")?(this.setPageDate(n),this.$emit("changedMonth",t),this.showDayCalendar()):this.selectDate(t)},selectYear:function(t){var n=new Date(t.timestamp);this.allowedToShowView("month")?(this.setPageDate(n),this.$emit("changedYear",t),this.showMonthCalendar()):this.selectDate(t)},setValue:function(t){if(typeof t=="string"||typeof t=="number"){var n=new Date(t);t=isNaN(n.valueOf())?null:n}if(!t){this.setPageDate(),this.selectedDate=null;return}this.selectedDate=t,this.setPageDate(t)},setPageDate:function(t){t||(this.openDate?t=new Date(this.openDate):t=new Date),this.pageTimestamp=this.utils.setDate(new Date(t),1)},handleChangedMonthFromDayPicker:function(t){this.setPageDate(t),this.$emit("changedMonth",t)},setTypedDate:function(t){this.setDate(t.getTime())},close:function(t){this.showDayView=this.showMonthView=this.showYearView=!1,this.isInline||(t&&this.$emit("closed"),document.removeEventListener("click",this.clickOutside,!1))},init:function(){this.value&&this.setValue(this.value),this.isInline&&this.setInitialView()}},mounted:function(){this.init()}},IA=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function FA(e){return function(t,n){return jA(t,n)}}var NA=document.head||document.getElementsByTagName("head")[0],zd={};function jA(e,t){var n=IA?t.media||"default":e,r=zd[n]||(zd[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var i=t.source;if(t.map&&(i+=`
226/*# sourceURL=`+t.map.sources[0]+" */",i+=`
227/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),NA.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join(`
228`);else{var s=r.ids.size-1,o=document.createTextNode(i),a=r.element.childNodes;a[s]&&r.element.removeChild(a[s]),a.length?r.element.insertBefore(o,a[s]):r.element.appendChild(o)}}}var UA=FA;const qA=MA;var _m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vdp-datepicker",class:[e.wrapperClass,e.isRtl?"rtl":""]},[n("date-input",{attrs:{selectedDate:e.selectedDate,resetTypedDate:e.resetTypedDate,format:e.format,translation:e.translation,inline:e.inline,id:e.id,name:e.name,refName:e.refName,openDate:e.openDate,placeholder:e.placeholder,inputClass:e.inputClass,typeable:e.typeable,clearButton:e.clearButton,clearButtonIcon:e.clearButtonIcon,calendarButton:e.calendarButton,calendarButtonIcon:e.calendarButtonIcon,calendarButtonIconContent:e.calendarButtonIconContent,disabled:e.disabled,required:e.required,bootstrapStyling:e.bootstrapStyling,"use-utc":e.useUtc},on:{showCalendar:e.showCalendar,closeCalendar:e.close,typedDate:e.setTypedDate,clearDate:e.clearDate}},[e._t("afterDateInput",null,{slot:"afterDateInput"})],2),e._v(" "),e.allowedToShowView("day")?n("picker-day",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showDayView:e.showDayView,fullMonthName:e.fullMonthName,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,highlighted:e.highlighted,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,pageTimestamp:e.pageTimestamp,isRtl:e.isRtl,mondayFirst:e.mondayFirst,dayCellContent:e.dayCellContent,"use-utc":e.useUtc},on:{changedMonth:e.handleChangedMonthFromDayPicker,selectDate:e.selectDate,showMonthCalendar:e.showMonthCalendar,selectedDisabled:e.selectDisabledDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("month")?n("picker-month",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showMonthView:e.showMonthView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectMonth:e.selectMonth,showYearCalendar:e.showYearCalendar,changedYear:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("year")?n("picker-year",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showYearView:e.showYearView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectYear:e.selectYear,changedDecade:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e()],1)},HA=[];_m._withStripped=!0;const GA=function(e){e&&e("data-v-64ca2bb5_0",{source:`.rtl {
229  direction: rtl;
230}
231.vdp-datepicker {
232  position: relative;
233  text-align: left;
234}
235.vdp-datepicker * {
236  box-sizing: border-box;
237}
238.vdp-datepicker__calendar {
239  position: absolute;
240  z-index: 100;
241  background: #fff;
242  width: 300px;
243  border: 1px solid #ccc;
244}
245.vdp-datepicker__calendar header {
246  display: block;
247  line-height: 40px;
248}
249.vdp-datepicker__calendar header span {
250  display: inline-block;
251  text-align: center;
252  width: 71.42857142857143%;
253  float: left;
254}
255.vdp-datepicker__calendar header .prev,
256.vdp-datepicker__calendar header .next {
257  width: 14.285714285714286%;
258  float: left;
259  text-indent: -10000px;
260  position: relative;
261}
262.vdp-datepicker__calendar header .prev:after,
263.vdp-datepicker__calendar header .next:after {
264  content: '';
265  position: absolute;
266  left: 50%;
267  top: 50%;
268  transform: translateX(-50%) translateY(-50%);
269  border: 6px solid transparent;
270}
271.vdp-datepicker__calendar header .prev:after {
272  border-right: 10px solid #000;
273  margin-left: -5px;
274}
275.vdp-datepicker__calendar header .prev.disabled:after {
276  border-right: 10px solid #ddd;
277}
278.vdp-datepicker__calendar header .next:after {
279  border-left: 10px solid #000;
280  margin-left: 5px;
281}
282.vdp-datepicker__calendar header .next.disabled:after {
283  border-left: 10px solid #ddd;
284}
285.vdp-datepicker__calendar header .prev:not(.disabled),
286.vdp-datepicker__calendar header .next:not(.disabled),
287.vdp-datepicker__calendar header .up:not(.disabled) {
288  cursor: pointer;
289}
290.vdp-datepicker__calendar header .prev:not(.disabled):hover,
291.vdp-datepicker__calendar header .next:not(.disabled):hover,
292.vdp-datepicker__calendar header .up:not(.disabled):hover {
293  background: #eee;
294}
295.vdp-datepicker__calendar .disabled {
296  color: #ddd;
297  cursor: default;
298}
299.vdp-datepicker__calendar .flex-rtl {
300  display: flex;
301  width: inherit;
302  flex-wrap: wrap;
303}
304.vdp-datepicker__calendar .cell {
305  display: inline-block;
306  padding: 0 5px;
307  width: 14.285714285714286%;
308  height: 40px;
309  line-height: 40px;
310  text-align: center;
311  vertical-align: middle;
312  border: 1px solid transparent;
313}
314.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,
315.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,
316.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {
317  cursor: pointer;
318}
319.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,
320.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,
321.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {
322  border: 1px solid #4bd;
323}
324.vdp-datepicker__calendar .cell.selected {
325  background: #4bd;
326}
327.vdp-datepicker__calendar .cell.selected:hover {
328  background: #4bd;
329}
330.vdp-datepicker__calendar .cell.selected.highlighted {
331  background: #4bd;
332}
333.vdp-datepicker__calendar .cell.highlighted {
334  background: #cae5ed;
335}
336.vdp-datepicker__calendar .cell.highlighted.disabled {
337  color: #a3a3a3;
338}
339.vdp-datepicker__calendar .cell.grey {
340  color: #888;
341}
342.vdp-datepicker__calendar .cell.grey:hover {
343  background: inherit;
344}
345.vdp-datepicker__calendar .cell.day-header {
346  font-size: 75%;
347  white-space: nowrap;
348  cursor: inherit;
349}
350.vdp-datepicker__calendar .cell.day-header:hover {
351  background: inherit;
352}
353.vdp-datepicker__calendar .month,
354.vdp-datepicker__calendar .year {
355  width: 33.333%;
356}
357.vdp-datepicker__clear-button,
358.vdp-datepicker__calendar-button {
359  cursor: pointer;
360  font-style: normal;
361}
362.vdp-datepicker__clear-button.disabled,
363.vdp-datepicker__calendar-button.disabled {
364  color: #999;
365  cursor: default;
366}
367`,map:{version:3,sources:["Datepicker.vue"],names:[],mappings:"AAAA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;AACA;;EAEE,0BAA0B;EAC1B,WAAW;EACX,qBAAqB;EACrB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,4CAA4C;EAC5C,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,gBAAgB;AAClB;AACA;EACE,4BAA4B;AAC9B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,aAAa;EACb,cAAc;EACd,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,0BAA0B;EAC1B,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;
367AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,eAAe;AACjB",file:"Datepicker.vue",sourcesContent:[`.rtl {
368  direction: rtl;
369}
370.vdp-datepicker {
371  position: relative;
372  text-align: left;
373}
374.vdp-datepicker * {
375  box-sizing: border-box;
376}
377.vdp-datepicker__calendar {
378  position: absolute;
379  z-index: 100;
380  background: #fff;
381  width: 300px;
382  border: 1px solid #ccc;
383}
384.vdp-datepicker__calendar header {
385  display: block;
386  line-height: 40px;
387}
388.vdp-datepicker__calendar header span {
389  display: inline-block;
390  text-align: center;
391  width: 71.42857142857143%;
392  float: left;
393}
394.vdp-datepicker__calendar header .prev,
395.vdp-datepicker__calendar header .next {
396  width: 14.285714285714286%;
397  float: left;
398  text-indent: -10000px;
399  position: relative;
400}
401.vdp-datepicker__calendar header .prev:after,
402.vdp-datepicker__calendar header .next:after {
403  content: '';
404  position: absolute;
405  left: 50%;
406  top: 50%;
407  transform: translateX(-50%) translateY(-50%);
408  border: 6px solid transparent;
409}
410.vdp-datepicker__calendar header .prev:after {
411  border-right: 10px solid #000;
412  margin-left: -5px;
413}
414.vdp-datepicker__calendar header .prev.disabled:after {
415  border-right: 10px solid #ddd;
416}
417.vdp-datepicker__calendar header .next:after {
418  border-left: 10px solid #000;
419  margin-left: 5px;
420}
421.vdp-datepicker__calendar header .next.disabled:after {
422  border-left: 10px solid #ddd;
423}
424.vdp-datepicker__calendar header .prev:not(.disabled),
425.vdp-datepicker__calendar header .next:not(.disabled),
426.vdp-datepicker__calendar header .up:not(.disabled) {
427  cursor: pointer;
428}
429.vdp-datepicker__calendar header .prev:not(.disabled):hover,
430.vdp-datepicker__calendar header .next:not(.disabled):hover,
431.vdp-datepicker__calendar header .up:not(.disabled):hover {
432  background: #eee;
433}
434.vdp-datepicker__calendar .disabled {
435  color: #ddd;
436  cursor: default;
437}
438.vdp-datepicker__calendar .flex-rtl {
439  display: flex;
440  width: inherit;
441  flex-wrap: wrap;
442}
443.vdp-datepicker__calendar .cell {
444  display: inline-block;
445  padding: 0 5px;
446  width: 14.285714285714286%;
447  height: 40px;
448  line-height: 40px;
449  text-align: center;
450  vertical-align: middle;
451  border: 1px solid transparent;
452}
453.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,
454.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,
455.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {
456  cursor: pointer;
457}
458.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,
459.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,
460.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {
461  border: 1px solid #4bd;
462}
463.vdp-datepicker__calendar .cell.selected {
464  background: #4bd;
465}
466.vdp-datepicker__calendar .cell.selected:hover {
467  background: #4bd;
468}
469.vdp-datepicker__calendar .cell.selected.highlighted {
470  background: #4bd;
471}
472.vdp-datepicker__calendar .cell.highlighted {
473  background: #cae5ed;
474}
475.vdp-datepicker__calendar .cell.highlighted.disabled {
476  color: #a3a3a3;
477}
478.vdp-datepicker__calendar .cell.grey {
479  color: #888;
480}
481.vdp-datepicker__calendar .cell.grey:hover {
482  background: inherit;
483}
484.vdp-datepicker__calendar .cell.day-header {
485  font-size: 75%;
486  white-space: nowrap;
487  cursor: inherit;
488}
489.vdp-datepicker__calendar .cell.day-header:hover {
490  background: inherit;
491}
492.vdp-datepicker__calendar .month,
493.vdp-datepicker__calendar .year {
494  width: 33.333%;
495}
496.vdp-datepicker__clear-button,
497.vdp-datepicker__calendar-button {
498  cursor: pointer;
499  font-style: normal;
500}
501.vdp-datepicker__clear-button.disabled,
502.vdp-datepicker__calendar-button.disabled {
503  color: #999;
504  cursor: default;
505}
506`]},media:void 0})},zA=void 0,VA=void 0,WA=!1;var G$=zi({render:_m,staticRenderFns:HA},GA,qA,zA,WA,VA,UA,void 0);const z$={data:function(){return{sidebar:"",mobileTrigger:"",sidebarClasses:"",navPaths:[],main:""}},mounted:function(){var e;this.sidebar=document.getElementById("sidebar"),this.sidebarClasses=this.sidebar.classList,this.mobileTrigger=document.getElementById("nav-opener"),(e=this.mobileTrigger)==null||e.addEventListener("click",this.mobileNavTriggerHandler),this.main=this.sidebar.nextElementSibling},methods:{mobileNavClickHandler:function(e){this.sidebar.contains(e.target)||this.mobileTrigger===e.target||(this.sidebarClasses.remove("mobile-nav-active"),this.main.style="")},mobileNavTriggerHandler:function(){this.sidebarClasses.contains("mobile-nav-active")?this.closeMobileNav():(this.sidebarClasses.add("mobile-nav-active"),this.main.style="filter: blur(5px);",document.addEventListener("click",this.mobileNavClickHandler),document.addEventListener("touchend",this.mobileNavClickHandler))},closeMobileNav:function(){this.sidebarClasses.remove("mobile-nav-active"),this.main.style="",document.removeEventListener("click",this.mobileNavClickHandler),document.removeEventListener("touchend",this.mobileNavClickHandler)}}},V$={methods:{isActive:function(e){return window.location.pathname===e?!0:window.location.hash===e},showChildNavs:function(e){if(e.childNavs===void 0)return!1;const t=this.isActive(e.path),n=e.childNavs.some(r=>this.isActive(r.path));return t||n},scrollToChildNav:function(e,t){const n=window.location.hash;window.location.hash=t,n!==t&&this.removeActiveClassFromChildNavs(),this.closeMobileNav(),e.target.classList.add("active");const r=document.getElementById("header"),i=r.offsetHeight;let s=0;document.getElementById("acting-as")&&(s=r.offsetHeight);const a=i+s+10,l=document.getElementById(t.replace("#",""));window.scrollBy(0,l.getBoundingClientRect().top-a)},removeActiveClassFromChildNavs:function(){const e=document.getElementsByClassName("child-nav");Array.prototype.forEach.call(e,function(t){t.classList.remove("active")})},addNestedChildNavs:function(e){const t=[],n=document.getElementsByTagName("span");Array.prototype.forEach.call(n,function(r){r.classList.contains("jump")&&t.push(r.i
506d)}),e.nestedChildNavs=this.buildChildNavs(t),this.$root.$emit("addNestedChildNavs",e)},buildChildNavs:function(e){return e.map(t=>{const n=t.split("-").map(r=>r.replace(r[0],r[0].toUpperCase()));return{name:t,label:n.join(" "),path:`#${t}`}})}}},YA={name:"checkbox",mixins:[Me],props:{value:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},termsAndCond:{type:Boolean,default:!1}},computed:{checkboxClass:function(){return{"check-box":!0,disabled:this.disabled}}},watch:{disabled:function(e){e&&this.updateAndEmit(!1)}},mounted(){this.value&&(document.getElementById(this.id).checked=!0)},methods:at(J({},Ht(["agreedToTermsAndCond"])),{formatValue(){return!0},updateAndEmit(e){this.termsAndCond&&this.agreedToTermsAndCond(document.getElementById(this.id).checked),this.$emit("input",e),this.$emit("value-updated")}})};var JA=function(){var t=this,n=t._self._c;return n("div",{class:t.checkboxClass,attrs:{id:`check_wrapper_${t.id}`}},[n("input",{attrs:{type:"hidden",name:t.name,value:"false"}}),t._v(" "),n("input",{attrs:{type:"checkbox",name:t.name,id:t.id,disabled:t.disabled},domProps:{value:t.value,checked:t.value},on:{click:function(r){return t.updateAndEmit(!t.value)}}}),t._v(" "),n("label",{attrs:{for:t.id}},[t._t("label-content",function(){return[t._m(0)]})],2)])},KA=[function(){var e=this,t=e._self._c;return t("div",[t("span",{staticClass:"label-span"})])}],XA=W(YA,JA,KA,!1,null,null);const ZA=XA.exports,QA=Object.freeze(Object.defineProperty({__proto__:null,default:ZA},Symbol.toStringTag,{value:"Module"})),t1={name:"radio",mixins:[Me],props:{value:{type:[Object,String,Number,Boolean],required:!0},radioValue:{type:[Object,String,Number,Boolean],required:!0},inputClass:{type:[Object,String],default:""},inputDisabled:{type:Boolean,default:!1}},computed:{wrapperClasses:function(){return{"radio-button":!0,disabled:this.inputDisabled===!0}}},methods:{isEqual:Kf,formatValue(){return!0},updateAndEmit(){this.$emit("input",this.radioValue),this.$emit("value-updated")}}};var e1=function(){var t=this,n=t._self._c;return n("div",{class:t.wrapperClasses,attrs:{id:`radio_wrapper_${t.id}`}},[n("input",{class:t.inputClass,attrs:{type:"radio",name:t.name,id:t.id,disabled:t.inputDisabled},domProps:{value:t.radioValue,checked:t.isEqual(t.value,t.radioValue)},on:{click:function(r){return t.updateAndEmit()}}}),t._v(" "),n("label",{attrs:{for:t.id}},[t._t("label-content")],2)])},n1=[],r1=W(t1,e1,n1,!1,null,null);const i1=r1.exports,s1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"})),o1={name:"pagination",props:{getPage:{type:Function,required:!0},pageData:{type:Object,required:!0}},computed:{showPagination:function(){return this.pageData.total>1},showPrevLink:function(){return this.pageData.current!==1},showNextLink:function(){return this.pageData.current!==this.pageData.total},beginningPages:function(){var e=this.pageData.current,t=this.pageData.total;if(t<9)return t;if(e<5){var n=e===1?3:e+1;return this.pageRange(1,n)}else return 1},middlePages:function(){var e=this.pageData.current,t=this.pageData.total;return e>4&&e<t-3?this.pageRange(e-1,e+1):[]},finalPages:function(){var e=this.pageData.current,t=this.pageData.total;if(t<9)return[];if(e>t-4){var n=e===t?t-2:e-1;return this.pageRange(n,t)}else return[t]},showFirstEllipses:function(){return this.pageData.total>=9},showSecondEllipses:function(){return this.middlePages.length>0}},methods:{pageRange:function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}}};var a1=function(){var t=this,n=t._self._c;return t.showPagination?n("div",{staticClass:"pagination"},[t.showPrevLink?n("a",{staticClass:"prev fal fa-angle-left",attrs:{href:"#","aria-hidden":"true",title:"Back"},on:{click:function(r){return r.preventDefault(),t.getPage(t.pageData.current-1)}}}):t._e(),t._v(" "),n("ul",[t._l(t.beginningPages,function(r){return n("li",[n("a",{class:{active:r===t.pageData.current},attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.getPage(r)}}},[t._v(t._s(r))])])}),t._v(" "),t.showFirstEllipses?n("span",[t._v("...")]):t._e(),t._v(" "),t._l(t.middlePages,function(r){return n("li",[n("a",{class:{active:r===t.pageData.current},attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.getPage(r)}}},[t._v(t._s(r))])])}),t._v(" "),t.showSecondEllipses?n("span",[t._v("...")]):t._e(),t._v(" "),t._l(t.finalPages,function(r){return n("li",[n("a",{class:{active:r===t.pageData.current},attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.getPage(r)}}},[t._v(t._s(r))])])})],2),t._v(" "),t.showNextLink?n("a",{staticClass:"next fal fa-angle-left",attrs:{href:"#","aria-hidden":"true",title:"Next"},on:{click:function(r){return r.preventDefault(),t.getPage(t.pageData.current+1)}}}):t._e()]):t._e()},l1=[],u1=W(o1,a1,l1,!1,null,null);const c1=u1.exports,d1=Object.freeze(Object.defineProperty({__proto__:null,default:c1},Symbol.toStringTag,{value:"Module"})),h1={name:"apple-pay",mixins:[fr],computed:at(J({},ct({envInfo:"envInfo",cartAmount:"cartAmount",token:"token",paths:"paths",config:"clientConfig",company:"companyData"})),{paymentRequest:function(){return{countryCode:"US",currencyCode:"USD",total:{label:this.company.name,amount:this.cartAmount},requiredShippingContactFields:["name","phone","email"],requiredBillingContactFields:["postalAddress"],supportedNetworks:["visa","masterCard","amex","discover"],merchantCapabilities:["supports3DS"]}}
506,highestCompatibleVersion:function(){return[...Array(10).keys()].reverse().find(t=>{const n=t+1;return window.ApplePaySession.supportsVersion(n)})}}),methods:{cartForOrderSubmit:Vs,applePayIsAvailable:function(){var e=!window.ApplePaySession;if(!e){var t=window.ApplePaySession.canMakePaymentsWithActiveCard(this.envInfo.applePayMerchantId);t.then(function(n){return e=e||!!n,e})}return!e},applePayButtonClicked:function(){if(document.getElementById("agree").checked){var t=new window.ApplePaySession(this.highestCompatibleVersion,this.paymentRequest);t.onvalidatemerchant=n=>{var r=this.callEndpoint("POST",this.paths.applePayMerchantSessionPath,{authenticity_token:this.token},!0);r.then(function(i){t.completeMerchantValidation(JSON.parse(i.data.content))})},t.onpaymentauthorized=n=>{const r={authenticity_token:this.token,cart_items:Vs(),ewallet:n.payment,ewallet_account_type:"apple_pay"};var i=this.callEndpoint("POST",this.paths.ewalletSubmitPath,r,!0);i.then(function(s){var o;s.data.status==="success"?o={status:window.ApplePaySession.STATUS_SUCCESS}:o={status:window.ApplePaySession.STATUS_FAILURE},t.completePayment(o);var a=JSON.parse(s.data.content);document.getElementById("ewallet-order-id").value=a.id,document.getElementById("new-order").submit()})},t.begin()}}}};var f1=function(){var t=this,n=t._self._c;return t.applePayIsAvailable?n("apple-pay-button",{staticClass:"apple-pay-button",attrs:{buttonstyle:"black",type:"pay",locale:"en"},on:{click:t.applePayButtonClicked}}):n("div",[t._v("Apple pay is not available")])},p1=[],m1=W(h1,f1,p1,!1,null,"b090f03a");const g1=m1.exports,v1=Object.freeze(Object.defineProperty({__proto__:null,default:g1},Symbol.toStringTag,{value:"Module"})),b1={name:"autopay-turnoff-modal",mixins:[fr],props:{parcel:{type:Object,required:!0}},methods:{capitalize:zr,turnOffAutopay:function(){this.callEndpoint("GET",this.parcel.disable_autopay_schedule_path).then(e=>{setTimeout(()=>{this.parcel.using_autopay=!1},400),this.$emit("reload-page")}).catch(e=>{}).finally(e=>{this.$emit("close")})}}};var _1=function(){var t=this,n=t._self._c;return n("modal",{staticClass:"confirmation-modal",attrs:{id:"autopay-shutoff","show-close-button":!0},on:{close:function(r){return t.$emit("close")}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h3",{staticClass:"tw-pb-3"},[t._v("Turn Off "+t._s(t.capitalize(t.parcel.service_terms.autopay)))])]),t._v(" "),n("div",{staticClass:"tw-text-center",attrs:{slot:"body"},slot:"body"},[t._v(`
507    Are you sure you want to turn off `+t._s(t.parcel.service_terms.autopay)+`?
508  `)]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("button",{staticClass:"tw-btn btn btn-primary tw-mb-2",on:{click:function(r){return r.preventDefault(),t.turnOffAutopay.apply(null,arguments)}}},[t._v(`
509      Turn Off
510    `)]),t._v(" "),n("br"),t._v(" "),n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.$emit("close")}}},[t._v(`
511      cancel
512    `)])])])},y1=[],w1=W(b1,_1,y1,!1,null,null);const C1=w1.exports,x1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),A1={name:"between-error-msg",props:{amount:{type:[Number,String],required:!0},max:{type:[Number,String],required:!0},min:{type:[Number,String],required:!0}},computed:{lessThan:function(){return this.amount<this.min},greaterThan:function(){return this.amount>this.max}},methods:{currency:lu}};var S1=function(){var t=this,n=t._self._c;return n("transition",{attrs:{name:"error-slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.lessThan||t.greaterThan,expression:"lessThan || greaterThan"}],staticClass:"error"},[t.lessThan?n("div",[t._v("Can't be less than "+t._s(t.currency(t.min)))]):t.greaterThan?n("div",[t._v("Can't be greater than "+t._s(t.currency(t.max)))]):t._e()])])},E1=[],T1=W(A1,S1,E1,!1,null,null);const D1=T1.exports,k1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),O1={name:"billpayer-act-as",props:{billpayer:{type:Object,required:!0},actAsPath:{type:String,required:!0}},computed:J({},ct({paths:"paths",token:"token"})),methods:at(J({},Ht(["clearCart"])),{actAs:function(){this.clearCart(this.billpayer.companySlug),document.getElementById("form-"+this.billpayer.hashed_id).submit()}})};var R1=function(){var t=this,n=t._self._c;return n("form",{attrs:{id:`form-${t.billpayer.hashed_id}`,action:t.actAsPath,method:"post"}},[n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"billpayer_hashed_id"},domProps:{value:t.billpayer.hashed_id}}),t._v(" "),n("button",{staticClass:"act-as-button btn btn-primary btn-small",attrs:{id:`button-${t.billpayer.hashed_id}`,type:"submit"},on:{click:function(r){return r.preventDefault(),t.actAs()}}},[t._v(`
513    Act As
514  `)])])},P1=[],$1=W(O1,R1,P1,!1,null,null);const L1=$1.exports,B1=Object.freeze(Object.defineProperty({__proto__:null,default:L1},Symbol.toStringTag,{value:"Module"})),M1={name:"cart-display",mixins:[Vt],props:{id:{type:String,default:void 0}},computed:at(J({},ct({loggedIn:"loggedIn",cart:"cartItems",paths:"paths",config:"clientConfig",cartEmpty:"cartEmpty",cartAmount:"cartAmount",allowClearCart:"allowClearCart"})),{elementId:function(){return this.loggedIn?this.id===void 0?"hide_cart_nav":this.id:""}}),methods:at(J({currency:lu},Ht(["clearCart","clearBillGroupStore"])),{confirmClearCart:function(){confirm("Are you sure you want to clear your cart?")&&(this.clearCart(),this.clearBillGroupStore(),!this.loggedIn&&this.config.usesExternalSearch&&(window.location.href=this.paths.newSearchPath))}})};var I1=function(){var t=this,n=t._self._c;return t.cartEmpty?t._e():n("div",{staticClass:"cart-nav tw-h-full tw-flex tw-items-center",attrs:{id:t.elementId}},[n("div",{staticClass:"cart tw-items-center tw-h-full tw-flex"},[n("a",{staticClass:"tw-px-6 tw-flex tw-text-center tw-justify-between",attrs:{href:t.paths.cartPath}},[n("div",{staticClass:"tw-inline-block tw-text-center"},[n("div",{staticClass:"tw-text-sm my-auto tw-text-center tw-h-full"},[n("span",[t._v(t._s(t.cart.length))]),n("br"),t._v(" "),n("i",{staticClass:"fa-classic fa-regular fa-shopping-cart"})])]),t._v(" "),n("span",{staticClass:"tw-ml-2 price"},[t._v(t._s(t.currency(t.cartAmount)))])])]),t._v(" "),t.allowClearCart?n("div",{staticClass:"empty-cart tw-h-full tw-grid tw-text-white tw-text-center tw-items-center tw-grid-cols-1"},[n("a",{staticClass:"tw-text-white tw-px-4",attrs:{href:"#"},on:{click:t.confirmClearCart}},[n("i",{staticClass:"tw-text-white hover:tw-text-white tw-text-sm fa-classic fa-solid fa-tras
514h-alt",attrs:{"aria-hidden":"true"}}),t._v(" "),n("p",{staticClass:"tw-text-white hover:tw-text-white tw-text-sm price"},[t._v("Clear Cart")])])]):t._e()])},F1=[],N1=W(M1,I1,F1,!1,null,null);const j1=N1.exports,U1=Object.freeze(Object.defineProperty({__proto__:null,default:j1},Symbol.toStringTag,{value:"Module"}));function q1(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 Rs={exports:{}},H1=Rs.exports,Vd;function G1(){return Vd||(Vd=1,(function(e,t){(function(n,r){typeof q1=="function"?e.exports=r():n.pluralize=r()})(H1,function(){var n=[],r=[],i={},s={},o={};function a(g){return typeof g=="string"?new RegExp("^"+g+"$","i"):g}function l(g,_){return g===_?_:g===g.toLowerCase()?_.toLowerCase():g===g.toUpperCase()?_.toUpperCase():g[0]===g[0].toUpperCase()?_.charAt(0).toUpperCase()+_.substr(1).toLowerCase():_.toLowerCase()}function u(g,_){return g.replace(/\$(\d{1,2})/g,function(S,E){return _[E]||""})}function c(g,_){return g.replace(_[0],function(S,E){var w=u(_[1],arguments);return l(S===""?g[E-1]:S,w)})}function d(g,_,S){if(!g.length||i.hasOwnProperty(g))return _;for(var E=S.length;E--;){var w=S[E];if(w[0].test(_))return c(_,w)}return _}function h(g,_,S){return function(E){var w=E.toLowerCase();return _.hasOwnProperty(w)?l(E,w):g.hasOwnProperty(w)?l(E,g[w]):d(w,E,S)}}function v(g,_,S,E){return function(w){var C=w.toLowerCase();return _.hasOwnProperty(C)?!0:g.hasOwnProperty(C)?!1:d(C,C,S)===C}}function f(g,_,S){var E=_===1?f.singular(g):f.plural(g);return(S?_+" ":"")+E}return f.plural=h(o,s,n),f.isPlural=v(o,s,n),f.singular=h(s,o,r),f.isSingular=v(s,o,r),f.addPluralRule=function(g,_){n.push([a(g),_])},f.addSingularRule=function(g,_){r.push([a(g),_])},f.addUncountableRule=function(g){if(typeof g=="string"){i[g.toLowerCase()]=!0;return}f.addPluralRule(g,"$0"),f.addSingularRule(g,"$0")},f.addIrregularRule=function(g,_){_=_.toLowerCase(),g=g.toLowerCase(),o[g]=_,s[_]=g},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(g){return f.addIrregularRule(g[0],g[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(g){return f.addPluralRule(g[0],g[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEac
514h(function(g){return f.addSingularRule(g[0],g[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})})(Rs)),Rs.exports}var z1=G1();const ym=Be(z1),V1={computed:{displayAmount:function(){const e=this.cart.find(t=>t.bill_group_uid===this.billGroup.bill_group_uid);return e?e.amount:(this.billGroup.display_amount_in_cents/100).toFixed(2)},paperlessReauthorizationRequired:function(){return this.billGroup.parcel.expiring_paperless},paperlessEditPath:function(){return this.billGroup.parcel.paperless_settings_path},showPaperless:function(){return!this.config.allowsPaperlessChoice||this.emptyParcel?!1:this.billGroup.offers_paperless},showAutopay:function(){return this.billGroupDisallowPayments||this.emptyParcel?!1:this.billGroup.autopay_options.allow},showSms:function(){return this.emptyParcel||!this.hasActiveSmsSetting?!1:this.billGroup.offers_sms_notifications},showSmsPay:function(){return this.billGroupDisallowPayments?!1:this.billGroup.allow_sms_pay},hasActiveSmsSetting:function(){return this.billGroup.parcel.active_sms_setting},billGroupDisallowPayments:function(){return this.billGroup.disallow_payments?!0:this.billGroup.bills.some(e=>e.disallow_payments)},hasMultipleSwitches:function(){return this.config.offersAutopay||this.showFuturepay},scheduledOrdersCount:function(){return ym("scheduled payment",this.billGroup.scheduled_orders_count,!0)},emptyParcel:function(){return this.billGroup.bills.length===0},noAmountOptions:function(){return this.emptyParcel||this.billGroup.bills.every(e=>e.options.length===0)},billGroupErrors:function(){if(!this.billGroup.messages||this.billGroup.messages.length===0)return!1;if(this.billGroup.messages.some(e=>e.status==="error"))return!0},hasZeroBalance:function(){return this.billGroup.display_amount_in_cents<=0}},methods:at(J({currency:lu,capitalize:zr},Ht(["setFlash"])),{reloadPage:function(){this.$emit("reload-page")},toggleBills:function(){this.$emit("toggle-bills")},removeBillGroup:function(e){this.$emit("remove-bill-group",e)},validationCode:function(e){return this.billGroup.bills.flatMap(n=>n.validation_fields[e])[0]}})},W1={computed:{showBillGroupDescription:function(){return this.searchGroup?this.searchGroup.showBillGroupDescriptionInResults:!0}}},Y1={name:"claim-button",mixins:[V1,Yr,fr,Vt,W1],props:{billGroup:{type:Object,required:!0},searchGroup:{type:Object,default:null},reload:{type:Boolean,default:!1},smallButton:{type:Boolean,default:!1}},data:function(){return{newParcelPath:"",showRemoveBillGroupModal:!1,addingOrRemovingBillGroupFromDashboard:!1}},computed:at(J({},ct({paths:"paths",config:"clientConfig",loggedIn:"loggedIn",company:"companyData",actingRole:"actingRole",customText:"customText"})),{allowClaimBillGroup:function(){return this.companyAllowsClaiming&&!this.ownedByUser&&this.claimButtonTextPresent},allowRemoveBillGroup:function(){return this.loggedIn&&this.billGroup.parcel.claimed&&!this.inCartPath&&!this.hasScheduledPayment},companyAllowsClaiming:function(){return this.loggedIn||this.config.claimBillGroupWithoutPay},ownedByUser:function(){return this.billGroup.parcel.claimed||this.billGroup.parcel.paid_by_user},claimButtonTextPresent:function(){return this.config.usesExternalSearch?this.claimButtonTextForExternalSearch:this.claimButtonText},inCartPath:function(){return this.paths.currentPath===this.paths.cartPath},hasScheduledPayment:function(){return this.billGroup.parcel.has_scheduled_orders||this.billGroup.parcel.using_autopay},claimButtonText:function(){return this.loggedIn?"Add to Dashboard":this.searchGroup?this.searchGroup.claimButtonText:this.billGroup.claim_button_text},claimButtonTextForExternalSearch:function(){if(this.loggedIn){const e=this.billGroup.unique_name||null;if(!this.actingRole.parcelsClaimed.find(n=>n[0]===this.billGroup.group_code&&n[1]===e))return"Add to Dashboard"}else if(this.billGroup.parcel.id===void 0&&this.billGroup.parcel.claimed===!1)return this.config.claimButtonTextForExternalSearch}}),methods:at(J({},Ht(["claimBillGroupFromSearch","claimBillGroupFromStore","unclaimBillGroup"])),{addBillGroupOrRegister:function(){if(this.loggedIn)this.addBillGroup();else{let e=this.paths.registrationPath;this.billGroup.group_code&&(e+=`?group_code=${this.billGroup.group_code}`),this.billGroup.bill_group_uid&&(e+=`&bill_group_uid=${this.billGroup.bill_group_uid}`),this.billGroup.bills[0].options[0]&&(e+=`&product_code=${this.billGroup.bills[0].options[0].product_code}`),window.location.href=e}},addBillGroup:function(){this.addingOrRemovingBillGroupFromDashboard=!0,this.billGroup.bills[0].options.length>0&&(this.billGroup.product_code=this.billGroup.bills[0].options[0].product_code),this.callEndpoint("POST",`${this.paths.createParcelPath}.json`,{parcel:this.billGroup}).then(e=>{this.inCartPath?this.claimBillGroupFromStore({bill_group_uid:this.billGroup.bill_group_uid,product_code:this.billGroup.product_code,claimed:!0,group_code:this.billGroup.group_code,unique_name:this.billGroup.unique_name}):this.claimBillGroupFromSearch(this.billGroup.bill_group_uid),this.newParcelPath=`/${this.company.slug}/parcels/${e.data.parcel_hashed_id}`}).catch(e=>{}).finally(e=>{this.addingOrRemovingBillGroupFromDashboard=!1,this.reload&&window.location.reload()})},removeBillGroup:function(){this.addingOrRemovingBillGroupFromDashboard=!0;const e=this.newParcelPath||this.billGroup.parcel.parcel_path;this.callEndpoint("DELETE",`${e}.json`).then(t=>{this.unclaimBillGroup(this.billGroup.bill_group_uid)}).catch(t=>{}).finally(t=>{this.addingOrRemovingBillGroupFromDashboard=!1,this.reload&&window.location.reload()}),this.toggleModal("showRemoveBillGroupModal")}})};var J1=function(){var t=this,n=t._self._c;return n("div",[t.company.disableRegistration?t._e():n("div",[t.addingOrRemovingBillGroupFromDashboard?n("i",{staticClass:"fa-classic fa-regular fa-spinner fa-pulse",attrs:{"aria-hidden":"true"}}):n("div",[t.config.usesExternalSearch?n("div",[t.billGroup.claimable?n("a",{staticClass:"tw-btn btn btn-dark btn-small",attrs:{href:"#",id:"claim-button"},on:{click:function(r){return r.preventDefault(),t.addBillGroupOrRegister.apply(null,arguments)}}},[t._v(`
515          `+t._s(t.claimButtonTextForExternalSearch)+`
516        `)]):t._e()]):n("div",[t.allowRemoveBillGroup?n("button",{staticClass:"tw-btn-fixed-white tw-bg-slate-800 tw-text-xs",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.toggleModal("showRemoveBillGroupModal")}}},[n("span",[t._v("Remove from Dashboard")])]):t._e(),t._v(" "),t.allowClaimBillGroup?n("button",{class:`${t.smallButton?"tw-btn btn btn-small btn-primary":"tw-btn-fixed-transparent"}`,attrs:{id:"claim-button"},on:{click:function(r){return r.preventDefault(),t.addBillGroupOrRegister.apply(null,arguments)}}},[t._v(`
517          `+t._s(t.claimButtonText)+`
518        `)]):t._e()]),t._v(" "),n("modal",{directives:[{name:"show",rawName:"v-show",value:t.showRemoveBillGroupModal,expression:"showRemoveBillGroupModal"}],staticClass:"confirmation-modal",attrs:{"show-close-button":!0},on:{close:function(r){return t.toggleModal("showRemoveBillGroupModal")}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h2",[t._v("Remove "+t._s(t.capitalize(t.billGroup.service_terms.parcel)))])]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[t._v(`
519          Are you sure you want to remove `),n("strong",[t._v(t._s(t.capitalize(t.billGroup.service_terms.parcel_identifier))+t._s(t.billGroup.display_id))]),t._v(` from your dashboard?
520        `)]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("button",{staticClass:"tw-btn btn btn-primary tw-mb-2",on:{click:function(r){return r.preventDefault(),t.removeBillGroup.apply(null,arguments)}}},[t._v("Confirm")]),t._v(" "),n("br"),t._v(" "),n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.toggleModal("showRemoveBillGroupModal")}}}
520,[t._v("cancel")])])])],1)])])},K1=[],X1=W(Y1,J1,K1,!1,null,null);const Z1=X1.exports,Q1=Object.freeze(Object.defineProperty({__proto__:null,default:Z1},Symbol.toStringTag,{value:"Module"})),tS={name:"color-picker",mixins:[Me],props:{initialValue:{type:String,required:!0,default:""}},data:function(){return{pickerValue:this.initialValue,hexValue:this.initialValue}},computed:{hasColorInputSupport(){try{const e=document.createElement("input");return e.type="color",e.value="!",e.type==="color"&&e.value!=="!"}catch(e){return!1}}},watch:{pickerValue:function(e){this.hexValue=e},hexValue:function(e){this.pickerValue=e}},methods:{formatValue(){return!0},updateValue(e){this.$emit("input",e)}}};var eS=function(){var t=this,n=t._self._c;return n("div",{staticClass:"controls-row layout-desktop-row layout-align-desktop-space-between-center"},[n("div",{staticClass:"input-box flex-desktop-10"},[t.hasColorInputSupport?n("input",{directives:[{name:"model",rawName:"v-model",value:t.pickerValue,expression:"pickerValue"}],attrs:{type:"color",id:`${t.id}_picker`,name:`${t.id}_picker`},domProps:{value:t.pickerValue},on:{input:function(r){r.target.composing||(t.pickerValue=r.target.value)}}}):t._e()]),t._v(" "),n("div",{staticClass:"input-box flex-desktop-90"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.hexValue,expression:"hexValue"}],attrs:{type:"text",id:t.id,name:t.name},domProps:{value:t.hexValue},on:{input:[function(r){r.target.composing||(t.hexValue=r.target.value)},function(r){return t.updateValue(r.target.value)}]}})])])},nS=[],rS=W(tS,eS,nS,!1,null,null);const iS=rS.exports,sS=Object.freeze(Object.defineProperty({__proto__:null,default:iS},Symbol.toStringTag,{value:"Module"})),oS={name:"common-data",props:{data:{type:Object,required:!0}},created(){this.loadCommon(this.data),this.data.companyData&&(this.fetchCart(this.data.companyData.slug),this.fetchBillGroupStore(this.data.companyData.slug))},methods:Ht(["fetchCart","fetchBillGroupStore","loadCommon"])};var aS=function(){var t=this,n=t._self._c;return n("div")},lS=[],uS=W(oS,aS,lS,!1,null,null);const cS=uS.exports,dS=Object.freeze(Object.defineProperty({__proto__:null,default:cS},Symbol.toStringTag,{value:"Module"})),hS={name:"company-details",mixins:[Vt],computed:at(J({},ct({config:"clientConfig",company:"companyData"})),{phoneString:function(){const e=this.company.phone;let t="";return this.company.phone_ext&&(t=", ext. "+this.company.phone_ext),this.formatPhone(e)+t}}),methods:{formatPhone:S0}};var fS=function(){var t=this,n=t._self._c;return n("div",{staticClass:"info",style:t.themeColors},[t.company?n("div",[n("div",[t._v(`
521      `+t._s(t.company.name)+`
522    `)]),t._v(" "),t.company.show_address?n("div",[t.company.street_address?n("div",[t._v(`
523        `+t._s(t.company.street_address)+`
524      `)]):t._e(),t._v(" "),t.company.street_address2?n("div",[t._v(`
525        `+t._s(t.company.street_address2)+`
526      `)]):t._e(),t._v(" "),t.company.city&&t.company.state&&t.company.zip?n("div",[t._v(`
527        `+t._s(t.company.city)+", "+t._s(t.company.state)+" "+t._s(t.company.zip)+`
528      `)]):t._e()]):t._e(),t._v(" "),t.company.phone?n("div",[n("a",{staticClass:"primary-color",attrs:{href:`tel:${t.company.phone}`}},[t._v(t._s(t.phoneString))])]):t._e(),t._v(" "),t.company.support_email?n("div",[n("a",{staticClass:"email primary-color",attrs:{href:`mailto:${t.company.support_email}`}},[t._v(t._s(t.company.support_email))])]):t._e(),t._v(" "),t.company.hours?n("div",[t._v(`
529      Hours: `+t._s(t.company.hours)+`
530    `)]):t._e(),t._v(" "),t.company.website?n("div",[n("a",{staticClass:"primary-color",attrs:{href:t.company.website}},[t._v(t._s(t.company.website))])]):t._e()]):t._e(),t._v(" "),t._m(0)])},pS=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pnp_support_info"},[t("div",[e._v(`
531      Point & Pay Support
532    `)]),e._v(" "),t("div",[t("a",{staticClass:"email primary-color",attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")])])])}],mS=W(hS,fS,pS,!1,null,null);const gS=mS.exports,vS=Object.freeze(Object.defineProperty({__proto__:null,default:gS},Symbol.toStringTag,{value:"Module"})),bS={name:"currency-input",mixins:[Me],props:{inputValue:{type:[String,Number],default:0},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{propValue:this.inputValue}},computed:{inputClass:function(){return{error:this.error}},hasSlot:function(){return this.$slots["label-content"]}},watch:{inputValue:function(){this.propValue=this.inputValue}},mounted(){this.formatValue()},methods:{updateValue(e){this.$emit("input",hl.unformat(e))},formatValue(){this.propValue=hl.formatMoney(this.propValue,{precision:2})}}};var _S=function(){var t=this,n=t._self._c;return n("div",[n("input",{attrs:{id:`hidden_${t.id}`,type:"hidden",name:t.name},domProps:{value:t.inputValue}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.propValue,expression:"propValue"}],ref:"input",class:t.inputClass,attrs:{type:"text",id:t.id,"aria-label":t.hasSlot?null:"Currency Input",disabled:t.disabled,title:t.propValue},domProps:{value:t.propValue},on:{input:[function(r){r.target.composing||(t.propValue=r.target.value)},function(r){return t.updateValue(r.target.value)}],focus:t.selectAll,blur:function(r){t.formatValue()+t.touchInput()}}}),t._v(" "),t.hasSlot?n("label",{attrs:{for:t.id}},[t._t("label-content")],2):t._e()])},yS=[],wS=W(bS,_S,yS,!1,null,null);const CS=wS.exports,xS=Object.freeze(Object.defineProperty({__proto__:null,default:CS},Symbol.toStringTag,{value:"Module"})),AS={name:"existing-user-form",components:{RequiredError:Vr},mixins:[Vt],props:{role:{type:Object,required:!0},userRoles:{type:Array,required:!0}},data:function(){return{email:this.role.email,password:""}},computed:at(J({},ct({company:"companyData",config:"clientConfig",paths:"paths",token:"token"})),{sameUserRoleTypes:function(){return this.userRoles.map(t=>t.type).every(t=>this.role.type===t)}}),methods:at(J({validateOnSubmit:cn},Ht(["setFlash"])),{userRoleDescription:function(e){const t=e.staff?"":` - ${e.companyName}`,n=this.sameUserRoleTypes?"":` (${e.type})`;return[e.name,n,t].join("")}}),validations(){return{email:{email:Wr,required:qt},password:{required:qt}}},setup(){return{v$:dn()}}};var SS=function(){var t=this,n=t._self._c;
532return n("div",{staticClass:"tw-place-self-center tw-pb-8 md:tw-w-1/3",style:t.themeColors},[n("h1",{staticClass:"tw-font-proxima tw-text-5xl tw-text-center"},[t._v("Welcome back!")]),t._v(" "),n("p",{staticClass:"tw-text-center"},[t._v("It looks like your email address is already registered with us.")]),t._v(" "),n("p",{staticClass:"tw-my-3 tw-text-lg"},[n("span",{staticClass:"tw-font-bold"},[t._v(t._s(t.email))]),t._v(" is already associated with the following accounts:")]),t._v(" "),n("ul",{staticClass:"tw-pb-8 tw-list-disc tw-list-inside"},t._l(t.userRoles,function(r){return n("li",{key:[r.type,r.id].join(""),staticClass:"tw-pl-8"},[t._v(`
533      `+t._s(t.userRoleDescription(r))+`
534    `)])}),0),t._v(" "),n("p",{staticClass:"tw-pb-8"},[t._v("Want to be able to manage your account for "+t._s(t.role.companyName)+` under the same email address?
535    `),n("strong",[t._v("Just login below and we'll add "+t._s(t.role.companyName)+" to your dashboard.")])]),t._v(" "),n("div",{staticClass:"form-wrapper login-form link-user-form"},[n("form",{attrs:{id:"link-user-form","accept-charset":"UTF-8",method:"post",action:t.paths.linkUserPath},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"invitation_key"},domProps:{value:t.role.invitation_key}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"user_email"}},[t._v("Email Address*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{error:t.v$.email.$error},attrs:{type:"email",id:"user_email",name:"user[email]"},domProps:{value:t.email},on:{blur:function(r){return t.v$.email.$touch()},input:function(r){r.target.composing||(t.email=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.email,name:"email address"}}),t._v(" "),n("invalid-field-error",{attrs:{field:t.v$.email,name:"email address",validation:"email",msg:"email address invalid."}})],1),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"user_password"}},[t._v("Password*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.v$.password.$error},attrs:{type:"password",id:"user_password",name:"user[password]"},domProps:{value:t.password},on:{blur:function(r){return t.v$.password.$touch()},input:function(r){r.target.composing||(t.password=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.password,name:"password"}})],1),t._v(" "),t._m(0)])])])},ES=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold"},[t("button",{staticClass:"tw-font-semibold tw-submit tw-px-10 tw-py-4 btn-primary",attrs:{name:"button",type:"submit",id:"submit-registration"}},[e._v("Sign In")])])}],TS=W(AS,SS,ES,!1,null,null);const DS=TS.exports,kS=Object.freeze(Object.defineProperty({__proto__:null,default:DS},Symbol.toStringTag,{value:"Module"})),OS={name:"flash",props:{railsMessages:{type:String,required:!0}},data:function(){return{activeMessages:[],animationQueue:[],animating:!1,messagesCreated:0,animationQueueLength:0,messageTimeout:5e3,animationDuration:405}},computed:J({},ct(["flashMessages"])),watch:{flashMessages:function(e){this.messagesCreated+=1;const t=e[e.length-1],n=this.messagesCreated,r=Object.assign({type:"enter",uid:n,persisted:!1},t);this.animationQueue.push(r)},animationQueue:function(e){e.length>this.animationQueueLength&&this.checkForAnimate(),this.animationQueueLength=e.length}},mounted(){const e=JSON.parse(this.railsMessages);Object.keys(e).forEach(t=>{this.messagesCreated+=1,this.animationQueue.push(Object.assign({type:"enter",uid:this.messagesCreated,persisted:!0,status:t,content:e[t]}))})},methods:at(J({},Ht(["setFlash"])),{flash:function(e,t){this.setFlash({status:e,content:t})},flashIcon:function(e){let t;return e==="success"?t="check-circle":e==="notice"||e==="alert"?t="info-circle":e==="error"?t="exclamation-triangle":e==="warning"&&(t="exclamation-circle"),`<i class="fa-classic fa-regular fa-${t}" aria-hidden="true"></i>`},checkForAnimate:function(){this.animating===!0&&this.animationQueue[0].type==="enter"?setTimeout(()=>{this.checkForAnimate()},20):this.animateNextMessage()},animateNextMessage:function(){this.animating=!0;const e=this.animationQueue.shift();e.type==="enter"?this.animateEnterMessage(e):this.animateLeaveMessage(e),setTimeout(()=>{this.animating=!1},this.animationDuration)},animateLeaveMessage:function(e){if(e.persisted)return;const t=this.activeMessages.findIndex(r=>r.uid===e.uid);t===-1||this.activeMessages.splice(t,1)},animateEnterMessage:function(e){this.activeMessages.unshift(e),this.$nextTick().then(()=>{const t=document.getElementById("messages-wrapper"),n=t.getElementsByClassName("message")[0],r=window.getComputedStyle(n),i=n.offsetHeight+parseInt(r.marginTop);t.style.transition="all 0s linear",t.style.transform=`translateY(${-i}px)`,setTimeout(()=>{t.style.transition=`all ${this.animationDuration/1e3}s ease-out`,t.style.transform="translateY(0px)"},1),setTimeout(()=>{const s=Object.assign({},e);s.type="leave",this.animationQueue.push(s)},this.messageTimeout)})},closeMessage:function(e){if(e.persisted){const t=this.activeMessages.findIndex(n=>n.uid===e.uid);this.activeMessages.splice(t,1)}else{const t=Object.assign({},e);t.type="leave",this.animationQueue.unshift(t)}}})};var RS=function(){var t=this,n=t._self._c;return n("div",{staticClass:"flash layout-row layout-align-center-center",attrs:{id:"flash-js"}},[n("div",{attrs:{id:"messages-wrapper"}},[n("transition-group",{attrs:{name:"msg"}}
535,t._l(t.activeMessages,function(r){return r.content?n("div",{key:r.uid,staticClass:"message layout-row layout-align-space-between-center",class:r.status},[n("div",{staticClass:"tw-w-full tw-items-start message_content tw-flex tw-justify-between"},[n("span",{domProps:{innerHTML:t._s(t.flashIcon(r.status))}}),t._v(" "),n("span",{staticClass:"tw-ml-3",domProps:{innerHTML:t._s(r.content)}}),t._v(" "),n("div",{staticClass:"tw-ml-auto fa-classic fa-regular fa-times",attrs:{"aria-hidden":"true",title:"Close"},on:{click:function(i){return t.closeMessage(r)}}})])]):t._e()}),0)],1)])},PS=[],$S=W(OS,RS,PS,!1,null,null);const LS=$S.exports,BS=Object.freeze(Object.defineProperty({__proto__:null,default:LS},Symbol.toStringTag,{value:"Module"})),MS={name:"footer-modal",mixins:[Yr],props:{content:{type:String,required:!0},linkText:{type:String,default:""},tailwind:{type:String,default:""}},data:function(){return{showModal:!1}},computed:at(J({},ct({staticText:"staticText",customText:"customText"})),{linkLabel:function(){return this.linkText||this.defaultLinkText[this.content]},defaultLinkText:function(){return{toc:"Terms & Conditions",privacy:"Privacy Policy",accessibility:"Accessibility Policy"}}}),methods:{getHTML:function(){return this.content==="toc"&&this.customText&&this.customText.termsAndConditions&&this.customText.termsAndConditions!=="<div><!--block--><div>"?this.customText.termsAndConditions:this.staticText.policyText[this.content]}}};var IS=function(){var t=this,n=t._self._c;return n("span",[n("a",{class:t.tailwind||"primary-color",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.toggleModal("showModal")}}},[t._v(`
536    `+t._s(t.linkLabel)+`
537  `)]),t._v(" "),n("modal",{directives:[{name:"show",rawName:"v-show",value:t.showModal,expression:"showModal"}],staticClass:"footer-modal",attrs:{"show-close-button":!0},on:{close:function(r){return t.toggleModal("showModal")}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h1",{staticClass:"tw-pb-3 tw-text-left"},[t._v(t._s(t.linkLabel))])]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[n("span",{domProps:{innerHTML:t._s(t.getHTML())}})]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.toggleModal("showModal")},close:function(r){return t.toggleModal("showModal")}}},[t._v(`
538        close
539      `)])])])],1)},FS=[],NS=W(MS,IS,FS,!1,null,null);const jS=NS.exports,US=Object.freeze(Object.defineProperty({__proto__:null,default:jS},Symbol.toStringTag,{value:"Module"})),qS={name:"global-nav",mixins:[Vt],props:{showDashboardLink:{type:Boolean,default:!1},showLogin:{type:Boolean,default:!1},additionalRoles:{type:Array,required:!0}},computed:at(J({},ct(["loggedIn","paths","userRole","actingRole","clientConfig","userRole"])),{showLoggedInCart:function(){return this.userRole?this.userRole.actingAs?!0:this.userRole.staff?!1:this.actingRole.type==="Billpayer":!1},showMobileMenu:function(){return!!this.clientConfig}})};var HS=function(){var r,i,s,o,a;var t=this,n=t._self._c;return n("div",{style:t.themeColors,attrs:{id:"wrapper"}},[n("div",{staticClass:"primary-bg",attrs:{id:"header",role:"navigation","aria-label":"global-nav"}},[t.loggedIn||(r=t.userRole)!=null&&r.staff?n("div",{staticClass:"logged-in tw-flex tw-justify-start",class:{gradients:((i=t.userRole)==null?void 0:i.staff)&&!((s=t.userRole)!=null&&s.actingAs)}},[n("div",{staticClass:"back tw-items-center tw-h-full"},[t._m(0),t._v(" "),t.showDashboardLink?n("div",[n("a",{staticClass:"tw-flex tw-items-center",attrs:{href:t.paths.dashboardPath}},[n("i",{staticClass:"fa-classic fa-regular fa-chevron-left",attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",[t._v("Back to Dashboard")])])]):t._e()]),t._v(" "),n("div",{staticClass:"welcome tw-items-center tw-px-8 tw-py-2 tw-h-full tw-hidden lg:tw-inline-flex"},[n("a",{staticClass:"tw-items-center tw-justify-center tw-inline-block tw-font-s",attrs:{href:t.paths.dashboardPath}},[t._v(`
540          Welcome,
541        `)]),t._v(" "),n("a",{staticClass:"tw-ml-1 tw-font-semibold tw-inline-block",attrs:{href:t.paths.accountSettingsPath}},[t._v(t._s((o=t.userRole)==null?void 0:o.name))])]),t._v(" "),n("div",{staticClass:"tw-flex tw-ml-auto"},[n("role-picker",{attrs:{"additional-roles":t.additionalRoles}}),t._v(" "),t.showLoggedInCart?n("cart-display"):t._e(),t._v(" "),n("user-settings")],1)]):n("div",{staticClass:"logged-out tw-flex"},[n("div",{staticClass:"tw-w-full tw-h-full tw-items-center tw-flex tw-justify-start"},[t.showMobileMenu?n("div",{staticClass:"tw-w-20"},[n("i",{staticClass:"tw-text-center tw-mx-auto tw-text-3xl tw-text-white fa-classic fa-solid fa-bars",attrs:{id:"nav-opener"}})]):t._e(),t._v(" "),n("div",{staticClass:"tw-flex tw-ml-auto tw-h-full"},[t.showLogin?n("div",{staticClass:"tw-bg-slate-100 tw-px-6 tw-h-full tw-flex tw-items-center"},[n("a",{staticClass:"tw-h-full tw-bg-slate-100 tw-flex tw-items-center tw-text-black",attrs:{href:t.paths.loginPath}},[n("i",{staticClass:"fa-classic fa-regular fa-sign-in tw-text-2xl tw-mr-2 primary-color"}),t._v(" "),n("span",{staticClass:"tw-uppercase"},[t._v("Sign In / Register")])])]):t._e(),t._v(" "),n("cart-display")],1)])]),t._v(" "),(a=t.userRole)!=null&&a.actingAs?n("div",{staticClass:"tw-flex tw-justify-between",attrs:{id:"acting-as"}},[n("div",[n("p",[t._v("Currently acting as "+t._s(t.actingRole.name)+" ("+t._s(t.actingRole.email)+")")])]),t._v(" "),n("div",[n("a",{staticClass:"btn btn-small stop-acting",attrs:{href:t.paths.managerHomePath}},[t._v(`
542          STOP ACTING
543        `)])])]):t._e()])])},GS=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"tw-w-20"},[t("i",{staticClass:"tw-text-center tw-mx-auto tw-text-3xl tw-text-white fa-classic fa-solid fa-bars",attrs:{id:"nav-opener"}})])}],zS=W(qS,HS,GS,!1,null,null);const VS=zS.exports,WS=Object.freeze(Object.defineProperty({__proto__:null,default:VS},Symbol.toStringTag,{value:"Module"})),wm={computed:at(J({},ct({config:"clientConfig",envInfo:"envInfo"})),{googlePayBaseRequest:function(){return{apiVersion:2,apiVersionMinor:0}},googlePayTokenizationSpec:function(){return{type:"DIRECT",parameters:{protocolVersion:"ECv2",publicKey:this.envInfo.googlePayPublicKey}}},googlePayBaseCardPaymentMethod:function(){return{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","DISCOVER","MASTERCARD","VISA"],billingAddressRequired:!0,billingAddressParameters:{format:"FULL"}}}},googlePayCardPaymentMethod:function(){return Object.assign({},this.googlePayBaseCardPaymentMethod,{tokenizationSpecification:this.googlePayTokenizationSpec})},samsungMethodData:function(){return[{supportedMethods:["https://spay.samsung.com"],data:{version:"1",merchantName:this.envInfo.samsungPayMerchantName,productId:this.envInfo.samsungPayServiceId,paymentProtocol:"PROTOCOL_3DS",allowedCardNetworks:["mastercard","visa"],billingAddressRequired:!0}}]},samsungDetails:function(){return{total:{label:"Total",amount:{currency:"USD",value:"
5430.00"}}}},samsungOptions:function(){return{requestPayerName:!0,requestPayerEmail:!0}}}),methods:{getGooglePaymentsClient:function(){return new google.payments.api.PaymentsClient({environment:this.envInfo.googlePayEnv})},getSamsungPaymentRequest:function(e=this.samsungDetails){return new PaymentRequest(this.samsungMethodData,e,this.samsungOptions)}}},YS={name:"google-pay",mixins:[fr,wm],data:function(){return{paymentsClient:void 0,googlePayIsAvailable:!0}},computed:at(J({},ct({envInfo:"envInfo",cartAmount:"cartAmount",token:"token",paths:"paths"})),{googlePaymentDataRequest:function(){const e=Object.assign({},this.googlePayBaseRequest);return e.emailRequired=!0,e.allowedPaymentMethods=[this.googlePayCardPaymentMethod],e.transactionInfo={countryCode:"US",currencyCode:"USD",totalPriceStatus:"FINAL",totalPrice:this.cartAmount.toString()},e.merchantInfo={merchantName:this.envInfo.googlePayMerchantName,merchantId:this.envInfo.googlePayMerchantId},e}}),mounted(){this.paymentsClient=this.getGooglePaymentsClient();const e=Object.assign({},this.googlePayBaseRequest,{allowedPaymentMethods:[this.googlePayBaseCardPaymentMethod]});this.paymentsClient.isReadyToPay(e).then(t=>{t.result===!0?this.addGooglePayButton():this.googlePayIsAvailable=!1})},methods:{addGooglePayButton:function(){const e={onClick:this.googlePayButtonClicked,buttonColor:"black",buttonType:"pay",buttonLocale:"en",buttonSizeMode:"fill"},t=this.paymentsClient.createButton(e);document.getElementById("google-pay-btn").appendChild(t)},googlePayButtonClicked:function(e){document.getElementById("agree").checked&&this.paymentsClient.loadPaymentData(this.googlePaymentDataRequest).then(n=>{const r={authenticity_token:this.token,cart_items:Vs(),ewallet:n,ewallet_account_type:"google_pay"};this.callEndpoint("POST",this.paths.ewalletSubmitPath,r,!0).then(function(s){const o=JSON.parse(s.data.content);document.getElementById("ewallet-order-id").value=o.id,document.getElementById("new-order").submit()})}).catch(function(n){console.log(n)})}}};var JS=function(){var t=this,n=t._self._c;return t.googlePayIsAvailable?n("div",{attrs:{id:"google-pay-btn"}}):n("div",[t._v("Google Pay is not available")])},KS=[],XS=W(YS,JS,KS,!1,null,null);const ZS=XS.exports,QS=Object.freeze(Object.defineProperty({__proto__:null,default:ZS},Symbol.toStringTag,{value:"Module"})),tE={name:"inner-table-list",props:{classes:{type:String,default:""}},methods:{positionElementBeforeLeave:wp}};var eE=function(){var t=this,n=t._self._c;return n("div",{class:`inner-table-list ${t.classes}`},[n("transition-group",{staticClass:"layout-row layout-wrap",attrs:{name:"inner-table-row",appear:"","appear-class":"inner-table-row-enter"},on:{"before-leave":t.positionElementBeforeLeave}},[t._t("default")],2)],1)},nE=[],rE=W(tE,eE,nE,!1,null,null);const iE=rE.exports,sE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),oE={name:"inner-table-row",props:{id:{type:String,default:""},classes:{type:String,default:""}}};var aE=function(){var t=this,n=t._self._c;return n("div",{class:`inner-table-row-wrapper flex-100 ${t.classes}`},[n("div",{staticClass:"inner-table-row",attrs:{id:t.id}},[t._t("default")],2)])},lE=[],uE=W(oE,aE,lE,!1,null,null);const cE=uE.exports,dE=Object.freeze(Object.defineProperty({__proto__:null,default:cE},Symbol.toStringTag,{value:"Module"})),hE={name:"invalid-cart-warning-modal"};var fE=function(){var t=this,n=t._self._c;return n("modal",{staticClass:"confirmation-modal",attrs:{id:"invalid-cart-warning-modal","show-close-button":!0},on:{close:function(r){return t.$emit("close")}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h2",[t._v("There's a problem with your cart")])]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[t._v(`
544    The amount due for an item(s) in your cart may have changed. Please review and update the payment amount(s).
545  `)]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.$emit("close")}}},[t._v("Close")])])])},pE=[],mE=W(hE,fE,pE,!1,null,null);const gE=mE.exports,vE=Object.freeze(Object.defineProperty({__proto__:null,default:gE},Symbol.toStringTag,{value:"Module"})),bE={name:"invalid-error",props:{field:{type:Object,required:!0},name:{type:String,required:!0}},methods:{capitalize:zr}};var _E=function(){var t=this,n=t._self._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.field.$invalid&&t.field.$dirty&&t.field.required,expression:"field.$invalid && field.$dirty && field.required"}],staticClass:"error"},[n("p",{attrs:{id:`${t.name.replace(/ /g,"_")}_invalid`}}
545,[t._v(t._s(t.capitalize(t.name))+" invalid.")])])},yE=[],wE=W(bE,_E,yE,!1,null,null);const CE=wE.exports,xE=Object.freeze(Object.defineProperty({__proto__:null,default:CE},Symbol.toStringTag,{value:"Module"})),AE={name:"invalid-field-error",props:{field:{type:Object,required:!1,default:null},msg:{type:String,required:!0},validation:{type:String,required:!0}},computed:{showErrorMsg:function(){var e,t,n,r,i,s;return!this.field||Object.hasOwn(this.field,"$dirty")&&!((e=this.field)!=null&&e.$dirty)?!1:((t=this.field)==null?void 0:t.$invalid)!==void 0&&!this.validation?this.field.$invalid:((n=this.field)==null?void 0:n.$error)!==void 0&&!this.validation?this.field.$error:Object.hasOwn(this.field,this.validation)?(i=(r=this.field)==null?void 0:r[this.validation])==null?void 0:i.$invalid:((s=this.field)==null?void 0:s.$validator)===this.validation}},methods:{capitalize:zr}};var SE=function(){var t=this,n=t._self._c;return t.showErrorMsg?n("div",{staticClass:"error"},[n("span",{staticClass:"tw-text-sm"},[t._v(t._s(t.capitalize(t.msg)))])]):t._e()},EE=[],TE=W(AE,SE,EE,!1,null,null);const DE=TE.exports,kE=Object.freeze(Object.defineProperty({__proto__:null,default:DE},Symbol.toStringTag,{value:"Module"}));var ha={},Hn={},Ze={},Wd;function Cm(){if(Wd)return Ze;Wd=1;var e=Ze&&Ze.__awaiter||function(r,i,s,o){function a(l){return l instanceof s?l:new s(function(u){u(l)})}return new(s||(s=Promise))(function(l,u){function c(v){try{h(o.next(v))}catch(f){u(f)}}function d(v){try{h(o.throw(v))}catch(f){u(f)}}function h(v){v.done?l(v.value):a(v.value).then(c,d)}h((o=o.apply(r,i||[])).next())})},t=Ze&&Ze.__generator||function(r,i){var s={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,a,l,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(h){return function(v){return d([h,v])}}function d(h){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(l=h[0]&2?a.return:h[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,h[1])).done)return l;switch(a=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,a=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(l=s.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){s.label=h[1];break}if(h[0]===6&&s.label<l[1]){s.label=l[1],l=h;break}if(l&&s.label<l[2]){s.label=l[2],s.ops.push(h);break}l[2]&&s.ops.pop(),s.trys.pop();continue}h=i.call(r,s)}catch(v){h=[6,v],a=0}finally{o=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.ReCaptchaInstance=void 0;var n=(function(){function r(i,s,o){this.siteKey=i,this.recaptchaID=s,this.recaptcha=o,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){return t(this,function(s){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:i}):this.recaptcha.execute(this.recaptchaID,{action:i})]})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r})();return Ze.ReCaptchaInstance=n,Ze}var Yd;function OE(){if(Yd)return Hn;Yd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.getInstance=Hn.load=void 0;var e=Cm(),t;(function(r){r[r.NOT_LOADED=0]="NOT_LOADED",r[r.LOADING=1]="LOADING",r[r.LOADED=2]="LOADED"})(t||(t={}));var n=(function(){function r(){}return r.load=function(i,s){if(s===void 0&&(s={}),typeof document=="undefined")return Promise.reject(new Error("This is a library for the browser!"));if(r.getLoadingState()===t.LOADED)return r.instance.getSiteKey()===i?Promise.resolve(r.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(r.getLoadingState()===t.LOADING)return i!==r.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,l){r.successfulLoadingConsumers.push(function(u){return a(u)}),r.errorLoadingRunnable.push(function(u){return l(u)})});r.instanceSiteKey=i,r.setLoadingState(t.LOADING);var o=new r;return new Promise(function(a,l){o.loadScript(i,s.useRecaptchaNet||!1,s.useEnterprise||!1,s.renderParameters?s.renderParameters:{},s.customUrl).then(function(){r.setLoadingState(t.LOADED);var u=o.doExplicitRender(grecaptcha,i,s.explicitRenderParameters?s.explicitRenderParameters:{},s.useEnterprise||!1),c=new e.ReCaptchaInstance(i,u,grecaptcha);
545r.successfulLoadingConsumers.forEach(function(d){return d(c)}),r.successfulLoadingConsumers=[],s.autoHideBadge&&c.hideBadge(),r.instance=c,a(c)}).catch(function(u){r.errorLoadingRunnable.forEach(function(c){return c(u)}),r.errorLoadingRunnable=[],l(u)})})},r.getInstance=function(){return r.instance},r.setLoadingState=function(i){r.loadingState=i},r.getLoadingState=function(){return r.loadingState===null?t.NOT_LOADED:r.loadingState},r.prototype.loadScript=function(i,s,o,a,l){var u=this;s===void 0&&(s=!1),o===void 0&&(o=!1),a===void 0&&(a={}),l===void 0&&(l="");var c=document.createElement("script");c.setAttribute("recaptcha-v3-script","");var d="https://www.google.com/recaptcha/api.js";s&&(o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js"),o&&(d="https://www.google.com/recaptcha/enterprise.js"),l&&(d=l),a.render&&(a.render=void 0);var h=this.buildQueryString(a);return c.src=d+"?render=explicit"+h,new Promise(function(v,f){c.addEventListener("load",u.waitForScriptToLoad(function(){v(c)},o),!1),c.onerror=function(g){r.setLoadingState(t.NOT_LOADED),f(g)},document.head.appendChild(c)})},r.prototype.buildQueryString=function(i){var s=Object.keys(i);return s.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},r.prototype.waitForScriptToLoad=function(i,s){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,s)},r.SCRIPT_LOAD_DELAY):s?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},r.prototype.doExplicitRender=function(i,s,o,a){var l={sitekey:s,badge:o.badge,size:o.size,tabindex:o.tabindex};return o.container?a?i.enterprise.render(o.container,l):i.render(o.container,l):a?i.enterprise.render(l):i.render(l)},r.loadingState=null,r.instance=null,r.instanceSiteKey=null,r.successfulLoadingConsumers=[],r.errorLoadingRunnable=[],r.SCRIPT_LOAD_DELAY=25,r})();return Hn.load=n.load,Hn.getInstance=n.getInstance,Hn}var Jd;function RE(){return Jd||(Jd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=OE();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Cm();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(ha)),ha}var xm=RE();const PE={name:"login-form",components:{RequiredError:Vr},mixins:[Vt],props:{redirectPath:{type:String,default:""}},data:function(){return{email:"",password:"",rememberMe:!1,recaptcha:{},recaptchaToken:null}},computed:at(J({},ct({company:"companyData",paths:"paths",token:"token",config:"clientConfig",envInfo:"envInfo",recaptchaKey:"recaptchaKey"})),{supportPath:function(){var e;return((e=this.company)==null?void 0:e.supportPath)||this.paths.supportPath}}),mounted(){this.envInfo.testEnv||xm.load(this.recaptchaKey).then(e=>{this.recaptcha=e})},methods:{validateOnSubmit:cn,submitLoginForm:function(e){if(e.preventDefault(),!!this.validateOnSubmit(e)){if(this.envInfo.testEnv){this.submitForm();return}this.recaptcha.execute("login").then(t=>{this.recaptchaToken=t,this.$nextTick(()=>{this.submitForm()})}).catch(()=>{this.submitForm()})}},submitForm:function(){document.getElementById("user-login").submit()}},validations(){return{email:{email:Wr,required:qt},password:{required:qt}}},setup(){return{v$:dn()}}};var $E=function(){var t=this,n=t._self._c;return n("div",{style:t.themeColors,attrs:{id:"login-form"}},[n("div",{staticClass:"form-wrapper"},[n("form",{attrs:{id:"user-login","accept-charset":"UTF-8",method:"post",action:t.paths.userSessionPath},on:{submit:t.submitLoginForm}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),t.company?n("input",{attrs:{type:"hidden",name:"company_
545slug"},domProps:{value:t.company.slug}}):t._e(),t._v(" "),t.redirectPath?n("input",{attrs:{type:"hidden",name:"redirect_path"},domProps:{value:t.redirectPath}}):t._e(),t._v(" "),n("input",{attrs:{type:"hidden",name:"recaptcha_token"},domProps:{value:t.recaptchaToken}}),t._v(" "),n("div",{staticClass:"input-box !tw-pb-4"},[n("label",{attrs:{for:"user_email"}},[t._v("Email Address")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{error:t.v$.email.$error},attrs:{type:"email",id:"user_email",name:"user[email]"},domProps:{value:t.email},on:{input:function(r){r.target.composing||(t.email=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.email,name:"email"}})],1),t._v(" "),n("label",{attrs:{for:"user_password"}},[t._v("Password")]),t._v(" "),n("div",{staticClass:"input-box !tw-pb-0"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.v$.password.$error},attrs:{type:"password",id:"user_password",name:"user[password]"},domProps:{value:t.password},on:{input:function(r){r.target.composing||(t.password=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.password,name:"password"}})],1),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"tw-text-sm tw-text-center tw-space-y-2"},[t.company?n("div",[t._v("Don't have an account? "),n("a",{staticClass:"tw-ml-2 small-link primary-color",attrs:{href:t.paths.registrationPath}},[t._v("Create one")])]):t._e(),t._v(" "),n("div",{staticClass:"trouble"},[n("a",{staticClass:"small-link primary-color",attrs:{href:t.supportPath,_target:"blank"}},[t._v("Forgot password?")])])]),t._v(" "),t.company?n("section",{staticClass:"tw-mt-12",attrs:{id:"social-login"}},[n("form",{attrs:{action:t.paths.facebookLoginPath,method:"post"}},[n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),t._m(1)]),t._v(" "),n("form",{staticClass:"tw-mt-4",attrs:{action:t.paths.googleLoginPath,method:"post"}},[n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("button",{staticClass:"hover:tw-text-slate-400 tw-mt-4 tw-justify-center tw-flex tw-shadow-sm tw-bg-white tw-rounded-lg tw-text-gray-700 tw-px-4 tw-py-3 tw-items-center",attrs:{type:"submit"}},[n("svg",{staticClass:"tw-mr-4",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"28px",height:"28px"}},[n("path",{attrs:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}}),n("path",{attrs:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}}),n("path",{attrs:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}}),n("path",{attrs:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}})]),t._v(" "),n("span",{staticClass:"tw-font-semibold"},[t._v("Sign in with Google")])])])]):t._e(),t._v(" "),t.company?n("p",{staticClass:"tw-mt-4 tw-text-sm tw-text-gray-800 tw-text-center"},[t._v(`
546        You must have an existing account before you can sign in with Google or Facebook.
547      `)]):t._e()])])])},LE=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold"},[t("button",{staticClass:"btn-primary tw-font-semibold tw-px-4 tw-py-3 tw-rounded-lg",attrs:{name:"button",type:"submit"}},[e._v("Sign In")])])},function(){var e=this,t=e._self._c;return t("button",{staticClass:"tw-button tw-justify-center tw-w-full tw-flex tw-shadow-sm tw-bg-white tw-rounded-lg hover:tw-text-slate-400 tw-text-gray-700 tw-px-4 tw-py-3 tw-items-center",attrs:{type:"submit"}},[t("i",{staticClass:"tw-fontawesome tw-bg-blue-600 tw-h-8 [&&]:tw-w-8 tw-rounded-full tw-text-white fa-classic fa-brands fa-facebook-f tw-mr
547-4 tw-content-center"}),e._v(" "),t("span",{staticClass:"tw-font-semibold"},[e._v("Sign in with Facebook")])])}],BE=W(PE,$E,LE,!1,null,null);const ME=BE.exports,IE=Object.freeze(Object.defineProperty({__proto__:null,default:ME},Symbol.toStringTag,{value:"Module"})),FE={name:"login-mfa-form",mixins:[Vt],data:function(){return{otpAttempt:"",timer:null}},computed:J({},ct({company:"companyData",paths:"paths",token:"token",config:"clientConfig"})),mounted:function(){this.timer=setInterval(()=>{document.getElementById("timed_out_input").value=!0,document.getElementById("user-cancel-mfa").submit()},3e5)},beforeDestroy(){clearInterval(this.timer)},methods:{validateOnSubmit:cn},validations(){return{otpAttempt:{required:qt}}},setup(){return{v$:dn()}}};var NE=function(){var r,i;var t=this,n=t._self._c;return n("div",{style:t.themeColors,attrs:{id:"login-mfa-form"}},[n("div",{staticClass:"form-wrapper tw-w-full"},[n("form",{attrs:{id:"user-mfa","accept-charset":"UTF-8",method:"post",action:t.paths.userSessionPath},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}
547),t._v(" "),n("input",{attrs:{type:"hidden",name:"company_slug"},domProps:{value:(r=t.company)==null?void 0:r.slug}}),t._v(" "),n("div",{staticClass:"input-box !tw-pb-4"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.otpAttempt,expression:"otpAttempt"}],class:{error:t.v$.otpAttempt.$error},attrs:{type:"text",id:"otp_attempt",name:"user[otp_attempt]",autofocus:""},domProps:{value:t.otpAttempt},on:{blur:function(s){return t.v$.otpAttempt.$touch()},input:function(s){s.target.composing||(t.otpAttempt=s.target.value)}}})]),t._v(" "),t._m(0)]),t._v(" "),n("form",{attrs:{id:"user-cancel-mfa",method:"get",action:t.paths.cancelOtpAttemptPath}},[n("input",{attrs:{type:"hidden",name:"company_slug"},domProps:{value:(i=t.company)==null?void 0:i.slug}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"timed_out",id:"timed_out_input"},domProps:{value:!1}}),t._v(" "),t._m(1)])])])},jE=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold"},[t("button",{staticClass:"btn-primary tw-font-semibold tw-px-4 tw-py-3 tw-rounded-lg",attrs:{name:"button",type:"submit"}},[e._v("Submit")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold tw-my-4"},[t("button",{staticClass:"btn-secondary tw-font-semibold",attrs:{name:"button",type:"submit"}},[e._v("Cancel Login")])])}],UE=W(FE,NE,jE,!1,null,null);const qE=UE.exports,HE=Object.freeze(Object.defineProperty({__proto__:null,default:qE},Symbol.toStringTag,{value:"Module"})),GE={name:"main-footer",mixins:[Vt],props:{supportPath:{type:String,required:!0}},computed:J({},ct(["loggedIn","clientConfig","paths"]))};var zE=function(){var t=this,n=t._self._c;return n("footer",{staticClass:"footer tw-flex-col tw-w-full tw-text-center page-inner",style:t.themeColors,attrs:{id:"footer"}},[n("p",{staticClass:"copyright tw-my-8 md:tw-mt-0 tw-block md:tw-hidden"},[t._v("© "+t._s(new Date().getFullYear())+" "),n("a",{attrs:{href:"#"}},[t._v("Point & Pay")])]),t._v(" "),n("hr",{staticClass:"tw-h-4 tw-mb-10 tw-w-full"}),t._v(" "),n("ul",{staticClass:"primary-links tw-text-center lg:tw-text-left tw-space-x-4 tw-w-full tw-mb-10"},[n("li",[n("a",{attrs:{href:t.supportPath}},[t._v("Support")])]),t._v(" "),n("li",[n("footer-modal",{staticClass:"custom-text-section",attrs:{content:"toc"}})],1),t._v(" "),n("li",[n("footer-modal",{staticClass:"custom-text-section",attrs:{content:"accessibility"}})],1),t._v(" "),n("li",[n("footer-modal",{staticClass:"custom-text-section",attrs:{content:"privacy"}})],1),t._v(" "),t._m(0),t._v(" "),n("li",[n("p",{staticClass:"copyright tw-hidden md:tw-block"},[t._v("© "+t._s(new Date().getFullYear())+" "),n("span",{staticClass:"tw-text-black"},[t._v("Point & Pay")])])])])])},VE=[function(){var e=this,t=e._self._c;return t("li",[t("div",{staticClass:"google-translate-element",attrs:{id:"google-translate-element"}})])}],WE=W(GE,zE,VE,!1,null,null);const YE=WE.exports,JE=Object.freeze(Object.defineProperty({__proto__:null,default:YE},Symbol.toStringTag,{value:"Module"})),KE={name:"manager-search-form",mixins:[Vt],props:{searchedOn:{type:String,default:""},searchedQuery:{type:String,default:""},productCodeParam:{type:String,default:""},initialGroupSlug:{type:String,default:""}},data:function(){return{selected:this.searchedOn,searchQuery:this.searchedQuery,productC
547ode:this.productCodeParam,groupSlug:this.initialGroupSlug,queryObject:{}}},computed:at(J({},ct({paths:"paths",config:"clientConfig",userRole:"userRole",loggedIn:"loggedIn",company:"companyData",groups:"searchGroups"})),{productOptions:function(e){const t=[];return this.company.products.map(n=>{t.push({label:n.description,value:n.code,position:n.position})}),t.sort(function(n,r){return n.position-r.position}),t},showProductSelect:function(){return this.config.requireProductForManagerSearch&&this.userRole.staffOrManager},showSearchGroupSelect:function(){return this.groups.length<=1?!1:this.groups.some(e=>{var t;return e.requiresAllManagerFields||((t=e.apiSearchOptions.multi)==null?void 0:t.value)})},placeholder:function(){if(this.selected==="")return"";const e=this.selectOptions.find(t=>t.value===this.selected);return e?e.placeholder:""},validationError:function(){return!this.requireAllFields&&this.v$.searchQuery.$error},validationMsg:function(){return this.selectOptions.find(e=>e.value===this.selected).validationMsg},searchGroup:function(){return this.groupSlug===""?this.groups[0]:this.groups.filter(e=>e.slug===this.groupSlug)[0]},requireAllFields:function(){return this.groups.length<1?!1:this.searchGroup.requiresAllManagerFields},groupSlugs:function(){const e=[];return this.groups.map(t=>{e.push({label:t.description,value:t.slug})}),e},additionalFields:function(){var n,r,i;const e=(r=(n=this.searchGroup)==null?void 0:n.searchOptions[this.selected])==null?void 0:r.additional_fields;return e===void 0||!this.useAdditionalFields?[]:((i=this.searchGroup)==null?void 0:i.additionalFieldOptions).filter(s=>e.includes(s.value))},useAdditionalFields:function(){var e,t;return(t=(e=this.searchGroup)==null?void 0:e.searchOptions[this.selected])==null?void 0:t.use_additional_fields},hasAdditionalFields:function(){var e;return this.useAdditionalFields&&((e=this.additionalFields)==null?void 0:e.length)>0},searchOptions:function(){return this.groups.length<1?[]:this.searchGroup.fieldOptions.filter(t=>{var n;return(n=this.searchGroup.searchOptions[t.value])==null?void 0:n.value})},selectOptions:function(){if(this.showSearchGroupSelect)return this.searchOptions;let e;this.groups.length>0?e=this.searchGroup.fieldOptions:e=[{value:"id",label:this.capitalize(this.parcelLabel),placeholder:`Enter your ${this.parcelText} here`,validationMsg:`Please enter ${ld(this.parcelText)} to search.`}];const t=this.config.searchFieldOptions;return this.searchOptions.length>1?this.searchOptions:e.filter(function(n){return t.includes(n.value)})},parcelLabel:function(){return this.config.serviceTerms.parcel_identifier.replace(/#$/," ID").replace(/  +/g," ")},parcelText:function(){return this.config.serviceTerms.parcel_identifier.replace(/#$/," number").replace(/  +/g," ")}}),watch:{groupSlug:function(e){if(e&&(this.selected=this.selectOptions[0].value),this.requireAllFields)for(const t of this.selectOptions)this.$set(this.queryObject,t.value,"")}},created(){if(this.requireAllFields)for(const e of this.selectOptions)this.$set(this.queryObject,e.value,"");this.showProductSelect&&this.productCode===""&&(this.productCode=this.company.products[0].code)},mounted(){if(this.selected!=="")return;const e=this.config.searchFieldOptions.find(t=>t==="id");this.selected=e||this.config.searchFieldOptions[0],this.groupSlug===""&&this.groupSlugs.length>0&&(this.groupSlug=this.groupSlugs[0].value)},methods:at(J({},Ht(["setFlash"])),{capitalize:zr,articlize:ld,validateOnSubmit:cn}),validations(){const e={searchQuery:{requiredIf:dd(!this.requireAllFields)},queryObject:{}};return this.selectOptions.forEach(t=>{e.queryObject[t.value]={requiredIf:dd(this.requireAllFields)}}),e},setup(){return{v$:dn()}}};var XE=function(){var t=this,n=t._self._c;return n("div",{style:t.themeColors},[t.validationError?n("div",{staticClass:"error"},[n("p",[t._v(t._s(t.validationMsg))])]):t._e(),t._v(" "),n("div",{staticClass:"form-wrapper"},[n("form",{attrs:{method:"get",action:t.paths.searchResultsPath,"accept-charset":"utf-8"},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{type:"hidden",value:"✓",name:"utf8"}}),t._v(" "),n("div",{staticClass:"layout-column"},[t.showSearchGroupSelect?n("div",{staticClass:"input-box flex-100 flex-desktop-25"},[n("label",[t._v("Search For:")]),t._v(" "),n("custom-select",{attrs:{id:"search_group_slug",name:"search_group_slug",options:t.groupSlugs,"aria-label-text":"Search For"},model:{value:t.groupSlug,callback:function(r){t.groupSlug=r},expression:"groupSlug"}})],1):t._e(),t._v(" "),t.showProductSelect?n("div",{staticClass:"tw-flex tw-flex-wrap tw-items-center md:tw-space-x-4"},[n("div",{staticClass:"input-box flex-100 flex-desktop-15"},[n("label",[t._v("Search on product:")]),t._v(" "),n("custom-select",{attrs:{id:"product_code",name:"product_code",options:t.productOptions,"aria-label-text":"Search On Product"}
547,model:{value:t.productCode,callback:function(r){t.productCode=r},expression:"productCode"}})],1)]):t._e(),t._v(" "),t.requireAllFields?n("div",{staticClass:"tw-max-w-[600px]"},[n("input",{attrs:{type:"hidden",value:"hash",name:"on"}}),t._v(" "),t.showSearchGroupSelect?t._e():n("input",{attrs:{name:"search_group_slug",type:"hidden"},domProps:{value:t.groupSlug}}),t._v(" "),t._l(t.selectOptions,function(r){return n("div",{key:r.value,staticClass:"input-box"},[n("label",[t._v(t._s(r.label))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.queryObject[r.value],expression:"queryObject[field.value]"}],class:{error:t.v$.queryObject[r.value].$error},attrs:{type:"search",id:`q_object_${r.value}`,name:`q_object[${r.value}]`},domProps:{value:t.queryObject[r.value]},on:{blur:function(i){t.v$.queryObject[r.value].$touch()},input:function(i){i.target.composing||t.$set(t.queryObject,r.value,i.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.queryObject[r.value],name:r.label}})],1)}),t._v(" "),t._m(0)],2):n("div",[n("label",{staticClass:"tw-text-gray-600 tw-tracking-widest"},[t._v("Search by")]),t._v(" "),n("div",{staticClass:"tw-flex tw-flex-wrap tw-gap-x-4"},[n("div",{staticClass:"input-box md:tw-w-1/5 tw-w-full !tw-pb-4"},[n("custom-select",{attrs:{id:"on",name:"on",options:t.selectOptions,"aria-label-text":"Search By"},model:{value:t.selected,callback:function(r){t.selected=r},expression:"selected"}})],1),t._v(" "),n("div",{staticClass:"input-box !tw-pb-4 md:tw-w-2/5 tw-w-full"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"tw-border-gray-80",class:{error:t.v$.searchQuery.$error},attrs:{id:"q",name:"q",type:"search",placeholder:t.placeholder,"detect-blur":"off",autofocus:""},domProps:{value:t.searchQuery},on:{input:function(r){r.target.composing||(t.searchQuery=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.searchQuery,name:"This field is"}})],1),t._v(" "),t.hasAdditionalFields?n("div",{staticClass:"md:tw-w-1/5"}):t._e(),t._v(" "),t._l(t.additionalFields,function(r){return n("div",{key:r.value,staticClass:"tw-flex tw-w-full tw-flex-wrap tw-gap-x-4"},[n("div",{staticClass:"input-box !tw-pb-4 tw-w-full md:tw-w-1/5 tw-mt-2"},[n("div",{staticClass:"tw-flex tw-items-center tw-h-12 tw-relative"},[n("div",{staticClass:"input-outline"}),t._v(" "),n("p",{staticClass:"tw-text-lg tw-font-semibold tw-absolute tw-ml-3"},[t._v(t._s(r.label))])])]),t._v(" "),n("div",{staticClass:"input-box !tw-pb-4 tw-w-full md:tw-w-2/5 tw-mt-2"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.queryObject[r.value],expression:"queryObject[field.value]"}],attrs:{type:"search",id:`q_object_${r.value}`,name:`q_object[${r.value}]`,placeholder:`Enter your ${r.label} here`,"aria-describedby":`${r.label}_required`},domProps:{value:t.queryObject[r.value]},on:{blur:function(i){t.v$.queryObject[r.value].$touch()},input:function(i){i.target.composing||t.$set(t.queryObject,r.value,i.target.value)}}})])])}),t._v(" "),t._m(1)],2)])])])])])},ZE=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-box flex-100 flex-desktop-15"},[t("input",{staticClass:"btn-primary",attrs:{type:"submit",value:"Search"}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-box tw-w-full md:tw-w-48"},[t("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Search"}})])}],QE=W(KE,XE,ZE,!1,null,null);const tT=QE.exports,eT=Object.freeze(Object.defineProperty({__proto__:null,default:tT},Symbol.toStringTag,{value:"Module"})),nT={name:"message-box",props:{messages:{type:Array,required:!0},klass:{type:String,default:""}}};var rT=function(){var t=this,n=t._self._c;return n("div",{class:t.klass},t._l(t.messages,function(r){return n("div",{key:r.id,staticClass:"tw-max-w-[290px]",class:"bill-message "+r.status},[t._v(`
548    `+t._s(r.title)+`
549    `),r.content?n("div",{staticClass:"full-message"},[t._v(t._s(r.content))]):t._e()])}),0)},iT=[],sT=W(nT,rT,iT,!1,null,null);const oT=sT.exports,aT=Object.freeze(Object.defineProperty({__proto__:null,default:oT},Symbol.toStringTag,{value:"Module"})),lT={name:"modal",props:{showCloseButton:{type:Boolean,default:!1},overflowAuto:{type:Boolean,default:!0}}};var uT=function(){var t=this,n=t._self._c;return n("transition",{attrs:{name:"modal"}},[n("div",{staticClass:"modal-mask"},[n("div",{staticClass:"modal-wrapper",on:{click:function(r){return t.$emit("close")}}},[n("div",{staticClass:"modal-container",on:{click:function(r){r.stopPropagation()}}},[t.showCloseButton?n("i",{staticClass:"fal fa-times",attrs:{"aria-hidden":"true",title:"Close"},on:{click:function(r){return t.$emit("close")}}}):t._e(),t._v(" "),n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[t._t("header")],2),t._v(" "),n("div",{staticClass:"modal-body",class:{"tw-overflow-y-auto":t.overflowAuto}},[t._t("body")],2),t._v(" "),n("div",{staticClass:"modal-footer"},[t._t("footer")],2)])])])])])},cT=[],dT=W(lT,uT,cT,!1,null,null);
vendor: 4,569 bytes, line 549
549const Am=dT.exports,hT=Object.freeze(Object.defineProperty({__proto__:null,default:Am},Symbol.toStringTag,{value:"Module"}));function fa(e){return e===""?e:e==="true"||e=="1"}function fT(e,t){return new Promise((n,r)=>{var i=new XMLHttpRequest;i.responseType="blob",i.onload=function(){var s=new FileReader;s.onloadend=function(){n(s.result)},s.readAsArrayBuffer(i.response)},i.open("GET",e),i.send()})}function Ne(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Kd(e,t){for(var n="",r=0,i=-1,s=0,o,a=0;a<=e.length;++a){if(a<e.length)o=e.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,s=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s!==-1?++s:s=-1}return n}function pT(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var Qn={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=process.cwd()),s=r),Ne(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=Kd(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Ne(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Kd(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Ne(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];Ne(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":Qn.normalize(t)},relative:function(t,n){if(Ne(t),Ne(n),t===n||(t=Qn.resolve(t),n=Qn.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,s=i-r,o=1;o<n.length&&n.charCodeAt(o)===47;++o);for(var a=n.length,l=a-o,u=s<l?s:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(n.charCodeAt(o+d)===47)return n.slice(o+d+1);if(d===0)return n.slice(o+d)}else s>u&&(t.charCodeAt(r+d)===47?c=d:d===0&&(c=0));break}var h=t.charCodeAt(r+d),v=n.charCodeAt(o+d);if(h!==v)break;h===47&&(c=d)}var f="";for(d=r+c+1;d<=i;++d)(d===i||t.charCodeAt(d)===47)&&(f.length===0?f+="..":f+="/..");return f.length>0?f+n.slice(o+c):(o+=c,n.charCodeAt(o)===47&&++o,n.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(Ne(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,s=!0,o=t.length-1;o>=1;--o)if(n=t.charCodeAt(o),n===47){if(!s){i=o;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ne(t);var r=0,i=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,l=-1;for(o=t.length-1;o>=0;--o){var u=t.charCodeAt(o);if(u===47){if(!s){r=o+1;break}}else l===-1&&(s=!1,l=o+1),a>=0&&(u===n.charCodeAt(a)?--a===-1&&(i=o):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(o=t.length-1;o>=0;--o)if(t.charCodeAt(o)===47){if(!s){r=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":t.slice(r,i)}},extname:function(t){Ne(t);for(var n=-1,r=0,i=-1,s=!0,o=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),l===46?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return pT("/",t)},parse:function(t){Ne(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var o=-1,a=0,l=-1,u=!0,c=t.length-1,d=0;c>=s;--c){if(r=t.charCodeAt(c),r===47){if(!u){a=c+1;break}continue}l===-1&&(u=!1,l=c+1),r===46?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||l===-1||d===0||d===1&&o===l-1&&o===a+1?l!==-1&&(a===0&&i?n.base=n.name=t.slice(1,l):n.base=n.name=t.slice(a,l)):(a===0&&i?(n.name=t.slice(1,o),n.base=t.slice(1,l)):(n.name=t.slice(a,o),n.base=t.slice(a,l)),n.ext=t.slice(o,l)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Qn.posix=Qn;
549const mT=Qn.extname,Sm=Qn.basename;class gT{constructor(){let t=typeof global=="undefined",n="image/png",r="image/jpeg",i="image/jpeg",s="image/webp",o="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:n,jpg:r,jpeg:i,webp:s}:{png:n,jpg:r,jpeg:i,pdf:o,svg:a},mimes:t?{[n]:"png",[r]:"jpg",[s]:"webp"}:{[n]:"png",[r]:"jpg",[o]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function vT(e,{filename:t="",extension:n="",format:g,page:i,quality:s,matte:o,density:a,outline:l,archive:v}={}){var{fromMime:c,toMime:d,expected:h}=new gT,v=v||"canvas",f=g||n.replace(/@\d+x$/i,"")||mT(t),g=c(d(f)||f),_=d(g),S=e.length;if(!f)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!g)throw new Error(`Unsupported file format "${f}" (expected ${h})`);if(!S)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let E,w,C=t.replace(/{(\d*)}/g,(k,L)=>(w=!0,L=parseInt(L,10),E=isFinite(L)?L:isFinite(E)?E:-1,"{}")),P=i>0?i-1:i<0?S+i:void 0;if(isFinite(P)&&P<0||P>=S)throw new RangeError(S==1?`Canvas only has a ‘page 1’ (${P} is out of bounds)`:`Canvas has pages 1–${S} (${P} is out of bounds)`);if(e=isFinite(P)?[e[P]]:w||g=="pdf"?e:e.slice(-1),s===void 0)s=.92;else if(typeof s!="number"||!isFinite(s)||s<0||s>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let k=(n||Sm(t,f)).match(/@(\d+)x$/i);a=k?parseInt(k[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:g=="svg"&&(l=!!l),{filename:t,pattern:C,format:g,mime:_,pages:e,padding:E,quality:s,matte:o,density:a,outline:l,archive:v}}class bo{static for(t){return new bo().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var n=this.crc|0,r=this.table,i=0,s=t.length|0;i<s;i++)n=n>>>8^r[(n^t[i])&255];return this.crc=n,this}}bo.prototype.table=(()=>{var e,t,n,r=[];for(e=0;e<256;e++){for(n=e,t=0;t<8;t++)n=n&1?n>>>1^3988292384:n>>>1;r[e]=n}return r})();function pa(e){let t=new Uint8Array(e),n=new DataView(t.buffer),r={array:t,view:n,size:e,set8(i,s){return n.setUint8(i,s),r},set16(i,s){return n.setUint16(i,s,!0),r},set32(i,s){return n.setUint32(i,s,!0),r},bytes(i,s){return t.set(s,i),r}};return r}class _o{constructor(t){let n=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(n.getHours()<<6|n.getMinutes())<<5|n.getSeconds()/2,date:(n.getFullYear()-1980<<4|n.getMonth()+1)<<5|n.getDate()}),this.add(t)}add(t,n){return Yt(this,null,function*(){let r=!n,i=_o.encoder.encode(`${this.directory}/${r?"":t}`),s=new Uint8Array(r?0:yield n.arrayBuffer()),o=30+i.length,a=o+s.length,l=16,{offset:u}=this,c=pa(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,bo.for(s)).set32(14,s.length).set32(18,s.length).set16(22,i.length);u+=o;let d=pa(o+s.length+l).set32(0,67324752).bytes(4,c.array).bytes(30,i).bytes(o,s);u+=s.length,d.set32(a,134695760).bytes(a+4,c.array.slice(10,22)),u+=l,this.files.push({offset:u,folder:r,name:i,header:c,payload:d}),this.offset=u})}toBuffer(){let t=this.files.reduce((d,{name:h})=>46+h.length+d,0),n=pa(t+22),r=0;for(var{offset:i,name:s,header:o,folder:a}of this.files)n.set32(r,33639248).set16(r+4,20).bytes(r+6,o.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,s),r+=46+s.length;n.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+n.size),u=0;for(var{payload:c}of this.files)l.set(c.array,u),u+=c.size;return l.set(n.array,u),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}_o.encoder=new TextEncoder;const Tu=(e,t,n,r)=>{if(r){let{width:i,height:s}=e,o=Object.assign(document.createElement("canvas"),{width:i,height:s}),a=o.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,s),a.drawImage(e,0,0),e=o}return new Promise((i,s)=>e.toBlob(i,t,n))},bT=(...e)=>Tu(...e).then(t=>t.arrayBuffer()),_T=(e,t,n,r,i)=>Yt(null,null,function*(){Em(i,yield Tu(e,t,n,r))}),yT=(e,t,n,r,i,s,o)=>Yt(null,null,function*(){let a=c=>s.replace("{}",String(c+1).padStart(o,"0")),l=Sm(i,".zip")||"archive",u=new _o(l);yield Promise.all(e.map((c,d)=>Yt(null,null,function*(){let h=a(d);yield u.add(h,yield Tu(c,t,n,r))}))),Em(`${l}.zip`,u.blob)}),Em=(e,t)=>{const n=window.URL.createObjectURL(t),r=document.createElement("a");
549r.style.display="none",r.href=n,r.setAttribute("download",e),typeof r.download=="undefined"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(n),100)},wT=(e,t,n)=>e.map(r=>{if(t==1&&!n)return r.canvas;let i=document.createElement("canvas"),s=i.getContext("2d"),o=r.canvas?r.canvas:r;return i.width=o.width*t,i.height=o.height*t,n&&(s.fillStyle=n,s.fillRect(0,0,i.width,i.height)),s.scale(t,t),s.drawImage(o,0,0),i}),CT={asBuffer:bT,asDownload:_T,asZipDownload:yT,atScale:wT,options:vT},{asBuffer:ma,asDownload:xT,asZipDownload:AT,atScale:ga,options:va}=CT,Xd=Symbol.for("toDataURL");let ST=class{constructor(t,n){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[s,o]of Object.entries({png:()=>ma(r,"image/png"),jpg:()=>ma(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,s,{get:o});return Object.assign(r,{width:t,height:n,newPage(...a){var{width:u,height:c}=r,l=Object.assign(document.createElement("canvas"),{width:u,height:c});l.getContext("2d").drawImage(r,0,0),i.push(l);var[u,c]=a.length?a:[u,c];return Object.assign(r,{width:u,height:c}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let u=va(this.pages,J({filename:a},l)),{pattern:c,padding:d,mime:h,quality:v,matte:f,density:g,archive:_}=u,S=ga(u.pages,g);return d==null?xT(S[0],h,v,f,a):AT(S,h,v,f,_,c,d)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let u=va(this.pages,J({extension:a},l)),{mime:c,quality:d,matte:h,pages:v,density:f}=u,g=ga(v,f,h)[0];return ma(g,c,d,h)},[Xd]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let u=va(this.pages,J({extension:a},l)),{mime:c,quality:d,matte:h,pages:v,density:f}=u,g=ga(v,f,h)[0],_=g[g===r?Xd:"toDataURL"](c,d);return Promise.resolve(_)}})}};const ET={Canvas:ST},pi=(e,t,n={},r=n)=>{if(Array.isArray(t))t.forEach(i=>pi(e,i,n,r));else if(typeof t=="function")t(e,n,r,pi);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},pi(e,t[i],n,r[i])):r[i]=t[i](e,n,r,pi)}return n},lr=(e,t)=>(n,r,i,s)=>{t(n,r,i)&&s(n,e,r,i)},TT=(e,t)=>(n,r,i,s)=>{const o=[];let a=n.pos;for(;t(n,r,i);){const l={};if(s(n,e,r,l),n.pos===a)break;a=n.pos,o.push(l)}return o},DT=e=>({data:e,pos:0}),Ae=()=>e=>e.data[e.pos++],Tm=(e=0)=>t=>t.data[t.pos+e],ze=e=>t=>t.data.subarray(t.pos,t.pos+=e),yo=e=>t=>t.data.subarray(t.pos,t.pos+e),El=e=>t=>Array.from(ze(e)(t)).map(n=>String.fromCharCode(n)).join(""),Vn=e=>t=>{const n=ze(2)(t);return(n[1]<<8)+n[0]},Dm=(e,t)=>(n,r,i)=>{const s=typeof t=="function"?t(n,r,i):t,o=ze(e),a=new Array(s);for(var l=0;l<s;l++)a[l]=o(n);return a},kT=(e,t,n)=>{for(var r=0,i=0;i<n;i++)r+=e[t+i]&&Yu(2,n-i-1);return r},Du=e=>t=>{const n=Ae()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(n&1<<i);return Object.keys(e).reduce((s,o)=>{const a=e[o];return a.length?s[o]=kT(r,a.index,a.length):s[o]=r[a.index],s},{})};var wo={blocks:e=>{const n=[],r=e.data.length;for(var i=0,s=Ae()(e);s!==0&&s;s=Ae()(e)){if(e.pos+s>=r){const u=r-e.pos;n.push(ze(u)(e)),i+=u;break}n.push(ze(s)(e)),i+=s}const o=new Uint8Array(i);for(var a=0,l=0;l<n.length;l++)o.set(n[l],a),a+=n[l].length;return o}};const OT=lr({gce:[{codes:ze(2)},{byteSize:Ae()},{extras:Du({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:Vn()},{transparentColorIndex:Ae()},{terminator:Ae()}]},e=>{var t=yo(2)(e);return t[0]===33&&t[1]===249}),RT=lr({image:[{code:Ae()},{descriptor:[{left:Vn()},{top:Vn()},{width:Vn()},{height:Vn()},{lct:Du({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},lr({lct:Dm(3,(e,t,n)=>Math.pow(2,n.descriptor.lct.size+1))},(e,t,n)=>n.descriptor.lct.exists),{data:[{minCodeSize:Ae()},wo]}]},e=>Tm()(e)===44),PT=lr({text:[{codes:ze(2)},{blockSize:Ae()},{preData:(e,t,n)=>ze(n.text.blockSize)(e)},wo]},e=>{var t=yo(2)(e);return t[0]===33&&t[1]===1}),$T=lr({application:[{codes:ze(2)},{blockSize:Ae()},{id:(e,t,n)=>El(n.blockSize)(e)},wo]},e=>{var t=yo(2)(e);return t[0]===33&&t[1]===255}),LT=lr({comment:[{codes:ze(2)},wo]},e=>{var t=yo(2)(e);return t[0]===33&&t[1]===254}),BT=[{header:[{signature:El(3)},{version:El(3)}]},{lsd:[{width:Vn()},{height:Vn()},{gct:Du({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:Ae()},{pixelAspectRatio:Ae()}]},lr({gct:Dm(3,(e,t)=>Math.pow(2,t.lsd.gct.size+1))},(e,t)=>t.lsd.gct.exists),{frames:TT([OT,$T,LT,RT,PT],e=>{var t=Tm()(e);return t===33||t===44})}],MT=(e,t)=>{const n=new Array(e.length),r=e.length/t,i=function(c,d){const h=e.slice(d*t,(d+1)*t);n.splice.apply(n,[c*t,t].concat(h))},s=[0,4,2,1],o=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var u=s[l];u<r;u+=o[l])i(u,a),a++;return n},IT=(e,t,n)=>{const s=n;var o,a,l,u,c,d,h,P,v,f,C,g,k,L,U,j;const _=new Array(n),S=new Array(4096),E=new Array(4096),w=new Array(4097);for(g=e,a=1<<g,c=a+1,o=a+2,h=-1,u=g+1,l=(1<<u)-1,v=0;v<a;v++)S[v]=0,E[v]=v;var C,P,k,L,j,U;for(C=P=k=L=j=U=0,f=0;f<s;){if(L===0){if(P<u){C+=t[U]<<P,P+=8,U++;continue}if(v=C&l,C>>=u,P-=u,v>o||v==c)break;if(v==a){u=g+1,l=(1<<u)-1,o=a+2,h=-1;continue}if(h==-1){w[L++]=E[v],h=v,k=v;continue}for(d=v,v==o&&(w[L++]=k,v=h);v>a;)w[L++]=E[v],v=S[v];k=E[v]&255,w[L++]=k,o<4096&&(S[o]=h,E[o]=k,o++,(o&l)===0&&o<4096&&(u++,l+=o)),h=d}L--,_[j++]=w[L],f++}for(f=j;f<s;f++)_[f]=0;return _},FT=e=>{const t=new Uint8Array(e);return pi(DT(t),BT)},NT=e=>{const t=e.pixels.length,n=new Uint8ClampedArray(t*4);for(var r=0;r<t;r++){const i=r*4,s=e.pixels[r],o=e.colorTable[s];n[i]=o[0],n[i+1]=o[1],n[i+2]=o[2],n[i+3]=s!==e.transparentIndex?255:0}return n},jT=(e,t,n)=>{if(!e.image){console.warn("gif frame does not have associated image.");return}const{image:r}
549=e,i=r.descriptor.width*r.descriptor.height;var s=IT(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(s=MT(s,r.descriptor.width));const o={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?o.colorTable=r.lct:o.colorTable=t,e.gce&&(o.delay=(e.gce.delay||10)*10,o.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(o.transparentIndex=e.gce.transparentColorIndex)),o.patch=NT(o),o},UT=(e,t)=>e.frames.filter(n=>n.image).map(n=>jT(n,e.gct));function qT(e,t,n){const r=km(t),i=e-1;let s=0;switch(n){case ee.L:s=je[i][0];break;case ee.M:s=je[i][1];break;case ee.Q:s=je[i][2];break;case ee.H:s=je[i][3];break}return r<=s}function HT(e,t){for(var n=1,r=km(e),i=0,s=je.length;i<s;i++){var o=0;switch(t){case ee.L:o=je[i][0];break;case ee.M:o=je[i][1];break;case ee.Q:o=je[i][2];break;case ee.H:o=je[i][3];break}if(r<=o)break;n++}if(n>je.length)throw new Error("Too long data");return n}function km(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(e)?3:0)}class GT{constructor(t){this.mode=ue.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const n=[];for(let r=0,i=this.data.length;r<i;r++){const s=[],o=this.data.charCodeAt(r);o>65536?(s[0]=240|(o&1835008)>>>18,s[1]=128|(o&258048)>>>12,s[2]=128|(o&4032)>>>6,s[3]=128|o&63):o>2048?(s[0]=224|(o&61440)>>>12,s[1]=128|(o&4032)>>>6,s[2]=128|o&63):o>128?(s[0]=192|(o&1984)>>>6,s[1]=128|o&63):s[0]=o,n.push(s)}this.parsedData=Array.prototype.concat.apply([],n),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let n=0,r=this.parsedData.length;n<r;n++)t.put(this.parsedData[n],8)}}class En{constructor(t=-1,n=ee.L){this.moduleCount=0,this.dataList=[],this.typeNumber=t,this.errorCorrectLevel=n,this.moduleCount=0,this.dataList=[]}addData(t){if(this.typeNumber<=0)this.typeNumber=HT(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!qT(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const n=new GT(t);this.dataList.push(n),this.dataCache=void 0}isDark(t,n){if(t<0||this.moduleCount<=t||n<0||this.moduleCount<=n)throw new Error(`${t},${n}`);return this.modules[t][n]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,n){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(let i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=En.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)}setupPositionProbePattern(t,n){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)n+i<=-1||this.moduleCount<=n+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][n+i]=!0:this.modules[t+r][n+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(tn).includes(this.maskPattern))return this.maskPattern;let t=0,n=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=mt.getLostPoint(this);(r==0||t>i)&&(t=i,n=r)}return n}setupTimingPattern(){for(let t=8;t<this.moduleCount-8;t++)this.modules[t][6]==null&&(this.modules[t][6]=t%2==0);for(let t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)}setupPositionAdjustPattern(){const t=mt.getPatternPosition(this.typeNumber);for(let n=0;n<t.length;n++)for(let r=0;r<t.length;r++){const i=t[n],s=t[r];if(this.modules[i][s]==null)for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)o==-2||o==2||a==-2||a==2||o==0&&a==0?this.modules[i+o][s+a]=!0:this.modules[i+o][s+a]=!1}}setupTypeNumber(t){const n=mt.getBCHTypeNumber(this.typeNumber);for(var r=0;r<18;r++){var i=!t&&(n>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(n>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,n){const r=this.errorCorrectLevel<<3|n,i=mt.getBCHTypeInfo(r);for(var s=0;s<15;s++){var o=!t&&(i>>s&1)==1;s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o}for(var s=0;s<15;s++){var o=!t&&(i>>s&1)==1;s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o}this.modules[this.moduleCount-8][8]=!t}mapData(t,n){let r=-1,i=this.moduleCount-1,s=7,o=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let u=!1;o<t.length&&(u=(t[o]>>>s&1)==1),mt.getMask(n,i,a-l)&&(u=!u),this.modules[i][a-l]=u,s--,s==-1&&(o++,s=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,n,r){const i=nn.getRSBlocks(t,n),s=new zT;for(var o=0;o<r.length;
549o++){const l=r[o];s.put(l.mode,4),s.put(l.getLength(),mt.getLengthInBits(l.mode,t)),l.write(s)}let a=0;for(var o=0;o<i.length;o++)a+=i[o].dataCount;if(s.getLengthInBits()>a*8)throw new Error(`code length overflow. (${s.getLengthInBits()}>${a*8})`);for(s.getLengthInBits()+4<=a*8&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=a*8||(s.put(En.PAD0,8),s.getLengthInBits()>=a*8));)s.put(En.PAD1,8);return En.createBytes(s,i)}static createBytes(t,n){let r=0,i=0,s=0;const o=new Array(n.length),a=new Array(n.length);for(var l=0;l<n.length;l++){const v=n[l].dataCount,f=n[l].totalCount-v;i=Math.max(i,v),s=Math.max(s,f),o[l]=new Array(v);for(var u=0;u<o[l].length;u++)o[l][u]=255&t.buffer[u+r];r+=v;const g=mt.getErrorCorrectPolynomial(f),S=new Fr(o[l],g.getLength()-1).mod(g);a[l]=new Array(g.getLength()-1);for(var u=0;u<a[l].length;u++){const w=u+S.getLength()-a[l].length;a[l][u]=w>=0?S.get(w):0}}let c=0;for(var u=0;u<n.length;u++)c+=n[u].totalCount;const d=new Array(c);let h=0;for(var u=0;u<i;u++)for(var l=0;l<n.length;l++)u<o[l].length&&(d[h++]=o[l][u]);for(var u=0;u<s;u++)for(var l=0;l<n.length;l++)u<a[l].length&&(d[h++]=a[l][u]);return d}}En.PAD0=236;En.PAD1=17;const ee={L:1,M:0,Q:3,H:2},ue={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},tn={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};class mt{static getBCHTypeInfo(t){let n=t<<10;for(;mt.getBCHDigit(n)-mt.getBCHDigit(mt.G15)>=0;)n^=mt.G15<<mt.getBCHDigit(n)-mt.getBCHDigit(mt.G15);return(t<<10|n)^mt.G15_MASK}static getBCHTypeNumber(t){let n=t<<12;for(;mt.getBCHDigit(n)-mt.getBCHDigit(mt.G18)>=0;)n^=mt.G18<<mt.getBCHDigit(n)-mt.getBCHDigit(mt.G18);return t<<12|n}static getBCHDigit(t){let n=0;for(;t!=0;)n++,t>>>=1;return n}static getPatternPosition(t){return mt.PATTERN_POSITION_TABLE[t-1]}static getMask(t,n,r){switch(t){case tn.PATTERN000:return(n+r)%2==0;case tn.PATTERN001:return n%2==0;case tn.PATTERN010:return r%3==0;case tn.PATTERN011:return(n+r)%3==0;case tn.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case tn.PATTERN101:return n*r%2+n*r%3==0;case tn.PATTERN110:return(n*r%2+n*r%3)%2==0;case tn.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let n=new Fr([1],0);for(let r=0;r<t;r++)n=n.multiply(new Fr([1,$t.gexp(r)],0));return n}static getLengthInBits(t,n){if(1<=n&&n<10)switch(t){case ue.MODE_NUMBER:return 10;case ue.MODE_ALPHA_NUM:return 9;case ue.MODE_8BIT_BYTE:return 8;case ue.MODE_KANJI:return 8;default:throw new Error(`mode:${t}`)}else if(n<27)switch(t){case ue.MODE_NUMBER:return 12;case ue.MODE_ALPHA_NUM:return 11;case ue.MODE_8BIT_BYTE:return 16;case ue.MODE_KANJI:return 10;default:throw new Error(`mode:${t}`)}else if(n<41)switch(t){case ue.MODE_NUMBER:return 14;case ue.MODE_ALPHA_NUM:return 13;case ue.MODE_8BIT_BYTE:return 16;case ue.MODE_KANJI:return 12;default:throw new Error(`mode:${t}`)}else throw new Error(`type:${n}`)}static getLostPoint(t){const n=t.getModuleCount();let r=0;for(var i=0;i<n;i++)for(var s=0;s<n;s++){let l=0;const u=t.isDark(i,s);for(let c=-1;c<=1;c++)if(!(i+c<0||n<=i+c))for(let d=-1;d<=1;d++)s+d<0||n<=s+d||c==0&&d==0||u==t.isDark(i+c,s+d)&&l++;l>5&&(r+=3+l-5)}for(var i=0;i<n-1;i++)for(var s=0;s<n-1;s++){let c=0;t.isDark(i,s)&&c++,t.isDark(i+1,s)&&c++,t.isDark(i,s+1)&&c++,t.isDark(i+1,s+1)&&c++,(c==0||c==4)&&(r+=3)}for(var i=0;i<n;i++)for(var s=0;s<n-6;s++)t.isDark(i,s)&&!t.isDark(i,s+1)&&t.isDark(i,s+2)&&t.isDark(i,s+3)&&t.isDark(i,s+4)&&!t.isDark(i,s+5)&&t.isDark(i,s+6)&&(r+=40);for(var s=0;s<n;s++)for(var i=0;i<n-6;i++)t.isDark(i,s)&&!t.isDark(i+1,s)&&t.isDark(i+2,s)&&t.isDark(i+3,s)&&t.isDark(i+4,s)&&!t.isDark(i+5,s)&&t.isDark(i+6,s)&&(r+=40);let o=0;for(var s=0;s<n;s++)for(var i=0;i<n;i++)t.isDark(i,s)&&o++;const a=Math.abs(100*o/n/n-50)/5;return r+=a*10,r}}mt.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]];mt.G15=1335;mt.G18=7973;mt.G15_MASK=21522;class $t{static glog(t){if(t<1)throw new Error(`glog(${t})`);return $t.LOG_TABLE[t]}static gexp(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return $t.EXP_TABLE[t]}}$t.EXP_TABLE=new Array(256);$t.LOG_TABLE=new Array(256);$t._constructor=(function(){for(var e=0;e<8;e++)$t.EXP_TABLE[e]=1<<e;for(var e=8;e<256;e++)$t.EXP_TABLE[e]=$t.EXP_TABLE[e-4]^$t.EXP_TABLE[e-5]^$t.EXP_TABLE[e-6]^$t.EXP_TABLE[e-8];for(var e=0;e<255;e++)$t.LOG_TABLE[$t.EXP_TABLE[e]]=e})();class Fr{constructor(t,n){if(t.length==null)throw new Error(`${t.length}/${n}`);let r=0;for(;r<t.length&&t[r]==0;)r++;this.num=new Array(t.length-r+n);for(let i=0;i<t.length-r;i++)this.num[i]=t[i+r]}get(t){return this.num[t]}getLength(){return this.num.length}multiply(t){const n=new Array(this.getLength()+t.getLength()-1);for(let r=0;r<this.getLength();r++)for(let i=0;i<t.getLength();i++)n[r+i]^=$t.gexp($t.glog(this.get(r))+$t.glog(t.get(i)));return new Fr(n,0)}mod(t){if(this.getLength()-t.getLength()<0)return this;const n=$t.glog(this.get(0))-$t.glog(t.get(0)),r=new Array(this.getLength());for(var i=0;i<this.getLength();i++)r[i]=this.get(i);for(var i=0;i<t.getLength();i++)r[i]^=$t.gexp($t.glog(t.get(i))+n);return new Fr(r,0).mod(t)}}class nn{constructor(t,n){this.totalCount=t,this.dataCount=n}static getRSBlocks(t,n){const r=nn.getRsBlockTable(t,n);if(r==null)throw new Error(`bad rs block @ typeNumber:${t}/errorCorrectLevel:${n}`);const i=r.length/3,s=[];for(let o=0;o<i;o++){const a=r[o*3+0],l=r[o*3+1],u=r[o*3+2];for(let c=0;c<a;c++)s.push(new nn(l,u))}return s}
vendor: 6,208 bytes, line 549
549static getRsBlockTable(t,n){switch(n){case ee.L:return nn.RS_BLOCK_TABLE[(t-1)*4+0];case ee.M:return nn.RS_BLOCK_TABLE[(t-1)*4+1];case ee.Q:return nn.RS_BLOCK_TABLE[(t-1)*4+2];case ee.H:return nn.RS_BLOCK_TABLE[(t-1)*4+3];default:return}}}nn.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];class zT{constructor(){this.buffer=[],this.length=0}get(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)==1}put(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}}const je=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];var VT=100,Ut=256,Zd=Ut-1,gn=4,Om=16,ku=1<<Om,Rm=10,Ou=10,WT=ku>>Ou,YT=ku<<Rm-Ou,JT=Ut>>3,Tl=6,KT=1<<Tl,XT=JT*KT,ZT=30,Pm=10,fs=1<<Pm,$m=8,Qd=1<<$m,QT=Pm+$m,Ar=1<<QT,th=499,eh=491,nh=487,Lm=503,tD=3*Lm;function eD(e,t){var n,r,i,s,o;function a(){n=[],r=new Int32Array(256),i=new Int32Array(Ut),s=new Int32Array(Ut),o=new Int32Array(Ut>>3);var S,E;for(S=0;S<Ut;S++)E=(S<<gn+8)/Ut,n[S]=new Float64Array([E,E,E,0]),s[S]=ku/Ut,i[S]=0}function l(){for(var S=0;S<Ut;S++)n[S][0]>>=gn,n[S][1]>>=gn,n[S][2]>>=gn,n[S][3]=S}function u(S,E,w,C,P){n[E][0]-=S*(n[E][0]-w)/fs,n[E][1]-=S*(n[E][1]-C)/fs,n[E][2]-=S*(n[E][2]-P)/fs}function c(S,E,w,C,P){for(var k=Math.abs(E-S),L=Math.min(E+S,Ut),j=E+1,U=E-1,q=1,O,x;j<L||U>k;)x=o[q++],j<L&&(O=n[j++],O[0]-=x*(O[0]-w)/Ar,O[1]-=x*(O[1]-C)/Ar,O[2]-=x*(O[2]-P)/Ar),U>k&&(O=n[U--],O[0]-=x*(O[0]-w)/Ar,O[1]-=x*(O[1]-C)/Ar,O[2]-=x*(O[2]-P)/Ar)}function d(S,E,w){var C=2147483647,P=C,k=-1,L=k,j,U,q,O,x;for(j=0;j<Ut;j++)U=n[j],q=Math.abs(U[0]-S)+Math.abs(U[1]-E)+Math.abs(U[2]-w),q<C&&(C=q,k=j),O=q-(i[j]>>Om-gn),O<P&&(P=O,L=j),x=s[j]>>Ou,s[j]-=x,i[j]+=x<<Rm;return s[k]+=WT,i[k]-=YT,L}function h(){var S,E,w,C,P,k,L=0,j=0;for(S=0;S<Ut;S++){for(w=n[S],P=S,k=w[1],E=S+1;E<Ut;E++)C=n[E],C[1]<k&&(P=E,k=C[1]);if(C=n[P],S!=P&&(E=C[0],C[0]=w[0],w[0]=E,E=C[1],C[1]=w[1],w[1]=E,E=C[2],C[2]=w[2],w[2]=E,E=C[3],C[3]=w[3],w[3]=E),k!=L){for(r[L]=j+S>>1,E=L+1;E<k;E++)r[E]=S;L=k,j=S}}for(r[L]=j+Zd>>1,E=L+1;E<256;E++)r[E]=Zd}function v(S,E,w){for(var C,P,k,L=1e3,j=-1,U=r[E],q=U-1;U<Ut||q>=0;)U<Ut&&(P=n[U],k=P[1]-E,k>=L?U=Ut:(U++,k<0&&(k=-k),C=P[0]-S,C<0&&(C=-C),k+=C,k<L&&(C=P[2]-w,C<0&&(C=-C),k+=C,k<L&&(L=k,j=P[3])))),q>=0&&(P=n[q],k=E-P[1],k>=L?q=-1:(q--,k<0&&(k=-k),C=P[0]-S,C<0&&(C=-C),k+=C,k<L&&(C=P[2]-w,C<0&&(C=-C),k+=C,k<L&&(L=k,j=P[3]))));return j}function f(){var S,E=e.length,w=30+(t-1)/3,C=E/(3*t),P=~~(C/VT),k=fs,L=XT,j=L>>Tl;for(j<=1&&(j=0),S=0;S<j;S++)o[S]=k*((j*j-S*S)*Qd/(j*j));var U;E<tD?(t=1,U=3):E%th!==0?U=3*th:E%eh!==0?U=3*eh:E%nh!==0?U=3*nh:U=3*Lm;
549var q,O,x,m,b=0;for(S=0;S<C;)if(q=(e[b]&255)<<gn,O=(e[b+1]&255)<<gn,x=(e[b+2]&255)<<gn,m=d(q,O,x),u(k,m,q,O,x),j!==0&&c(j,m,q,O,x),b+=U,b>=E&&(b-=E),S++,P===0&&(P=1),S%P===0)for(k-=k/w,L-=L/ZT,j=L>>Tl,j<=1&&(j=0),m=0;m<j;m++)o[m]=k*((j*j-m*m)*Qd/(j*j))}function g(){a(),f(),l(),h()}this.buildColormap=g;function _(){for(var S=[],E=[],w=0;w<Ut;w++)E[n[w][3]]=w;for(var C=0,P=0;P<Ut;P++){var k=E[P];S[C++]=n[k][0],S[C++]=n[k][1],S[C++]=n[k][2]}return S}this.getColormap=_,this.lookupRGB=v}var rh=-1,ps=12,ui=5003,nD=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function rD(e,t,n,r){var i=Math.max(2,r),s=new Uint8Array(256),o=new Int32Array(ui),a=new Int32Array(ui),l,u=0,c,d=0,h,v=!1,f,g,_,S,E,w;function C(m,b){s[c++]=m,c>=254&&U(b)}function P(m){k(ui),d=g+2,v=!0,x(g,m)}function k(m){for(var b=0;b<m;++b)o[b]=-1}function L(m,b){var y,M,R,F,N,B,G;for(f=m,v=!1,w=f,h=q(w),g=1<<m-1,_=g+1,d=g+2,c=0,F=O(),G=0,y=ui;y<65536;y*=2)++G;G=8-G,B=ui,k(B),x(g,b);t:for(;(M=O())!=rh;){if(y=(M<<ps)+F,R=M<<G^F,o[R]===y){F=a[R];continue}else if(o[R]>=0){N=B-R,R===0&&(N=1);do if((R-=N)<0&&(R+=B),o[R]===y){F=a[R];continue t}while(o[R]>=0)}x(F,b),F=M,d<1<<ps?(a[R]=d++,o[R]=y):P(b)}x(F,b),x(_,b)}function j(m){m.writeByte(i),S=e*t,E=0,L(i+1,m),m.writeByte(0)}function U(m){c>0&&(m.writeByte(c),m.writeBytes(s,0,c),c=0)}function q(m){return(1<<m)-1}function O(){if(S===0)return rh;--S;var m=n[E++];return m&255}function x(m,b){for(l&=nD[u],u>0?l|=m<<u:l=m,u+=w;u>=8;)C(l&255,b),l>>=8,u-=8;if((d>h||v)&&(v?(h=q(w=f),v=!1):(++w,w==ps?h=1<<ps:h=q(w))),m==_){for(;u>0;)C(l&255,b),l>>=8,u-=8;U(b)}}this.encode=j}function oe(){this.page=-1,this.pages=[],this.newPage()}oe.pageSize=4096;oe.charMap={};for(var ms=0;ms<256;ms++)oe.charMap[ms]=String.fromCharCode(ms);oe.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(oe.pageSize),this.cursor=0};oe.prototype.getData=function(){for(var e="",t=0;t<this.pages.length;t++)for(var n=0;n<oe.pageSize;n++)e+=oe.charMap[this.pages[t][n]];return e};oe.prototype.toFlattenUint8Array=function(){const e=[];for(var t=0;t<this.pages.length;t++)if(t===this.pages.length-1){const r=Uint8Array.from(this.pages[t].slice(0,this.cursor));e.push(r)}else e.push(this.pages[t]);const n=new Uint8Array(e.reduce((r,i)=>r+i.length,0));return e.reduce((r,i)=>(n.set(i,r),r+i.length),0),n};oe.prototype.writeByte=function(e){this.cursor>=oe.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=e};oe.prototype.writeUTFBytes=function(e){for(var t=e.length,n=0;n<t;n++)this.writeByte(e.charCodeAt(n))};oe.prototype.writeBytes=function(e,t,n){for(var r=n||e.length,i=t||0;i<r;i++)this.writeByte(e[i])};function yt(e,t){this.width=~~e,this.height=~~t,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new oe}yt.prototype.setDelay=function(e){this.delay=Math.round(e/10)};yt.prototype.setFrameRate=function(e){this.delay=Math.round(100/e)};yt.prototype.setDispose=function(e){e>=0&&(this.dispose=e)};yt.prototype.setRepeat=function(e){this.repeat=e};yt.prototype.setTransparent=function(e){this.transparent=e};yt.prototype.addFrame=function(e){this.image=e,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};yt.prototype.finish=function(){this.out.writeByte(59)};yt.prototype.setQuality=function(e){e<1&&(e=1),this.sample=e};yt.prototype.setDither=function(e){e===!0&&(e="FloydSteinberg"),this.dither=e};yt.prototype.setGlobalPalette=function(e){this.globalPalette=e};yt.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};yt.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};
549yt.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new eD(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};yt.prototype.indexPixels=function(e){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var n=0,r=0;r<t;r++){var i=this.findClosestRGB(this.pixels[n++]&255,this.pixels[n++]&255,this.pixels[n++]&255);this.usedEntry[i]=!0,this.indexedPixels[r]=i}};yt.prototype.ditherPixels=function(e,t){var n={FalseFloydSteinberg:[[.375,1,0],[.375,0,1],[.25,1,1]],FloydSteinberg:[[.4375,1,0],[.1875,-1,1],[.3125,0,1],[.0625,1,1]],Stucki:[[.19047619047619047,1,0],[.09523809523809523,2,0],[.047619047619047616,-2,1],[.09523809523809523,-1,1],[.19047619047619047,0,1],[.09523809523809523,1,1],[.047619047619047616,2,1],[.023809523809523808,-2,2],[.047619047619047616,-1,2],[.09523809523809523,0,2],[.047619047619047616,1,2],[.023809523809523808,2,2]],Atkinson:[[.125,1,0],[.125,2,0],[.125,-1,1],[.125,0,1],[.125,1,1],[.125,0,2]]};if(!e||!n[e])throw"Unknown dithering kernel: "+e;var r=n[e],i=0,s=this.height,o=this.width,a=this.pixels,l=t?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var u=0;u<s;u++){t&&(l=l*-1);for(var c=l==1?0:o-1,d=l==1?o:0;c!==d;c+=l){i=u*o+c;var h=i*3,v=a[h],f=a[h+1],g=a[h+2];h=this.findClosestRGB(v,f,g),this.usedEntry[h]=!0,this.indexedPixels[i]=h,h*=3;for(var _=this.colorTab[h],S=this.colorTab[h+1],E=this.colorTab[h+2],w=v-_,C=f-S,P=g-E,k=l==1?0:r.length-1,L=l==1?r.length:0;k!==L;k+=l){var j=r[k][1],U=r[k][2];if(j+c>=0&&j+c<o&&U+u>=0&&U+u<s){var q=r[k][0];h=i+j+U*o,h*=3,a[h]=Math.max(0,Math.min(255,a[h]+w*q)),a[h+1]=Math.max(0,Math.min(255,a[h+1]+C*q)),a[h+2]=Math.max(0,Math.min(255,a[h+2]+P*q))}}}}};yt.prototype.findClosest=function(e,t){return this.findClosestRGB((e&16711680)>>16,(e&65280)>>8,e&255,t)};yt.prototype.findClosestRGB=function(e,t,n,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(e,t,n);for(var i=0,s=256*256*256,o=this.colorTab.length,a=0,l=0;a<o;l++){var u=e-(this.colorTab[a++]&255),c=t-(this.colorTab[a++]&255),d=n-(this.colorTab[a++]&255),h=u*u+c*c+d*d;(!r||this.usedEntry[l])&&h<s&&(s=h,i=l)}return i};yt.prototype.getImagePixels=function(){var e=this.width,t=this.height;this.pixels=new Uint8Array(e*t*3);for(var n=this.image,r=0,i=0,s=0;s<t;s++)for(var o=0;o<e;o++)this.pixels[i++]=n[r++],this.pixels[i++]=n[r++],this.pixels[i++]=n[r++],r++};yt.prototype.writeGraphicCtrlExt=function(){this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4);var e,t;this.transparent===null?(e=0,t=0):(e=1,t=2),this.dispose>=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|e),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};yt.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};yt.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};yt.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};yt.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var e=3*256-this.colorTab.length,t=0;t<e;t++)this.out.writeByte(0)};yt.prototype.writeShort=function(e){this.out.writeByte(e&255),this.out.writeByte(e>>8&255)};yt.prototype.writePixels=function(){var e=new rD(this.width,this.height,this.indexedPixels,this.colorDepth);e.encode(this.out)};yt.prototype.stream=function(){return this.out};var iD=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
549return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const{Canvas:Qe}=ET,gs=.4;function ih(e){if(!e)return;function t(n){n.onload=null,n.onerror=null}return new Promise(function(n,r){if(e.slice(0,4)=="data"){let s=new Image;s.onload=function(){n(s),t(s)},s.onerror=function(){r("Image load error"),t(s)},s.src=e;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){n(i)},i.onerror=function(){r("Image load error")},i.src=e})}class ft{constructor(t){const n=Object.assign({},t);if(Object.keys(ft.defaultOptions).forEach(r=>{r in n||Object.defineProperty(n,r,{value:ft.defaultOptions[r],enumerable:!0,writable:!0})}),n.components?typeof n.components=="object"&&Object.keys(ft.defaultComponentOptions).forEach(r=>{r in n.components?Object.defineProperty(n.components,r,{value:Object.assign(Object.assign({},ft.defaultComponentOptions[r]),n.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(n.components,r,{value:ft.defaultComponentOptions[r],enumerable:!0,writable:!0})}):n.components=ft.defaultComponentOptions,n.dotScale!==null&&n.dotScale!==void 0){if(n.dotScale<=0||n.dotScale>1)throw new Error("dotScale should be in range (0, 1].");n.components.data.scale=n.dotScale,n.components.timing.scale=n.dotScale,n.components.alignment.scale=n.dotScale}this.options=n,this.canvas=new Qe(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new En(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,n,r,i,s,o){t.beginPath(),t.moveTo(n,r),t.arcTo(n+i,r,n+i,r+s,o),t.arcTo(n+i,r+s,n,r+s,o),t.arcTo(n,r+s,n,r,o),t.arcTo(n,r,n+i,r,o),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,s,o=-4;const a={r:0,g:0,b:0};let l=0;s=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const c=new Qe(i,s).getContext("2d");if(!c)return r;c.drawImage(t,0,0);let d;try{d=c.getImageData(0,0,i,s)}catch(h){return r}for(;(o+=20)<d.data.length;)d.data[o]>200||d.data[o+1]>200||d.data[o+2]>200||(++l,a.r+=d.data[o],a.g+=d.data[o+1],a.b+=d.data[o+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,n,r,i,s=0,o=1){t.fillRect((n+s)*i,(r+s)*i,o*i,o*i)}static _drawAlignProtector(t,n,r,i){t.clearRect((n-2)*i,(r-2)*i,5*i,5*i),t.fillRect((n-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,n,r,i,s=0,o=1,a,l){const u=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((c,d)=>{ft._drawDot(t,n-2+d,r-2,i,s,o),ft._drawDot(t,n+2,r-2+d,i,s,o),ft._drawDot(t,n+2-d,r+2,i,s,o),ft._drawDot(t,n-2,r+2-d,i,s,o)}),ft._drawDot(t,n,r,i,s,o),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((c,d)=>{ft._drawDot(t,n-1+d,r-1,i,s,o),ft._drawDot(t,n+1,r-1+d,i,s,o),ft._drawDot(t,n+1-d,r+1,i,s,o),ft._drawDot(t,n-1,r+1-d,i,s,o)})),t.fillStyle=u}_draw(){var t,n,r,i,s,o,a,l,u,c,d,h,v,f,g,_,S,E,w;return iD(this,void 0,void 0,function*(){const C=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,P=this.options.size;let k=this.options.margin;(k<0||k*2>=P)&&(k=0);const L=Math.ceil(k),j=P-2*k,U=this.options.whiteMargin,q=this.options.backgroundDimming,O=Math.ceil(j/C),x=O*C,m=x+2*L,b=new Qe(m,m),y=b.getContext("2d");this._clear(),y.save(),y.translate(L,L);const M=new Qe(m,m),R=M.getContext("2d");let F=null,N=[];if(this.options.gifBackground){const Y=FT(this.options.gifBackground);if(F=Y,N=UT(Y),this.options.autoColor){let K=0,et=0,ot=0,Rt=0;for(let ht=0;ht<N[0].colorTable.length;ht++){const _t=N[0].colorTable[ht];_t[0]>200||_t[1]>200||_t[2]>200||_t[0]===0&&_t[1]===0&&_t[2]===0||(Rt++,K+=_t[0],et+=_t[1],ot+=_t[2])}K=~~(K/Rt),et=~~(et/Rt),ot=~~(ot/Rt),this.options.colorDark=`rgb(${K},${et},${ot})`}}else if(this.options.backgroundImage){const Y=yield ih(this.options.backgroundImage);if(this.options.autoColor){const K=ft._getAverageRGB(Y);this.options.colorDark=`rgb(${K.r},${K.g},${K.b})`}R.drawImage(Y,0,0,Y.width,Y.height,0,0,m,m),R.rect(0,0,m,m),R.fillStyle=q,R.fill()}else R.rect(0,0,m,m),R.fillStyle=this.options.colorLight,R.fill();const B=mt.getPatternPosition(this.qrCode.typeNumber),G=((r=(n=this.options.components)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.scale)||gs,z=(1-G)*.5;for(let Y=0;Y<C;Y++)for(let K=0;K<C;K++){const et=this.qrCode.isDark(Y,K),ot=K<8&&(Y<8||Y>=C-8)||K>=C-8&&Y<8,Rt=Y==6&&K>=8&&K<=C-8||K==6&&Y>=8&&Y<=C-8;let ht=ot||Rt;for(let Nt=1;Nt<B.length-1;Nt++)ht=ht||Y>=B[Nt]-2&&Y<=B[Nt]+2&&K>=B[Nt]-2&&K<=B[Nt]+2;const _t=K*O+(ht?0:z*O),Zt=Y*O+(ht?0:z*O);if(y.strokeStyle=et?this.options.colorDark:this.options.colorLight,y.lineWidth=.5,y.fillStyle=et?this.options.colorDark:this.options.colorLight,B.length===0)ht||y.fillRect(_t,Zt,(ht?1:G)*O,(ht?1:G)*O);else{const Nt=K<C-4&&K>=C-4-5&&Y<C-4&&Y>=C-4-5;!ht&&!Nt&&y.fillRect(_t,Zt,(ht?1:G)*O,(ht?1:G)*O)}}const X=B[B.length-1],vt=this.options.colorLight;if(y.fillStyle=vt,y.fillRect(0,0,8*O,8*O),y.fillRect(0,(C-8)*O,8*O,8*O),y.fillRect((C-8)*O,0,8*O,8*O),!((s=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||s===void 0)&&s.protectors&&(y.fillRect(8*O,6*O,(C-8-8)*O,O),y.fillRect(6*O,8*O,O,(C-8-8)*O)),!((a=(o=this.options.components)===null||o===void 0?void 0:o.cornerAlignment)===null||a===void 0)&&a.protectors&&ft._drawAlignProtector(y,X,X,O),!((u=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||u===void 0)&&u.protectors)for(let Y=0;Y<B.length;Y++)for(let K=0;K<B.length;K++){const et=B[K],ot=B[Y];if(!(et===6&&(ot===6||ot===X))){if(ot===6&&(et===6||et===X))continue;if(et===X&&ot===X)continue;ft._drawAlignProtector(y,et,ot,O)}}y.fillStyle=this.options.colorDark,y.fillRect(0,0,7*O,O),y.fillRect((C-7)*O,0,7*O,O),y.fillRect(0,6*O,7*O,O),y.fillRect((C-7)*O,6*O,7*O,O),y.fillRect(0,(C-7)*O,7*O,O),y.fillRect(0,(C-7+6)*O,7*O,O),y.fillRect(0,0,O,7*O),y.fillRect(6*O,0,O,7*O),y.fillRect((C-7)*O,0,O,7*O),y.fillRect((C-7+6)*O,0,O,7*O),y.fillRect(0,(C-7)*O,O,7*O),y.fillRect(6*O,(C-7)*O,O,7*O),y.fillRect(2*O,2*O,3*O,3*O),y.fillRect((C-7+2)*O,2*O,3*O,3*O),y.fillRect(2*O,(C-7+2)*O,3*O,3*O);const Z=((d=(c=this.options.components)===null||c===void 0?void 0:c.timing)===null||d===void 0?void 0:d.scale)||gs,Lt=(1-Z)*.5;for(let Y=0;Y<C-8;Y+=2)ft._drawDot(y,8+Y,6,O,Lt,Z),ft._drawDot(y,6,8+Y,O,Lt,Z);const xt=((v=(h=this.options.components)===null||h===void 0?void 0:h.cornerAlignment)===null||v===void 0?void 0:v.scale)||gs,bt=(1-xt)*.5;ft._drawAlign(y,X,X,O,bt,xt,this.options.colorDark,((g=(f=this.options.components)===null||f===void 0?void 0:f.cornerAlignment)===null||g===void 0?void 0:g.protectors)||!1);const wt=((S=(_=this.options.components)===null||_===void 0?void 0:_.alignment)===null||S===void 0?void 0:S.scale)||gs,Xt=(1-wt)*.5;for(let Y=0;Y<B.length;Y++)for(let K=0;K<B.length;K++){const et=B[K],ot=B[Y];if(!(et===6&&(ot===6||ot===X))){if(ot===6&&(et===6||et===X))continue;if(et===X&&ot===X)continue;ft._drawAlign(y,et,ot,O,Xt,wt,this.options.colorDark,((w=(E=this.options.components)===null||E===void 0?void 0:E.alignment)===null||w===void 0?void 0:w.protectors)||!1)}}if(U&&(y.fillStyle=this.options.backgroundColor,y.fillRect(-L,-L,m,L),y.fillRect(-L,x,m,L),y.fillRect(x,-L,L,m),y.fillRect(-L,-L,L,m)),this.options.logoImage){const Y=yield ih(this.options.logoImage);let K=this.options.logoScale,et=this.options.logoMargin,ot=this.options.logoCornerRadius;(K<=0||K>=1)&&(K=.2),et<0&&(et=0),ot<0&&(ot=0);const Rt=x*K,ht=.5*(m-Rt),_t=ht;
549y.restore(),y.fillStyle=this.options.logoBackgroundColor,y.save(),ft._prepareRoundedCornerClip(y,ht-et,_t-et,Rt+2*et,Rt+2*et,ot+et),y.clip();const Zt=y.globalCompositeOperation;y.globalCompositeOperation="destination-out",y.fill(),y.globalCompositeOperation=Zt,y.restore(),y.save(),ft._prepareRoundedCornerClip(y,ht,_t,Rt,Rt,ot),y.clip(),y.drawImage(Y,ht,_t,Rt,Rt),y.restore(),y.save(),y.translate(L,L)}if(F){let Y,K,et,ot,Rt,ht;if(N.forEach(function(_t){Y||(Y=new yt(P,P),Y.setDelay(_t.delay),Y.setRepeat(0));const{width:Zt,height:Nt}=_t.dims;K||(K=new Qe(Zt,Nt),et=K.getContext("2d"),et.rect(0,0,K.width,K.height),et.fillStyle="#ffffff",et.fill()),(!ot||!ht||Zt!==ot.width||Nt!==ot.height)&&(ot=new Qe(Zt,Nt),Rt=ot.getContext("2d"),ht=Rt.createImageData(Zt,Nt)),ht.data.set(_t.patch),Rt.putImageData(ht,0,0),et.drawImage(ot.getContext("2d").canvas,_t.dims.left,_t.dims.top);const Ee=new Qe(m,m),Te=Ee.getContext("2d");Te.drawImage(K.getContext("2d").canvas,0,0,m,m),Te.rect(0,0,m,m),Te.fillStyle=q,Te.fill(),Te.drawImage(b.getContext("2d").canvas,0,0,m,m);const Bn=new Qe(P,P),vr=Bn.getContext("2d");vr.drawImage(Ee.getContext("2d").canvas,0,0,P,P),Y.addFrame(vr.getImageData(0,0,Bn.width,Bn.height).data)}),!Y)throw new Error("No frames.");if(Y.finish(),sh(this.canvas)){const Zt=Y.stream().toFlattenUint8Array().reduce((Nt,Ee)=>Nt+String.fromCharCode(Ee),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(Zt)}`)}return Promise.resolve(Buffer.from(Y.stream().toFlattenUint8Array()))}else{R.drawImage(b.getContext("2d").canvas,0,0,m,m),y.drawImage(M.getContext("2d").canvas,-L,-L,m,m);const Y=new Qe(P,P);Y.getContext("2d").drawImage(b.getContext("2d").canvas,0,0,P,P),this.canvas=Y;const et=this.options.gifBackground?"gif":"png";return sh(this.canvas)?Promise.resolve(this.canvas.toDataURL(et)):Promise.resolve(this.canvas.toBuffer(et))}})}}ft.CorrectLevel=ee;ft.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};ft.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:ee.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:ft.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function sh(e){try{return e instanceof HTMLElement}catch(t){return typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}}const sD={props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data(){return{imgUrl:""}},watch:{$props:{deep:!0,handler(){this.main()}}},mounted(){this.main()},methods:{main(){return Yt(this,null,function*(){if(this.gifBgSrc){const n=yield fT(this.gifBgSrc),r=this.logoSrc;this.render(void 0,r,n);return}const e=this.bgSrc,t=this.logoSrc;this.render(e,t)})},render(e,t,n){return Yt(this,null,function*(){const r=this;new ft({gifBackground:n,text:r.text,size:r.size,margin:r.margin,colorDark:r.colorDark,colorLight:r.colorLight,backgroundColor:r.backgroundColor,backgroundImage:e,backgroundDimming:r.backgroundDimming,logoImage:t,logoScale:r.logoScale,logoBackgroun
549dColor:r.logoBackgroundColor,correctLevel:r.correctLevel,logoMargin:r.logoMargin,logoCornerRadius:r.logoCornerRadius,whiteMargin:fa(r.whiteMargin),dotScale:r.dotScale,autoColor:fa(r.autoColor),binarize:fa(r.binarize),binarizeThreshold:r.binarizeThreshold,components:r.components}).draw().then(i=>{this.imgUrl=i,r.callback&&r.callback(i,r.qid)})})}}};var oD=function(){var t=this,n=t._self._c;return t.bindElement?n("img",{staticStyle:{display:"inline-block"},attrs:{src:t.imgUrl}}):t._e()},aD=[],lD=W(sD,oD,aD,!1,null,null);const xi=lD.exports;xi.install=e=>e.component(xi.name,xi);const uD=[xi],cD=function(e,t={}){uD.map(n=>{e.component(n.name,n)})};typeof window!="undefined"&&window.Vue&&cD(window.Vue);const dD={name:"multi-factor-authentication",components:{VueQr:xi},mixins:[Yr,fr,Vt],data:function(){return{showEnableOtpModal:!1,showDisableOtpModal:!1,qrCodeUri:"",otpSecret:"",otp:"",invalidOtp:!1,backupCodes:null,passwordConfirmation:null,invalidPasswordConfirmation:!1}},computed:at(J({},ct({token:"token",paths:"paths",actingRole:"actingRole",userRole:"userRole",config:"clientConfig"})),{formattedBackupCodes:function(){let e="";return this.backupCodes.forEach(t=>{e=e.concat(`
550`,t)}),e}}
550),methods:at(J({},Ht(["setFlash"])),{toggleOtpModal:function(){if(this.userRole.staff&&!this.actingRole.useOtpMfa){this.setFlash({status:"error",content:"You must be logged in as a Billpayer to re-enable MFA"});return}this.actingRole.useOtpMfa?this.toggleModal("showDisableOtpModal"):this.generateQrCodeAndShowModal()},closeEnableOtpModal:function(){this.toggleModal("showEnableOtpModal"),this.invalidOtp=!1,this.otp=null},generateQrCodeAndShowModal:function(){this.callEndpoint("GET",this.paths.newOtpRegistrationPath,null,!0).then(e=>{this.qrCodeUri=e.data.uri,this.otpSecret=e.data.otp_secret,this.toggleModal("showEnableOtpModal")})},disableOtp:function(){this.callEndpoint("DELETE",this.paths.otpRegistrationPath,{authenticity_token:this.token,password_confirmation:this.passwordConfirmation},!0).then(e=>{e.data.status==="success"?(this.toggleModal("showDisableOtpModal"),this.actingRole.useOtpMfa=!1,this.backupCodes=null,this.setFlash({status:e.data.status,content:e.data.content})):this.invalidPasswordConfirmation=!0}).catch(e=>{this.invalidPasswordConfirmation=!1,this.toggleModal("showDisableOtpModal"),this.setFlash({status:"error",content:"Could not disable MFA. Please try again."})})},enableOtp:function(){this.callEndpoint("POST",this.paths.otpRegistrationPath,{authenticity_token:this.token,otp:this.otp},!0).then(e=>{e.data.status==="success"?(this.actingRole.useOtpMfa=!0,this.backupCodes=e.data.backup_codes,this.setFlash({status:e.data.status,content:e.data.content})):this.invalidOtp=!0}).catch(e=>{this.closeEnableOtpModal(),this.setFlash({status:"error",content:"Could not enable MFA. Please try again."})})}})};var hD=function(){var t=this,n=t._self._c;return n("div",{style:t.themeColors},[n("div",{staticClass:"toggle-switch-wrapper layout-row layout-align-start-center tw-pb-3",attrs:{id:"otp_toggle"}},[n("input",{attrs:{type:"checkbox",id:"otp_toggle_input"},domProps:{checked:t.actingRole.useOtpMfa}}),t._v(" "),n("label",{attrs:{for:"otp_toggle_input"},on:{click:function(r){return r.preventDefault(),t.toggleOtpModal()}}},[n("span",{staticClass:"box"},[t.actingRole.useOtpMfa?n("span",{staticClass:"on"},[n("span",{staticClass:"tw-sr-only"},[t._v("from an authenticator app")]),t._v(" on")]):n("span",{staticClass:"off"},[n("span",{staticClass:"tw-sr-only"},[t._v("from an authenticator app")]),t._v(" off")])])]),t._v(" "),n("strong",{staticClass:"tw-pl-3"},[t._v("from an authenticator app (ex. 2FAS or Google Authenticator)")])]),t._v(" "),n("modal",{directives:[{name:"show",rawName:"v-show",value:t.showEnableOtpModal,expression:"showEnableOtpModal"}],staticClass:"modal",attrs:{id:"enable-otp-modal"},on:{close:function(r){return t.closeEnableOtpModal()}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h3",{staticClass:"primary-color tw-pb-3"},[t._v("Enable MFA")])]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[t.backupCodes?n("div",[n("p",[t._v(`Please copy and save the following back up codes. If you are ever unable to access your authenticator app,
551          a back up code can be used in its place. Each code can only be used one.`)]),t._v(" "),n("pre",{staticClass:"tw-flex tw-justify-center tw-tracking-wider"},[t._v(t._s(t.formattedBackupCodes))])]):n("div",[n("p",[t._v(`Scan the QR code with your authenticator app, or manually enter the key.
552          Then enter the current code to enable MFA.`)]),t._v(" "),n("div",{staticClass:"tw-flex tw-justify-center"},[n("vue-qr",{attrs:{text:t.qrCodeUri}})],1),t._v(" "),n("div",{staticClass:"tw-flex tw-justify-center tw-pb-2 tw-tracking-wider"},[n("strong",[t._v("KEY: "+t._s(t.otpSecret))])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.otp,expression:"otp"}],attrs:{type:"text",name:"otp_input",maxlength:"6",placeholder:"Code"},domProps:{value:t.otp},on:{input:function(r){r.target.composing||(t.otp=r.target.value)}}}),t._v(" "),t.invalidOtp?n("p",{staticClass:"error tw-pt-2"},[t._v("That code is invalid. Please try again.")]):t._e()])]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[t.backupCodes?n("div",[n("a",{staticClass:"tw-ml-2 tw-mb-2 tw-btn btn btn-primary",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.closeEnableOtpModal()}}},[t._v("close")])]):n("div",[n("a",{staticClass:"tw-ml-2 tw-mb-2 tw-btn btn btn-primary",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.enableOtp()}}},[t._v("confirm")]),t._v(" "),n("br"),t._v(" "),n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.closeEnableOtpModal()}}},[t._v("cancel")])])])]),t._v(" "),n("modal",{directives:[{name:"show",rawName:"v-show",value:t.showDisableOtpModal,expression:"showDisableOtpModal"}],staticClass:"modal",attrs:{id:"disable-otp-modal"},on:{close:function(r){return t.toggleModal("showDisableOtpModal")}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h3",{staticClass:"primary-color"},[t._v("Disable MFA")])]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[n("p",{staticClass:"tw-pb-2"},[t._v("Enter your current password to disable MFA. To re-enable, you will need to setup a new code.")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirmation,expression:"passwordConfirmation"}],attrs:{type:"password",name:"password_confirmation_input",placeholder:"Password"},domProps:{value:t.passwordConfirmation},on:{input:function(r){r.target.composing||(t.passwordConfirmation=r.target.value)}}}),t._v(" "),t.invalidPasswordConfirmation?n("p",{staticClass:"error tw-pt-2"},[t._v("That password is incorrect. Please try again.")]):t._e()]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"tw-ml-2 tw-mb-2 tw-btn btn btn-primary",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.disableOtp()}}},[t._v("confirm")]),t._v(" "),n("br"),t._v(" "),n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.toggleModal("showDisableOtpModal")}}}
552,[t._v("cancel")])])])],1)},fD=[],pD=W(dD,hD,fD,!1,null,null);const mD=pD.exports,gD=Object.freeze(Object.defineProperty({__proto__:null,default:mD},Symbol.toStringTag,{value:"Module"})),vD={name:"password-requirements",props:{v:{type:Object,required:!0},alwaysShowRequirements:{type:Boolean,default:!1}},computed:{passwordPresent:function(){var e;return(e=this.v.password.required)==null?void 0:e.$response},showRequirements:function(){return this.alwaysShowRequirements||this.passwordPresent}}};var bD=function(){var r,i,s,o,a,l,u,c,d,h;var t=this,n=t._self._c;return t.showRequirements?n("div",{staticClass:"password-requirements"},[n("span",{staticClass:"heading"},[t._v("Your Password Must...")]),t._v(" "),n("div",{staticClass:"layout-row layout-align-start-center",class:{error:!t.passwordPresent||((r=t.v.password.minLength)==null?void 0:r.$invalid)},attrs:{prefix:"Your password must"}},[n("span",[t.passwordPresent&&!((i=t.v.password.minLength)!=null&&i.$invalid)?n("i",{staticClass:"fa-classic fa-regular fa-check",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa-classic fa-regular fa-times",attrs:{"aria-hidden":"true"}})]),t._v(" "),n("span",[t._v("Be at least eight characters long")])]),t._v(" "),n("div",{staticClass:"layout-row layout-align-start-center",class:{error:(s=t.v.password.hasNumber)==null?void 0:s.$invalid},attrs:{prefix:"Your password must"}},[n("span",[t.passwordPresent&&!((o=t.v.password.hasNumber)!=null&&o.$invalid)?n("i",{staticClass:"fa-classic fa-regular fa-check",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa-classic fa-regular fa-times",attrs:{"aria-hidden":"true"}})]),t._v(" "),n("span",[t._v("Have at least one number")])]),t._v(" "),n("div",{staticClass:"layout-row layout-align-start-center",class:{error:((a=t.v.password.hasLowerCase)==null?void 0:a.$invalid)||((l=t.v.password.hasUpperCase)==null?void 0:l.$invalid)},attrs:{prefix:"Your password must"}},[n("span",[t.passwordPresent&&!((u=t.v.password.hasLowerCase)!=null&&u.$invalid)&&!((c=t.v.password.hasUpperCase)!=null&&c.$invalid)?n("i",{staticClass:"fa-classic fa-regular fa-check",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa-classic fa-regular fa-times",attrs:{"aria-hidden":"true"}})]),t._v(" "),n("span",[t._v("Have at least one lower and one uppercase letter")])]),t._v(" "),n("div",{staticClass:"layout-row layout-align-start-center",class:{error:!t.passwordPresent||((d=t.v.passwordConfirm.sameAsPassword)==null?void 0:d.$invalid)},attrs:{prefix:"Your password must"}},[n("span",[t.passwordPresent&&!((h=t.v.passwordConfirm.sameAsPassword)!=null&&h.$invalid)?n("i",{staticClass:"fa-classic fa-regular fa-check",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa-classic fa-regular fa-times",attrs:{"aria-hidden":"true"}})]),t._v(" "),n("span",[t._v("Be entered twice for confirmation")])])]):t._e()},_D=[],yD=W(vD,bD,_D,!1,null,null);const Co=yD.exports,wD=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"})),CD={name:"new-user-form",components:{PasswordRequirements:Co,RequiredError:Vr},mixins:[Vt],props:{role:{type:Object,required:!0}},data:function(){return{firstName:this.role.firstName,lastName:this.role.lastName,email:this.role.emailInUse?"":this.role.email,phone:this.role.phone,password:"",passwordConfirm:"",termsAndConditionsCheck:!1}},computed:at(J({},ct({company:"companyData",config:"clientConfig",paths:"paths",token:"token"})),{showTermsValidationMessage:function(){const{isTrue:e,$dirty:t}=this.v$.termsAndConditionsCheck;return!e&&t}}),methods:J({validateOnSubmit:cn},Ht(["setFlash"])),validations(){return{email:{email:Wr,required:qt},lastName:{required:qt},password:{required:qt,hasNumber:uu,hasUpperCase:cu,hasLowerCase:du,minLength:fu(8)},passwordConfirm:{required:qt,sameAsPassword:pu(this.password)},termsAndConditionsCheck:{isTrue:F0}}},setup(){return{v$:dn()}}};var xD=function(){var t=this,n=t._self._c;return n("div",{staticClass:"tw-place-self-center tw-pb-8 md:tw-w-1/3",style:t.themeColors},[n("h1",{staticClass:"tw-font-proxima tw-text-5xl tw-text-center"},[t._v("Register")]),t._v(" "),n("div",{staticClass:"form-wrapper"},[n("form",{attrs:{id:"user-registration","accept-charset":"UTF-8",method:"post",action:t.paths.createUserPath},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{id:"invitation_key",type:"hidden",name:"invitation_key"},domProps:{value:t.role.invitation_key}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"role_first_name"}},[t._v("First Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstName,expression:"firstName"}],attrs:{type:"text",id:"role_first_name",name:"role[first_name]"},domProps:{value:t.firstName},on:{input:function(r){r.target.composing||(t.firstName=r.target.value)}}})]),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"role_last_name"}},[t._v("Last Name (or Company Name)*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastName,expression:"lastName"}],class:{error:t.v$.lastName.$error},attrs:{type:"text",id:"role_last_name",name:"role[last_name]"},domProps:{value:t.lastName},on:{input:function(r){r.target.composing||(t.lastName=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.lastName,name:"last name"}})],1),t._v(" "),n("input",{attrs:{type:"hidden",name:"role[email]"},domProps:{value:t.email}}),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"user_email"}},[t._v("Email Address*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{error:t.v$.email.$error},attrs:{type:"email",id:"user_email",name:"user[email]"},domProps:{value:t.email},on:{input:function(r){r.target.composing||(t.email=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.email,name:"email address"}}),t._v(" "),n("invalid-field-error",{attrs:{field:t.v$.email,name:"email address",validation:"email",msg:"email address invali
552d."}})],1),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"role_phone"}},[t._v("Phone Number*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{type:"phone",id:"role_phone",name:"role[phone]"},domProps:{value:t.phone},on:{input:function(r){r.target.composing||(t.phone=r.target.value)}}})]),t._v(" "),n("div",[n("password-requirements",{attrs:{v:t.v$}})],1),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"user_password"}},[t._v("Password*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.v$.password.$error},attrs:{type:"password",id:"user_password",name:"user[password]"},domProps:{value:t.password},on:{input:function(r){r.target.composing||(t.password=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.password,name:"password"}})],1),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"user_password_confirmation"}},[t._v("Password Confirmation*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirm,expression:"passwordConfirm"}],class:{error:t.v$.passwordConfirm.$error},attrs:{type:"password",id:"user_password_confirmation",name:"user[password_confirmation]"},domProps:{value:t.passwordConfirm},on:{input:function(r){r.target.composing||(t.passwordConfirm=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.passwordConfirm,name:"password confirmation"}})],1),t._v(" "),n("div",{staticClass:"layout-column layout-align-center-center"},[n("checkbox",{attrs:{id:"user_eula",name:"user[eula]"},on:{blur:function(r){return t.v$.termsAndConditionsCheck.$touch()}},model:{value:t.termsAndConditionsCheck,callback:function(r){t.termsAndConditionsCheck=r},expression:"termsAndConditionsCheck"}},[n("div",{attrs:{slot:"label-content"},slot:"label-content"},[n("span",{staticClass:"label-span"},[t._v("I accept the")]),t._v(" "),n("footer-modal",{staticClass:"custom-text-section",attrs:{content:"toc","link-text":"Terms of Use"}}),t._v(" "),n("span",[t._v("and")]),t._v(" "),n("footer-modal",{attrs:{content:"privacy"}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showTermsValidationMessage,expression:"showTermsValidationMessage"}],staticClass:"error"},[n("p",[t._v("Please agree to the terms & conditions to continue.")])])],1),t._v(" "),t._m(0)])])])},AD=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold"},[t("button",{staticClass:"tw-font-semibold tw-submit tw-px-10 tw-py-4 btn-primary",attrs:{name:"button",type:"submit",id:"submit-registration"}},[e._v("Create Account")])])}],SD=W(CD,xD,AD,!1,null,null);const ED=SD.exports,TD=Object.freeze(Object.defineProperty({__proto__:null,default:ED},Symbol.toStringTag,{value:"Module"})),DD={name:"number-input",mixins:[Me],props:{value:{type:String,default:""}},methods:{updateValue(e){this.$emit("input",e.replace(/[^\d]/g,""))},formatValue(){this.$refs.input.value=this.value}}};var kD=function(){var t=this,n=t._self._c;return n("input",{ref:"input",class:t.klass,attrs:{type:"tel",name:t.name,id:t.id,autocomplete:"one-time-code"},domProps:{value:t.value},on:{focus:t.selectAll,input:function(r){return t.updateValue(r.target.value)},blur:function(r){t.formatValue()+t.touchInput()}}})},OD=[],RD=W(DD,kD,OD,!1,null,null);const PD=RD.exports,$D=Object.freeze(Object.defineProperty({__proto__:null,default:PD},Symbol.toStringTag,{value:"Module"})),LD={name:"paperless-auth",mixins:[Vt],props:{existingPaperlessSetting:{type:Boolean,required:!0},requirePaperlessActivationCode:{type:Boolean,required:!0},formAction:{type:String,required:!0}},data:function(){return{activationCode:""}},computed:J({},ct({config:"clientConfig",paths:"paths",token:"token"})),methods:{validateOnSubmit:cn},validations(){return this.requirePaperlessActivationCode?{activationCode:{required:qt}}:{}},setup(){return{v$:dn()}}};var BD=function(){var t=this,n=t._self._c;return n("form",{style:t.themeColors,attrs:{id:"paperless-auth","accept-charset":"UTF-8",action:t.formAction,method:"post"},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),t.existingPaperlessSetting?n("input",{attrs:{type:"hidden",name:"_method",value:"patch"}}):t._e(),t._v(" "),n("input",{attrs:{type:"hidden",name:"paperless_setting[send_paper]",value:"false"}}),t._v(" "),t.requirePaperlessActivationCode?n("div",[n("label",{attrs:{for:"activation_code"}},[t._v("Activation Code:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.activationCode,expression:"activationCode"}],class:{error:t.v$.activationCode.$error},attrs:{type:"text",name:"activation_code",id:"activation_code"},domProps:{value:t.activationCode},on:{blur:function(r){return t.v$.activationCode.$touch()},input:function(r){r.target.composing||(t.activationCode=r.target.value)}}})]):t._e(),t._v(" "),n("div",{staticClass:"btn-hold"},[n("a",{staticClass:"tw-btn btn",attrs:{href:t.paths.dashboardPath}},[t._v("Cancel")]),t._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",form:"paperless-auth",id:"paperless-auth-submit",value:"Confirm"}})])])},MD=[],ID=W(LD,BD,MD,!1,null,null);const FD=ID.exports,ND=Object.freeze(Object.defineProperty({__proto__:null,default:FD},Symbol.toStringTag,{value:"Module"})),jD={name:"percentage-input",mixins:[Me],props:{value:{type:[Number,String],default:0},error:{type:Boolean,default:!1}},data:function(){return{modelValue:parseFloat((this.value*100).toFixed(2))}},computed:{inputClass:function(){return{error:this.error}}},watch:{value:function(){this.modelValue=parseFloat((this.value*100).toFixed(2))}},methods:{updateValue(e){this.$emit("input",parseFloat((e.replace(/[^0-9.]/g,"")/100).toFixed(4)))},formatValue(){this.$refs.input.value=`${this.modelValue}%`}}};var UD=function(){var t=this,n=t._self._c;return n("div",[n("input",{attrs:{id:`hidden_${t.id}`,type:"hidden",name:t.name},domProps:{value:t.value}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.modelValue,expression:"modelValue"}],ref:"input",class:t.inputClass,attrs:{type:"text",id:t.id,maxlength:"4"},domProps:{value:t.modelValue},on:{input:[function(r){r.target.composing||(t.modelValue=r.target.value)},function(r){return t.updateValue(r.target.value)}],focus:t.selectAll,blur:t.formatValue}})])},qD=[],HD=W(jD,UD,qD,!1,null,null);const GD=HD.exports,zD=Object.freeze(Object.defineProperty({__proto__:null,default:GD},Symbol.toStringTag,{value:"Module"})),VD={name:"phone-input",mixins:[Me],props:{value:{type:String,default:""},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{modelValue:this.value}},computed:{inputClass:function(){return{error:this.error}}},watch:{value:function(e){this.formatValue()}},methods:{updateValue(e){this.$emit("input",e==null?void 0:e.replace(/\D/g,""))},formatValue(){var e,t;this.modelValue=(t=(e=this.value)==null?void 0:e.replace(/[^0-9]/g,""))==null?void 0:t.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")}}};var WD=function(){var t=this,n=t._self._c;return n("div",[n("input",{attrs:{id:`hidden_${t.id}`,type:"hidden",name:t.name},domProps:{value:t.value}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.modelValue,expression:"modelValue"}],ref:"input",class:t.inputClass,attrs:{type:"tel",id:t.id,disabled:t.disabled},domProps:{value:t.modelValue},on:{focus:t.selectAll,input:[function(r){r.target.composing||(t.modelValue=r.target.value)},function(r){return t.updateValue(r.target.value)}],blur:function(r){t.formatValue()+t.touchInput()}}})])},YD=[],JD=W(VD,WD,YD,!1,null,null);const KD=JD.exports,XD=Object.freeze(Object.defineProperty({__proto__:null,default:KD},Symbol.toStringTag,{value:"Module"})),ZD={name:"privacy-policy",computed:J({},ct(["staticText"]))};var QD=function(){var t=this,n=t._self._c;
552return n("div",{staticClass:"tw-place-self-center tw-px-12 tw-py-8 md:tw-w-1/2"},[n("span",{domProps:{innerHTML:t._s(this.staticText.policyText.privacy)}})])},tk=[],ek=W(ZD,QD,tk,!1,null,null);const nk=ek.exports,rk=Object.freeze(Object.defineProperty({__proto__:null,default:nk},Symbol.toStringTag,{value:"Module"})),ik={name:"radio-box",mixins:[Me],props:{value:{type:[Object,String,Number,Boolean],required:!0},radioValue:{type:[Object,String,Number,Boolean],required:!0},inputClass:{type:[Object,String],default:""},labelWrapperClasses:{type:[Object,String],default:""},widthClasses:{type:[Object,String],default:""},inputDisabled:{type:Boolean,default:!1},hideRadio:{type:Boolean,default:!1},label:{type:String,required:!0},icon:{type:String,required:!0}},computed:{wrapperClasses:function(){return{disabled:this.inputDisabled===!0}}},methods:{pluralize:ym,formatValue(){return!0},updateAndEmit(e){this.$emit("input",this.radioValue),this.$emit("value-updated"),this.isActive=!0}}};var sk=function(){var t=this,n=t._self._c;return n("div",{class:t.wrapperClasses,attrs:{id:`radio_wrapper_${t.id}`}},[n("label",{staticClass:"radio-box-label tw-relative tw-flex tw-flex-wrap tw-border-slate-300 tw-rounded-lg hover:tw-bg-slate-100 tw-border-2",class:[{"tw-bg-slate-100":t.value===t.radioValue}
552,t.widthClasses]},[n("input",{staticClass:"tw-absolute tw-top-0 tw-right-0 tw-m-4 tw-h-6 tw-w-6",attrs:{id:t.id,name:t.name,type:"radio"},domProps:{checked:t.value===t.radioValue,value:t.value},on:{click:function(r){return t.updateAndEmit(t.value)}}}),t._v(" "),n("div",{class:t.labelWrapperClasses},[n("p",[n("i",{staticClass:"radio-box-icon tw-text-3xl tw-text-gray-400 tw-font-thin tw-mb-2",class:t.icon,attrs:{"aria-hidden":"true"}}),n("br"),t._v(" "),t._t("labels")],2)])])])},ok=[],ak=W(ik,sk,ok,!1,null,null);const lk=ak.exports,uk=Object.freeze(Object.defineProperty({__proto__:null,default:lk},Symbol.toStringTag,{value:"Module"})),ck={name:"registration-notes",mixins:[Vt],data:function(){return{notes:[{title:"Manage everything in one place",text:"Registering for BillPay enables tracking of all your eligible taxes, properties, accounts, and other obligations on a central dashboard"},{title:"Enjoy expanded features",text:"Text notifications, payments history, automatic payments and many other tools for managing your obligations are available by registering"},{title:"Secure your information",text:"We will save your information securely so that you can check out quickly and efficiently any time you use this site"},{title:"Stay in the loop",text:"By registering for BillPay, information about your bills, payments, and important communications will come to you instantly by email or text message"},{title:"Access your records",text:"All of your billing, receipts, and payment scheduling activity will be stored in this site’s history feature for easy review, retrieval and management"}]}},computed:J({},ct({config:"clientConfig"}))};var dk=function(){var t=this,n=t._self._c;return n("section",{staticClass:"tw-row-start-2 md:tw-row-start-1 tw-col-span-1 tw-bg-gray-100 lg:tw-block md:tw-p-0",style:t.themeColors},[n("div",{staticClass:"tw-pt-12 tw-py-20 tw-px-10 2xl:tw-px-40"},[t._t("logo"),t._v(" "),t._l(t.notes,function(r,i){return n("div",{key:i,staticClass:"tw-mt-8 tw-flex"},[n("i",{staticClass:"fa-classic fa-regular far fa-check-circle tw-pr-2 tw-text-2xl primary-color"}),t._v(" "),n("div",{staticClass:"tw-ml-4"},[n("p",{staticClass:"tw-text-xl tw-font-semibold"},[t._v(t._s(r.title))]),t._v(" "),n("p",[t._v(t._s(r.text))])])])})],2)])},hk=[],fk=W(ck,dk,hk,!1,null,null);const pk=fk.exports,mk=Object.freeze(Object.defineProperty({__proto__:null,default:pk},Symbol.toStringTag,{value:"Module"})),gk={name:"reset-password-form",components:{PasswordRequirements:Co,RequiredError:Vr},mixins:[Vt],props:{user:{type:Object,required:!0}},data:function(){return{email:this.user.email,password:"",passwordConfirm:""}},computed:J({},ct({company:"companyData",paths:"paths",token:"token",config:"clientConfig"})),methods:{validateOnSubmit:cn},validations(){return{email:{email:Wr,required:qt},password:{required:qt,hasNumber:uu,hasUpperCase:cu,hasLowerCase:du,minLength:fu(8)},passwordConfirm:{required:qt,sameAsPassword:pu(this.password)}}},setup(){return{v$:dn()}}};var vk=function(){var t=this,n=t._self._c;return n("div",{staticClass:"tw-place-self-center tw-pb-8 md:tw-w-1/3",style:t.themeColors,attrs:{id:"reset-password-form"}},[n("h1",{staticClass:"tw-font-proxima tw-text-5xl tw-text-center"},[t._v("Change your password")]),t._v(" "),n("div",{staticClass:"form-wrapper"},[n("form",{attrs:{id:"reset-password","accept-charset":"UTF-8",method:"post",action:t.paths.submitResetPasswordPath},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"id"},domProps:{value:t.user.id}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"token"},domProps:{value:t.user.resetToken}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"user[email]"},domProps:{value:t.email}}),t._v(" "),n("div",{staticClass:"input-box !tw-pb-4"},[n("label",{attrs:{for:"user_email"}},[t._v("Email Address")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{type:"email",id:"email",name:"email",disabled:""},domProps:{value:t.email},on:{input:function(r){r.target.composing||(t.email=r.target.value)}}})]),t._v(" "),n("label",{attrs:{for:"user_password"}},[t._v("Password")]),t._v(" "),n("div",{staticClass:"input-box !tw-pb-0"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.v$.password.$error},attrs:{type:"password",id:"user_password",name:"user[password]"},domProps:{value:t.password},on:{blur:function(r){return t.v$.password.$touch()},input:function(r){r.target.composing||(t.password=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.password,name:"password"}})],1),t._v(" "),n("div",{staticClass:"tw-input"},[n("label",{staticClass:"tw-label",attrs:{for:"user_password_confirmation"}},[t._v("Password Confirmation*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirm,expression:"passwordConfirm"}],class:{error:t.v$.passwordConfirm.$error},attrs:{type:"password",id:"user_password_confirmation",name:"user[password_confirmation]"},domProps:{value:t.passwordConfirm},on:{blur:function(r){return t.v$.passwordConfirm.$touch()},input:function(r){r.target.composing||(t.passwordConfirm=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.passwordConfirm,name:"password confirmation"}})],1),t._v(" "),n("div",[n("password-requirements",{attrs:{v:t.v$,"always-show-requirements":!0}})],1),t._v(" "),t._m(0)])])])},bk=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold"},[t("button",{staticClass:"btn-primary tw-font-semibold tw-px-4 tw-py-3 tw-rounded-lg",attrs:{name:"button",type:"submit"}},[e._v("Change Password")])])}],_k=W(gk,vk,bk,!1,null,null);const yk=_k.exports,wk=Object.freeze(Object.defineProperty({__proto__:null,default:yk},Symbol.toStringTag,{value:"Module"})),Bm={data:function(){return{dropdownTrigger:"",dropdownContentWrapper:""}},methods:{dropdownClickHandler:function(e){const t=this.dropdownContentWrapper.contains(e.target),n=this.dropdownTrigger.contains(e.target);t||n||(this.dropdownActive=!1)}},watch:{dropdownActive:function(e){e?(document.addEventListener("click",this.dropdownClickHandler),document.addEventListener("touchend",this.dropdownClickHandler)):(document.removeEventListener("click",this.dropdownClickHandler),document.removeEventListener("touchend",this.dropdownClickHandler))}}},Ck={name:"role-picker",mixins:[Bm],props:{additionalRoles:{type:Array,required:!0}},data:function(){return{dropdownActive:!1}},computed:at(J({},ct({paths:"paths",token:"token",actingRole:"actingRole",userRole:"userRole"})),{roleHomePath:function(){switch(this.userRole.type){case"Billpayer":return this.paths.dashboardPath;case"Manager":return this.paths.managerHomePath;case"Staff":return this.paths.staffHomePath}}}
552),mounted:function(){this.dropdownTrigger=document.querySelectorAll(".user-box")[0],this.dropdownContentWrapper=document.getElementById("roles-drop-wrapper")},methods:{switchRole:function(e){document.getElementById("role_picker_id").value=e.hashed_id,document.getElementById("role_picker_type").value=e.type,document.getElementById("role_picker_form").submit()},toggleActive:function(){if(this.additionalRoles.length===0)return window.location.href=this.roleHomePath,!1;this.dropdownActive=!this.dropdownActive}}};var xk=function(){var t=this,n=t._self._c;return n("div",{staticClass:"user-box layout-column layout-align-center-center",on:{click:t.toggleActive}},[n("div",{staticClass:"background-canvas tw-absolute tw-top-0 tw-left-0 tw-w-full tw-h-full tw-z-[3]"}),t._v(" "),n("form",{attrs:{id:"role_picker_form",action:t.paths.roleUserPath,method:"post"}},[n("input",{attrs:{name:"_method",type:"hidden",value:"put"}}),t._v(" "),n("input",{attrs:{name:"authenticity_token",type:"hidden"},domProps:{value:t.token}}),t._v(" "),n("input",{attrs:{id:"role_picker_type",name:"user[role_type]",type:"hidden"}}),t._v(" "),n("input",{attrs:{id:"role_picker_id",name:"user[role_id]",type:"hidden"}})]),t._v(" "),n("section",{staticClass:"info layout-column layout-align-center-start",attrs:{tabindex:"0",id:"role-picker","aria-label":`Currently logged in as ${t.userRole.name} ${t.userRole.type} at ${t.userRole.companyName}`}},[n("div",[n("div",{staticClass:"name"},[t._v(`
553        `+t._s(t.userRole.name)+`
554      `)]),t._v(" "),n("div",{staticClass:"role"},[t._v(`
555        `+t._s(t.userRole.type)+" at "+t._s(t.userRole.companyName)+`
556      `)]),t._v(" "),n("div",{staticClass:"email"},[t._v(`
557        `+t._s(t.userRole.email)+`
558      `)])])]),t._v(" "),t.additionalRoles.length>0?n("a",{staticClass:"arrow fa-classic fa-regular fa-chevron-down",attrs:{href:"#",title:"Expand","aria-label":"List all accounts"}}):t._e(),t._v(" "),t.additionalRoles.length>0?n("div",{class:{active:t.dropdownActive},attrs:{id:"roles-drop-wrapper"}},[n("ul",[n("li",{staticClass:"active-role-mobile"},[n("div",{staticClass:"name"},[t._v(`
559          `+t._s(t.userRole.name)+` (active)
560        `)]),t._v(`
561        `+t._s(t.userRole.type)+`
562        `),t.userRole.companyName?n("span",[t._v(`
563          at `+t._s(t.userRole.companyName)+`
564        `)]):t._e()]),t._v(" "),t._l(t.additionalRoles,function(r){return n("li",{attrs:{id:"be_"+r.type+"_"+r.hashed_id},on:{click:function(i){return t.switchRole(r)}}},[n("div",{staticClass:"name"},[t._v(t._s(r.name))]),t._v(`
565        `+t._s(r.type)+`
566        `),r.companyName?n("span",[t._v(`
567          at `+t._s(r.companyName)+`
568        `)]):t._e()])})],2)]):t._e()])},Ak=[],Sk=W(Ck,xk,Ak,!1,null,null);const Ek=Sk.exports,Tk=Object.freeze(Object.defineProperty({__proto__:null,default:Ek},Symbol.toStringTag,{value:"Module"})),Dk={name:"samsung-pay",mixins:[fr,wm],data:function(){return{samsungPayIsAvailable:!0}},computed:at(J({},ct({envInfo:"envInfo",cartAmount:"cartAmount",token:"token",paths:"paths"})),{paymentRequestDetails:function(){return{total:{label:"Total",amount:{currency:"USD",value:this.cartAmount.toString()}}}}}),mounted(){if(!window.PaymentRequest){this.samsungPayIsAvailable=!1;return}this.getSamsungPaymentRequest().canMakePayment().then(t=>{t===!1&&(this.samsungPayIsAvailable=!1)})},methods:{samsungPayButtonClicked:function(e){document.getElementById("agree").checked&&this.getSamsungPaymentRequest(this.paymentRequestDetails).show().then(r=>{const i={authenticity_token:this.token,cart_items:Vs(),ewallet:r,ewallet_account_type:"samsung_pay"};this.callEndpoint("POST",this.paths.ewalletSubmitPath,i,!0).then(function(o){o.data.status==="success"?r.complete("success"):r.complete("fail");const a=JSON.parse(o.data.content);document.getElementById("ewallet-order-id").value=a.id,document.getElementById("new-order").submit()})}).catch(r=>{console.log(r)})}}};var kk=function(){var t=this,n=t._self._c;return t.samsungPayIsAvailable?n("div",{attrs:{id:"samsung-pay-btn"}},[n("img",{attrs:{src:t.paths.imagePaths.samsung_pay_button,alt:"Samsung Pay button"},on:{click:t.samsungPayButtonClicked}})]):n("div",[t._v("Samsung Pay is not availalbe")])},Ok=[],Rk=W(Dk,kk,Ok,!1,null,null);const Pk=Rk.exports,$k=Object.freeze(Object.defineProperty({__proto__:null,default:Pk},Symbol.toStringTag,{value:"Module"})),Lk={computed:J({},ct({actingRole:"actingRole"})),methods:{scheduledOrderBillGroupsByUser:function(e){return e.reduce((t,n)=>(n.scheduled_orders.some(r=>
568r.billpayer_id===this.actingRole.id)&&t.push(n.parcel_identifier),t),[])},scheduledOrderBillGroupsByAnotherUser:function(e){return e.reduce((t,n)=>(n.scheduled_orders.some(r=>r.billpayer_id!==this.actingRole.id)&&t.push(n.parcel_identifier),t),[])},autopayScheduleBillGroupsByUser:function(e){return e.reduce((t,n)=>(n.autopay_schedules.some(r=>r.owner_id===this.actingRole.id)&&t.push(n.parcel_identifier),t),[])},autopayScheduleBillGroupsByAnotherUser:function(e){return e.reduce((t,n)=>(n.autopay_schedules.some(r=>r.owner_id!==this.actingRole.id)&&t.push(n.parcel_identifier),t),[])},anyScheduledOrderBillGroups:function(e){return this.scheduledOrderBillGroupsByUser(e).length||this.scheduledOrderBillGroupsByAnotherUser(e).length},anyAutopayScheduleBillGroups:function(e){return this.autopayScheduleBillGroupsByUser(e).length||this.autopayScheduleBillGroupsByAnotherUser(e).length},anyScheduledBillGroups:function(e){return this.anyScheduledOrderBillGroups(e)||this.anyAutopayScheduleBillGroups(e)}}},Bk={name:"scheduled-order-warning-modal",mixins:[Yr,Lk],props:{inCart:{type:Boolean,default:!1},continuePath:{type:String,required:!0},billGroups:{type:Array,required:!0}},computed:at(J({},ct({paths:"paths",loggedIn:"loggedIn",staticText:"staticText"})),{hasOrdersByUser:function(){return this.scheduledOrderBillGroupsByUser(this.billGroups)},hasOrdersByAnotherUser:function(){return this.scheduledOrderBillGroupsByAnotherUser(this.billGroups)},hasAutopaysByUser:function(){return this.autopayScheduleBillGroupsByUser(this.billGroups)},hasAutopaysByAnotherUser:function(){return this.autopayScheduleBillGroupsByAnotherUser(this.billGroups)},anotherUserText:function(){return this.loggedIn?"by another user ":""},anyOrdersByUser:function(){return this.hasOrdersByUser.length},anyOrdersByAnotherUser:function(){return this.hasOrdersByAnotherUser.length},anyAutopaysByUser:function(){return this.hasAutopaysByUser.length},anyAutopaysByAnotherUser:function(){return this.hasAutopaysByAnotherUser.length},anyScheduledOrders:function(){return this.anyOrdersByUser||this.anyOrdersByAnotherUser},anyAutopaySchedules:function(){return this.anyAutopaysByUser||this.anyAutopaysByAnotherUser},signoffMessage:function(){return this.loggedIn?this.anyAutopaysByUser?this.staticText.scheduledOrderWarning.autopayByUserSignoff:this.anyAutopaysByAnotherUser||this.anyOrdersByAnotherUser?this.staticText.scheduledOrderWarning.defaultSignoff:"":""}})};var Mk=function(){var t=this,n=t._self._c;return n("div",[n("modal",{staticClass:"confirmation-modal scheduled-order-warning-modal",attrs:{id:"scheduled-order-warning-modal","show-close-button":!0},on:{close:function(r){return t.$emit("close")}}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h2",[t._v("Are you sure?")])]),t._v(" "),n("div",{attrs:{slot:"body",id:"scheduled-warning-modals"},slot:"body"},[t.inCart?n("div",{staticClass:"tw-text-left tw-mt-4"},[t.anyOrdersByAnotherUser?n("div",[t._v(`
569          There is currently a payment scheduled `+t._s(t.anotherUserText)+`for the following item(s):
570          `),n("ul",{staticClass:"scheduled-bills-list"},t._l(t.hasOrdersByAnotherUser,function(r){return n("li",[t._v(`
571              `+t._s(r)+`
572            `)])}),0)]):t._e(),t._v(" "),t.anyOrdersByUser?n("div",[t._v(`
573          You currently have a payment scheduled for the following item(s):
574          `),n("ul",{staticClass:"scheduled-bills-list"},t._l(t.hasOrdersByUser,function(r){return n("li",[t._v(`
575              `+t._s(r)+`
576            `)])}),0)]):t._e(),t._v(" "),t.anyAutopaysByAnotherUser?n("div",[t._v(`
577          Recurring payments is currently enabled `+t._s(t.anotherUserText)+`for the following item(s):
578          `),n("ul",{staticClass:"scheduled-bills-list"},t._l(t.hasAutopaysByAnotherUser,function(r){return n("li",[t._v(`
579              `+t._s(r)+`
580            `)])}),0)]):t._e(),t._v(" "),t.anyAutopaysByUser?n("div",[t._v(`
581          You have recurring payments enabled for the following item(s):
582          `),n("ul",{staticClass:"scheduled-bills-list"},t._l(t.hasAutopaysByUser,function(r){return n("li",[t._v(`
583              `+t._s(r)+`
584            `)])}),0)]):t._e(),t._v(" "),t.anyScheduledOrders?n("div",[t.anyOrdersByUser?n("div",[t._v("To review or cancel your scheduled payment(s) please click "),n("a",{attrs:{href:t.paths.historyPath}},[t._v("here")]),t._v(".")]):t._e(),t._v(" "),t.loggedIn?t._e():n("div",[t._v("To review scheduled payments please "),n("a",{attrs:{href:t.paths.loginPath}},[t._v("login")]),t._v(" to your account, "),n("a",{attrs:{href:t.paths.registrationPath}},[t._v("register")]),t._v(`,
585            or `),n("span",{domProps:{innerHTML:t._s(t.staticText.general.pnpSupportInfo)}})])]):t._e(),t._v(" "),t.anyAutopaySchedules?n("div",[t.loggedIn?t._e():n("div",[t._v("To check your recurring payment settings please "),n("a",{attrs:{href:t.paths.loginPath}},[t._v("login")]),t._v(` to your account.
586            On your dashboard, under the options drop down click on 'edit recurring payments',
587            or `),n("span",{domProps:{innerHTML:t._s(t.staticText.general.pnpSupportInfo)}})])]):t._e(),t._v(" "),n("div",{staticClass:"cart-signoff-message"},[n("span",{domProps:{innerHTML:t._s(t.signoffMessage)}}),t._v(" "+t._s(t.staticText.scheduledOrderWarning.buttonInstructions))])]):n("div",[t.anyOrdersByUser?n("div",[n("div",{staticClass:"dashboard-scheduled-bills-message"},[t._v("You currently have a payment scheduled for "+t._s(t.hasOrdersByUser[0]))]),t._v(" "),n("div",{staticClass:"link-to-history-message"},[t._v("To review or cancel your scheduled payment(s) please click "),n("a",{attrs:{href:t.paths.historyPath}},[t._v("here")]),t._v(".")])]):t._e(),t._v(" "),t.anyOrdersByAnotherUser?n("div",[n("div",{staticClass:"dashboard-scheduled-bills-message"}
587,[t._v("A payment is currently scheduled by another user for "+t._s(t.hasOrdersByAnotherUser[0]))])]):t._e(),t._v(" "),t.anyAutopaysByUser?n("div",[n("div",{staticClass:"dashboard-scheduled-bills-message"},[t._v("You have recurring payments enabled for "+t._s(t.hasAutopaysByUser[0]))])]):t._e(),t._v(" "),t.anyAutopaysByAnotherUser?n("div",[n("div",{staticClass:"dashboard-scheduled-bills-message"},[t._v("Recurring payments is enabled by another user for "+t._s(t.hasAutopaysByAnotherUser[0]))])]):t._e(),t._v(" "),n("div",[n("span",{domProps:{innerHTML:t._s(t.signoffMessage)}}),t._v(" "+t._s(t.staticText.scheduledOrderWarning.buttonInstructions))])])]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"tw-btn btn btn-primary tw-mb-2",attrs:{href:t.continuePath}},[t._v("Continue")]),t._v(" "),n("br"),t._v(" "),n("a",{staticClass:"tw-cancel",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.$emit("close")}}},[t._v("Cancel")])])])],1)},Ik=[],Fk=W(Bk,Mk,Ik,!1,null,null);const Nk=Fk.exports,jk=Object.freeze(Object.defineProperty({__proto__:null,default:Nk},Symbol.toStringTag,{value:"Module"}));var ba,oh;function Uk(){if(oh)return ba;oh=1;const e=[0,2,4,6,8,1,3,5,7,9];return ba=function(n){if(typeof n!="string")throw new TypeError("Expected string input");if(!n)return!1;let r=n.length,i=!0,s=0;for(;r;){const o=n.charCodeAt(--r)-48;if(o<0||o>9)return!1;i=!i,s+=i?e[o]:o}return s%10===0},ba}var vs={exports:{}},_a,ah;function be(){if(ah)return _a;ah=1,_a=e;function e(t){if(!(this instanceof e))return new e(t);Object.assign(this,t)}return e.prototype.digits=16,e.prototype.cvcLength=3,e.prototype.luhn=!0,e.prototype.groupPattern=/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?/,e.prototype.group=function(t){return(t.match(this.groupPattern)||[]).slice(1).filter(Boolean)},e.prototype.test=function(t,n){return this[n?"eagerPattern":"pattern"].test(t)},_a}var ya,lh;function qk(){return lh||(lh=1,ya=be()({name:"Visa",digits:[13,19],pattern:/^4\d{12}(\d{3}|\d{6})?$/,eagerPattern:/^4/,groupPattern:/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/})),ya}var wa,uh;function Hk(){return uh||(uh=1,wa=be()({name:"Maestro",digits:[12,19],pattern:/^(?:5[06789]\d\d|(?!6011[0234])(?!60117[4789])(?!60118[6789])(?!60119)(?!64[456789])(?!65)6\d{3})\d{8,15}$/,eagerPattern:/^(5(018|0[23]|[68])|6[37]|60111|60115|60117([56]|7[56])|60118[0-5]|64[0-3]|66)/,groupPattern:/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/})),wa}var Ca,ch;function Gk(){return ch||(ch=1,Ca=be()({name:"Forbrugsforeningen",pattern:/^600722\d{10}$/,eagerPattern:/^600/})),Ca}var xa,dh;function zk(){return dh||(dh=1,xa=be()({name:"Dankort",pattern:/^5019\d{12}$/,eagerPattern:/^5019/})),xa}var Aa,hh;function Vk(){return hh||(hh=1,Aa=be()({name:"Mastercard",pattern:/^(5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)\d{12}$/,eagerPattern:/^(2[3-7]|22[2-9]|5[1-5])/})),Aa}var Sa,fh;function Wk(){return fh||(fh=1,Sa=be()({name:"American Express",digits:15,pattern:/^3[47]\d{13}$/,eagerPattern:/^3[47]/,groupPattern:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,cvcLength:4})),Sa}var Ea,ph;function Yk(){return ph||(ph=1,Ea=be()({name:"Diners Club",digits:[14,19],pattern:/^3(0[0-5]|[68]\d)\d{11,16}$/,eagerPattern:/^3(0|[68])/,groupPattern:/(\d{1,4})?(\d{1,6})?(\d{1,9})?/})),Ea}var Ta,mh;function Jk(){return mh||(mh=1,Ta=be()({name:"Discover",pattern:/^6(011(0[0-9]|[2-4]\d|74|7[7-9]|8[6-9]|9[0-9])|4[4-9]\d{3}|5\d{4})\d{10}$/,eagerPattern:/^6(011(0[0-9]|[2-4]|74|7[7-9]|8[6-9]|9[0-9])|4[4-9]|5)/})),Ta}var Da,gh;function Kk(){return gh||(gh=1,Da=be()({name:"JCB",pattern:/^35\d{14}$/,eagerPattern:/^35/})),Da}var ka,vh;function Xk(){return vh||(vh=1,ka=be()({name:"UnionPay",pattern:/^62[0-5]\d{13,16}$/,eagerPattern:/^62/,groupPattern:/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/,luhn:!1})),ka}var Oa,bh;function Zk(){return bh||(bh=1,Oa=be()({name:"Troy",pattern:/^9792\d{12}$/,eagerPattern:/^9792/})),Oa}var Ra,_h;function Qk(){return _h||(_h=1,Ra=be()({name:"Elo",pattern:/^(4[035]|5[0]|6[235])(6[7263]|9[90]|1[2416]|7[736]|8[9]|0[04579]|5[0])([0-9])([0-9])\d{10}$/,eagerPattern:/^(4[035]|5[0]|6[235])(6[7263]|9[90]|1[2416]|7[736]|8[9]|0[04579]|5[0])([0-9])([0-9])/,groupPattern:/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/})),Ra}var Pa,yh;function tO(){return yh||(yh=1,Pa=be()({name:"UATP",digits:15,pattern:/^1\d{14}$/,eagerPattern:/^1/,groupPattern:/(\d{1,4})(\d{1,5})?(\d{1,6})?/})),Pa}var $a,wh;function eO(){return wh||(wh=1,$a=[qk(),Hk(),Gk(),zk(),Vk(),Wk(),Yk(),Jk(),Kk(),Xk(),Zk(),Qk(),tO()]),$a}var La,Ch;function Mm(){return Ch||(Ch=1,La=eO()),La}var xh;function nO(){if(xh)return vs.exports;xh=1;const e=Mm();vs.exports=t,vs.exports.defaults=e;function t(n){const r=n.reduce(function(s,o){return s[o.name]=o,s},{});return{find:n.find.bind(n),some:n.some.bind(n),get:i};function i(s){const o=r[s];if(!o)throw new Error("No type found for name: "+s);return o}}return vs.exports}var Ba,Ah;
587function rO(){if(Ah)return Ba;Ah=1;const e=Uk(),t=nO();Ba=n;function n(r){const i=t(r);return{types:r,parse:s,format:o,type:a,luhn:e,isValid:l};function s(c){return typeof c!="string"?"":c.replace(/[^\d]/g,"")}function o(c,d){const h=u(c,!0);return h?h.group(c).join(d||" "):c}function a(c,d){const h=u(c,d);return h?h.name:void 0}function l(c,d){return d?d=i.get(d):d=u(c),d?(!d.luhn||e(c))&&d.test(c):!1}function u(c,d){return i.find(function(h){return h.test(c,d)})}}return Ba}var iO=rO();const sO=Be(iO);var oO=Mm();const aO=Be(oO),lO={name:"secure-input",mixins:[Me],props:{value:{type:String,default:""},pinType:{type:String,default:""},maskCount:{type:Number,default:4},disablePasting:{type:Boolean,default:!1}},data(){return{maskedValue:"",hideInput:!0,rawValue:this.value}},watch:{rawValue:function(e){this.formatValue()}},mounted(){this.formatValue()},methods:{updateValue:function(e){this.$emit("input",e.replace(/[^\d]/g,""))},formatValue:function(){if(this.pinType==="cvv")this.maskedValue=this.rawValue.replace(/\d/g,"*");else if(this.pinType==="credit"){const e=this.formatCreditCardNumber(this.rawValue).trim();this.rawValue=e,this.maskedValue=this.maskNumber(e)}else this.maskedValue=this.maskNumber(this.rawValue)},maskNumber:function(e){const t=e.toString();return t.slice(0,-this.maskCount).replace(/\d/g,"*")+t.slice(-this.maskCount)},formatCreditCardNumber:function(e){const t=e.toString().replace(/\s/g,"");return sO(aO).format(t)},toggleInput:function(){if(this.hideInput=!this.hideInput,!this.hideInput){this.formatValue();const e=this;setTimeout(function(){e.$refs.secureInput.focus({focusVisible:!0})})}},toggleOff:function(){this.formatValue(),this.touchInput(),this.toggleInput()},maybeDisablePasting:function(e){this.disablePasting&&e.preventDefault()}}};var uO=function(){var t=this,n=t._self._c;return n("div",[n("input",{class:t.klass,attrs:{type:"tel",hidden:!t.hideInput,id:t.id+"_masked"},domProps:{value:t.maskedValue},on:{focus:function(r){return t.toggleInput()}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rawValue,expression:"rawValue"}],ref:"secureInput",class:t.klass,attrs:{type:"tel",id:t.id,hidden:t.hideInput,name:t.name},domProps:{value:t.rawValue},on:{focus:t.selectAll,input:[function(r){r.target.composing||(t.rawValue=r.target.value)},function(r){return t.updateValue(r.target.value)}],blur:function(r){return t.toggleOff()},paste:t.maybeDisablePasting}})])},cO=[],dO=W(lO,uO,cO,!1,null,null);const hO=dO.exports,fO=Object.freeze(Object.defineProperty({__proto__:null,default:hO},Symbol.toStringTag,{value:"Module"})),pO={name:"session-timeout-modal",components:{Modal:Am},mixins:[Yr,fr,Vt],props:{sessionDuration:{type:Number,required:!0},notLoggedIn:{type:Boolean,required:!1,default:!1}},data:function(){return{sessionTimer:null,countdownTimer:null,countdownCounter:null,backendSessionSetAt:new Date().getTime(),showSessionTimeoutModal:!1}},computed:at(J({},ct(["companyData","token","paths","userRole","clientConfig","cartEmpty"])),{cartClearingText:function(){return"your cart will be cleared"},logOutText:function(){return"you will be logged out"},actionText:function(){return this.notLoggedIn?this.cartClearingText:this.cartEmpty?this.logOutText:this.logOutText+" and "+this.cartClearingText}}),mounted(){this.countdownTimer===0&&this.timeoutUser(),["click","scroll","keypress"].forEach(e=>{document.addEventListener(e,()=>{this.setSessionTimer()})}),this.setSessionTimer()},unmounted(){clearTimeout(this.sessionTimer),clearInterval(this.countdownTimer)},methods:at(J({},Ht(["clearCart","clearBillGroupStore"])),{setSessionTimer:function(){this.showSessionTimeoutModal||this.notLoggedIn&&this.cartEmpty||(clearTimeout(this.sessionTimer),this.sessionTimer=setTimeout(()=>{this.showModal()},this.sessionDuration),this.backendSessionSetAt<new Date().getTime()-6e4&&this.setBackendSession())},showModal:function(){clearTimeout(this.sessionTimer),this.countdownCounter=30,this.sessionTimer=setTimeout(()=>{this.timeoutSession()},this.countdownCounter*1e3),this.countdownTimer=setInterval(()=>{this.countdownCounter-=1},1e3),this.toggleModal("showSessionTimeoutModal")},extendSession:function(){clearInterval(this.countdownTimer),this.toggleModal("showSessionTimeoutModal"),this.setSessionTimer(),this.setBackendSession()},setBackendSession:function(){this.backendSessionSetAt=new Date().getTime(),this.callEndpoint("POST",this.paths.setSessionPath,{authenticity_token:this.token},!0)},timeoutSession:function(){return Yt(this,null,function*(){let e=this.paths.timeoutSessionPath;
587this.userRole.staff||(e=e.concat(`?company_slug=${this.companyData.slug}`)),yield this.clearCart(),yield this.clearBillGroupStore(),window.location.href=e})},logOutUser:function(){this.clearCart(),this.clearBillGroupStore(),window.location.href=this.paths.logoutPath},clearSessionCart:function(){this.clearCart(),this.clearBillGroupStore(),this.toggleModal("showSessionTimeoutModal")}})};var mO=function(){var t=this,n=t._self._c;return n("div",{style:t.themeColors},[n("modal",{directives:[{name:"show",rawName:"v-show",value:t.showSessionTimeoutModal,expression:"showSessionTimeoutModal"}],staticClass:"modal",attrs:{id:"session-timeout-modal"}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("h3",{staticClass:"tw-pb-3 primary-color"},[t._v("Still there?")])]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[n("p",{staticClass:"tw-pb-2"},[t._v(`For security we suspend your session if you’re inactive for too long. If you don’t click
588        Continue within `+t._s(t.countdownCounter)+" seconds, "+t._s(t.actionText)+".")])]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[t.notLoggedIn?n("a",{staticClass:"tw-ml-2 tw-mb-2 tw-btn btn btn-secondary",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.clearSessionCart()}}},[t._v("Clear Cart")]):n("a",{staticClass:"tw-ml-2 tw-mb-2 tw-btn btn btn-secondary",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.logOutUser()}}},[t._v("Log out")]),t._v(" "),n("a",{staticClass:"tw-ml-2 tw-mb-2 tw-btn btn btn-primary",attrs:{href:"#"},on:{click:function(r){return r.preventDefault(),t.extendSession()}}},[t._v("Continue")])])])],1)},gO=[],vO=W(pO,mO,gO,!1,null,null);const bO=vO.exports,_O=Object.freeze(Object.defineProperty({__proto__:null,default:bO},Symbol.toStringTag,{value:"Module"})),yO={name:"support-page",components:{RequiredError:Vr},mixins:[Vt],data:function(){return{email:"",recaptcha:{},recaptchaToken:null}},computed:at(J({},ct({company:"companyData",paths:"paths",token:"token",config:"clientConfig",envInfo:"envInfo",recaptchaKey:"recaptchaKey"})),{clientBehalfText:function(){return this.company?`on behalf of ${this.company.name} `:""}}),mounted(){this.envInfo.testEnv||xm.load(this.recaptchaKey).then(e=>{this.recaptcha=e})},methods:at(J({},Ht(["setFlash"])),{validateOnSubmit:cn,submitResetForm:function(e){if(e.preventDefault(),!!this.validateOnSubmit(e)){if(this.envInfo.testEnv){this.submitForm();return}this.recaptcha.execute("forgot_password").then(t=>{this.recaptchaToken=t,this.$nextTick(()=>{this.submitForm()})}).catch(()=>{this.submitForm()})}},submitForm:function(){document.getElementById("send-password-reset").submit()}}),validations(){return{email:{email:Wr,required:qt}}},setup(){return{v$:dn()}}};var wO=function(){var t=this,n=t._self._c;return n("div",{staticClass:"tw-w-fit",style:t.themeColors},[n("h1",{staticClass:"tw-text-center tw-pb-8"},[t._v("Support")]),t._v(" "),n("p",{staticClass:"tw-place-self-center tw-text-center tw-text-3xl tw-pb-4 md:tw-max-w-[80%]"},[t._v("Point & Pay provides this website "+t._s(t.clientBehalfText)+"to enable fast easy access to bills and electronic payment options.")]),t._v(" "),n("div",{staticClass:"md:tw-flex tw-place-self-center"},[n("section",{staticClass:"tw-p-8 tw-mr-8 md:tw-max-w-[50%]"},[n("h3",[t._v("Our support team is available to help with:")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t.company?n("div",[n("h3",[t._v("For all other inquiries, including:")]),t._v(" "),t._m(2),t._v(" "),n("p",{staticClass:"tw-max-w-sm"},[t._v("Please contact "+t._s(t.company.name)+" at "),n("a",{attrs:{href:`mailto:${t.company.support_email}`}},[t._v(t._s(t.company.support_email))]),t._v(" for assistance.")])]):t._e()]),t._v(" "),n("section",{staticClass:"tw-p-8",attrs:{id:"login-help"}},[n("h2",{staticClass:"tw-text-center tw-pb-4"},[t._v("Frequently Asked Questions")]),t._v(" "),n("div",{staticClass:"tw-bg-slate-100 tw-p-8"},[n("h3",{staticClass:"tw-text-center tw-pb-4"},[t._v("Forgot Password?")]),t._v(" "),n("p",[t._v("Remember that we require your password to:")]),t._v(" "),t._m(3),t._v(" "),n("p",[t._v("Still need to reset it?")]),t._v(" "),n("p",{staticClass:"tw-max-w-sm"},[t._v("Just fill in your email address we have for your account, and we'll send you an email with a link to reset your password.")]),t._v(" "),n("div",{staticClass:"tw-mt-8"},[n("form",{attrs:{id:"send-password-reset","accept-charset":"UTF-8",method:"post",action:t.paths.resetPasswordPath},on:{submit:function(r){return t.submitResetForm(r)}}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.recaptchaToken,expression:"recaptchaToken"}],attrs:{type:"hidden",name:"recaptcha_token"},domProps:{value:t.recaptchaToken}
588,on:{input:function(r){r.target.composing||(t.recaptchaToken=r.target.value)}}}),t._v(" "),t.company?n("input",{attrs:{type:"hidden",name:"company_slug"},domProps:{value:t.company.slug}}):t._e(),t._v(" "),n("div",{staticClass:"input-box tw-pb-4"},[n("label",{attrs:{for:"user_email"}},[t._v("Email Address")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{error:t.v$.email.$error},attrs:{type:"email",id:"email",name:"email"},domProps:{value:t.email},on:{blur:function(r){return t.v$.email.$touch()},input:function(r){r.target.composing||(t.email=r.target.value)}}}),t._v(" "),n("required-error",{attrs:{field:t.v$.email,name:"email"}})],1),t._v(" "),t._m(4)])])])])])])},CO=[function(){var e=this,t=e._self._c;return t("ul",{staticClass:"tw-pl-8 tw-pb-4 tw-list-disc tw-list-inside"},[t("li",[e._v("How to make a payment")]),e._v(" "),t("li",[e._v("Receipt or verification of a payment")]),e._v(" "),t("li",[e._v("Change, Refund or Dispute a payment")]),e._v(" "),t("li",[e._v("Technical issue with a payment")]),e._v(" "),t("li",[e._v("Other / General Assistance with a payment")])])},function(){var e=this,t=e._self._c;return t("p",{staticClass:"tw-pb-8 tw-max-w-sm"},[e._v("Please contact our Client Services team at "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(" should you require assistance.")])},function(){var e=this,t=e._self._c;return t("ul",{staticClass:"tw-pl-8 tw-pb-4 tw-list-disc tw-list-inside"},[t("li",[e._v("Unable to locate a bill or an incorrect bill")]),e._v(" "),t("li",[e._v("Amount owed is incorrect")]),e._v(" "),t("li",[e._v("Add or Remove Users")]),e._v(" "),t("li",[e._v("Other / General Assistance with the bill")])])},function(){var e=this,t=e._self._c;return t("ul",{staticClass:"tw-pl-8 tw-pb-4 tw-list-disc tw-list-inside"},[t("li",[e._v("Be at least eight characters long")]),e._v(" "),t("li",[e._v("Have at least one number")]),e._v(" "),t("li",[e._v("Have at least one upper case and one lower case letter")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-hold"},[t("button",{staticClass:"btn-primary tw-font-semibold tw-px-4 tw-py-3 tw-rounded-lg",attrs:{name:"button",type:"submit"}},[e._v("Reset Password")])])}],xO=W(yO,wO,CO,!1,null,null);const AO=xO.exports,SO=Object.freeze(Object.defineProperty({__proto__:null,default:AO},Symbol.toStringTag,{value:"Module"})),EO={name:"tab",props:{slug:{required:!0,type:String},linkText:{required:!0,type:String}},data:function(){return{active:!1}},inject:["currentTab"],computed:{defaultSlotContent:function(){return`No ${this.linkText} found`}},watch:{"currentTab.slug":function(){this.active=this.currentTab.slug===this.slug}}};var TO=function(){var t=this,n=t._self._c;return t.active?n("div",{staticClass:"tab-wrapper"},[t._t("default",function(){return[t._v(`
589    `+t._s(t.defaultSlotContent)+`
590  `)]})],2):t._e()},DO=[],kO=W(EO,TO,DO,!1,null,null);const OO=kO.exports,RO=Object.freeze(Object.defineProperty({__proto__:null,default:OO},Symbol.toStringTag,{value:"Module"})),PO={name:"table-list",props:{classes:{type:String,default:""},useTransition:{type:Boolean,default:!0}},methods:{positionElementBeforeLeave:wp}};var $O=function(){var t=this,n=t._self._c;return n("div",{class:`table-list ${t.classes}`},[t.useTransition?n("transition-group",{staticClass:"layout-row layout-wrap",attrs:{name:"table-row",appear:"","appear-class":"table-row-enter"},on:{"before-leave":t.positionElementBeforeLeave}},[t._t("default")],2):n("div",{staticClass:"layout-row layout-wrap"},[t._t("default")],2)],1)},LO=[],BO=W(PO,$O,LO,!1,null,null);const MO=BO.exports,IO=Object.freeze(Object.defineProperty({__proto__:null,default:MO},Symbol.toStringTag,{value:"Module"})),FO={name:"table-row",props:{id:{type:String,default:""},classes:{type:String,default:""}}};var NO=function(){var t=this,n=t._self._c;return n("div",{class:`table-row-wrapper tw-w-full ${t.classes}`},[n("div",{staticClass:"table-row",attrs:{id:t.id}},[t._t("default")],2)])},jO=[],UO=W(FO,NO,jO,!1,null,null);const qO=UO.exports,HO=Object.freeze(Object.defineProperty({__proto__:null,default:qO},Symbol.toStringTag,{value:"Module"})),GO={name:"tabs",props:{tabsUpdatedLinkText:{type:Array,default:function(){return[]}},billpayerHistory:{type:Boolean,default:!1},alignLeft:{type:Boolean,required:!1,default:!1}},data:function(){return{tabs:[],activeSlug:""}},watch:{tabsUpdatedLinkText:function(){this.tabs=this.$children.map(e=>({slug:e.slug,linkText:e.linkText}))}},mounted(){this.tabs=this.$children.map(e=>({slug:e.slug,linkText:e.linkText})),this.$nextTick().then(()=>{let e=window.location.hash.replace("#","");if(e==="")return this.updateCurrentTab(this.tabs[0].slug);const t=this.tabs.map(i=>i.slug);let n=t.includes(e);n||(e=e.split("_")[0],n=t.includes(e));const r=n?e:t[0];this.updateCurrentTab(r)}),this.$root.$on("updateCurrentTab",e=>{this.updateCurrentTab(e)})},methods:{updateCurrentTab:function(e){this.activeSlug=e,window.location.hash=`#${this.activeSlug}`}},provide(){const e={};return Object.defineProperties(e,{slug:{enumerable:!0,get:()=>this.activeSlug}}),{currentTab:e}}};var zO=function(){var t=this,n=t._self._c;return n("div",[n("div",{class:t.billpayerHistory?"!tw-bg-transparent tw-my-5 tw-border-b":"tw-bg-gray-100 tw-text-center tw-font-medium tw-text-gray-500 tw-my-5 tw-rounded-lg"},[n("div",{staticClass:"md:tw-px-5 tw-flex tw-flex-wrap tw-place-content-center tw-space-x-2",class:{"tw-justify-start":t.alignLeft||t.billpayerHistory}},t._l(t.tabs,function(r){return n("a",{key:r.slug,staticClass:"nav-link tw-inline-block tw-rounded-t-lg tw-border-b-2 tw-border-transparent tw-py-4 tw-px-6 hover:tw-border-gray-300 focus:tw-text-inherit",class:{"tw-border-black tw-font-bold hover:tw-border-gray-600 tw-border-b-4":r.slug===t.activeSlug},attrs:{href:"#"+r.slug},on:{click:function(i){return i.preventDefault(),t.updateCurrentTab(r.slug)}}},[n("span",{class:t.billpayerHistory?"tw-uppercase tw-text-sm tw-font-semibold tw-tracking-wider":"tw-capitalize",domProps:{innerHTML:t._s(r.linkText)}})])}),0)]),t._v(" "),n("div",{staticClass:"tabs-wrapper"},[t._t("default")],2)])},VO=[],WO=W(GO,zO,VO,!1,null,null);const YO=WO.exports,JO=Object.freeze(Object.defineProperty({__proto__:null,default:YO},Symbol.toStringTag,{value:"Module"})),KO={name:"terms",computed:J({},ct(["staticText"]))};var XO=function(){var t=this,n=t._self._c;
590return n("div",{staticClass:"tw-place-self-center tw-px-12 tw-py-8 md:tw-w-1/2"},[n("span",{domProps:{innerHTML:t._s(this.staticText.policyText.toc)}})])},ZO=[],QO=W(KO,XO,ZO,!1,null,null);const tR=QO.exports,eR=Object.freeze(Object.defineProperty({__proto__:null,default:tR},Symbol.toStringTag,{value:"Module"})),nR={name:"toggle",mixins:[Me],props:{value:{type:Boolean,required:!0}},methods:{formatValue(){return!0},updateAndEmit(e){this.$emit("input",e),this.$emit("value-updated")}}};var rR=function(){var t=this,n=t._self._c;return n("div",{staticClass:"toggle-switch-wrapper",attrs:{id:`toggle_wrapper_${t.id}`}},[n("input",{attrs:{type:"checkbox",name:t.name,id:t.id},domProps:{value:t.value,checked:t.value},on:{click:function(r){return t.updateAndEmit(!t.value)}}}),t._v(" "),n("label",{attrs:{for:t.id}},[n("span",{staticClass:"box"},[t.value?n("span",{staticClass:"on"},[t._v("Yes")]):n("span",{staticClass:"off"},[t._v("No")])])])])},iR=[],sR=W(nR,rR,iR,!1,null,null);const oR=sR.exports,aR=Object.freeze(Object.defineProperty({__proto__:null,default:oR},Symbol.toStringTag,{value:"Module"})),lR={name:"toggle-show",props:{default:{type:Boolean,required:!1,default:!1}},data(){return{show:this.default}},computed:{openerClass:function(){return{"opener fal":!0,"fa-chevron-circle-right closed":!this.show,"fa-chevron-circle-down open":this.show}}},methods:{toggleShow:function(){this.show=!this.show,this.$emit("show",this.show)}}};var uR=function(){var t=this,n=t._self._c;return n("div",{staticClass:"table-result"},[n("tr",{staticClass:"expandable layout-row layout-align-start-center",on:{click:function(r){return r.stopPropagation(),t.toggleShow()}}},[n("i",{class:t.openerClass,attrs:{"aria-hidden":"true",title:"Click For Details"}}),t._v(" "),t._t("label")],2),t._v(" "),t.show?n("div",{staticClass:"tw-ml-10"},[t._t("show-hide")],2):t._e()])},cR=[],dR=W(lR,uR,cR,!1,null,null);const hR=dR.exports,fR=Object.freeze(Object.defineProperty({__proto__:null,default:hR},Symbol.toStringTag,{value:"Module"})),pR={name:"user-edit",components:{PasswordRequirements:Co},mixins:[Vt],props:{formAction:{type:String,required:!0},userEmail:{type:String,required:!0}},data(){return{edit:!1,editPassword:!1,email:this.userEmail,currentPassword:"",passwordConfirm:"",password:""}},computed:at(J({},ct({userRole:"userRole",token:"token",config:"clientConfig"})),{passwordPresent:function(){var e;return(e=this.v$.password)==null?void 0:e.$error},passwordConfirmPresent:function(){var e;return(e=this.v$.passwordConfirm)==null?void 0:e.$error},billpayerEditing:function(){return this.userRole.type==="Billpayer"}}),mounted(){this.billpayerEditing||this.togglePasswordFields()},methods:at(J({},Ht(["setFlash"])),{validateOnSubmit:cn,toggleForm:function(){this.password="",this.passwordConfirm="",this.currentPassword="",this.email=this.userEmail,this.edit&&this.v$.$reset(),this.edit=!this.edit},togglePasswordFields:function(){this.editPassword=!this.editPassword,this.password="",this.passwordConfirm=""}}),validations(){const e={email:{email:Wr,required:qt}},t={currentPassword:{required:qt}},n={password:{required:qt,hasNumber:uu,hasUpperCase:cu,hasLowerCase:du,minLength:fu(8)},passwordConfirm:{required:qt,sameAsPassword:pu(this.password)}},r={password:{},passwordConfirm:{}};return this.userRole.actingAs?Object.assign(e):this.editPassword?Object.assign(e,t,n):Object.assign(e,t,r)},setup(){return{v$:dn()}}};var mR=function(){var r;var t=this,n=t._self._c;return n("div",{style:t.themeColors},[n("form",{attrs:{id:"edit-user-info","accept-charset":"UTF-8",method:"post",action:t.formAction},on:{submit:t.validateOnSubmit}},[n("input",{attrs:{name:"utf8",type:"hidden",value:"✓"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"_method",value:"patch"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"authenticity_token"},domProps:{value:t.token}}),t._v(" "),n("div",{staticClass:"user-table"},[n("div",[t.billpayerEditing?n("div",{staticClass:"tw-mt-8 tw-w-full md:tw-w-1/2"},[n("label",{staticClass:"tw-label",attrs:{for:"user[email]"}},[t._v("email")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.email,expression:"email",modifiers:{trim:!0}}],class:{error:t.v$.email.$error},attrs:{id:"user[email]",type:"email",name:"user[email]"},domProps:{value:t.email},on:{blur:[function(i){return t.v$.email.$touch()},function(i){return t.$forceUpdate()}],input:function(i){i.target.composing||(t.email=i.target.value.trim())}}}),t._v(" "),(r=t.v$.currentPassword)!=null&&r.$error?n("p",{staticClass:"tw-mt-2 tw-text-gray-600 tw-text-sm"},[t._v("Password is required to update your email")]):t._e(),t._v(" "),n("required-error",{attrs:{field:t.v$.email,name:"email address"}})],1):t._e(),t._v(" "),t.userRole.actingAs?t._e():n("div",[n("div",{staticClass:"tw-mt-4 tw-w-full md:tw-w-1/2"},[n("label",{staticClass:"tw-label",attrs:{for:"user[current_password]"}},[t._v(t._s(t.editPassword?"current password":"password"))]),t._v(" "),n("div",{staticClass:"tw-flex"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.currentPassword,expression:"currentPassword",modifiers:{trim:!0}}],class:{error:t.v$.currentPassword.$error},attrs:{placeholder:"Enter current password",type:"password",name:"user[current_password]"},domProps:{value:t.currentPassword},on:{blur:[function(i){return t.v$.currentPassword.$touch()},function(i){return t.$forceUpdate()}],input:function(i){i.target.composing||(t.currentPassword=i.target.value.trim())}}}),t._v(" "),t.billpayerEditing?n("a",{staticClass:"tw-btn-fixed-white tw-bg-slate-800 hover:tw-bg-slate-900 tw-text-xs tw-ml-2 tw-w-42 tw-w-42 tw-text-center tw-px-4 tw-py-3 tw-rounded-md tw-tracking-normal",attrs:{href:"#",id:"password-edit-button"},on:{click:function(i){return i.preventDefault(),t.togglePasswordFields()}}},[t._v(`
591                `+t._s(t.editPassword?"Cancel":"Change")+`
592              `)]):t._e()]),t._v(" "),n("required-error",{attrs:{field:t.v$.currentPassword,name:"current password"}})],1),t._v(" "),t.editPassword?n("div",[n("password-requirements",{attrs:{v:t.v$}}),t._v(" "),n("div",{staticClass:"tw-mt-4 tw-w-full md:tw-w-1/2"},[n("label",{staticClass:"tw-label",attrs:{for:"user[current_password]"}},[t._v("new password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.password,expression:"password",modifiers:{trim:!0}}],class:{error:t.v$.password.$error},attrs:{type:"password",name:"user[password]"},domProps:{value:t.password},on:{blur:[function(i){return t.v$.password.$touch()},function(i){return t.$forceUpdate()}],input:function(i){i.target.composing||(t.password=i.target.value.trim())}}})]),t._v(" "),n("required-error",{attrs:{field:t.v$.password,name:"new password"}}),t._v(" "),n("div",{staticClass:"tw-mt-4 tw-w-full md:tw-w-1/2"},[n("label",{staticClass:"tw-label",attrs:{for:"user[current_password]"}},[t._v("confirm password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.trim.trim",value:t.passwordConfirm,expression:"passwordConfirm",modifiers:{trim:!0}}],class:{error:t.v$.passwordConfirm.$error},attrs:{type:"password",name:"user[password_confirmation]"},domProps:{value:t.passwordConfirm},on:{blur:[function(i){return t.v$.passwordConfirm.$touch()},function(i){return t.$forceUpdate()}],input:function(i){i.target.composing||(t.passwordConfirm=i.target.value.trim())}}})]),t._v(" "),n("required-error",{attrs:{field:t.v$.passwordConfirm,name:"confirm new password"}})],1):t._e()])]),t._v(" "),t._m(0)])])])},gR=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"cancel-submit tw-mt-4"},[t("input",{staticClass:"tw-btn btn btn-primary tw-mb-2",attrs:{type:"submit",form:"edit-user-info",value:"Save"}})])}],vR=W(pR,mR,gR,!1,null,null);const bR=vR.exports,_R=Object.freeze(Object.defineProperty({__proto__:null,default:bR},Symbol.toStringTag,{value:"Module"})),yR={mixins:[Bm],data:function(){return{dropdownActive:!1}},computed:at(J({},ct({paths:"paths",userRole:"userRole",cart:"cartItems",cartEmpty:"cartEmpty"})),{dropWrapperClasses:function(){return{"tw-invisible hidden":!this.dropdownActive}},hideClasses:function(){return{"tw-hidden lg:tw-block":!this.userRole.staff,"tw-block":this.userRole.staff}}}),mounted:function(){this.dropdownTrigger=document.getElementById("settings-trigger"),this.dropdownContentWrapper=document.getElementById("settings-drop-wrapper")},methods:at(J({},Ht(["clearCart","clearBillGroupStore"])),{toggleActive:function(){this.dropdownActive=!this.dropdownActive},confirmClearCart:function(){confirm("Are you sure you want to clear your cart?")&&(this.clearCart(),this.clearBillGroupStore())}})};var wR=function(){var t=this,n=t._self._c;return n("div",{staticClass:"settings tw-bg-slate-50 accent-color",class:t.hideClasses},[n("a",{staticClass:"fa-classic fa-regular fa-cog tw-bg-slate-50 accent-color tw-text-xl hover:tw-bg-slate-200",attrs:{href:"#",id:"settings-trigger","aria-label":"Settings",title:"Settings"},on:{click:function(r){return r.preventDefault(),t.toggleActive.apply(null,arguments)}}}),t._v(" "),n("div",{staticClass:"tw-rounded tw-border tw-w-52 tw-mr-2 tw-mt-3 tw-absolute tw-bg-white tw-transition-all tw-right-0 tw-z-50",class:t.dropWrapperClasses,attrs:{id:"settings-drop-wrapper"}},[n("ul",{staticClass:"tw-divide-y tw-text-sm tw-text-black",attrs:{"aria-label":"Account settings"}},[t.cartEmpty?t._e():n("li",{staticClass:"hide-gt-phone hover:tw-bg-gray-200"},[n("a",{staticClass:"tw-block tw-py-3 tw-text-black hover:tw-text-black tw-px-3",attrs:{href:t.paths.cartPath}},[t._v("Cart ("+t._s(t.cart.length)+")")])]),t._v(" "),t.cartEmpty?t._e():n("li",{staticClass:"hide-gt-phone hover:tw-bg-gray-200"},[n("a",{staticClass:"tw-block tw-py-3 tw-text-black hover:tw-text-black tw-px-3",on:{click:function(r){return r.preventDefault(),t.confirmClearCart()}}},[t._v("Clear Cart")])]),t._v(" "),t.userRole.staff?t._e():n("li",{staticClass:"hover:tw-bg-gray-200"},[n("a",{staticClass:"tw-block tw-py-3 tw-text-black hover:tw-text-black tw-px-3",attrs:{href:t.userRole.type==="Billpayer"?t.paths.billpayerAccountSettingsPath:t.paths.managerAccountSettingsPath}},[t._v("Account Settings")])]),t._v(" "),n("li",{staticClass:"hover:tw-bg-gray-200"},[n("a",{staticClass:"tw-block tw-py-3 tw-text-black hover:tw-text-black tw-px-3",attrs:{href:t.paths.supportPath}},[t._v("Support")])]),t._v(" "),n("li",{staticClass:"hover:tw-bg-gray-200"},[n("a",{staticClass:"tw-block tw-py-3 tw-text-black hover:tw-text-black tw-px-3",attrs:{href:t.paths.logoutPath}},[t._v("Log Out")])])])])])},CR=[],xR=W(yR,wR,CR,!1,null,null);const AR=xR.exports,SR=Object.freeze(Object.defineProperty({__proto__:null,default:AR},Symbol.toStringTag,{value:"Module"})),ER={name:"validation-field",mixins:[Yr],props:{validCode:{type:String,default:""},requireValidation:{type:Boolean,default:!1},billField:{type:String,required:!0}},data:function(){return{submittedCode:"",code:"",validatingCode:!1,showValidationModal:!1,error:!1}},computed:at(J({},ct({customText:"customText"})),{showField:function(){return!this.requireValidation||this.verifiedCode},verifiedCode:function(){const e=this.validCode!=="",t=this.validCode===this.submittedCode;return e&&t},validationRequiredButtonText:function(){const e=`${this.billField}SecondaryValidationRequiredButtonText`;return this.customText[e]},validationHeaderText:function(){const e=`${this.billField}SecondaryValidationHeaderText`;return this.customText[e]},validationButtonText:function(){const e=`${this.billField}SecondaryValidationButtonText`;return this.customText[e]},validationErrorText:function(){return this.customText["secondaryValidationErrorText"]}}),methods:{sha256String:E0,verifyCode:function(){this.validatingCode=!0,this.sha256String(this.code).then(e=>{this.submittedCode=e,this.validatingCode=!1,this.verifiedCode?(this.error=!1,this.toggleModal("showValidationModal")):this.error=!0})}}};var TR=function(){var t=this,n=t._self._c;return n("div",[t.showField?n("div",[t._t("default")],2):n("button",{staticClass:"tw-btn-fixed-transparent",on:{click:function(r){return t.toggleModal("showValidationModal")}}},[t._v(`
593    `+t._s(t.validationRequiredButtonText)+`
594  `)]),t._v(" "),n("modal",{directives:[{name:"show",rawName:"v-show",value:t.showValidationModal,expression:"showValidationModal"}],staticClass:"confirmation-modal",attrs:{id:"validation-modal","show-close-button":!0},on:{close:function(r){return t.toggleModal("showValidationModal")}}},[n("div",{attrs:{slot:"header"},domProps:{innerHTML:t._s(t.validationHeaderText)},slot:"header"}),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],class:{error:t.error},attrs:{type:"text",name:"validationCode",placeholder:"Enter your validation code here"},domProps:{value:t.code},on:{input:function(r){r.target.composing||(t.code=r.target.value)}}}),t._v(" "),t.error?n("p",{staticClass:"tw-py-2 error"},[t._v(t._s(t.validationErrorText))]):t._e()]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("button",{staticClass:"tw-btn btn btn-primary tw-mb-2",class:{disabled:t.validatingCode},attrs:{id:"validate-field"},on:{click:function(r){return r.preventDefault(),t.verifyCode()}}},[t.validatingCode?n("span",[n("i",{staticClass:"fa-classic fa-regular fa-spinner fa-pulse",attrs:{"aria-hidden":"true"}}
594)]):n("span",[t._v(t._s(t.validationButtonText))])])])])],1)},DR=[],kR=W(ER,TR,DR,!1,null,null);const OR=kR.exports,RR=Object.freeze(Object.defineProperty({__proto__:null,default:OR},Symbol.toStringTag,{value:"Module"}));function PR(e,t={}){const{store:n}=t;Object.entries(e).forEach(([r,i])=>{const s=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();document.querySelectorAll(s).forEach(a=>{const l={};Array.from(a.attributes).forEach(u=>{let c=u.name;const d=u.value,h=c.startsWith(":");h&&(c=c.slice(1));const v=c.replace(/-([a-z])/g,f=>f[1].toUpperCase());if(h)try{l[v]=JSON.parse(d)}catch(f){l[v]=d}else l[v]=d}),new dt({store:n,render:u=>u(i,{props:l})}).$mount(a)})})}function Y$(e={}){const t=Object.assign({"./components/ApplePay.vue":v1,"./components/AutopayTurnoffModal.vue":x1,"./components/BetweenErrorMsg.vue":k1,"./components/BillpayerActAs.vue":B1,"./components/CartDisplay.vue":U1,"./components/Checkbox.vue":QA,"./components/ClaimButton.vue":Q1,"./components/ColorPicker.vue":sS,"./components/CommonData.vue":dS,"./components/CompanyDetails.vue":vS,"./components/CurrencyInput.vue":xS,"./components/CustomSelect.vue":I0,"./components/ExistingUserForm.vue":kS,"./components/Flash.vue":BS,"./components/FooterModal.vue":US,"./components/GlobalNav.vue":WS,"./components/GooglePay.vue":QS,"./components/InnerTableList.vue":sE,"./components/InnerTableRow.vue":dE,"./components/InvalidCartWarningModal.vue":vE,"./components/InvalidError.vue":xE,"./components/InvalidFieldError.vue":kE,"./components/LoginForm.vue":IE,"./components/LoginMfaForm.vue":HE,"./components/MainFooter.vue":JE,"./components/ManagerSearchForm.vue":eT,"./components/MessageBox.vue":aT,"./components/Modal.vue":hT,"./components/MultiFactorAuthentication.vue":gD,"./components/NewUserForm.vue":TD,"./components/NumberInput.vue":$D,"./components/Pagination.vue":d1,"./components/PaperlessAuth.vue":ND,"./components/PasswordRequirements.vue":wD,"./components/PercentageInput.vue":zD,"./components/PhoneInput.vue":XD,"./components/PrivacyPolicy.vue":rk,"./components/Radio.vue":s1,"./components/RadioBox.vue":uk,"./components/RegistrationNotes.vue":mk,"./components/RequiredError.vue":R0,"./components/ResetPasswordForm.vue":wk,"./components/RolePicker.vue":Tk,"./components/SamsungPay.vue":$k,"./components/ScheduledOrderWarningModal.vue":jk,"./components/SecureInput.vue":fO,"./components/SessionTimeoutModal.vue":_O,"./components/SupportPage.vue":SO,"./components/Tab.vue":RO,"./components/TableList.vue":IO,"./components/TableRow.vue":HO,"./components/Tabs.vue":JO,"./components/Terms.vue":eR,"./components/Toggle.vue":aR,"./components/ToggleShow.vue":fR,"./components/TrixInput.vue":Xx,"./components/UserEdit.vue":_R,"./components/UserSettings.vue":SR,"./components/ValidationField.vue":RR}),n={};Object.entries(t).forEach(([r,i])=>{const s=r.split("/").pop().replace(/\.\w+$/,"");dt.component(s,i.default),n[s]=i.default}),PR(n,e)}function Im(e,t){return function(){return e.apply(t,arguments)}}const{toString:$R}=Object.prototype,{getPrototypeOf:Ru}=Object,xo=(e=>t=>{const n=$R.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ie=e=>(e=e.toLowerCase(),t=>xo(t)===e),Ao=e=>t=>typeof t===e,{isArray:Xr}=Array,Bi=Ao("undefined");function LR(e){return e!==null&&!Bi(e)&&e.constructor!==null&&!Bi(e.constructor)&&fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fm=Ie("ArrayBuffer");function BR(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fm(e.buffer),t}const MR=Ao("string"),fe=Ao("function"),Nm=Ao("number"),So=e=>e!==null&&typeof e=="object",IR=e=>e===!0||e===!1,Ps=e=>{if(xo(e)!=="object")return!1;const t=Ru(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},FR=Ie("Date"),NR=Ie("File"),jR=Ie("Blob"),UR=Ie("FileList"),qR=e=>So(e)&&fe(e.pipe),HR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||fe(e.append)&&((t=xo(e))==="formdata"||t==="object"&&fe(e.toString)&&e.toString()==="[object FormData]"))},GR=Ie("URLSearchParams"),[zR,VR,WR,YR]=["ReadableStream","Request","Response","Headers"].map(Ie),JR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,i;if(typeof e!="object"&&(e=[e]),Xr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function jm(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Wn=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Um=e=>!Bi(e)&&e!==Wn;function Dl(){const{caseless:e}=Um(this)&&this||{},t={},n=(r,i)=>{const s=e&&jm(t,i)||i;Ps(t[s])&&Ps(r)?t[s]=Dl(t[s],r):Ps(r)?t[s]=Dl({},r):Xr(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Vi(arguments[r],n);return t}const KR=(e,t,n,{allOwnKeys:r}={})=>(Vi(t,(i,s)=>{n&&fe(i)?e[s]=Im(i,n):e[s]=i},{allOwnKeys:r}),e),XR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},QR=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Ru(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},eP=e=>{if(!e)return null;if(Xr(e))return e;let t=e.length;if(!Nm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nP=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Ru(Uint8Array)),rP=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;
vendor: 4,919 bytes, line 594
594(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},iP=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sP=Ie("HTMLFormElement"),oP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Sh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),aP=Ie("RegExp"),qm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vi(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},lP=e=>{qm(e,(t,n)=>{if(fe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(fe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uP=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Xr(e)?r(e):r(String(e).split(t)),n},cP=()=>{},dP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ma="abcdefghijklmnopqrstuvwxyz",Eh="0123456789",Hm={DIGIT:Eh,ALPHA:Ma,ALPHA_DIGIT:Ma+Ma.toUpperCase()+Eh},hP=(e=16,t=Hm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function fP(e){return!!(e&&fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pP=e=>{const t=new Array(10),n=(r,i)=>{if(So(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=Xr(r)?[]:{};return Vi(r,(o,a)=>{const l=n(o,i+1);!Bi(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},mP=Ie("AsyncFunction"),gP=e=>e&&(So(e)||fe(e))&&fe(e.then)&&fe(e.catch),Gm=((e,t)=>e?setImmediate:t?((n,r)=>(Wn.addEventListener("message",({source:i,data:s})=>{i===Wn&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Wn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fe(Wn.postMessage)),vP=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Wn):typeof process!="undefined"&&process.nextTick||Gm,$={isArray:Xr,isArrayBuffer:Fm,isBuffer:LR,isFormData:HR,isArrayBufferView:BR,isString:MR,isNumber:Nm,isBoolean:IR,isObject:So,isPlainObject:Ps,isReadableStream:zR,isRequest:VR,isResponse:WR,isHeaders:YR,isUndefined:Bi,isDate:FR,isFile:NR,isBlob:jR,isRegExp:aP,isFunction:fe,isStream:qR,isURLSearchParams:GR,isTypedArray:nP,isFileList:UR,forEach:Vi,merge:Dl,extend:KR,trim:JR,stripBOM:XR,inherits:ZR,toFlatObject:QR,kindOf:xo,kindOfTest:Ie,endsWith:tP,toArray:eP,forEachEntry:rP,matchAll:iP,isHTMLForm:sP,hasOwnProperty:Sh,hasOwnProp:Sh,reduceDescriptors:qm,freezeMethods:lP,toObjectSet:uP,toCamelCase:oP,noop:cP,toFiniteNumber:dP,findKey:jm,global:Wn,isContextDefined:Um,ALPHABET:Hm,generateString:hP,isSpecCompliantForm:fP,toJSONObject:pP,isAsyncFn:mP,isThenable:gP,setImmediate:Gm,asap:vP};function rt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}$.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const zm=rt.prototype,Vm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Vm[e]={value:e}});Object.defineProperties(rt,Vm);Object.defineProperty(zm,"isAxiosError",{value:!0});rt.from=(e,t,n,r,i,s)=>{const o=Object.create(zm);return $.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),rt.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const bP=null;function kl(e){return $.isPlainObject(e)||$.isArray(e)}function Wm(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Th(e,t,n){return e?e.concat(t).map(function(i,s){return i=Wm(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function _P(e){return $.isArray(e)&&!e.some(kl)}const yP=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Eo(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,_){return!$.isUndefined(_[g])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if($.isDate(f))return f.toISOString();if(!l&&$.isBlob(f))throw new rt("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(f)||$.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,_){let S=f;if(f&&!_&&typeof f=="object"){if($.endsWith(g,"{}
vendor: 4,379 bytes, line 594
594"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if($.isArray(f)&&_P(f)||($.isFileList(f)||$.endsWith(g,"[]"))&&(S=$.toArray(f)))return g=Wm(g),S.forEach(function(w,C){!($.isUndefined(w)||w===null)&&t.append(o===!0?Th([g],C,s):o===null?g:g+"[]",u(w))}),!1}return kl(f)?!0:(t.append(Th(_,g,s),u(f)),!1)}const d=[],h=Object.assign(yP,{defaultVisitor:c,convertValue:u,isVisitable:kl});function v(f,g){if(!$.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),$.forEach(f,function(S,E){(!($.isUndefined(S)||S===null)&&i.call(t,S,$.isString(E)?E.trim():E,g,h))===!0&&v(S,g?g.concat(E):[E])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Dh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pu(e,t){this._pairs=[],e&&Eo(e,this,t)}const Ym=Pu.prototype;Ym.append=function(t,n){this._pairs.push([t,n])};Ym.toString=function(t){const n=t?function(r){return t.call(this,r,Dh)}:Dh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jm(e,t,n){if(!t)return e;const r=n&&n.encode||wP,i=n&&n.serialize;let s;if(i?s=i(t,n):s=$.isURLSearchParams(t)?t.toString():new Pu(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class kh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Km={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CP=typeof URLSearchParams!="undefined"?URLSearchParams:Pu,xP=typeof FormData!="undefined"?FormData:null,AP=typeof Blob!="undefined"?Blob:null,SP={isBrowser:!0,classes:{URLSearchParams:CP,FormData:xP,Blob:AP},protocols:["http","https","file","blob","url","data"]},$u=typeof window!="undefined"&&typeof document!="undefined",EP=(e=>$u&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),TP=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",DP=$u&&window.location.href||"http://localhost",kP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$u,hasStandardBrowserEnv:EP,hasStandardBrowserWebWorkerEnv:TP,origin:DP},Symbol.toStringTag,{value:"Module"})),Pe=J(J({},kP),SP);function OP(e,t){return Eo(e,new Pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Pe.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function RP(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function PP(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Xm(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=n.length;return o=!o&&$.isArray(i)?i.length:o,l?($.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!$.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&$.isArray(i[o])&&(i[o]=PP(i[o])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,i)=>{t(RP(r),i,n,0)}),n}return null}function $P(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wi={transitional:Km,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=$.isObject(t);if(s&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return i?JSON.stringify(Xm(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>
vendor: 4,204 bytes, lines 594-596
594-1)return OP(t,this.formSerializer).toString();if((a=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Eo(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),$P(t)):t}],transformResponse:[function(t){const n=this.transitional||Wi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?rt.from(a,rt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pe.classes.FormData,Blob:Pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Wi.headers[e]={}});const LP=$.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"]),BP=e=>{const t={};let n,r,i;return e&&e.split(`
595`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&LP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Oh=Symbol("internals");function ci(e){return e&&String(e).trim().toLowerCase()}function $s(e){return e===!1||e==null?e:$.isArray(e)?e.map($s):String(e)}function MP(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}const IP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ia(e,t,n,r,i){if($.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function FP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function NP(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let ae=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,u){const c=ci(l);if(!c)throw new Error("header name must be a non-empty string");const d=$.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=$s(a))}const o=(a,l)=>$.forEach(a,(u,c)=>s(u,c,l));if($.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if($.isString(t)&&(t=t.trim())&&!IP(t))o(BP(t),n);else if($.isHeaders(t))for(const[a,l]of t.entries())s(l,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=ci(t),t){const r=$.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return MP(i);if($.isFunction(n))return n.call(this,i,r);if($.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ci(t),t){const r=$.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ia(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=ci(o),o){const a=$.findKey(r,o);a&&(!n||Ia(r,r[a],a,n))&&(delete r[a],i=!0)}}return $.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Ia(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return $.forEach(this,(i,s)=>{const o=$.findKey(r,s);if(o){n[o]=$s(i),delete n[s];return}const a=t?FP(s):String(s).trim();a!==s&&delete n[s],n[a]=$s(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&$.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
596`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);
596return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Oh]=this[Oh]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=ci(o);r[a]||(NP(i,o),r[a]=!0)}return $.isArray(t)?t.forEach(s):s(t),this}};ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});$.freezeMethods(ae);function Fa(e,t){const n=this||Wi,r=t||n,i=ae.from(r.headers);let s=r.data;return $.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Zm(e){return!!(e&&e.__CANCEL__)}function Zr(e,t,n){rt.call(this,e==null?"canceled":e,rt.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(Zr,rt,{__CANCEL__:!0});function Qm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function UP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let d=s,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const v=c&&u-c;return v?Math.round(h*1e3/v):void 0}}function qP(e,t){let n=0,r=1e3/t,i,s;const o=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?o(u,c):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},r-d)))},()=>i&&o(i)]}const to=(e,t,n=3)=>{let r=0;const i=UP(50,250);return qP(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,u=i(l),c=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Rh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ph=e=>(...t)=>$.asap(()=>e(...t)),HP=Pe.hasStandardBrowserEnv?(function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=$.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}})():(function(){return function(){return!0}})(),GP=Pe.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),$.isString(r)&&o.push("path="+r),$.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tg(e,t){return e&&!zP(t)?VP(e,t):t}const $h=e=>e instanceof ae?J({},e):e;function ur(e,t){t=t||{};const n={};function r(u,c,d){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:d},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}
596function i(u,c,d){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function s(u,c){if(!$.isUndefined(c))return r(void 0,c)}function o(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c)=>i($h(u),$h(c),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,h=d(e[c],t[c],c);$.isUndefined(h)&&d!==a||(n[c]=h)}),n}const eg=e=>{const t=ur({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=ae.from(o),t.url=Jm(tg(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if($.isFormData(n)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Pe.hasStandardBrowserEnv&&(r&&$.isFunction(r)&&(r=r(t)),r||r!==!1&&HP(t.url))){const u=i&&s&&GP.read(s);u&&o.set(i,u)}return t},WP=typeof XMLHttpRequest!="undefined",YP=WP&&function(e){return new Promise(function(n,r){const i=eg(e);let s=i.data;const o=ae.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,d,h,v,f;function g(){v&&v(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function S(){if(!_)return;const w=ae.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),P={data:!a||a==="text"||a==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:w,config:e,request:_};Qm(function(L){n(L),g()},function(L){r(L),g()},P),_=null}"onloadend"in _?_.onloadend=S:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(S)},_.onabort=function(){_&&(r(new rt("Request aborted",rt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new rt("Network Error",rt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||Km;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new rt(C,P.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,_)),_=null},s===void 0&&o.setContentType(null),"setRequestHeader"in _&&$.forEach(o.toJSON(),function(C,P){_.setRequestHeader(P,C)}),$.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),a&&a!=="json"&&(_.responseType=i.responseType),u&&([h,f]=to(u,!0),_.addEventListener("progress",h)),l&&_.upload&&([d,v]=to(l),_.upload.addEventListener("progress",d),_.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(c=w=>{_&&(r(!w||w.type?new Zr(null,e,_):w),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const E=jP(i.url);if(E&&Pe.protocols.indexOf(E)===-1){r(new rt("Unsupported protocol "+E+":",rt.ERR_BAD_REQUEST,e));return}_.send(s||null)})},JP=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const u=l instanceof Error?l:this.reason;n.abort(u instanceof rt?u:new Zr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{i(new rt(`timeout ${t} of ms exceeded`,rt.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]},KP=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},XP=function(e,t,n){return Ju(this,null,function*(){try{for(var r=Xu(e),i,s,o;i=!(s=yield new Cr(r.next())).done;i=!1){const a=s.value;yield*Ku(KP(ArrayBuffer.isView(a)?a:yield new Cr(n(String(a))),t))}}catch(s){o=[s]}finally{try{i&&(s=r.return)&&(yield new Cr(s.call(r)))}finally{if(o)throw o[0]}}})},Lh=(e,t,n,r,i)=>{const s=XP(e,t,i);let o=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({pull(c){return Yt(this,null,function*(){try{const{done:d,value:h}=yield s.next();if(d){l(),c.close();return}let v=h.byteLength;if(n){let f=o+=v;n(f)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}})},cancel(c){return l(c),s.return()}},{highWaterMark:2})},To=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ng=To&&typeof ReadableStream=="function",Ol=To&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>Yt(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),rg=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},ZP=ng&&rg(()=>{let e=!1;
596const t=new Request(Pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Bh=64*1024,Rl=ng&&rg(()=>$.isReadableStream(new Response("").body)),eo={stream:Rl&&(e=>e.body)};To&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!eo[t]&&(eo[t]=$.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new rt(`Response type '${t}' is not supported`,rt.ERR_NOT_SUPPORT,r)})})})(new Response);const QP=e=>Yt(null,null,function*(){if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(yield new Request(e).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(yield Ol(e)).byteLength}),t$=(e,t)=>Yt(null,null,function*(){const n=$.toFiniteNumber(e.getContentLength());return n==null?QP(t):n}),e$=To&&(e=>Yt(null,null,function*(){let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=eg(e);u=u?(u+"").toLowerCase():"text";let[v,f]=i||s||o?JP([i,s],o):[],g,_;const S=()=>{!g&&setTimeout(()=>{v&&v.unsubscribe()}),g=!0};let E;try{if(l&&ZP&&n!=="get"&&n!=="head"&&(E=yield t$(c,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),L;if($.isFormData(r)&&(L=k.headers.get("content-type"))&&c.setContentType(L),k.body){const[j,U]=Rh(E,to(Ph(l)));r=Lh(k.body,Bh,j,U,Ol)}}$.isString(d)||(d=d?"include":"omit"),_=new Request(t,at(J({},h),{signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:d}));let w=yield fetch(_);const C=Rl&&(u==="stream"||u==="response");if(Rl&&(a||C)){const k={};["status","statusText","headers"].forEach(q=>{k[q]=w[q]});const L=$.toFiniteNumber(w.headers.get("content-length")),[j,U]=a&&Rh(L,to(Ph(a),!0))||[];w=new Response(Lh(w.body,Bh,j,()=>{U&&U(),C&&S()},Ol),k)}u=u||"text";let P=yield eo[$.findKey(eo,u)||"text"](w,e);return!C&&S(),f&&f(),yield new Promise((k,L)=>{Qm(k,L,{data:P,headers:ae.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:_})})}catch(w){throw S(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,e,_),{cause:w.cause||w}):rt.from(w,w&&w.code,e,_)}})),Pl={http:bP,xhr:YP,fetch:e$};$.forEach(Pl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Mh=e=>`- ${e}`,n$=e=>$.isFunction(e)||e===null||e===!1,ig={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!n$(n)&&(r=Pl[(o=String(n)).toLowerCase()],r===void 0))throw new rt(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
597`+s.map(Mh).join(`
598`):" "+Mh(s[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Pl};function Na(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zr(null,e)}function Ih(e){return Na(e),e.headers=ae.from(e.headers),e.data=Fa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ig.getAdapter(e.adapter||Wi.adapter)(e).then(function(r){return Na(e),r.data=Fa.call(e,e.transformResponse,r),r.headers=ae.from(r.headers),r},function(r){return Zm(r)||(Na(e),r&&r.response&&(r.response.data=Fa.call(e,e.transformResponse,r.response),r.response.headers=ae.from(r.response.headers))),Promise.reject(r)})}const sg="1.7.4",Lu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Fh={};Lu.transitional=function(t,n,r){function i(s,o){return"[Axios v"+sg+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new rt(i(o," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!Fh[o]&&(Fh[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function r$(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new rt("option "+s+" must be "+l,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+s,rt.ERR_BAD_OPTION)}}const $l={assertOptions:r$,validators:Lu},vn=$l.validators;let tr=class{constructor(t){this.defaults=t,this.interceptors={request:new kh,response:new kh}}request(t,n){return Yt(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
599`+s):r.stack=s}catch(o){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ur(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&$l.assertOptions(r,{silentJSONParsing:vn.transitional(vn.boolean),forcedJSONParsing:vn.transitional(vn.boolean),clarifyTimeoutError:vn.transitional(vn.boolean)}
vendor: 2,608 bytes, line 599
599,!1),i!=null&&($.isFunction(i)?n.paramsSerializer={serialize:i}:$l.assertOptions(i,{encode:vn.function,serialize:vn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&$.merge(s.common,s[n.method]);s&&$.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),n.headers=ae.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,h;if(!l){const f=[Ih.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,u),h=f.length,c=Promise.resolve(n);d<h;)c=c.then(f[d++],f[d++]);return c}h=a.length;let v=n;for(d=0;d<h;){const f=a[d++],g=a[d++];try{v=f(v)}catch(_){g.call(this,_);break}}try{c=Ih.call(this,v)}catch(f){return Promise.reject(f)}for(d=0,h=u.length;d<h;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=ur(this.defaults,t);const n=tg(t.baseURL,t.url);return Jm(n,t.params,t.paramsSerializer)}};$.forEach(["delete","get","head","options"],function(t){tr.prototype[t]=function(n,r){return this.request(ur(r||{},{method:t,url:n,data:(r||{}).data}))}});$.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(ur(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}tr.prototype[t]=n(),tr.prototype[t+"Form"]=n(!0)});let i$=class og{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Zr(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new og(function(i){t=i}),cancel:t}}};function s$(e){return function(n){return e.apply(null,n)}}function o$(e){return $.isObject(e)&&e.isAxiosError===!0}const Ll={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
599alContent: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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Ll).forEach(([e,t])=>{Ll[t]=e});function ag(e){const t=new tr(e),n=Im(tr.prototype.request,t);return $.extend(n,tr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return ag(ur(e,i))},n}const It=ag(Wi);It.Axios=tr;It.CanceledError=Zr;It.CancelToken=i$;It.isCancel=Zm;It.VERSION=sg;It.toFormData=Eo;It.AxiosError=rt;It.Cancel=It.CanceledError;It.all=function(t){return Promise.all(t)};It.spread=s$;It.isAxiosError=o$;It.mergeConfig=ur;It.AxiosHeaders=ae;It.formToJSON=e=>Xm($.isHTMLForm(e)?new FormData(e):e);It.getAdapter=ig.getAdapter;It.HttpStatusCode=Ll;It.default=It;const{Axios:X$,AxiosError:Z$,CanceledError:Q$,isCancel:tL,CancelToken:eL,VERSION:nL,all:rL,Cancel:iL,isAxiosError:sL,spread:oL,toFormData:aL,AxiosHeaders:lL,HttpStatusCode:uL,formToJSON:cL,getAdapter:dL,mergeConfig:hL}=It;function no(e){return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function ja(e,t){if(!e.vueAxiosInstalled){var n=lg(t)?u$(t):t;if(c$(n)){var r=d$(e);if(r){var i=r<3?a$:l$;Object.keys(n).forEach((function(s){i(e,s,n[s])})),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either <axios_instance> or { <registration_key>: <axios_instance> }")}}function a$(e,t,n){Object.defineProperty(e.prototype,t,{get:function(){return n}}),e[t]=n}function l$(e,t,n){e.config.globalProperties[t]=n,e[t]=n}function lg(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function u$(e){return{axios:e,$http:e}}function c$(e){return no(e)==="object"&&Object.keys(e).every((function(t){return lg(e[t])}))}function d$(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports=="undefined"?"undefined":no(exports))=="object"?module.exports=ja:typeof define=="function"&&define.amd?define([],(function(){return ja})):window.Vue&&window.axios&&window.Vue.use&&Vue.use(ja,window.axios);export{V1 as $,Ui as A,v$ as B,M0 as C,G$ as D,z$ as E,V$ as F,i1 as G,ZA as H,M$ as I,F$ as J,S$ as K,ja as L,It as M,Y$ as N,PR as O,c1 as P,m$ as Q,Vr as R,E0 as S,Kx as T,Rr as U,dt as V,f$ as W,sw as X,W1 as Y,OR as Z,Lk as _,ct as a,gE as a0,Nk as a1,tw as a2,H$ as a3,ym as a4,$$ as a5,F0 as a6,lu as a7,Am as a8,Bm as a9,q$ as aA,h0 as aB,Z1 as aC,oT as aD,p$ as aE,RE as aF,iw as aG,Kf as aH,C1 as aa,wp as ab,ld as ac,au as ad,yp as ae,Vs as af,b$ as ag,xm as ah,Co as ai,pu as aj,du as ak,cu as al,uu as am,Wr as an,fu as ao,wm as ap,T$ as aq,x$ as ar,O$ as as,R$ as at,k$ as au,D$ as av,E$ as aw,L$ as ax,Be as ay,Sn as az,fr as b,zr as c,Yr as d,j$ as e,B$ as f,U0 as g,A$ as h,N$ as i,S0 as j,w$ as k,y$ as l,Ht as m,W as n,_$ as o,I$ as p,dd as q,qt as r,Vt as s,g$ as t,dn as u,cn as v,U$ as w,C$ as x,P$ as y,N0 as z};

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.