@agendize/vue-tools 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bloc/Bloc.d.ts +11 -11
- package/dist/bloc/useBlocState.d.ts +3 -3
- package/dist/index.d.ts +11 -10
- package/dist/presentation/component/qr-code/View.vue.d.ts +69 -69
- package/dist/presentation/locales/index.d.ts +3 -3
- package/dist/store/accountStore.d.ts +14 -10
- package/dist/style.css +1 -1
- package/dist/utils/colorUtils.d.ts +5 -0
- package/dist/utils/constants.d.ts +4 -4
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/file.d.ts +9 -9
- package/dist/utils/format.d.ts +10 -4
- package/dist/vue-tools.es.js +4590 -3833
- package/dist/vue-tools.umd.js +19 -19
- package/package.json +67 -61
package/dist/vue-tools.umd.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`}return
|
|
3
|
-
`}return d.substring(0,d.length-1)},F.renderTo2dContext=function(W,ae){ae=ae||2;for(var _=F.getModuleCount(),b=0;b<_;b++)for(var O=0;O<_;O++)W.fillStyle=F.isDark(b,O)?"black":"white",W.fillRect(b*ae,O*ae,ae,ae)},F};f.stringToBytes=(f.stringToBytesFuncs={default:function(L){for(var q=[],$=0;$<L.length;$+=1){var j=L.charCodeAt($);q.push(255&j)}return q}}).default,f.createStringToBytes=function(L,q){var $=function(){for(var V=G(L),Z=function(){var J=V.read();if(J==-1)throw"eof";return J},se=0,ie={};;){var F=V.read();if(F==-1)break;var ee=Z(),ne=Z()<<8|Z();ie[String.fromCharCode(F<<8|ee)]=ne,se+=1}if(se!=q)throw se+" != "+q;return ie}(),j="?".charCodeAt(0);return function(V){for(var Z=[],se=0;se<V.length;se+=1){var ie=V.charCodeAt(se);if(ie<128)Z.push(ie);else{var F=$[V.charAt(se)];typeof F=="number"?(255&F)==F?Z.push(F):(Z.push(F>>>8),Z.push(255&F)):Z.push(j)}}return Z}};var x,y,w,S,T,N={L:1,M:0,Q:3,H:2},C=(x=[[],[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]],y=1335,w=7973,T=function(L){for(var q=0;L!=0;)q+=1,L>>>=1;return q},(S={}).getBCHTypeInfo=function(L){for(var q=L<<10;T(q)-T(y)>=0;)q^=y<<T(q)-T(y);return 21522^(L<<10|q)},S.getBCHTypeNumber=function(L){for(var q=L<<12;T(q)-T(w)>=0;)q^=w<<T(q)-T(w);return L<<12|q},S.getPatternPosition=function(L){return x[L-1]},S.getMaskFunction=function(L){switch(L){case 0:return function(q,$){return(q+$)%2==0};case 1:return function(q,$){return q%2==0};case 2:return function(q,$){return $%3==0};case 3:return function(q,$){return(q+$)%3==0};case 4:return function(q,$){return(Math.floor(q/2)+Math.floor($/3))%2==0};case 5:return function(q,$){return q*$%2+q*$%3==0};case 6:return function(q,$){return(q*$%2+q*$%3)%2==0};case 7:return function(q,$){return(q*$%3+(q+$)%2)%2==0};default:throw"bad maskPattern:"+L}},S.getErrorCorrectPolynomial=function(L){for(var q=A([1],0),$=0;$<L;$+=1)q=q.multiply(A([1,E.gexp($)],0));return q},S.getLengthInBits=function(L,q){if(1<=q&&q<10)switch(L){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+L}else if(q<27)switch(L){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+L}else{if(!(q<41))throw"type:"+q;switch(L){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+L}}},S.getLostPoint=function(L){for(var q=L.getModuleCount(),$=0,j=0;j<q;j+=1)for(var V=0;V<q;V+=1){for(var Z=0,se=L.isDark(j,V),ie=-1;ie<=1;ie+=1)if(!(j+ie<0||q<=j+ie))for(var F=-1;F<=1;F+=1)V+F<0||q<=V+F||ie==0&&F==0||se==L.isDark(j+ie,V+F)&&(Z+=1);Z>5&&($+=3+Z-5)}for(j=0;j<q-1;j+=1)for(V=0;V<q-1;V+=1){var ee=0;L.isDark(j,V)&&(ee+=1),L.isDark(j+1,V)&&(ee+=1),L.isDark(j,V+1)&&(ee+=1),L.isDark(j+1,V+1)&&(ee+=1),ee!=0&&ee!=4||($+=3)}for(j=0;j<q;j+=1)for(V=0;V<q-6;V+=1)L.isDark(j,V)&&!L.isDark(j,V+1)&&L.isDark(j,V+2)&&L.isDark(j,V+3)&&L.isDark(j,V+4)&&!L.isDark(j,V+5)&&L.isDark(j,V+6)&&($+=40);for(V=0;V<q;V+=1)for(j=0;j<q-6;j+=1)L.isDark(j,V)&&!L.isDark(j+1,V)&&L.isDark(j+2,V)&&L.isDark(j+3,V)&&L.isDark(j+4,V)&&!L.isDark(j+5,V)&&L.isDark(j+6,V)&&($+=40);var ne=0;for(V=0;V<q;V+=1)for(j=0;j<q;j+=1)L.isDark(j,V)&&(ne+=1);return $+Math.abs(100*ne/q/q-50)/5*10},S),E=function(){for(var L=new Array(256),q=new Array(256),$=0;$<8;$+=1)L[$]=1<<$;for($=8;$<256;$+=1)L[$]=L[$-4]^L[$-5]^L[$-6]^L[$-8];for($=0;$<255;$+=1)q[L[$]]=$;return{glog:function(j){if(j<1)throw"glog("+j+")";return q[j]},gexp:function(j){for(;j<0;)j+=255;for(;j>=256;)j-=255;return L[j]}}}();function A(L,q){if(L.length===void 0)throw L.length+"/"+q;var $=function(){for(var V=0;V<L.length&&L[V]==0;)V+=1;for(var Z=new Array(L.length-V+q),se=0;se<L.length-V;se+=1)Z[se]=L[se+V];return Z}(),j={getAt:function(V){return $[V]},getLength:function(){return $.length},multiply:function(V){for(var Z=new Array(j.getLength()+V.getLength()-1),se=0;se<j.getLength();se+=1)for(var ie=0;ie<V.getLength();ie+=1)Z[se+ie]^=E.gexp(E.glog(j.getAt(se))+E.glog(V.getAt(ie)));return A(Z,0)},mod:function(V){if(j.getLength()-V.getLength()<0)return j;for(var Z=E.glog(j.getAt(0))-E.glog(V.getAt(0)),se=new Array(j.getLength()),ie=0;ie<j.getLength();ie+=1)se[ie]=j.getAt(ie);for(ie=0;ie<V.getLength();ie+=1)se[ie]^=E.gexp(E.glog(V.getAt(ie))+Z);return A(se,0).mod(V)}};return j}var I=function(){var L=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],q=function(j,V){var Z={};return Z.totalCount=j,Z.dataCount=V,Z},$={getRSBlocks:function(j,V){var Z=function(_e,Oe){switch(Oe){case N.L:return L[4*(_e-1)+0];case N.M:return L[4*(_e-1)+1];case N.Q:return L[4*(_e-1)+2];case N.H:return L[4*(_e-1)+3];default:return}}(j,V);if(Z===void 0)throw"bad rs block @ typeNumber:"+j+"/errorCorrectionLevel:"+V;for(var se=Z.length/3,ie=[],F=0;F<se;F+=1)for(var ee=Z[3*F+0],ne=Z[3*F+1],J=Z[3*F+2],we=0;we<ee;we+=1)ie.push(q(ne,J));return ie}};return $}(),D=function(){var L=[],q=0,$={getBuffer:function(){return L},getAt:function(j){var V=Math.floor(j/8);return(L[V]>>>7-j%8&1)==1},put:function(j,V){for(var Z=0;Z<V;Z+=1)$.putBit((j>>>V-Z-1&1)==1)},getLengthInBits:function(){return q},putBit:function(j){var V=Math.floor(q/8);L.length<=V&&L.push(0),j&&(L[V]|=128>>>q%8),q+=1}};return $},P=function(L){var q=L,$={getMode:function(){return 1},getLength:function(Z){return q.length},write:function(Z){for(var se=q,ie=0;ie+2<se.length;)Z.put(j(se.substring(ie,ie+3)),10),ie+=3;ie<se.length&&(se.length-ie==1?Z.put(j(se.substring(ie,ie+1)),4):se.length-ie==2&&Z.put(j(se.substring(ie,ie+2)),7))}},j=function(Z){for(var se=0,ie=0;ie<Z.length;ie+=1)se=10*se+V(Z.charAt(ie));return se},V=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return $},z=function(L){var q=L,$={getMode:function(){return 2},getLength:function(V){return q.length},write:function(V){for(var Z=q,se=0;se+1<Z.length;)V.put(45*j(Z.charAt(se))+j(Z.charAt(se+1)),11),se+=2;se<Z.length&&V.put(j(Z.charAt(se)),6)}},j=function(V){if("0"<=V&&V<="9")return V.charCodeAt(0)-"0".charCodeAt(0);if("A"<=V&&V<="Z")return V.charCodeAt(0)-"A".charCodeAt(0)+10;switch(V){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+V}};return $},Y=function(L){var q=f.stringToBytes(L);return{getMode:function(){return 4},getLength:function($){return q.length},write:function($){for(var j=0;j<q.length;j+=1)$.put(q[j],8)}}},Q=function(L){var q=f.stringToBytesFuncs.SJIS;if(!q)throw"sjis not supported.";(function(j,V){var Z=q("\u53CB");if(Z.length!=2||(Z[0]<<8|Z[1])!=38726)throw"sjis not supported."})();var $=q(L);return{getMode:function(){return 8},getLength:function(j){return~~($.length/2)},write:function(j){for(var V=$,Z=0;Z+1<V.length;){var se=(255&V[Z])<<8|255&V[Z+1];if(33088<=se&&se<=40956)se-=33088;else{if(!(57408<=se&&se<=60351))throw"illegal char at "+(Z+1)+"/"+se;se-=49472}se=192*(se>>>8&255)+(255&se),j.put(se,13),Z+=2}if(Z<V.length)throw"illegal char at "+(Z+1)}}},B=function(){var L=[],q={writeByte:function($){L.push(255&$)},writeShort:function($){q.writeByte($),q.writeByte($>>>8)},writeBytes:function($,j,V){j=j||0,V=V||$.length;for(var Z=0;Z<V;Z+=1)q.writeByte($[Z+j])},writeString:function($){for(var j=0;j<$.length;j+=1)q.writeByte($.charCodeAt(j))},toByteArray:function(){return L},toString:function(){var $="";$+="[";for(var j=0;j<L.length;j+=1)j>0&&($+=","),$+=L[j];return $+"]"}};return q},G=function(L){var q=L,$=0,j=0,V=0,Z={read:function(){for(;V<8;){if($>=q.length){if(V==0)return-1;throw"unexpected end of file./"+V}var ie=q.charAt($);if($+=1,ie=="=")return V=0,-1;ie.match(/^\s$/)||(j=j<<6|se(ie.charCodeAt(0)),V+=6)}var F=j>>>V-8&255;return V-=8,F}},se=function(ie){if(65<=ie&&ie<=90)return ie-65;if(97<=ie&&ie<=122)return ie-97+26;if(48<=ie&&ie<=57)return ie-48+52;if(ie==43)return 62;if(ie==47)return 63;throw"c:"+ie};return Z},re=function(L,q,$){for(var j=function(ne,J){var we=ne,_e=J,Oe=new Array(ne*J),ye={setPixel:function(W,ae,_){Oe[ae*we+W]=_},write:function(W){W.writeString("GIF87a"),W.writeShort(we),W.writeShort(_e),W.writeByte(128),W.writeByte(0),W.writeByte(0),W.writeByte(0),W.writeByte(0),W.writeByte(0),W.writeByte(255),W.writeByte(255),W.writeByte(255),W.writeString(","),W.writeShort(0),W.writeShort(0),W.writeShort(we),W.writeShort(_e),W.writeByte(0);var ae=Be(2);W.writeByte(2);for(var _=0;ae.length-_>255;)W.writeByte(255),W.writeBytes(ae,_,255),_+=255;W.writeByte(ae.length-_),W.writeBytes(ae,_,ae.length-_),W.writeByte(0),W.writeString(";")}},Be=function(W){for(var ae=1<<W,_=1+(1<<W),b=W+1,O=Ie(),te=0;te<ae;te+=1)O.add(String.fromCharCode(te));O.add(String.fromCharCode(ae)),O.add(String.fromCharCode(_));var le,de,M,c=B(),v=(le=c,de=0,M=0,{write:function(p,k){if(p>>>k!=0)throw"length over";for(;de+k>=8;)le.writeByte(255&(p<<de|M)),k-=8-de,p>>>=8-de,M=0,de=0;M|=p<<de,de+=k},flush:function(){de>0&&le.writeByte(M)}});v.write(ae,b);var d=0,m=String.fromCharCode(Oe[d]);for(d+=1;d<Oe.length;){var h=String.fromCharCode(Oe[d]);d+=1,O.contains(m+h)?m+=h:(v.write(O.indexOf(m),b),O.size()<4095&&(O.size()==1<<b&&(b+=1),O.add(m+h)),m=h)}return v.write(O.indexOf(m),b),v.write(_,b),v.flush(),c.toByteArray()},Ie=function(){var W={},ae=0,_={add:function(b){if(_.contains(b))throw"dup key:"+b;W[b]=ae,ae+=1},size:function(){return ae},indexOf:function(b){return W[b]},contains:function(b){return W[b]!==void 0}};return _};return ye}(L,q),V=0;V<q;V+=1)for(var Z=0;Z<L;Z+=1)j.setPixel(Z,V,$(Z,V));var se=B();j.write(se);for(var ie=function(){var ne=0,J=0,we=0,_e="",Oe={},ye=function(Ie){_e+=String.fromCharCode(Be(63&Ie))},Be=function(Ie){if(!(Ie<0)){if(Ie<26)return 65+Ie;if(Ie<52)return Ie-26+97;if(Ie<62)return Ie-52+48;if(Ie==62)return 43;if(Ie==63)return 47}throw"n:"+Ie};return Oe.writeByte=function(Ie){for(ne=ne<<8|255&Ie,J+=8,we+=1;J>=6;)ye(ne>>>J-6),J-=6},Oe.flush=function(){if(J>0&&(ye(ne<<6-J),ne=0,J=0),we%3!=0)for(var Ie=3-we%3,W=0;W<Ie;W+=1)_e+="="},Oe.toString=function(){return _e},Oe}(),F=se.toByteArray(),ee=0;ee<F.length;ee+=1)ie.writeByte(F[ee]);return ie.flush(),"data:image/gif;base64,"+ie};return f}();u.stringToBytesFuncs["UTF-8"]=function(f){return function(x){for(var y=[],w=0;w<x.length;w++){var S=x.charCodeAt(w);S<128?y.push(S):S<2048?y.push(192|S>>6,128|63&S):S<55296||S>=57344?y.push(224|S>>12,128|S>>6&63,128|63&S):(w++,S=65536+((1023&S)<<10|1023&x.charCodeAt(w)),y.push(240|S>>18,128|S>>12&63,128|S>>6&63,128|63&S))}return y}(f)},(l=typeof(s=function(){return u})=="function"?s.apply(o,[]):s)===void 0||(i.exports=l)},796:(i,o,s)=>{s.d(o,{default:()=>de});var l=function(){return(l=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)},u=function(){for(var M=0,c=0,v=arguments.length;c<v;c++)M+=arguments[c].length;var d=Array(M),m=0;for(c=0;c<v;c++)for(var h=arguments[c],p=0,k=h.length;p<k;p++,m++)d[m]=h[p];return d},f=function(M){return!!M&&typeof M=="object"&&!Array.isArray(M)};function x(M){for(var c=[],v=1;v<arguments.length;v++)c[v-1]=arguments[v];if(!c.length)return M;var d=c.shift();return d!==void 0&&f(M)&&f(d)?(M=l({},M),Object.keys(d).forEach(function(m){var h=M[m],p=d[m];Array.isArray(h)&&Array.isArray(p)?M[m]=p:f(h)&&f(p)?M[m]=x(Object.assign({},h),p):M[m]=p}),x.apply(void 0,u([M],c))):M}function y(M,c){var v=document.createElement("a");v.download=c,v.href=M,document.body.appendChild(v),v.click(),document.body.removeChild(v)}function w(M){var c=M.originalHeight,v=M.originalWidth,d=M.maxHiddenDots,m=M.maxHiddenAxisDots,h=M.dotSize,p={x:0,y:0},k={x:0,y:0};if(c<=0||v<=0||d<=0||h<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var R=c/v;return p.x=Math.floor(Math.sqrt(d/R)),p.x<=0&&(p.x=1),m&&m<p.x&&(p.x=m),p.x%2==0&&p.x--,k.x=p.x*h,p.y=1+2*Math.ceil((p.x*R-1)/2),k.y=Math.round(k.x*R),(p.y*p.x>d||m&&m<p.y)&&(m&&m<p.y?(p.y=m,p.y%2==0&&p.x--):p.y-=2,k.y=p.y*h,p.x=1+2*Math.ceil((p.y/R-1)/2),k.x=Math.round(k.y/R)),{height:k.y,width:k.x,hideYDots:p.y,hideXDots:p.x}}const S={L:.07,M:.15,Q:.25,H:.3},T="dots",N="rounded",C="classy",E="classy-rounded",A="square",I="extra-rounded";var D=function(){return(D=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const P=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case T:h=this._drawDot;break;case C:h=this._drawClassy;break;case E:h=this._drawClassyRounded;break;case N:h=this._drawRounded;break;case I:h=this._drawExtraRounded;break;case A:default:h=this._drawSquare}h.call(this,{x:c,y:v,size:d,context:p,getNeighbor:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._basicSideRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,Math.PI/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerExtraRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2)}}))},M.prototype._basicCornersRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(0,v/2),d.arc(0,0,v/2,Math.PI/2,Math.PI),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornersExtraRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.arc(v/2,-v/2,v,Math.PI/2,Math.PI)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context;this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context;this._basicSquare({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0,K=k+R+U+H;if(K!==0)if(K>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(K===2){var X=0;return k&&U?X=Math.PI/2:U&&R?X=Math.PI:R&&H&&(X=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:X})}if(K===1)return X=0,U?X=Math.PI/2:R?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,context:h,rotation:X})}else this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0,K=k+R+U+H;if(K!==0)if(K>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(K===2){var X=0;return k&&U?X=Math.PI/2:U&&R?X=Math.PI:R&&H&&(X=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:X})}if(K===1)return X=0,U?X=Math.PI/2:R?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,context:h,rotation:X})}else this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawClassy=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0;k+R+U+H!==0?k||U?R||H?this._basicSquare({x:v,y:d,size:m,context:h,rotation:0}):this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0;k+R+U+H!==0?k||U?R||H?this._basicSquare({x:v,y:d,size:m,context:h,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2})},M}(),z="square",Y="extra-rounded";var Q=function(){return(Q=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const B=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case z:h=this._drawSquare;break;case Y:h=this._drawExtraRounded;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,context:p,rotation:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI),d.arc(0,0,v/2-m,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.rect(-v/2,-v/2,v,v),d.rect(-v/2+m,-v/2+m,v-2*m,v-2*m)}}))},M.prototype._basicExtraRounded=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.arc(-m,-m,2.5*m,Math.PI,-Math.PI/2),d.lineTo(m,-3.5*m),d.arc(m,-m,2.5*m,-Math.PI/2,0),d.lineTo(3.5*m,-m),d.arc(m,m,2.5*m,0,Math.PI/2),d.lineTo(-m,3.5*m),d.arc(-m,m,2.5*m,Math.PI/2,Math.PI),d.lineTo(-3.5*m,-m),d.arc(-m,-m,1.5*m,Math.PI,-Math.PI/2),d.lineTo(m,-2.5*m),d.arc(m,-m,1.5*m,-Math.PI/2,0),d.lineTo(2.5*m,-m),d.arc(m,m,1.5*m,0,Math.PI/2),d.lineTo(-m,2.5*m),d.arc(-m,m,1.5*m,Math.PI/2,Math.PI),d.lineTo(-2.5*m,-m)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicDot({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicSquare({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicExtraRounded({x:v,y:d,size:m,context:h,rotation:p})},M}(),G="square";var re=function(){return(re=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const L=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case G:h=this._drawSquare;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,context:p,rotation:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context;this._rotateFigure(re(re({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context;this._rotateFigure(re(re({},c),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicDot({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicSquare({x:v,y:d,size:m,context:h,rotation:p})},M}(),q="radial";var $=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],j=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const V=function(){function M(c){this._canvas=document.createElement("canvas"),this._canvas.width=c.width,this._canvas.height=c.height,this._options=c}return Object.defineProperty(M.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),M.prototype.getCanvas=function(){return this._canvas},M.prototype.clear=function(){var c=this.context;c&&c.clearRect(0,0,this._canvas.width,this._canvas.height)},M.prototype.drawQR=function(c){return v=this,d=void 0,h=function(){var p,k,R,U,H,K,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,xe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:$e(0),throw:$e(1),return:$e(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function $e(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return xe.label++,{value:ge[1],done:!1};case 5:xe.label++,be=ge[1],ge=[0];continue;case 7:ge=xe.ops.pop(),xe.trys.pop();continue;default:if(!((ce=(ce=xe.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){xe=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){xe.label=ge[1];break}if(ge[0]===6&&xe.label<ce[1]){xe.label=ce[1],ce=ge;break}if(ce&&xe.label<ce[2]){xe.label=ce[2],xe.ops.push(ge);break}ce[2]&&xe.ops.pop(),xe.trys.pop();continue}ge=Se.call(ve,xe)}catch(nt){ge=[6,nt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,mt])}}}(this,function(ve){switch(ve.label){case 0:return p=c.getModuleCount(),k=Math.min(this._options.width,this._options.height)-2*this._options.margin,R=Math.floor(k/p),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=c,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,K=H.imageOptions,X=H.qrOptions,oe=K.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:R}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Se,Ee){var be,ce,Ve,xe,$e,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Se>=(p-U.hideXDots)/2&&Se<(p+U.hideXDots)/2&&Ee>=(p-U.hideYDots)/2&&Ee<(p+U.hideYDots)/2||((be=$[Se])===null||be===void 0?void 0:be[Ee])||((ce=$[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=$[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((xe=j[Se])===null||xe===void 0?void 0:xe[Ee])||(($e=j[Se-p+7])===null||$e===void 0?void 0:$e[Ee])||((Qe=j[Se])===null||Qe===void 0?void 0:Qe[Ee-p+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:p,dotSize:R}),[2]}})},new((m=void 0)||(m=Promise))(function(p,k){function R(K){try{H(h.next(K))}catch(X){k(X)}}function U(K){try{H(h.throw(K))}catch(X){k(X)}}function H(K){var X;K.done?p(K.value):(X=K.value,X instanceof m?X:new m(function(oe){oe(X)})).then(R,U)}H((h=h.apply(v,d||[])).next())});var v,d,m,h},M.prototype.drawBackground=function(){var c=this.context,v=this._options;if(c){if(v.backgroundOptions.gradient){var d=v.backgroundOptions.gradient,m=this._createGradient({context:c,options:d,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});d.colorStops.forEach(function(h){var p=h.offset,k=h.color;m.addColorStop(p,k)}),c.fillStyle=m}else v.backgroundOptions.color&&(c.fillStyle=v.backgroundOptions.color);c.fillRect(0,0,this._canvas.width,this._canvas.height)}},M.prototype.drawDots=function(c){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var m=this._options,h=this._qr.getModuleCount();if(h>m.width||h>m.height)throw"The canvas is too small.";var p=Math.min(m.width,m.height)-2*m.margin,k=Math.floor(p/h),R=Math.floor((m.width-h*k)/2),U=Math.floor((m.height-h*k)/2),H=new P({context:d,type:m.dotsOptions.type});d.beginPath();for(var K=function(ve){for(var Se=function(be){return c&&!c(ve,be)?"continue":X._qr.isDark(ve,be)?void H.draw(R+ve*k,U+be*k,k,function(ce,Ve){return!(ve+ce<0||be+Ve<0||ve+ce>=h||be+Ve>=h)&&!(c&&!c(ve+ce,be+Ve))&&!!v._qr&&v._qr.isDark(ve+ce,be+Ve)}):"continue"},Ee=0;Ee<h;Ee++)Se(Ee)},X=this,oe=0;oe<h;oe++)K(oe);if(m.dotsOptions.gradient){var fe=m.dotsOptions.gradient,pe=this._createGradient({context:d,options:fe,additionalRotation:0,x:R,y:U,size:h*k});fe.colorStops.forEach(function(ve){var Se=ve.offset,Ee=ve.color;pe.addColorStop(Se,Ee)}),d.fillStyle=d.strokeStyle=pe}else m.dotsOptions.color&&(d.fillStyle=d.strokeStyle=m.dotsOptions.color);d.fill("evenodd")},M.prototype.drawCorners=function(c){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var m=this._options,h=this._qr.getModuleCount(),p=Math.min(m.width,m.height)-2*m.margin,k=Math.floor(p/h),R=7*k,U=3*k,H=Math.floor((m.width-h*k)/2),K=Math.floor((m.height-h*k)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(X){var oe,fe,pe,ve,Se,Ee,be,ce,Ve,xe,$e=X[0],Qe=X[1],mt=X[2];if(!c||c($e,Qe)){var ge=H+$e*k*(h-7),nt=K+Qe*k*(h-7);if(!((oe=m.cornersSquareOptions)===null||oe===void 0)&&oe.type){var Ht=new B({context:d,type:(fe=m.cornersSquareOptions)===null||fe===void 0?void 0:fe.type});d.beginPath(),Ht.draw(ge,nt,R,mt)}else{var Tt=new P({context:d,type:m.dotsOptions.type});d.beginPath();for(var kt=function(Ye){for(var Ut=function(yt){if(!(!((pe=$[Ye])===null||pe===void 0)&&pe[yt]))return"continue";Tt.draw(ge+Ye*k,nt+yt*k,k,function(_r,Sr){var bt;return!!(!((bt=$[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])})},st=0;st<$[Ye].length;st++)Ut(st)},At=0;At<$.length;At++)kt(At)}if(!((ve=m.cornersSquareOptions)===null||ve===void 0)&&ve.gradient){var pt=m.cornersSquareOptions.gradient,ct=v._createGradient({context:d,options:pt,additionalRotation:mt,x:ge,y:nt,size:R});pt.colorStops.forEach(function(Ye){var Ut=Ye.offset,st=Ye.color;ct.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=ct}else!((Se=m.cornersSquareOptions)===null||Se===void 0)&&Se.color&&(d.fillStyle=d.strokeStyle=m.cornersSquareOptions.color);if(d.fill("evenodd"),(Ee=m.cornersDotOptions)===null||Ee===void 0?void 0:Ee.type){var ut=new L({context:d,type:(be=m.cornersDotOptions)===null||be===void 0?void 0:be.type});d.beginPath(),ut.draw(ge+2*k,nt+2*k,U,mt)}else{Tt=new P({context:d,type:m.dotsOptions.type}),d.beginPath();var hr=function(Ye){for(var Ut=function(yt){if(!(!((ce=j[Ye])===null||ce===void 0)&&ce[yt]))return"continue";Tt.draw(ge+Ye*k,nt+yt*k,k,function(_r,Sr){var bt;return!!(!((bt=j[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])})},st=0;st<j[Ye].length;st++)Ut(st)};for(At=0;At<j.length;At++)hr(At)}if(!((Ve=m.cornersDotOptions)===null||Ve===void 0)&&Ve.gradient){pt=m.cornersDotOptions.gradient;var $r=v._createGradient({context:d,options:pt,additionalRotation:mt,x:ge+2*k,y:nt+2*k,size:U});pt.colorStops.forEach(function(Ye){var Ut=Ye.offset,st=Ye.color;$r.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=$r}else!((xe=m.cornersDotOptions)===null||xe===void 0)&&xe.color&&(d.fillStyle=d.strokeStyle=m.cornersDotOptions.color);d.fill("evenodd")}})},M.prototype.loadImage=function(){var c=this;return new Promise(function(v,d){var m=c._options,h=new Image;if(!m.image)return d("Image is not defined");typeof m.imageOptions.crossOrigin=="string"&&(h.crossOrigin=m.imageOptions.crossOrigin),c._image=h,h.onload=function(){v()},h.src=m.image})},M.prototype.drawImage=function(c){var v=c.width,d=c.height,m=c.count,h=c.dotSize,p=this.context;if(!p)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var k=this._options,R=Math.floor((k.width-m*h)/2),U=Math.floor((k.height-m*h)/2),H=R+k.imageOptions.margin+(m*h-v)/2,K=U+k.imageOptions.margin+(m*h-d)/2,X=v-2*k.imageOptions.margin,oe=d-2*k.imageOptions.margin;p.drawImage(this._image,H,K,X<0?0:X,oe<0?0:oe)},M.prototype._createGradient=function(c){var v,d=c.context,m=c.options,h=c.additionalRotation,p=c.x,k=c.y,R=c.size;if(m.type===q)v=d.createRadialGradient(p+R/2,k+R/2,0,p+R/2,k+R/2,R/2);else{var U=((m.rotation||0)+h)%(2*Math.PI),H=(U+2*Math.PI)%(2*Math.PI),K=p+R/2,X=k+R/2,oe=p+R/2,fe=k+R/2;H>=0&&H<=.25*Math.PI||H>1.75*Math.PI&&H<=2*Math.PI?(K-=R/2,X-=R/2*Math.tan(U),oe+=R/2,fe+=R/2*Math.tan(U)):H>.25*Math.PI&&H<=.75*Math.PI?(X-=R/2,K-=R/2/Math.tan(U),fe+=R/2,oe+=R/2/Math.tan(U)):H>.75*Math.PI&&H<=1.25*Math.PI?(K+=R/2,X+=R/2*Math.tan(U),oe-=R/2,fe-=R/2*Math.tan(U)):H>1.25*Math.PI&&H<=1.75*Math.PI&&(X+=R/2,K+=R/2/Math.tan(U),fe-=R/2,oe-=R/2/Math.tan(U)),v=d.createLinearGradient(Math.round(K),Math.round(X),Math.round(oe),Math.round(fe))}return v},M}();var Z=function(){return(Z=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const se=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case T:h=this._drawDot;break;case C:h=this._drawClassy;break;case E:h=this._drawClassyRounded;break;case N:h=this._drawRounded;break;case I:h=this._drawExtraRounded;break;case A:default:h=this._drawSquare}h.call(this,{x:c,y:v,size:d,getNeighbor:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(m+d/2)),v._element.setAttribute("cy",String(h+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(m)),v._element.setAttribute("y",String(h)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._basicSideRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, 0 "+-d)}}))},M.prototype._basicCornerRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._basicCornerExtraRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"a "+d+" "+d+", 0, 0, 0, "+-d+" "+-d)}}))},M.prototype._basicCornersRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+d/2+" "+d/2+"h "+d/2+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size;this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size;this._basicSquare({x:v,y:d,size:m,rotation:0})},M.prototype._drawRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0,H=p+k+R+U;if(H!==0)if(H>2||p&&k||R&&U)this._basicSquare({x:v,y:d,size:m,rotation:0});else{if(H===2){var K=0;return p&&R?K=Math.PI/2:R&&k?K=Math.PI:k&&U&&(K=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,rotation:K})}if(H===1)return K=0,R?K=Math.PI/2:k?K=Math.PI:U&&(K=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:K})}else this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0,H=p+k+R+U;if(H!==0)if(H>2||p&&k||R&&U)this._basicSquare({x:v,y:d,size:m,rotation:0});else{if(H===2){var K=0;return p&&R?K=Math.PI/2:R&&k?K=Math.PI:k&&U&&(K=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:K})}if(H===1)return K=0,R?K=Math.PI/2:k?K=Math.PI:U&&(K=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:K})}else this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawClassy=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0;p+k+R+U!==0?p||R?k||U?this._basicSquare({x:v,y:d,size:m,rotation:0}):this._basicCornerRounded({x:v,y:d,size:m,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0;p+k+R+U!==0?p||R?k||U?this._basicSquare({x:v,y:d,size:m,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,rotation:Math.PI/2})},M}();var ie=function(){return(ie=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const F=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case z:h=this._drawSquare;break;case Y:h=this._drawExtraRounded;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,rotation:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+(m+d/2)+" "+h+"a "+d/2+" "+d/2+" 0 1 0 0.1 0zm 0 "+p+"a "+(d/2-p)+" "+(d/2-p)+" 0 1 1 -0.1 0Z")}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"v "+-d+"zM "+(m+p)+" "+(h+p)+"h "+(d-2*p)+"v "+(d-2*p)+"h "+(2*p-d)+"z")}}))},M.prototype._basicExtraRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+m+" "+(h+2.5*p)+"v "+2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*p+" "+2.5*p+"h "+2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*p+" "+2.5*-p+"v "+-2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*-p+" "+2.5*-p+"h "+-2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*-p+" "+2.5*p+"M "+(m+2.5*p)+" "+(h+p)+"h "+2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*p+" "+1.5*p+"v "+2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*-p+" "+1.5*p+"h "+-2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*-p+" "+1.5*-p+"v "+-2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*p+" "+1.5*-p)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicDot({x:v,y:d,size:m,rotation:h})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicSquare({x:v,y:d,size:m,rotation:h})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicExtraRounded({x:v,y:d,size:m,rotation:h})},M}();var ee=function(){return(ee=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const ne=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case G:h=this._drawSquare;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,rotation:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(ee(ee({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(m+d/2)),v._element.setAttribute("cy",String(h+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(ee(ee({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(m)),v._element.setAttribute("y",String(h)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicDot({x:v,y:d,size:m,rotation:h})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicSquare({x:v,y:d,size:m,rotation:h})},M}();var J=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],we=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _e=function(){function M(c){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(c.width)),this._element.setAttribute("height",String(c.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=c}return Object.defineProperty(M.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),M.prototype.getElement=function(){return this._element},M.prototype.clear=function(){var c,v=this._element;this._element=v.cloneNode(!1),(c=v==null?void 0:v.parentNode)===null||c===void 0||c.replaceChild(this._element,v),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},M.prototype.drawQR=function(c){return v=this,d=void 0,h=function(){var p,k,R,U,H,K,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,xe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:$e(0),throw:$e(1),return:$e(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function $e(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return xe.label++,{value:ge[1],done:!1};case 5:xe.label++,be=ge[1],ge=[0];continue;case 7:ge=xe.ops.pop(),xe.trys.pop();continue;default:if(!((ce=(ce=xe.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){xe=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){xe.label=ge[1];break}if(ge[0]===6&&xe.label<ce[1]){xe.label=ce[1],ce=ge;break}if(ce&&xe.label<ce[2]){xe.label=ce[2],xe.ops.push(ge);break}ce[2]&&xe.ops.pop(),xe.trys.pop();continue}ge=Se.call(ve,xe)}catch(nt){ge=[6,nt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,mt])}}}(this,function(ve){switch(ve.label){case 0:return p=c.getModuleCount(),k=Math.min(this._options.width,this._options.height)-2*this._options.margin,R=Math.floor(k/p),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=c,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,K=H.imageOptions,X=H.qrOptions,oe=K.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:R}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Se,Ee){var be,ce,Ve,xe,$e,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Se>=(p-U.hideXDots)/2&&Se<(p+U.hideXDots)/2&&Ee>=(p-U.hideYDots)/2&&Ee<(p+U.hideYDots)/2||((be=J[Se])===null||be===void 0?void 0:be[Ee])||((ce=J[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=J[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((xe=we[Se])===null||xe===void 0?void 0:xe[Ee])||(($e=we[Se-p+7])===null||$e===void 0?void 0:$e[Ee])||((Qe=we[Se])===null||Qe===void 0?void 0:Qe[Ee-p+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:p,dotSize:R}),[2]}})},new((m=void 0)||(m=Promise))(function(p,k){function R(K){try{H(h.next(K))}catch(X){k(X)}}function U(K){try{H(h.throw(K))}catch(X){k(X)}}function H(K){var X;K.done?p(K.value):(X=K.value,X instanceof m?X:new m(function(oe){oe(X)})).then(R,U)}H((h=h.apply(v,d||[])).next())});var v,d,m,h},M.prototype.drawBackground=function(){var c,v,d=this._element,m=this._options;if(d){var h=(c=m.backgroundOptions)===null||c===void 0?void 0:c.gradient,p=(v=m.backgroundOptions)===null||v===void 0?void 0:v.color;(h||p)&&this._createColor({options:h,color:p,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:"background-color"})}},M.prototype.drawDots=function(c){var v,d,m=this;if(!this._qr)throw"QR code is not defined";var h=this._options,p=this._qr.getModuleCount();if(p>h.width||p>h.height)throw"The canvas is too small.";var k=Math.min(h.width,h.height)-2*h.margin,R=Math.floor(k/p),U=Math.floor((h.width-p*R)/2),H=Math.floor((h.height-p*R)/2),K=new se({svg:this._element,type:h.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(v=h.dotsOptions)===null||v===void 0?void 0:v.gradient,color:h.dotsOptions.color,additionalRotation:0,x:U,y:H,height:p*R,width:p*R,name:"dot-color"});for(var X=function(pe){for(var ve=function(Ee){return c&&!c(pe,Ee)?"continue":!((d=oe._qr)===null||d===void 0)&&d.isDark(pe,Ee)?(K.draw(U+pe*R,H+Ee*R,R,function(be,ce){return!(pe+be<0||Ee+ce<0||pe+be>=p||Ee+ce>=p)&&!(c&&!c(pe+be,Ee+ce))&&!!m._qr&&m._qr.isDark(pe+be,Ee+ce)}),void(K._element&&oe._dotsClipPath&&oe._dotsClipPath.appendChild(K._element))):"continue"},Se=0;Se<p;Se++)ve(Se)},oe=this,fe=0;fe<p;fe++)X(fe)},M.prototype.drawCorners=function(){var c=this;if(!this._qr)throw"QR code is not defined";var v=this._element,d=this._options;if(!v)throw"Element code is not defined";var m=this._qr.getModuleCount(),h=Math.min(d.width,d.height)-2*d.margin,p=Math.floor(h/m),k=7*p,R=3*p,U=Math.floor((d.width-m*p)/2),H=Math.floor((d.height-m*p)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(K){var X,oe,fe,pe,ve,Se,Ee,be,ce,Ve,xe,$e,Qe=K[0],mt=K[1],ge=K[2],nt=U+Qe*p*(m-7),Ht=H+mt*p*(m-7),Tt=c._dotsClipPath,kt=c._dotsClipPath;if((((X=d.cornersSquareOptions)===null||X===void 0?void 0:X.gradient)||((oe=d.cornersSquareOptions)===null||oe===void 0?void 0:oe.color))&&((Tt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Qe+"-"+mt),c._defs.appendChild(Tt),c._cornersSquareClipPath=c._cornersDotClipPath=kt=Tt,c._createColor({options:(fe=d.cornersSquareOptions)===null||fe===void 0?void 0:fe.gradient,color:(pe=d.cornersSquareOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:ge,x:nt,y:Ht,height:k,width:k,name:"corners-square-color-"+Qe+"-"+mt})),(ve=d.cornersSquareOptions)===null||ve===void 0?void 0:ve.type){var At=new F({svg:c._element,type:d.cornersSquareOptions.type});At.draw(nt,Ht,k,ge),At._element&&Tt&&Tt.appendChild(At._element)}else for(var pt=new se({svg:c._element,type:d.dotsOptions.type}),ct=function(Ye){for(var Ut=function(yt){if(!(!((Se=J[Ye])===null||Se===void 0)&&Se[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(_r,Sr){var bt;return!!(!((bt=J[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])}),pt._element&&Tt&&Tt.appendChild(pt._element)},st=0;st<J[Ye].length;st++)Ut(st)},ut=0;ut<J.length;ut++)ct(ut);if((((Ee=d.cornersDotOptions)===null||Ee===void 0?void 0:Ee.gradient)||((be=d.cornersDotOptions)===null||be===void 0?void 0:be.color))&&((kt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Qe+"-"+mt),c._defs.appendChild(kt),c._cornersDotClipPath=kt,c._createColor({options:(ce=d.cornersDotOptions)===null||ce===void 0?void 0:ce.gradient,color:(Ve=d.cornersDotOptions)===null||Ve===void 0?void 0:Ve.color,additionalRotation:ge,x:nt+2*p,y:Ht+2*p,height:R,width:R,name:"corners-dot-color-"+Qe+"-"+mt})),(xe=d.cornersDotOptions)===null||xe===void 0?void 0:xe.type){var hr=new ne({svg:c._element,type:d.cornersDotOptions.type});hr.draw(nt+2*p,Ht+2*p,R,ge),hr._element&&kt&&kt.appendChild(hr._element)}else{pt=new se({svg:c._element,type:d.dotsOptions.type});var $r=function(Ye){for(var Ut=function(yt){if(!(!(($e=we[Ye])===null||$e===void 0)&&$e[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(_r,Sr){var bt;return!!(!((bt=we[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])}),pt._element&&kt&&kt.appendChild(pt._element)},st=0;st<we[Ye].length;st++)Ut(st)};for(ut=0;ut<we.length;ut++)$r(ut)}})},M.prototype.loadImage=function(){var c=this;return new Promise(function(v,d){var m=c._options,h=new Image;if(!m.image)return d("Image is not defined");typeof m.imageOptions.crossOrigin=="string"&&(h.crossOrigin=m.imageOptions.crossOrigin),c._image=h,h.onload=function(){v()},h.src=m.image})},M.prototype.drawImage=function(c){var v=c.width,d=c.height,m=c.count,h=c.dotSize,p=this._options,k=Math.floor((p.width-m*h)/2),R=Math.floor((p.height-m*h)/2),U=k+p.imageOptions.margin+(m*h-v)/2,H=R+p.imageOptions.margin+(m*h-d)/2,K=v-2*p.imageOptions.margin,X=d-2*p.imageOptions.margin,oe=document.createElementNS("http://www.w3.org/2000/svg","image");oe.setAttribute("href",p.image||""),oe.setAttribute("x",String(U)),oe.setAttribute("y",String(H)),oe.setAttribute("width",K+"px"),oe.setAttribute("height",X+"px"),this._element.appendChild(oe)},M.prototype._createColor=function(c){var v=c.options,d=c.color,m=c.additionalRotation,h=c.x,p=c.y,k=c.height,R=c.width,U=c.name,H=R>k?R:k,K=document.createElementNS("http://www.w3.org/2000/svg","rect");if(K.setAttribute("x",String(h)),K.setAttribute("y",String(p)),K.setAttribute("height",String(k)),K.setAttribute("width",String(R)),K.setAttribute("clip-path","url('#clip-path-"+U+"')"),v){var X;if(v.type===q)(X=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("fx",String(h+R/2)),X.setAttribute("fy",String(p+k/2)),X.setAttribute("cx",String(h+R/2)),X.setAttribute("cy",String(p+k/2)),X.setAttribute("r",String(H/2));else{var oe=((v.rotation||0)+m)%(2*Math.PI),fe=(oe+2*Math.PI)%(2*Math.PI),pe=h+R/2,ve=p+k/2,Se=h+R/2,Ee=p+k/2;fe>=0&&fe<=.25*Math.PI||fe>1.75*Math.PI&&fe<=2*Math.PI?(pe-=R/2,ve-=k/2*Math.tan(oe),Se+=R/2,Ee+=k/2*Math.tan(oe)):fe>.25*Math.PI&&fe<=.75*Math.PI?(ve-=k/2,pe-=R/2/Math.tan(oe),Ee+=k/2,Se+=R/2/Math.tan(oe)):fe>.75*Math.PI&&fe<=1.25*Math.PI?(pe+=R/2,ve+=k/2*Math.tan(oe),Se-=R/2,Ee-=k/2*Math.tan(oe)):fe>1.25*Math.PI&&fe<=1.75*Math.PI&&(ve+=k/2,pe+=R/2/Math.tan(oe),Ee-=k/2,Se-=R/2/Math.tan(oe)),(X=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("x1",String(Math.round(pe))),X.setAttribute("y1",String(Math.round(ve))),X.setAttribute("x2",String(Math.round(Se))),X.setAttribute("y2",String(Math.round(Ee)))}v.colorStops.forEach(function(be){var ce=be.offset,Ve=be.color,xe=document.createElementNS("http://www.w3.org/2000/svg","stop");xe.setAttribute("offset",100*ce+"%"),xe.setAttribute("stop-color",Ve),X.appendChild(xe)}),K.setAttribute("fill","url('#"+U+"')"),this._defs.appendChild(X)}else d&&K.setAttribute("fill",d);this._element.appendChild(K)},M}(),Oe="canvas";for(var ye={},Be=0;Be<=40;Be++)ye[Be]=Be;const Ie={type:Oe,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ye[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var W=function(){return(W=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};function ae(M){var c=W({},M);if(!c.colorStops||!c.colorStops.length)throw"Field 'colorStops' is required in gradient";return c.rotation?c.rotation=Number(c.rotation):c.rotation=0,c.colorStops=c.colorStops.map(function(v){return W(W({},v),{offset:Number(v.offset)})}),c}function _(M){var c=W({},M);return c.width=Number(c.width),c.height=Number(c.height),c.margin=Number(c.margin),c.imageOptions=W(W({},c.imageOptions),{hideBackgroundDots:Boolean(c.imageOptions.hideBackgroundDots),imageSize:Number(c.imageOptions.imageSize),margin:Number(c.imageOptions.margin)}),c.margin>Math.min(c.width,c.height)&&(c.margin=Math.min(c.width,c.height)),c.dotsOptions=W({},c.dotsOptions),c.dotsOptions.gradient&&(c.dotsOptions.gradient=ae(c.dotsOptions.gradient)),c.cornersSquareOptions&&(c.cornersSquareOptions=W({},c.cornersSquareOptions),c.cornersSquareOptions.gradient&&(c.cornersSquareOptions.gradient=ae(c.cornersSquareOptions.gradient))),c.cornersDotOptions&&(c.cornersDotOptions=W({},c.cornersDotOptions),c.cornersDotOptions.gradient&&(c.cornersDotOptions.gradient=ae(c.cornersDotOptions.gradient))),c.backgroundOptions&&(c.backgroundOptions=W({},c.backgroundOptions),c.backgroundOptions.gradient&&(c.backgroundOptions.gradient=ae(c.backgroundOptions.gradient))),c}var b=s(192),O=s.n(b),te=function(M,c,v,d){return new(v||(v=Promise))(function(m,h){function p(U){try{R(d.next(U))}catch(H){h(H)}}function k(U){try{R(d.throw(U))}catch(H){h(H)}}function R(U){var H;U.done?m(U.value):(H=U.value,H instanceof v?H:new v(function(K){K(H)})).then(p,k)}R((d=d.apply(M,c||[])).next())})},le=function(M,c){var v,d,m,h,p={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return h={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function k(R){return function(U){return function(H){if(v)throw new TypeError("Generator is already executing.");for(;p;)try{if(v=1,d&&(m=2&H[0]?d.return:H[0]?d.throw||((m=d.return)&&m.call(d),0):d.next)&&!(m=m.call(d,H[1])).done)return m;switch(d=0,m&&(H=[2&H[0],m.value]),H[0]){case 0:case 1:m=H;break;case 4:return p.label++,{value:H[1],done:!1};case 5:p.label++,d=H[1],H=[0];continue;case 7:H=p.ops.pop(),p.trys.pop();continue;default:if(!((m=(m=p.trys).length>0&&m[m.length-1])||H[0]!==6&&H[0]!==2)){p=0;continue}if(H[0]===3&&(!m||H[1]>m[0]&&H[1]<m[3])){p.label=H[1];break}if(H[0]===6&&p.label<m[1]){p.label=m[1],m=H;break}if(m&&p.label<m[2]){p.label=m[2],p.ops.push(H);break}m[2]&&p.ops.pop(),p.trys.pop();continue}H=c.call(M,p)}catch(K){H=[6,K],d=0}finally{v=m=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([R,U])}}};const de=function(){function M(c){this._options=c?_(x(Ie,c)):Ie,this.update()}return M._clearContainer=function(c){c&&(c.innerHTML="")},M.prototype._getQRStylingElement=function(c){return c===void 0&&(c="png"),te(this,void 0,void 0,function(){var v,d,m;return le(this,function(h){switch(h.label){case 0:if(!this._qr)throw"QR code is empty";return c.toLowerCase()!=="svg"?[3,2]:(d=void 0,v=void 0,this._svg&&this._svgDrawingPromise?(v=this._svg,d=this._svgDrawingPromise):(v=new _e(this._options),d=v.drawQR(this._qr)),[4,d]);case 1:return h.sent(),[2,v];case 2:return d=void 0,m=void 0,this._canvas&&this._canvasDrawingPromise?(m=this._canvas,d=this._canvasDrawingPromise):(m=new V(this._options),d=m.drawQR(this._qr)),[4,d];case 3:return h.sent(),[2,m]}})})},M.prototype.update=function(c){M._clearContainer(this._container),this._options=c?_(x(this._options,c)):this._options,this._options.data&&(this._qr=O()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(v){switch(!0){case/^[0-9]*$/.test(v):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(v):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Oe?(this._canvas=new V(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new _e(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},M.prototype.append=function(c){if(c){if(typeof c.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Oe?this._canvas&&c.appendChild(this._canvas.getCanvas()):this._svg&&c.appendChild(this._svg.getElement()),this._container=c}},M.prototype.getRawData=function(c){return c===void 0&&(c="png"),te(this,void 0,void 0,function(){var v,d,m;return le(this,function(h){switch(h.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(c)];case 1:return v=h.sent(),c.toLowerCase()==="svg"?(d=new XMLSerializer,m=d.serializeToString(v.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
4
|
-
`+
|
|
5
|
-
`+(
|
|
1
|
+
(function(qe,ue){typeof exports=="object"&&typeof module!="undefined"?ue(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],ue):(qe=typeof globalThis!="undefined"?globalThis:qe||self,ue((qe.agendize=qe.agendize||{},qe.agendize.tools={}),qe.Vue,qe.pinia))})(this,function(qe,ue,Qt){"use strict";var Sg=Object.defineProperty;var Ig=(qe,ue,Qt)=>ue in qe?Sg(qe,ue,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):qe[ue]=Qt;var Xi=(qe,ue,Qt)=>(Ig(qe,typeof ue!="symbol"?ue+"":ue,Qt),Qt);function Wu(t){const e=ue.ref(t.state),n=r=>{e.value=r};return ue.onMounted(()=>{t.subscribe(n)}),ue.onUnmounted(()=>{t.unsubscribe(n)}),ue.readonly(e)}function Gu(t,e=!1){let n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?yn(a)+"/"+yn(r)+"/"+n:n+"-"+yn(r)+"-"+yn(a)+"T"+yn(i)+":"+yn(o)+":"+yn(s)}function yn(t){return t<10?"0"+t:t}function $u(t,e){e.urlPicture.value=void 0,e.pictureAsData.value="",e.filePicture.value=void 0,t&&Qi(t).then(n=>{!n||typeof n=="string"&&(e.pictureAsData.value=n)})}const Qi=t=>new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result),r.onerror=a=>n(a)});function Yu(t,e){let n=new XMLHttpRequest;n.open("get",t),n.responseType="blob",n.onload=function(){let r=new FileReader;r.onload=function(){if(!e&&r.result)return;let a;typeof r.result=="string"?a=r.result:a=Buffer.from(String.fromCharCode(...new Uint8Array(r.result)),"base64").toString(),e(a)},r.readAsDataURL(n.response)},n.send()}function Zu(t){try{return parseInt(t)}catch{return 0}}function Ku(t){return t?t.getFullYear()+"/"+ya(t.getMonth()+1)+"/"+ya(t.getDate()):""}function ya(t,e=2){let n=t+"";for(;n.length<e;)n="0"+n;return n}function Ju(t){let e=document.createElement("div");return e.innerHTML=t,e.textContent}function Xu(t){var e,n;if(t!=null&&t.name){const r=t.name.split(" ");return r.map(a=>a.substring(0,1)).join("").toUpperCase().substring(0,Math.min(2,r.length))}else return((((e=t==null?void 0:t.firstName)==null?void 0:e.substring(0,1))||"")+(((n=t==null?void 0:t.lastName)==null?void 0:n.substring(0,1))||"")+"").toUpperCase()}function Qu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var eo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(self,function(){return(()=>{var n={192:(i,o)=>{var s,c,l=function(){var h=function(R,q){var $=R,V=N[q],j=null,Z=0,se=null,ie=[],F={},ee=function(G,ae){j=function(_){for(var b=new Array(_),L=0;L<_;L+=1){b[L]=new Array(_);for(var te=0;te<_;te+=1)b[L][te]=null}return b}(Z=4*$+17),re(0,0),re(Z-7,0),re(0,Z-7),we(),K(),Me(G,ae),$>=7&&_e(G),se==null&&(se=Ue($,V,ie)),ye(se,ae)},re=function(G,ae){for(var _=-1;_<=7;_+=1)if(!(G+_<=-1||Z<=G+_))for(var b=-1;b<=7;b+=1)ae+b<=-1||Z<=ae+b||(j[G+_][ae+b]=0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4)},K=function(){for(var G=8;G<Z-8;G+=1)j[G][6]==null&&(j[G][6]=G%2==0);for(var ae=8;ae<Z-8;ae+=1)j[6][ae]==null&&(j[6][ae]=ae%2==0)},we=function(){for(var G=k.getPatternPosition($),ae=0;ae<G.length;ae+=1)for(var _=0;_<G.length;_+=1){var b=G[ae],L=G[_];if(j[b][L]==null)for(var te=-2;te<=2;te+=1)for(var le=-2;le<=2;le+=1)j[b+te][L+le]=te==-2||te==2||le==-2||le==2||te==0&&le==0}},_e=function(G){for(var ae=k.getBCHTypeNumber($),_=0;_<18;_+=1){var b=!G&&(ae>>_&1)==1;j[Math.floor(_/3)][_%3+Z-8-3]=b}for(_=0;_<18;_+=1)b=!G&&(ae>>_&1)==1,j[_%3+Z-8-3][Math.floor(_/3)]=b},Me=function(G,ae){for(var _=V<<3|ae,b=k.getBCHTypeInfo(_),L=0;L<15;L+=1){var te=!G&&(b>>L&1)==1;L<6?j[L][8]=te:L<8?j[L+1][8]=te:j[Z-15+L][8]=te}for(L=0;L<15;L+=1)te=!G&&(b>>L&1)==1,L<8?j[8][Z-L-1]=te:L<9?j[8][15-L-1+1]=te:j[8][15-L-1]=te;j[Z-8][8]=!G},ye=function(G,ae){for(var _=-1,b=Z-1,L=7,te=0,le=k.getMaskFunction(ae),de=Z-1;de>0;de-=2)for(de==6&&(de-=1);;){for(var M=0;M<2;M+=1)if(j[b][de-M]==null){var u=!1;te<G.length&&(u=(G[te]>>>L&1)==1),le(b,de-M)&&(u=!u),j[b][de-M]=u,(L-=1)==-1&&(te+=1,L=7)}if((b+=_)<0||Z<=b){b-=_,_=-_;break}}},Ue=function(G,ae,_){for(var b=I.getRSBlocks(G,ae),L=T(),te=0;te<_.length;te+=1){var le=_[te];L.put(le.getMode(),4),L.put(le.getLength(),k.getLengthInBits(le.getMode(),G)),le.write(L)}var de=0;for(te=0;te<b.length;te+=1)de+=b[te].dataCount;if(L.getLengthInBits()>8*de)throw"code length overflow. ("+L.getLengthInBits()+">"+8*de+")";for(L.getLengthInBits()+4<=8*de&&L.put(0,4);L.getLengthInBits()%8!=0;)L.putBit(!1);for(;!(L.getLengthInBits()>=8*de||(L.put(236,8),L.getLengthInBits()>=8*de));)L.put(17,8);return function(M,u){for(var v=0,d=0,p=0,m=new Array(u.length),g=new Array(u.length),A=0;A<u.length;A+=1){var O=u[A].dataCount,U=u[A].totalCount-O;d=Math.max(d,O),p=Math.max(p,U),m[A]=new Array(O);for(var H=0;H<m[A].length;H+=1)m[A][H]=255&M.getBuffer()[H+v];v+=O;var J=k.getErrorCorrectPolynomial(U),X=D(m[A],J.getLength()-1).mod(J);for(g[A]=new Array(J.getLength()-1),H=0;H<g[A].length;H+=1){var oe=H+X.getLength()-g[A].length;g[A][H]=oe>=0?X.getAt(oe):0}}var he=0;for(H=0;H<u.length;H+=1)he+=u[H].totalCount;var pe=new Array(he),ve=0;for(H=0;H<d;H+=1)for(A=0;A<u.length;A+=1)H<m[A].length&&(pe[ve]=m[A][H],ve+=1);for(H=0;H<p;H+=1)for(A=0;A<u.length;A+=1)H<g[A].length&&(pe[ve]=g[A][H],ve+=1);return pe}(L,b)};F.addData=function(G,ae){var _=null;switch(ae=ae||"Byte"){case"Numeric":_=P(G);break;case"Alphanumeric":_=z(G);break;case"Byte":_=Y(G);break;case"Kanji":_=Q(G);break;default:throw"mode:"+ae}ie.push(_),se=null},F.isDark=function(G,ae){if(G<0||Z<=G||ae<0||Z<=ae)throw G+","+ae;return j[G][ae]},F.getModuleCount=function(){return Z},F.make=function(){if($<1){for(var G=1;G<40;G++){for(var ae=I.getRSBlocks(G,V),_=T(),b=0;b<ie.length;b++){var L=ie[b];_.put(L.getMode(),4),_.put(L.getLength(),k.getLengthInBits(L.getMode(),G)),L.write(_)}var te=0;for(b=0;b<ae.length;b++)te+=ae[b].dataCount;if(_.getLengthInBits()<=8*te)break}$=G}ee(!1,function(){for(var le=0,de=0,M=0;M<8;M+=1){ee(!0,M);var u=k.getLostPoint(F);(M==0||le>u)&&(le=u,de=M)}return de}())},F.createTableTag=function(G,ae){G=G||2;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+(ae=ae===void 0?4*G:ae)+"px;",_+='">',_+="<tbody>";for(var b=0;b<F.getModuleCount();b+=1){_+="<tr>";for(var L=0;L<F.getModuleCount();L+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+G+"px;",_+=" height: "+G+"px;",_+=" background-color: ",_+=F.isDark(b,L)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return(_+="</tbody>")+"</table>"},F.createSvgTag=function(G,ae,_,b){var L={};typeof arguments[0]=="object"&&(G=(L=arguments[0]).cellSize,ae=L.margin,_=L.alt,b=L.title),G=G||2,ae=ae===void 0?4*G:ae,(_=typeof _=="string"?{text:_}:_||{}).text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,(b=typeof b=="string"?{text:b}:b||{}).text=b.text||null,b.id=b.text?b.id||"qrcode-title":null;var te,le,de,M,u=F.getModuleCount()*G+2*ae,v="";for(M="l"+G+",0 0,"+G+" -"+G+",0 0,-"+G+"z ",v+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',v+=L.scalable?"":' width="'+u+'px" height="'+u+'px"',v+=' viewBox="0 0 '+u+" "+u+'" ',v+=' preserveAspectRatio="xMinYMin meet"',v+=b.text||_.text?' role="img" aria-labelledby="'+ke([b.id,_.id].join(" ").trim())+'"':"",v+=">",v+=b.text?'<title id="'+ke(b.id)+'">'+ke(b.text)+"</title>":"",v+=_.text?'<description id="'+ke(_.id)+'">'+ke(_.text)+"</description>":"",v+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',v+='<path d="',le=0;le<F.getModuleCount();le+=1)for(de=le*G+ae,te=0;te<F.getModuleCount();te+=1)F.isDark(le,te)&&(v+="M"+(te*G+ae)+","+de+M);return(v+='" stroke="transparent" fill="black"/>')+"</svg>"},F.createDataURL=function(G,ae){G=G||2,ae=ae===void 0?4*G:ae;var _=F.getModuleCount()*G+2*ae,b=ae,L=_-ae;return ne(_,_,function(te,le){if(b<=te&&te<L&&b<=le&&le<L){var de=Math.floor((te-b)/G),M=Math.floor((le-b)/G);return F.isDark(M,de)?0:1}return 1})},F.createImgTag=function(G,ae,_){G=G||2,ae=ae===void 0?4*G:ae;var b=F.getModuleCount()*G+2*ae,L="";return L+="<img",L+=' src="',L+=F.createDataURL(G,ae),L+='"',L+=' width="',L+=b,L+='"',L+=' height="',L+=b,L+='"',_&&(L+=' alt="',L+=ke(_),L+='"'),L+"/>"};var ke=function(G){for(var ae="",_=0;_<G.length;_+=1){var b=G.charAt(_);switch(b){case"<":ae+="<";break;case">":ae+=">";break;case"&":ae+="&";break;case'"':ae+=""";break;default:ae+=b}}return ae};return F.createASCII=function(G,ae){if((G=G||1)<2)return function(m){m=m===void 0?2:m;var g,A,O,U,H,J=1*F.getModuleCount()+2*m,X=m,oe=J-m,he={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},pe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ve="";for(g=0;g<J;g+=2){for(O=Math.floor((g-X)/1),U=Math.floor((g+1-X)/1),A=0;A<J;A+=1)H="\u2588",X<=A&&A<oe&&X<=g&&g<oe&&F.isDark(O,Math.floor((A-X)/1))&&(H=" "),X<=A&&A<oe&&X<=g+1&&g+1<oe&&F.isDark(U,Math.floor((A-X)/1))?H+=" ":H+="\u2588",ve+=m<1&&g+1>=oe?pe[H]:he[H];ve+=`
|
|
2
|
+
`}return J%2&&m>0?ve.substring(0,ve.length-J-1)+Array(J+1).join("\u2580"):ve.substring(0,ve.length-1)}(ae);G-=1,ae=ae===void 0?2*G:ae;var _,b,L,te,le=F.getModuleCount()*G+2*ae,de=ae,M=le-ae,u=Array(G+1).join("\u2588\u2588"),v=Array(G+1).join(" "),d="",p="";for(_=0;_<le;_+=1){for(L=Math.floor((_-de)/G),p="",b=0;b<le;b+=1)te=1,de<=b&&b<M&&de<=_&&_<M&&F.isDark(L,Math.floor((b-de)/G))&&(te=0),p+=te?u:v;for(L=0;L<G;L+=1)d+=p+`
|
|
3
|
+
`}return d.substring(0,d.length-1)},F.renderTo2dContext=function(G,ae){ae=ae||2;for(var _=F.getModuleCount(),b=0;b<_;b++)for(var L=0;L<_;L++)G.fillStyle=F.isDark(b,L)?"black":"white",G.fillRect(b*ae,L*ae,ae,ae)},F};h.stringToBytes=(h.stringToBytesFuncs={default:function(R){for(var q=[],$=0;$<R.length;$+=1){var V=R.charCodeAt($);q.push(255&V)}return q}}).default,h.createStringToBytes=function(R,q){var $=function(){for(var j=W(R),Z=function(){var K=j.read();if(K==-1)throw"eof";return K},se=0,ie={};;){var F=j.read();if(F==-1)break;var ee=Z(),re=Z()<<8|Z();ie[String.fromCharCode(F<<8|ee)]=re,se+=1}if(se!=q)throw se+" != "+q;return ie}(),V="?".charCodeAt(0);return function(j){for(var Z=[],se=0;se<j.length;se+=1){var ie=j.charCodeAt(se);if(ie<128)Z.push(ie);else{var F=$[j.charAt(se)];typeof F=="number"?(255&F)==F?Z.push(F):(Z.push(F>>>8),Z.push(255&F)):Z.push(V)}}return Z}};var x,y,w,S,C,N={L:1,M:0,Q:3,H:2},k=(x=[[],[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]],y=1335,w=7973,C=function(R){for(var q=0;R!=0;)q+=1,R>>>=1;return q},(S={}).getBCHTypeInfo=function(R){for(var q=R<<10;C(q)-C(y)>=0;)q^=y<<C(q)-C(y);return 21522^(R<<10|q)},S.getBCHTypeNumber=function(R){for(var q=R<<12;C(q)-C(w)>=0;)q^=w<<C(q)-C(w);return R<<12|q},S.getPatternPosition=function(R){return x[R-1]},S.getMaskFunction=function(R){switch(R){case 0:return function(q,$){return(q+$)%2==0};case 1:return function(q,$){return q%2==0};case 2:return function(q,$){return $%3==0};case 3:return function(q,$){return(q+$)%3==0};case 4:return function(q,$){return(Math.floor(q/2)+Math.floor($/3))%2==0};case 5:return function(q,$){return q*$%2+q*$%3==0};case 6:return function(q,$){return(q*$%2+q*$%3)%2==0};case 7:return function(q,$){return(q*$%3+(q+$)%2)%2==0};default:throw"bad maskPattern:"+R}},S.getErrorCorrectPolynomial=function(R){for(var q=D([1],0),$=0;$<R;$+=1)q=q.multiply(D([1,E.gexp($)],0));return q},S.getLengthInBits=function(R,q){if(1<=q&&q<10)switch(R){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+R}else if(q<27)switch(R){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+R}else{if(!(q<41))throw"type:"+q;switch(R){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+R}}},S.getLostPoint=function(R){for(var q=R.getModuleCount(),$=0,V=0;V<q;V+=1)for(var j=0;j<q;j+=1){for(var Z=0,se=R.isDark(V,j),ie=-1;ie<=1;ie+=1)if(!(V+ie<0||q<=V+ie))for(var F=-1;F<=1;F+=1)j+F<0||q<=j+F||ie==0&&F==0||se==R.isDark(V+ie,j+F)&&(Z+=1);Z>5&&($+=3+Z-5)}for(V=0;V<q-1;V+=1)for(j=0;j<q-1;j+=1){var ee=0;R.isDark(V,j)&&(ee+=1),R.isDark(V+1,j)&&(ee+=1),R.isDark(V,j+1)&&(ee+=1),R.isDark(V+1,j+1)&&(ee+=1),ee!=0&&ee!=4||($+=3)}for(V=0;V<q;V+=1)for(j=0;j<q-6;j+=1)R.isDark(V,j)&&!R.isDark(V,j+1)&&R.isDark(V,j+2)&&R.isDark(V,j+3)&&R.isDark(V,j+4)&&!R.isDark(V,j+5)&&R.isDark(V,j+6)&&($+=40);for(j=0;j<q;j+=1)for(V=0;V<q-6;V+=1)R.isDark(V,j)&&!R.isDark(V+1,j)&&R.isDark(V+2,j)&&R.isDark(V+3,j)&&R.isDark(V+4,j)&&!R.isDark(V+5,j)&&R.isDark(V+6,j)&&($+=40);var re=0;for(j=0;j<q;j+=1)for(V=0;V<q;V+=1)R.isDark(V,j)&&(re+=1);return $+Math.abs(100*re/q/q-50)/5*10},S),E=function(){for(var R=new Array(256),q=new Array(256),$=0;$<8;$+=1)R[$]=1<<$;for($=8;$<256;$+=1)R[$]=R[$-4]^R[$-5]^R[$-6]^R[$-8];for($=0;$<255;$+=1)q[R[$]]=$;return{glog:function(V){if(V<1)throw"glog("+V+")";return q[V]},gexp:function(V){for(;V<0;)V+=255;for(;V>=256;)V-=255;return R[V]}}}();function D(R,q){if(R.length===void 0)throw R.length+"/"+q;var $=function(){for(var j=0;j<R.length&&R[j]==0;)j+=1;for(var Z=new Array(R.length-j+q),se=0;se<R.length-j;se+=1)Z[se]=R[se+j];return Z}(),V={getAt:function(j){return $[j]},getLength:function(){return $.length},multiply:function(j){for(var Z=new Array(V.getLength()+j.getLength()-1),se=0;se<V.getLength();se+=1)for(var ie=0;ie<j.getLength();ie+=1)Z[se+ie]^=E.gexp(E.glog(V.getAt(se))+E.glog(j.getAt(ie)));return D(Z,0)},mod:function(j){if(V.getLength()-j.getLength()<0)return V;for(var Z=E.glog(V.getAt(0))-E.glog(j.getAt(0)),se=new Array(V.getLength()),ie=0;ie<V.getLength();ie+=1)se[ie]=V.getAt(ie);for(ie=0;ie<j.getLength();ie+=1)se[ie]^=E.gexp(E.glog(j.getAt(ie))+Z);return D(se,0).mod(j)}};return V}var I=function(){var R=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],q=function(V,j){var Z={};return Z.totalCount=V,Z.dataCount=j,Z},$={getRSBlocks:function(V,j){var Z=function(_e,Me){switch(Me){case N.L:return R[4*(_e-1)+0];case N.M:return R[4*(_e-1)+1];case N.Q:return R[4*(_e-1)+2];case N.H:return R[4*(_e-1)+3];default:return}}(V,j);if(Z===void 0)throw"bad rs block @ typeNumber:"+V+"/errorCorrectionLevel:"+j;for(var se=Z.length/3,ie=[],F=0;F<se;F+=1)for(var ee=Z[3*F+0],re=Z[3*F+1],K=Z[3*F+2],we=0;we<ee;we+=1)ie.push(q(re,K));return ie}};return $}(),T=function(){var R=[],q=0,$={getBuffer:function(){return R},getAt:function(V){var j=Math.floor(V/8);return(R[j]>>>7-V%8&1)==1},put:function(V,j){for(var Z=0;Z<j;Z+=1)$.putBit((V>>>j-Z-1&1)==1)},getLengthInBits:function(){return q},putBit:function(V){var j=Math.floor(q/8);R.length<=j&&R.push(0),V&&(R[j]|=128>>>q%8),q+=1}};return $},P=function(R){var q=R,$={getMode:function(){return 1},getLength:function(Z){return q.length},write:function(Z){for(var se=q,ie=0;ie+2<se.length;)Z.put(V(se.substring(ie,ie+3)),10),ie+=3;ie<se.length&&(se.length-ie==1?Z.put(V(se.substring(ie,ie+1)),4):se.length-ie==2&&Z.put(V(se.substring(ie,ie+2)),7))}},V=function(Z){for(var se=0,ie=0;ie<Z.length;ie+=1)se=10*se+j(Z.charAt(ie));return se},j=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return $},z=function(R){var q=R,$={getMode:function(){return 2},getLength:function(j){return q.length},write:function(j){for(var Z=q,se=0;se+1<Z.length;)j.put(45*V(Z.charAt(se))+V(Z.charAt(se+1)),11),se+=2;se<Z.length&&j.put(V(Z.charAt(se)),6)}},V=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-"0".charCodeAt(0);if("A"<=j&&j<="Z")return j.charCodeAt(0)-"A".charCodeAt(0)+10;switch(j){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+j}};return $},Y=function(R){var q=h.stringToBytes(R);return{getMode:function(){return 4},getLength:function($){return q.length},write:function($){for(var V=0;V<q.length;V+=1)$.put(q[V],8)}}},Q=function(R){var q=h.stringToBytesFuncs.SJIS;if(!q)throw"sjis not supported.";(function(V,j){var Z=q("\u53CB");if(Z.length!=2||(Z[0]<<8|Z[1])!=38726)throw"sjis not supported."})();var $=q(R);return{getMode:function(){return 8},getLength:function(V){return~~($.length/2)},write:function(V){for(var j=$,Z=0;Z+1<j.length;){var se=(255&j[Z])<<8|255&j[Z+1];if(33088<=se&&se<=40956)se-=33088;else{if(!(57408<=se&&se<=60351))throw"illegal char at "+(Z+1)+"/"+se;se-=49472}se=192*(se>>>8&255)+(255&se),V.put(se,13),Z+=2}if(Z<j.length)throw"illegal char at "+(Z+1)}}},B=function(){var R=[],q={writeByte:function($){R.push(255&$)},writeShort:function($){q.writeByte($),q.writeByte($>>>8)},writeBytes:function($,V,j){V=V||0,j=j||$.length;for(var Z=0;Z<j;Z+=1)q.writeByte($[Z+V])},writeString:function($){for(var V=0;V<$.length;V+=1)q.writeByte($.charCodeAt(V))},toByteArray:function(){return R},toString:function(){var $="";$+="[";for(var V=0;V<R.length;V+=1)V>0&&($+=","),$+=R[V];return $+"]"}};return q},W=function(R){var q=R,$=0,V=0,j=0,Z={read:function(){for(;j<8;){if($>=q.length){if(j==0)return-1;throw"unexpected end of file./"+j}var ie=q.charAt($);if($+=1,ie=="=")return j=0,-1;ie.match(/^\s$/)||(V=V<<6|se(ie.charCodeAt(0)),j+=6)}var F=V>>>j-8&255;return j-=8,F}},se=function(ie){if(65<=ie&&ie<=90)return ie-65;if(97<=ie&&ie<=122)return ie-97+26;if(48<=ie&&ie<=57)return ie-48+52;if(ie==43)return 62;if(ie==47)return 63;throw"c:"+ie};return Z},ne=function(R,q,$){for(var V=function(re,K){var we=re,_e=K,Me=new Array(re*K),ye={setPixel:function(G,ae,_){Me[ae*we+G]=_},write:function(G){G.writeString("GIF87a"),G.writeShort(we),G.writeShort(_e),G.writeByte(128),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(255),G.writeByte(255),G.writeByte(255),G.writeString(","),G.writeShort(0),G.writeShort(0),G.writeShort(we),G.writeShort(_e),G.writeByte(0);var ae=Ue(2);G.writeByte(2);for(var _=0;ae.length-_>255;)G.writeByte(255),G.writeBytes(ae,_,255),_+=255;G.writeByte(ae.length-_),G.writeBytes(ae,_,ae.length-_),G.writeByte(0),G.writeString(";")}},Ue=function(G){for(var ae=1<<G,_=1+(1<<G),b=G+1,L=ke(),te=0;te<ae;te+=1)L.add(String.fromCharCode(te));L.add(String.fromCharCode(ae)),L.add(String.fromCharCode(_));var le,de,M,u=B(),v=(le=u,de=0,M=0,{write:function(g,A){if(g>>>A!=0)throw"length over";for(;de+A>=8;)le.writeByte(255&(g<<de|M)),A-=8-de,g>>>=8-de,M=0,de=0;M|=g<<de,de+=A},flush:function(){de>0&&le.writeByte(M)}});v.write(ae,b);var d=0,p=String.fromCharCode(Me[d]);for(d+=1;d<Me.length;){var m=String.fromCharCode(Me[d]);d+=1,L.contains(p+m)?p+=m:(v.write(L.indexOf(p),b),L.size()<4095&&(L.size()==1<<b&&(b+=1),L.add(p+m)),p=m)}return v.write(L.indexOf(p),b),v.write(_,b),v.flush(),u.toByteArray()},ke=function(){var G={},ae=0,_={add:function(b){if(_.contains(b))throw"dup key:"+b;G[b]=ae,ae+=1},size:function(){return ae},indexOf:function(b){return G[b]},contains:function(b){return G[b]!==void 0}};return _};return ye}(R,q),j=0;j<q;j+=1)for(var Z=0;Z<R;Z+=1)V.setPixel(Z,j,$(Z,j));var se=B();V.write(se);for(var ie=function(){var re=0,K=0,we=0,_e="",Me={},ye=function(ke){_e+=String.fromCharCode(Ue(63&ke))},Ue=function(ke){if(!(ke<0)){if(ke<26)return 65+ke;if(ke<52)return ke-26+97;if(ke<62)return ke-52+48;if(ke==62)return 43;if(ke==63)return 47}throw"n:"+ke};return Me.writeByte=function(ke){for(re=re<<8|255&ke,K+=8,we+=1;K>=6;)ye(re>>>K-6),K-=6},Me.flush=function(){if(K>0&&(ye(re<<6-K),re=0,K=0),we%3!=0)for(var ke=3-we%3,G=0;G<ke;G+=1)_e+="="},Me.toString=function(){return _e},Me}(),F=se.toByteArray(),ee=0;ee<F.length;ee+=1)ie.writeByte(F[ee]);return ie.flush(),"data:image/gif;base64,"+ie};return h}();l.stringToBytesFuncs["UTF-8"]=function(h){return function(x){for(var y=[],w=0;w<x.length;w++){var S=x.charCodeAt(w);S<128?y.push(S):S<2048?y.push(192|S>>6,128|63&S):S<55296||S>=57344?y.push(224|S>>12,128|S>>6&63,128|63&S):(w++,S=65536+((1023&S)<<10|1023&x.charCodeAt(w)),y.push(240|S>>18,128|S>>12&63,128|S>>6&63,128|63&S))}return y}(h)},(c=typeof(s=function(){return l})=="function"?s.apply(o,[]):s)===void 0||(i.exports=c)},796:(i,o,s)=>{s.d(o,{default:()=>de});var c=function(){return(c=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)},l=function(){for(var M=0,u=0,v=arguments.length;u<v;u++)M+=arguments[u].length;var d=Array(M),p=0;for(u=0;u<v;u++)for(var m=arguments[u],g=0,A=m.length;g<A;g++,p++)d[p]=m[g];return d},h=function(M){return!!M&&typeof M=="object"&&!Array.isArray(M)};function x(M){for(var u=[],v=1;v<arguments.length;v++)u[v-1]=arguments[v];if(!u.length)return M;var d=u.shift();return d!==void 0&&h(M)&&h(d)?(M=c({},M),Object.keys(d).forEach(function(p){var m=M[p],g=d[p];Array.isArray(m)&&Array.isArray(g)?M[p]=g:h(m)&&h(g)?M[p]=x(Object.assign({},m),g):M[p]=g}),x.apply(void 0,l([M],u))):M}function y(M,u){var v=document.createElement("a");v.download=u,v.href=M,document.body.appendChild(v),v.click(),document.body.removeChild(v)}function w(M){var u=M.originalHeight,v=M.originalWidth,d=M.maxHiddenDots,p=M.maxHiddenAxisDots,m=M.dotSize,g={x:0,y:0},A={x:0,y:0};if(u<=0||v<=0||d<=0||m<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var O=u/v;return g.x=Math.floor(Math.sqrt(d/O)),g.x<=0&&(g.x=1),p&&p<g.x&&(g.x=p),g.x%2==0&&g.x--,A.x=g.x*m,g.y=1+2*Math.ceil((g.x*O-1)/2),A.y=Math.round(A.x*O),(g.y*g.x>d||p&&p<g.y)&&(p&&p<g.y?(g.y=p,g.y%2==0&&g.x--):g.y-=2,A.y=g.y*m,g.x=1+2*Math.ceil((g.y/O-1)/2),A.x=Math.round(A.y/O)),{height:A.y,width:A.x,hideYDots:g.y,hideXDots:g.x}}const S={L:.07,M:.15,Q:.25,H:.3},C="dots",N="rounded",k="classy",E="classy-rounded",D="square",I="extra-rounded";var T=function(){return(T=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const P=function(){function M(u){var v=u.context,d=u.type;this._context=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var m,g=this._context;switch(this._type){case C:m=this._drawDot;break;case k:m=this._drawClassy;break;case E:m=this._drawClassyRounded;break;case N:m=this._drawRounded;break;case I:m=this._drawExtraRounded;break;case D:default:m=this._drawSquare}m.call(this,{x:u,y:v,size:d,context:g,getNeighbor:p})},M.prototype._rotateFigure=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation,A=g===void 0?0:g,O=u.draw,U=v+p/2,H=d+p/2;m.translate(U,H),A&&m.rotate(A),O(),m.closePath(),A&&m.rotate(-A),m.translate(-U,-H)},M.prototype._basicDot=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._basicSideRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,Math.PI/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerExtraRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2)}}))},M.prototype._basicCornersRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(0,v/2),d.arc(0,0,v/2,Math.PI/2,Math.PI),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornersExtraRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.arc(v/2,-v/2,v,Math.PI/2,Math.PI)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,m=u.context;this._basicDot({x:v,y:d,size:p,context:m,rotation:0})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,m=u.context;this._basicSquare({x:v,y:d,size:p,context:m,rotation:0})},M.prototype._drawRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.getNeighbor,A=g?+g(-1,0):0,O=g?+g(1,0):0,U=g?+g(0,-1):0,H=g?+g(0,1):0,J=A+O+U+H;if(J!==0)if(J>2||A&&O||U&&H)this._basicSquare({x:v,y:d,size:p,context:m,rotation:0});else{if(J===2){var X=0;return A&&U?X=Math.PI/2:U&&O?X=Math.PI:O&&H&&(X=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:p,context:m,rotation:X})}if(J===1)return X=0,U?X=Math.PI/2:O?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,context:m,rotation:X})}else this._basicDot({x:v,y:d,size:p,context:m,rotation:0})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.getNeighbor,A=g?+g(-1,0):0,O=g?+g(1,0):0,U=g?+g(0,-1):0,H=g?+g(0,1):0,J=A+O+U+H;if(J!==0)if(J>2||A&&O||U&&H)this._basicSquare({x:v,y:d,size:p,context:m,rotation:0});else{if(J===2){var X=0;return A&&U?X=Math.PI/2:U&&O?X=Math.PI:O&&H&&(X=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:p,context:m,rotation:X})}if(J===1)return X=0,U?X=Math.PI/2:O?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,context:m,rotation:X})}else this._basicDot({x:v,y:d,size:p,context:m,rotation:0})},M.prototype._drawClassy=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.getNeighbor,A=g?+g(-1,0):0,O=g?+g(1,0):0,U=g?+g(0,-1):0,H=g?+g(0,1):0;A+O+U+H!==0?A||U?O||H?this._basicSquare({x:v,y:d,size:p,context:m,rotation:0}):this._basicCornerRounded({x:v,y:d,size:p,context:m,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:p,context:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,context:m,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.getNeighbor,A=g?+g(-1,0):0,O=g?+g(1,0):0,U=g?+g(0,-1):0,H=g?+g(0,1):0;A+O+U+H!==0?A||U?O||H?this._basicSquare({x:v,y:d,size:p,context:m,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:p,context:m,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:p,context:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,context:m,rotation:Math.PI/2})},M}(),z="square",Y="extra-rounded";var Q=function(){return(Q=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const B=function(){function M(u){var v=u.context,d=u.type;this._context=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var m,g=this._context;switch(this._type){case z:m=this._drawSquare;break;case Y:m=this._drawExtraRounded;break;case"dot":default:m=this._drawDot}m.call(this,{x:u,y:v,size:d,context:g,rotation:p})},M.prototype._rotateFigure=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation,A=g===void 0?0:g,O=u.draw,U=v+p/2,H=d+p/2;m.translate(U,H),A&&m.rotate(A),O(),m.closePath(),A&&m.rotate(-A),m.translate(-U,-H)},M.prototype._basicDot=function(u){var v=u.size,d=u.context,p=v/7;this._rotateFigure(Q(Q({},u),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI),d.arc(0,0,v/2-p,0,2*Math.PI)}}))},M.prototype._basicSquare=function(u){var v=u.size,d=u.context,p=v/7;this._rotateFigure(Q(Q({},u),{draw:function(){d.rect(-v/2,-v/2,v,v),d.rect(-v/2+p,-v/2+p,v-2*p,v-2*p)}}))},M.prototype._basicExtraRounded=function(u){var v=u.size,d=u.context,p=v/7;this._rotateFigure(Q(Q({},u),{draw:function(){d.arc(-p,-p,2.5*p,Math.PI,-Math.PI/2),d.lineTo(p,-3.5*p),d.arc(p,-p,2.5*p,-Math.PI/2,0),d.lineTo(3.5*p,-p),d.arc(p,p,2.5*p,0,Math.PI/2),d.lineTo(-p,3.5*p),d.arc(-p,p,2.5*p,Math.PI/2,Math.PI),d.lineTo(-3.5*p,-p),d.arc(-p,-p,1.5*p,Math.PI,-Math.PI/2),d.lineTo(p,-2.5*p),d.arc(p,-p,1.5*p,-Math.PI/2,0),d.lineTo(2.5*p,-p),d.arc(p,p,1.5*p,0,Math.PI/2),d.lineTo(-p,2.5*p),d.arc(-p,p,1.5*p,Math.PI/2,Math.PI),d.lineTo(-2.5*p,-p)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation;this._basicDot({x:v,y:d,size:p,context:m,rotation:g})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation;this._basicSquare({x:v,y:d,size:p,context:m,rotation:g})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation;this._basicExtraRounded({x:v,y:d,size:p,context:m,rotation:g})},M}(),W="square";var ne=function(){return(ne=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const R=function(){function M(u){var v=u.context,d=u.type;this._context=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var m,g=this._context;switch(this._type){case W:m=this._drawSquare;break;case"dot":default:m=this._drawDot}m.call(this,{x:u,y:v,size:d,context:g,rotation:p})},M.prototype._rotateFigure=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation,A=g===void 0?0:g,O=u.draw,U=v+p/2,H=d+p/2;m.translate(U,H),A&&m.rotate(A),O(),m.closePath(),A&&m.rotate(-A),m.translate(-U,-H)},M.prototype._basicDot=function(u){var v=u.size,d=u.context;this._rotateFigure(ne(ne({},u),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(u){var v=u.size,d=u.context;this._rotateFigure(ne(ne({},u),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation;this._basicDot({x:v,y:d,size:p,context:m,rotation:g})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,m=u.context,g=u.rotation;this._basicSquare({x:v,y:d,size:p,context:m,rotation:g})},M}(),q="radial";var $=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],V=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const j=function(){function M(u){this._canvas=document.createElement("canvas"),this._canvas.width=u.width,this._canvas.height=u.height,this._options=u}return Object.defineProperty(M.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),M.prototype.getCanvas=function(){return this._canvas},M.prototype.clear=function(){var u=this.context;u&&u.clearRect(0,0,this._canvas.width,this._canvas.height)},M.prototype.drawQR=function(u){return v=this,d=void 0,m=function(){var g,A,O,U,H,J,X,oe,he,pe=this;return function(ve,Ie){var Ee,be,ce,je,xe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return je={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(je[Symbol.iterator]=function(){return this}),je;function Ye(Qe){return function(pt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return xe.label++,{value:ge[1],done:!1};case 5:xe.label++,be=ge[1],ge=[0];continue;case 7:ge=xe.ops.pop(),xe.trys.pop();continue;default:if(!((ce=(ce=xe.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){xe=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){xe.label=ge[1];break}if(ge[0]===6&&xe.label<ce[1]){xe.label=ce[1],ce=ge;break}if(ce&&xe.label<ce[2]){xe.label=ce[2],xe.ops.push(ge);break}ce[2]&&xe.ops.pop(),xe.trys.pop();continue}ge=Ie.call(ve,xe)}catch(rt){ge=[6,rt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,pt])}}}(this,function(ve){switch(ve.label){case 0:return g=u.getModuleCount(),A=Math.min(this._options.width,this._options.height)-2*this._options.margin,O=Math.floor(A/g),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=u,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],he=Math.floor(oe*g*g),U=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:he,maxHiddenAxisDots:g-14,dotSize:O}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Ie,Ee){var be,ce,je,xe,Ye,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Ie>=(g-U.hideXDots)/2&&Ie<(g+U.hideXDots)/2&&Ee>=(g-U.hideYDots)/2&&Ee<(g+U.hideYDots)/2||((be=$[Ie])===null||be===void 0?void 0:be[Ee])||((ce=$[Ie-g+7])===null||ce===void 0?void 0:ce[Ee])||((je=$[Ie])===null||je===void 0?void 0:je[Ee-g+7])||((xe=V[Ie])===null||xe===void 0?void 0:xe[Ee])||((Ye=V[Ie-g+7])===null||Ye===void 0?void 0:Ye[Ee])||((Qe=V[Ie])===null||Qe===void 0?void 0:Qe[Ee-g+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:g,dotSize:O}),[2]}})},new((p=void 0)||(p=Promise))(function(g,A){function O(J){try{H(m.next(J))}catch(X){A(X)}}function U(J){try{H(m.throw(J))}catch(X){A(X)}}function H(J){var X;J.done?g(J.value):(X=J.value,X instanceof p?X:new p(function(oe){oe(X)})).then(O,U)}H((m=m.apply(v,d||[])).next())});var v,d,p,m},M.prototype.drawBackground=function(){var u=this.context,v=this._options;if(u){if(v.backgroundOptions.gradient){var d=v.backgroundOptions.gradient,p=this._createGradient({context:u,options:d,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});d.colorStops.forEach(function(m){var g=m.offset,A=m.color;p.addColorStop(g,A)}),u.fillStyle=p}else v.backgroundOptions.color&&(u.fillStyle=v.backgroundOptions.color);u.fillRect(0,0,this._canvas.width,this._canvas.height)}},M.prototype.drawDots=function(u){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var p=this._options,m=this._qr.getModuleCount();if(m>p.width||m>p.height)throw"The canvas is too small.";var g=Math.min(p.width,p.height)-2*p.margin,A=Math.floor(g/m),O=Math.floor((p.width-m*A)/2),U=Math.floor((p.height-m*A)/2),H=new P({context:d,type:p.dotsOptions.type});d.beginPath();for(var J=function(ve){for(var Ie=function(be){return u&&!u(ve,be)?"continue":X._qr.isDark(ve,be)?void H.draw(O+ve*A,U+be*A,A,function(ce,je){return!(ve+ce<0||be+je<0||ve+ce>=m||be+je>=m)&&!(u&&!u(ve+ce,be+je))&&!!v._qr&&v._qr.isDark(ve+ce,be+je)}):"continue"},Ee=0;Ee<m;Ee++)Ie(Ee)},X=this,oe=0;oe<m;oe++)J(oe);if(p.dotsOptions.gradient){var he=p.dotsOptions.gradient,pe=this._createGradient({context:d,options:he,additionalRotation:0,x:O,y:U,size:m*A});he.colorStops.forEach(function(ve){var Ie=ve.offset,Ee=ve.color;pe.addColorStop(Ie,Ee)}),d.fillStyle=d.strokeStyle=pe}else p.dotsOptions.color&&(d.fillStyle=d.strokeStyle=p.dotsOptions.color);d.fill("evenodd")},M.prototype.drawCorners=function(u){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var p=this._options,m=this._qr.getModuleCount(),g=Math.min(p.width,p.height)-2*p.margin,A=Math.floor(g/m),O=7*A,U=3*A,H=Math.floor((p.width-m*A)/2),J=Math.floor((p.height-m*A)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(X){var oe,he,pe,ve,Ie,Ee,be,ce,je,xe,Ye=X[0],Qe=X[1],pt=X[2];if(!u||u(Ye,Qe)){var ge=H+Ye*A*(m-7),rt=J+Qe*A*(m-7);if(!((oe=p.cornersSquareOptions)===null||oe===void 0)&&oe.type){var Gt=new B({context:d,type:(he=p.cornersSquareOptions)===null||he===void 0?void 0:he.type});d.beginPath(),Gt.draw(ge,rt,O,pt)}else{var At=new P({context:d,type:p.dotsOptions.type});d.beginPath();for(var Dt=function(Ze){for(var jt=function(bt){if(!(!((pe=$[Ze])===null||pe===void 0)&&pe[bt]))return"continue";At.draw(ge+Ze*A,rt+bt*A,A,function(Cn,kn){var Et;return!!(!((Et=$[Ze+Cn])===null||Et===void 0)&&Et[bt+kn])})},st=0;st<$[Ze].length;st++)jt(st)},Tt=0;Tt<$.length;Tt++)Dt(Tt)}if(!((ve=p.cornersSquareOptions)===null||ve===void 0)&&ve.gradient){var gt=p.cornersSquareOptions.gradient,ct=v._createGradient({context:d,options:gt,additionalRotation:pt,x:ge,y:rt,size:O});gt.colorStops.forEach(function(Ze){var jt=Ze.offset,st=Ze.color;ct.addColorStop(jt,st)}),d.fillStyle=d.strokeStyle=ct}else!((Ie=p.cornersSquareOptions)===null||Ie===void 0)&&Ie.color&&(d.fillStyle=d.strokeStyle=p.cornersSquareOptions.color);if(d.fill("evenodd"),(Ee=p.cornersDotOptions)===null||Ee===void 0?void 0:Ee.type){var ut=new R({context:d,type:(be=p.cornersDotOptions)===null||be===void 0?void 0:be.type});d.beginPath(),ut.draw(ge+2*A,rt+2*A,U,pt)}else{At=new P({context:d,type:p.dotsOptions.type}),d.beginPath();var vn=function(Ze){for(var jt=function(bt){if(!(!((ce=V[Ze])===null||ce===void 0)&&ce[bt]))return"continue";At.draw(ge+Ze*A,rt+bt*A,A,function(Cn,kn){var Et;return!!(!((Et=V[Ze+Cn])===null||Et===void 0)&&Et[bt+kn])})},st=0;st<V[Ze].length;st++)jt(st)};for(Tt=0;Tt<V.length;Tt++)vn(Tt)}if(!((je=p.cornersDotOptions)===null||je===void 0)&&je.gradient){gt=p.cornersDotOptions.gradient;var Kn=v._createGradient({context:d,options:gt,additionalRotation:pt,x:ge+2*A,y:rt+2*A,size:U});gt.colorStops.forEach(function(Ze){var jt=Ze.offset,st=Ze.color;Kn.addColorStop(jt,st)}),d.fillStyle=d.strokeStyle=Kn}else!((xe=p.cornersDotOptions)===null||xe===void 0)&&xe.color&&(d.fillStyle=d.strokeStyle=p.cornersDotOptions.color);d.fill("evenodd")}})},M.prototype.loadImage=function(){var u=this;return new Promise(function(v,d){var p=u._options,m=new Image;if(!p.image)return d("Image is not defined");typeof p.imageOptions.crossOrigin=="string"&&(m.crossOrigin=p.imageOptions.crossOrigin),u._image=m,m.onload=function(){v()},m.src=p.image})},M.prototype.drawImage=function(u){var v=u.width,d=u.height,p=u.count,m=u.dotSize,g=this.context;if(!g)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var A=this._options,O=Math.floor((A.width-p*m)/2),U=Math.floor((A.height-p*m)/2),H=O+A.imageOptions.margin+(p*m-v)/2,J=U+A.imageOptions.margin+(p*m-d)/2,X=v-2*A.imageOptions.margin,oe=d-2*A.imageOptions.margin;g.drawImage(this._image,H,J,X<0?0:X,oe<0?0:oe)},M.prototype._createGradient=function(u){var v,d=u.context,p=u.options,m=u.additionalRotation,g=u.x,A=u.y,O=u.size;if(p.type===q)v=d.createRadialGradient(g+O/2,A+O/2,0,g+O/2,A+O/2,O/2);else{var U=((p.rotation||0)+m)%(2*Math.PI),H=(U+2*Math.PI)%(2*Math.PI),J=g+O/2,X=A+O/2,oe=g+O/2,he=A+O/2;H>=0&&H<=.25*Math.PI||H>1.75*Math.PI&&H<=2*Math.PI?(J-=O/2,X-=O/2*Math.tan(U),oe+=O/2,he+=O/2*Math.tan(U)):H>.25*Math.PI&&H<=.75*Math.PI?(X-=O/2,J-=O/2/Math.tan(U),he+=O/2,oe+=O/2/Math.tan(U)):H>.75*Math.PI&&H<=1.25*Math.PI?(J+=O/2,X+=O/2*Math.tan(U),oe-=O/2,he-=O/2*Math.tan(U)):H>1.25*Math.PI&&H<=1.75*Math.PI&&(X+=O/2,J+=O/2/Math.tan(U),he-=O/2,oe-=O/2/Math.tan(U)),v=d.createLinearGradient(Math.round(J),Math.round(X),Math.round(oe),Math.round(he))}return v},M}();var Z=function(){return(Z=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const se=function(){function M(u){var v=u.svg,d=u.type;this._svg=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var m;switch(this._type){case C:m=this._drawDot;break;case k:m=this._drawClassy;break;case E:m=this._drawClassyRounded;break;case N:m=this._drawRounded;break;case I:m=this._drawExtraRounded;break;case D:default:m=this._drawSquare}m.call(this,{x:u,y:v,size:d,getNeighbor:p})},M.prototype._rotateFigure=function(u){var v,d=u.x,p=u.y,m=u.size,g=u.rotation,A=g===void 0?0:g,O=d+m/2,U=p+m/2;(0,u.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*A/Math.PI+","+O+","+U+")")},M.prototype._basicDot=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(p+d/2)),v._element.setAttribute("cy",String(m+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(p)),v._element.setAttribute("y",String(m)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._basicSideRounded=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+m+"v "+d+"h "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, 0 "+-d)}}))},M.prototype._basicCornerRounded=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+m+"v "+d+"h "+d+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._basicCornerExtraRounded=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+m+"v "+d+"h "+d+"a "+d+" "+d+", 0, 0, 0, "+-d+" "+-d)}}))},M.prototype._basicCornersRounded=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+m+"v "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+d/2+" "+d/2+"h "+d/2+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size;this._basicDot({x:v,y:d,size:p,rotation:0})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size;this._basicSquare({x:v,y:d,size:p,rotation:0})},M.prototype._drawRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.getNeighbor,g=m?+m(-1,0):0,A=m?+m(1,0):0,O=m?+m(0,-1):0,U=m?+m(0,1):0,H=g+A+O+U;if(H!==0)if(H>2||g&&A||O&&U)this._basicSquare({x:v,y:d,size:p,rotation:0});else{if(H===2){var J=0;return g&&O?J=Math.PI/2:O&&A?J=Math.PI:A&&U&&(J=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:p,rotation:J})}if(H===1)return J=0,O?J=Math.PI/2:A?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,rotation:J})}else this._basicDot({x:v,y:d,size:p,rotation:0})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.getNeighbor,g=m?+m(-1,0):0,A=m?+m(1,0):0,O=m?+m(0,-1):0,U=m?+m(0,1):0,H=g+A+O+U;if(H!==0)if(H>2||g&&A||O&&U)this._basicSquare({x:v,y:d,size:p,rotation:0});else{if(H===2){var J=0;return g&&O?J=Math.PI/2:O&&A?J=Math.PI:A&&U&&(J=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:p,rotation:J})}if(H===1)return J=0,O?J=Math.PI/2:A?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,rotation:J})}else this._basicDot({x:v,y:d,size:p,rotation:0})},M.prototype._drawClassy=function(u){var v=u.x,d=u.y,p=u.size,m=u.getNeighbor,g=m?+m(-1,0):0,A=m?+m(1,0):0,O=m?+m(0,-1):0,U=m?+m(0,1):0;g+A+O+U!==0?g||O?A||U?this._basicSquare({x:v,y:d,size:p,rotation:0}):this._basicCornerRounded({x:v,y:d,size:p,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:p,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.getNeighbor,g=m?+m(-1,0):0,A=m?+m(1,0):0,O=m?+m(0,-1):0,U=m?+m(0,1):0;g+A+O+U!==0?g||O?A||U?this._basicSquare({x:v,y:d,size:p,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:p,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:p,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,rotation:Math.PI/2})},M}();var ie=function(){return(ie=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const F=function(){function M(u){var v=u.svg,d=u.type;this._svg=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var m;switch(this._type){case z:m=this._drawSquare;break;case Y:m=this._drawExtraRounded;break;case"dot":default:m=this._drawDot}m.call(this,{x:u,y:v,size:d,rotation:p})},M.prototype._rotateFigure=function(u){var v,d=u.x,p=u.y,m=u.size,g=u.rotation,A=g===void 0?0:g,O=d+m/2,U=p+m/2;(0,u.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*A/Math.PI+","+O+","+U+")")},M.prototype._basicDot=function(u){var v=this,d=u.size,p=u.x,m=u.y,g=d/7;this._rotateFigure(ie(ie({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+(p+d/2)+" "+m+"a "+d/2+" "+d/2+" 0 1 0 0.1 0zm 0 "+g+"a "+(d/2-g)+" "+(d/2-g)+" 0 1 1 -0.1 0Z")}}))},M.prototype._basicSquare=function(u){var v=this,d=u.size,p=u.x,m=u.y,g=d/7;this._rotateFigure(ie(ie({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+p+" "+m+"v "+d+"h "+d+"v "+-d+"zM "+(p+g)+" "+(m+g)+"h "+(d-2*g)+"v "+(d-2*g)+"h "+(2*g-d)+"z")}}))},M.prototype._basicExtraRounded=function(u){var v=this,d=u.size,p=u.x,m=u.y,g=d/7;this._rotateFigure(ie(ie({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+p+" "+(m+2.5*g)+"v "+2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*g+" "+2.5*g+"h "+2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*g+" "+2.5*-g+"v "+-2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*-g+" "+2.5*-g+"h "+-2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*-g+" "+2.5*g+"M "+(p+2.5*g)+" "+(m+g)+"h "+2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*g+" "+1.5*g+"v "+2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*-g+" "+1.5*g+"h "+-2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*-g+" "+1.5*-g+"v "+-2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*g+" "+1.5*-g)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,m=u.rotation;this._basicDot({x:v,y:d,size:p,rotation:m})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,m=u.rotation;this._basicSquare({x:v,y:d,size:p,rotation:m})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,m=u.rotation;this._basicExtraRounded({x:v,y:d,size:p,rotation:m})},M}();var ee=function(){return(ee=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const re=function(){function M(u){var v=u.svg,d=u.type;this._svg=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var m;switch(this._type){case W:m=this._drawSquare;break;case"dot":default:m=this._drawDot}m.call(this,{x:u,y:v,size:d,rotation:p})},M.prototype._rotateFigure=function(u){var v,d=u.x,p=u.y,m=u.size,g=u.rotation,A=g===void 0?0:g,O=d+m/2,U=p+m/2;(0,u.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*A/Math.PI+","+O+","+U+")")},M.prototype._basicDot=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(ee(ee({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(p+d/2)),v._element.setAttribute("cy",String(m+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(u){var v=this,d=u.size,p=u.x,m=u.y;this._rotateFigure(ee(ee({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(p)),v._element.setAttribute("y",String(m)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,m=u.rotation;this._basicDot({x:v,y:d,size:p,rotation:m})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,m=u.rotation;this._basicSquare({x:v,y:d,size:p,rotation:m})},M}();var K=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],we=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _e=function(){function M(u){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(u.width)),this._element.setAttribute("height",String(u.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=u}return Object.defineProperty(M.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),M.prototype.getElement=function(){return this._element},M.prototype.clear=function(){var u,v=this._element;this._element=v.cloneNode(!1),(u=v==null?void 0:v.parentNode)===null||u===void 0||u.replaceChild(this._element,v),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},M.prototype.drawQR=function(u){return v=this,d=void 0,m=function(){var g,A,O,U,H,J,X,oe,he,pe=this;return function(ve,Ie){var Ee,be,ce,je,xe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return je={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(je[Symbol.iterator]=function(){return this}),je;function Ye(Qe){return function(pt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return xe.label++,{value:ge[1],done:!1};case 5:xe.label++,be=ge[1],ge=[0];continue;case 7:ge=xe.ops.pop(),xe.trys.pop();continue;default:if(!((ce=(ce=xe.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){xe=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){xe.label=ge[1];break}if(ge[0]===6&&xe.label<ce[1]){xe.label=ce[1],ce=ge;break}if(ce&&xe.label<ce[2]){xe.label=ce[2],xe.ops.push(ge);break}ce[2]&&xe.ops.pop(),xe.trys.pop();continue}ge=Ie.call(ve,xe)}catch(rt){ge=[6,rt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,pt])}}}(this,function(ve){switch(ve.label){case 0:return g=u.getModuleCount(),A=Math.min(this._options.width,this._options.height)-2*this._options.margin,O=Math.floor(A/g),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=u,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],he=Math.floor(oe*g*g),U=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:he,maxHiddenAxisDots:g-14,dotSize:O}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Ie,Ee){var be,ce,je,xe,Ye,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Ie>=(g-U.hideXDots)/2&&Ie<(g+U.hideXDots)/2&&Ee>=(g-U.hideYDots)/2&&Ee<(g+U.hideYDots)/2||((be=K[Ie])===null||be===void 0?void 0:be[Ee])||((ce=K[Ie-g+7])===null||ce===void 0?void 0:ce[Ee])||((je=K[Ie])===null||je===void 0?void 0:je[Ee-g+7])||((xe=we[Ie])===null||xe===void 0?void 0:xe[Ee])||((Ye=we[Ie-g+7])===null||Ye===void 0?void 0:Ye[Ee])||((Qe=we[Ie])===null||Qe===void 0?void 0:Qe[Ee-g+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:g,dotSize:O}),[2]}})},new((p=void 0)||(p=Promise))(function(g,A){function O(J){try{H(m.next(J))}catch(X){A(X)}}function U(J){try{H(m.throw(J))}catch(X){A(X)}}function H(J){var X;J.done?g(J.value):(X=J.value,X instanceof p?X:new p(function(oe){oe(X)})).then(O,U)}H((m=m.apply(v,d||[])).next())});var v,d,p,m},M.prototype.drawBackground=function(){var u,v,d=this._element,p=this._options;if(d){var m=(u=p.backgroundOptions)===null||u===void 0?void 0:u.gradient,g=(v=p.backgroundOptions)===null||v===void 0?void 0:v.color;(m||g)&&this._createColor({options:m,color:g,additionalRotation:0,x:0,y:0,height:p.height,width:p.width,name:"background-color"})}},M.prototype.drawDots=function(u){var v,d,p=this;if(!this._qr)throw"QR code is not defined";var m=this._options,g=this._qr.getModuleCount();if(g>m.width||g>m.height)throw"The canvas is too small.";var A=Math.min(m.width,m.height)-2*m.margin,O=Math.floor(A/g),U=Math.floor((m.width-g*O)/2),H=Math.floor((m.height-g*O)/2),J=new se({svg:this._element,type:m.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(v=m.dotsOptions)===null||v===void 0?void 0:v.gradient,color:m.dotsOptions.color,additionalRotation:0,x:U,y:H,height:g*O,width:g*O,name:"dot-color"});for(var X=function(pe){for(var ve=function(Ee){return u&&!u(pe,Ee)?"continue":!((d=oe._qr)===null||d===void 0)&&d.isDark(pe,Ee)?(J.draw(U+pe*O,H+Ee*O,O,function(be,ce){return!(pe+be<0||Ee+ce<0||pe+be>=g||Ee+ce>=g)&&!(u&&!u(pe+be,Ee+ce))&&!!p._qr&&p._qr.isDark(pe+be,Ee+ce)}),void(J._element&&oe._dotsClipPath&&oe._dotsClipPath.appendChild(J._element))):"continue"},Ie=0;Ie<g;Ie++)ve(Ie)},oe=this,he=0;he<g;he++)X(he)},M.prototype.drawCorners=function(){var u=this;if(!this._qr)throw"QR code is not defined";var v=this._element,d=this._options;if(!v)throw"Element code is not defined";var p=this._qr.getModuleCount(),m=Math.min(d.width,d.height)-2*d.margin,g=Math.floor(m/p),A=7*g,O=3*g,U=Math.floor((d.width-p*g)/2),H=Math.floor((d.height-p*g)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(J){var X,oe,he,pe,ve,Ie,Ee,be,ce,je,xe,Ye,Qe=J[0],pt=J[1],ge=J[2],rt=U+Qe*g*(p-7),Gt=H+pt*g*(p-7),At=u._dotsClipPath,Dt=u._dotsClipPath;if((((X=d.cornersSquareOptions)===null||X===void 0?void 0:X.gradient)||((oe=d.cornersSquareOptions)===null||oe===void 0?void 0:oe.color))&&((At=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Qe+"-"+pt),u._defs.appendChild(At),u._cornersSquareClipPath=u._cornersDotClipPath=Dt=At,u._createColor({options:(he=d.cornersSquareOptions)===null||he===void 0?void 0:he.gradient,color:(pe=d.cornersSquareOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:ge,x:rt,y:Gt,height:A,width:A,name:"corners-square-color-"+Qe+"-"+pt})),(ve=d.cornersSquareOptions)===null||ve===void 0?void 0:ve.type){var Tt=new F({svg:u._element,type:d.cornersSquareOptions.type});Tt.draw(rt,Gt,A,ge),Tt._element&&At&&At.appendChild(Tt._element)}else for(var gt=new se({svg:u._element,type:d.dotsOptions.type}),ct=function(Ze){for(var jt=function(bt){if(!(!((Ie=K[Ze])===null||Ie===void 0)&&Ie[bt]))return"continue";gt.draw(rt+Ze*g,Gt+bt*g,g,function(Cn,kn){var Et;return!!(!((Et=K[Ze+Cn])===null||Et===void 0)&&Et[bt+kn])}),gt._element&&At&&At.appendChild(gt._element)},st=0;st<K[Ze].length;st++)jt(st)},ut=0;ut<K.length;ut++)ct(ut);if((((Ee=d.cornersDotOptions)===null||Ee===void 0?void 0:Ee.gradient)||((be=d.cornersDotOptions)===null||be===void 0?void 0:be.color))&&((Dt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Qe+"-"+pt),u._defs.appendChild(Dt),u._cornersDotClipPath=Dt,u._createColor({options:(ce=d.cornersDotOptions)===null||ce===void 0?void 0:ce.gradient,color:(je=d.cornersDotOptions)===null||je===void 0?void 0:je.color,additionalRotation:ge,x:rt+2*g,y:Gt+2*g,height:O,width:O,name:"corners-dot-color-"+Qe+"-"+pt})),(xe=d.cornersDotOptions)===null||xe===void 0?void 0:xe.type){var vn=new re({svg:u._element,type:d.cornersDotOptions.type});vn.draw(rt+2*g,Gt+2*g,O,ge),vn._element&&Dt&&Dt.appendChild(vn._element)}else{gt=new se({svg:u._element,type:d.dotsOptions.type});var Kn=function(Ze){for(var jt=function(bt){if(!(!((Ye=we[Ze])===null||Ye===void 0)&&Ye[bt]))return"continue";gt.draw(rt+Ze*g,Gt+bt*g,g,function(Cn,kn){var Et;return!!(!((Et=we[Ze+Cn])===null||Et===void 0)&&Et[bt+kn])}),gt._element&&Dt&&Dt.appendChild(gt._element)},st=0;st<we[Ze].length;st++)jt(st)};for(ut=0;ut<we.length;ut++)Kn(ut)}})},M.prototype.loadImage=function(){var u=this;return new Promise(function(v,d){var p=u._options,m=new Image;if(!p.image)return d("Image is not defined");typeof p.imageOptions.crossOrigin=="string"&&(m.crossOrigin=p.imageOptions.crossOrigin),u._image=m,m.onload=function(){v()},m.src=p.image})},M.prototype.drawImage=function(u){var v=u.width,d=u.height,p=u.count,m=u.dotSize,g=this._options,A=Math.floor((g.width-p*m)/2),O=Math.floor((g.height-p*m)/2),U=A+g.imageOptions.margin+(p*m-v)/2,H=O+g.imageOptions.margin+(p*m-d)/2,J=v-2*g.imageOptions.margin,X=d-2*g.imageOptions.margin,oe=document.createElementNS("http://www.w3.org/2000/svg","image");oe.setAttribute("href",g.image||""),oe.setAttribute("x",String(U)),oe.setAttribute("y",String(H)),oe.setAttribute("width",J+"px"),oe.setAttribute("height",X+"px"),this._element.appendChild(oe)},M.prototype._createColor=function(u){var v=u.options,d=u.color,p=u.additionalRotation,m=u.x,g=u.y,A=u.height,O=u.width,U=u.name,H=O>A?O:A,J=document.createElementNS("http://www.w3.org/2000/svg","rect");if(J.setAttribute("x",String(m)),J.setAttribute("y",String(g)),J.setAttribute("height",String(A)),J.setAttribute("width",String(O)),J.setAttribute("clip-path","url('#clip-path-"+U+"')"),v){var X;if(v.type===q)(X=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("fx",String(m+O/2)),X.setAttribute("fy",String(g+A/2)),X.setAttribute("cx",String(m+O/2)),X.setAttribute("cy",String(g+A/2)),X.setAttribute("r",String(H/2));else{var oe=((v.rotation||0)+p)%(2*Math.PI),he=(oe+2*Math.PI)%(2*Math.PI),pe=m+O/2,ve=g+A/2,Ie=m+O/2,Ee=g+A/2;he>=0&&he<=.25*Math.PI||he>1.75*Math.PI&&he<=2*Math.PI?(pe-=O/2,ve-=A/2*Math.tan(oe),Ie+=O/2,Ee+=A/2*Math.tan(oe)):he>.25*Math.PI&&he<=.75*Math.PI?(ve-=A/2,pe-=O/2/Math.tan(oe),Ee+=A/2,Ie+=O/2/Math.tan(oe)):he>.75*Math.PI&&he<=1.25*Math.PI?(pe+=O/2,ve+=A/2*Math.tan(oe),Ie-=O/2,Ee-=A/2*Math.tan(oe)):he>1.25*Math.PI&&he<=1.75*Math.PI&&(ve+=A/2,pe+=O/2/Math.tan(oe),Ee-=A/2,Ie-=O/2/Math.tan(oe)),(X=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("x1",String(Math.round(pe))),X.setAttribute("y1",String(Math.round(ve))),X.setAttribute("x2",String(Math.round(Ie))),X.setAttribute("y2",String(Math.round(Ee)))}v.colorStops.forEach(function(be){var ce=be.offset,je=be.color,xe=document.createElementNS("http://www.w3.org/2000/svg","stop");xe.setAttribute("offset",100*ce+"%"),xe.setAttribute("stop-color",je),X.appendChild(xe)}),J.setAttribute("fill","url('#"+U+"')"),this._defs.appendChild(X)}else d&&J.setAttribute("fill",d);this._element.appendChild(J)},M}(),Me="canvas";for(var ye={},Ue=0;Ue<=40;Ue++)ye[Ue]=Ue;const ke={type:Me,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ye[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var G=function(){return(G=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};function ae(M){var u=G({},M);if(!u.colorStops||!u.colorStops.length)throw"Field 'colorStops' is required in gradient";return u.rotation?u.rotation=Number(u.rotation):u.rotation=0,u.colorStops=u.colorStops.map(function(v){return G(G({},v),{offset:Number(v.offset)})}),u}function _(M){var u=G({},M);return u.width=Number(u.width),u.height=Number(u.height),u.margin=Number(u.margin),u.imageOptions=G(G({},u.imageOptions),{hideBackgroundDots:Boolean(u.imageOptions.hideBackgroundDots),imageSize:Number(u.imageOptions.imageSize),margin:Number(u.imageOptions.margin)}),u.margin>Math.min(u.width,u.height)&&(u.margin=Math.min(u.width,u.height)),u.dotsOptions=G({},u.dotsOptions),u.dotsOptions.gradient&&(u.dotsOptions.gradient=ae(u.dotsOptions.gradient)),u.cornersSquareOptions&&(u.cornersSquareOptions=G({},u.cornersSquareOptions),u.cornersSquareOptions.gradient&&(u.cornersSquareOptions.gradient=ae(u.cornersSquareOptions.gradient))),u.cornersDotOptions&&(u.cornersDotOptions=G({},u.cornersDotOptions),u.cornersDotOptions.gradient&&(u.cornersDotOptions.gradient=ae(u.cornersDotOptions.gradient))),u.backgroundOptions&&(u.backgroundOptions=G({},u.backgroundOptions),u.backgroundOptions.gradient&&(u.backgroundOptions.gradient=ae(u.backgroundOptions.gradient))),u}var b=s(192),L=s.n(b),te=function(M,u,v,d){return new(v||(v=Promise))(function(p,m){function g(U){try{O(d.next(U))}catch(H){m(H)}}function A(U){try{O(d.throw(U))}catch(H){m(H)}}function O(U){var H;U.done?p(U.value):(H=U.value,H instanceof v?H:new v(function(J){J(H)})).then(g,A)}O((d=d.apply(M,u||[])).next())})},le=function(M,u){var v,d,p,m,g={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(O){return function(U){return function(H){if(v)throw new TypeError("Generator is already executing.");for(;g;)try{if(v=1,d&&(p=2&H[0]?d.return:H[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,H[1])).done)return p;switch(d=0,p&&(H=[2&H[0],p.value]),H[0]){case 0:case 1:p=H;break;case 4:return g.label++,{value:H[1],done:!1};case 5:g.label++,d=H[1],H=[0];continue;case 7:H=g.ops.pop(),g.trys.pop();continue;default:if(!((p=(p=g.trys).length>0&&p[p.length-1])||H[0]!==6&&H[0]!==2)){g=0;continue}if(H[0]===3&&(!p||H[1]>p[0]&&H[1]<p[3])){g.label=H[1];break}if(H[0]===6&&g.label<p[1]){g.label=p[1],p=H;break}if(p&&g.label<p[2]){g.label=p[2],g.ops.push(H);break}p[2]&&g.ops.pop(),g.trys.pop();continue}H=u.call(M,g)}catch(J){H=[6,J],d=0}finally{v=p=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([O,U])}}};const de=function(){function M(u){this._options=u?_(x(ke,u)):ke,this.update()}return M._clearContainer=function(u){u&&(u.innerHTML="")},M.prototype._getQRStylingElement=function(u){return u===void 0&&(u="png"),te(this,void 0,void 0,function(){var v,d,p;return le(this,function(m){switch(m.label){case 0:if(!this._qr)throw"QR code is empty";return u.toLowerCase()!=="svg"?[3,2]:(d=void 0,v=void 0,this._svg&&this._svgDrawingPromise?(v=this._svg,d=this._svgDrawingPromise):(v=new _e(this._options),d=v.drawQR(this._qr)),[4,d]);case 1:return m.sent(),[2,v];case 2:return d=void 0,p=void 0,this._canvas&&this._canvasDrawingPromise?(p=this._canvas,d=this._canvasDrawingPromise):(p=new j(this._options),d=p.drawQR(this._qr)),[4,d];case 3:return m.sent(),[2,p]}})})},M.prototype.update=function(u){M._clearContainer(this._container),this._options=u?_(x(this._options,u)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(v){switch(!0){case/^[0-9]*$/.test(v):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(v):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Me?(this._canvas=new j(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new _e(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},M.prototype.append=function(u){if(u){if(typeof u.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Me?this._canvas&&u.appendChild(this._canvas.getCanvas()):this._svg&&u.appendChild(this._svg.getElement()),this._container=u}},M.prototype.getRawData=function(u){return u===void 0&&(u="png"),te(this,void 0,void 0,function(){var v,d,p;return le(this,function(m){switch(m.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(u)];case 1:return v=m.sent(),u.toLowerCase()==="svg"?(d=new XMLSerializer,p=d.serializeToString(v.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
4
|
+
`+p],{type:"image/svg+xml"})]):[2,new Promise(function(g){return v.getCanvas().toBlob(g,"image/"+u,1)})]}})})},M.prototype.download=function(u){return te(this,void 0,void 0,function(){var v,d,p,m,g;return le(this,function(A){switch(A.label){case 0:if(!this._qr)throw"QR code is empty";return v="png",d="qr",typeof u=="string"?(v=u,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof u=="object"&&u!==null&&(u.name&&(d=u.name),u.extension&&(v=u.extension)),[4,this._getQRStylingElement(v)];case 1:return p=A.sent(),v.toLowerCase()==="svg"?(m=new XMLSerializer,g=`<?xml version="1.0" standalone="no"?>\r
|
|
5
|
+
`+(g=m.serializeToString(p.getElement())),y("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(g),d+".svg")):y(p.getCanvas().toDataURL("image/"+v),d+"."+v),[2]}})})},M}()}},r={};function a(i){if(r[i])return r[i].exports;var o=r[i]={exports:{}};return n[i](o,o.exports,a),o.exports}return a.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return a.d(o,{a:o}),o},a.d=(i,o)=>{for(var s in o)a.o(o,s)&&!a.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},a.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),a(796)})().default})})(eo);var ed=Qu(eo.exports);/*!
|
|
6
6
|
* shared v9.2.2
|
|
7
7
|
* (c) 2022 kazuya kawaguchi
|
|
8
8
|
* Released under the MIT License.
|
|
9
|
-
*/const
|
|
9
|
+
*/const ba=typeof window!="undefined",td=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",en=t=>td?Symbol(t):t,nd=(t,e,n)=>rd({l:t,k:e,s:n}),rd=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),at=t=>typeof t=="number"&&isFinite(t),ad=t=>xa(t)==="[object Date]",tn=t=>xa(t)==="[object RegExp]",Sr=t=>De(t)&&Object.keys(t).length===0;function id(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const lt=Object.assign;let to;const Jn=()=>to||(to=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function no(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const od=Object.prototype.hasOwnProperty;function Ea(t,e){return od.call(t,e)}const We=Array.isArray,et=t=>typeof t=="function",me=t=>typeof t=="string",Pe=t=>typeof t=="boolean",Ge=t=>t!==null&&typeof t=="object",ro=Object.prototype.toString,xa=t=>ro.call(t),De=t=>xa(t)==="[object Object]",sd=t=>t==null?"":We(t)||De(t)&&t.toString===ro?JSON.stringify(t,null,2):String(t);/*!
|
|
10
10
|
* message-compiler v9.2.2
|
|
11
11
|
* (c) 2022 kazuya kawaguchi
|
|
12
12
|
* Released under the MIT License.
|
|
13
|
-
*/const
|
|
14
|
-
`,Ku=String.fromCharCode(8232),Xu=String.fromCharCode(8233);function Qu(t){const e=t;let r=0,n=1,a=1,i=0;const o=z=>e[z]===Ju&&e[z+1]===gt,s=z=>e[z]===gt,l=z=>e[z]===Xu,u=z=>e[z]===Ku,f=z=>o(z)||s(z)||l(z)||u(z),x=()=>r,y=()=>n,w=()=>a,S=()=>i,T=z=>o(z)||l(z)||u(z)?gt:e[z],N=()=>T(r),C=()=>T(r+i);function E(){return i=0,f(r)&&(n++,a=0),o(r)&&r++,r++,a++,e[r]}function A(){return o(r+i)&&i++,i++,e[r+i]}function I(){r=0,n=1,a=1,i=0}function D(z=0){i=z}function P(){const z=r+i;for(;z!==r;)E();i=0}return{index:x,line:y,column:w,peekOffset:S,charAt:T,currentChar:N,currentPeek:C,next:E,peek:A,reset:I,resetPeek:D,skipToPeek:P}}const Qt=void 0,Gi="'",ed="tokenizer";function td(t,e={}){const r=e.location!==!1,n=Qu(t),a=()=>n.index(),i=()=>Zu(n.line(),n.column(),n.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:f}=e;function x(_,b,O,...te){const le=u();if(b.column+=O,b.offset+=O,f){const de=ma(le.startLoc,b),M=xn(_,de,{domain:ed,args:te});f(M)}}function y(_,b,O){_.endLoc=i(),_.currentType=b;const te={type:b};return r&&(te.loc=ma(_.startLoc,_.endLoc)),O!=null&&(te.value=O),te}const w=_=>y(_,14);function S(_,b){return _.currentChar()===b?(_.next(),b):(x(je.EXPECTED_TOKEN,i(),0,b),"")}function T(_){let b="";for(;_.currentPeek()===Gt||_.currentPeek()===gt;)b+=_.currentPeek(),_.peek();return b}function N(_){const b=T(_);return _.skipToPeek(),b}function C(_){if(_===Qt)return!1;const b=_.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function E(_){if(_===Qt)return!1;const b=_.charCodeAt(0);return b>=48&&b<=57}function A(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=C(_.currentPeek());return _.resetPeek(),te}function I(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=_.currentPeek()==="-"?_.peek():_.currentPeek(),le=E(te);return _.resetPeek(),le}function D(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=_.currentPeek()===Gi;return _.resetPeek(),te}function P(_,b){const{currentType:O}=b;if(O!==8)return!1;T(_);const te=_.currentPeek()===".";return _.resetPeek(),te}function z(_,b){const{currentType:O}=b;if(O!==9)return!1;T(_);const te=C(_.currentPeek());return _.resetPeek(),te}function Y(_,b){const{currentType:O}=b;if(!(O===8||O===12))return!1;T(_);const te=_.currentPeek()===":";return _.resetPeek(),te}function Q(_,b){const{currentType:O}=b;if(O!==10)return!1;const te=()=>{const de=_.currentPeek();return de==="{"?C(_.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===Gt||!de?!1:de===gt?(_.peek(),te()):C(de)},le=te();return _.resetPeek(),le}function B(_){T(_);const b=_.currentPeek()==="|";return _.resetPeek(),b}function G(_){const b=T(_),O=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:O,hasSpace:b.length>0}}function re(_,b=!0){const O=(le=!1,de="",M=!1)=>{const c=_.currentPeek();return c==="{"?de==="%"?!1:le:c==="@"||!c?de==="%"?!0:le:c==="%"?(_.peek(),O(le,"%",!0)):c==="|"?de==="%"||M?!0:!(de===Gt||de===gt):c===Gt?(_.peek(),O(!0,Gt,M)):c===gt?(_.peek(),O(!0,gt,M)):!0},te=O();return b&&_.resetPeek(),te}function L(_,b){const O=_.currentChar();return O===Qt?Qt:b(O)?(_.next(),O):null}function q(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36})}function $(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=48&&te<=57})}function j(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102})}function V(_){let b="",O="";for(;b=$(_);)O+=b;return O}function Z(_){N(_);const b=_.currentChar();return b!=="%"&&x(je.EXPECTED_TOKEN,i(),0,b),_.next(),"%"}function se(_){let b="";for(;;){const O=_.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O==="%")if(re(_))b+=O,_.next();else break;else if(O===Gt||O===gt)if(re(_))b+=O,_.next();else{if(B(_))break;b+=O,_.next()}else b+=O,_.next()}return b}function ie(_){N(_);let b="",O="";for(;b=q(_);)O+=b;return _.currentChar()===Qt&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),O}function F(_){N(_);let b="";return _.currentChar()==="-"?(_.next(),b+=`-${V(_)}`):b+=V(_),_.currentChar()===Qt&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),b}function ee(_){N(_),S(_,"'");let b="",O="";const te=de=>de!==Gi&&de!==gt;for(;b=L(_,te);)b==="\\"?O+=ne(_):O+=b;const le=_.currentChar();return le===gt||le===Qt?(x(je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),le===gt&&(_.next(),S(_,"'")),O):(S(_,"'"),O)}function ne(_){const b=_.currentChar();switch(b){case"\\":case"'":return _.next(),`\\${b}`;case"u":return J(_,b,4);case"U":return J(_,b,6);default:return x(je.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function J(_,b,O){S(_,b);let te="";for(let le=0;le<O;le++){const de=j(_);if(!de){x(je.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${te}${_.currentChar()}`);break}te+=de}return`\\${b}${te}`}function we(_){N(_);let b="",O="";const te=le=>le!=="{"&&le!=="}"&&le!==Gt&&le!==gt;for(;b=L(_,te);)O+=b;return O}function _e(_){let b="",O="";for(;b=q(_);)O+=b;return O}function Oe(_){const b=(O=!1,te)=>{const le=_.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||!le||le===Gt?te:le===gt?(te+=le,_.next(),b(O,te)):(te+=le,_.next(),b(!0,te))};return b(!1,"")}function ye(_){N(_);const b=S(_,"|");return N(_),b}function Be(_,b){let O=null;switch(_.currentChar()){case"{":return b.braceNest>=1&&x(je.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),O=y(b,2,"{"),N(_),b.braceNest++,O;case"}":return b.braceNest>0&&b.currentType===2&&x(je.EMPTY_PLACEHOLDER,i(),0),_.next(),O=y(b,3,"}"),b.braceNest--,b.braceNest>0&&N(_),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),O;case"@":return b.braceNest>0&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),O=Ie(_,b)||w(b),b.braceNest=0,O;default:let le=!0,de=!0,M=!0;if(B(_))return b.braceNest>0&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),O=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,O;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return x(je.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,W(_,b);if(le=A(_,b))return O=y(b,5,ie(_)),N(_),O;if(de=I(_,b))return O=y(b,6,F(_)),N(_),O;if(M=D(_,b))return O=y(b,7,ee(_)),N(_),O;if(!le&&!de&&!M)return O=y(b,13,we(_)),x(je.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O.value),N(_),O;break}return O}function Ie(_,b){const{currentType:O}=b;let te=null;const le=_.currentChar();switch((O===8||O===9||O===12||O===10)&&(le===gt||le===Gt)&&x(je.INVALID_LINKED_FORMAT,i(),0),le){case"@":return _.next(),te=y(b,8,"@"),b.inLinked=!0,te;case".":return N(_),_.next(),y(b,9,".");case":":return N(_),_.next(),y(b,10,":");default:return B(_)?(te=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,te):P(_,b)||Y(_,b)?(N(_),Ie(_,b)):z(_,b)?(N(_),y(b,12,_e(_))):Q(_,b)?(N(_),le==="{"?Be(_,b)||te:y(b,11,Oe(_))):(O===8&&x(je.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,W(_,b))}}function W(_,b){let O={type:14};if(b.braceNest>0)return Be(_,b)||w(b);if(b.inLinked)return Ie(_,b)||w(b);switch(_.currentChar()){case"{":return Be(_,b)||w(b);case"}":return x(je.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),y(b,3,"}");case"@":return Ie(_,b)||w(b);default:if(B(_))return O=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,O;const{isModulo:le,hasSpace:de}=G(_);if(le)return de?y(b,0,se(_)):y(b,4,Z(_));if(re(_))return y(b,0,se(_));break}return O}function ae(){const{currentType:_,offset:b,startLoc:O,endLoc:te}=l;return l.lastType=_,l.lastOffset=b,l.lastStartLoc=O,l.lastEndLoc=te,l.offset=a(),l.startLoc=i(),n.currentChar()===Qt?y(l,14):W(n,l)}return{nextToken:ae,currentOffset:a,currentPosition:i,context:u}}const rd="parser",nd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ad(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"\uFFFD"}}}function id(t={}){const e=t.location!==!1,{onError:r}=t;function n(C,E,A,I,...D){const P=C.currentPosition();if(P.offset+=I,P.column+=I,r){const z=ma(A,P),Y=xn(E,z,{domain:rd,args:D});r(Y)}}function a(C,E,A){const I={type:C,start:E,end:E};return e&&(I.loc={start:A,end:A}),I}function i(C,E,A,I){C.end=E,I&&(C.type=I),e&&C.loc&&(C.loc.end=A)}function o(C,E){const A=C.context(),I=a(3,A.offset,A.startLoc);return I.value=E,i(I,C.currentOffset(),C.currentPosition()),I}function s(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(5,I,D);return P.index=parseInt(E,10),C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function l(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(4,I,D);return P.key=E,C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function u(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(9,I,D);return P.value=E.replace(nd,ad),C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function f(C){const E=C.nextToken(),A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(8,I,D);return E.type!==12?(n(C,je.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),P.value="",i(P,I,D),{nextConsumeToken:E,node:P}):(E.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,Vt(E)),P.value=E.value||"",i(P,C.currentOffset(),C.currentPosition()),{node:P})}function x(C,E){const A=C.context(),I=a(7,A.offset,A.startLoc);return I.value=E,i(I,C.currentOffset(),C.currentPosition()),I}function y(C){const E=C.context(),A=a(6,E.offset,E.startLoc);let I=C.nextToken();if(I.type===9){const D=f(C);A.modifier=D.node,I=D.nextConsumeToken||C.nextToken()}switch(I.type!==10&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),I=C.nextToken(),I.type===2&&(I=C.nextToken()),I.type){case 11:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=x(C,I.value||"");break;case 5:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=l(C,I.value||"");break;case 6:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=s(C,I.value||"");break;case 7:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=u(C,I.value||"");break;default:n(C,je.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const D=C.context(),P=a(7,D.offset,D.startLoc);return P.value="",i(P,D.offset,D.startLoc),A.key=P,i(A,D.offset,D.startLoc),{nextConsumeToken:I,node:A}}return i(A,C.currentOffset(),C.currentPosition()),{node:A}}function w(C){const E=C.context(),A=E.currentType===1?C.currentOffset():E.offset,I=E.currentType===1?E.endLoc:E.startLoc,D=a(2,A,I);D.items=[];let P=null;do{const Q=P||C.nextToken();switch(P=null,Q.type){case 0:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(o(C,Q.value||""));break;case 6:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(s(C,Q.value||""));break;case 5:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(l(C,Q.value||""));break;case 7:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(u(C,Q.value||""));break;case 8:const B=y(C);D.items.push(B.node),P=B.nextConsumeToken||null;break}}while(E.currentType!==14&&E.currentType!==1);const z=E.currentType===1?E.lastOffset:C.currentOffset(),Y=E.currentType===1?E.lastEndLoc:C.currentPosition();return i(D,z,Y),D}function S(C,E,A,I){const D=C.context();let P=I.items.length===0;const z=a(1,E,A);z.cases=[],z.cases.push(I);do{const Y=w(C);P||(P=Y.items.length===0),z.cases.push(Y)}while(D.currentType!==14);return P&&n(C,je.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(z,C.currentOffset(),C.currentPosition()),z}function T(C){const E=C.context(),{offset:A,startLoc:I}=E,D=w(C);return E.currentType===14?D:S(C,A,I,D)}function N(C){const E=td(C,lt({},t)),A=E.context(),I=a(0,A.offset,A.startLoc);return e&&I.loc&&(I.loc.source=C),I.body=T(E),A.currentType!==14&&n(E,je.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,C[A.offset]||""),i(I,E.currentOffset(),E.currentPosition()),I}return{parse:N}}function Vt(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function od(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function Wi(t,e){for(let r=0;r<t.length;r++)pa(t[r],e)}function pa(t,e){switch(t.type){case 1:Wi(t.cases,e),e.helper("plural");break;case 2:Wi(t.items,e);break;case 6:pa(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function sd(t,e={}){const r=od(t);r.helper("normalize"),t.body&&pa(t.body,r);const n=r.context();t.helpers=Array.from(n.helpers)}function ld(t,e){const{sourceMap:r,filename:n,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},s=()=>o;function l(T,N){o.code+=T}function u(T,N=!0){const C=N?a:"";l(i?C+" ".repeat(T):C)}function f(T=!0){const N=++o.indentLevel;T&&u(N)}function x(T=!0){const N=--o.indentLevel;T&&u(N)}function y(){u(o.indentLevel)}return{context:s,push:l,indent:f,deindent:x,newline:y,helper:T=>`_${T}`,needIndent:()=>o.needIndent}}function cd(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Ir(t,e.key),e.modifier?(t.push(", "),Ir(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function ud(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const a=e.items.length;for(let i=0;i<a&&(Ir(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function dd(t,e){const{helper:r,needIndent:n}=t;if(e.cases.length>1){t.push(`${r("plural")}([`),t.indent(n());const a=e.cases.length;for(let i=0;i<a&&(Ir(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function fd(t,e){e.body?Ir(t,e.body):t.push("null")}function Ir(t,e){const{helper:r}=t;switch(e.type){case 0:fd(t,e);break;case 1:dd(t,e);break;case 2:ud(t,e);break;case 6:cd(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${r("interpolate")}(${r("list")}(${e.index}))`,e);break;case 4:t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const hd=(t,e={})=>{const r=me(e.mode)?e.mode:"normal",n=me(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":`
|
|
15
|
-
`,o=e.needIndent?e.needIndent:
|
|
13
|
+
*/const Ve={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Ir(t,e,n={}){const{domain:r,messages:a,args:i}=n,o=t,s=new SyntaxError(String(o));return s.code=t,e&&(s.location=e),s.domain=r,s}function ld(t){throw t}function cd(t,e,n){return{line:t,column:e,offset:n}}function wa(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const $t=" ",ud="\r",vt=`
|
|
14
|
+
`,dd=String.fromCharCode(8232),hd=String.fromCharCode(8233);function fd(t){const e=t;let n=0,r=1,a=1,i=0;const o=z=>e[z]===ud&&e[z+1]===vt,s=z=>e[z]===vt,c=z=>e[z]===hd,l=z=>e[z]===dd,h=z=>o(z)||s(z)||c(z)||l(z),x=()=>n,y=()=>r,w=()=>a,S=()=>i,C=z=>o(z)||c(z)||l(z)?vt:e[z],N=()=>C(n),k=()=>C(n+i);function E(){return i=0,h(n)&&(r++,a=0),o(n)&&n++,n++,a++,e[n]}function D(){return o(n+i)&&i++,i++,e[n+i]}function I(){n=0,r=1,a=1,i=0}function T(z=0){i=z}function P(){const z=n+i;for(;z!==n;)E();i=0}return{index:x,line:y,column:w,peekOffset:S,charAt:C,currentChar:N,currentPeek:k,next:E,peek:D,reset:I,resetPeek:T,skipToPeek:P}}const nn=void 0,ao="'",md="tokenizer";function pd(t,e={}){const n=e.location!==!1,r=fd(t),a=()=>r.index(),i=()=>cd(r.line(),r.column(),r.index()),o=i(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:h}=e;function x(_,b,L,...te){const le=l();if(b.column+=L,b.offset+=L,h){const de=wa(le.startLoc,b),M=Ir(_,de,{domain:md,args:te});h(M)}}function y(_,b,L){_.endLoc=i(),_.currentType=b;const te={type:b};return n&&(te.loc=wa(_.startLoc,_.endLoc)),L!=null&&(te.value=L),te}const w=_=>y(_,14);function S(_,b){return _.currentChar()===b?(_.next(),b):(x(Ve.EXPECTED_TOKEN,i(),0,b),"")}function C(_){let b="";for(;_.currentPeek()===$t||_.currentPeek()===vt;)b+=_.currentPeek(),_.peek();return b}function N(_){const b=C(_);return _.skipToPeek(),b}function k(_){if(_===nn)return!1;const b=_.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function E(_){if(_===nn)return!1;const b=_.charCodeAt(0);return b>=48&&b<=57}function D(_,b){const{currentType:L}=b;if(L!==2)return!1;C(_);const te=k(_.currentPeek());return _.resetPeek(),te}function I(_,b){const{currentType:L}=b;if(L!==2)return!1;C(_);const te=_.currentPeek()==="-"?_.peek():_.currentPeek(),le=E(te);return _.resetPeek(),le}function T(_,b){const{currentType:L}=b;if(L!==2)return!1;C(_);const te=_.currentPeek()===ao;return _.resetPeek(),te}function P(_,b){const{currentType:L}=b;if(L!==8)return!1;C(_);const te=_.currentPeek()===".";return _.resetPeek(),te}function z(_,b){const{currentType:L}=b;if(L!==9)return!1;C(_);const te=k(_.currentPeek());return _.resetPeek(),te}function Y(_,b){const{currentType:L}=b;if(!(L===8||L===12))return!1;C(_);const te=_.currentPeek()===":";return _.resetPeek(),te}function Q(_,b){const{currentType:L}=b;if(L!==10)return!1;const te=()=>{const de=_.currentPeek();return de==="{"?k(_.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===$t||!de?!1:de===vt?(_.peek(),te()):k(de)},le=te();return _.resetPeek(),le}function B(_){C(_);const b=_.currentPeek()==="|";return _.resetPeek(),b}function W(_){const b=C(_),L=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:L,hasSpace:b.length>0}}function ne(_,b=!0){const L=(le=!1,de="",M=!1)=>{const u=_.currentPeek();return u==="{"?de==="%"?!1:le:u==="@"||!u?de==="%"?!0:le:u==="%"?(_.peek(),L(le,"%",!0)):u==="|"?de==="%"||M?!0:!(de===$t||de===vt):u===$t?(_.peek(),L(!0,$t,M)):u===vt?(_.peek(),L(!0,vt,M)):!0},te=L();return b&&_.resetPeek(),te}function R(_,b){const L=_.currentChar();return L===nn?nn:b(L)?(_.next(),L):null}function q(_){return R(_,L=>{const te=L.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36})}function $(_){return R(_,L=>{const te=L.charCodeAt(0);return te>=48&&te<=57})}function V(_){return R(_,L=>{const te=L.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102})}function j(_){let b="",L="";for(;b=$(_);)L+=b;return L}function Z(_){N(_);const b=_.currentChar();return b!=="%"&&x(Ve.EXPECTED_TOKEN,i(),0,b),_.next(),"%"}function se(_){let b="";for(;;){const L=_.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L==="%")if(ne(_))b+=L,_.next();else break;else if(L===$t||L===vt)if(ne(_))b+=L,_.next();else{if(B(_))break;b+=L,_.next()}else b+=L,_.next()}return b}function ie(_){N(_);let b="",L="";for(;b=q(_);)L+=b;return _.currentChar()===nn&&x(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),L}function F(_){N(_);let b="";return _.currentChar()==="-"?(_.next(),b+=`-${j(_)}`):b+=j(_),_.currentChar()===nn&&x(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),b}function ee(_){N(_),S(_,"'");let b="",L="";const te=de=>de!==ao&&de!==vt;for(;b=R(_,te);)b==="\\"?L+=re(_):L+=b;const le=_.currentChar();return le===vt||le===nn?(x(Ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),le===vt&&(_.next(),S(_,"'")),L):(S(_,"'"),L)}function re(_){const b=_.currentChar();switch(b){case"\\":case"'":return _.next(),`\\${b}`;case"u":return K(_,b,4);case"U":return K(_,b,6);default:return x(Ve.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function K(_,b,L){S(_,b);let te="";for(let le=0;le<L;le++){const de=V(_);if(!de){x(Ve.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${te}${_.currentChar()}`);break}te+=de}return`\\${b}${te}`}function we(_){N(_);let b="",L="";const te=le=>le!=="{"&&le!=="}"&&le!==$t&&le!==vt;for(;b=R(_,te);)L+=b;return L}function _e(_){let b="",L="";for(;b=q(_);)L+=b;return L}function Me(_){const b=(L=!1,te)=>{const le=_.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||!le||le===$t?te:le===vt?(te+=le,_.next(),b(L,te)):(te+=le,_.next(),b(!0,te))};return b(!1,"")}function ye(_){N(_);const b=S(_,"|");return N(_),b}function Ue(_,b){let L=null;switch(_.currentChar()){case"{":return b.braceNest>=1&&x(Ve.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),L=y(b,2,"{"),N(_),b.braceNest++,L;case"}":return b.braceNest>0&&b.currentType===2&&x(Ve.EMPTY_PLACEHOLDER,i(),0),_.next(),L=y(b,3,"}"),b.braceNest--,b.braceNest>0&&N(_),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),L;case"@":return b.braceNest>0&&x(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),L=ke(_,b)||w(b),b.braceNest=0,L;default:let le=!0,de=!0,M=!0;if(B(_))return b.braceNest>0&&x(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),L=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,L;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return x(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,G(_,b);if(le=D(_,b))return L=y(b,5,ie(_)),N(_),L;if(de=I(_,b))return L=y(b,6,F(_)),N(_),L;if(M=T(_,b))return L=y(b,7,ee(_)),N(_),L;if(!le&&!de&&!M)return L=y(b,13,we(_)),x(Ve.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,L.value),N(_),L;break}return L}function ke(_,b){const{currentType:L}=b;let te=null;const le=_.currentChar();switch((L===8||L===9||L===12||L===10)&&(le===vt||le===$t)&&x(Ve.INVALID_LINKED_FORMAT,i(),0),le){case"@":return _.next(),te=y(b,8,"@"),b.inLinked=!0,te;case".":return N(_),_.next(),y(b,9,".");case":":return N(_),_.next(),y(b,10,":");default:return B(_)?(te=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,te):P(_,b)||Y(_,b)?(N(_),ke(_,b)):z(_,b)?(N(_),y(b,12,_e(_))):Q(_,b)?(N(_),le==="{"?Ue(_,b)||te:y(b,11,Me(_))):(L===8&&x(Ve.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,G(_,b))}}function G(_,b){let L={type:14};if(b.braceNest>0)return Ue(_,b)||w(b);if(b.inLinked)return ke(_,b)||w(b);switch(_.currentChar()){case"{":return Ue(_,b)||w(b);case"}":return x(Ve.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),y(b,3,"}");case"@":return ke(_,b)||w(b);default:if(B(_))return L=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,L;const{isModulo:le,hasSpace:de}=W(_);if(le)return de?y(b,0,se(_)):y(b,4,Z(_));if(ne(_))return y(b,0,se(_));break}return L}function ae(){const{currentType:_,offset:b,startLoc:L,endLoc:te}=c;return c.lastType=_,c.lastOffset=b,c.lastStartLoc=L,c.lastEndLoc=te,c.offset=a(),c.startLoc=i(),r.currentChar()===nn?y(c,14):G(r,c)}return{nextToken:ae,currentOffset:a,currentPosition:i,context:l}}const gd="parser",vd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function yd(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function bd(t={}){const e=t.location!==!1,{onError:n}=t;function r(k,E,D,I,...T){const P=k.currentPosition();if(P.offset+=I,P.column+=I,n){const z=wa(D,P),Y=Ir(E,z,{domain:gd,args:T});n(Y)}}function a(k,E,D){const I={type:k,start:E,end:E};return e&&(I.loc={start:D,end:D}),I}function i(k,E,D,I){k.end=E,I&&(k.type=I),e&&k.loc&&(k.loc.end=D)}function o(k,E){const D=k.context(),I=a(3,D.offset,D.startLoc);return I.value=E,i(I,k.currentOffset(),k.currentPosition()),I}function s(k,E){const D=k.context(),{lastOffset:I,lastStartLoc:T}=D,P=a(5,I,T);return P.index=parseInt(E,10),k.nextToken(),i(P,k.currentOffset(),k.currentPosition()),P}function c(k,E){const D=k.context(),{lastOffset:I,lastStartLoc:T}=D,P=a(4,I,T);return P.key=E,k.nextToken(),i(P,k.currentOffset(),k.currentPosition()),P}function l(k,E){const D=k.context(),{lastOffset:I,lastStartLoc:T}=D,P=a(9,I,T);return P.value=E.replace(vd,yd),k.nextToken(),i(P,k.currentOffset(),k.currentPosition()),P}function h(k){const E=k.nextToken(),D=k.context(),{lastOffset:I,lastStartLoc:T}=D,P=a(8,I,T);return E.type!==12?(r(k,Ve.UNEXPECTED_EMPTY_LINKED_MODIFIER,D.lastStartLoc,0),P.value="",i(P,I,T),{nextConsumeToken:E,node:P}):(E.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,Vt(E)),P.value=E.value||"",i(P,k.currentOffset(),k.currentPosition()),{node:P})}function x(k,E){const D=k.context(),I=a(7,D.offset,D.startLoc);return I.value=E,i(I,k.currentOffset(),k.currentPosition()),I}function y(k){const E=k.context(),D=a(6,E.offset,E.startLoc);let I=k.nextToken();if(I.type===9){const T=h(k);D.modifier=T.node,I=T.nextConsumeToken||k.nextToken()}switch(I.type!==10&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),I=k.nextToken(),I.type===2&&(I=k.nextToken()),I.type){case 11:I.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),D.key=x(k,I.value||"");break;case 5:I.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),D.key=c(k,I.value||"");break;case 6:I.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),D.key=s(k,I.value||"");break;case 7:I.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),D.key=l(k,I.value||"");break;default:r(k,Ve.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const T=k.context(),P=a(7,T.offset,T.startLoc);return P.value="",i(P,T.offset,T.startLoc),D.key=P,i(D,T.offset,T.startLoc),{nextConsumeToken:I,node:D}}return i(D,k.currentOffset(),k.currentPosition()),{node:D}}function w(k){const E=k.context(),D=E.currentType===1?k.currentOffset():E.offset,I=E.currentType===1?E.endLoc:E.startLoc,T=a(2,D,I);T.items=[];let P=null;do{const Q=P||k.nextToken();switch(P=null,Q.type){case 0:Q.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(o(k,Q.value||""));break;case 6:Q.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(s(k,Q.value||""));break;case 5:Q.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(c(k,Q.value||""));break;case 7:Q.value==null&&r(k,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(l(k,Q.value||""));break;case 8:const B=y(k);T.items.push(B.node),P=B.nextConsumeToken||null;break}}while(E.currentType!==14&&E.currentType!==1);const z=E.currentType===1?E.lastOffset:k.currentOffset(),Y=E.currentType===1?E.lastEndLoc:k.currentPosition();return i(T,z,Y),T}function S(k,E,D,I){const T=k.context();let P=I.items.length===0;const z=a(1,E,D);z.cases=[],z.cases.push(I);do{const Y=w(k);P||(P=Y.items.length===0),z.cases.push(Y)}while(T.currentType!==14);return P&&r(k,Ve.MUST_HAVE_MESSAGES_IN_PLURAL,D,0),i(z,k.currentOffset(),k.currentPosition()),z}function C(k){const E=k.context(),{offset:D,startLoc:I}=E,T=w(k);return E.currentType===14?T:S(k,D,I,T)}function N(k){const E=pd(k,lt({},t)),D=E.context(),I=a(0,D.offset,D.startLoc);return e&&I.loc&&(I.loc.source=k),I.body=C(E),D.currentType!==14&&r(E,Ve.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,k[D.offset]||""),i(I,E.currentOffset(),E.currentPosition()),I}return{parse:N}}function Vt(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function Ed(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function io(t,e){for(let n=0;n<t.length;n++)_a(t[n],e)}function _a(t,e){switch(t.type){case 1:io(t.cases,e),e.helper("plural");break;case 2:io(t.items,e);break;case 6:_a(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function xd(t,e={}){const n=Ed(t);n.helper("normalize"),t.body&&_a(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function wd(t,e){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},s=()=>o;function c(C,N){o.code+=C}function l(C,N=!0){const k=N?a:"";c(i?k+" ".repeat(C):k)}function h(C=!0){const N=++o.indentLevel;C&&l(N)}function x(C=!0){const N=--o.indentLevel;C&&l(N)}function y(){l(o.indentLevel)}return{context:s,push:c,indent:h,deindent:x,newline:y,helper:C=>`_${C}`,needIndent:()=>o.needIndent}}function _d(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),An(t,e.key),e.modifier?(t.push(", "),An(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function Sd(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const a=e.items.length;for(let i=0;i<a&&(An(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function Id(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const a=e.cases.length;for(let i=0;i<a&&(An(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function Cd(t,e){e.body?An(t,e.body):t.push("null")}function An(t,e){const{helper:n}=t;switch(e.type){case 0:Cd(t,e);break;case 1:Id(t,e);break;case 2:Sd(t,e);break;case 6:_d(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const kd=(t,e={})=>{const n=me(e.mode)?e.mode:"normal",r=me(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
15
|
+
`,o=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],c=wd(t,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${s.map(x=>`${x}: _${x}`).join(", ")} } = ctx`),c.newline()),c.push("return "),An(c,t),c.deindent(o),c.push("}");const{code:l,map:h}=c.context();return{ast:t,code:l,map:h?h.toJSON():void 0}};function Ad(t,e={}){const n=lt({},e),a=bd(n).parse(t);return xd(a,n),kd(a,n)}/*!
|
|
16
16
|
* devtools-if v9.2.2
|
|
17
17
|
* (c) 2022 kazuya kawaguchi
|
|
18
18
|
* Released under the MIT License.
|
|
19
|
-
*/const
|
|
19
|
+
*/const oo={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
|
20
20
|
* core-base v9.2.2
|
|
21
21
|
* (c) 2022 kazuya kawaguchi
|
|
22
22
|
* Released under the MIT License.
|
|
23
|
-
*/const er=[];er[0]={w:[0],i:[3,0],["["]:[4],o:[7]},er[1]={w:[1],["."]:[2],["["]:[4],o:[7]},er[2]={w:[2],i:[3,0],[0]:[3,0]},er[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},er[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},er[5]={["'"]:[4,0],o:8,l:[5,0]},er[6]={['"']:[4,0],o:8,l:[6,0]};const pd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function gd(t){return pd.test(t)}function vd(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function yd(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function bd(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:gd(e)?vd(e):"*"+e}function Ed(t){const e=[];let r=-1,n=0,a=0,i,o,s,l,u,f,x;const y=[];y[0]=()=>{o===void 0?o=s:o+=s},y[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,n=4,y[0]();else{if(a=0,o===void 0||(o=bd(o),o===!1))return!1;y[1]()}};function w(){const S=t[r+1];if(n===5&&S==="'"||n===6&&S==='"')return r++,s="\\"+S,y[0](),!0}for(;n!==null;)if(r++,i=t[r],!(i==="\\"&&w())){if(l=yd(i),x=er[n],u=x[l]||x.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(s=i,f()===!1))))return;if(n===7)return e}}const Yi=new Map;function xd(t,e){return We(t)?t[e]:null}function wd(t,e){if(!We(t))return null;let r=Yi.get(e);if(r||(r=Ed(e),r&&Yi.set(e,r)),!r)return null;const n=r.length;let a=t,i=0;for(;i<n;){const o=a[r[i]];if(o===void 0)return null;a=o,i++}return a}const _d=t=>t,Sd=t=>"",Id="text",Cd=t=>t.length===0?"":t.join(""),Td=$u;function Zi(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function kd(t){const e=at(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(at(t.named.count)||at(t.named.n))?at(t.named.count)?t.named.count:at(t.named.n)?t.named.n:e:e}function Ad(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Dd(t={}){const e=t.locale,r=kd(t),n=We(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?t.pluralRules[e]:Zi,a=We(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?Zi:void 0,i=C=>C[n(r,C.length,a)],o=t.list||[],s=C=>o[C],l=t.named||{};at(t.pluralIndex)&&Ad(r,l);const u=C=>l[C];function f(C){const E=et(t.messages)?t.messages(C):We(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):Sd)}const x=C=>t.modifiers?t.modifiers[C]:_d,y=Ce(t.processor)&&et(t.processor.normalize)?t.processor.normalize:Cd,w=Ce(t.processor)&&et(t.processor.interpolate)?t.processor.interpolate:Td,S=Ce(t.processor)&&me(t.processor.type)?t.processor.type:Id,N={list:s,named:u,plural:i,linked:(C,...E)=>{const[A,I]=E;let D="text",P="";E.length===1?We(A)?(P=A.modifier||P,D=A.type||D):me(A)&&(P=A||P):E.length===2&&(me(A)&&(P=A||P),me(I)&&(D=I||D));let z=f(C)(N);return D==="vnode"&&Ge(z)&&P&&(z=z[0]),P?x(P)(z,D):z},message:f,type:S,interpolate:w,normalize:y};return N}let Zr=null;function Nd(t){Zr=t}function Od(t,e,r){Zr&&Zr.emit($i.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:r})}const Rd=Ld($i.FunctionTranslate);function Ld(t){return e=>Zr&&Zr.emit(t,e)}const Md={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function Pd(t,e,r){return[...new Set([r,...Ge(e)?e:We(e)?Object.keys(e):me(e)?[e]:[r]])]}function Ji(t,e,r){const n=me(r)?r:Jr,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(n);if(!i){i=[];let o=[r];for(;Ge(o);)o=Ki(i,o,e);const s=Ge(e)||!Ce(e)?e:e.default?e.default:null;o=me(s)?[s]:s,Ge(o)&&Ki(i,o,!1),a.__localeChainCache.set(n,i)}return i}function Ki(t,e,r){let n=!0;for(let a=0;a<e.length&&Pe(n);a++){const i=e[a];me(i)&&(n=Fd(t,e[a],r))}return n}function Fd(t,e,r){let n;const a=e.split("-");do{const i=a.join("-");n=zd(t,i,r),a.splice(-1,1)}while(a.length&&n===!0);return n}function zd(t,e,r){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),(Ge(r)||Ce(r))&&r[a]&&(n=r[a])}return n}const Bd="9.2.2",wn=-1,Jr="en-US",Xi="",Qi=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Ud(){return{upper:(t,e)=>e==="text"&&me(t)?t.toUpperCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&me(t)?t.toLowerCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&me(t)?Qi(t):e==="vnode"&&We(t)&&"__v_isVNode"in t?Qi(t.children):t}}let eo;function Vd(t){eo=t}let to;function jd(t){to=t}let ro;function qd(t){ro=t}let no=null;const ao=t=>{no=t},Hd=()=>no;let io=null;const oo=t=>{io=t},Gd=()=>io;let so=0;function Wd(t={}){const e=me(t.version)?t.version:Bd,r=me(t.locale)?t.locale:Jr,n=Ge(t.fallbackLocale)||Ce(t.fallbackLocale)||me(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,a=Ce(t.messages)?t.messages:{[r]:{}},i=Ce(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},o=Ce(t.numberFormats)?t.numberFormats:{[r]:{}},s=lt({},t.modifiers||{},Ud()),l=t.pluralRules||{},u=et(t.missing)?t.missing:null,f=Pe(t.missingWarn)||Xt(t.missingWarn)?t.missingWarn:!0,x=Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,w=!!t.unresolving,S=et(t.postTranslation)?t.postTranslation:null,T=Ce(t.processor)?t.processor:null,N=Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter,E=et(t.messageCompiler)?t.messageCompiler:eo,A=et(t.messageResolver)?t.messageResolver:to||xd,I=et(t.localeFallbacker)?t.localeFallbacker:ro||Pd,D=We(t.fallbackContext)?t.fallbackContext:void 0,P=et(t.onWarn)?t.onWarn:Gu,z=t,Y=We(z.__datetimeFormatters)?z.__datetimeFormatters:new Map,Q=We(z.__numberFormatters)?z.__numberFormatters:new Map,B=We(z.__meta)?z.__meta:{};so++;const G={version:e,cid:so,locale:r,fallbackLocale:n,messages:a,modifiers:s,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:x,fallbackFormat:y,unresolving:w,postTranslation:S,processor:T,warnHtmlMessage:N,escapeParameter:C,messageCompiler:E,messageResolver:A,localeFallbacker:I,fallbackContext:D,onWarn:P,__meta:B};return G.datetimeFormats=i,G.numberFormats=o,G.__datetimeFormatters=Y,G.__numberFormatters=Q,__INTLIFY_PROD_DEVTOOLS__&&Od(G,e,B),G}function ga(t,e,r,n,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,r,e,a);return me(s)?s:e}else return e}function Kr(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}const $d=t=>t;let lo=Object.create(null);function Yd(t,e={}){{const n=(e.onCacheKey||$d)(t),a=lo[n];if(a)return a;let i=!1;const o=e.onError||Yu;e.onError=u=>{i=!0,o(u)};const{code:s}=md(t,e),l=new Function(`return ${s}`)();return i?l:lo[n]=l}}let co=je.__EXTEND_POINT__;const va=()=>++co,Cr={INVALID_ARGUMENT:co,INVALID_DATE_ARGUMENT:va(),INVALID_ISO_DATE_ARGUMENT:va(),__EXTEND_POINT__:va()};function Tr(t){return xn(t,null,void 0)}const uo=()=>"",jt=t=>et(t);function fo(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[l,u]=ya(...e),f=Pe(u.missingWarn)?u.missingWarn:t.missingWarn,x=Pe(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=Pe(u.escapeParameter)?u.escapeParameter:t.escapeParameter,w=!!u.resolvedMessage,S=me(u.default)||Pe(u.default)?Pe(u.default)?i?l:()=>l:u.default:r?i?l:()=>l:"",T=r||S!=="",N=me(u.locale)?u.locale:t.locale;y&&Zd(u);let[C,E,A]=w?[l,N,s[N]||{}]:ho(t,l,N,o,x,f),I=C,D=l;if(!w&&!(me(I)||jt(I))&&T&&(I=S,D=I),!w&&(!(me(I)||jt(I))||!me(E)))return a?wn:l;let P=!1;const z=()=>{P=!0},Y=jt(I)?I:mo(t,l,E,I,D,z);if(P)return I;const Q=Xd(t,E,A,u),B=Dd(Q),G=Jd(t,Y,B),re=n?n(G,l):G;if(__INTLIFY_PROD_DEVTOOLS__){const L={timestamp:Date.now(),key:me(l)?l:jt(I)?I.key:"",locale:E||(jt(I)?I.locale:""),format:me(I)?I:jt(I)?I.source:"",message:re};L.meta=lt({},t.__meta,Hd()||{}),Rd(L)}return re}function Zd(t){Ge(t.list)?t.list=t.list.map(e=>me(e)?qi(e):e):We(t.named)&&Object.keys(t.named).forEach(e=>{me(t.named[e])&&(t.named[e]=qi(t.named[e]))})}function ho(t,e,r,n,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=t,f=u(t,n,r);let x={},y,w=null;const S="translate";for(let T=0;T<f.length&&(y=f[T],x=o[y]||{},(w=l(x,e))===null&&(w=x[e]),!(me(w)||et(w)));T++){const N=ga(t,e,y,i,S);N!==e&&(w=N)}return[w,y,x]}function mo(t,e,r,n,a,i){const{messageCompiler:o,warnHtmlMessage:s}=t;if(jt(n)){const u=n;return u.locale=u.locale||r,u.key=u.key||e,u}if(o==null){const u=()=>n;return u.locale=r,u.key=e,u}const l=o(n,Kd(t,r,a,n,s,i));return l.locale=r,l.key=e,l.source=n,l}function Jd(t,e,r){return e(r)}function ya(...t){const[e,r,n]=t,a={};if(!me(e)&&!at(e)&&!jt(e))throw Tr(Cr.INVALID_ARGUMENT);const i=at(e)?String(e):(jt(e),e);return at(r)?a.plural=r:me(r)?a.default=r:Ce(r)&&!En(r)?a.named=r:Ge(r)&&(a.list=r),at(n)?a.plural=n:me(n)?a.default=n:Ce(n)&<(a,n),[i,a]}function Kd(t,e,r,n,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>ju(e,r,o)}}function Xd(t,e,r,n){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:a,pluralRules:i,messages:w=>{let S=o(r,w);if(S==null&&f){const[,,T]=ho(f,w,e,s,l,u);S=o(T,w)}if(me(S)){let T=!1;const C=mo(t,w,e,S,w,()=>{T=!0});return T?uo:C}else return jt(S)?S:uo}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),at(n.plural)&&(y.pluralIndex=n.plural),y}function po(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[l,u,f,x]=ba(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const w=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.DateTimeFormat(S,x).format(u);let N={},C,E=null;const A="datetime format";for(let P=0;P<T.length&&(C=T[P],N=r[C]||{},E=N[l],!Ce(E));P++)ga(t,l,C,y,A);if(!Ce(E)||!me(C))return n?wn:l;let I=`${C}__${l}`;En(x)||(I=`${I}__${JSON.stringify(x)}`);let D=s.get(I);return D||(D=new Intl.DateTimeFormat(C,lt({},E,x)),s.set(I,D)),w?D.formatToParts(u):D.format(u)}const go=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ba(...t){const[e,r,n,a]=t,i={};let o={},s;if(me(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Tr(Cr.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Tr(Cr.INVALID_ISO_DATE_ARGUMENT)}}else if(Hu(e)){if(isNaN(e.getTime()))throw Tr(Cr.INVALID_DATE_ARGUMENT);s=e}else if(at(e))s=e;else throw Tr(Cr.INVALID_ARGUMENT);return me(r)?i.key=r:Ce(r)&&Object.keys(r).forEach(l=>{go.includes(l)?o[l]=r[l]:i[l]=r[l]}),me(n)?i.locale=n:Ce(n)&&(o=n),Ce(a)&&(o=a),[i.key||"",s,i,o]}function vo(t,e,r){const n=t;for(const a in r){const i=`${e}__${a}`;!n.__datetimeFormatters.has(i)||n.__datetimeFormatters.delete(i)}}function yo(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[l,u,f,x]=Ea(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const w=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.NumberFormat(S,x).format(u);let N={},C,E=null;const A="number format";for(let P=0;P<T.length&&(C=T[P],N=r[C]||{},E=N[l],!Ce(E));P++)ga(t,l,C,y,A);if(!Ce(E)||!me(C))return n?wn:l;let I=`${C}__${l}`;En(x)||(I=`${I}__${JSON.stringify(x)}`);let D=s.get(I);return D||(D=new Intl.NumberFormat(C,lt({},E,x)),s.set(I,D)),w?D.formatToParts(u):D.format(u)}const bo=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ea(...t){const[e,r,n,a]=t,i={};let o={};if(!at(e))throw Tr(Cr.INVALID_ARGUMENT);const s=e;return me(r)?i.key=r:Ce(r)&&Object.keys(r).forEach(l=>{bo.includes(l)?o[l]=r[l]:i[l]=r[l]}),me(n)?i.locale=n:Ce(n)&&(o=n),Ce(a)&&(o=a),[i.key||"",s,i,o]}function Eo(t,e,r){const n=t;for(const a in r){const i=`${e}__${a}`;!n.__numberFormatters.has(i)||n.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yr().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
|
23
|
+
*/const rn=[];rn[0]={w:[0],i:[3,0],["["]:[4],o:[7]},rn[1]={w:[1],["."]:[2],["["]:[4],o:[7]},rn[2]={w:[2],i:[3,0],[0]:[3,0]},rn[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},rn[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},rn[5]={["'"]:[4,0],o:8,l:[5,0]},rn[6]={['"']:[4,0],o:8,l:[6,0]};const Dd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Td(t){return Dd.test(t)}function Nd(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function Ld(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Od(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:Td(e)?Nd(e):"*"+e}function Rd(t){const e=[];let n=-1,r=0,a=0,i,o,s,c,l,h,x;const y=[];y[0]=()=>{o===void 0?o=s:o+=s},y[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,r=4,y[0]();else{if(a=0,o===void 0||(o=Od(o),o===!1))return!1;y[1]()}};function w(){const S=t[n+1];if(r===5&&S==="'"||r===6&&S==='"')return n++,s="\\"+S,y[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&w())){if(c=Ld(i),x=rn[r],l=x[c]||x.l||8,l===8||(r=l[0],l[1]!==void 0&&(h=y[l[1]],h&&(s=i,h()===!1))))return;if(r===7)return e}}const so=new Map;function Md(t,e){return Ge(t)?t[e]:null}function Pd(t,e){if(!Ge(t))return null;let n=so.get(e);if(n||(n=Rd(e),n&&so.set(e,n)),!n)return null;const r=n.length;let a=t,i=0;for(;i<r;){const o=a[n[i]];if(o===void 0)return null;a=o,i++}return a}const Fd=t=>t,zd=t=>"",Bd="text",Ud=t=>t.length===0?"":t.join(""),jd=sd;function lo(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function Vd(t){const e=at(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(at(t.named.count)||at(t.named.n))?at(t.named.count)?t.named.count:at(t.named.n)?t.named.n:e:e}function qd(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Hd(t={}){const e=t.locale,n=Vd(t),r=Ge(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?t.pluralRules[e]:lo,a=Ge(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?lo:void 0,i=k=>k[r(n,k.length,a)],o=t.list||[],s=k=>o[k],c=t.named||{};at(t.pluralIndex)&&qd(n,c);const l=k=>c[k];function h(k){const E=et(t.messages)?t.messages(k):Ge(t.messages)?t.messages[k]:!1;return E||(t.parent?t.parent.message(k):zd)}const x=k=>t.modifiers?t.modifiers[k]:Fd,y=De(t.processor)&&et(t.processor.normalize)?t.processor.normalize:Ud,w=De(t.processor)&&et(t.processor.interpolate)?t.processor.interpolate:jd,S=De(t.processor)&&me(t.processor.type)?t.processor.type:Bd,N={list:s,named:l,plural:i,linked:(k,...E)=>{const[D,I]=E;let T="text",P="";E.length===1?Ge(D)?(P=D.modifier||P,T=D.type||T):me(D)&&(P=D||P):E.length===2&&(me(D)&&(P=D||P),me(I)&&(T=I||T));let z=h(k)(N);return T==="vnode"&&We(z)&&P&&(z=z[0]),P?x(P)(z,T):z},message:h,type:S,interpolate:w,normalize:y};return N}let Xn=null;function Wd(t){Xn=t}function Gd(t,e,n){Xn&&Xn.emit(oo.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const $d=Yd(oo.FunctionTranslate);function Yd(t){return e=>Xn&&Xn.emit(t,e)}const Zd={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function Kd(t,e,n){return[...new Set([n,...We(e)?e:Ge(e)?Object.keys(e):me(e)?[e]:[n]])]}function co(t,e,n){const r=me(n)?n:Qn,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;We(o);)o=uo(i,o,e);const s=We(e)||!De(e)?e:e.default?e.default:null;o=me(s)?[s]:s,We(o)&&uo(i,o,!1),a.__localeChainCache.set(r,i)}return i}function uo(t,e,n){let r=!0;for(let a=0;a<e.length&&Pe(r);a++){const i=e[a];me(i)&&(r=Jd(t,e[a],n))}return r}function Jd(t,e,n){let r;const a=e.split("-");do{const i=a.join("-");r=Xd(t,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function Xd(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),(We(n)||De(n))&&n[a]&&(r=n[a])}return r}const Qd="9.2.2",Cr=-1,Qn="en-US",ho="",fo=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function eh(){return{upper:(t,e)=>e==="text"&&me(t)?t.toUpperCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&me(t)?t.toLowerCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&me(t)?fo(t):e==="vnode"&&Ge(t)&&"__v_isVNode"in t?fo(t.children):t}}let mo;function th(t){mo=t}let po;function nh(t){po=t}let go;function rh(t){go=t}let vo=null;const yo=t=>{vo=t},ah=()=>vo;let bo=null;const Eo=t=>{bo=t},ih=()=>bo;let xo=0;function oh(t={}){const e=me(t.version)?t.version:Qd,n=me(t.locale)?t.locale:Qn,r=We(t.fallbackLocale)||De(t.fallbackLocale)||me(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=De(t.messages)?t.messages:{[n]:{}},i=De(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=De(t.numberFormats)?t.numberFormats:{[n]:{}},s=lt({},t.modifiers||{},eh()),c=t.pluralRules||{},l=et(t.missing)?t.missing:null,h=Pe(t.missingWarn)||tn(t.missingWarn)?t.missingWarn:!0,x=Pe(t.fallbackWarn)||tn(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,w=!!t.unresolving,S=et(t.postTranslation)?t.postTranslation:null,C=De(t.processor)?t.processor:null,N=Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,k=!!t.escapeParameter,E=et(t.messageCompiler)?t.messageCompiler:mo,D=et(t.messageResolver)?t.messageResolver:po||Md,I=et(t.localeFallbacker)?t.localeFallbacker:go||Kd,T=Ge(t.fallbackContext)?t.fallbackContext:void 0,P=et(t.onWarn)?t.onWarn:id,z=t,Y=Ge(z.__datetimeFormatters)?z.__datetimeFormatters:new Map,Q=Ge(z.__numberFormatters)?z.__numberFormatters:new Map,B=Ge(z.__meta)?z.__meta:{};xo++;const W={version:e,cid:xo,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:c,missing:l,missingWarn:h,fallbackWarn:x,fallbackFormat:y,unresolving:w,postTranslation:S,processor:C,warnHtmlMessage:N,escapeParameter:k,messageCompiler:E,messageResolver:D,localeFallbacker:I,fallbackContext:T,onWarn:P,__meta:B};return W.datetimeFormats=i,W.numberFormats=o,W.__datetimeFormatters=Y,W.__numberFormatters=Q,__INTLIFY_PROD_DEVTOOLS__&&Gd(W,e,B),W}function Sa(t,e,n,r,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,n,e,a);return me(s)?s:e}else return e}function er(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const sh=t=>t;let wo=Object.create(null);function lh(t,e={}){{const r=(e.onCacheKey||sh)(t),a=wo[r];if(a)return a;let i=!1;const o=e.onError||ld;e.onError=l=>{i=!0,o(l)};const{code:s}=Ad(t,e),c=new Function(`return ${s}`)();return i?c:wo[r]=c}}let _o=Ve.__EXTEND_POINT__;const Ia=()=>++_o,Dn={INVALID_ARGUMENT:_o,INVALID_DATE_ARGUMENT:Ia(),INVALID_ISO_DATE_ARGUMENT:Ia(),__EXTEND_POINT__:Ia()};function Tn(t){return Ir(t,null,void 0)}const So=()=>"",qt=t=>et(t);function Io(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[c,l]=Ca(...e),h=Pe(l.missingWarn)?l.missingWarn:t.missingWarn,x=Pe(l.fallbackWarn)?l.fallbackWarn:t.fallbackWarn,y=Pe(l.escapeParameter)?l.escapeParameter:t.escapeParameter,w=!!l.resolvedMessage,S=me(l.default)||Pe(l.default)?Pe(l.default)?i?c:()=>c:l.default:n?i?c:()=>c:"",C=n||S!=="",N=me(l.locale)?l.locale:t.locale;y&&ch(l);let[k,E,D]=w?[c,N,s[N]||{}]:Co(t,c,N,o,x,h),I=k,T=c;if(!w&&!(me(I)||qt(I))&&C&&(I=S,T=I),!w&&(!(me(I)||qt(I))||!me(E)))return a?Cr:c;let P=!1;const z=()=>{P=!0},Y=qt(I)?I:ko(t,c,E,I,T,z);if(P)return I;const Q=hh(t,E,D,l),B=Hd(Q),W=uh(t,Y,B),ne=r?r(W,c):W;if(__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:me(c)?c:qt(I)?I.key:"",locale:E||(qt(I)?I.locale:""),format:me(I)?I:qt(I)?I.source:"",message:ne};R.meta=lt({},t.__meta,ah()||{}),$d(R)}return ne}function ch(t){We(t.list)?t.list=t.list.map(e=>me(e)?no(e):e):Ge(t.named)&&Object.keys(t.named).forEach(e=>{me(t.named[e])&&(t.named[e]=no(t.named[e]))})}function Co(t,e,n,r,a,i){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=t,h=l(t,r,n);let x={},y,w=null;const S="translate";for(let C=0;C<h.length&&(y=h[C],x=o[y]||{},(w=c(x,e))===null&&(w=x[e]),!(me(w)||et(w)));C++){const N=Sa(t,e,y,i,S);N!==e&&(w=N)}return[w,y,x]}function ko(t,e,n,r,a,i){const{messageCompiler:o,warnHtmlMessage:s}=t;if(qt(r)){const l=r;return l.locale=l.locale||n,l.key=l.key||e,l}if(o==null){const l=()=>r;return l.locale=n,l.key=e,l}const c=o(r,dh(t,n,a,r,s,i));return c.locale=n,c.key=e,c.source=r,c}function uh(t,e,n){return e(n)}function Ca(...t){const[e,n,r]=t,a={};if(!me(e)&&!at(e)&&!qt(e))throw Tn(Dn.INVALID_ARGUMENT);const i=at(e)?String(e):(qt(e),e);return at(n)?a.plural=n:me(n)?a.default=n:De(n)&&!Sr(n)?a.named=n:We(n)&&(a.list=n),at(r)?a.plural=r:me(r)?a.default=r:De(r)&<(a,r),[i,a]}function dh(t,e,n,r,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>nd(e,n,o)}}function hh(t,e,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:h}=t,y={locale:e,modifiers:a,pluralRules:i,messages:w=>{let S=o(n,w);if(S==null&&h){const[,,C]=Co(h,w,e,s,c,l);S=o(C,w)}if(me(S)){let C=!1;const k=ko(t,w,e,S,w,()=>{C=!0});return C?So:k}else return qt(S)?S:So}};return t.processor&&(y.processor=t.processor),r.list&&(y.list=r.list),r.named&&(y.named=r.named),at(r.plural)&&(y.pluralIndex=r.plural),y}function Ao(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[c,l,h,x]=ka(...e),y=Pe(h.missingWarn)?h.missingWarn:t.missingWarn;Pe(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const w=!!h.part,S=me(h.locale)?h.locale:t.locale,C=o(t,a,S);if(!me(c)||c==="")return new Intl.DateTimeFormat(S,x).format(l);let N={},k,E=null;const D="datetime format";for(let P=0;P<C.length&&(k=C[P],N=n[k]||{},E=N[c],!De(E));P++)Sa(t,c,k,y,D);if(!De(E)||!me(k))return r?Cr:c;let I=`${k}__${c}`;Sr(x)||(I=`${I}__${JSON.stringify(x)}`);let T=s.get(I);return T||(T=new Intl.DateTimeFormat(k,lt({},E,x)),s.set(I,T)),w?T.formatToParts(l):T.format(l)}const Do=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ka(...t){const[e,n,r,a]=t,i={};let o={},s;if(me(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Tn(Dn.INVALID_ISO_DATE_ARGUMENT);const l=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(l);try{s.toISOString()}catch{throw Tn(Dn.INVALID_ISO_DATE_ARGUMENT)}}else if(ad(e)){if(isNaN(e.getTime()))throw Tn(Dn.INVALID_DATE_ARGUMENT);s=e}else if(at(e))s=e;else throw Tn(Dn.INVALID_ARGUMENT);return me(n)?i.key=n:De(n)&&Object.keys(n).forEach(c=>{Do.includes(c)?o[c]=n[c]:i[c]=n[c]}),me(r)?i.locale=r:De(r)&&(o=r),De(a)&&(o=a),[i.key||"",s,i,o]}function To(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__datetimeFormatters.has(i)||r.__datetimeFormatters.delete(i)}}function No(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[c,l,h,x]=Aa(...e),y=Pe(h.missingWarn)?h.missingWarn:t.missingWarn;Pe(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const w=!!h.part,S=me(h.locale)?h.locale:t.locale,C=o(t,a,S);if(!me(c)||c==="")return new Intl.NumberFormat(S,x).format(l);let N={},k,E=null;const D="number format";for(let P=0;P<C.length&&(k=C[P],N=n[k]||{},E=N[c],!De(E));P++)Sa(t,c,k,y,D);if(!De(E)||!me(k))return r?Cr:c;let I=`${k}__${c}`;Sr(x)||(I=`${I}__${JSON.stringify(x)}`);let T=s.get(I);return T||(T=new Intl.NumberFormat(k,lt({},E,x)),s.set(I,T)),w?T.formatToParts(l):T.format(l)}const Lo=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Aa(...t){const[e,n,r,a]=t,i={};let o={};if(!at(e))throw Tn(Dn.INVALID_ARGUMENT);const s=e;return me(n)?i.key=n:De(n)&&Object.keys(n).forEach(c=>{Lo.includes(c)?o[c]=n[c]:i[c]=n[c]}),me(r)?i.locale=r:De(r)&&(o=r),De(a)&&(o=a),[i.key||"",s,i,o]}function Oo(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__numberFormatters.has(i)||r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Jn().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
|
24
24
|
* vue-i18n v9.2.2
|
|
25
25
|
* (c) 2022 kazuya kawaguchi
|
|
26
26
|
* Released under the MIT License.
|
|
27
|
-
*/const Qd="9.2.2";function ef(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Yr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Yr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yr().__INTLIFY_PROD_DEVTOOLS__=!1)}Md.__EXTEND_POINT__;let xo=je.__EXTEND_POINT__;const Et=()=>++xo,tt={UNEXPECTED_RETURN_TYPE:xo,INVALID_ARGUMENT:Et(),MUST_BE_CALL_SETUP_TOP:Et(),NOT_INSLALLED:Et(),NOT_AVAILABLE_IN_LEGACY_MODE:Et(),REQUIRED_VALUE:Et(),INVALID_VALUE:Et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Et(),NOT_INSLALLED_WITH_PROVIDE:Et(),UNEXPECTED_ERROR:Et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Et(),BRIDGE_SUPPORT_VUE_2_ONLY:Et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Et(),__EXTEND_POINT__:Et()};function it(t,...e){return xn(t,null,void 0)}const xa=Kt("__transrateVNode"),wa=Kt("__datetimeParts"),_a=Kt("__numberParts"),wo=Kt("__setPluralRules");Kt("__intlifyMeta");const _o=Kt("__injectWithOption");function Sa(t){if(!We(t))return t;for(const e in t)if(!!fa(t,e))if(!e.includes("."))We(t[e])&&Sa(t[e]);else{const r=e.split("."),n=r.length-1;let a=t;for(let i=0;i<n;i++)r[i]in a||(a[r[i]]={}),a=a[r[i]];a[r[n]]=t[e],delete t[e],We(a[r[n]])&&Sa(a[r[n]])}return t}function _n(t,e){const{messages:r,__i18n:n,messageResolver:a,flatJson:i}=e,o=Ce(r)?r:Ge(n)?{}:{[t]:{}};if(Ge(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Xr(u,o[l])):Xr(u,o)}else me(s)&&Xr(JSON.parse(s),o)}),a==null&&i)for(const s in o)fa(o,s)&&Sa(o[s]);return o}const Sn=t=>!We(t)||Ge(t);function Xr(t,e){if(Sn(t)||Sn(e))throw it(tt.INVALID_VALUE);for(const r in t)fa(t,r)&&(Sn(t[r])||Sn(e[r])?e[r]=t[r]:Xr(t[r],e[r]))}function So(t){return t.type}function Io(t,e,r){let n=We(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=_n(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const a=Object.keys(n);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(We(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(We(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Co(t){return ue.createVNode(ue.Text,null,t,0)}const To="__INTLIFY_META__";let ko=0;function Ao(t){return(e,r,n,a)=>t(r,n,ue.getCurrentInstance()||void 0,a)}const tf=()=>{const t=ue.getCurrentInstance();let e=null;return t&&(e=So(t)[To])?{[To]:e}:null};function Ia(t={},e){const{__root:r}=t,n=r===void 0;let a=Pe(t.inheritLocale)?t.inheritLocale:!0;const i=ue.ref(r&&a?r.locale.value:me(t.locale)?t.locale:Jr),o=ue.ref(r&&a?r.fallbackLocale.value:me(t.fallbackLocale)||Ge(t.fallbackLocale)||Ce(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=ue.ref(_n(i.value,t)),l=ue.ref(Ce(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=ue.ref(Ce(t.numberFormats)?t.numberFormats:{[i.value]:{}});let f=r?r.missingWarn:Pe(t.missingWarn)||Xt(t.missingWarn)?t.missingWarn:!0,x=r?r.fallbackWarn:Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=r?r.fallbackRoot:Pe(t.fallbackRoot)?t.fallbackRoot:!0,w=!!t.fallbackFormat,S=et(t.missing)?t.missing:null,T=et(t.missing)?Ao(t.missing):null,N=et(t.postTranslation)?t.postTranslation:null,C=r?r.warnHtmlMessage:Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const A=r?r.modifiers:Ce(t.modifiers)?t.modifiers:{};let I=t.pluralRules||r&&r.pluralRules,D;D=(()=>{n&&oo(null);const d={version:Qd,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:A,pluralRules:I,missing:T===null?void 0:T,missingWarn:f,fallbackWarn:x,fallbackFormat:w,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:C,escapeParameter:E,messageResolver:t.messageResolver,__meta:{framework:"vue"}};d.datetimeFormats=l.value,d.numberFormats=u.value,d.__datetimeFormatters=Ce(D)?D.__datetimeFormatters:void 0,d.__numberFormatters=Ce(D)?D.__numberFormatters:void 0;const m=Wd(d);return n&&oo(m),m})(),Kr(D,i.value,o.value);function z(){return[i.value,o.value,s.value,l.value,u.value]}const Y=ue.computed({get:()=>i.value,set:d=>{i.value=d,D.locale=i.value}}),Q=ue.computed({get:()=>o.value,set:d=>{o.value=d,D.fallbackLocale=o.value,Kr(D,i.value,d)}}),B=ue.computed(()=>s.value),G=ue.computed(()=>l.value),re=ue.computed(()=>u.value);function L(){return et(N)?N:null}function q(d){N=d,D.postTranslation=d}function $(){return S}function j(d){d!==null&&(T=Ao(d)),S=d,D.missing=T}const V=(d,m,h,p,k,R)=>{z();let U;if(__INTLIFY_PROD_DEVTOOLS__)try{ao(tf()),n||(D.fallbackContext=r?Gd():void 0),U=d(D)}finally{ao(null),n||(D.fallbackContext=void 0)}else U=d(D);if(at(U)&&U===wn){const[H,K]=m();return r&&y?p(r):k(H)}else{if(R(U))return U;throw it(tt.UNEXPECTED_RETURN_TYPE)}};function Z(...d){return V(m=>Reflect.apply(fo,null,[m,...d]),()=>ya(...d),"translate",m=>Reflect.apply(m.t,m,[...d]),m=>m,m=>me(m))}function se(...d){const[m,h,p]=d;if(p&&!We(p))throw it(tt.INVALID_ARGUMENT);return Z(m,h,lt({resolvedMessage:!0},p||{}))}function ie(...d){return V(m=>Reflect.apply(po,null,[m,...d]),()=>ba(...d),"datetime format",m=>Reflect.apply(m.d,m,[...d]),()=>Xi,m=>me(m))}function F(...d){return V(m=>Reflect.apply(yo,null,[m,...d]),()=>Ea(...d),"number format",m=>Reflect.apply(m.n,m,[...d]),()=>Xi,m=>me(m))}function ee(d){return d.map(m=>me(m)||at(m)||Pe(m)?Co(String(m)):m)}const J={normalize:ee,interpolate:d=>d,type:"vnode"};function we(...d){return V(m=>{let h;const p=m;try{p.processor=J,h=Reflect.apply(fo,null,[p,...d])}finally{p.processor=null}return h},()=>ya(...d),"translate",m=>m[xa](...d),m=>[Co(m)],m=>Ge(m))}function _e(...d){return V(m=>Reflect.apply(yo,null,[m,...d]),()=>Ea(...d),"number format",m=>m[_a](...d),()=>[],m=>me(m)||Ge(m))}function Oe(...d){return V(m=>Reflect.apply(po,null,[m,...d]),()=>ba(...d),"datetime format",m=>m[wa](...d),()=>[],m=>me(m)||Ge(m))}function ye(d){I=d,D.pluralRules=I}function Be(d,m){const h=me(m)?m:i.value,p=ae(h);return D.messageResolver(p,d)!==null}function Ie(d){let m=null;const h=Ji(D,o.value,i.value);for(let p=0;p<h.length;p++){const k=s.value[h[p]]||{},R=D.messageResolver(k,d);if(R!=null){m=R;break}}return m}function W(d){const m=Ie(d);return m!=null?m:r?r.tm(d)||{}:{}}function ae(d){return s.value[d]||{}}function _(d,m){s.value[d]=m,D.messages=s.value}function b(d,m){s.value[d]=s.value[d]||{},Xr(m,s.value[d]),D.messages=s.value}function O(d){return l.value[d]||{}}function te(d,m){l.value[d]=m,D.datetimeFormats=l.value,vo(D,d,m)}function le(d,m){l.value[d]=lt(l.value[d]||{},m),D.datetimeFormats=l.value,vo(D,d,m)}function de(d){return u.value[d]||{}}function M(d,m){u.value[d]=m,D.numberFormats=u.value,Eo(D,d,m)}function c(d,m){u.value[d]=lt(u.value[d]||{},m),D.numberFormats=u.value,Eo(D,d,m)}ko++,r&&da&&(ue.watch(r.locale,d=>{a&&(i.value=d,D.locale=d,Kr(D,i.value,o.value))}),ue.watch(r.fallbackLocale,d=>{a&&(o.value=d,D.fallbackLocale=d,Kr(D,i.value,o.value))}));const v={id:ko,locale:Y,fallbackLocale:Q,get inheritLocale(){return a},set inheritLocale(d){a=d,d&&r&&(i.value=r.locale.value,o.value=r.fallbackLocale.value,Kr(D,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:B,get modifiers(){return A},get pluralRules(){return I||{}},get isGlobal(){return n},get missingWarn(){return f},set missingWarn(d){f=d,D.missingWarn=f},get fallbackWarn(){return x},set fallbackWarn(d){x=d,D.fallbackWarn=x},get fallbackRoot(){return y},set fallbackRoot(d){y=d},get fallbackFormat(){return w},set fallbackFormat(d){w=d,D.fallbackFormat=w},get warnHtmlMessage(){return C},set warnHtmlMessage(d){C=d,D.warnHtmlMessage=d},get escapeParameter(){return E},set escapeParameter(d){E=d,D.escapeParameter=d},t:Z,getLocaleMessage:ae,setLocaleMessage:_,mergeLocaleMessage:b,getPostTranslationHandler:L,setPostTranslationHandler:q,getMissingHandler:$,setMissingHandler:j,[wo]:ye};return v.datetimeFormats=G,v.numberFormats=re,v.rt=se,v.te=Be,v.tm=W,v.d=ie,v.n=F,v.getDateTimeFormat=O,v.setDateTimeFormat=te,v.mergeDateTimeFormat=le,v.getNumberFormat=de,v.setNumberFormat=M,v.mergeNumberFormat=c,v[_o]=t.__injectWithOption,v[xa]=we,v[wa]=Oe,v[_a]=_e,v}function rf(t){const e=me(t.locale)?t.locale:Jr,r=me(t.fallbackLocale)||Ge(t.fallbackLocale)||Ce(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,n=et(t.missing)?t.missing:void 0,a=Pe(t.silentTranslationWarn)||Xt(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Pe(t.silentFallbackWarn)||Xt(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Pe(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=Ce(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,f=et(t.postTranslation)?t.postTranslation:void 0,x=me(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,w=Pe(t.sync)?t.sync:!0;let S=t.messages;if(Ce(t.sharedMessages)){const D=t.sharedMessages;S=Object.keys(D).reduce((z,Y)=>{const Q=z[Y]||(z[Y]={});return lt(Q,D[Y]),z},S||{})}const{__i18n:T,__root:N,__injectWithOption:C}=t,E=t.datetimeFormats,A=t.numberFormats,I=t.flatJson;return{locale:e,fallbackLocale:r,messages:S,flatJson:I,datetimeFormats:E,numberFormats:A,missing:n,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:f,warnHtmlMessage:x,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:w,__i18n:T,__root:N,__injectWithOption:C}}function Ca(t={},e){{const r=Ia(rf(t)),n={id:r.id,get locale(){return r.locale.value},set locale(a){r.locale.value=a},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(a){r.fallbackLocale.value=a},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return r.getMissingHandler()},set missing(a){r.setMissingHandler(a)},get silentTranslationWarn(){return Pe(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(a){r.missingWarn=Pe(a)?!a:a},get silentFallbackWarn(){return Pe(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(a){r.fallbackWarn=Pe(a)?!a:a},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(a){r.fallbackFormat=a},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(a){r.setPostTranslationHandler(a)},get sync(){return r.inheritLocale},set sync(a){r.inheritLocale=a},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){r.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(a){r.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...a){const[i,o,s]=a,l={};let u=null,f=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const x=i;return me(o)?l.locale=o:Ge(o)?u=o:Ce(o)&&(f=o),Ge(s)?u=s:Ce(s)&&(f=s),Reflect.apply(r.t,r,[x,u||f||{},l])},rt(...a){return Reflect.apply(r.rt,r,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,f=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const x=i;return me(o)?l.locale=o:at(o)?l.plural=o:Ge(o)?u=o:Ce(o)&&(f=o),me(s)?l.locale=s:Ge(s)?u=s:Ce(s)&&(f=s),Reflect.apply(r.t,r,[x,u||f||{},l])},te(a,i){return r.te(a,i)},tm(a){return r.tm(a)},getLocaleMessage(a){return r.getLocaleMessage(a)},setLocaleMessage(a,i){r.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){r.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(r.d,r,[...a])},getDateTimeFormat(a){return r.getDateTimeFormat(a)},setDateTimeFormat(a,i){r.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){r.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(r.n,r,[...a])},getNumberFormat(a){return r.getNumberFormat(a)},setNumberFormat(a,i){r.setNumberFormat(a,i)},mergeNumberFormat(a,i){r.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,n)}};return n}}const Ta={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function nf({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,a)=>n=[...n,...Ge(a.children)?a.children:[a]],[]):e.reduce((r,n)=>{const a=t[n];return a&&(r[n]=a()),r},{})}function Do(t){return ue.Fragment}const No={name:"i18n-t",props:lt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>at(t)||!isNaN(t)}},Ta),setup(t,e){const{slots:r,attrs:n}=e,a=t.i18n||ka({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(x=>x!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=me(t.plural)?+t.plural:t.plural);const s=nf(e,i),l=a[xa](t.keypath,s,o),u=lt({},n),f=me(t.tag)||We(t.tag)?t.tag:Do();return ue.h(f,u,l)}}};function af(t){return Ge(t)&&!me(t[0])}function Oo(t,e,r,n){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),me(t.format)?o.key=t.format:We(t.format)&&(me(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((y,w)=>r.includes(w)?lt({},y,{[w]:t.format[w]}):y,{}));const l=n(t.value,o,s);let u=[o.key];Ge(l)?u=l.map((y,w)=>{const S=a[y.type],T=S?S({[y.type]:y.value,index:w,parts:l}):[y.value];return af(T)&&(T[0].key=`${y.type}-${w}`),T}):me(l)&&(u=[l]);const f=lt({},i),x=me(t.tag)||We(t.tag)?t.tag:Do();return ue.h(x,f,u)}}const Ro={name:"i18n-n",props:lt({value:{type:Number,required:!0},format:{type:[String,Object]}},Ta),setup(t,e){const r=t.i18n||ka({useScope:"parent",__useComponent:!0});return Oo(t,e,bo,(...n)=>r[_a](...n))}},Lo={name:"i18n-d",props:lt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ta),setup(t,e){const r=t.i18n||ka({useScope:"parent",__useComponent:!0});return Oo(t,e,go,(...n)=>r[wa](...n))}};function of(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function sf(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw it(tt.UNEXPECTED_ERROR);const f=of(t,s.$),x=Mo(u);return[Reflect.apply(f.t,f,[...Po(x)]),f]};return{created:(o,s)=>{const[l,u]=e(s);da&&t.global===u&&(o.__i18nWatcher=ue.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{da&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Mo(s);o.textContent=Reflect.apply(l.t,l,[...Po(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Mo(t){if(me(t))return{path:t};if(Ce(t)){if(!("path"in t))throw it(tt.REQUIRED_VALUE,"path");return t}else throw it(tt.INVALID_VALUE)}function Po(t){const{path:e,locale:r,args:n,choice:a,plural:i}=t,o={},s=n||{};return me(r)&&(o.locale=r),at(a)&&(o.plural=a),at(i)&&(o.plural=i),[e,s,o]}function lf(t,e,...r){const n=Ce(r[0])?r[0]:{},a=!!n.useI18nComponentName;(Pe(n.globalInstall)?n.globalInstall:!0)&&(t.component(a?"i18n":No.name,No),t.component(Ro.name,Ro),t.component(Lo.name,Lo)),t.directive("t",sf(e))}function cf(t,e,r){return{beforeCreate(){const n=ue.getCurrentInstance();if(!n)throw it(tt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Fo(t,i):(i.__injectWithOption=!0,this.$i18n=Ca(i))}else a.__i18n?this===this.$root?this.$i18n=Fo(t,a):this.$i18n=Ca({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&Io(e,a,a),t.__onComponentInstanceCreated(this.$i18n),r.__setInstance(n,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const n=ue.getCurrentInstance();if(!n)throw it(tt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(n),delete this.$i18n}}}function Fo(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[wo](e.pluralizationRules||t.pluralizationRules);const r=_n(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(r).forEach(n=>t.mergeLocaleMessage(n,r[n])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,e.datetimeFormats[n])),e.numberFormats&&Object.keys(e.numberFormats).forEach(n=>t.mergeNumberFormat(n,e.numberFormats[n])),t}const uf=Kt("global-vue-i18n");function df(t={},e){const r=__VUE_I18N_LEGACY_API__&&Pe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,n=Pe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,i=new Map,[o,s]=ff(t,r),l=Kt("");function u(y){return i.get(y)||null}function f(y,w){i.set(y,w)}function x(y){i.delete(y)}{const y={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(w,...S){w.__VUE_I18N_SYMBOL__=l,w.provide(w.__VUE_I18N_SYMBOL__,y),!r&&n&&xf(w,y.global),__VUE_I18N_FULL_INSTALL__&&lf(w,y,...S),__VUE_I18N_LEGACY_API__&&r&&w.mixin(cf(s,s.__composer,y));const T=w.unmount;w.unmount=()=>{y.dispose(),T()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:f,__deleteInstance:x};return y}}function ka(t={}){const e=ue.getCurrentInstance();if(e==null)throw it(tt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw it(tt.NOT_INSLALLED);const r=hf(e),n=pf(r),a=So(e),i=mf(t,a);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw it(tt.NOT_AVAILABLE_IN_LEGACY_MODE);return yf(e,i,n,t)}if(i==="global")return Io(n,t,a),n;if(i==="parent"){let l=gf(r,e,t.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(e);if(s==null){const l=lt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),n&&(l.__root=n),s=Ia(l),vf(o,e),o.__setInstance(e,s)}return s}function ff(t,e,r){const n=ue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?n.run(()=>Ca(t)):n.run(()=>Ia(t));if(a==null)throw it(tt.UNEXPECTED_ERROR);return[n,a]}}function hf(t){{const e=ue.inject(t.isCE?uf:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw it(t.isCE?tt.NOT_INSLALLED_WITH_PROVIDE:tt.UNEXPECTED_ERROR);return e}}function mf(t,e){return En(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function pf(t){return t.mode==="composition"?t.global:t.global.__composer}function gf(t,e,r=!1){let n=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")n=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(n=s.__composer,r&&n&&!n[_o]&&(n=null))}if(n!=null||a===i)break;i=i.parent}return n}function vf(t,e,r){ue.onMounted(()=>{},e),ue.onUnmounted(()=>{t.__deleteInstance(e)},e)}function yf(t,e,r,n={}){const a=e==="local",i=ue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw it(tt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Pe(n.inheritLocale)?n.inheritLocale:!0,s=ue.ref(a&&o?r.locale.value:me(n.locale)?n.locale:Jr),l=ue.ref(a&&o?r.fallbackLocale.value:me(n.fallbackLocale)||Ge(n.fallbackLocale)||Ce(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),u=ue.ref(_n(s.value,n)),f=ue.ref(Ce(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),x=ue.ref(Ce(n.numberFormats)?n.numberFormats:{[s.value]:{}}),y=a?r.missingWarn:Pe(n.missingWarn)||Xt(n.missingWarn)?n.missingWarn:!0,w=a?r.fallbackWarn:Pe(n.fallbackWarn)||Xt(n.fallbackWarn)?n.fallbackWarn:!0,S=a?r.fallbackRoot:Pe(n.fallbackRoot)?n.fallbackRoot:!0,T=!!n.fallbackFormat,N=et(n.missing)?n.missing:null,C=et(n.postTranslation)?n.postTranslation:null,E=a?r.warnHtmlMessage:Pe(n.warnHtmlMessage)?n.warnHtmlMessage:!0,A=!!n.escapeParameter,I=a?r.modifiers:Ce(n.modifiers)?n.modifiers:{},D=n.pluralRules||a&&r.pluralRules;function P(){return[s.value,l.value,u.value,f.value,x.value]}const z=ue.computed({get:()=>i.value?i.value.locale.value:s.value,set:b=>{i.value&&(i.value.locale.value=b),s.value=b}}),Y=ue.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),l.value=b}}),Q=ue.computed(()=>i.value?i.value.messages.value:u.value),B=ue.computed(()=>f.value),G=ue.computed(()=>x.value);function re(){return i.value?i.value.getPostTranslationHandler():C}function L(b){i.value&&i.value.setPostTranslationHandler(b)}function q(){return i.value?i.value.getMissingHandler():N}function $(b){i.value&&i.value.setMissingHandler(b)}function j(b){return P(),b()}function V(...b){return i.value?j(()=>Reflect.apply(i.value.t,null,[...b])):j(()=>"")}function Z(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function se(...b){return i.value?j(()=>Reflect.apply(i.value.d,null,[...b])):j(()=>"")}function ie(...b){return i.value?j(()=>Reflect.apply(i.value.n,null,[...b])):j(()=>"")}function F(b){return i.value?i.value.tm(b):{}}function ee(b,O){return i.value?i.value.te(b,O):!1}function ne(b){return i.value?i.value.getLocaleMessage(b):{}}function J(b,O){i.value&&(i.value.setLocaleMessage(b,O),u.value[b]=O)}function we(b,O){i.value&&i.value.mergeLocaleMessage(b,O)}function _e(b){return i.value?i.value.getDateTimeFormat(b):{}}function Oe(b,O){i.value&&(i.value.setDateTimeFormat(b,O),f.value[b]=O)}function ye(b,O){i.value&&i.value.mergeDateTimeFormat(b,O)}function Be(b){return i.value?i.value.getNumberFormat(b):{}}function Ie(b,O){i.value&&(i.value.setNumberFormat(b,O),x.value[b]=O)}function W(b,O){i.value&&i.value.mergeNumberFormat(b,O)}const ae={get id(){return i.value?i.value.id:-1},locale:z,fallbackLocale:Y,messages:Q,datetimeFormats:B,numberFormats:G,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:I},get pluralRules(){return i.value?i.value.pluralRules:D},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:y},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:w},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:S},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:T},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:V,getPostTranslationHandler:re,setPostTranslationHandler:L,getMissingHandler:q,setMissingHandler:$,rt:Z,d:se,n:ie,tm:F,te:ee,getLocaleMessage:ne,setLocaleMessage:J,mergeLocaleMessage:we,getDateTimeFormat:_e,setDateTimeFormat:Oe,mergeDateTimeFormat:ye,getNumberFormat:Be,setNumberFormat:Ie,mergeNumberFormat:W};function _(b){b.locale.value=s.value,b.fallbackLocale.value=l.value,Object.keys(u.value).forEach(O=>{b.mergeLocaleMessage(O,u.value[O])}),Object.keys(f.value).forEach(O=>{b.mergeDateTimeFormat(O,f.value[O])}),Object.keys(x.value).forEach(O=>{b.mergeNumberFormat(O,x.value[O])}),b.escapeParameter=A,b.fallbackFormat=T,b.fallbackRoot=S,b.fallbackWarn=w,b.missingWarn=y,b.warnHtmlMessage=E}return ue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw it(tt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=b.locale.value,l.value=b.fallbackLocale.value,u.value=b.messages.value,f.value=b.datetimeFormats.value,x.value=b.numberFormats.value):a&&_(b)}),ae}const bf=["locale","fallbackLocale","availableLocales"],Ef=["t","rt","d","n","tm"];function xf(t,e){const r=Object.create(null);bf.forEach(n=>{const a=Object.getOwnPropertyDescriptor(e,n);if(!a)throw it(tt.UNEXPECTED_ERROR);const i=ue.isRef(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,i)}),t.config.globalProperties.$i18n=r,Ef.forEach(n=>{const a=Object.getOwnPropertyDescriptor(e,n);if(!a||!a.value)throw it(tt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${n}`,a)})}if(Vd(Yd),jd(wd),qd(Ji),ef(),__INTLIFY_PROD_DEVTOOLS__){const t=Yr();t.__INTLIFY__=!0,Nd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const wf={field:{"mandatory-not-filled":"Mandatory field(s) not filled in"}},_f={appointment:{new:"New","new-aria-label":"Add a new element",error:{"date-not-available":{boxTitle:"New appointment",title:"The staff is already busy in this slot",description:`An appointment is already positioned on this slot.
|
|
27
|
+
*/const fh="9.2.2";function mh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Jn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Jn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Jn().__INTLIFY_PROD_DEVTOOLS__=!1)}Zd.__EXTEND_POINT__;let Ro=Ve.__EXTEND_POINT__;const xt=()=>++Ro,tt={UNEXPECTED_RETURN_TYPE:Ro,INVALID_ARGUMENT:xt(),MUST_BE_CALL_SETUP_TOP:xt(),NOT_INSLALLED:xt(),NOT_AVAILABLE_IN_LEGACY_MODE:xt(),REQUIRED_VALUE:xt(),INVALID_VALUE:xt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:xt(),NOT_INSLALLED_WITH_PROVIDE:xt(),UNEXPECTED_ERROR:xt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:xt(),BRIDGE_SUPPORT_VUE_2_ONLY:xt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:xt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:xt(),__EXTEND_POINT__:xt()};function it(t,...e){return Ir(t,null,void 0)}const Da=en("__transrateVNode"),Ta=en("__datetimeParts"),Na=en("__numberParts"),Mo=en("__setPluralRules");en("__intlifyMeta");const Po=en("__injectWithOption");function La(t){if(!Ge(t))return t;for(const e in t)if(!!Ea(t,e))if(!e.includes("."))Ge(t[e])&&La(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i<r;i++)n[i]in a||(a[n[i]]={}),a=a[n[i]];a[n[r]]=t[e],delete t[e],Ge(a[n[r]])&&La(a[n[r]])}return t}function kr(t,e){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=e,o=De(n)?n:We(r)?{}:{[t]:{}};if(We(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:l}=s;c?(o[c]=o[c]||{},tr(l,o[c])):tr(l,o)}else me(s)&&tr(JSON.parse(s),o)}),a==null&&i)for(const s in o)Ea(o,s)&&La(o[s]);return o}const Ar=t=>!Ge(t)||We(t);function tr(t,e){if(Ar(t)||Ar(e))throw it(tt.INVALID_VALUE);for(const n in t)Ea(t,n)&&(Ar(t[n])||Ar(e[n])?e[n]=t[n]:tr(t[n],e[n]))}function Fo(t){return t.type}function zo(t,e,n){let r=Ge(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=kr(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ge(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Ge(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Bo(t){return ue.createVNode(ue.Text,null,t,0)}const Uo="__INTLIFY_META__";let jo=0;function Vo(t){return(e,n,r,a)=>t(n,r,ue.getCurrentInstance()||void 0,a)}const ph=()=>{const t=ue.getCurrentInstance();let e=null;return t&&(e=Fo(t)[Uo])?{[Uo]:e}:null};function Oa(t={},e){const{__root:n}=t,r=n===void 0;let a=Pe(t.inheritLocale)?t.inheritLocale:!0;const i=ue.ref(n&&a?n.locale.value:me(t.locale)?t.locale:Qn),o=ue.ref(n&&a?n.fallbackLocale.value:me(t.fallbackLocale)||We(t.fallbackLocale)||De(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=ue.ref(kr(i.value,t)),c=ue.ref(De(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),l=ue.ref(De(t.numberFormats)?t.numberFormats:{[i.value]:{}});let h=n?n.missingWarn:Pe(t.missingWarn)||tn(t.missingWarn)?t.missingWarn:!0,x=n?n.fallbackWarn:Pe(t.fallbackWarn)||tn(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:Pe(t.fallbackRoot)?t.fallbackRoot:!0,w=!!t.fallbackFormat,S=et(t.missing)?t.missing:null,C=et(t.missing)?Vo(t.missing):null,N=et(t.postTranslation)?t.postTranslation:null,k=n?n.warnHtmlMessage:Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const D=n?n.modifiers:De(t.modifiers)?t.modifiers:{};let I=t.pluralRules||n&&n.pluralRules,T;T=(()=>{r&&Eo(null);const d={version:fh,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:D,pluralRules:I,missing:C===null?void 0:C,missingWarn:h,fallbackWarn:x,fallbackFormat:w,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:k,escapeParameter:E,messageResolver:t.messageResolver,__meta:{framework:"vue"}};d.datetimeFormats=c.value,d.numberFormats=l.value,d.__datetimeFormatters=De(T)?T.__datetimeFormatters:void 0,d.__numberFormatters=De(T)?T.__numberFormatters:void 0;const p=oh(d);return r&&Eo(p),p})(),er(T,i.value,o.value);function z(){return[i.value,o.value,s.value,c.value,l.value]}const Y=ue.computed({get:()=>i.value,set:d=>{i.value=d,T.locale=i.value}}),Q=ue.computed({get:()=>o.value,set:d=>{o.value=d,T.fallbackLocale=o.value,er(T,i.value,d)}}),B=ue.computed(()=>s.value),W=ue.computed(()=>c.value),ne=ue.computed(()=>l.value);function R(){return et(N)?N:null}function q(d){N=d,T.postTranslation=d}function $(){return S}function V(d){d!==null&&(C=Vo(d)),S=d,T.missing=C}const j=(d,p,m,g,A,O)=>{z();let U;if(__INTLIFY_PROD_DEVTOOLS__)try{yo(ph()),r||(T.fallbackContext=n?ih():void 0),U=d(T)}finally{yo(null),r||(T.fallbackContext=void 0)}else U=d(T);if(at(U)&&U===Cr){const[H,J]=p();return n&&y?g(n):A(H)}else{if(O(U))return U;throw it(tt.UNEXPECTED_RETURN_TYPE)}};function Z(...d){return j(p=>Reflect.apply(Io,null,[p,...d]),()=>Ca(...d),"translate",p=>Reflect.apply(p.t,p,[...d]),p=>p,p=>me(p))}function se(...d){const[p,m,g]=d;if(g&&!Ge(g))throw it(tt.INVALID_ARGUMENT);return Z(p,m,lt({resolvedMessage:!0},g||{}))}function ie(...d){return j(p=>Reflect.apply(Ao,null,[p,...d]),()=>ka(...d),"datetime format",p=>Reflect.apply(p.d,p,[...d]),()=>ho,p=>me(p))}function F(...d){return j(p=>Reflect.apply(No,null,[p,...d]),()=>Aa(...d),"number format",p=>Reflect.apply(p.n,p,[...d]),()=>ho,p=>me(p))}function ee(d){return d.map(p=>me(p)||at(p)||Pe(p)?Bo(String(p)):p)}const K={normalize:ee,interpolate:d=>d,type:"vnode"};function we(...d){return j(p=>{let m;const g=p;try{g.processor=K,m=Reflect.apply(Io,null,[g,...d])}finally{g.processor=null}return m},()=>Ca(...d),"translate",p=>p[Da](...d),p=>[Bo(p)],p=>We(p))}function _e(...d){return j(p=>Reflect.apply(No,null,[p,...d]),()=>Aa(...d),"number format",p=>p[Na](...d),()=>[],p=>me(p)||We(p))}function Me(...d){return j(p=>Reflect.apply(Ao,null,[p,...d]),()=>ka(...d),"datetime format",p=>p[Ta](...d),()=>[],p=>me(p)||We(p))}function ye(d){I=d,T.pluralRules=I}function Ue(d,p){const m=me(p)?p:i.value,g=ae(m);return T.messageResolver(g,d)!==null}function ke(d){let p=null;const m=co(T,o.value,i.value);for(let g=0;g<m.length;g++){const A=s.value[m[g]]||{},O=T.messageResolver(A,d);if(O!=null){p=O;break}}return p}function G(d){const p=ke(d);return p!=null?p:n?n.tm(d)||{}:{}}function ae(d){return s.value[d]||{}}function _(d,p){s.value[d]=p,T.messages=s.value}function b(d,p){s.value[d]=s.value[d]||{},tr(p,s.value[d]),T.messages=s.value}function L(d){return c.value[d]||{}}function te(d,p){c.value[d]=p,T.datetimeFormats=c.value,To(T,d,p)}function le(d,p){c.value[d]=lt(c.value[d]||{},p),T.datetimeFormats=c.value,To(T,d,p)}function de(d){return l.value[d]||{}}function M(d,p){l.value[d]=p,T.numberFormats=l.value,Oo(T,d,p)}function u(d,p){l.value[d]=lt(l.value[d]||{},p),T.numberFormats=l.value,Oo(T,d,p)}jo++,n&&ba&&(ue.watch(n.locale,d=>{a&&(i.value=d,T.locale=d,er(T,i.value,o.value))}),ue.watch(n.fallbackLocale,d=>{a&&(o.value=d,T.fallbackLocale=d,er(T,i.value,o.value))}));const v={id:jo,locale:Y,fallbackLocale:Q,get inheritLocale(){return a},set inheritLocale(d){a=d,d&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,er(T,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:B,get modifiers(){return D},get pluralRules(){return I||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(d){h=d,T.missingWarn=h},get fallbackWarn(){return x},set fallbackWarn(d){x=d,T.fallbackWarn=x},get fallbackRoot(){return y},set fallbackRoot(d){y=d},get fallbackFormat(){return w},set fallbackFormat(d){w=d,T.fallbackFormat=w},get warnHtmlMessage(){return k},set warnHtmlMessage(d){k=d,T.warnHtmlMessage=d},get escapeParameter(){return E},set escapeParameter(d){E=d,T.escapeParameter=d},t:Z,getLocaleMessage:ae,setLocaleMessage:_,mergeLocaleMessage:b,getPostTranslationHandler:R,setPostTranslationHandler:q,getMissingHandler:$,setMissingHandler:V,[Mo]:ye};return v.datetimeFormats=W,v.numberFormats=ne,v.rt=se,v.te=Ue,v.tm=G,v.d=ie,v.n=F,v.getDateTimeFormat=L,v.setDateTimeFormat=te,v.mergeDateTimeFormat=le,v.getNumberFormat=de,v.setNumberFormat=M,v.mergeNumberFormat=u,v[Po]=t.__injectWithOption,v[Da]=we,v[Ta]=Me,v[Na]=_e,v}function gh(t){const e=me(t.locale)?t.locale:Qn,n=me(t.fallbackLocale)||We(t.fallbackLocale)||De(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=et(t.missing)?t.missing:void 0,a=Pe(t.silentTranslationWarn)||tn(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Pe(t.silentFallbackWarn)||tn(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Pe(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,c=De(t.modifiers)?t.modifiers:{},l=t.pluralizationRules,h=et(t.postTranslation)?t.postTranslation:void 0,x=me(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,w=Pe(t.sync)?t.sync:!0;let S=t.messages;if(De(t.sharedMessages)){const T=t.sharedMessages;S=Object.keys(T).reduce((z,Y)=>{const Q=z[Y]||(z[Y]={});return lt(Q,T[Y]),z},S||{})}const{__i18n:C,__root:N,__injectWithOption:k}=t,E=t.datetimeFormats,D=t.numberFormats,I=t.flatJson;return{locale:e,fallbackLocale:n,messages:S,flatJson:I,datetimeFormats:E,numberFormats:D,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:h,warnHtmlMessage:x,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:w,__i18n:C,__root:N,__injectWithOption:k}}function Ra(t={},e){{const n=Oa(gh(t)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return Pe(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Pe(a)?!a:a},get silentFallbackWarn(){return Pe(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Pe(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,o,s]=a,c={};let l=null,h=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const x=i;return me(o)?c.locale=o:We(o)?l=o:De(o)&&(h=o),We(s)?l=s:De(s)&&(h=s),Reflect.apply(n.t,n,[x,l||h||{},c])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,s]=a,c={plural:1};let l=null,h=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const x=i;return me(o)?c.locale=o:at(o)?c.plural=o:We(o)?l=o:De(o)&&(h=o),me(s)?c.locale=s:We(s)?l=s:De(s)&&(h=s),Reflect.apply(n.t,n,[x,l||h||{},c])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,r)}};return r}}const Ma={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function vh({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>r=[...r,...We(a.children)?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function qo(t){return ue.Fragment}const Ho={name:"i18n-t",props:lt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>at(t)||!isNaN(t)}},Ma),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||Pa({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(x=>x!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=me(t.plural)?+t.plural:t.plural);const s=vh(e,i),c=a[Da](t.keypath,s,o),l=lt({},r),h=me(t.tag)||Ge(t.tag)?t.tag:qo();return ue.h(h,l,c)}}};function yh(t){return We(t)&&!me(t[0])}function Wo(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),me(t.format)?o.key=t.format:Ge(t.format)&&(me(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((y,w)=>n.includes(w)?lt({},y,{[w]:t.format[w]}):y,{}));const c=r(t.value,o,s);let l=[o.key];We(c)?l=c.map((y,w)=>{const S=a[y.type],C=S?S({[y.type]:y.value,index:w,parts:c}):[y.value];return yh(C)&&(C[0].key=`${y.type}-${w}`),C}):me(c)&&(l=[c]);const h=lt({},i),x=me(t.tag)||Ge(t.tag)?t.tag:qo();return ue.h(x,h,l)}}const Go={name:"i18n-n",props:lt({value:{type:Number,required:!0},format:{type:[String,Object]}},Ma),setup(t,e){const n=t.i18n||Pa({useScope:"parent",__useComponent:!0});return Wo(t,e,Lo,(...r)=>n[Na](...r))}},$o={name:"i18n-d",props:lt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ma),setup(t,e){const n=t.i18n||Pa({useScope:"parent",__useComponent:!0});return Wo(t,e,Do,(...r)=>n[Ta](...r))}};function bh(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Eh(t){const e=o=>{const{instance:s,modifiers:c,value:l}=o;if(!s||!s.$)throw it(tt.UNEXPECTED_ERROR);const h=bh(t,s.$),x=Yo(l);return[Reflect.apply(h.t,h,[...Zo(x)]),h]};return{created:(o,s)=>{const[c,l]=e(s);ba&&t.global===l&&(o.__i18nWatcher=ue.watch(l.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=l,o.textContent=c},unmounted:o=>{ba&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const c=o.__composer,l=Yo(s);o.textContent=Reflect.apply(c.t,c,[...Zo(l)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Yo(t){if(me(t))return{path:t};if(De(t)){if(!("path"in t))throw it(tt.REQUIRED_VALUE,"path");return t}else throw it(tt.INVALID_VALUE)}function Zo(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},s=r||{};return me(n)&&(o.locale=n),at(a)&&(o.plural=a),at(i)&&(o.plural=i),[e,s,o]}function xh(t,e,...n){const r=De(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Pe(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":Ho.name,Ho),t.component(Go.name,Go),t.component($o.name,$o)),t.directive("t",Eh(e))}function wh(t,e,n){return{beforeCreate(){const r=ue.getCurrentInstance();if(!r)throw it(tt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Ko(t,i):(i.__injectWithOption=!0,this.$i18n=Ra(i))}else a.__i18n?this===this.$root?this.$i18n=Ko(t,a):this.$i18n=Ra({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&zo(e,a,a),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const r=ue.getCurrentInstance();if(!r)throw it(tt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Ko(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[Mo](e.pluralizationRules||t.pluralizationRules);const n=kr(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const _h=en("global-vue-i18n");function Sh(t={},e){const n=__VUE_I18N_LEGACY_API__&&Pe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Pe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,s]=Ih(t,n),c=en("");function l(y){return i.get(y)||null}function h(y,w){i.set(y,w)}function x(y){i.delete(y)}{const y={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(w,...S){w.__VUE_I18N_SYMBOL__=c,w.provide(w.__VUE_I18N_SYMBOL__,y),!n&&r&&Rh(w,y.global),__VUE_I18N_FULL_INSTALL__&&xh(w,y,...S),__VUE_I18N_LEGACY_API__&&n&&w.mixin(wh(s,s.__composer,y));const C=w.unmount;w.unmount=()=>{y.dispose(),C()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:h,__deleteInstance:x};return y}}function Pa(t={}){const e=ue.getCurrentInstance();if(e==null)throw it(tt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw it(tt.NOT_INSLALLED);const n=Ch(e),r=Ah(n),a=Fo(e),i=kh(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw it(tt.NOT_AVAILABLE_IN_LEGACY_MODE);return Nh(e,i,r,t)}if(i==="global")return zo(r,t,a),r;if(i==="parent"){let c=Dh(n,e,t.__useComponent);return c==null&&(c=r),c}const o=n;let s=o.__getInstance(e);if(s==null){const c=lt({},t);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),s=Oa(c),Th(o,e),o.__setInstance(e,s)}return s}function Ih(t,e,n){const r=ue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Ra(t)):r.run(()=>Oa(t));if(a==null)throw it(tt.UNEXPECTED_ERROR);return[r,a]}}function Ch(t){{const e=ue.inject(t.isCE?_h:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw it(t.isCE?tt.NOT_INSLALLED_WITH_PROVIDE:tt.UNEXPECTED_ERROR);return e}}function kh(t,e){return Sr(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Ah(t){return t.mode==="composition"?t.global:t.global.__composer}function Dh(t,e,n=!1){let r=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(r=s.__composer,n&&r&&!r[Po]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function Th(t,e,n){ue.onMounted(()=>{},e),ue.onUnmounted(()=>{t.__deleteInstance(e)},e)}function Nh(t,e,n,r={}){const a=e==="local",i=ue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw it(tt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Pe(r.inheritLocale)?r.inheritLocale:!0,s=ue.ref(a&&o?n.locale.value:me(r.locale)?r.locale:Qn),c=ue.ref(a&&o?n.fallbackLocale.value:me(r.fallbackLocale)||We(r.fallbackLocale)||De(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),l=ue.ref(kr(s.value,r)),h=ue.ref(De(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),x=ue.ref(De(r.numberFormats)?r.numberFormats:{[s.value]:{}}),y=a?n.missingWarn:Pe(r.missingWarn)||tn(r.missingWarn)?r.missingWarn:!0,w=a?n.fallbackWarn:Pe(r.fallbackWarn)||tn(r.fallbackWarn)?r.fallbackWarn:!0,S=a?n.fallbackRoot:Pe(r.fallbackRoot)?r.fallbackRoot:!0,C=!!r.fallbackFormat,N=et(r.missing)?r.missing:null,k=et(r.postTranslation)?r.postTranslation:null,E=a?n.warnHtmlMessage:Pe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,D=!!r.escapeParameter,I=a?n.modifiers:De(r.modifiers)?r.modifiers:{},T=r.pluralRules||a&&n.pluralRules;function P(){return[s.value,c.value,l.value,h.value,x.value]}const z=ue.computed({get:()=>i.value?i.value.locale.value:s.value,set:b=>{i.value&&(i.value.locale.value=b),s.value=b}}),Y=ue.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),c.value=b}}),Q=ue.computed(()=>i.value?i.value.messages.value:l.value),B=ue.computed(()=>h.value),W=ue.computed(()=>x.value);function ne(){return i.value?i.value.getPostTranslationHandler():k}function R(b){i.value&&i.value.setPostTranslationHandler(b)}function q(){return i.value?i.value.getMissingHandler():N}function $(b){i.value&&i.value.setMissingHandler(b)}function V(b){return P(),b()}function j(...b){return i.value?V(()=>Reflect.apply(i.value.t,null,[...b])):V(()=>"")}function Z(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function se(...b){return i.value?V(()=>Reflect.apply(i.value.d,null,[...b])):V(()=>"")}function ie(...b){return i.value?V(()=>Reflect.apply(i.value.n,null,[...b])):V(()=>"")}function F(b){return i.value?i.value.tm(b):{}}function ee(b,L){return i.value?i.value.te(b,L):!1}function re(b){return i.value?i.value.getLocaleMessage(b):{}}function K(b,L){i.value&&(i.value.setLocaleMessage(b,L),l.value[b]=L)}function we(b,L){i.value&&i.value.mergeLocaleMessage(b,L)}function _e(b){return i.value?i.value.getDateTimeFormat(b):{}}function Me(b,L){i.value&&(i.value.setDateTimeFormat(b,L),h.value[b]=L)}function ye(b,L){i.value&&i.value.mergeDateTimeFormat(b,L)}function Ue(b){return i.value?i.value.getNumberFormat(b):{}}function ke(b,L){i.value&&(i.value.setNumberFormat(b,L),x.value[b]=L)}function G(b,L){i.value&&i.value.mergeNumberFormat(b,L)}const ae={get id(){return i.value?i.value.id:-1},locale:z,fallbackLocale:Y,messages:Q,datetimeFormats:B,numberFormats:W,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(l.value)},get modifiers(){return i.value?i.value.modifiers:I},get pluralRules(){return i.value?i.value.pluralRules:T},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:y},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:w},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:S},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:C},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:D},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:j,getPostTranslationHandler:ne,setPostTranslationHandler:R,getMissingHandler:q,setMissingHandler:$,rt:Z,d:se,n:ie,tm:F,te:ee,getLocaleMessage:re,setLocaleMessage:K,mergeLocaleMessage:we,getDateTimeFormat:_e,setDateTimeFormat:Me,mergeDateTimeFormat:ye,getNumberFormat:Ue,setNumberFormat:ke,mergeNumberFormat:G};function _(b){b.locale.value=s.value,b.fallbackLocale.value=c.value,Object.keys(l.value).forEach(L=>{b.mergeLocaleMessage(L,l.value[L])}),Object.keys(h.value).forEach(L=>{b.mergeDateTimeFormat(L,h.value[L])}),Object.keys(x.value).forEach(L=>{b.mergeNumberFormat(L,x.value[L])}),b.escapeParameter=D,b.fallbackFormat=C,b.fallbackRoot=S,b.fallbackWarn=w,b.missingWarn=y,b.warnHtmlMessage=E}return ue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw it(tt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=b.locale.value,c.value=b.fallbackLocale.value,l.value=b.messages.value,h.value=b.datetimeFormats.value,x.value=b.numberFormats.value):a&&_(b)}),ae}const Lh=["locale","fallbackLocale","availableLocales"],Oh=["t","rt","d","n","tm"];function Rh(t,e){const n=Object.create(null);Lh.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw it(tt.UNEXPECTED_ERROR);const i=ue.isRef(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,Oh.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw it(tt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}if(th(lh),nh(Pd),rh(co),mh(),__INTLIFY_PROD_DEVTOOLS__){const t=Jn();t.__INTLIFY__=!0,Wd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Mh={field:{"mandatory-not-filled":"Mandatory field(s) not filled in"}},Ph={appointment:{new:"New","new-aria-label":"Add a new element",error:{"date-not-available":{boxTitle:"New appointment",title:"The staff is already busy in this slot",description:`An appointment is already positioned on this slot.
|
|
28
28
|
You can modify the time of the appointment by clicking on the button provided for this purpose or confirm the appointment by ignoring the alert.
|
|
29
29
|
|
|
30
30
|
Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},"staff-not-available":{boxTitle:"New appointment",title:"Staff not available",description:`Staff not available
|
|
31
31
|
|
|
32
|
-
Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},unknown:{boxTitle:"Error",title:"An error occurred",cancel:"Cancel"}},details:{"edit-aria-label":"Edit appointment","close-aria-label":"Close appointment details",start:"Start",end:"End",location:{visio:"Join the visio-conference",agence:"Compute the journey",phone:"Call the contact"},actions:{inProgress:{0:"D\xE9marrer le rendez-vous",1:"Confirmer le changement de status : d\xE9marr\xE9",2:"Confirmer le changement de status : d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"Confirmer le changement de status : termin\xE9",2:"Confirmer le changement de status : termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"Confirmer le changement de status : pas venu",2:"Confirmer le changement de status : pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"Confirmer le changement de status : annul\xE9",2:"Confirmer le changement de status : annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"}},"section-details":{title:"Appointment details",company:"Company",service:"Service",staff:"Staff",status:"Status",contact:"Your contact","contact-ref":"Reference","contact-email":"Email","contact-phone":"Phone"},"section-additional-data":{title:"Additional informations"},status:{accepted:"Accepted",inProgress:"In progress",completed:"Completed",noShow:"No show",pending:"Pending",cancelled:"Cancelled",declined:"Declined"}},tooltip:{google:"Google appointment",microsoft:"Microsoft appointment",personal:"Personal appointment"}},title:{main:"Calendar",day:"{date}",week:"{start} - {end}","week-number":"Week {week}",month:"{date}",daily:"Day",weekly:"Week","view-selector-aria-label":"Select a vue",mobile:{view:"Select a vue",users:"Select users"}},nav:{"menu-aria-label":"Open the menu","previous-aria-label":"Previous period","calendar-aria-label":"Select a custom period","next-aria-label":"Next period"},actions:{"filter-aria-label":"Open filter menu","fav-aria-label":"Save vue as favorite","settings-aria-label":"Open settings menu","more-options-aria-label":"Open more options menu","users-aria-label":"Add a user"},user:{modal:{title:"Add a calendar",subtitle:"Staff selected
|
|
33
|
-
Vous pouvez modifier l\u2019heure du rendez-vous en cliquant sur le bouton pr\xE9vu \xE0 cet effet ou confirmer le rendez-vous en ignorant l\u2019alerte.`,confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"staff-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur n'est pas disponible.",description:"Le collaborateur n'est pas disponible.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"appointment-period-rule":{boxTitle:"Nouveau rendez-vous",title:"Rendez-vous en dehors des plages",description:"Le rendez-vous a \xE9t\xE9 pris en dehors des plages ouvertes \xE0 la prise de rendez-vous pour cette entreprise.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-daily":{boxTitle:"Nouveau rendez-vous",title:"Quota quotidien",description:"Le quota quotidien de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-weekly":{boxTitle:"Nouveau rendez-vous",title:"Quota hebdomadaire",description:"Le quota hebdomadaire de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},unknown:{boxTitle:"Erreur",title:"Un erreur est survenu",cancel:"@:common.action.cancel"},continue:"Souhaitez-vous poursuivre cette action ?"},details:{title:"D\xE9tails du rendez-vous","edit-aria-label":"Modifier le rendez-vous","close-aria-label":"Fermer le d\xE9tail du rendez-vous",start:"D\xE9but",end:"Fin","no-service":"Service inexistant",location:{visio:"Participer \xE0 la visioconf\xE9rence",agence:"Calculer l'itin\xE9raire",phone:"Appeler le client"},actions:{tooltip:{contact:"Afficher les d\xE9tails du client",form:"Afficher les d\xE9tails du rendez-vous",noShow:"@:agenda.appointment.details.actions.noShow.0",completed:"@:agenda.appointment.details.actions.completed.0",inProgress:"@:agenda.appointment.details.actions.inProgress.0",cancelled:"@:agenda.appointment.details.actions.cancelled.0"},messages:{confirm:"Confirmer le changement de status : "},inProgress:{0:"D\xE9marrer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",2:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",2:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"@:agenda.appointment.details.actions.messages.confirm pas venu",2:"@:agenda.appointment.details.actions.messages.confirm pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",2:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"},accepted:{0:"Accepter le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",2:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",3:"Chargement",4:"Rendez-vous accept\xE9"},declined:{0:"Refuser le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",2:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",3:"Chargement",4:"Rendez-vous refus\xE9"}},"section-details":{title:"D\xE9tail du rendez-vous",company:"Entreprise",service:"Service",staff:"@:common.field.staff.label",status:"Statut",contact:"Votre client","contact-ref":"R\xE9f\xE9rence","contact-email":"@:common.field.email.label","contact-phone":"T\xE9l\xE9phone",attendees:"Participants",externe:"Connecteur"},"section-additional-data":{title:"Informations compl\xE9mentaires"},status:{accepted:"Accept\xE9",inProgress:"En cours",completed:"Termin\xE9",noShow:"Pas venu",pending:"En attente",cancelled:"Annul\xE9",declined:"Refus\xE9"}},tooltip:{google:"Rendez-vous Google",microsoft:"Rendez-vous Microsoft",ics:"Rendez-vous iCalendar",personal:"Rendez-vous personnel"},external:{"no-title":"Aucun titre"},activities:{"update-status":{completed:"Rendez-vous termin\xE9",inProgress:"Rendez-vous en cours",accepted:"Rendez-vous accept\xE9",cancelled:"Rendez-vous annul\xE9",pending:"Rendez-vous en attente",declined:"Rendez-vous refus\xE9",noShow:"Le client n'est pas venu",unknown:"Status du rendez-vous inconnu",custom:"Statut du rendez-vous modifi\xE9"},creation:{widget:"Rendez-vous pris via le widget",api:"Rendez-vous pris par API",mobile:"Rendez-vis pris par l'application mobile",w2:"Rendez-vous pris via la console",nh:"Rendez-vous pris depuis le calendrier",unknown:"Cr\xE9ation du rendez-vous"},deletion:{staff:"Rendez-vous annul\xE9 par le collaborateur",contact:"Rendez-vous annul\xE9 par le @:crm.contact-trad",unknown:"Rendez-vous annul\xE9"},"update-note":"Note du rendez-vous modifi\xE9","update-form":"Champ du formulaire de rendez-vous modifi\xE9","update-staff":"Collaborateur du rendez-vous modifi\xE9","update-service":"Service du rendez-vous modifi\xE9","update-resource":"Resource du rendez-vous modifi\xE9","update-dates":"Rendez-vous replanifi\xE9","update-start":"D\xE9but du rendez-vous modifi\xE9","update-end":"Fin du rendez-vous modifi\xE9","update-location":"Emplacement du rendez-vous modifi\xE9"}},event:{share:{thanks:{"panel-title":"Cr\xE9er un lien de prise de rendez-vous",title:"F\xE9licitations !",body:"Votre lien est maintenant disponible. Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts"},"panel-title":"Partager",title:"Partager l'invitation \xE0 votre \xE9v\xE9nement !",body:"Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts","close-aria-label":"Fermer le panneau de partage",media:{link:"Lien de partage",qrcode:"QR Code",email:{label:"Partager par email",action:{subject:"Venez vous inscrire \xE0 notre \xE9v\xE9nement",body:"Bonjour,%0A%0A Nous serions heureux de vous rencontrer lors de notre \xE9v\xE9nement {subject} qui aura lieu le {date} \xE0 {time} dans nos locaux.%0A%0AVoici le lien de r\xE9servation {link}."}}}}},fab:{widget:{title:"Rendez-vous client",description:"Cr\xE9ez un nouveau rendez-vous \xE0 l'aide du widget de prise de rendez-vous","aria-label":"@:agenda.fab.widget.description"},perso:{title:"Rendez-vous personnel",description:"Cr\xE9ez un nouvel \xE9v\xE9nement personnel","aria-label":"@:agenda.fab.perso.description"},event:{title:"\xC9v\xE9nement",description:"Cr\xE9ez un \xE9v\xE9nement puis partagez le lien de r\xE9servation o\xF9 vous voulez.","aria-label":"@:agenda.fab.event.description"}},title:{main:"Calendrier",day:"{date}",week:"{start} - {end}","week-number":"Semaine {week}",month:"{date}",daily:"Jour",weekly:"Semaine","view-selector-aria-label":"S\xE9lectionnez une vue",today:"Aujourd'hui",mobile:{view:"Selection de la vue",users:"Selection des utilisateurs"}},nav:{"menu-aria-label":"Acc\xE9der au menu","previous-aria-label":"P\xE9riode pr\xE9c\xE9dente","calendar-aria-label":"S\xE9lectionner une p\xE9riode sp\xE9cifique","next-aria-label":"P\xE9riode suivante"},actions:{"filter-aria-label":"Ouvrir le menu de filtrage","fav-aria-label":"Sauvegarder cette vue comme favorite","settings-aria-label":"Ouvrir le menu de param\xE9trage","more-options-aria-label":"Ouvrir plus d'options","users-aria-label":"Ajouter un utilisateur","add-user-note-label":"Note"},user:{modal:{title:"Ajouter un agenda",subtitle:"\xC9quipier(s) s\xE9lectionn\xE9(s) ({max} maximum):",action:"Ajouter les agendas"}},reschedule:{quick:{title:"Modification du rendez-vous",message:"Le rendez-vous a \xE9t\xE9 modifi\xE9, confirmez-vous la modification ?","draft-warning":"Un rendez-vous est en cours d'\xE9dition, confirmez-vous l'annulation de l'\xE9dition du rendez-vous actuel ?",confirm:"@:common.action.confirm",start:"D\xE9but",end:"Fin",staff:"@:common.field.staffs.label"},success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur est survenue durant la replanification","error-1000":"L'\xE9quipier n'est pas disponible dans cette entreprise","error-1001":"Quota quotidien atteint","error-1002":"Quota hebdomadaire atteint","error-1003":"Borne de prise de rendez-vous non respect\xE9","error-1004":"Resource non disponible"},client:{addnote:{success:"Client annot\xE9",error:"Une erreur est survenue durant l'ajout de la note client"}},filter:{appointment:{title:"Type de rendez-vous",personalFilter:"Rendez-vous personnel",externalFilter:"Rendez-vous externes",cancelledFilter:"Rendez-vous annul\xE9s"},company:{title:"\xC9tablissements"}},othersAgenda:{title:"Autres agendas",add:"Ajouter un agenda"}},Af={main:{skip:"Passer au contenu"},menu:{logout:{title:"Se d\xE9connecter","aria-label":"Se d\xE9connecter","popover-title":"D\xE9connexion","popover-description":"Au plaisir de vous revoir \u{1F609}"},notifications:{title:"Notifications"},extendedMenu:{title:"Menu","aria-label":"Afficher le menu"}},notification:{title:"Notifications ({nb})",event:{title:"{contact} a pris rendez-vous avec vous.",body:"Rendez-vous le {day} {date} \xE0 {time} avec {staff}",info:"{company} - {service}",content:"<b>{client}</b> a pris un nouveau rendez-vous avec <b>{staff}</b> pour le service <b>{service}</b> de l'entreprise <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>.",accepted:"@:agenda.appointment.details.actions.accepted.4",declined:"@:agenda.appointment.details.actions.declined.4","accepte-error":"Une erreur a eu lieu lors de l'acceptation","decline-error":"Une erreur a eu lieu lors du refus",perso:{title:"Un rendez-vous personnel a \xE9t\xE9 pris pour le collaborateur {staff}.",body:"Rendez-vous le {day} {date} \xE0 {time}",info:"{company}",content:"Un nouveau rendez-vous personnel avec <b>{staff}</b> pour l'entreprise <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>."}},period:{new:"Nouvelles",week:"Cette semaine",earlier:"Plus t\xF4t"},date:"Il y a {duration}"},topBar:{avatar:{"aria-label":"Avatar de l'utilisateur"}},"router-meta":{title:"Agendize","account-selector":"Quel est votre organisation?",calendar:{title:"Calendrier",description:"G\xE9rer vos rendez-vous et planifier votre activit\xE9",filter:"Menu principal",filterDescription:"Afficher/Masquer le menu principal"},settings:{title:"Param\xE9trage",description:"Param\xE9trer votre Agendize en fonction de vos pr\xE9f\xE9rences",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},forms:{title:"Formulaires",description:"G\xE9rer et configurer vos formulaires",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},queues:{title:"Files d'attente",description:"G\xE9rer et configurer vos files d'attente",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},crm:{title:"@:crm.contacts-caps-trad",description:"G\xE9rer et configurer vos @:crm.contacts-trad",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},report:{title:"Rapport",description:"Consulter mes rapports",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"}},login:{"account-selection":{title:"Nous avons trouv\xE9 plusieurs organisations.",subtitle:"Sur quelle organisation souhaitez-vous vous connecter?",next:"@:common.next",right:{0:"@:common.roles.administrator",1:"@:common.roles.scheduler",2:"@:common.roles.reader",owner:"Propri\xE9taire",company:{0:"Administrateur de planification",1:"Personnel de planification",2:"Lecteur de planification",multiple:"Droits multiples"}}}}},Df={buffer:{after:"Buffer",before:"Buffer"}},Nf={yes:"Oui",no:"Non",next:"Suivant",copy:"Copi\xE9",error:{404:{title:"Vous semblez perdu !",description:"La page demand\xE9e n'existe pas."}},field:{actif:{label:"Actif"},address:{label:"Adresse"},civility:{label:"Civilit\xE9",placeholder:"Saisissez une civilit\xE9"},description:{label:"Description",placeholder:"Saisissez une @.lower:common.field.description.label"},emails:{label:"Courriel(s)"},email:{label:"Email",placeholder:"Saisissez un @.lower:common.field.email.label"},"external-id":{label:"Id externe",placeholder:"Saisissez un id externe",helper:"L'id externe permet de faire le lien avec votre propre syst\xE8me d'information"},"external-ref":{label:"R\xE9f\xE9rence externe"},"external-calendars":{label:"Calendriers externes"},firstName:{label:"Pr\xE9nom",placeholder:"Saisissez un @.lower:common.field.firstName.label"},icals:{label:"Url du calendrier",placeholder:"Saisissez l'url du calendrier externe"},lastName:{label:"Nom",placeholder:"Saisissez un @.lower:common.field.lastName.label"},name:{label:"@:common.field.lastName.label"},number:{label:"Nombre"},"mandatory-not-filled":"Champ(s) obligatoire non renseign\xE9(s)",parent:{label:"Parent"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},phones:{label:"T\xE9l\xE9phone(s)"},fax:{label:"Fax"},photo:{label:"Photo",placeholder:"Glisser-d\xE9poser une @.lower:common.field.photo.label ou cliquer sur ajouter"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser une @.lower:common.field.illustration.label ou cliquer sur ajouter",button:"Ajouter une illustration"},service:{label:"Service"},services:{label:"Services"},"service-group":{label:"Cat\xE9gorie"},"service-groups":{label:"Cat\xE9gories"},staff:{label:"Collaborateur"},staffs:{label:"Collaborateurs"},"staff-groups":{label:"\xC9quipes"},"staff-group":{label:"\xC9quipe"},tag:{label:"Tags",placeholder:"S\xE9lectionnez un tag"},birthday:{label:"Date de naissance"},gender:{label:"Genre",placeholder:"Saisissez un champ"},language:{notification:{label:"Langue de notification"},label:"Langue"},custom:{label:"Champ custom"}},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},genders:{male:"Homme",female:"Femme",other:"Autre"},action:{accept:"Accepter",duplicate:"Dupliquer",delete:"Supprimer",confirm:"Confirmer",cancel:"Annuler",back:"Retour","back-to-list":"Retour \xE0 la liste",close:"Fermer",refuse:"Refuser",save:"Enregistrer",modify:"Modifier",share:"Partager",download:"T\xE9l\xE9charger",validate:"Valider",filter:"Filtrer"},content:{none:"Aucun","none-e":"Aucune"},search:{"by-name":"Recherche par @.lower:common.field.name.label","by-firstName-lastName":"Recherche par @.lower:common.field.lastName.label, @.lower:common.field.firstName.label"},title:{warning:"Avertissement",confirm:"Confirmation ?"},modal:{confirm:"\xCAtes-vous s\xFBr de vouloir continuer ?"},duration:{part:{hour:"1 heure",minute:"1 minute",hours:"{hours} heures",minutes:"{minutes} minutes"},days:"{days} jour(s)",hour:"@:common.duration.part.hour|@:common.duration.part.hours",hours:"{hours} heure(s)",h:"{hours} h",minute:"@:common.duration.part.minute|@:common.duration.part.minutes",minutes:"{minutes} minute(s)",min:"{minutes} min",seconds:"{seconds} second(s)",s:"{seconds} s","days-with-hours":"@:common.duration.days @:common.duration.hours","days-with-minutes":"@:common.duration.days @:common.duration.minutes","days-with-hours-and-minutes":"@:common.duration.days @:common.duration.hours @:common.duration.minutes","hours-with-minutes":"@:common.duration.hours @:common.duration.minutes","hour-and-minute":"@:common.duration.part.hour @:common.duration.part.minute","hours-and-minute":"@:common.duration.part.hours @:common.duration.part.minute","hours-and-minutes":"@:common.duration.part.hours @:common.duration.part.minutes","hour-and-minutes":"@:common.duration.part.hour @:common.duration.part.minutes"},date:{creation:"Cr\xE9\xE9 le {date}","at-time":"Le {date} \xE0 {time}"},"creation-date":"@:common.date.creation",gender:{female:"Femme",male:"Homme",other:"Autre",undefined:"-"},language:{fr:"Fran\xE7ais",en:"Anglais",es:"Espagnol",jp:"Japonais",de:"Allemand",pt:"Portugais",nl:"Neerlandais",it:"Italien"},notifications:{email:"Courriel",all:"Courriel et SMS",none:"Pas de notification",sms:"SMS"},roles:{reader:"Lecteur",scheduler:"Planificateur",administrator:"Administrateur"},select:{"select-all":"Tout s\xE9lectionner","deselect-all":"Tout d\xE9s\xE9lectionner"},from:"Du",to:"Au",filter:{"erase-filters":"Effacer les filtres","apply-filters":"Appliquer les filtres"}},Of={"contact-trad":"contact","contact-caps-trad":"contact","contacts-trad":"contacts","contacts-caps-trad":"Contacts",action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-client":"Nouveau @:crm.contact-trad","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","advanced-filter":"Filtres avanc\xE9s","erase-filters":"Effacer les filtres"},filter:{title:"Filtres avanc\xE9s",selects:{empty:"Aucune pr\xE9f\xE9rence",yes:"Oui",no:"Non"},"marketing-consent":{label:"Consentement marketing"},blocked:{label:"Bloqu\xE9"},"last-modification":{label:"Date de derni\xE8re modification"}},"client-details":{tabs:{resume:"R\xE9sum\xE9",histories:"Historique"},actions:{booking:"Prendre RDV",email:"Email",call:"Appeler","add-note":"\xC9crire une note"},resumes:{info:"Informations","client-ref":"R\xE9f\xE9rence @:crm.contact-trad",company:"Entreprise",job:"Poste","contact-info":"Coordonn\xE9es","additionnal-info":"Informations additionnelles","custom-section":"Section custom",emailConsent:{label:"Consentement email",tooltip:"Consentement email donn\xE9"}},histories:{empty:"Aucune activit\xE9 pour ce client",accordeon:{today:"Aujourd'hui",week:"Cette semaine",before:"Plus t\xF4t"},appointment:{new:{title:"Nouveau rendez-vous",description:"Rendez-vous le {startDate} \xE0 {startTime} {staffFullname}"},update:{title:"Rendez-vous modifi\xE9",description:""}},note:{new:{title:"Nouvelle note"}},email:{title:"Nouvel email envoy\xE9"},textMessage:{title:"SMS envoy\xE9"}}},details:{new:"Nouveau @:crm.contact-trad",title:"D\xE9tail du @:crm.contact-trad",note:{placeholder:"Saisissez la note du @:crm.contact-trad",label:"Note du @:crm.contact-trad"},addNote:{success:"Note du @:crm.contact-trad ajout\xE9",error:"Une erreur est survenu lors de l'ajout de note : {code}"},address:{title:"Adresse du @:crm.contact-trad",subTitle:"L\u2019adresse du contact est l\u2019adresse saisie par le @:crm.contact-trad lors de la prise de rendez-vous. Il peut s\u2019agir du lieu de rendez-vous dans le cadre de rendez-vous chez le @:crm.contact-trad."},details:{title:"Coordonn\xE9es",subTitle:"Ces coordonn\xE9es permettent \xE0 vos collaborateurs de contacter le @:crm.contact-trad."},internationalization:{title:"Internationalisation"},communication:{title:"Communication",subTitle:"Cette section vous permet de d\xE9finir le moyen de communication pr\xE9f\xE9rentiel du @:crm.contact-trad pour la r\xE9ception des notifications et des rappels."},"save-success":"Les informations du @:crm.contact-trad ont bien \xE9t\xE9 enregistr\xE9es","save-error":"Erreur lors de l'enregistrement du contact",fields:{address:{label:"Adresse",placeholder:"10 rue de la paix"},address2:{label:"Compl\xE9ment d'adresse",placeholder:"Appartement, immeuble, \xE9tage"},"postal-code":{label:"Code postal",placeholder:"75000"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat",placeholder:"\xC9tat"},country:{label:"Pays"},ref:{label:"R\xE9f\xE9rence @:crm.contact-trad",placeholder:"Saisissez une r\xE9f\xE9rence @:crm.contact-trad"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du @:crm.contact-trad",placeholder:"@:common.field.illustration.placeholder",button:"@:common.field.illustration.button"},"marketing-consent":{label:"Consentement pour les communications marketing"},job:{label:"Poste",placeholder:"Saisissez un @.lower:crm.details.fields.job.label"},company:{label:"Entreprise",placeholder:"Saisissez une entreprise"},email:{label:"Email",placeholder:"Saisissez un email"},phone:{label:"T\xE9l\xE9phone"},fax:{label:"Fax",placeholder:"Saisissez un num\xE9ro de fax"},timeZone:{label:"Fuseau horaire"},notification:{label:"Notifications"},reminder:{label:"Rappels"},commentary:{label:"Commentaire",placeholder:"Saisissez un commentaire"},creation:{label:"Date de cr\xE9ation"}}},menu:{burger:{"aria-label":"Menu"},mobile:"@:crm.contacts-caps-trad",clients:"Tous les @:crm.contacts-trad","client-details":"Gestion du @:crm.contact-trad"},list:{delete:{title:"Suppression de @:crm.contact-trad",confirm:"@:common.action.delete",descriptionN:"{number} @:crm.contacts-trad vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes @:crm.contacts-trad ({number})",search:{placeholder:"Recherchez par nom, pr\xE9nom, t\xE9l\xE9phone, et email",empty:"Aucun r\xE9sultat"},table:{firstName:"Pr\xE9nom",lastName:"Nom",phone:"T\xE9l\xE9phone",email:"Email",tags:"Tags"}},title:{main:"@:crm.contacts-caps-trad"}},Rf={action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-form":"Nouveau formulaire","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e",modify:"@:common.action.modify le formulaire"},details:{advanced:{title:"Options avanc\xE9es"},content:"Contenu du formulaire",description:{label:"Description",placeholder:"Saisissez la description du formulaire"},emailNotification:{title:"Destinataires des r\xE9ponses",placeholder:"Saisissez une adresse email"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser l\u2019illustration ou cliquer pour l'ajouter","default-name":"illustration du formulaire",button:"Ajouter une illustration",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le cot\xE9 droit du formulaire."},name:{label:"Nom du formulaire",placeholder:"Saisissez le nom du formulaire"},personalisation:{title:"Personnalisation"},"save-error":"\xC9chec lors de l'enregistrement du formulaire","save-success":"Les configurations du formulaire ont bien \xE9t\xE9 enregistr\xE9es",shared:{title:"Partage",forward:"Acc\xE9der au formulaire",copy:"Copier le lien",company:"S\xE9lectionnez une entreprise",copied:"Lien copi\xE9 dans le presse-papier",qrcode:"QR Code"},submitMessage:{label:"Message de remerciement",placeholder:"Saisissez le message de remerciement \xE0 afficher au client"},tabs:{general:{title:"G\xE9n\xE9ral",ariaLabel:"G\xE9n\xE9ral"},builder:{title:"Builder",ariaLabel:"Builder"}},title:"D\xE9tail du formulaire"},generator:{"drop-here":"D\xE9placer un \xE9l\xE9ment ici",error:{label:"Le champ @:form.generator.fields.common.label.label est obligatoire",modal:"Merci de remplir correctement la configuration du champ"},fields:{tab:{fields:"Champs",statics:"Statiques"},default:{values:{1:"Premier choix",2:"Second choix",3:"Troisi\xE8me choix"}},attributes:{title:"Attributs","external-id":{label:"Cl\xE9 externe",placeholder:"Saisissez une @:form.generator.fields.attributes.external-id.label"},required:"Obligatoire",visible:"Visible"},common:{title:"Propri\xE9t\xE9s",id:"ID",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.common.label.label"},helper:{label:"Message d'aide",placeholder:"Saisissez un @:form.generator.fields.common.helper.label"},placeholder:{label:"Placeholder",placeholder:"Saisissez un @:form.generator.fields.common.placeholder.label",helper:"Le placeholder est le message par d\xE9faut affich\xE9 dans le contenu du champ"}},values:{other:"Permettre \xE0 l'utilisateur de saisir une valeur",multiple:"Permettre \xE0 l'utilisateur de s\xE9lectionner plusieurs valeurs",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.values.label.label"},value:{label:"Valeur",placeholder:"Saisissez une @:form.generator.fields.values.value.label"},title:"Donn\xE9es",add:"Ajouter une valeur"},format:{title:"Validation",type:"Caract\xE8res accept\xE9s",min:{label:"Nombre min. de caract\xE8res",placeholder:"Saisissez un nombre"},max:{label:"Nombre max. de caract\xE8res",placeholder:"Saisissez un nombre"},regex:{label:"Regex",placeholder:"Saisissez une expression r\xE9guli\xE8re"},types:{none:"Tous les caract\xE8res",regex:"Regex",numeric:"Num\xE9rique",alphanumeric:"Alphanum\xE9rique"}}},properties:{input:{label:"Champ texte",description:"Une ligne de texte simple"},textarea:{label:"Textarea",description:"Une ou plusieurs lignes de texte"},checkbox:{label:"Groupe de checkbox",description:"Une ou plusieurs checkbox"},radio:{label:"Groupe de bouton radio",description:"Plusieurs boutons radios"},select:{label:"Liste de s\xE9lection",description:"S\xE9lection dans une liste"},date:{label:"Date",description:"Accepte une date"},file:{label:"Envoi de fichier",description:"T\xE9l\xE9chargement de fichier"},number:{label:"Champ nombre",description:"Uniquement des nombres"},url:{label:"Site web",description:"Accepte une url internet"},address:{label:"Adresse",description:"Adresse postal",subItems:{"crm-address-firstline":{label:"Adresse"},"crm-address-secondline":{label:"Ligne d'adresse secondaire"},"crm-address-city":{label:"Ville"},"crm-address-postalcode":{label:"Code postal"},"crm-address-state":{label:"Etat/Province"},"crm-address-country":{label:"Pays"}}},email:{label:"Champ email",description:"Uniquement des emails"},phone:{label:"Champ t\xE9l\xE9phone",description:"Accepte un num\xE9ro de t\xE9l\xE9phone"},price:{label:"Prix",description:"Uniquement des nombres"},name:{label:"Informations personnelles",description:"Pr\xE9nom et nom",subItems:{"crm-first-name":{label:"Pr\xE9nom"},"crm-last-name":{label:"Nom"}}},rating:{label:"Notation",description:"\xC9chelle de notation"},title:{label:"Titre 1",description:"HTML <h1> tag"},title2:{label:"Titre 2",description:"HTML <h2> tag"},title3:{label:"Titre 3",description:"HTML <h3> tag"},divider:{label:"S\xE9parateur",description:"HTML <hr> tag"},modal:{title:"Propri\xE9t\xE9s du champ"}}},menu:{burger:{"aria-label":"Menu"},mobile:"Formulaires",forms:"Tous les Formulaires","form-details":"Gestion du formulaire","form-results":"Toutes les r\xE9ponses"},list:{delete:{title:"Suppression de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} formulaires vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes formulaires ({number})",search:{placeholder:"Recherchez par nom, titre, et email",empty:"Aucun r\xE9sultat"},table:{name:"Nom",title:"Titre",email:"Email"}},result:{details:{date:"R\xE9ponse du {date} \xE0 {hours}",delete:{confirm:"@:common.action.confirm",description:"Souhaitez-vous r\xE9ellement supprimer cette r\xE9ponse ?",error:"\xC9chec lors de la suppression de la r\xE9ponse",success:"R\xE9ponse supprim\xE9e",title:"@:common.action.delete"},file:"Fichier",optional:"Optionnel"},status:{action:"Changer le statut",error:"\xC9chec lors du changement de statut",field:"Statut",success:"Le changement de statut a bien \xE9t\xE9 effectu\xE9",title:"G\xE9rer le statut",value:{neutral:"Neutre",in_progress:"En cours",finished:"Finalis\xE9",reopening:"R\xE9ouverture"}},list:{title:"@:form.menu.form-results : {title}",search:{placeholder:"Rechercher par email"},delete:{title:"Suppression du r\xE9sultat de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} r\xE9sultats vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"Le r\xE9sultat de {email} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},table:{date:"Date",email:"Email",status:"@:form.result.status.field"}}},submit:"Soumettre le formulaire",title:{main:"Formulaires"}},Lf={action:{cancel:"@:common.action.cancel",delete:"@:common.action.delete",duplicate:"@:common.action.duplicate","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","new-queue":"Nouvelle file d'attente",save:"@:common.action.save"},contact:{"contact-us":"Contactez-nous","call-us":"Appelez-nous","send-message":"Envoyer un message"},form:{firstname:{title:"Votre pr\xE9nom",placeholder:"Saisissez @.lower:queue.form.firstname.title"},lastname:{title:"Votre nom",placeholder:"Saisissez @.lower:queue.form.lastname.title"},phone:{title:"Votre num\xE9ro de t\xE9l\xE9phone portable",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},submit:"Ajoutez moi \xE0 la file d'attente"},"queue-details":{company:{label:"Entreprise",placeholder:"S\xE9lectionner une entreprise"},form:{helper:"Vous pouvez associer un formulaire \xE0 votre file d\u2019attente afin d\u2019ajouter de nouveaux champs \xE0 la page d\u2019inscription de votre file d\u2019attente.",label:"Champs personnalis\xE9s",placeholder:"S\xE9lectionner un formulaire"},"message-customization":{title:"Personnalisation des messages",description:"<p>Dans les champs de personnalisation des messages, vous pouvez utiliser les textes dynamiques suivants :</p><p>- {firstname} sera remplac\xE9 automatiquement par le nom du client.</p><p>- {number_in_line} sera remplac\xE9 par le num\xE9ro d'enregistrement du client dans la file d'attente.</p>"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de la file d\u2019attente"},"public-interface":{action:{access:"Acc\xE9der \xE0 l\u2019interface publique",paste:"Copier le lien"},customization:"Personnalisation de l\u2019interface publique","qr-code":"QR Code :",title:"Interface publique"},"save-error":"\xC9chec lors de l'enregistrement de la file d'attente","save-success":"Les configurations de la file d'attente ont bien \xE9t\xE9 enregistr\xE9es",title:"Configuration g\xE9n\xE9rale","welcome-message":{default:`<b>Bienvenue,</b>
|
|
32
|
+
Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},unknown:{boxTitle:"Error",title:"An error occurred",cancel:"Cancel"}},details:{"edit-aria-label":"Edit appointment","close-aria-label":"Close appointment details",start:"Start",end:"End",location:{visio:"Join the visio-conference",agence:"Compute the journey",phone:"Call the contact"},actions:{inProgress:{0:"D\xE9marrer le rendez-vous",1:"Confirmer le changement de status : d\xE9marr\xE9",2:"Confirmer le changement de status : d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"Confirmer le changement de status : termin\xE9",2:"Confirmer le changement de status : termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"Confirmer le changement de status : pas venu",2:"Confirmer le changement de status : pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"Confirmer le changement de status : annul\xE9",2:"Confirmer le changement de status : annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"}},"section-details":{title:"Appointment details",company:"Company",service:"Service",staff:"Staff",status:"Status",contact:"Your contact","contact-ref":"Reference","contact-email":"Email","contact-phone":"Phone"},"section-additional-data":{title:"Additional informations"},status:{accepted:"Accepted",inProgress:"In progress",completed:"Completed",noShow:"No show",pending:"Pending",cancelled:"Cancelled",declined:"Declined"}},tooltip:{google:"Google appointment",microsoft:"Microsoft appointment",personal:"Personal appointment"}},title:{main:"Calendar",day:"{date}",week:"{start} - {end}","week-number":"Week {week}",month:"{date}",daily:"Day",weekly:"Week","view-selector-aria-label":"Select a vue",mobile:{view:"Select a vue",users:"Select users"}},nav:{"menu-aria-label":"Open the menu","previous-aria-label":"Previous period","calendar-aria-label":"Select a custom period","next-aria-label":"Next period"},actions:{"filter-aria-label":"Open filter menu","fav-aria-label":"Save vue as favorite","settings-aria-label":"Open settings menu","more-options-aria-label":"Open more options menu","users-aria-label":"Add a user"},user:{modal:{title:"Add a calendar",subtitle:"Staff selected:",action:"Add calendars"}},reschedule:{quick:{title:"Reschedule appointment",message:"The appointment has been modified, do you confirm the modification?","draft-warning":"An appointment is being edited, do you want to leave anyway ?",confirm:"Confirm",start:"Start",end:"End",staff:"Staff"},success:"Appointment modification done with success",error:"An error occurred during the reschedule process","error-1000":"Staff not available in this company","error-1001":"Daily quota reached","error-1002":"Weekly quota reached","error-1003":"Scheduling settings violated","error-1004":"Resource not available"},filter:{title:"Filters",personalFilter:"Personal appointment",externalFilter:"External appointment",cancelledFilter:"Cancelled appointment"},othersAgenda:{title:"Others agendas",add:"Add agenda"}},Fh={submit:"Submit form"},zh={title:"Queue","working-hours":{"open-today":"Open today",closed:"Closed",title:"Opening times"},location:{itinerary:"Itinerary"},contact:{"contact-us":"Contact us","call-us":"Call us","send-message":"Send a message"},form:{firstname:{title:"Your first name",placeholder:"Enter @.lower:queue.form.firstname.title"},lastname:{title:"Your last name",placeholder:"Enter @.lower:queue.form.lastname.title"},phone:{title:"Your mobile phone number",placeholder:"Enter a phone number"},submit:"Add me to queue"},powered:"Powered by Agendize",waiting:{people:"{nb} peoples","waiting-time":"About {time} minute(s) of waiting","number-in-queue":"You are number {nb} in the queue",recap:"There are {nb} people(s) ahead. Your waiting time is estimate to {time} minute(s)"}},Bh={common:{day:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",closed:"Closed"}},"planning-details":{error:{startAfterEnd:"Start time must be less than end time",noHour:"A schedule has not been entered",overlap:"This day's schedules overlap",general:"Hours do not match"}},administration:{title:"Administration",subtitle:"View and update your organization details, manage access rights to your organization and customize the workspace",tabs:{audit:"Audit log"},audit:{search:{placeholder:"Search by last name, first name or email"},columns:{date:"Date",user:"User",action_type:"Category",action:"Action"},no_data:"No audit log",action_type:{0:"Login"},action:{0:"User Login"}}}},Uh={common:Mh,agenda:Ph,form:Fh,queue:zh,settings:Bh},jh={appointment:{new:"Nouveau","new-aria-label":"Ajouter un nouvel \xE9l\xE9ment",error:{"date-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur est d\xE9j\xE0 occup\xE9 sur ce cr\xE9neau.",description:`Un rendez-vous est d\xE9j\xE0 positionn\xE9 sur ce cr\xE9neau.
|
|
33
|
+
Vous pouvez modifier l\u2019heure du rendez-vous en cliquant sur le bouton pr\xE9vu \xE0 cet effet ou confirmer le rendez-vous en ignorant l\u2019alerte.`,confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"staff-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur n'est pas disponible.",description:"Le collaborateur n'est pas disponible.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"appointment-period-rule":{boxTitle:"Nouveau rendez-vous",title:"Rendez-vous en dehors des plages",description:"Le rendez-vous a \xE9t\xE9 pris en dehors des plages ouvertes \xE0 la prise de rendez-vous pour cet \xE9tablissement.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-daily":{boxTitle:"Nouveau rendez-vous",title:"Quota quotidien",description:"Le quota quotidien de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-weekly":{boxTitle:"Nouveau rendez-vous",title:"Quota hebdomadaire",description:"Le quota hebdomadaire de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},unknown:{boxTitle:"Erreur",title:"Un erreur est survenu",cancel:"@:common.action.cancel"},continue:"Souhaitez-vous poursuivre cette action ?"},details:{title:"D\xE9tails du rendez-vous","edit-aria-label":"Modifier le rendez-vous","close-aria-label":"Fermer le d\xE9tail du rendez-vous",start:"D\xE9but",end:"Fin","no-service":"Service inexistant",location:{visio:"Participer \xE0 la visioconf\xE9rence",agence:"Calculer l'itin\xE9raire",phone:"Appeler le client"},actions:{tooltip:{contact:"Afficher les d\xE9tails du client",form:"Afficher les d\xE9tails du rendez-vous",noShow:"@:agenda.appointment.details.actions.noShow.0",completed:"@:agenda.appointment.details.actions.completed.0",inProgress:"@:agenda.appointment.details.actions.inProgress.0",cancelled:"@:agenda.appointment.details.actions.cancelled.0"},messages:{confirm:"Confirmer le changement de status : "},inProgress:{0:"D\xE9marrer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",2:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",2:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"@:agenda.appointment.details.actions.messages.confirm pas venu",2:"@:agenda.appointment.details.actions.messages.confirm pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",2:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"},accepted:{0:"Accepter le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",2:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",3:"Chargement",4:"Rendez-vous accept\xE9"},declined:{0:"Refuser le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",2:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",3:"Chargement",4:"Rendez-vous refus\xE9"}},"edit-notes":{title:"Note du rendez-vous",description:"Merci de ne pas communiquer de propos injurieux, discriminants, ni de donn\xE9es personnelles ou sensibles (sant\xE9, origine raciale ou ethnique, opinions politiques).",save:"Valider",placeholder:"Saisissez une note",success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur s'est produite durant la sauvegarde du rendez-vous",tooltip:"Ajouter/Modifier la note"},"section-details":{title:"D\xE9tail du rendez-vous",company:"\xC9tablissement",service:"Service",staff:"@:common.field.staff.label",status:"Statut",contact:"Votre client","contact-ref":"R\xE9f\xE9rence","contact-email":"@:common.field.email.label","contact-phone":"T\xE9l\xE9phone",attendees:"Participants",externe:"Connecteur",notes:"Notes"},"section-additional-data":{title:"Informations compl\xE9mentaires"},status:{accepted:"Accept\xE9",inProgress:"En cours",completed:"Termin\xE9",noShow:"Pas venu",pending:"En attente",pendingPayment:"En attente de paiement",cancelled:"Annul\xE9",declined:"Refus\xE9"}},tooltip:{google:"Rendez-vous Google",microsoft:"Rendez-vous Microsoft",ics:"Rendez-vous iCalendar",personal:"Rendez-vous personnel",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence"},external:{"no-title":"Aucun titre"},activities:{"update-status":{completed:"Rendez-vous termin\xE9",inProgress:"Rendez-vous en cours",accepted:"Rendez-vous accept\xE9",cancelled:"Rendez-vous annul\xE9",pending:"Rendez-vous en attente",declined:"Rendez-vous refus\xE9",noShow:"Le client n'est pas venu",unknown:"Status du rendez-vous inconnu",custom:"Statut du rendez-vous modifi\xE9"},creation:{widget:"Rendez-vous pris via le widget",api:"Rendez-vous pris par API",mobile:"Rendez-vis pris par l'application mobile",w2:"Rendez-vous pris via la console",nh:"Rendez-vous pris depuis le calendrier",unknown:"Cr\xE9ation du rendez-vous"},deletion:{staff:"Rendez-vous annul\xE9 par le collaborateur",contact:"Rendez-vous annul\xE9 par le @:crm.contact-trad",unknown:"Rendez-vous annul\xE9"},"update-note":"Note du rendez-vous modifi\xE9","update-form":"Champ du formulaire de rendez-vous modifi\xE9","update-staff":"Collaborateur du rendez-vous modifi\xE9","update-service":"Service du rendez-vous modifi\xE9","update-resource":"Resource du rendez-vous modifi\xE9","update-dates":"Rendez-vous replanifi\xE9","update-start":"D\xE9but du rendez-vous modifi\xE9","update-end":"Fin du rendez-vous modifi\xE9","update-location":"Emplacement du rendez-vous modifi\xE9"}},event:{share:{thanks:{"panel-title":"Cr\xE9er un lien de prise de rendez-vous",title:"F\xE9licitations !",body:"Votre lien est maintenant disponible. Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts"},"panel-title":"Partager",title:"Partager l'invitation \xE0 votre \xE9v\xE9nement !",body:"Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts","close-aria-label":"Fermer le panneau de partage",media:{link:"Lien de partage",qrcode:"QR Code",email:{label:"Partager par email",action:{subject:"Venez vous inscrire \xE0 notre \xE9v\xE9nement",body:"Bonjour,%0A%0A Nous serions heureux de vous rencontrer lors de notre \xE9v\xE9nement {subject} qui aura lieu le {date} \xE0 {time} dans nos locaux.%0A%0AVoici le lien de r\xE9servation {link}."}}}}},fab:{widget:{title:"Rendez-vous client",description:"Cr\xE9ez un nouveau rendez-vous \xE0 l'aide du widget de prise de rendez-vous","aria-label":"@:agenda.fab.widget.description"},perso:{title:"Rendez-vous personnel",description:"Cr\xE9ez un nouvel \xE9v\xE9nement personnel","aria-label":"@:agenda.fab.perso.description"},event:{title:"\xC9v\xE9nement",description:"Cr\xE9ez un \xE9v\xE9nement puis partagez le lien de r\xE9servation o\xF9 vous voulez.","aria-label":"@:agenda.fab.event.description"}},title:{main:"Calendrier",day:"{date}",week:"{start} - {end}","week-number":"Semaine {week}",month:"{date}",daily:"Jour",weekly:"Semaine","list-week":"Planning",plan:"Planifier","view-selector-aria-label":"S\xE9lectionnez une vue",today:"Aujourd'hui",settings:"Param\xE9trage",mobile:{view:"S\xE9lection de la vue",users:"S\xE9lection des utilisateurs"},noevent:"Aucun \xE9v\xE9nement",export:"Exporter sous Excel"},nav:{"menu-aria-label":"Acc\xE9der au menu","previous-aria-label":"P\xE9riode pr\xE9c\xE9dente","calendar-aria-label":"S\xE9lectionner une p\xE9riode sp\xE9cifique","next-aria-label":"P\xE9riode suivante"},actions:{"filter-aria-label":"Ouvrir le menu de filtrage","fav-aria-label":"Sauvegarder cette vue comme favorite","settings-aria-label":"Ouvrir le menu de param\xE9trage","more-options-aria-label":"Ouvrir plus d'options","users-aria-label":"Ajouter un utilisateur","add-user-note-label":"Note"},user:{modal:{title:"Ajouter un agenda",subtitle:"Agenda(s) s\xE9lectionn\xE9(s) :",action:"Ajouter les agendas"}},reschedule:{quick:{title:"Modification du rendez-vous",message:"Le rendez-vous a \xE9t\xE9 modifi\xE9, confirmez-vous la modification ?","draft-warning":"Un rendez-vous est en cours d'\xE9dition, confirmez-vous l'annulation de l'\xE9dition du rendez-vous actuel ?",confirm:"@:common.action.confirm",start:"D\xE9but",end:"Fin",staff:"@:common.field.staffs.label"},success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur est survenue durant la replanification","error-1000":"Le collaborateur n'est pas disponible dans cet \xE9tablissement","error-1001":"Quota quotidien atteint","error-1002":"Quota hebdomadaire atteint","error-1003":"Borne de prise de rendez-vous non respect\xE9e","error-1004":"Resource non disponible"},client:{addnote:{success:"Client annot\xE9",error:"Une erreur est survenue durant l'ajout de la note client"}},filter:{appointment:{title:"Type de rendez-vous",personalFilter:"Rendez-vous personnels",externalFilter:"Rendez-vous externes",cancelledFilter:"Rendez-vous annul\xE9s"},company:{title:"\xC9tablissements"}},othersAgenda:{title:"Agendas",add:"Ajouter un agenda"},planning:{today:"Aujourd'hui",back:"Retour au calendrier",users:"Collaborateurs",companies:"\xC9tablissements"},list:{print:"Imprimer"}},Vh={main:{skip:"Passer au contenu"},menu:{logout:{title:"Se d\xE9connecter","aria-label":"Se d\xE9connecter","popover-title":"D\xE9connexion","popover-description":"Au plaisir de vous revoir \u{1F609}"},notifications:{title:"Notifications"},extendedMenu:{title:"Menu","aria-label":"Afficher le menu"},top:{personal:"Mes donn\xE9es personnelles",preference:"Mes pr\xE9f\xE9rences",logout:"@:agendize.menu.logout.title"}},page:{help:"Afficher l'aide"},notification:{title:"Notifications ({nb})",event:{title:"{contact} a pris rendez-vous.",body:"Rendez-vous le {day} {date} \xE0 {time} avec {staff}",info:"{company} - {service}",content:"<b>{client}</b> a pris un nouveau rendez-vous avec <b>{staff}</b> pour le service <b>{service}</b> de l'\xE9tablissement <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>.",accepted:"@:agenda.appointment.details.actions.accepted.4",declined:"@:agenda.appointment.details.actions.declined.4","accepte-error":"Une erreur a eu lieu lors de l'acceptation","decline-error":"Une erreur a eu lieu lors du refus","user-delete":"Collaborateur supprim\xE9",perso:{title:"Un rendez-vous personnel a \xE9t\xE9 pris pour le collaborateur {staff}.",body:"Rendez-vous le {day} {date} \xE0 {time}",info:"{company}",content:"Un nouveau rendez-vous personnel avec <b>{staff}</b> pour l'\xE9tablissement <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>."}},period:{new:"Nouvelles",week:"Cette semaine",earlier:"Plus t\xF4t"},date:"Il y a {duration}"},topBar:{news:"Acc\xE9der aux nouveaut\xE9s",help:"Acc\xE9der \xE0 l'aide en ligne",avatar:{"aria-label":"Avatar de l'utilisateur"}},"router-meta":{title:"Agendize","account-selector":"Quelle est votre organisation ?",calendar:{title:"Calendrier",description:"G\xE9rer vos rendez-vous et planifier votre activit\xE9",filter:"Menu principal",filterDescription:"Afficher/Masquer le menu principal"},planning:{title:"Planifier l\u2019activit\xE9",description:"G\xE9rer les planning de vos collaborateurs",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},settings:{title:"Param\xE9trage",description:"Param\xE9trer votre Agendize en fonction de vos pr\xE9f\xE9rences",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},administration:{title:"Administration",description:"Administration de votre organisation",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},forms:{title:"Formulaires",description:"G\xE9rer et configurer vos formulaires",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},queues:{title:"Files d'attente",description:"G\xE9rer et configurer vos files d'attente",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},crm:{title:"@:crm.contacts-caps-trad",description:"G\xE9rer et configurer vos @:crm.contacts-trad",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},report:{title:"Rapport",description:"Consulter mes rapports",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"}},login:{"account-selection":{title:"Nous avons trouv\xE9 plusieurs organisations.",subtitle:"Sur quelle organisation souhaitez-vous vous connecter ?",next:"@:common.next",back:"@:common.back",right:{0:"@:common.roles.administrator",1:"Personnel de planification",2:"Lecteur de planification",3:"Administrateur de planification",owner:"Propri\xE9taire",multiple:"Droits multiples"}}}},qh={buffer:{after:"Buffer",before:"Buffer"}},Hh={yes:"Oui",no:"Non",next:"Suivant",back:"Retour",copy:"Copi\xE9",error:{404:{title:"Vous semblez perdu !",description:"La page demand\xE9e n'existe pas."},deleted:{staff:"Collaborateur supprim\xE9",service:"Service supprim\xE9"},retry:"R\xE9essayer",startAfterEnd:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin"},field:{actif:{label:"Actif"},address:{label:"Adresse"},civility:{label:"Civilit\xE9",placeholder:"Saisissez une civilit\xE9"},description:{label:"Description",placeholder:"Saisissez une @.lower:common.field.description.label"},emails:{label:"Courriel|Courriels"},email:{label:"Email",placeholder:"Saisissez un @.lower:common.field.email.label"},"external-id":{label:"Id externe",placeholder:"Saisissez un id externe",helper:"L'id externe permet de faire le lien avec votre propre syst\xE8me d'information"},"external-ref":{label:"R\xE9f\xE9rence externe"},"external-calendars":{label:"Calendriers externes"},firstName:{label:"Pr\xE9nom",placeholder:"Saisissez un @.lower:common.field.firstName.label"},icals:{label:"Url du calendrier",placeholder:"Saisissez l'url du calendrier externe"},lastName:{label:"Nom",placeholder:"Saisissez un @.lower:common.field.lastName.label"},name:{label:"@:common.field.lastName.label"},number:{label:"Nombre"},"mandatory-not-filled":"Champ(s) obligatoire non renseign\xE9(s)",parent:{label:"Parent"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},phones:{label:"T\xE9l\xE9phone(s)"},fax:{label:"Fax"},photo:{label:"Photo",placeholder:"Glisser-d\xE9poser une @.lower:common.field.photo.label ou cliquer sur ajouter"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser une @.lower:common.field.illustration.label ou cliquer sur ajouter",button:"Ajouter une illustration"},company:{label:"Etablissement"},service:{label:"Service"},services:{label:"Services"},"service-group":{label:"Cat\xE9gorie"},"service-groups":{label:"Cat\xE9gories"},staff:{label:"Collaborateur"},staffs:{label:"Collaborateurs"},"staff-groups":{label:"\xC9quipes"},"staff-group":{label:"\xC9quipe"},tag:{label:"Tags",placeholder:"S\xE9lectionnez un tag"},birthday:{label:"Date de naissance"},gender:{label:"Genre",placeholder:"Saisissez un genre"},language:{notification:{label:"Langue de notification"},label:"Langue"},custom:{label:"Champ custom"}},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},genders:{male:"Homme",female:"Femme",other:"Autre"},dialog:{changeTab:{title:"Modification",description:"Vous avez des modifications non enregistr\xE9es sur l'onglet actuel. Souhaitez-vous tout de m\xEAme changer d'onglet ?"}},action:{accept:"Accepter",duplicate:"Dupliquer",delete:"Supprimer",confirm:"Confirmer",cancel:"Annuler",back:"Retour","back-to-list":"Retour \xE0 la liste",close:"Fermer",refuse:"Refuser",save:"Enregistrer",modify:"Modifier",share:"Partager",download:"T\xE9l\xE9charger",validate:"Valider",filter:"Filtrer"},content:{none:"Aucun","none-e":"Aucune"},search:{"by-name":"Recherche par @.lower:common.field.name.label","by-firstName-lastName":"Recherche par @.lower:common.field.lastName.label, @.lower:common.field.firstName.label"},title:{warning:"Avertissement",confirm:"Confirmation ?"},modal:{confirm:"\xCAtes-vous s\xFBr de vouloir continuer ?"},duration:{part:{hour:"1 heure",minute:"1 minute",hours:"{hours} heures",minutes:"{minutes} minutes"},days:"{days} jour(s)",hour:"@:common.duration.part.hour|@:common.duration.part.hours",hours:"{hours} heure(s)",h:"{hours} h",minute:"@:common.duration.part.minute|@:common.duration.part.minutes",minutes:"{minutes} minute(s)",min:"{minutes} min",seconds:"{seconds} second(s)",s:"{seconds} s","days-with-hours":"@:common.duration.days @:common.duration.hours","days-with-minutes":"@:common.duration.days @:common.duration.minutes","days-with-hours-and-minutes":"@:common.duration.days @:common.duration.hours @:common.duration.minutes","hours-with-minutes":"@:common.duration.hours @:common.duration.minutes","hour-and-minute":"@:common.duration.part.hour @:common.duration.part.minute","hours-and-minute":"@:common.duration.part.hours @:common.duration.part.minute","hours-and-minutes":"@:common.duration.part.hours @:common.duration.part.minutes","hour-and-minutes":"@:common.duration.part.hour @:common.duration.part.minutes","h-and-minutes":"@:common.duration.h @:common.duration.part.minutes"},date:{creation:"Cr\xE9\xE9 le {date}","at-time":"Le {date} \xE0 {time}"},"creation-date":"@:common.date.creation",gender:{female:"Femme",male:"Homme",other:"Autre",undefined:"-"},language:{fr:"Fran\xE7ais",en:"Anglais",es:"Espagnol",jp:"Japonais",de:"Allemand",pt:"Portugais",nl:"Neerlandais",it:"Italien"},notifications:{email:"Courriel",all:"Courriel et SMS",none:"Pas de notification",sms:"SMS"},roles:{reader:"Lecteur",scheduler:"Planificateur",administrator:"Administrateur"},select:{"select-all":"Tout s\xE9lectionner","deselect-all":"Tout d\xE9s\xE9lectionner"},from:"Du",to:"Au",filter:{"erase-filters":"Effacer les filtres","apply-filters":"Appliquer les filtres"}},Wh={"contact-trad":"contact","contact-caps-trad":"contact","contacts-trad":"contacts","contacts-caps-trad":"Contacts",action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-client":"Nouveau @:crm.contact-trad","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","advanced-filter":"Filtres avanc\xE9s","erase-filters":"Effacer les filtres"},filter:{title:"Filtres avanc\xE9s",selects:{empty:"Aucune pr\xE9f\xE9rence",yes:"Oui",no:"Non"},"marketing-consent":{label:"Consentement marketing"},blocked:{label:"Bloqu\xE9"},"last-modification":{label:"Date de derni\xE8re modification"},anonymized:{label:"Afficher les contacts anonymis\xE9s"}},"client-details":{tabs:{resume:"R\xE9sum\xE9",histories:"Historique"},actions:{booking:"Prendre RDV",email:"Email",call:"Appeler","add-note":"\xC9crire une note"},resumes:{info:"Informations","client-ref":"R\xE9f\xE9rence @:crm.contact-trad",company:"Etablissement",job:"Poste","contact-info":"Coordonn\xE9es","additionnal-info":"Informations additionnelles","custom-section":"Section custom",emailConsent:{label:"Consentement email",tooltip:"Consentement email donn\xE9"},title:{mr:"M.",miss:"Mlle.",mrs:"Mme.",dr:"Dr.",me:"Me."}},histories:{empty:"Aucune activit\xE9 pour ce client",accordeon:{today:"Aujourd'hui",week:"Cette semaine",before:"Plus t\xF4t"},appointment:{new:{title:"Nouveau rendez-vous",description:"Rendez-vous le {startDate} \xE0 {startTime} {staffFullname}"},update:{title:"Rendez-vous modifi\xE9",description:""},date:"Date",company:"Etablissement",service:"Service",resource:"Resource",staff:"@:common.field.staff.label"},note:{new:{title:"Nouvelle note"}},email:{title:"Nouvel email envoy\xE9"},textMessage:{title:"SMS envoy\xE9"}}},details:{new:"Nouveau @:crm.contact-trad",title:"D\xE9tails du @:crm.contact-trad",note:{placeholder:"Saisissez la note du @:crm.contact-trad",label:"Note du @:crm.contact-trad"},addNote:{success:"Note du @:crm.contact-trad ajout\xE9e",error:"Une erreur est survenue lors de l'ajout de la note : {code}"},address:{title:"Adresse du @:crm.contact-trad",subTitle:"L\u2019adresse du contact est l\u2019adresse saisie par le @:crm.contact-trad lors de la prise de rendez-vous. Il peut s\u2019agir du lieu de rendez-vous dans le cadre de rendez-vous chez le @:crm.contact-trad"},details:{title:"Coordonn\xE9es",subTitle:"Ces coordonn\xE9es permettent \xE0 vos collaborateurs de contacter le @:crm.contact-trad"},internationalization:{title:"Internationalisation"},communication:{title:"Communication",subTitle:"Cette section vous permet de d\xE9finir le moyen de communication pr\xE9f\xE9rentiel du @:crm.contact-trad pour la r\xE9ception des notifications et des rappels."},"save-success":"Les informations du @:crm.contact-trad ont bien \xE9t\xE9 enregistr\xE9es","save-error":"Erreur lors de l'enregistrement du contact",fields:{address:{label:"Adresse",placeholder:"10 rue de la paix"},address2:{label:"Compl\xE9ment d'adresse",placeholder:"Appartement, immeuble, \xE9tage"},"postal-code":{label:"Code postal",placeholder:"75000"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat",placeholder:"\xC9tat"},country:{label:"Pays"},ref:{label:"R\xE9f\xE9rence @:crm.contact-trad",placeholder:"Saisissez une r\xE9f\xE9rence @:crm.contact-trad"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du @:crm.contact-trad",placeholder:"@:common.field.illustration.placeholder",button:"@:common.field.illustration.button"},"marketing-consent":{label:"Consentement pour les communications marketing"},job:{label:"Poste",placeholder:"Saisissez un @.lower:crm.details.fields.job.label"},company:{label:"\xC9tablissement",placeholder:"Saisissez un \xE9tablissement"},email:{label:"Email",placeholder:"Saisissez un email"},phone:{label:"T\xE9l\xE9phone"},fax:{label:"Fax",placeholder:"Saisissez un num\xE9ro de fax"},timeZone:{label:"Fuseau horaire"},notification:{label:"Notifications"},reminder:{label:"Rappels"},commentary:{label:"Commentaire",placeholder:"Saisissez un commentaire"},creation:{label:"Date de cr\xE9ation"}}},menu:{burger:{"aria-label":"Menu"},mobile:"@:crm.contacts-caps-trad",clients:"Tous les @:crm.contacts-trad","client-details":"Gestion du @:crm.contact-trad"},list:{delete:{title:"Suppression de @:crm.contact-trad",confirm:"@:common.action.delete",descriptionN:"{number} @:crm.contacts-trad vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes @:crm.contacts-trad ({number})",subtitle:"Retrouvez l'ensemble des informations des contacts de votre \xE9tablissement.",search:{placeholder:"Recherchez par nom, pr\xE9nom, t\xE9l\xE9phone, et email",empty:"Aucun r\xE9sultat"},table:{firstName:"Pr\xE9nom",lastName:"Nom",phone:"T\xE9l\xE9phone",email:"Email",tags:"Tags"}},"message-modal":{title:"Aper\xE7u de l'email"},title:{main:"@:crm.contacts-caps-trad"}},Gh={action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-form":"Nouveau formulaire","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e",modify:"@:common.action.modify le formulaire"},details:{advanced:{title:"Options avanc\xE9es"},content:"Contenu du formulaire",description:{label:"Description",placeholder:"Saisissez la description du formulaire"},emailNotification:{title:"Destinataires des r\xE9ponses",placeholder:"Saisissez une adresse email"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser l\u2019illustration ou cliquer pour l'ajouter","default-name":"illustration du formulaire",button:"Ajouter une illustration",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le cot\xE9 droit du formulaire."},name:{label:"Nom du formulaire",placeholder:"Saisissez le nom du formulaire"},personalisation:{title:"Personnalisation"},"save-error":"\xC9chec lors de l'enregistrement du formulaire","save-success":"Les configurations du formulaire ont bien \xE9t\xE9 enregistr\xE9es",shared:{title:"Partage",forward:"Acc\xE9der au formulaire",copy:"Copier le lien",company:"S\xE9lectionnez un \xE9tablissement",copied:"Lien copi\xE9 dans le presse-papier",qrcode:"QR Code"},submitMessage:{label:"Message de remerciement",placeholder:"Saisissez le message de remerciement \xE0 afficher au client"},tabs:{general:{title:"G\xE9n\xE9ral",ariaLabel:"G\xE9n\xE9ral"},builder:{title:"Builder",ariaLabel:"Builder"}},title:"D\xE9tail du formulaire"},generator:{"drop-here":"D\xE9placer un \xE9l\xE9ment ici",error:{label:"Le champ @:form.generator.fields.common.label.label est obligatoire",modal:"Merci de remplir correctement la configuration du champ"},fields:{tab:{fields:"Champs",statics:"Statiques"},default:{values:{1:"Premier choix",2:"Second choix",3:"Troisi\xE8me choix"}},attributes:{title:"Attributs","external-id":{label:"Cl\xE9 externe",placeholder:"Saisissez une @:form.generator.fields.attributes.external-id.label"},required:"Obligatoire",visible:"Visible"},common:{title:"Propri\xE9t\xE9s",id:"ID",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.common.label.label"},helper:{label:"Message d'aide",placeholder:"Saisissez un @:form.generator.fields.common.helper.label"},placeholder:{label:"Placeholder",placeholder:"Saisissez un @:form.generator.fields.common.placeholder.label",helper:"Le placeholder est le message par d\xE9faut affich\xE9 dans le contenu du champ"}},values:{other:"Permettre \xE0 l'utilisateur de saisir une valeur",multiple:"Permettre \xE0 l'utilisateur de s\xE9lectionner plusieurs valeurs",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.values.label.label"},value:{label:"Valeur",placeholder:"Saisissez une @:form.generator.fields.values.value.label"},title:"Donn\xE9es",add:"Ajouter une valeur"},format:{title:"Validation",type:"Caract\xE8res accept\xE9s",min:{label:"Nombre min. de caract\xE8res",placeholder:"Saisissez un nombre"},max:{label:"Nombre max. de caract\xE8res",placeholder:"Saisissez un nombre"},regex:{label:"Regex",placeholder:"Saisissez une expression r\xE9guli\xE8re"},types:{none:"Tous les caract\xE8res",regex:"Regex",numeric:"Num\xE9rique",alphanumeric:"Alphanum\xE9rique"}}},properties:{input:{label:"Champ texte",description:"Une ligne de texte simple"},textarea:{label:"Textarea",description:"Une ou plusieurs lignes de texte"},checkbox:{label:"Groupe de checkbox",description:"Une ou plusieurs checkbox"},radio:{label:"Groupe de bouton radio",description:"Plusieurs boutons radios"},select:{label:"Liste de s\xE9lection",description:"S\xE9lection dans une liste"},date:{label:"Date",description:"Accepte une date"},file:{label:"Envoi de fichier",description:"T\xE9l\xE9chargement de fichier"},number:{label:"Champ nombre",description:"Uniquement des nombres"},url:{label:"Site web",description:"Accepte une url internet"},address:{label:"Adresse",description:"Adresse postal",subItems:{"crm-address-firstline":{label:"Adresse"},"crm-address-secondline":{label:"Ligne d'adresse secondaire"},"crm-address-city":{label:"Ville"},"crm-address-postalcode":{label:"Code postal"},"crm-address-state":{label:"Etat/Province"},"crm-address-country":{label:"Pays"}}},email:{label:"Champ email",description:"Uniquement des emails"},phone:{label:"Champ t\xE9l\xE9phone",description:"Accepte un num\xE9ro de t\xE9l\xE9phone"},price:{label:"Prix",description:"Uniquement des nombres"},name:{label:"Informations personnelles",description:"Pr\xE9nom et nom",subItems:{"crm-first-name":{label:"Pr\xE9nom"},"crm-last-name":{label:"Nom"}}},rating:{label:"Notation",description:"\xC9chelle de notation"},title:{label:"Titre 1",description:"HTML <h1> tag"},title2:{label:"Titre 2",description:"HTML <h2> tag"},title3:{label:"Titre 3",description:"HTML <h3> tag"},divider:{label:"S\xE9parateur",description:"HTML <hr> tag"},modal:{title:"Propri\xE9t\xE9s du champ"}}},menu:{burger:{"aria-label":"Menu"},mobile:"Formulaires",forms:"Tous les Formulaires","form-details":"Gestion du formulaire","form-results":"Toutes les r\xE9ponses"},list:{delete:{title:"Suppression de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} formulaires vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes formulaires ({number})",search:{placeholder:"Recherchez par nom, titre, et email",empty:"Aucun r\xE9sultat"},table:{name:"Nom",title:"Titre",email:"Email"}},result:{details:{date:"R\xE9ponse du {date} \xE0 {hours}",delete:{confirm:"@:common.action.confirm",description:"Souhaitez-vous r\xE9ellement supprimer cette r\xE9ponse ?",error:"\xC9chec lors de la suppression de la r\xE9ponse",success:"R\xE9ponse supprim\xE9e",title:"@:common.action.delete"},file:"Fichier",optional:"Optionnel"},status:{action:"Changer le statut",error:"\xC9chec lors du changement de statut",field:"Statut",success:"Le changement de statut a bien \xE9t\xE9 effectu\xE9",title:"G\xE9rer le statut",value:{neutral:"Neutre",in_progress:"En cours",finished:"Finalis\xE9",reopening:"R\xE9ouverture"}},list:{title:"@:form.menu.form-results : {title}",search:{placeholder:"Rechercher par email"},delete:{title:"Suppression du r\xE9sultat de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} r\xE9sultats vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"Le r\xE9sultat de {email} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},table:{date:"Date",email:"Email",status:"@:form.result.status.field"}}},submit:"Soumettre le formulaire",title:{main:"Formulaires"}},$h={action:{cancel:"@:common.action.cancel",delete:"@:common.action.delete",duplicate:"@:common.action.duplicate","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","new-queue":"Nouvelle file d'attente",save:"@:common.action.save"},contact:{"contact-us":"Contactez-nous","call-us":"Appelez-nous","send-message":"Envoyer un message"},form:{firstname:{title:"Votre pr\xE9nom",placeholder:"Saisissez @.lower:queue.form.firstname.title"},lastname:{title:"Votre nom",placeholder:"Saisissez @.lower:queue.form.lastname.title"},phone:{title:"Votre num\xE9ro de t\xE9l\xE9phone portable",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},submit:"Ajoutez moi \xE0 la file d'attente"},"queue-details":{company:{label:"\xC9tablissement",placeholder:"S\xE9lectionner un \xE9tablissement"},form:{helper:"Vous pouvez associer un formulaire \xE0 votre file d\u2019attente afin d\u2019ajouter de nouveaux champs \xE0 la page d\u2019inscription de votre file d\u2019attente.",label:"Champs personnalis\xE9s",placeholder:"S\xE9lectionner un formulaire"},"message-customization":{title:"Personnalisation des messages",description:"<p>Dans les champs de personnalisation des messages, vous pouvez utiliser les textes dynamiques suivants :</p><p>- {firstname} sera remplac\xE9 automatiquement par le nom du client.</p><p>- {number_in_line} sera remplac\xE9 par le num\xE9ro d'enregistrement du client dans la file d'attente.</p>"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de la file d\u2019attente"},"public-interface":{action:{access:"Acc\xE9der \xE0 l\u2019interface publique",paste:"Copier le lien"},customization:"Personnalisation de l\u2019interface publique","qr-code":"QR Code :",title:"Interface publique"},"save-error":"\xC9chec lors de l'enregistrement de la file d'attente","save-success":"Les configurations de la file d'attente ont bien \xE9t\xE9 enregistr\xE9es",title:"Configuration g\xE9n\xE9rale","welcome-message":{default:`<b>Bienvenue,</b>
|
|
34
34
|
Veuillez vous enregistrer pour vous inscrire dans la file d'attente.`,placeholder:"Saisissez un message de bienvenue",label:"Message d\u2019accueil"},"thanks-message":{default:`<b>Merci {'{'}firstname{'}'},</b>
|
|
35
|
-
Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placeholder:"Saisissez un message de remerciement",label:"Message de remerciement"}},"queue-monitoring":{title:"@:queue.menu.queue-monitoring",waiting_people:"En attente : {count} personnes",finish_people:"Termin\xE9 : {count} personnes",medium_waiting_time:"Attente moyenne : {waiting_time}","called-clients":"Clients appel\xE9s ",button:{absent:"Non pr\xE9sent",finish:"Termin\xE9"},search:{placeholder:"Rechercher par nom"},table:{number:"Num\xE9ro",fullname:"Nom",email:"Email",phone:"T\xE9l\xE9phone",waitingTime:"Temps d'attente"}},queues:{delete:{title:"Suppression de la file d'attente",confirm:"@:common.action.delete",descriptionN:"{number} files d'attente vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"},search:{empty:"Aucune file d'attente",placeholder:"@:common.search.by-name"},table:{name:"@:common.field.name.label",author:"@:common.field.email.label"},title:"Files d'attente ({number})"},location:{itinerary:"Itin\xE9raire"},menu:{burger:{"aria-label":"Afficher le menu"},"queue-monitoring":"Suivi","queue-settings":"Configuration g\xE9n\xE9rale","queue-new":"Nouvelle files d'attente",queues:"Toutes les files d'attente","close-aria-label":"Fermer le menu des files d'attente"},powered:"Propuls\xE9 par Agendize",title:"File d'attente",waiting:{people:"{nb} personne(s)","waiting-time":"Environ {time} minute(s) d'attente","number-in-queue":"Vous \xEAtes le num\xE9ro {nb} dans la file d'attente",recap:"Il y a {nb} personne(s) devant vous. Votre temps d\u2019attente est estim\xE9 \xE0 {time} minute(s)"},"working-hours":{"open-today":"Ouvert aujourd'hui",closed:"Ferm\xE9e",title:"Les horaires"}},Mf={filter:{title:"Filtres",description:"Les filtres vous permettent d\u2019acc\xE9der facilement \xE0 la donn\xE9e qui vous int\xE9resse en fonction de la p\xE9riode, des \xE9tablissements et des collaborateurs.",period:"P\xE9riode",companies:"\xC9tablissements",users:"Collaborateurs"}},Pf={list:{title:"Visualiser mes statistiques",subTitle:"Analyser les performances de vos \xE9tablissements sur une p\xE9riode donn\xE9e.",filter:"Filtrer",loading:"Chargement de mes rapports",account:"S\xE9lectionner le compte \xE0 afficher",error:"Une erreur a eu lieu lors du chargement de mes rapports"}},Ff={recents:"Recherches r\xE9centes",loading:"Loading",company:{desc:"Rechercher puis s\xE9lectionner une entreprise",placeholder:"Rechercher par nom, adresse","image-alt":"Image de l'entreprise","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'entreprise"},service:{desc:"Rechercher puis s\xE9lectionner un service parmi ceux disponibles dans votre entreprise.",placeholder:"Rechercher par nom",duration:"{duration} minutes","image-alt":"Image du service","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le service"},staff:{desc:"Rechercher puis s\xE9lectionner un \xE9quipier parmi ceux affect\xE9s \xE0 votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'\xE9quipier","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'\xE9quipier"},contact:{desc:"Rechercher puis s\xE9lectionner un @:crm.contact-trad parmi la liste des @:crm.contacts-trad de votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du @:crm.contact-trad","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le @:crm.contact-trad"},user:{desc:"Rechercher puis s\xE9lectionner un utilisateur parmi ceux affect\xE9s \xE0 votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'utilisateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'utilisateur"},noResults:{title:"Aucun r\xE9sultat trouv\xE9",desc:"Nous n'avons trouv\xE9 aucun r\xE9sultat correspondant \xE0 votre recherche."}},zf={action:{cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-company":"Nouvelle entreprise","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e"},calendar:{title:"Param\xE9trage",subTitle:"Param\xE9trez et personnalisez l\u2019interface de votre calendrier.",back:"@:common.action.back",save:"@:common.action.save",displaySettings:{title:"Options d\u2019affichage",subTitle:"Les options d\u2019affichage vous permettent de personnaliser votre calendrier en fonction de vos besoins et de votre activit\xE9.",days:{label:"Jours de la semaine",helper:"Vous pouvez s\xE9lectionner les jours de la semaine \xE0 afficher dans votre calendrier."},limit:{min:"Borne de d\xE9but",max:"Borne de fin",helper:"Le calendrier affichera uniquement les rendez-vous entre ces deux bornes."},color:{label:"Couleur du cr\xE9neau",helper:"Ce param\xE8tre sera appliqu\xE9 uniquement lorsque le calendrier d\u2019un seul collaborateur sera affich\xE9.",values:{staff:"Couleur du collaborateur",service:"Couleur du service","service-group":"Couleur du groupe de service"}}},action:{save:{success:"Le param\xE8trage a bien \xE9t\xE9 enregistr\xE9",error:"Echec lors de l'enregistrement du param\xE8trage"}}},common:{day:{monday:"Lundi",tuesday:"Mardi",wednesday:"Mercredi",thursday:"Jeudi",friday:"Vendredi",saturday:"Samedi",sunday:"Dimanche",closed:"Ferm\xE9e"},book:"Prendre rendez-vous",preview:"Pr\xE9visualisation",duration:"{minutes} minutes",error:{"max-user":"Le nombre maximum d'utilisateur est atteint. Merci de vous rapprocher de votre support pour augmenter le seuil","save-error":"Une erreur a eu lieu lors de la sauvegarde"},number:{2:"deux",3:"trois",4:"quatre",5:"cinq",6:"six",7:"sept",8:"huit",9:"neuf",10:"dix"}},companies:{title:"Mon organisation ({number})",table:{name:"@:common.field.name.label",address:"@:common.field.address.label",email:"@:common.field.email.label"},search:{empty:"Aucune entreprise",placeholder:"Rechercher par nom, code postal, email"},delete:{title:"Suppression de compagnies",confirm:"@:common.action.delete",descriptionN:"{number} compagnies vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"}},"companies-cards":{create:"Ajouter un \xE9tablissement",duplicate:"Dupliquer un \xE9tablissement",delete:"Supprimer les \xE9tablissements",title:"G\xE9rer mon organisation",subTitle:"Une organisation peut comprendre plusieurs \xE9tablissements, \xE9quipes et collaborateurs. Le param\xE9trage de votre organisation vous permet d\u2019uniformiser votre r\xE9seau.",tab:{companies:{title:"Mes \xE9tablissements"},services:{title:"Mes services"},staffs:{title:"Mes collaborateurs"},plannings:{title:"Mes plannings"}}},"company-home":{previous:"Retour \xE0 la liste",update:"@:common.action.modify",tab:{home:{title:"Mon \xE9tablissement"},staffGroups:{title:"Les \xE9quipes"},staffs:{title:"Les collaborateurs"},serviceGroups:{title:"Les cat\xE9gories"},services:{title:"Les services"}},performance:{title:"Vos performances",description:"Performances sur les {n} derniers jours",appointment:{made:"Rendez-vous pris",cancel:"Rendez-vous annul\xE9s",finish:"Rendez-vous termin\xE9s"}},widget:{title:"Faites-vous conna\xEEtre",link:{title:"Partager le lien vers le widget",copy:"Le lien est copi\xE9"},QRCode:"Partager votre qrcode",integration:"Voir les autres int\xE9grations"},staff:{title:"Ajouter des collaborateurs",description:"Ajoutez des collaborateurs \xE0 votre \xE9tablissement et proposez de nouvelles disponibilit\xE9s \xE0 vos clients.",add:"Ajouter un collaborateur"},service:{title:"Ajouter des services",description:"Ajoutez des services \xE0 votre \xE9tablissement et proposez des options de r\xE9servations suppl\xE9mentaires \xE0 vos clients.",add:"Ajouter un service"}},"company-details":{tabs:{general:"Informations g\xE9n\xE9rales",hours:"Horaires d'ouverture",advanced:"Avanc\xE9s"},new:{title:"Ajouter un \xE9tablissement",subTitle:"Un \xE9tablissement est un lieu de travail pour vos collaborateur ainsi qu\u2019un point d\u2019accueil pour vos clients."},title:"Informations g\xE9n\xE9rales","save-success":"Les informations de l'\xE9tablissement ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9tablissement",name:{label:"@:common.field.name.label",placeholder:"Saisissez un nom d'\xE9tablissement"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre \xE9tablissement","default-name":"Image de l'\xE9tablissement",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre \xE9tablissement",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre \xE9tablissement sur le mini-site.",button:"@:common.field.illustration.button"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},address:{title:"Adresse de votre \xE9tablissement",subtitle:"L\u2019adresse de votre \xE9tablissement doit \xEAtre l\u2019adresse \xE0 laquelle vous serez en capacit\xE9 de recevoir vos @:crm.contacts-trad suite \xE0 une prise de rendez-vous.",label:"@:common.field.address.label",placeholder:"1 place g\xE9n\xE9ral De Gaulle"},address2:{label:"Compl\xE9ment d\u2019adresse"},zipcode:{label:"Code postal",placeholder:"75008"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat"},country:{label:"Pays"},contact:{title:"Coordonn\xE9es",subtitle:"Ces coordonn\xE9es permettront \xE0 vos @:crm.contacts-trad de vous contacter."},email:{label:"@:common.field.email.label",placeholder:"Saisissez l\u2019email de votre \xE9tablissement"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez le num\xE9ro t\xE9l\xE9phone de votre \xE9tablissement"},web:{title:"Site internet et r\xE9seaux sociaux",subtitle:"Ces informations permettent de mettre en avant votre site internet et vos r\xE9seaux sociaux dans les diff\xE9rents supports \xE0 destination de vos @:crm.contacts-trad"},website:{label:"Site internet",placeholder:"Saisissez l\u2019url d\u2019un site internet de l'\xE9tablissement"},facebook:{label:"Facebook"},instagram:{label:"Instagram"},twitter:{label:"Twitter"},linkedin:{label:"LinkedIn"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},optional:"Optionnel","external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},timeZone:{title:"Fuseau horaire",label:"Fuseau horaire principal",placeholder:"S\xE9lectionnez un fuseau horaire",helper:"Le fuseau horaire permet de d\xE9finir sur quel fuseau horaire se trouve votre \xE9tablissement. Chacun des collaborateurs cr\xE9\xE9s dans votre \xE9tablissement auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019\xE9tablissement",open:"Ouverture","all-weeks":"Toutes les semaines",edit:"Modifier les horaires","apply-to-staff":"Appliquer les horaires aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement remplacer les horaires aux collaborateurs ?"},unavailable:{title:"Indisponibilit\xE9s","apply-to-staff":"Appliquer les indisponibilit\xE9s aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement ajouter les indisponibilit\xE9s des collaborateurs ?"}},"custom-hours":{period:{date:"Du {start} au {end}","all-week":"Toutes les semaines","custom-week":"Une semaine sur {occurrence}"},edit:"Modifier la p\xE9riode",add:"Ajouter une p\xE9riode sp\xE9cifique",save:"@:common.action.save",validate:"@:common.action.validate",name:{title:"Nom de la p\xE9riode",placeholder:"Saisissez le nom de la p\xE9riode"},terminal:{title:"Bornes de la p\xE9riode"},"week-occurrence":{"start-text":"R\xE9p\xE9ter tou(te)s les","end-text":"semaine(s)"},"day-tooltip":"Vous pouvez s\xE9lectionner les jours de la semaine faisant l\u2019objet d\u2019horaires sp\xE9cifiques. Un jour non s\xE9lectionn\xE9 prendra les horaires par d\xE9faut du collaborateurs."},"integration-modal":{title:"Int\xE9grer votre widget",body:"Vous pouvez int\xE9grer le widget de l\u2019\xE9tablissement \xE0 votre site internet via notre int\xE9gration iframe ou simplement partager le lien dans une publication sur vos r\xE9seaux.",link:"Lien",iframe:"Int\xE9gration iframe"},plannings:{create:"Ajouter un planning",search:{placeholder:"Rechercher par nom"},delete:{title:"Supprimer un planning",description:"\xCAtes-vous s\xFBr de vouloir supprimer ce planning ? Cela aura pour effet de rendre indisponible l\u2019ensemble des collaborateurs affect\xE9s \xE0 ce planning.",confirm:"Supprimer",success:"Le planning a bien \xE9t\xE9 supprim\xE9."},empty:"Aucun planning"},"planning-details":{new:"Nouveau planning",subTitle:"Un planning correspond \xE0 un mod\xE8le d'horaire de travail \xE0 appliquer \xE0 un ou plusieurs collaborateurs pour un \xE9tablissement donn\xE9.",section:{general:{title:"Informations g\xE9n\xE9rales",subTitle:"D\xE9finissez les informations de base de votre planning."},workingHours:{title:"Horaires de travail",subTitle:"Les horaires de travail d\xE9finis ci-dessous s'appliqueront pour l'ensemble des collaborateurs ayant ce planning d'affect\xE9."}},name:{label:"Nom",placeholder:"Saisissez un nom"},addWeek:"Ajouter une semaine",deleteWeek:"Supprimer la semaine",back:"Retour \xE0 la liste",error:{startAfterEnd:"L'heure de d\xE9but doit \xEAtre inf\xE9rieure \xE0 l'heure de fin",noHour:"Un horaire n'a pas \xE9t\xE9 renseign\xE9",overlap:"Les horaires de ce jour se chevauchent",general:"Les horaires ne sont pas conformes"},"save-success":"Les informations du planning ont bien \xE9t\xE9 enregistr\xE9es.",days:{closed:"Ferm\xE9"}},"qr-code-modal":{title:"Partager votre widget",body:"Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\u2019expirera pas dans le temps sauf si vous supprimez l\u2019\xE9tablissement."},menu:{burger:{"aria-label":"Afficher le menu"},mobile:"Param\xE8tres",companies:"Toutes les entreprises","company-details":"Informations g\xE9n\xE9rales","company-new":"Nouvelle entreprise",services:"@:common.field.services.label","services-groups":"@:common.field.service-groups.label","staffs-groups":"@:common.field.staff-groups.label",staffs:"@:common.field.staffs.label"},profile:{title:"G\xE9rer mon profil",personal_data:"Mes donn\xE9es personnelles",preferences:"Mes pr\xE9f\xE9rences",cancel:"@:common.action.cancel",save:"@:common.action.save",error:{100:"Le mot de passe ne correspond pas",101:"Votre compte est v\xE9rouill\xE9",102:"Le mot de passe ne r\xE9pond pas aux crit\xE8res de validation d\u2019un mot de passe"},password:{title:"Modifier mon mot de passe",change:"@:common.action.modify",current:"Mot de passe actuel",new:"Nouveau mot de passe",confirm:"Confirmer mot de passe",notmatch:"Les mots de passe ne correspondent pas!","change-success":"Votre mot de passe a bien \xE9t\xE9 modifi\xE9","change-error":"Votre mot de passe n'a p\xFB \xEAtre modifi\xE9",label:"Mot de passe",reset:"Modifier"},photo:{label:"Photo","default-name":"Image de profil"},firstname:"Pr\xE9nom",lastname:"Nom",contact:{title:"Coordonn\xE9es",description:"Il s'agit des coordonn\xE9es sur lesquelles vous pourrez \xEAtre contact\xE9"},email:"Email",security:{title:"S\xE9curit\xE9",description:"Vous pouvez modifier votre mot de passe"},"change-success":"Votre profil a bien \xE9t\xE9 modifi\xE9","change-error":"Votre profil n'a p\xFB \xEAtre modifi\xE9",default_account:"Organisation par d\xE9faut",language:{title:"Langue et r\xE9gion",description:"G\xE9rez la langue et le fuseau horaire utilis\xE9s pour personnaliser votre exp\xE9rience Agendize.",label:"Langue"},timezone:"Zone horaire"},services:{title:"@:common.field.services.label",new:"Nouveau service",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce service ? | Souhaitez-vous r\xE9ellement supprimer ces {n} services ?",search:{placeholder:"@:common.search.by-name"},group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",groups:"@:common.field.service-groups.label",enabled:"@:common.field.actif.label"},no:"Aucun service",deleted:"Service supprim\xE9 | Services supprim\xE9s"},"services-cards":{add:"Ajouter un service",confirm:"@:common.action.confirm",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",tag:{multiple:"Multiple",address:"Pr\xE9sentiel",visio:"@:settings.service-details.locations.visio",phone:"@:settings.service-details.locations.phone"}},"servicesGroups-cards":{add:"Ajouter une cat\xE9gorie",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",empty:"Aucune cat\xE9gorie",services:"{nb} service|{nb} services",search:{placeholder:"@:common.search.by-name"},filter:{all:"Toutes les cat\xE9gories","lvl-1":"Cat\xE9gories de niveau 1","lvl-2":"Cat\xE9gories de niveau 2"}},"service-details":{title:"Service",subTitle:"Les services repr\xE9sentent les prestations apport\xE9es par vos collaborateurs \xE0 un ou plusieurs clients.",new:"Nouveau service",clone:"Duplication : {name}",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations du service ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement du service",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},actif:{label:"@:common.field.actif.label",placeholder:"Rendre actif ou inactif le service",helper:"D\xE9sactive le service pour qu'il ne soit plus disponible sur le widget de prise de rendez-vous"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du service",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le service sur le mini-site.",button:"@:common.field.illustration.button"},duration:{label:"Dur\xE9e",placeholder:"S\xE9lectionnez la dur\xE9e du service"},quantity:{label:"Capacit\xE9",placeholder:"Saisissez la capacit\xE9 du service",helper:"Nombre de r\xE9servations pouvant \xEAtre prises pour ce service sur un m\xEAme cr\xE9neau horaire."},color:{label:"Couleur du service",placeholder:"S\xE9lectionnez la couleur du service",helper:"La couleur du service peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur un service en particulier"},colors:{red:"Rouge",blue:"Bleu",purple:"Violet",green:"Vert",orange:"Orange"},location:{title:"Emplacements du service",subtitle:"Vous pouvez proposer diff\xE9rents types d\u2019emplacement \xE0 votre service",label:"Emplacement du service",placeholder:"S\xE9lectionnez l'emplacement du service"},locations:{company:"Adresse de l'entreprise",companyAddress:"@:settings.service-details.locations.company",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence",visioconference:"@:settings.service-details.locations.visio",videoconference:"@:settings.service-details.locations.visio",custom:"Emplacement personnalis\xE9"},price:{title:"Prix du service",subtitle:"Vous pouvez fixer le prix de votre service si celui-ci est un service payant.",label:"Prix {currency}",placeholder:"Saisissez un prix"},category:{title:"Cat\xE9gorie du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Cat\xE9gorie",placeholder:"S\xE9lectionnez une cat\xE9gorie"},visibility:{title:"Visibilit\xE9 du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Visibilit\xE9",placeholder:"S\xE9lectionnez une visibilit\xE9"},visibilities:{public:"Public",backoffice:"Priv\xE9",hidden:"Dissimul\xE9",disabled:"D\xE9sactiv\xE9"},staffs:{title:"Collaborateurs en charge du service",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},buffer:{title:"Temps avant et apr\xE8s le rendez-vous",subtitle:"Le temps avant et apr\xE8s le rendez-vous permet d\u2019inclure un d\xE9lai suppl\xE9mentaire de pr\xE9paration ou de rangement dans votre rendez-vous",before:{label:"Dur\xE9e",actif:"Activer un d\xE9lai avant rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps avant le rendez-vous"},after:{label:"Dur\xE9e",actif:"Activer un d\xE9lai apr\xE8s rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps apr\xE8s le rendez-vous"}},validation:{title:"Validation du rendez-vous",subtitle:"Vous pouvez d\xE9sactiver la validation automatique du rendez-vous au profit d\u2019une validation manuelle par le collaborateur ou par le manager",actif:"Valider manuellement le rendez-vous",label:"Mode de validation",placeholder:"S\xE9lectionnez le mode de validation du service"},validations:{location:"Param\xE9trage de l'entreprise",auto:"Aucune",manager:"Par le manager",staff:"Par le collaborateur"},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availabilities:"Disponibilit\xE9s",options:"Options",advanced:"@:settings.tabs.advanced"}},serviceGroups:{title:"@:common.field.service-groups.label",new:"Nouvelle cat\xE9gorie",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",search:{placeholder:"@:common.search.by-name"},parent:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",parent:"@:common.field.parent.label"},no:"Aucune cat\xE9gorie",deleted:"Cat\xE9gorie supprim\xE9e | Cat\xE9gories supprim\xE9es"},"serviceGroup-details":{title:"Ajouter une cat\xE9gorie",subTitle:"Les cat\xE9gories permettent de cr\xE9er des ensembles de services et organiser votre liste de services.",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations de la cat\xE9gorie ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de la cat\xE9gorie",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration de la cat\xE9gorie",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer la cat\xE9gorie sur le mini-site.",button:"@:common.field.illustration.button"},parent:{label:"Cat\xE9gorie parente",helper:"La cat\xE9gorie parente permet de faire des liens hi\xE9rarchiques entre vos cat\xE9gories. ",none:"Aucune"},color:{label:"Couleur de la cat\xE9gorie",placeholder:"S\xE9lectionnez la couleur de la cat\xE9gorie",helper:"La couleur de la cat\xE9gorie peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur des services d\u2019une cat\xE9gorie particuli\xE8re"},service:{title:"Service de la cat\xE9gorie",description:"Les services de la cat\xE9gorie sont les services disponibles lorsque vos @:crm.contacts-trad se rendent dans la page d\xE9di\xE9e \xE0 cette cat\xE9gorie dans le mini-site."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",advanced:"@:settings.tabs.advanced"}},staffs:{title:"@:common.field.staffs.label",new:"Nouveau collaborateur",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",updated:"Le collaborateur a bien \xE9t\xE9 modifi\xE9",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce collaborateur ? | Souhaitez-vous r\xE9ellement supprimer ces {n} collaborateurs ?",search:{placeholder:"@:common.search.by-firstName-lastName"},group:{none:"@:common.content.none"},columns:{firstname:"@:common.field.firstName.label",lastname:"@:common.field.lastName.label",enabled:"@:common.field.actif.label"},no:"Aucun collaborateur",deleted:"Collaborateur supprim\xE9 | Collaborateurs supprim\xE9s"},"staff-details":{new:"Nouveau collaborateur","page-title":"@:settings.staff-details.new",subTitle:"Les collaborateurs sont les personnes en charge des services.",action:{back:"@:common.action.back-to-list"},clone:"Duplication : {lastName} {firstName}","save-success":"Les informations du collaborateur ont bien \xE9t\xE9 enregistr\xE9es",title:{label:"Titre",placeholder:"@:common.content.none"},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},gender:{label:"Genre",placeholder:"@:common.content.none"},genders:{male:"Homme",female:"Femme",other:"Autre"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},photo:{label:"@:common.field.photo.label",placeholder:"@:common.field.photo.placeholder",helper:"La photo sera utilis\xE9e afin d\u2019identifier le collaborateur sur le mini-site.","default-name":"Image du collaborateur",button:"@:common.field.illustration.button"},contact:{title:"Coordonn\xE9es du collaborateur",subtitle:"Les coordonn\xE9es du collaborateur sont utilis\xE9es pour les notifications email et SMS."},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{fixe:"T\xE9l\xE9phone fixe",mobile:"T\xE9l\xE9phone mobile"},group:{title:"@:common.field.staff-group.label",subtitle:"Les \xE9quipes permettent de g\xE9rer plusieurs collaborateurs comme un ensemble. Des disponibilit\xE9s peuvent \xEAtre affect\xE9es \xE0 une \xE9quipe et impacter la disponibilit\xE9 de l\u2019ensemble des collaborateurs de cette \xE9quipe.",label:"@:common.field.staff-group.label",placeholder:"@:common.content.none-e"},availableForWidget:{title:"Disponibilit\xE9 \xE0 la prise de rendez-vous",subtitle:"Lorsqu\u2019un collaborateur n\u2019est pas disponible \xE0 la prise de rendez-vous en ligne, aucun rendez-vous ne peut \xEAtre pris avec lui.",label:"Disponible \xE0 la prise de rendez-vous"},hours:{title:"Disponibilit\xE9s du collaborateur"},unavailable:{title:"Indisponibilit\xE9s"},services:{title:"Services dispens\xE9s",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},rights:{title:"Droits d'acc\xE9s"},role:{label:"R\xF4le",placeholder:"@:common.content.none",helper:"Le r\xF4le permet de d\xE9finir les droits d\u2019acc\xE8s et fonctionnalit\xE9s accessibles pour le collaborateur"},roles:{none:"@:common.content.none",reader:"@:common.roles.reader",scheduler:"@:common.roles.scheduler",administrator:"@:common.roles.administrator"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},"external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",rights:"Droits d'acc\xE8s",availabilities:"Disponibilit\xE9",advanced:"@:settings.tabs.advanced"}},staffGroups:{title:"@:common.field.staff-groups.label",new:"Nouvelle \xE9quipe",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette \xE9quipe ? | Souhaitez-vous r\xE9ellement supprimer ces {n} \xE9quipes ?",search:{placeholder:"@:common.search.by-name"},membersCount:"1 collaborateur | {n} collaborateurs",noMember:"Aucun collaborateur",group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",staffsCount:"@:common.field.number.label"},no:"Aucune \xE9quipe",deleted:"\xC9quipe supprim\xE9e | \xC9quipes supprim\xE9es"},"staffGroup-details":{title:"Nouvelle \xE9quipe",subTitle:"Les \xE9quipes permettent de cr\xE9er des ensembles de collaborateur et organiser votre liste d'\xE9quipe.","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",action:{back:"@:common.action.back-to-list"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de l'\xE9quipe"},color:{label:"Couleur de l'\xE9quipe",placeholder:"S\xE9lectionnez la couleur de l'\xE9quipe",helper:"La couleur de l'\xE9quipe peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur les collaborateur d\u2019une \xE9quipe en particulier"},staff:{title:"Collaborateur de l'\xE9quipe",description:"Les collaborateurs de l\u2019\xE9quipe seront li\xE9s par des propri\xE9t\xE9s communes."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},availability:{title:"Disponibilit\xE9s de l\u2019\xE9quipe"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availability:"@:settings.tabs.availabilities",advanced:"@:settings.tabs.advanced"}},tabs:{general:"G\xE9n\xE9ral",hours:"Horaires",availability:"Disponibilit\xE9s",advanced:"Avanc\xE9s",options:"Options",availabilities:"Disponibilit\xE9s",rights:"Droits d'acc\xE8s"},"working-hours":{title:"Horaires d'ouverture",save:"@:common.action.validate"}},Bf={fields:{optional:"Optionnel",mandatory:"Ce champ est obligatoire",file:{defaultPlaceHolder:"Glisser-d\xE9poser votre fichier pour l'ajouter",defaultButtonLabel:"Ajouter un fichier",info:"(jusqu'\xE0 {size}mb, formats accept\xE9s : {format})"}},error:{empty:"Ce champ ne peut \xEAtre vide",regex:"Le format du champ est invalid",phone:"Le num\xE9ro de t\xE9l\xE9phone n'est pas un num\xE9ro valide",format:"Le format du champ est invalid",businessHours:{invalid:"Horaire non valide"},file:{size:"La taille de votre fichier d\xE9passe la limite",format:"Format de fichier non accept\xE9"},api:{message:"Une erreur api est survenu (code : {code}, message: {message})"}},buttons:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel"},businessHours:{"day-enabled-aria-label":"Activer les horaires pour le {day}","day-disabled-aria-label":"D\xE9sactiver les horaires pour le {day}","add-aria-label":"Ajouter des horaires pour le {day}","remove-aria-label":"Supprimer la ligne d'horaire pour le {day}"}},Uf={agenda:kf,agendize:Af,calendar:Df,common:Nf,crm:Of,"event-booking":{new:"Nouveau rendez-vous",reschedule:"Replanifier",subject:"Sujet",date:"Horaires",duration:"Dur\xE9e","duration-error":{"over-1-day":"La dur\xE9e ne peux pas \xEAtre de 1 jour ou plus","negative-null":"La date de fin ne peut pas \xEAtre avant la date de d\xE9but","over-days":"Les dates de d\xE9but et fin doivent \xEAtre le m\xEAme jour"},timeZone:"Fuseau horaire",allDay:"Journ\xE9e enti\xE8re",recurrent:{once:"Une fois"},company:"Entreprise",searchCompany:"Rechercher une entreprise",service:"@:common.field.service.label",searchService:"Rechercher un service",staff:"@:common.field.staff.label",searchStaff:"Rechercher un \xE9quipier",contact:{title:"@:crm.contact-caps-trad",save:"@:common.action.save",search:"Rechercher un @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createTitle:"Ajouter un @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contact-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone",placeholder:"@:common.field.phone.placeholder"}},note:{label:"Note du rendez-vous",placeholder:"Saisissez une note de rendez-vous"},save:"@:common.action.save",back:"@:common.action.back,",close:"@:common.action.close",event:{"panel-title":"Cr\xE9er un \xE9v\xE9nement",title:{label:"\xC9v\xE9nement",placeholder:"Saisissez le nom de votre \xE9v\xE9nement",helper:"Il s\u2019agit du nom de l\u2019\xE9v\xE9nement que vous souhaitez cr\xE9er."},capacity:{label:"Capacit\xE9",placeholder:"Saisissez une capacit\xE9"},description:{label:"Description",placeholder:"Saisissez la description de l\u2019\xE9v\xE9nement"}}},"event-booking-widget":{title:{panel:"Nouveau rendez-vous",company:"Pour quelle entreprise souhaitez-vous prendre rendez-vous ?",service:"Quel est le besoin du @:crm.contact-trad ?",staff:"Avec quel collaborateur ?",date:"Quelles disponibilit\xE9s vous convient le mieux ?","contact-qualif":"S\u2019agit-il d\u2019un nouveau client ?","contact-new":"Quelles sont les informations personnelles du client ? ","contact-search":"Quel client souhaite prendre rendez-vous ?","form-field":"Une derni\xE8re petite chose ...",recap:"Souhaitez-vous confirmer le rendez-vous ?",confirmation:"",error:""},date:{"search-more":"Voir plus de disponibilit\xE9s","search-more-aria-label":"Voir plus de disponibilit\xE9s",empty:"Aucune disponibilit\xE9 n'a \xE9t\xE9 trouv\xE9 entre les dates {start} et {end} "},contact:{save:"Ajouter le @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contact-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"@:common.field.phone.label",placeholder:"@:common.field.phone.placeholder"}},"form-field":{validate:"Suivant"},recap:{date:"{start} \xE0 {end}",validate:"Confirmer le rendez-vous"},confirmation:{title:"Le rendez-vous est confirm\xE9 !",description:"Le rendez-vous a bien \xE9t\xE9 cr\xE9\xE9. Vous pouvez le retrouver d\xE8s \xE0 pr\xE9sent dans votre calendrier."},error:{messages:{back:{staff:"Retour \xE0 la selection d'\xE9quipier",date:"Retour \xE0 la selection de cr\xE9neau",contact:"Retour \xE0 la selection de @:crm.contact-trad"}},unknown:{title:"Une erreur est survenue",description:"Veuillez contacter le support pour plus de precisions."},"staff-not-found":{title:"\xC9quipier inconnu",description:"L'\xE9quipier s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.staff"},"date-not-found":{title:"Cr\xE9neau non disponible",description:"Le cr\xE9neau s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-daily":{title:"Limite atteinte",description:"La limite quotidienne de rendez-vous pris pour ce client est d\xE9pass\xE9.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-weekly":{title:"Limite atteinte",description:"La limite hebdomadaire de rendez-vous pris pour ce client est d\xE9pass\xE9.",footerButton:"@:event-booking-widget.error.messages.back.date"},"contact-blocked":{title:"@:crm.contact-caps-trad bloqu\xE9",description:"La prise de rendez-vous est bloqu\xE9e pour ce @:crm.contact-trad.",footerButton:"@:event-booking-widget.error.messages.back.contact"}}},form:Rf,queue:Lf,reporting:Mf,report:Pf,search:Ff,settings:zf,system:Bf},Vf={en:Tf,fr:Uf},jf=t=>df({legacy:!1,locale:t,fallbackLocale:"fr",globalInjection:!0,messages:Vf});var Z0="",qf=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r};const Hf={class:"az-flex az-flex-col az-gap-2"},Gf={class:"az-qrcode"},Wf={class:"az-qrcode-left"},$f={class:"az-qrcode-right"},Yf={class:"az-qrcode-bottom"};var Zf=qf(ue.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,locale:null,download:{type:Boolean,default:!0}},setup(t){var s,l,u,f;const e=t,r=jf(e.locale),n=ue.ref({width:e.width,height:e.height,type:"canvas",data:e.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(s=e.bgColor)!=null?s:"white"},dotsOptions:{color:(l=e.dotsColor)!=null?l:"black",type:"square"},cornersSquareOptions:{color:(u=e.dotsColor)!=null?u:"black",type:"square"},cornersDotOptions:{color:(f=e.dotsColor)!=null?f:"black",type:"square"}}),a=new Uu(n.value),i=ue.ref();function o(){a.download()}return ue.onMounted(()=>{a.append(i.value)}),ue.watch(()=>e.value,x=>{n.value.data=x,a.update(n.value)}),(x,y)=>(ue.openBlock(),ue.createElementBlock("div",Hf,[ue.createElementVNode("div",Gf,[ue.createElementVNode("div",null,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",{class:"az-qrcode-center",style:ue.normalizeStyle(`grid-template-columns: auto ${e.width}px auto;`)},[ue.createElementVNode("div",Wf,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",null,[ue.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),ue.createElementVNode("div",$f,ue.toDisplayString(t.outlineValue),1)],4),ue.createElementVNode("div",Yf,ue.toDisplayString(t.outlineValue),1)]),t.download?(ue.openBlock(),ue.createElementBlock("button",{key:0,class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:o},ue.toDisplayString(ue.unref(r).global.t("common.action.download")),1)):ue.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-6a57471e"]]),Jf=Object.defineProperty,Kf=(t,e,r)=>e in t?Jf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e,r)=>(Kf(t,typeof e!="symbol"?e+"":e,r),r);class pr extends Error{}class Xf extends pr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Qf extends pr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class eh extends pr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Qr extends pr{}class zo extends pr{constructor(e){super(`Invalid unit ${e}`)}}class Dt extends pr{}class tr extends pr{constructor(){super("Zone is an abstract class")}}const he="numeric",Lt="short",St="long",Aa={year:he,month:he,day:he},Bo={year:he,month:Lt,day:he},th={year:he,month:Lt,day:he,weekday:Lt},Uo={year:he,month:St,day:he},Vo={year:he,month:St,day:he,weekday:St},jo={hour:he,minute:he},qo={hour:he,minute:he,second:he},Ho={hour:he,minute:he,second:he,timeZoneName:Lt},Go={hour:he,minute:he,second:he,timeZoneName:St},Wo={hour:he,minute:he,hourCycle:"h23"},$o={hour:he,minute:he,second:he,hourCycle:"h23"},Yo={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:Lt},Zo={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:St},Jo={year:he,month:he,day:he,hour:he,minute:he},Ko={year:he,month:he,day:he,hour:he,minute:he,second:he},Xo={year:he,month:Lt,day:he,hour:he,minute:he},Qo={year:he,month:Lt,day:he,hour:he,minute:he,second:he},rh={year:he,month:Lt,day:he,weekday:Lt,hour:he,minute:he},es={year:he,month:St,day:he,hour:he,minute:he,timeZoneName:Lt},ts={year:he,month:St,day:he,hour:he,minute:he,second:he,timeZoneName:Lt},rs={year:he,month:St,day:he,weekday:St,hour:he,minute:he,timeZoneName:St},ns={year:he,month:St,day:he,weekday:St,hour:he,minute:he,second:he,timeZoneName:St};function Fe(t){return typeof t>"u"}function gr(t){return typeof t=="number"}function In(t){return typeof t=="number"&&t%1===0}function nh(t){return typeof t=="string"}function ah(t){return Object.prototype.toString.call(t)==="[object Date]"}function as(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ih(t){return Array.isArray(t)?t:[t]}function is(t,e,r){if(t.length!==0)return t.reduce((n,a)=>{const i=[e(a),a];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function oh(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function kr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Wt(t,e,r){return In(t)&&t>=e&&t<=r}function sh(t,e){return t-e*Math.floor(t/e)}function rt(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function rr(t){if(!(Fe(t)||t===null||t===""))return parseInt(t,10)}function vr(t){if(!(Fe(t)||t===null||t===""))return parseFloat(t)}function Da(t){if(!(Fe(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Na(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function en(t){return t%4===0&&(t%100!==0||t%400===0)}function tn(t){return en(t)?366:365}function Cn(t,e){const r=sh(e-1,12)+1,n=t+(e-r)/12;return r===2?en(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Oa(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Tn(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||n===3?53:52}function Ra(t){return t>99?t:t>60?1900+t:2e3+t}function os(t,e,r,n=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o={timeZoneName:e,...i},s=new Intl.DateTimeFormat(r,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function kn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function ss(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Dt(`Invalid unit value ${t}`);return e}function An(t,e){const r={};for(const n in t)if(kr(t,n)){const a=t[n];if(a==null)continue;r[e(n)]=ss(a)}return r}function rn(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${rt(r,2)}:${rt(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${rt(r,2)}${rt(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Dn(t){return oh(t,["hour","minute","second","millisecond"])}const ls=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,lh=["January","February","March","April","May","June","July","August","September","October","November","December"],cs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ch=["J","F","M","A","M","J","J","A","S","O","N","D"];function us(t){switch(t){case"narrow":return[...ch];case"short":return[...cs];case"long":return[...lh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ds=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fs=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],uh=["M","T","W","T","F","S","S"];function hs(t){switch(t){case"narrow":return[...uh];case"short":return[...fs];case"long":return[...ds];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ms=["AM","PM"],dh=["Before Christ","Anno Domini"],fh=["BC","AD"],hh=["B","A"];function ps(t){switch(t){case"narrow":return[...hh];case"short":return[...fh];case"long":return[...dh];default:return null}}function mh(t){return ms[t.hour<12?0:1]}function ph(t,e){return hs(e)[t.weekday-1]}function gh(t,e){return us(e)[t.month-1]}function vh(t,e){return ps(e)[t.year<0?0:1]}function yh(t,e,r="always",n=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const x=t==="days";switch(e){case 1:return x?"tomorrow":`next ${a[t][0]}`;case-1:return x?"yesterday":`last ${a[t][0]}`;case 0:return x?"today":`this ${a[t][0]}`}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,u=a[t],f=n?l?u[1]:u[2]||u[1]:l?a[t][0]:t;return o?`${s} ${f} ago`:`in ${s} ${f}`}function gs(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const bh={D:Aa,DD:Bo,DDD:Uo,DDDD:Vo,t:jo,tt:qo,ttt:Ho,tttt:Go,T:Wo,TT:$o,TTT:Yo,TTTT:Zo,f:Jo,ff:Xo,fff:es,ffff:rs,F:Ko,FF:Qo,FFF:ts,FFFF:ns};class xt{static create(e,r={}){return new xt(e,r)}static parseFormat(e){let r=null,n="",a=!1;const i=[];for(let o=0;o<e.length;o++){const s=e.charAt(o);s==="'"?(n.length>0&&i.push({literal:a,val:n}),r=null,n="",a=!a):a||s===r?n+=s:(n.length>0&&i.push({literal:!1,val:n}),n=s,r=s)}return n.length>0&&i.push({literal:a,val:n}),i}static macroTokenToFormatOpts(e){return bh[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTime(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTimeParts(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).formatToParts()}resolvedOptions(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return rt(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(w,S)=>this.loc.extract(e,w,S),o=w=>e.isOffsetFixed&&e.offset===0&&w.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,w.format):"",s=()=>n?mh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(w,S)=>n?gh(e,w):i(S?{month:w}:{month:w,day:"numeric"},"month"),u=(w,S)=>n?ph(e,w):i(S?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),f=w=>{const S=xt.macroTokenToFormatOpts(w);return S?this.formatWithSystemDefault(e,S):w},x=w=>n?vh(e,w):i({era:w},"era"),y=w=>{switch(w){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(w)}};return gs(xt.parseFormat(r),y)}formatDurationFromString(e,r){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>u=>{const f=n(u);return f?this.num(l.get(f),u.length):u},i=xt.parseFormat(r),o=i.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]),s=e.shiftTo(...o.map(n).filter(l=>l));return gs(i,a(s))}}class Mt{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class nn{get type(){throw new tr}get name(){throw new tr}get ianaName(){return this.name}get isUniversal(){throw new tr}offsetName(e,r){throw new tr}formatOffset(e,r){throw new tr}offset(e){throw new tr}equals(e){throw new tr}get isValid(){throw new tr}}let La=null;class Ma extends nn{static get instance(){return La===null&&(La=new Ma),La}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return os(e,r,n)}formatOffset(e,r){return rn(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Nn={};function Eh(t){return Nn[t]||(Nn[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Nn[t]}const xh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function wh(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,o,s,l,u,f]=n;return[o,a,i,s,l,u,f]}function _h(t,e){const r=t.formatToParts(e),n=[];for(let a=0;a<r.length;a++){const{type:i,value:o}=r[a],s=xh[i];i==="era"?n[s]=o:Fe(s)||(n[s]=parseInt(o,10))}return n}let On={};class $t extends nn{static create(e){return On[e]||(On[e]=new $t(e)),On[e]}static resetCache(){On={},Nn={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=$t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return os(e,r,n,this.name)}formatOffset(e,r){return rn(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const n=Eh(this.name);let[a,i,o,s,l,u,f]=n.formatToParts?_h(n,r):wh(n,r);s==="BC"&&(a=-Math.abs(a)+1);const x=Oa({year:a,month:i,day:o,hour:l===24?0:l,minute:u,second:f,millisecond:0});let y=+r;const w=y%1e3;return y-=w>=0?w:1e3+w,(x-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Pa=null;class vt extends nn{static get utcInstance(){return Pa===null&&(Pa=new vt(0)),Pa}static instance(e){return e===0?vt.utcInstance:new vt(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new vt(kn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${rn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${rn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return rn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Sh extends nn{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function nr(t,e){if(Fe(t)||t===null)return e;if(t instanceof nn)return t;if(nh(t)){const r=t.toLowerCase();return r==="local"||r==="system"?e:r==="utc"||r==="gmt"?vt.utcInstance:vt.parseSpecifier(r)||$t.create(t)}else return gr(t)?vt.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Sh(t)}let vs=()=>Date.now(),ys="system",bs=null,Es=null,xs=null,ws;class ot{static get now(){return vs}static set now(e){vs=e}static set defaultZone(e){ys=e}static get defaultZone(){return nr(ys,Ma.instance)}static get defaultLocale(){return bs}static set defaultLocale(e){bs=e}static get defaultNumberingSystem(){return Es}static set defaultNumberingSystem(e){Es=e}static get defaultOutputCalendar(){return xs}static set defaultOutputCalendar(e){xs=e}static get throwOnInvalid(){return ws}static set throwOnInvalid(e){ws=e}static resetCaches(){Ze.resetCache(),$t.resetCache()}}let _s={};function Ih(t,e={}){const r=JSON.stringify([t,e]);let n=_s[r];return n||(n=new Intl.ListFormat(t,e),_s[r]=n),n}let Fa={};function za(t,e={}){const r=JSON.stringify([t,e]);let n=Fa[r];return n||(n=new Intl.DateTimeFormat(t,e),Fa[r]=n),n}let Ba={};function Ch(t,e={}){const r=JSON.stringify([t,e]);let n=Ba[r];return n||(n=new Intl.NumberFormat(t,e),Ba[r]=n),n}let Ua={};function Th(t,e={}){const{base:r,...n}=e,a=JSON.stringify([t,n]);let i=Ua[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Ua[a]=i),i}let Rn=null;function kh(){return Rn||(Rn=new Intl.DateTimeFormat().resolvedOptions().locale,Rn)}function Ah(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let r;const n=t.substring(0,e);try{r=za(t).resolvedOptions()}catch{r=za(n).resolvedOptions()}const{numberingSystem:a,calendar:i}=r;return[n,a,i]}}function Dh(t,e,r){return(r||e)&&(t+="-u",r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Nh(t){const e=[];for(let r=1;r<=12;r++){const n=Te.utc(2016,r,1);e.push(t(n))}return e}function Oh(t){const e=[];for(let r=1;r<=7;r++){const n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function Ln(t,e,r,n,a){const i=t.listingMode(r);return i==="error"?null:i==="en"?n(e):a(e)}function Rh(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Lh{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:a,floor:i,...o}=n;if(!r||Object.keys(o).length>0){const s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=Ch(e,s)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Na(e,3);return rt(r,this.padTo)}}}class Mh{constructor(e,r,n){this.opts=n;let a;if(e.zone.isUniversal){const o=-1*(e.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&$t.create(s).valid?(a=s,this.dt=e):(a="UTC",n.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Te.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,a=e.zone.name);const i={...this.opts};a&&(i.timeZone=a),this.dtf=za(r,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ph{constructor(e,r,n){this.opts={style:"long",...n},!r&&as()&&(this.rtf=Th(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):yh(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Ze{static fromOpts(e){return Ze.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,n,a=!1){const i=e||ot.defaultLocale,o=i||(a?"en-US":kh()),s=r||ot.defaultNumberingSystem,l=n||ot.defaultOutputCalendar;return new Ze(o,s,l,i)}static resetCache(){Rn=null,Fa={},Ba={},Ua={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n}={}){return Ze.create(e,r,n)}constructor(e,r,n,a){const[i,o,s]=Ah(e);this.locale=i,this.numberingSystem=r||o||null,this.outputCalendar=n||s||null,this.intl=Dh(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Rh(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Ze.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1,n=!0){return Ln(this,e,n,us,()=>{const a=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Nh(o=>this.extract(o,a,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1,n=!0){return Ln(this,e,n,hs,()=>{const a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=Oh(o=>this.extract(o,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return Ln(this,void 0,e,()=>ms,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(n=>this.extract(n,r,"dayperiod"))}return this.meridiemCache})}eras(e,r=!0){return Ln(this,e,r,ps,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[e]})}extract(e,r,n){const a=this.dtFormatter(e,r),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new Lh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Mh(e,this.intl,r)}relFormatter(e={}){return new Ph(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ih(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Ar(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Dr(...t){return e=>t.reduce(([r,n,a],i)=>{const[o,s,l]=i(e,a);return[{...r,...o},s||n,l]},[{},null,1]).slice(0,2)}function Nr(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const a=r.exec(t);if(a)return n(a)}return[null,null]}function Ss(...t){return(e,r)=>{const n={};let a;for(a=0;a<t.length;a++)n[t[a]]=rr(e[r+a]);return[n,null,r+a]}}const Is=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Fh=`(?:${Is.source}?(?:\\[(${ls.source})\\])?)?`,Va=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Cs=RegExp(`${Va.source}${Fh}`),ja=RegExp(`(?:T${Cs.source})?`),zh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Uh=/(\d{4})-?(\d{3})/,Vh=Ss("weekYear","weekNumber","weekDay"),jh=Ss("year","ordinal"),qh=/(\d{4})-(\d\d)-(\d\d)/,Ts=RegExp(`${Va.source} ?(?:${Is.source}|(${ls.source}))?`),Hh=RegExp(`(?: ${Ts.source})?`);function Or(t,e,r){const n=t[e];return Fe(n)?r:rr(n)}function Gh(t,e){return[{year:Or(t,e),month:Or(t,e+1,1),day:Or(t,e+2,1)},null,e+3]}function Rr(t,e){return[{hours:Or(t,e,0),minutes:Or(t,e+1,0),seconds:Or(t,e+2,0),milliseconds:Da(t[e+3])},null,e+4]}function an(t,e){const r=!t[e]&&!t[e+1],n=kn(t[e+1],t[e+2]),a=r?null:vt.instance(n);return[{},a,e+3]}function on(t,e){const r=t[e]?$t.create(t[e]):null;return[{},r,e+1]}const Wh=RegExp(`^T?${Va.source}$`),$h=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Yh(t){const[e,r,n,a,i,o,s,l,u]=t,f=e[0]==="-",x=l&&l[0]==="-",y=(w,S=!1)=>w!==void 0&&(S||w&&f)?-w:w;return[{years:y(vr(r)),months:y(vr(n)),weeks:y(vr(a)),days:y(vr(i)),hours:y(vr(o)),minutes:y(vr(s)),seconds:y(vr(l),l==="-0"),milliseconds:y(Da(u),x)}]}const Zh={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qa(t,e,r,n,a,i,o){const s={year:e.length===2?Ra(rr(e)):rr(e),month:cs.indexOf(r)+1,day:rr(n),hour:rr(a),minute:rr(i)};return o&&(s.second=rr(o)),t&&(s.weekday=t.length>3?ds.indexOf(t)+1:fs.indexOf(t)+1),s}const Jh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kh(t){const[,e,r,n,a,i,o,s,l,u,f,x]=t,y=qa(e,a,n,r,i,o,s);let w;return l?w=Zh[l]:u?w=0:w=kn(f,x),[y,new vt(w)]}function Xh(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,em=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ks(t){const[,e,r,n,a,i,o,s]=t;return[qa(e,a,n,r,i,o,s),vt.utcInstance]}function rm(t){const[,e,r,n,a,i,o,s]=t;return[qa(e,s,r,n,a,i,o),vt.utcInstance]}const nm=Ar(zh,ja),am=Ar(Bh,ja),im=Ar(Uh,ja),om=Ar(Cs),As=Dr(Gh,Rr,an,on),sm=Dr(Vh,Rr,an,on),lm=Dr(jh,Rr,an,on),cm=Dr(Rr,an,on);function um(t){return Nr(t,[nm,As],[am,sm],[im,lm],[om,cm])}function dm(t){return Nr(Xh(t),[Jh,Kh])}function fm(t){return Nr(t,[Qh,ks],[em,ks],[tm,rm])}function hm(t){return Nr(t,[$h,Yh])}const mm=Dr(Rr);function pm(t){return Nr(t,[Wh,mm])}const gm=Ar(qh,Hh),vm=Ar(Ts),ym=Dr(Rr,an,on);function bm(t){return Nr(t,[gm,As],[vm,ym])}const Em="Invalid Duration",Ds={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},xm={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Ds},Nt=146097/400,Lr=146097/4800,wm={years:{quarters:4,months:12,weeks:Nt/7,days:Nt,hours:Nt*24,minutes:Nt*24*60,seconds:Nt*24*60*60,milliseconds:Nt*24*60*60*1e3},quarters:{months:3,weeks:Nt/28,days:Nt/4,hours:Nt*24/4,minutes:Nt*24*60/4,seconds:Nt*24*60*60/4,milliseconds:Nt*24*60*60*1e3/4},months:{weeks:Lr/7,days:Lr,hours:Lr*24,minutes:Lr*24*60,seconds:Lr*24*60*60,milliseconds:Lr*24*60*60*1e3},...Ds},yr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_m=yr.slice(0).reverse();function br(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new Ue(n)}function Sm(t){return t<0?Math.floor(t):Math.ceil(t)}function Ns(t,e,r,n,a){const i=t[a][r],o=e[r]/i,s=Math.sign(o)===Math.sign(n[a]),l=!s&&n[a]!==0&&Math.abs(o)<=1?Sm(o):Math.trunc(o);n[a]+=l,e[r]-=l*i}function Im(t,e){_m.reduce((r,n)=>Fe(e[n])?r:(r&&Ns(t,e,r,e,n),n),null)}class Ue{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Ze.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r?wm:xm,this.isLuxonDuration=!0}static fromMillis(e,r){return Ue.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Dt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ue({values:An(e,Ue.normalizeUnit),loc:Ze.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(e){if(gr(e))return Ue.fromMillis(e);if(Ue.isDuration(e))return e;if(typeof e=="object")return Ue.fromObject(e);throw new Dt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=hm(e);return n?Ue.fromObject(n,r):Ue.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=pm(e);return n?Ue.fromObject(n,r):Ue.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the Duration is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new eh(n);return new Ue({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new zo(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?xt.create(this.loc,n).formatDurationFromString(this,e):Em}toHuman(e={}){const r=yr.map(n=>{const a=this.values[n];return Fe(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(a)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Na(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||n.milliseconds!==0)&&(a+=".SSS"));let i=n.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e),n={};for(const a of yr)(kr(r.values,a)||kr(this.values,a))&&(n[a]=r.get(a)+this.get(a));return br(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=ss(e(this.values[n],n));return br(this,{values:r},!0)}get(e){return this[Ue.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...An(e,Ue.normalizeUnit)};return br(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n}={}){const a=this.loc.clone({locale:e,numberingSystem:r}),i={loc:a};return n&&(i.conversionAccuracy=n),br(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Im(this.matrix,e),br(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Ue.normalizeUnit(o));const r={},n={},a=this.toObject();let i;for(const o of yr)if(e.indexOf(o)>=0){i=o;let s=0;for(const u in n)s+=this.matrix[u][o]*n[u],n[u]=0;gr(a[o])&&(s+=a[o]);const l=Math.trunc(s);r[o]=l,n[o]=(s*1e3-l*1e3)/1e3;for(const u in a)yr.indexOf(u)>yr.indexOf(o)&&Ns(this.matrix,a,u,r,o)}else gr(a[o])&&(n[o]=a[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return br(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return br(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,a){return n===void 0||n===0?a===void 0||a===0:n===a}for(const n of yr)if(!r(this.values[n],e.values[n]))return!1;return!0}}const sn="Invalid Interval";function Cm(t,e){return!t||!t.isValid?Je.invalid("missing or invalid start"):!e||!e.isValid?Je.invalid("missing or invalid end"):e<t?Je.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Je{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the Interval is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Qf(n);return new Je({invalid:n})}static fromDateTimes(e,r){const n=un(e),a=un(r),i=Cm(n,a);return i==null?new Je({start:n,end:a}):i}static after(e,r){const n=Ue.fromDurationLike(r),a=un(e);return Je.fromDateTimes(a,a.plus(n))}static before(e,r){const n=Ue.fromDurationLike(r),a=un(e);return Je.fromDateTimes(a.minus(n),a)}static fromISO(e,r){const[n,a]=(e||"").split("/",2);if(n&&a){let i,o;try{i=Te.fromISO(n,r),o=i.isValid}catch{o=!1}let s,l;try{s=Te.fromISO(a,r),l=s.isValid}catch{l=!1}if(o&&l)return Je.fromDateTimes(i,s);if(o){const u=Ue.fromISO(a,r);if(u.isValid)return Je.after(i,u)}else if(l){const u=Ue.fromISO(n,r);if(u.isValid)return Je.before(s,u)}}return Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(r,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?Je.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(un).filter(o=>this.contains(o)).sort(),n=[];let{s:a}=this,i=0;for(;a<this.e;){const o=r[i]||this.e,s=+o>+this.e?this.e:o;n.push(Je.fromDateTimes(a,s)),a=s,i+=1}return n}splitBy(e){const r=Ue.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;const o=[];for(;n<this.e;){const s=this.start.plus(r.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(Je.fromDateTimes(n,i)),n=i,a+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:Je.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Je.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const a=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,u)=>l.time-u.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&a.push(Je.fromDateTimes(r,l.time)),r=null);return Je.merge(a)}difference(...e){return Je.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:sn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:sn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:sn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:sn}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:sn}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ue.invalid(this.invalidReason)}mapEndpoints(e){return Je.fromDateTimes(e(this.s),e(this.e))}}class Mn{static hasDST(e=ot.defaultZone){const r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return $t.isValidZone(e)}static normalizeZone(e){return nr(e,ot.defaultZone)}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ze.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ze.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Ze.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Ze.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ze.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Ze.create(r,null,"gregory").eras(e)}static features(){return{relative:as()}}}function Os(t,e){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(Ue.fromMillis(n).as("days"))}function Tm(t,e,r){const n=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter],["months",(s,l)=>l.month-s.month+(l.year-s.year)*12],["weeks",(s,l)=>{const u=Os(s,l);return(u-u%7)/7}],["days",Os]],a={};let i,o;for(const[s,l]of n)if(r.indexOf(s)>=0){i=s;let u=l(t,e);o=t.plus({[s]:u}),o>e?(t=t.plus({[s]:u-1}),u-=1):t=o,a[s]=u}return[t,a,o,i]}function km(t,e,r,n){let[a,i,o,s]=Tm(t,e,r);const l=e-a,u=r.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);u.length===0&&(o<e&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const f=Ue.fromObject(i,n);return u.length>0?Ue.fromMillis(l,n).shiftTo(...u).plus(f):f}const Ha={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Rs={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Am=Ha.hanidec.replace(/[\[|\]]/g,"").split("");function Dm(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(t[r].search(Ha.hanidec)!==-1)e+=Am.indexOf(t[r]);else for(const a in Rs){const[i,o]=Rs[a];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}else return e}function Pt({numberingSystem:t},e=""){return new RegExp(`${Ha[t||"latn"]}${e}`)}const Nm="missing Intl.DateTimeFormat.formatToParts support";function qe(t,e=r=>r){return{regex:t,deser:([r])=>e(Dm(r))}}const Om=String.fromCharCode(160),Ls=`[ ${Om}]`,Ms=new RegExp(Ls,"g");function Rm(t){return t.replace(/\./g,"\\.?").replace(Ms,Ls)}function Ps(t){return t.replace(/\./g,"").replace(Ms," ").toLowerCase()}function Ft(t,e){return t===null?null:{regex:RegExp(t.map(Rm).join("|")),deser:([r])=>t.findIndex(n=>Ps(r)===Ps(n))+e}}function Fs(t,e){return{regex:t,deser:([,r,n])=>kn(r,n),groups:e}}function Ga(t){return{regex:t,deser:([e])=>e}}function Lm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mm(t,e){const r=Pt(e),n=Pt(e,"{2}"),a=Pt(e,"{3}"),i=Pt(e,"{4}"),o=Pt(e,"{6}"),s=Pt(e,"{1,2}"),l=Pt(e,"{1,3}"),u=Pt(e,"{1,6}"),f=Pt(e,"{1,9}"),x=Pt(e,"{2,4}"),y=Pt(e,"{4,6}"),w=T=>({regex:RegExp(Lm(T.val)),deser:([N])=>N,literal:!0}),S=(T=>{if(t.literal)return w(T);switch(T.val){case"G":return Ft(e.eras("short",!1),0);case"GG":return Ft(e.eras("long",!1),0);case"y":return qe(u);case"yy":return qe(x,Ra);case"yyyy":return qe(i);case"yyyyy":return qe(y);case"yyyyyy":return qe(o);case"M":return qe(s);case"MM":return qe(n);case"MMM":return Ft(e.months("short",!0,!1),1);case"MMMM":return Ft(e.months("long",!0,!1),1);case"L":return qe(s);case"LL":return qe(n);case"LLL":return Ft(e.months("short",!1,!1),1);case"LLLL":return Ft(e.months("long",!1,!1),1);case"d":return qe(s);case"dd":return qe(n);case"o":return qe(l);case"ooo":return qe(a);case"HH":return qe(n);case"H":return qe(s);case"hh":return qe(n);case"h":return qe(s);case"mm":return qe(n);case"m":return qe(s);case"q":return qe(s);case"qq":return qe(n);case"s":return qe(s);case"ss":return qe(n);case"S":return qe(l);case"SSS":return qe(a);case"u":return Ga(f);case"uu":return Ga(s);case"uuu":return qe(r);case"a":return Ft(e.meridiems(),0);case"kkkk":return qe(i);case"kk":return qe(x,Ra);case"W":return qe(s);case"WW":return qe(n);case"E":case"c":return qe(r);case"EEE":return Ft(e.weekdays("short",!1,!1),1);case"EEEE":return Ft(e.weekdays("long",!1,!1),1);case"ccc":return Ft(e.weekdays("short",!0,!1),1);case"cccc":return Ft(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Fs(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Fs(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Ga(/[a-z_+-/]{1,256}?/i);default:return w(T)}})(t)||{invalidReason:Nm};return S.token=t,S}const Pm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Fm(t,e,r){const{type:n,value:a}=t;if(n==="literal")return{literal:!0,val:a};const i=r[n];let o=Pm[n];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function zm(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function Bm(t,e,r){const n=t.match(e);if(n){const a={};let i=1;for(const o in r)if(kr(r,o)){const s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(n.slice(i,i+l))),i+=l}return[n,a]}else return[n,{}]}function Um(t){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return Fe(t.z)||(r=$t.create(t.z)),Fe(t.Z)||(r||(r=new vt(t.Z)),n=t.Z),Fe(t.q)||(t.M=(t.q-1)*3+1),Fe(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Fe(t.u)||(t.S=Da(t.u)),[Object.keys(t).reduce((a,i)=>{const o=e(i);return o&&(a[o]=t[i]),a},{}),r,n]}let Wa=null;function Vm(){return Wa||(Wa=Te.fromMillis(1555555555555)),Wa}function jm(t,e){if(t.literal)return t;const r=xt.macroTokenToFormatOpts(t.val);if(!r)return t;const n=xt.create(e,r).formatDateTimeParts(Vm()).map(a=>Fm(a,e,r));return n.includes(void 0)?t:n}function qm(t,e){return Array.prototype.concat(...t.map(r=>jm(r,e)))}function zs(t,e,r){const n=qm(xt.parseFormat(r),t),a=n.map(o=>Mm(o,t)),i=a.find(o=>o.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[o,s]=zm(a),l=RegExp(o,"i"),[u,f]=Bm(e,l,s),[x,y,w]=f?Um(f):[null,null,void 0];if(kr(f,"a")&&kr(f,"H"))throw new Qr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:l,rawMatches:u,matches:f,result:x,zone:y,specificOffset:w}}}function Hm(t,e,r){const{result:n,zone:a,specificOffset:i,invalidReason:o}=zs(t,e,r);return[n,a,i,o]}const Bs=[0,31,59,90,120,151,181,212,243,273,304,334],Us=[0,31,60,91,121,152,182,213,244,274,305,335];function Ot(t,e){return new Mt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Vs(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return a===0?7:a}function js(t,e,r){return r+(en(t)?Us:Bs)[e-1]}function qs(t,e){const r=en(t)?Us:Bs,n=r.findIndex(i=>i<e),a=e-r[n];return{month:n+1,day:a}}function $a(t){const{year:e,month:r,day:n}=t,a=js(e,r,n),i=Vs(e,r,n);let o=Math.floor((a-i+10)/7),s;return o<1?(s=e-1,o=Tn(s)):o>Tn(e)?(s=e+1,o=1):s=e,{weekYear:s,weekNumber:o,weekday:i,...Dn(t)}}function Hs(t){const{weekYear:e,weekNumber:r,weekday:n}=t,a=Vs(e,1,4),i=tn(e);let o=r*7+n-a-3,s;o<1?(s=e-1,o+=tn(s)):o>i?(s=e+1,o-=tn(e)):s=e;const{month:l,day:u}=qs(s,o);return{year:s,month:l,day:u,...Dn(t)}}function Ya(t){const{year:e,month:r,day:n}=t,a=js(e,r,n);return{year:e,ordinal:a,...Dn(t)}}function Gs(t){const{year:e,ordinal:r}=t,{month:n,day:a}=qs(e,r);return{year:e,month:n,day:a,...Dn(t)}}function Gm(t){const e=In(t.weekYear),r=Wt(t.weekNumber,1,Tn(t.weekYear)),n=Wt(t.weekday,1,7);return e?r?n?!1:Ot("weekday",t.weekday):Ot("week",t.week):Ot("weekYear",t.weekYear)}function Wm(t){const e=In(t.year),r=Wt(t.ordinal,1,tn(t.year));return e?r?!1:Ot("ordinal",t.ordinal):Ot("year",t.year)}function Ws(t){const e=In(t.year),r=Wt(t.month,1,12),n=Wt(t.day,1,Cn(t.year,t.month));return e?r?n?!1:Ot("day",t.day):Ot("month",t.month):Ot("year",t.year)}function $s(t){const{hour:e,minute:r,second:n,millisecond:a}=t,i=Wt(e,0,23)||e===24&&r===0&&n===0&&a===0,o=Wt(r,0,59),s=Wt(n,0,59),l=Wt(a,0,999);return i?o?s?l?!1:Ot("millisecond",a):Ot("second",n):Ot("minute",r):Ot("hour",e)}const Za="Invalid DateTime",Ys=864e13;function Pn(t){return new Mt("unsupported zone",`the zone "${t.name}" is not supported`)}function Ja(t){return t.weekData===null&&(t.weekData=$a(t.c)),t.weekData}function ln(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function Zs(t,e,r){let n=t-e*60*1e3;const a=r.offset(n);if(e===a)return[n,e];n-=(a-e)*60*1e3;const i=r.offset(n);return a===i?[n,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function Js(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Fn(t,e,r){return Zs(Oa(t),e,r)}function Ks(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:a,day:Math.min(t.c.day,Cn(n,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Ue.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Oa(i);let[l,u]=Zs(s,r,t.zone);return o!==0&&(l+=o,u=t.zone.offset(l)),{ts:l,o:u}}function cn(t,e,r,n,a,i){const{setZone:o,zone:s}=r;if(t&&Object.keys(t).length!==0){const l=e||s,u=Te.fromObject(t,{...r,zone:l,specificOffset:i});return o?u:u.setZone(s)}else return Te.invalid(new Mt("unparsable",`the input "${a}" can't be parsed as ${n}`))}function zn(t,e,r=!0){return t.isValid?xt.create(Ze.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ka(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=rt(t.c.year,r?6:4),e?(n+="-",n+=rt(t.c.month),n+="-",n+=rt(t.c.day)):(n+=rt(t.c.month),n+=rt(t.c.day)),n}function Xs(t,e,r,n,a,i){let o=rt(t.c.hour);return e?(o+=":",o+=rt(t.c.minute),(t.c.second!==0||!r)&&(o+=":")):o+=rt(t.c.minute),(t.c.second!==0||!r)&&(o+=rt(t.c.second),(t.c.millisecond!==0||!n)&&(o+=".",o+=rt(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=rt(Math.trunc(-t.o/60)),o+=":",o+=rt(Math.trunc(-t.o%60))):(o+="+",o+=rt(Math.trunc(t.o/60)),o+=":",o+=rt(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const Qs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},$m={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ym={ordinal:1,hour:0,minute:0,second:0,millisecond:0},el=["year","month","day","hour","minute","second","millisecond"],Zm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Jm=["year","ordinal","hour","minute","second","millisecond"];function tl(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new zo(t);return e}function rl(t,e){const r=nr(e.zone,ot.defaultZone),n=Ze.fromObject(e),a=ot.now();let i,o;if(Fe(t.year))i=a;else{for(const u of el)Fe(t[u])&&(t[u]=Qs[u]);const s=Ws(t)||$s(t);if(s)return Te.invalid(s);const l=r.offset(a);[i,o]=Fn(t,l,r)}return new Te({ts:i,zone:r,loc:n,o})}function nl(t,e,r){const n=Fe(r.round)?!0:r.round,a=(o,s)=>(o=Na(o,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(o,s)),i=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return a(i(r.unit),r.unit);for(const o of r.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(t>e?-0:0,r.units[r.units.length-1])}function al(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class Te{constructor(e){const r=e.zone||ot.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Mt("invalid input"):null)||(r.isValid?null:Pn(r));this.ts=Fe(e.ts)?ot.now():e.ts;let a=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,i]=[e.old.c,e.old.o];else{const o=r.offset(this.ts);a=Js(this.ts,o),n=Number.isNaN(a.year)?new Mt("invalid input"):null,a=n?null:a,i=n?null:o}this._zone=r,this.loc=e.loc||Ze.create(),this.invalid=n,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new Te({})}static local(){const[e,r]=al(arguments),[n,a,i,o,s,l,u]=r;return rl({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:u},e)}static utc(){const[e,r]=al(arguments),[n,a,i,o,s,l,u]=r;return e.zone=vt.utcInstance,rl({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:u},e)}static fromJSDate(e,r={}){const n=ah(e)?e.valueOf():NaN;if(Number.isNaN(n))return Te.invalid("invalid input");const a=nr(r.zone,ot.defaultZone);return a.isValid?new Te({ts:n,zone:a,loc:Ze.fromObject(r)}):Te.invalid(Pn(a))}static fromMillis(e,r={}){if(gr(e))return e<-Ys||e>Ys?Te.invalid("Timestamp out of range"):new Te({ts:e,zone:nr(r.zone,ot.defaultZone),loc:Ze.fromObject(r)});throw new Dt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(gr(e))return new Te({ts:e*1e3,zone:nr(r.zone,ot.defaultZone),loc:Ze.fromObject(r)});throw new Dt("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=nr(r.zone,ot.defaultZone);if(!n.isValid)return Te.invalid(Pn(n));const a=ot.now(),i=Fe(r.specificOffset)?n.offset(a):r.specificOffset,o=An(e,tl),s=!Fe(o.ordinal),l=!Fe(o.year),u=!Fe(o.month)||!Fe(o.day),f=l||u,x=o.weekYear||o.weekNumber,y=Ze.fromObject(r);if((f||s)&&x)throw new Qr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new Qr("Can't mix ordinal dates with month/day");const w=x||o.weekday&&!f;let S,T,N=Js(a,i);w?(S=Zm,T=$m,N=$a(N)):s?(S=Jm,T=Ym,N=Ya(N)):(S=el,T=Qs);let C=!1;for(const Y of S){const Q=o[Y];Fe(Q)?C?o[Y]=T[Y]:o[Y]=N[Y]:C=!0}const E=w?Gm(o):s?Wm(o):Ws(o),A=E||$s(o);if(A)return Te.invalid(A);const I=w?Hs(o):s?Gs(o):o,[D,P]=Fn(I,i,n),z=new Te({ts:D,zone:n,o:P,loc:y});return o.weekday&&f&&e.weekday!==z.weekday?Te.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${z.toISO()}`):z}static fromISO(e,r={}){const[n,a]=um(e);return cn(n,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,a]=dm(e);return cn(n,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,a]=fm(e);return cn(n,a,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Fe(e)||Fe(r))throw new Dt("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=n,o=Ze.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,u,f]=Hm(o,e,r);return f?Te.invalid(f):cn(s,l,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return Te.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,a]=bm(e);return cn(n,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the DateTime is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Xf(n);return new Te({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ja(this).weekYear:NaN}get weekNumber(){return this.isValid?Ja(this).weekNumber:NaN}get weekday(){return this.isValid?Ja(this).weekday:NaN}get ordinal(){return this.isValid?Ya(this.c).ordinal:NaN}get monthShort(){return this.isValid?Mn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Mn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Mn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Mn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return en(this.year)}get daysInMonth(){return Cn(this.year,this.month)}get daysInYear(){return this.isValid?tn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Tn(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:a}=xt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(vt.instance(e),r)}toLocal(){return this.setZone(ot.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=nr(e,ot.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||n){const i=e.offset(this.ts),o=this.toObject();[a]=Fn(o,i,e)}return ln(this,{ts:a,zone:e})}else return Te.invalid(Pn(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return ln(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=An(e,tl),n=!Fe(r.weekYear)||!Fe(r.weekNumber)||!Fe(r.weekday),a=!Fe(r.ordinal),i=!Fe(r.year),o=!Fe(r.month)||!Fe(r.day),s=i||o,l=r.weekYear||r.weekNumber;if((s||a)&&l)throw new Qr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new Qr("Can't mix ordinal dates with month/day");let u;n?u=Hs({...$a(this.c),...r}):Fe(r.ordinal)?(u={...this.toObject(),...r},Fe(r.day)&&(u.day=Math.min(Cn(u.year,u.month),u.day))):u=Gs({...Ya(this.c),...r});const[f,x]=Fn(u,this.o,this.zone);return ln(this,{ts:f,o:x})}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return ln(this,Ks(this,r))}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e).negate();return ln(this,Ks(this,r))}startOf(e){if(!this.isValid)return this;const r={},n=Ue.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(n==="weeks"&&(r.weekday=1),n==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?xt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):Za}toLocaleString(e=Aa,r={}){return this.isValid?xt.create(this.loc.clone(r),e).formatDateTime(this):Za}toLocaleParts(e={}){return this.isValid?xt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let s=Ka(this,o);return s+="T",s+=Xs(this,o,r,n,a,i),s}toISODate({format:e="extended"}={}){return this.isValid?Ka(this,e==="extended"):null}toISOWeekDate(){return zn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+Xs(this,o==="extended",r,e,n,i):null}toRFC2822(){return zn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return zn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ka(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(n&&(a+=" "),r?a+="z":e&&(a+="ZZ")),zn(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Za}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ue.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=ih(r).map(Ue.normalizeUnit),o=e.valueOf()>this.valueOf(),s=o?this:e,l=o?e:this,u=km(s,l,i,a);return o?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(Te.now(),e,r)}until(e){return this.isValid?Je.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const n=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r)<=n&&n<=a.endOf(r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||Te.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),nl(r,this.plus(n),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?nl(e.base||Te.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Te.isDateTime))throw new Dt("min requires all arguments be DateTimes");return is(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(Te.isDateTime))throw new Dt("max requires all arguments be DateTimes");return is(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:a=null,numberingSystem:i=null}=n,o=Ze.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return zs(o,e,r)}static fromStringExplain(e,r,n={}){return Te.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return Aa}static get DATE_MED(){return Bo}static get DATE_MED_WITH_WEEKDAY(){return th}static get DATE_FULL(){return Uo}static get DATE_HUGE(){return Vo}static get TIME_SIMPLE(){return jo}static get TIME_WITH_SECONDS(){return qo}static get TIME_WITH_SHORT_OFFSET(){return Ho}static get TIME_WITH_LONG_OFFSET(){return Go}static get TIME_24_SIMPLE(){return Wo}static get TIME_24_WITH_SECONDS(){return $o}static get TIME_24_WITH_SHORT_OFFSET(){return Yo}static get TIME_24_WITH_LONG_OFFSET(){return Zo}static get DATETIME_SHORT(){return Jo}static get DATETIME_SHORT_WITH_SECONDS(){return Ko}static get DATETIME_MED(){return Xo}static get DATETIME_MED_WITH_SECONDS(){return Qo}static get DATETIME_MED_WITH_WEEKDAY(){return rh}static get DATETIME_FULL(){return es}static get DATETIME_FULL_WITH_SECONDS(){return ts}static get DATETIME_HUGE(){return rs}static get DATETIME_HUGE_WITH_SECONDS(){return ns}}function un(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&gr(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new Dt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function Xa(t,e){return Te.fromISO(t,{zone:e}).toJSDate()}function il(t,e){if(e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));return{dateTime:ol(r),timeZone:e}}else return{dateTime:ol(t)}}function Bn(t,e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));return r.getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)}function ol(t,e=!1){var r=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(n<10?"0"+n:n)+"/"+r:r+"-"+(n<10?"0"+n:n)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(s<10?"0"+s:s)}function De(t){return t==null?"":t==null?void 0:t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(r)})}function Re(t){return t==null?"":t==null?void 0:t.replace(/[\u0100-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function Km(t){return new Promise((e,r)=>{const n=new FileReader;n.readAsDataURL(t),n.onload=()=>e(n.result),n.onerror=a=>r(a)})}class Mr{constructor(){g(this,"name"),g(this,"startPeriod"),g(this,"endPeriod"),g(this,"monday"),g(this,"tuesday"),g(this,"wednesday"),g(this,"thursday"),g(this,"friday"),g(this,"saturday"),g(this,"sunday")}static fromSettingsPeriodWorkingDto(e){const r=new Mr;return r.name=De(e.name),r.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},r.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(r.monday=[],e.monday.forEach(n=>{var a;(a=r.monday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.tuesday&&(r.tuesday=[],e.tuesday.forEach(n=>{var a;(a=r.tuesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.wednesday&&(r.wednesday=[],e.wednesday.forEach(n=>{var a;(a=r.wednesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.thursday&&(r.thursday=[],e.thursday.forEach(n=>{var a;(a=r.thursday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.friday&&(r.friday=[],e.friday.forEach(n=>{var a;(a=r.friday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.saturday&&(r.saturday=[],e.saturday.forEach(n=>{var a;(a=r.saturday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.sunday&&(r.sunday=[],e.sunday.forEach(n=>{var a;(a=r.sunday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),r}static toSettingsPeriodWorkingDto(e){const r=new Xm;return r.name=Re(e.name),r.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},r.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(r.monday=[],e.monday.forEach(n=>{var a;(a=r.monday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.tuesday&&(r.tuesday=[],e.tuesday.forEach(n=>{var a;(a=r.tuesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.wednesday&&(r.wednesday=[],e.wednesday.forEach(n=>{var a;(a=r.wednesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.thursday&&(r.thursday=[],e.thursday.forEach(n=>{var a;(a=r.thursday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.friday&&(r.friday=[],e.friday.forEach(n=>{var a;(a=r.friday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.saturday&&(r.saturday=[],e.saturday.forEach(n=>{var a;(a=r.saturday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.sunday&&(r.sunday=[],e.sunday.forEach(n=>{var a;(a=r.sunday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),r}}class ht{constructor(){g(this,"service"),g(this,"start"),g(this,"end")}static fromSettingsPeriodWorkingDayDto(e){var r,n;const a=new ht;return a.end=e.end,e.service&&(a.service={id:(r=e.service)==null?void 0:r.id,name:(n=e.service)==null?void 0:n.name}),a.start=e.start,a}static toSettingsPeriodWorkingDayDto(e){var r,n;const a=new Qm;return a.end=e.end,e.service&&(a.service={id:(r=e.service)==null?void 0:r.id,name:(n=e.service)==null?void 0:n.name}),a.start=e.start,a}}class Pr{constructor(){g(this,"day"),g(this,"hours")}static fromSettingsWorkingDayDto(e){const r=new Pr;return r.day=e.day,r.hours=[],e.hours.forEach(n=>r.hours.push(Un.fromSettingsWorkingHoursDto(n))),r}static toSettingsWorkingDayDto(e){const r=new ep;return r.day=e.day,r.hours=[],e.hours.forEach(n=>r.hours.push(Un.toSettingsWorkingHoursDto(n))),r}}class Un{constructor(){g(this,"start"),g(this,"end")}static fromSettingsWorkingHoursDto(e){const r=new Un;return r.start=e.start,r.end=e.end,r}static toSettingsWorkingHoursDto(e){const r=new tp;return r.start=e.start,r.end=e.end,r}}class Xm{constructor(){g(this,"name"),g(this,"startPeriod"),g(this,"endPeriod"),g(this,"monday"),g(this,"tuesday"),g(this,"wednesday"),g(this,"thursday"),g(this,"friday"),g(this,"saturday"),g(this,"sunday")}}class Qm{constructor(){g(this,"service"),g(this,"start"),g(this,"end")}}class ep{constructor(){g(this,"day"),g(this,"hours")}}class tp{constructor(){g(this,"start"),g(this,"end")}}const rp=(t,e)=>e.some(r=>t instanceof r);let sl,ll;function np(){return sl||(sl=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ap(){return ll||(ll=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cl=new WeakMap,Qa=new WeakMap,ul=new WeakMap,ei=new WeakMap,ti=new WeakMap;function ip(t){const e=new Promise((r,n)=>{const a=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(dn(t.result)),a()},o=()=>{n(t.error),a()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&cl.set(r,t)}).catch(()=>{}),ti.set(e,t),e}function op(t){if(Qa.has(t))return;const e=new Promise((r,n)=>{const a=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),a()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Qa.set(t,e)}let ri={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Qa.get(t);if(e==="objectStoreNames")return t.objectStoreNames||ul.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return dn(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function sp(t){ri=t(ri)}function lp(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(ni(this),e,...r);return ul.set(n,e.sort?e.sort():[e]),dn(n)}:ap().includes(t)?function(...e){return t.apply(ni(this),e),dn(cl.get(this))}:function(...e){return dn(t.apply(ni(this),e))}}function cp(t){return typeof t=="function"?lp(t):(t instanceof IDBTransaction&&op(t),rp(t,np())?new Proxy(t,ri):t)}function dn(t){if(t instanceof IDBRequest)return ip(t);if(ei.has(t))return ei.get(t);const e=cp(t);return e!==t&&(ei.set(t,e),ti.set(e,t)),e}const ni=t=>ti.get(t),up=["get","getKey","getAll","getAllKeys","count"],dp=["put","add","delete","clear"],ai=new Map;function dl(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ai.get(e))return ai.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,a=dp.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(a||up.includes(r)))return;const i=async function(o,...s){const l=this.transaction(o,a?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(s.shift())),(await Promise.all([u[r](...s),a&&l.done]))[0]};return ai.set(e,i),i}sp(t=>({...t,get:(e,r,n)=>dl(e,r)||t.get(e,r,n),has:(e,r)=>!!dl(e,r)||t.has(e,r)}));class Fr{constructor(e,r,n){g(this,"mimeType"),g(this,"url"),g(this,"data"),this.mimeType=e,this.url=r,this.data=n}}class Er{constructor(){g(this,"id"),g(this,"name"),g(this,"value"),g(this,"values")}static fromCustomFormValueDto(e){var r;const n=new Er;n.id=e.id,n.name=De(e.name),n.value=De(e.value);const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(Er.fromCustomFormValueDto(i))}),n.values=a,n}static toFormValueDto(e){var r;const n=new hp;n.id=e.id,n.name=Re(e.name),n.value=Re(e.value);const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(Er.toFormValueDto(i))}),n.values=a,n}}class zt{constructor(){g(this,"id"),g(this,"label"),g(this,"type"),g(this,"inputType"),g(this,"visible"),g(this,"disabled"),g(this,"required"),g(this,"values"),g(this,"subItem"),g(this,"formatType"),g(this,"pattern"),g(this,"minlength"),g(this,"maxlength"),g(this,"externalId"),g(this,"help"),g(this,"placeholder"),g(this,"otherValue"),g(this,"category"),g(this,"readonly"),g(this,"value"),g(this,"multiple"),g(this,"bind"),g(this,"bindGroup")}static fromFormDto(e){var r,n,a,i,o,s;const l=new zt;l.id=e.id,l.label=De(e.title?e.title:e.label),l.type=e.type,l.inputType=e.inputType,l.visible=e.visible,l.disabled=e.disabled,l.required=e.mandatory;const u=[];(r=e.values)==null||r.forEach(x=>{u.push(Er.fromCustomFormValueDto(x))}),l.values=u;const f=[];return e.subItem&&((n=e.subItem)==null||n.forEach(x=>{f.push(zt.fromFormDto(x))})),l.subItem=f,l.readonly=e.readonly,l.multiple=e.multiple,l.pattern=(a=e.valueFormat)==null?void 0:a.regexValue,l.minlength=(i=e.valueFormat)==null?void 0:i.minLength,l.maxlength=(o=e.valueFormat)==null?void 0:o.maxLength,l.formatType=(s=e.valueFormat)==null?void 0:s.type,l.externalId=e.externalId,l.help=e.help,l.placeholder=e.placeholder,l.otherValue=e.otherValue,l.category=e.category,l.bind=e.bind,l.bindGroup=e.bindGroup,l.value=De(e.value),l}static fromWidgetFormItemDto(e){var r;const n=new zt;n.id=e.id,n.label=De(e.title?e.title:e.label),n.type=e.type,n.inputType=e.inputType,n.visible=e.visible,n.disabled=e.disabled,n.required=e.required;const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(Er.fromCustomFormValueDto(i))}),n.values=a,n.readonly=e.readonly,n.multiple=e.multiple,n.pattern=e.pattern,n.minlength=e.minlength,n.maxlength=e.maxlength,n.formatType=e.pattern?"regex":"none",n.externalId=e.externalId,n.help=e.help,n.placeholder=e.placeholder,n.bind=e.bind,n.bindGroup=e.bindGroup,n.value=De(e.value),n}static toFormDto(e){var r,n;const a=new fp;a.id=e.id,a.label=Re(e.label),a.title=Re(e.label),a.type=e.type,a.inputType=e.inputType,a.visible=e.visible,a.disabled=e.disabled,a.mandatory=e.required;const i=[];(r=e.values)==null||r.forEach(s=>{i.push(Er.toFormValueDto(s))}),a.values=i,a.valueFormat={type:e.formatType,maxLength:e.maxlength,minLength:e.minlength,regexValue:e.pattern};const o=[];return e.subItem&&((n=e.subItem)==null||n.forEach(s=>{o.push(zt.toFormDto(s))})),a.subItem=o,a.readonly=e.readonly,a.multiple=e.multiple,a.bind=e.bind,a.bindGroup=e.bindGroup,a.externalId=e.externalId,a.help=e.help,a.placeholder=e.placeholder,a.otherValue=e.otherValue,a.category=e.category,Array.isArray(e.value)?a.value=e.value.map(s=>Re(s)):typeof e.value=="string"?a.value=Re(e.value):a.value=e.value,a}static formItemToFormField(e){var r;return{id:e.id,inputType:e.inputType||e.type,label:e.label,mandatory:e.required,visible:e.visible,values:(r=e.values)==null?void 0:r.map(n=>({label:n.name,value:n.value})),bind:e.bind,multiple:e.multiple,value:e.value,pattern:e.pattern,disabled:e.disabled,minlength:e.minlength,maxlength:e.maxlength}}static formItemsToFormFields(e,r=!1){if(e&&e.length>0){const n=[];return e.forEach(a=>{var i;r&&a.subItem&&a.subItem.length>0?(i=a.subItem)==null||i.forEach(o=>{n.push(zt.formItemToFormField(o))}):n.push(zt.formItemToFormField(a))}),n}}}class fp{constructor(){g(this,"id"),g(this,"label"),g(this,"title"),g(this,"type"),g(this,"inputType"),g(this,"visible"),g(this,"disabled"),g(this,"mandatory"),g(this,"values"),g(this,"subItem"),g(this,"valueFormat"),g(this,"externalId"),g(this,"help"),g(this,"placeholder"),g(this,"otherValue"),g(this,"category"),g(this,"readonly"),g(this,"value"),g(this,"fileName"),g(this,"multiple"),g(this,"bind"),g(this,"bindGroup")}}class hp{constructor(){g(this,"id"),g(this,"name"),g(this,"value"),g(this,"values")}}class Yt{constructor(){g(this,"id"),g(this,"userId"),g(this,"company"),g(this,"firstName"),g(this,"lastName"),g(this,"gender"),g(this,"title"),g(this,"email"),g(this,"phone"),g(this,"otherPhone"),g(this,"description"),g(this,"vacations"),g(this,"role"),g(this,"workingHours"),g(this,"customWorkingHours"),g(this,"picture"),g(this,"servicesSkill"),g(this,"color"),g(this,"availableForWidget"),g(this,"externalId"),g(this,"additionalFields"),g(this,"externalCalendars"),g(this,"calendarLink")}static fromStaffDto(e){const r=new Yt;return r.id=e.id,e.company&&(r.company={id:e.company.id,name:e.company.name}),r.firstName=De(e.firstName),r.lastName=De(e.lastName),r.email=e.email,r.phone=e.phone,r.gender=e.gender,r.title=e.title,r.otherPhone=e.otherPhone,r.description=De(e.description),r.role=e.role,r.externalId=e.externalId,e.vacations&&(r.vacations=[],e.vacations.forEach(n=>{var a;return(a=r.vacations)==null?void 0:a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Pr.fromSettingsWorkingDayDto(n))})),e.customWorkingHours&&(r.customWorkingHours=[],e.customWorkingHours.forEach(n=>{var a;return(a=r.customWorkingHours)==null?void 0:a.push(Mr.fromSettingsPeriodWorkingDto(n))})),e.additionalFields&&(r.additionalFields=[],e.additionalFields.forEach(n=>{var a;return(a=r.additionalFields)==null?void 0:a.push(zt.fromFormDto(n))})),e.externalCalendars&&(r.externalCalendars=[],e.externalCalendars.forEach(n=>{var a;return(a=r.externalCalendars)==null?void 0:a.push(n)})),e.calendarLink&&(r.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(r.picture={mimeType:e.picture.mimeType,url:e.picture.url,data:e.picture.data}),e.services&&(r.servicesSkill=[],e.services.forEach(n=>{var a;(a=r.servicesSkill)==null||a.push(n.id)})),r.color=e.color,r.availableForWidget=e.availableForWidget,r}static toStaffDto(e){const r=new mp;return r.id=e.id,e.company&&(r.company={id:e.company.id,name:e.company.name}),r.firstName=Re(e.firstName),r.lastName=Re(e.lastName),r.email=e.email,r.phone=e.phone,r.gender=e.gender,r.title=e.title,r.otherPhone=e.otherPhone,r.description=Re(e.description),r.role=e.role,r.externalId=e.externalId,e.vacations&&(r.vacations=[],e.vacations.forEach(n=>{var a;return(a=r.vacations)==null?void 0:a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Pr.fromSettingsWorkingDayDto(n))})),e.customWorkingHours&&(r.customWorkingHours=[],e.customWorkingHours.forEach(n=>{var a;return(a=r.customWorkingHours)==null?void 0:a.push(Mr.fromSettingsPeriodWorkingDto(n))})),e.additionalFields&&(r.additionalFields=[],e.additionalFields.forEach(n=>{var a;return(a=r.additionalFields)==null?void 0:a.push(zt.fromFormDto(n))})),e.externalCalendars&&(r.externalCalendars=[],e.externalCalendars.forEach(n=>{var a;return(a=r.externalCalendars)==null?void 0:a.push(n)})),e.calendarLink&&(r.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(r.picture=new Fr(e.picture.mimeType,e.picture.url,e.picture.data)),e.servicesSkill&&(r.services=[],e.servicesSkill.forEach(n=>{var a;(a=r.services)==null||a.push({id:n})})),r.color=e.color,r.availableForWidget=e.availableForWidget,r}}class mp{constructor(){g(this,"id"),g(this,"company"),g(this,"firstName"),g(this,"lastName"),g(this,"gender"),g(this,"title"),g(this,"email"),g(this,"phone"),g(this,"otherPhone"),g(this,"description"),g(this,"vacations"),g(this,"role"),g(this,"workingHours"),g(this,"customWorkingHours"),g(this,"picture"),g(this,"services"),g(this,"color"),g(this,"availableForWidget"),g(this,"externalId"),g(this,"additionalFields"),g(this,"externalCalendars"),g(this,"calendarLink")}}class ar{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"description"),g(this,"capacity"),g(this,"price"),g(this,"bufferDuration"),g(this,"preparationDuration"),g(this,"validation"),g(this,"externalId"),g(this,"duration"),g(this,"locations"),g(this,"picture"),g(this,"staffsSkill"),g(this,"color"),g(this,"type"),g(this,"availability"),g(this,"i18n"),g(this,"resources")}static fromServiceDto(e){var r;const n=new ar;n.id=e.id,n.company=e.company?{id:e.company.id,name:De(e.company.name)}:void 0,n.name=De(e.name),n.duration=e.duration,n.description=De(e.description),n.capacity=e.capacity,n.price=e.price,n.bufferDuration=e.bufferDuration,n.preparationDuration=e.preparationDuration,n.validation=e.validation,n.externalId=e.externalId;const a=[];return(r=e.resource)==null||r.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),n.resources=a,n.type=e.bypassFreeBusyAvailabilities!==void 0&&e.bypassFreeBusyAvailabilities?"event":"default",n.locations=e.locations,n.picture=e.picture?new Fr(e.picture.mimeType,e.picture.url):void 0,e.staff&&(n.staffsSkill=[],e.staff.forEach(i=>{var o;(o=n.staffsSkill)==null||o.push(i.id)})),e.i18n&&(n.i18n={},e.i18n.fr&&(n.i18n.fr=e.i18n.fr),e.i18n.en&&(n.i18n.en=e.i18n.en),e.i18n.es&&(n.i18n.es=e.i18n.es),e.i18n.de&&(n.i18n.de=e.i18n.de),e.i18n.it&&(n.i18n.it=e.i18n.it),e.i18n.pt&&(n.i18n.pt=e.i18n.pt),e.i18n.jp&&(n.i18n.jp=e.i18n.jp),e.i18n.nl&&(n.i18n.nl=e.i18n.nl)),n.color=e.color,n.availability=e.availability,n}static toServiceDto(e){var r,n;const a=new pp;a.id=e.id,a.name=Re(e.name),a.duration=e.duration,a.description=Re(e.description),a.capacity=e.capacity,a.price=e.price,a.bufferDuration=e.bufferDuration,a.preparationDuration=e.preparationDuration,a.validation=e.validation,a.externalId=e.externalId,a.picture=(r=e.picture)!=null&&r.data?{url:"",mimeType:"",data:e.picture.data}:void 0;const i=[];return a.bypassFreeBusyAvailabilities=e.type==="event",(n=e.resources)==null||n.forEach(o=>{i.push({id:o.id,name:o.name,quantity:o.quantity})}),a.resource=i,a.locations=e.locations,e.staffsSkill&&(a.staff=[],e.staffsSkill.forEach(o=>{var s;(s=a.staff)==null||s.push({id:o})})),e.i18n&&(a.i18n={},e.i18n.fr&&(a.i18n.fr=e.i18n.fr),e.i18n.en&&(a.i18n.en=e.i18n.en),e.i18n.es&&(a.i18n.es=e.i18n.es),e.i18n.de&&(a.i18n.de=e.i18n.de),e.i18n.it&&(a.i18n.it=e.i18n.it),e.i18n.pt&&(a.i18n.pt=e.i18n.pt),e.i18n.jp&&(a.i18n.jp=e.i18n.jp),e.i18n.nl&&(a.i18n.nl=e.i18n.nl)),a.color=e.color,a.availability=e.availability,a}}class pp{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"duration"),g(this,"locations"),g(this,"picture"),g(this,"description"),g(this,"capacity"),g(this,"price"),g(this,"bufferDuration"),g(this,"preparationDuration"),g(this,"validation"),g(this,"externalId"),g(this,"staff"),g(this,"color"),g(this,"availability"),g(this,"resource"),g(this,"bypassFreeBusyAvailabilities"),g(this,"i18n")}}class ii{constructor(e){g(this,"text"),this.text=e}}class fn{constructor(){g(this,"street"),g(this,"otherStreet"),g(this,"zipCode"),g(this,"city"),g(this,"country"),g(this,"state")}static fromAddressDto(e){const r=new fn;return r.street=De(e.street),r.otherStreet=De(e.otherStreet),r.zipCode=De(e.zipCode),r.city=De(e.city),r.country=De(e.country),r.state=De(e.state),r}static toAddressDto(e){const r=new gp;return r.street=Re(e.street),r.otherStreet=Re(e.otherStreet),r.zipCode=Re(e.zipCode),r.city=Re(e.city),r.country=Re(e.country),r.state=Re(e.state),r}}class gp{constructor(){g(this,"street"),g(this,"otherStreet"),g(this,"zipCode"),g(this,"city"),g(this,"country"),g(this,"state")}}function vp(t){const e=t.replace("#",""),r=("rgb("+e.match(new RegExp("(.{"+e.length/3+"})","g")).map(function(a){return parseInt(e.length%2?a+a:a,16)}).join(",")+")").replace(/[^\d,]/g,"").split(",");var n=Math.floor((Number.parseInt(r[0])*299+Number.parseInt(r[1])*587+Number.parseInt(r[2])*114)/1e3);return n>125?"black":"white"}class Zt{constructor(){g(this,"id"),g(this,"owner"),g(this,"firstName"),g(this,"lastName"),g(this,"email"),g(this,"emailAddresses"),g(this,"phone"),g(this,"phoneNumbers"),g(this,"picture"),g(this,"externalId"),g(this,"marketingConsent"),g(this,"marketingOptins"),g(this,"title"),g(this,"gender"),g(this,"tags"),g(this,"companyName"),g(this,"jobTitle"),g(this,"address"),g(this,"birthDate"),g(this,"language"),g(this,"languageSpoken"),g(this,"languageUnderstood"),g(this,"additionalFieldsTitle"),g(this,"additionalFields"),g(this,"creationDate"),g(this,"timeZone"),g(this,"fax"),g(this,"notification"),g(this,"reminder"),g(this,"description")}static fromContactDto(e){var r,n,a,i;const o=new Zt;o.id=e.id,o.owner=e.owner,o.firstName=De(e.firstName),o.lastName=De(e.lastName);let s=[];(r=e.emailAddresses)==null||r.forEach(x=>{s.push(jn.fromContactEmailAddressDto(x))}),s.length>0?(o.emailAddresses=s,o.email=s[0].email):o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(x=>{l.push(Vn.fromContactPhoneNumberDto(x))}),l.length>0?(o.phoneNumbers=l,o.phone=l[0].number):o.phone=e.phone,e.picture&&(o.picture=new Fr(e.picture.mimeType,e.picture.url,e.picture.data)),o.externalId=e.externalId,o.marketingConsent=e.marketingConsent,o.title=e.title,o.gender=e.gender,e.marketingOptins&&(o.marketingOptins={},e.marketingOptins.email&&(o.marketingOptins.email={enabled:e.marketingOptins.email.enabled}));let u=[];(a=e.tags)==null||a.forEach(x=>{u.push(qn.fromContactTagDto(x))}),u.length>0&&(o.tags=u),o.companyName=e.companyName?De(e.companyName):void 0,o.jobTitle=e.jobTitle?De(e.jobTitle):void 0,e.address&&(o.address=fn.fromAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood;let f=[];if((i=e.additionalFields)==null||i.forEach(x=>{f.push(Hn.fromContactAdditionalFieldDto(x))}),f.length>0&&(o.additionalFields=f),o.additionalFieldsTitle=e.additionalFieldsTitle?De(e.additionalFieldsTitle):void 0,e.creationDate){const x=Xa(e.creationDate);x.setHours(0,0,0),o.creationDate=x}return o.timeZone=e.timeZone,o.fax=e.fax,o.notification=e.notificationType,o.reminder=e.reminderType,o.description=e.description,o}static toContactDto(e){var r,n,a,i;const o=new yp;o.id=e.id,o.owner=e.owner,o.firstName=Re(e.firstName),o.lastName=Re(e.lastName);let s=[];(r=e.emailAddresses)==null||r.forEach(x=>{s.push(jn.toContactEmailAddressDto(x))}),o.emailAddresses=s,o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(x=>{l.push(Vn.toContactPhoneNumberDto(x))}),o.phoneNumbers=l,o.phone=e.phone,e.picture&&(o.picture=new Fr(e.picture.mimeType,e.picture.url,e.picture.data)),o.externalId=e.externalId,e.marketingConsent&&(o.marketingConsent=new ii(e.marketingConsent.text)),o.title=e.title,o.gender=e.gender;let u=[];(a=e.tags)==null||a.forEach(x=>{u.push(qn.toContactTagDto(x))}),o.tags=u,o.companyName=Re(e.companyName),o.jobTitle=Re(e.jobTitle),e.address&&(o.address=fn.toAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood,o.additionalFieldsTitle=Re(e.additionalFieldsTitle);let f=[];return(i=e.additionalFields)==null||i.forEach(x=>{f.push(Hn.toContactAdditionalFieldDto(x))}),o.additionalFields=f,o.fax=e.fax,o.timeZone=e.timeZone,o.notificationType=e.notification,o.reminderType=e.reminder,o.description=e.description,o}}class oi{constructor(){g(this,"items"),g(this,"nextPageToken"),g(this,"nextSyncToken"),g(this,"totalItems")}static fromContactSearchDto(e){const r=new oi;r.nextPageToken=e.nextPageToken,r.nextSyncToken=e.nextSyncToken,r.totalItems=e.totalItems;const n=[];return e.items.forEach(a=>n.push(Zt.fromContactDto(a))),r.items=n,r}}class Vn{constructor(){g(this,"number"),g(this,"primary"),g(this,"mobile")}static fromContactPhoneNumberDto(e){const r=new Vn;return r.number=e.number,r.primary=e.primary,r.mobile=e.mobile,r}static toContactPhoneNumberDto(e){const r=new bp;return r.number=e.number,r.primary=e.primary,r.mobile=e.mobile,r}}class jn{constructor(){g(this,"email"),g(this,"primary")}static fromContactEmailAddressDto(e){const r=new jn;return r.email=e.email,r.primary=e.primary,r}static toContactEmailAddressDto(e){const r=new Ep;return r.email=e.email,r.primary=e.primary,r}}class qn{constructor(){g(this,"id"),g(this,"tag"),g(this,"color"),g(this,"textColor")}static fromContactTagDto(e){const r=new qn;return r.id=e.id,r.tag=De(e.tag),r.color=e.color,e.color&&(r.textColor=vp(e.color)),r}static toContactTagDto(e){const r=new xp;return r.tag=Re(e.tag),r.color=e.color,r}}class Hn{constructor(){g(this,"id"),g(this,"name"),g(this,"mandatory"),g(this,"value")}static fromContactAdditionalFieldDto(e){const r=new Hn;return r.id=e.id,r.name=De(e.name),r.mandatory=e.mandatory,r.value=De(e.value),r}static toContactAdditionalFieldDto(e){const r=new wp;return r.id=e.id,r.name=Re(e.name),r.mandatory=e.mandatory,r.value=Re(e.value),r}}class yp{constructor(){g(this,"id"),g(this,"owner"),g(this,"firstName"),g(this,"lastName"),g(this,"email"),g(this,"emailAddresses"),g(this,"phone"),g(this,"phoneNumbers"),g(this,"picture"),g(this,"externalId"),g(this,"marketingConsent"),g(this,"marketingOptins"),g(this,"title"),g(this,"gender"),g(this,"tags"),g(this,"companyName"),g(this,"jobTitle"),g(this,"address"),g(this,"birthDate"),g(this,"language"),g(this,"languageSpoken"),g(this,"languageUnderstood"),g(this,"additionalFieldsTitle"),g(this,"additionalFields"),g(this,"creationDate"),g(this,"timeZone"),g(this,"fax"),g(this,"notificationType"),g(this,"reminderType"),g(this,"description")}}class bp{constructor(){g(this,"number"),g(this,"primary"),g(this,"mobile")}}class Ep{constructor(){g(this,"email"),g(this,"primary")}}class xp{constructor(){g(this,"id"),g(this,"tag"),g(this,"color")}}class wp{constructor(){g(this,"id"),g(this,"name"),g(this,"mandatory"),g(this,"value")}}var fl=(t=>(t.PRO="normal",t.PERSO="personal",t.EXTERNAL="external",t.ICS="ics",t))(fl||{});class Rt{constructor(){g(this,"id"),g(this,"owner"),g(this,"company"),g(this,"service"),g(this,"staff"),g(this,"client"),g(this,"start"),g(this,"end"),g(this,"status"),g(this,"type"),g(this,"source"),g(this,"price"),g(this,"paid"),g(this,"notes"),g(this,"summary"),g(this,"form"),g(this,"metaEvent"),g(this,"metaEventId"),g(this,"onlineMeeting"),g(this,"parameters"),g(this,"events"),g(this,"privacyConsent"),g(this,"marketingConsent"),g(this,"location"),g(this,"locationCustom"),g(this,"preparationDuration"),g(this,"bufferDuration")}static fromEventDto(e,r){var n;const a=new Rt;a.id=e.id,e.owner&&(a.owner={id:e.owner.id,userName:e.owner.userName}),e.company&&(a.company={id:e.company.id,name:De(e.company.name)}),e.service&&(a.service={id:e.service.id,name:De(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:De(e.staff.firstName),lastName:De(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:De(e.client.firstName),lastName:De(e.client.lastName),email:e.client.email}),a.start=Xa(e.start.dateTime,e.start.timeZone),a.end=Xa(e.end.dateTime,e.end.timeZone),a.status=e.status,a.paid=e.paid,a.type=r||e.type,a.source=e.source,a.price=e.price,a.notes=De(e.notes),a.summary=De(e.summary);const i=[];if((n=e.form)==null||n.forEach(o=>i.push(zt.fromFormDto(o))),a.form=i,a.metaEvent=e["meta-event"],a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,a.location=e.location,a.locationCustom=De(e.locationCustom),e.events){const o=[];e.events.forEach(s=>o.push(Rt.fromEventDto(s,r))),a.events=o}return a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}static toEventDto(e,r){var n;const a=new _p;a.id=e.id,e.company&&(a.company={id:e.company.id,name:Re(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Re(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Re(e.staff.firstName),lastName:Re(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Re(e.client.firstName),lastName:Re(e.client.lastName),email:e.client.email}),a.start=il(e.start,r),a.end=il(e.end,r),a.status=e.status,a.paid=e.paid,a.type=e.type,a.source=e.source,a.price=e.price,a.notes=Re(e.notes),a.summary=Re(e.summary);const i=[];if((n=e.form)==null||n.forEach(o=>i.push(zt.toFormDto(o))),a.form=i,a["meta-event"]=e.metaEvent,a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,e.events){const o=[];e.events.forEach(s=>o.push(Rt.toEventDto(s,r))),a.events=o}return e.marketingConsent&&(a.marketingConsent=new ii(e.marketingConsent.text)),e.privacyConsent&&(a.privacyConsent=new ii(e.privacyConsent.text)),a.location=e.location,a.locationCustom=Re(e.locationCustom),a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}}class _p{constructor(){g(this,"id"),g(this,"owner"),g(this,"company"),g(this,"service"),g(this,"staff"),g(this,"client"),g(this,"start"),g(this,"end"),g(this,"status"),g(this,"type"),g(this,"source"),g(this,"paid"),g(this,"price"),g(this,"notes"),g(this,"summary"),g(this,"form"),g(this,"meta-event"),g(this,"metaEventId"),g(this,"onlineMeeting"),g(this,"parameters"),g(this,"events"),g(this,"privacyConsent"),g(this,"marketingConsent"),g(this,"location"),g(this,"locationCustom"),g(this,"preparationDuration"),g(this,"bufferDuration")}}class ir{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"picture"),g(this,"members"),g(this,"parent"),g(this,"externalId"),g(this,"companyId")}static fromServiceGroupDto(e,r){const n=new ir;return n.id=e.id,n.name=De(e.name),n.color=e.color,n.picture=e.picture?new Fr(e.picture.mimeType,e.picture.url,e.picture.data):void 0,e.members&&(n.members=[],e.members.forEach(a=>{var i;(i=n.members)==null||i.push({id:a.id,name:De(a.name)})})),e.parent&&(n.parent={id:e.parent.id,name:De(e.parent.name)}),n.externalId=e.externalId,n.companyId=r,n}static toServiceGroupDto(e){var r,n,a;const i=new Sp;return i.id=e.id,i.name=Re(e.name),i.color=e.color,i.picture=e.picture?{url:(r=e.picture)==null?void 0:r.url,mimeType:(n=e.picture)==null?void 0:n.mimeType,data:(a=e.picture)==null?void 0:a.data}:void 0,e.members&&(i.members=[],e.members.forEach(o=>{var s;(s=i.members)==null||s.push({id:o.id,name:Re(o.name)})})),e.parent&&(i.parent={id:e.parent.id,name:Re(e.parent.name)}),i.externalId=e.externalId,i}}class Sp{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"picture"),g(this,"members"),g(this,"parent"),g(this,"externalId")}}class or{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"members"),g(this,"workingHours"),g(this,"externalId"),g(this,"companyId")}static fromStaffGroupDto(e,r){const n=new or;return n.id=e.id,n.name=De(e.name),n.color=e.color,e.members&&(n.members=[],e.members.forEach(a=>{var i;(i=n.members)==null||i.push(a)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(a=>{var i;return(i=n.workingHours)==null?void 0:i.push(Pr.fromSettingsWorkingDayDto(a))})),n.externalId=e.externalId,n.companyId=r,n}static toStaffGroupDto(e){const r=new Ip;return r.id=e.id,r.name=Re(e.name),r.color=e.color,e.members&&(r.members=[],e.members.forEach(n=>{var a;(a=r.members)==null||a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Pr.fromSettingsWorkingDayDto(n))})),r.externalId=e.externalId,r}}class Ip{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"members"),g(this,"workingHours"),g(this,"externalId")}}var ke=(t=>(t[t.UNKOWN=0]="UNKOWN",t[t.INTERNAL_ERROR=1]="INTERNAL_ERROR",t[t.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",t[t.INVALID_PARAMETER=3]="INVALID_PARAMETER",t[t.CREDENTIAL_ERROR=100]="CREDENTIAL_ERROR",t[t.USER_ACCOUNT_LOCKED=101]="USER_ACCOUNT_LOCKED",t[t.PASSWORD_POLICY_ERROR=102]="PASSWORD_POLICY_ERROR",t[t.STAFF_NOT_AVAILABLE=1e3]="STAFF_NOT_AVAILABLE",t[t.MAX_APPOINTMENT_DAILY=1001]="MAX_APPOINTMENT_DAILY",t[t.MAX_APPOINTMENT_WEEKLY=1002]="MAX_APPOINTMENT_WEEKLY",t[t.APPOINTMENT_PERIOD_RULE=1003]="APPOINTMENT_PERIOD_RULE",t[t.RESOURCE_NOT_AVAILABLE=1004]="RESOURCE_NOT_AVAILABLE",t[t.DATE_NOT_AVAILABLE=1005]="DATE_NOT_AVAILABLE",t[t.USER_BLOCKED=1006]="USER_BLOCKED",t[t.ACCOUNT_NOT_FOUND=2e3]="ACCOUNT_NOT_FOUND",t))(ke||{});function Cp(t,e){if(e.errorCode)return ke[e.errorCode];if(t==="Appointment")switch(e.reason){case"notFound":return 1e3}return 0}class si{constructor(){g(this,"errorCode"),g(this,"reason"),g(this,"code"),g(this,"message")}}const sr=new si;sr.reason="notFound",sr.code=404,sr.message="Not Found";class Ne{constructor(e,r){g(this,"errorCode"),g(this,"e"),this.errorCode=e,this.e=r}}const Tp=36e5;var Ke=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))(Ke||{}),Le=(t=>(t[t.REMOTE_THEN_LOCAL=0]="REMOTE_THEN_LOCAL",t[t.LOCAL_THEN_REMOTE=1]="LOCAL_THEN_REMOTE",t[t.LOCAL_ONLY=2]="LOCAL_ONLY",t[t.REMOTE_ONLY=3]="REMOTE_ONLY",t))(Le||{});const li=class{constructor(t,e){g(this,"repositoryName"),g(this,"logger"),this.logger=e,this.repositoryName=t}async list(t,e,r){var n;let a;switch(+e){case 0:return this._listRemoteFirstThenLocal(t,r);case 1:return this._isExpired(li.lastRemoteList[this.repositoryName])?((n=this.logger)==null||n.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._listRemoteFirstThenLocal(t,r)):this._listLocalFirstThenRemote(t,r);case 2:return a=await this.localList(r),{local:!0,results:a};case 3:return a=await this.remoteList(t,r),await this.localSaveList(r,a),{local:!1,results:a}}throw new Error("Not implemented")}async update(t,e,r,n){switch(+e){case 0:return this._updateRemoteFirstThenLocal(t,r,n);case 3:return await this.remoteUpdate(t,r,n)}throw new Error("Not implemented")}async create(t,e,r,n){switch(+e){case 0:return this._createRemoteFirstThenLocal(t,r,n);case 3:return await this.remoteCreate(t,r,n);case 2:return await this.localBulkSave(r,[n]),n}throw new Error("Not implemented")}async getById(t,e,r){var n,a;let i=!0,o;switch(+e){case 0:const s=await this._getRemoteFirstThenLocal(t,r);o=s.result,i=s.local;break;case 3:i=!1,o=await this.remoteGet(t,r),await this.localSave(r,o);break;case 2:o=await this.localGet(r);break;case 1:try{o=await this.localGet(r)}catch(l){(n=this.logger)==null||n.debug("js-calendar-api","LocalThenRemote localGet error",l)}return!o||!o.lastRemote||this._isExpired(o.lastRemote)?((a=this.logger)==null||a.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._getRemoteFirstThenLocal(t,r)):this._getLocalFirstThenRemote(t,r);default:throw new Error("Not implemented")}return{local:i,result:o}}async deleteById(t,e){await this.remoteDelete(t,e),await this.localDelete(e)}async cascadeDeleteList(t,e){const r=await this.localList(t);if(r){const n=r.filter(e);await this.localBulkDelete(n)}}async cascadeDeleteItem(t){await this.localDelete(t)}async cascadeDelete(t,e,r=!0){r&&e?await this.cascadeDeleteList(t,e):r||await this.cascadeDeleteItem(t)}async _getLocalFirstThenRemote(t,e){var r,n,a,i=!0;try{a=await this.localGet(e)}catch(o){(r=this.logger)==null||r.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(!a){i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){throw(n=this.logger)==null||n.error("js-calendar-api",`Get ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{result:a,local:i}}async _getRemoteFirstThenLocal(t,e){var r,n;let a,i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){i=!0,(r=this.logger)==null||r.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localGet(e),a===void 0)throw o}catch(s){throw(n=this.logger)==null||n.error("js-calendar-api",`Get ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{result:a,local:i}}async _listRemoteFirstThenLocal(t,e){var r,n;let a=[],i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){i=!0,(r=this.logger)==null||r.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localList(e),a===void 0||a.length===0)throw o}catch(s){throw(n=this.logger)==null||n.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{results:a,local:i}}async _listLocalFirstThenRemote(t,e){var r,n;let a=[],i=!0;try{a=await this.localList(e)}catch(o){(r=this.logger)==null||r.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(a===void 0||a.length===0){i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){throw(n=this.logger)==null||n.error("js-calendar-api",`List ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{results:a,local:i}}async _createRemoteFirstThenLocal(t,e,r){var n;let a;try{a=await this.remoteCreate(t,e,r),await this.localSave(e,a)}catch(i){throw(n=this.logger)==null||n.error("js-calendar-api",`Create ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async _updateRemoteFirstThenLocal(t,e,r){var n;let a;try{a=await this.remoteUpdate(t,e,r),await this.localSave(e,a)}catch(i){throw(n=this.logger)==null||n.error("js-calendar-api",`Update ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async localSaveList(t,e){await this.localBulkSave(t,e),li.lastRemoteList[this.repositoryName]=new Date().getTime()}async localSave(t,e){await this.localBulkSave(t,[e])}_isExpired(t){return!(t&&t+Tp>new Date().getTime())}getError(t){let e=ke.UNKOWN;return t instanceof si&&(e=Cp(this.repositoryName,t)),new Ne(e,t)}};let lr=li;g(lr,"lastRemoteList",{});class cr{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"quantity"),g(this,"availability"),g(this,"services"),g(this,"customWorkingHours")}static fromServiceResourceDto(e,r){var n;const a=new cr;a.name=e.name,a.id=e.id,a.company={id:r},a.quantity=e.quantity,a.availability=e.availability,a.services=e.services;const i=[];return(n=e.customWorkingHours)==null||n.forEach(o=>{i.push(Mr.fromSettingsPeriodWorkingDto(o))}),a.customWorkingHours=i,a}static toServiceResourceDto(e){var r;const n=new kp;n.id=e.id,n.name=e.name,n.quantity=e.quantity,n.availability=e.availability,n.services=e.services;const a=[];return(r=e.customWorkingHours)==null||r.forEach(i=>{a.push(Mr.toSettingsPeriodWorkingDto(i))}),n.customWorkingHours=a,n}}class kp{constructor(){g(this,"id"),g(this,"name"),g(this,"quantity"),g(this,"availability"),g(this,"services"),g(this,"customWorkingHours")}}const zr="staff",Br="service",Ur="serviceResource",hn="contact",ur="event",Vr="serviceGroup",jr="staffGroup";var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ap(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dp(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var hl={exports:{}},ci={exports:{}},ml=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},Np=ml,dr=Object.prototype.toString;function ui(t){return Array.isArray(t)}function di(t){return typeof t>"u"}function Op(t){return t!==null&&!di(t)&&t.constructor!==null&&!di(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function pl(t){return dr.call(t)==="[object ArrayBuffer]"}function Rp(t){return dr.call(t)==="[object FormData]"}function Lp(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&pl(t.buffer),e}function Mp(t){return typeof t=="string"}function Pp(t){return typeof t=="number"}function gl(t){return t!==null&&typeof t=="object"}function Gn(t){if(dr.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Fp(t){return dr.call(t)==="[object Date]"}function zp(t){return dr.call(t)==="[object File]"}function Bp(t){return dr.call(t)==="[object Blob]"}function vl(t){return dr.call(t)==="[object Function]"}function Up(t){return gl(t)&&vl(t.pipe)}function Vp(t){return dr.call(t)==="[object URLSearchParams]"}function jp(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function qp(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function fi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ui(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function hi(){var t={};function e(a,i){Gn(t[i])&&Gn(a)?t[i]=hi(t[i],a):Gn(a)?t[i]=hi({},a):ui(a)?t[i]=a.slice():t[i]=a}for(var r=0,n=arguments.length;r<n;r++)fi(arguments[r],e);return t}function Hp(t,e,r){return fi(e,function(n,a){r&&typeof n=="function"?t[a]=Np(n,r):t[a]=n}),t}function Gp(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var wt={isArray:ui,isArrayBuffer:pl,isBuffer:Op,isFormData:Rp,isArrayBufferView:Lp,isString:Mp,isNumber:Pp,isObject:gl,isPlainObject:Gn,isUndefined:di,isDate:Fp,isFile:zp,isBlob:Bp,isFunction:vl,isStream:Up,isURLSearchParams:Vp,isStandardBrowserEnv:qp,forEach:fi,merge:hi,extend:Hp,trim:jp,stripBOM:Gp},qr=wt;function yl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var bl=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(qr.isURLSearchParams(e))n=e.toString();else{var a=[];qr.forEach(e,function(o,s){o===null||typeof o>"u"||(qr.isArray(o)?s=s+"[]":o=[o],qr.forEach(o,function(l){qr.isDate(l)?l=l.toISOString():qr.isObject(l)&&(l=JSON.stringify(l)),a.push(yl(s)+"="+yl(l))}))}),n=a.join("&")}if(n){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},Wp=wt;function Wn(){this.handlers=[]}Wn.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1},Wn.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Wn.prototype.forEach=function(t){Wp.forEach(this.handlers,function(e){e!==null&&t(e)})};var $p=Wn,Yp=wt,Zp=function(t,e){Yp.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})},El=function(t,e,r,n,a){return t.config=e,r&&(t.code=r),t.request=n,t.response=a,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},xl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mi,wl;function _l(){if(wl)return mi;wl=1;var t=El;return mi=function(e,r,n,a,i){var o=new Error(e);return t(o,r,n,a,i)},mi}var pi,Sl;function Jp(){if(Sl)return pi;Sl=1;var t=_l();return pi=function(e,r,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):r(t("Request failed with status code "+n.status,n.config,null,n.request,n))},pi}var gi,Il;function Kp(){if(Il)return gi;Il=1;var t=wt;return gi=t.isStandardBrowserEnv()?function(){return{write:function(e,r,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),t.isString(a)&&s.push("path="+a),t.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),gi}var Cl,Tl;function Xp(){return Tl||(Tl=1,Cl=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Cl}var kl,Al;function Qp(){return Al||(Al=1,kl=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),kl}var vi,Dl;function e1(){if(Dl)return vi;Dl=1;var t=Xp(),e=Qp();return vi=function(r,n){return r&&!t(n)?e(r,n):n},vi}var yi,Nl;function t1(){if(Nl)return yi;Nl=1;var t=wt,e=["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"];return yi=function(r){var n={},a,i,o;return r&&t.forEach(r.split(`
|
|
36
|
-
`),function(s){if(o=s.indexOf(":"),a=t.trim(s.substr(0,o)).toLowerCase(),i=t.trim(s.substr(o+1)),a){if(n[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([i]):n[a]=n[a]?n[a]+", "+i:i}}),n},yi}var bi,Ol;function r1(){if(Ol)return bi;Ol=1;var t=wt;return bi=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(i){var o=i;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){var o=t.isString(i)?a(i):i;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),bi}var Ei,Rl;function $n(){if(Rl)return Ei;Rl=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Ei=t,Ei}var xi,Ll;function n1(){if(Ll)return xi;Ll=1;var t=wt,e=Jp(),r=Kp(),n=bl,a=e1(),i=t1(),o=r1(),s=_l(),l=xl,u=$n();return xi=function(f){return new Promise(function(x,y){var w=f.data,S=f.headers,T=f.responseType,N;function C(){f.cancelToken&&f.cancelToken.unsubscribe(N),f.signal&&f.signal.removeEventListener("abort",N)}t.isFormData(w)&&delete S["Content-Type"];var E=new XMLHttpRequest;if(f.auth){var A=f.auth.username||"",I=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";S.Authorization="Basic "+btoa(A+":"+I)}var D=a(f.baseURL,f.url);E.open(f.method.toUpperCase(),n(D,f.params,f.paramsSerializer),!0),E.timeout=f.timeout;function P(){if(E){var Y="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,Q=!T||T==="text"||T==="json"?E.responseText:E.response,B={data:Q,status:E.status,statusText:E.statusText,headers:Y,config:f,request:E};e(function(G){x(G),C()},function(G){y(G),C()},B),E=null}}if("onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){!E||(y(s("Request aborted",f,"ECONNABORTED",E)),E=null)},E.onerror=function(){y(s("Network Error",f,null,E)),E=null},E.ontimeout=function(){var Y=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",Q=f.transitional||l;f.timeoutErrorMessage&&(Y=f.timeoutErrorMessage),y(s(Y,f,Q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},t.isStandardBrowserEnv()){var z=(f.withCredentials||o(D))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;z&&(S[f.xsrfHeaderName]=z)}"setRequestHeader"in E&&t.forEach(S,function(Y,Q){typeof w>"u"&&Q.toLowerCase()==="content-type"?delete S[Q]:E.setRequestHeader(Q,Y)}),t.isUndefined(f.withCredentials)||(E.withCredentials=!!f.withCredentials),T&&T!=="json"&&(E.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&E.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(N=function(Y){!E||(y(!Y||Y&&Y.type?new u("canceled"):Y),E.abort(),E=null)},f.cancelToken&&f.cancelToken.subscribe(N),f.signal&&(f.signal.aborted?N():f.signal.addEventListener("abort",N))),w||(w=null),E.send(w)})},xi}var dt=wt,Ml=Zp,a1=El,i1=xl,o1={"Content-Type":"application/x-www-form-urlencoded"};function Pl(t,e){!dt.isUndefined(t)&&dt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s1(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=n1()),t}function l1(t,e,r){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Yn={transitional:i1,adapter:s1(),transformRequest:[function(t,e){return Ml(e,"Accept"),Ml(e,"Content-Type"),dt.isFormData(t)||dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)?t:dt.isArrayBufferView(t)?t.buffer:dt.isURLSearchParams(t)?(Pl(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):dt.isObject(t)||e&&e["Content-Type"]==="application/json"?(Pl(e,"application/json"),l1(t)):t}],transformResponse:[function(t){var e=this.transitional||Yn.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||n&&dt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?a1(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};dt.forEach(["delete","get","head"],function(t){Yn.headers[t]={}}),dt.forEach(["post","put","patch"],function(t){Yn.headers[t]=dt.merge(o1)});var wi=Yn,c1=wt,u1=wi,d1=function(t,e,r){var n=this||u1;return c1.forEach(r,function(a){t=a.call(n,t,e)}),t},Fl,zl;function Bl(){return zl||(zl=1,Fl=function(t){return!!(t&&t.__CANCEL__)}),Fl}var Ul=wt,_i=d1,f1=Bl(),h1=wi,m1=$n();function Si(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new m1("canceled")}var p1=function(t){Si(t),t.headers=t.headers||{},t.data=_i.call(t,t.data,t.headers,t.transformRequest),t.headers=Ul.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ul.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var e=t.adapter||h1.adapter;return e(t).then(function(r){return Si(t),r.data=_i.call(t,r.data,r.headers,t.transformResponse),r},function(r){return f1(r)||(Si(t),r&&r.response&&(r.response.data=_i.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},It=wt,Vl=function(t,e){e=e||{};var r={};function n(u,f){return It.isPlainObject(u)&&It.isPlainObject(f)?It.merge(u,f):It.isPlainObject(f)?It.merge({},f):It.isArray(f)?f.slice():f}function a(u){if(It.isUndefined(e[u])){if(!It.isUndefined(t[u]))return n(void 0,t[u])}else return n(t[u],e[u])}function i(u){if(!It.isUndefined(e[u]))return n(void 0,e[u])}function o(u){if(It.isUndefined(e[u])){if(!It.isUndefined(t[u]))return n(void 0,t[u])}else return n(void 0,e[u])}function s(u){if(u in e)return n(t[u],e[u]);if(u in t)return n(void 0,t[u])}var l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return It.forEach(Object.keys(t).concat(Object.keys(e)),function(u){var f=l[u]||a,x=f(u);It.isUndefined(x)&&f!==s||(r[u]=x)}),r},jl,ql;function Hl(){return ql||(ql=1,jl={version:"0.26.1"}),jl}var g1=Hl().version,Ii={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Ii[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var Gl={};Ii.transitional=function(t,e,r){function n(a,i){return"[Axios v"+g1+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return function(a,i,o){if(t===!1)throw new Error(n(i," has been removed"+(e?" in "+e:"")));return e&&!Gl[i]&&(Gl[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(a,i,o):!0}};function v1(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),a=n.length;a-- >0;){var i=n[a],o=e[i];if(o){var s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var y1={assertOptions:v1,validators:Ii},Wl=wt,b1=bl,$l=$p,Yl=p1,Zn=Vl,Zl=y1,Hr=Zl.validators;function mn(t){this.defaults=t,this.interceptors={request:new $l,response:new $l}}mn.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Zn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Zl.assertOptions(r,{silentJSONParsing:Hr.transitional(Hr.boolean),forcedJSONParsing:Hr.transitional(Hr.boolean),clarifyTimeoutError:Hr.transitional(Hr.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(e)===!1||(a=a&&x.synchronous,n.unshift(x.fulfilled,x.rejected))});var i=[];this.interceptors.response.forEach(function(x){i.push(x.fulfilled,x.rejected)});var o;if(!a){var s=[Yl,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=e;n.length;){var u=n.shift(),f=n.shift();try{l=u(l)}catch(x){f(x);break}}try{o=Yl(l)}catch(x){return Promise.reject(x)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},mn.prototype.getUri=function(t){return t=Zn(this.defaults,t),b1(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Wl.forEach(["delete","get","head","options"],function(t){mn.prototype[t]=function(e,r){return this.request(Zn(r||{},{method:t,url:e,data:(r||{}).data}))}}),Wl.forEach(["post","put","patch"],function(t){mn.prototype[t]=function(e,r,n){return this.request(Zn(n||{},{method:t,url:e,data:r}))}});var E1=mn,Ci,Jl;function x1(){if(Jl)return Ci;Jl=1;var t=$n();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(i){n=i});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(l){a.subscribe(l),o=l}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},r(function(i){a.reason||(a.reason=new t(i),n(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},e.prototype.unsubscribe=function(r){if(this._listeners){var n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}},e.source=function(){var r,n=new e(function(a){r=a});return{token:n,cancel:r}},Ci=e,Ci}var Kl,Xl;function w1(){return Xl||(Xl=1,Kl=function(t){return function(e){return t.apply(null,e)}}),Kl}var Ti,Ql;function _1(){if(Ql)return Ti;Ql=1;var t=wt;return Ti=function(e){return t.isObject(e)&&e.isAxiosError===!0},Ti}var ec=wt,S1=ml,Jn=E1,I1=Vl,C1=wi;function tc(t){var e=new Jn(t),r=S1(Jn.prototype.request,e);return ec.extend(r,Jn.prototype,e),ec.extend(r,e),r.create=function(n){return tc(I1(t,n))},r}var qt=tc(C1);qt.Axios=Jn,qt.Cancel=$n(),qt.CancelToken=x1(),qt.isCancel=Bl(),qt.VERSION=Hl().version,qt.all=function(t){return Promise.all(t)},qt.spread=w1(),qt.isAxiosError=_1(),ci.exports=qt,ci.exports.default=qt,function(t){t.exports=ci.exports}(hl);const rc=Ap(hl.exports);class T1{constructor(){g(this,"printQueue"),this.printQueue=[]}makeUrl(e,r){return e&&(r&&(e=this.combineURLs(r,e)),this.printQueue.push(e)),this}makeParams(e){return e&&this.printQueue.push(JSON.stringify(e)),this}makeMethod(e){return e&&this.printQueue.push(e.toUpperCase()),this}makeData(e){const r=typeof e=="string"?e:JSON.stringify(e);return e&&this.printQueue.push(r),this}makeStatus(e,r){return e&&r?this.printQueue.push(`${e}:${r}`):e?this.printQueue.push(`${e}`):r&&this.printQueue.push(r),this}build(){return this.printQueue.join(" ")}combineURLs(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}}class xr{constructor(e,r,n){g(this,"authenticationService"),g(this,"logger"),g(this,"bearerCall",!1),g(this,"instance"),g(this,"axiosLoggerBuilder"),g(this,"baseUrl"),g(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleRefreshToken)}),g(this,"_handleResponse",a=>{var i,o,s,l,u;if(this.logger){const f=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus(a.status,a.statusText).makeData(this.filteredDataLog((u=a.config)==null?void 0:u.data)).makeData(this.filteredDataLog(a.data)).build();this.logger.debug("js-calendar-api",f)}return a.data}),g(this,"_handleError",a=>{var i,o,s,l,u,f,x,y,w,S;if(this.logger){const T=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus((u=a.response)==null?void 0:u.status,(f=a.response)==null?void 0:f.statusText).makeData((x=a.config)==null?void 0:x.data).makeData((y=a.response)==null?void 0:y.data).build();this.logger.error("js-calendar-api",T)}if(rc.isAxiosError(a)&&((S=(w=a.response)==null?void 0:w.data)==null?void 0:S.error)){const T=Object.assign(new si,a.response.data.error);return Promise.reject(T)}else return Promise.reject(a)}),g(this,"_handleRefreshToken",async a=>{if(!this.bearerCall&&a.response){const i=a.config;if(a.response.status===401||a.response.status===400&&a.response.data&&a.response.data.error&&a.response.data.error.message&&a.response.data.error.message.indexOf("Required parameter apiKey not found")>-1)if(i._retry)this.authenticationService.logout().finally(()=>window.location.href="/");else{i._retry=!0;try{return await this.authenticationService.refreshToken(),this.instance(i)}catch{this.authenticationService.logout().finally(()=>window.location.href="/")}}}return this._handleError(a)}),this.authenticationService=r,this.logger=n,this.baseUrl=e,this.instance=rc.create({baseURL:e}),this.axiosLoggerBuilder=new T1,this._initializeResponseInterceptor()}filteredDataLog(e){return e}getAxiosConfig(e){var r={};return e?(this.bearerCall=!0,r={headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},params:{}}):(this.bearerCall=!1,r={headers:{"Content-Type":"application/json"},params:{},withCredentials:!0}),r}}var Me={};/*! *****************************************************************************
|
|
35
|
+
Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placeholder:"Saisissez un message de remerciement",label:"Message de remerciement"}},"queue-monitoring":{title:"@:queue.menu.queue-monitoring",waiting_people:"En attente : {count} personnes",finish_people:"Termin\xE9 : {count} personnes",medium_waiting_time:"Attente moyenne : {waiting_time}","called-clients":"Clients appel\xE9s ",button:{absent:"Non pr\xE9sent",finish:"Termin\xE9"},search:{placeholder:"Rechercher par nom"},table:{number:"Num\xE9ro",fullname:"Nom",email:"Email",phone:"T\xE9l\xE9phone",waitingTime:"Temps d'attente"}},queues:{delete:{title:"Suppression de la file d'attente",confirm:"@:common.action.delete",descriptionN:"{number} files d'attente vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"},search:{empty:"Aucune file d'attente",placeholder:"@:common.search.by-name"},table:{name:"@:common.field.name.label",author:"@:common.field.email.label"},title:"Files d'attente ({number})"},location:{itinerary:"Itin\xE9raire"},menu:{burger:{"aria-label":"Afficher le menu"},"queue-monitoring":"Suivi","queue-settings":"Configuration g\xE9n\xE9rale","queue-new":"Nouvelle file d'attente",queues:"Toutes les files d'attente","close-aria-label":"Fermer le menu des files d'attente"},powered:"Propuls\xE9 par Agendize",title:"File d'attente",waiting:{people:"{nb} personne(s)","waiting-time":"Environ {time} minute(s) d'attente","number-in-queue":"Vous \xEAtes le num\xE9ro {nb} dans la file d'attente",recap:"Il y a {nb} personne(s) devant vous. Votre temps d\u2019attente est estim\xE9 \xE0 {time} minute(s)"},"working-hours":{"open-today":"Ouvert aujourd'hui",closed:"Ferm\xE9",title:"Les horaires"}},Yh={filter:{title:"Filtres",description:"Les filtres vous permettent d\u2019acc\xE9der facilement \xE0 la donn\xE9e qui vous int\xE9resse en fonction de la p\xE9riode, des \xE9tablissements et des collaborateurs.",period:"P\xE9riode",companies:"\xC9tablissements",users:"Collaborateurs"}},Zh={list:{title:"Visualiser mes statistiques",subTitle:"Analyser les performances de vos \xE9tablissements sur une p\xE9riode donn\xE9e.",filter:"Filtrer",loading:"Chargement de mes rapports",account:"S\xE9lectionner le compte \xE0 afficher",error:"Une erreur a eu lieu lors du chargement de mes rapports"}},Kh={recents:"Recherches r\xE9centes",loading:"Loading",company:{desc:"Rechercher puis s\xE9lectionner un \xE9tablissement",placeholder:"Rechercher par nom, adresse","image-alt":"Image de l'\xE9tablissement","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'\xE9tablissement"},service:{desc:"Rechercher puis s\xE9lectionner un service parmi ceux disponibles dans votre \xE9tablissement.",placeholder:"Rechercher par nom",duration:"{duration} minutes","image-alt":"Image du service","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le service"},staff:{desc:"Rechercher puis s\xE9lectionner un collaborateur parmi ceux affect\xE9s \xE0 votre \xE9tablissement.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du collaborateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le collaborateur"},contact:{desc:"Rechercher puis s\xE9lectionner un @:crm.contact-trad parmi la liste des @:crm.contacts-trad de votre \xE9tablissement.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du @:crm.contact-trad","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le @:crm.contact-trad"},user:{desc:"Rechercher puis s\xE9lectionner un utilisateur parmi ceux affect\xE9s \xE0 votre \xE9tablissement.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'utilisateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'utilisateur"},noResults:{title:"Aucun r\xE9sultat trouv\xE9",desc:"Nous n'avons trouv\xE9 aucun r\xE9sultat correspondant \xE0 votre recherche."}},Jh={action:{cancel:"@:common.action.cancel",back:"@:common.action.back",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-company":"Nouvel \xE9tablissement","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e"},calendar:{title:"Param\xE9trage",subTitle:"Param\xE9trez et personnalisez l\u2019interface de votre calendrier.",back:"@:common.action.back",save:"@:common.action.save",displaySettings:{title:"Options d\u2019affichage",subTitle:"Les options d\u2019affichage vous permettent de personnaliser votre calendrier en fonction de vos besoins et de votre activit\xE9.",days:{label:"Jours de la semaine",helper:"Vous pouvez s\xE9lectionner les jours de la semaine \xE0 afficher dans votre calendrier."},limit:{min:"Borne de d\xE9but",max:"Borne de fin",helper:"Le calendrier affichera uniquement les rendez-vous entre ces deux bornes."},color:{label:"Couleur du cr\xE9neau",helper:"Ce param\xE8tre sera appliqu\xE9 uniquement lorsque le calendrier d\u2019un seul collaborateur sera affich\xE9.",values:{staff:"Couleur du collaborateur",service:"Couleur du service","service-group":"Couleur du groupe de service"}},name:{label:"Titre du cr\xE9neau",helper:"Ce param\xE8tre vous permet de modifier le titre du cr\xE9neau affich\xE9 dans le calendrier. Il sera appliqu\xE9 uniquement sur les rendez-vous client simple.",values:{service:"Nom du service",contact:"Pr\xE9nom et nom du contact"}}},action:{save:{success:"Le param\xE8trage a bien \xE9t\xE9 enregistr\xE9",error:"Echec lors de l'enregistrement du param\xE8trage"}}},common:{day:{monday:"Lundi",tuesday:"Mardi",wednesday:"Mercredi",thursday:"Jeudi",friday:"Vendredi",saturday:"Samedi",sunday:"Dimanche",closed:"Ferm\xE9"},book:"Prendre rendez-vous",preview:"Pr\xE9visualisation",duration:"{minutes} minutes",error:{"max-user":"Le nombre maximum d'utilisateur est atteint. Merci de vous rapprocher de votre support pour augmenter le seuil","save-error":"Une erreur a eu lieu lors de la sauvegarde"},number:{2:"deux",3:"trois",4:"quatre",5:"cinq",6:"six",7:"sept",8:"huit",9:"neuf",10:"dix"}},companies:{title:"Mon organisation ({number})",table:{name:"@:common.field.name.label",address:"@:common.field.address.label",email:"@:common.field.email.label"},search:{empty:"Aucun \xE9tablissement",placeholder:"Rechercher par nom, code postal, email"},delete:{title:"Suppression d'\xE9tablissements",confirm:"@:common.action.delete",descriptionN:"{number} \xE9tablissements vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"}},"companies-cards":{create:"Ajouter un \xE9tablissement",duplicate:"Dupliquer un \xE9tablissement",delete:"Supprimer les \xE9tablissements",title:"G\xE9rer mon organisation",subTitle:"Une organisation peut comprendre plusieurs \xE9tablissements, \xE9quipes et collaborateurs. Le param\xE9trage de votre organisation vous permet d\u2019uniformiser votre r\xE9seau.",tab:{companies:{title:"Mes \xE9tablissements"},services:{title:"Mes services"},staffs:{title:"Mes collaborateurs"},plannings:{title:"Mes plannings"}}},"company-details":{tabs:{general:"Informations g\xE9n\xE9rales",hours:"Horaires d'ouverture",advanced:"Avanc\xE9s"},new:{title:"Ajouter un \xE9tablissement",subTitle:"Un \xE9tablissement est un lieu de travail pour vos collaborateurs ainsi qu\u2019un point d\u2019accueil pour vos clients."},title:"Informations g\xE9n\xE9rales","save-success":"Les informations de l'\xE9tablissement ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9tablissement",name:{label:"@:common.field.name.label",placeholder:"Saisissez un nom d'\xE9tablissement"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre \xE9tablissement","default-name":"Image de l'\xE9tablissement",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre \xE9tablissement",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre \xE9tablissement sur le mini-site.",button:"@:common.field.illustration.button"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},address:{title:"Adresse de votre \xE9tablissement",subtitle:"L\u2019adresse de votre \xE9tablissement doit \xEAtre l\u2019adresse \xE0 laquelle vous serez en capacit\xE9 de recevoir vos @:crm.contacts-trad suite \xE0 une prise de rendez-vous.",label:"@:common.field.address.label",placeholder:"1 place g\xE9n\xE9ral De Gaulle"},address2:{label:"Compl\xE9ment d\u2019adresse"},zipcode:{label:"Code postal",placeholder:"75008"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat"},country:{label:"Pays"},contact:{title:"Coordonn\xE9es",subtitle:"Ces coordonn\xE9es permettront \xE0 vos @:crm.contacts-trad de vous contacter."},email:{label:"@:common.field.email.label",placeholder:"Saisissez l\u2019email de votre \xE9tablissement"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez le num\xE9ro t\xE9l\xE9phone de votre \xE9tablissement"},web:{title:"Site internet et r\xE9seaux sociaux",subtitle:"Ces informations permettent de mettre en avant votre site internet et vos r\xE9seaux sociaux dans les diff\xE9rents supports \xE0 destination de vos @:crm.contacts-trad"},website:{label:"Site internet",placeholder:"Saisissez l\u2019url d\u2019un site internet de l'\xE9tablissement"},facebook:{label:"Facebook"},instagram:{label:"Instagram"},twitter:{label:"Twitter"},linkedin:{label:"LinkedIn"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},optional:"Optionnel","external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},timeZone:{title:"Fuseau horaire",label:"Fuseau horaire principal",placeholder:"S\xE9lectionnez un fuseau horaire",helper:"Le fuseau horaire permet de d\xE9finir sur quel fuseau horaire se trouve votre \xE9tablissement. Chacun des collaborateurs cr\xE9\xE9s dans votre \xE9tablissement auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019\xE9tablissement",open:"Ouverture","all-weeks":"Toutes les semaines",edit:"Modifier les horaires","apply-to-staff":"Appliquer les horaires aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement remplacer les horaires des collaborateurs ?"},unavailable:{title:"Indisponibilit\xE9s","apply-to-staff":"Appliquer les indisponibilit\xE9s aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement ajouter les indisponibilit\xE9s des collaborateurs ?"}},"company-home":{previous:"Retour \xE0 la liste",update:"@:common.action.modify",tab:{home:{title:"Mon \xE9tablissement"},staffGroups:{title:"Les \xE9quipes"},staffs:{title:"Les collaborateurs"},serviceGroups:{title:"Les cat\xE9gories"},services:{title:"Les services"}},performance:{title:"Vos performances",description:"Performances sur les {n} derniers jours",appointment:{made:"Rendez-vous pris",cancel:"Rendez-vous annul\xE9s",finish:"Rendez-vous termin\xE9s"}},widget:{title:"Faites-vous conna\xEEtre",link:{title:"Partager le lien vers le widget",copy:"Le lien est copi\xE9"},QRCode:"Partager votre qrcode",integration:"Voir les autres int\xE9grations"},staff:{title:"Ajouter des collaborateurs",description:"Ajoutez des collaborateurs \xE0 votre \xE9tablissement et proposez de nouvelles disponibilit\xE9s \xE0 vos clients.",add:"Ajouter un collaborateur"},service:{title:"Ajouter des services",description:"Ajoutez des services \xE0 votre \xE9tablissement et proposez des options de r\xE9servations suppl\xE9mentaires \xE0 vos clients.",add:"Ajouter un service"}},"custom-hours":{period:{date:"Du {start} au {end}","all-week":"Toutes les semaines","custom-week":"Une semaine sur {occurrence}"},edit:"Modifier la p\xE9riode",add:"Ajouter une p\xE9riode sp\xE9cifique",save:"@:common.action.save",validate:"@:common.action.validate",name:{title:"Nom de la p\xE9riode",placeholder:"Saisissez le nom de la p\xE9riode"},terminal:{title:"Bornes de la p\xE9riode"},"week-occurrence":{"start-text":"R\xE9p\xE9ter tou(te)s les","end-text":"semaine(s)"},"day-tooltip":"Vous pouvez s\xE9lectionner les jours de la semaine faisant l\u2019objet d\u2019horaires sp\xE9cifiques. Un jour non s\xE9lectionn\xE9 prendra les horaires par d\xE9faut du collaborateur."},"integration-modal":{title:"Int\xE9grer votre widget",body:"Vous pouvez int\xE9grer le widget de l\u2019\xE9tablissement \xE0 votre site internet via notre int\xE9gration iframe ou simplement partager le lien dans une publication sur vos r\xE9seaux.",link:"Lien",iframe:"Int\xE9gration iframe"},menu:{burger:{"aria-label":"Afficher le menu"},mobile:"Param\xE8tres",companies:"Tous les \xE9tablissement","company-details":"Informations g\xE9n\xE9rales","company-new":"Nouvel \xE9tablissement",services:"@:common.field.services.label","services-groups":"@:common.field.service-groups.label","staffs-groups":"@:common.field.staff-groups.label",staffs:"@:common.field.staffs.label"},plannings:{create:"Ajouter un planning",search:{placeholder:"Rechercher par nom"},delete:{title:"Supprimer un planning",description:"\xCAtes-vous s\xFBr de vouloir supprimer ce planning ? Cela aura pour effet de rendre indisponible l\u2019ensemble des collaborateurs affect\xE9s \xE0 ce planning.",confirm:"Supprimer",success:"Le planning a bien \xE9t\xE9 supprim\xE9."},empty:"Aucun planning"},"planning-details":{new:"Nouveau planning",subTitle:"Un planning correspond \xE0 un mod\xE8le d'horaire de travail \xE0 appliquer \xE0 un ou plusieurs collaborateurs pour un \xE9tablissement donn\xE9.",section:{general:{title:"Informations g\xE9n\xE9rales",subTitle:"D\xE9finissez les informations de base de votre planning."},workingHours:{title:"Horaires de travail",subTitle:"Les horaires de travail d\xE9finis ci-dessous s'appliqueront pour l'ensemble des collaborateurs ayant ce planning d'affect\xE9."}},name:{label:"Nom",placeholder:"Saisissez un nom"},addWeek:"Ajouter une semaine",deleteWeek:"Supprimer la semaine",back:"Retour \xE0 la liste",error:{startAfterEnd:"L'heure de d\xE9but doit \xEAtre inf\xE9rieure \xE0 l'heure de fin",noHour:"Un horaire n'a pas \xE9t\xE9 renseign\xE9",overlap:"Les horaires de ce jour se chevauchent",general:"Les horaires ne sont pas conformes"},"save-success":"Les informations du planning ont bien \xE9t\xE9 enregistr\xE9es.",days:{closed:"Ferm\xE9"}},profile:{title:"G\xE9rer mon profil",personal_data:"Mes donn\xE9es personnelles",preferences:"Mes pr\xE9f\xE9rences",cancel:"@:common.action.cancel",save:"@:common.action.save",error:{100:"Le mot de passe ne correspond pas",101:"Votre compte est v\xE9rouill\xE9",102:"Le mot de passe ne r\xE9pond pas aux crit\xE8res de validation d\u2019un mot de passe"},password:{title:"Modifier mon mot de passe",change:"@:common.action.modify",current:"Mot de passe actuel",new:"Nouveau mot de passe",confirm:"Confirmer mot de passe",notmatch:"Les mots de passe ne correspondent pas!","change-success":"Votre mot de passe a bien \xE9t\xE9 modifi\xE9","change-error":"Votre mot de passe n'a p\xFB \xEAtre modifi\xE9",label:"Mot de passe",reset:"Modifier"},photo:{label:"Photo","default-name":"Image de profil"},firstname:"Pr\xE9nom",lastname:"Nom",contact:{title:"Coordonn\xE9es",description:"Il s'agit des coordonn\xE9es sur lesquelles vous pourrez \xEAtre contact\xE9"},email:"Email",security:{title:"S\xE9curit\xE9",description:"Vous pouvez modifier votre mot de passe"},"change-success":"Votre profil a bien \xE9t\xE9 modifi\xE9","change-error":"Votre profil n'a p\xFB \xEAtre modifi\xE9",default_account:"Organisation par d\xE9faut",language:{title:"Langue et r\xE9gion",description:"G\xE9rez la langue et le fuseau horaire utilis\xE9s pour personnaliser votre exp\xE9rience Agendize.",label:"Langue"},timezone:"Zone horaire"},"qr-code-modal":{title:"Partager votre widget",body:"Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\u2019expirera pas dans le temps sauf si vous supprimez l\u2019\xE9tablissement."},services:{title:"@:common.field.services.label",new:"Nouveau service",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce service ? | Souhaitez-vous r\xE9ellement supprimer ces {n} services ?",search:{placeholder:"@:common.search.by-name"},group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",groups:"@:common.field.service-groups.label",enabled:"@:common.field.actif.label"},no:"Aucun service",deleted:"Service supprim\xE9 | Services supprim\xE9s"},"services-cards":{add:"Ajouter un service",confirm:"@:common.action.confirm",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",tag:{multiple:"Multiple",address:"Pr\xE9sentiel",visio:"@:settings.service-details.locations.visio",phone:"@:settings.service-details.locations.phone",custom:"Personnalis\xE9"}},"servicesGroups-cards":{add:"Ajouter une cat\xE9gorie",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",empty:"Aucune cat\xE9gorie",services:"{nb} service|{nb} services",search:{placeholder:"@:common.search.by-name"},filter:{all:"Toutes les cat\xE9gories","lvl-1":"Cat\xE9gories de niveau 1","lvl-2":"Cat\xE9gories de niveau 2"}},"service-details":{title:"Service",subTitle:"Les services repr\xE9sentent les prestations apport\xE9es par vos collaborateurs \xE0 un ou plusieurs clients.",new:"Nouveau service",clone:"Duplication : {name}",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations du service ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement du service",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},actif:{label:"@:common.field.actif.label",placeholder:"Rendre actif ou inactif le service",helper:"D\xE9sactive le service pour qu'il ne soit plus disponible sur le widget de prise de rendez-vous"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du service",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le service sur le mini-site.",button:"@:common.field.illustration.button"},duration:{label:"Dur\xE9e",placeholder:"S\xE9lectionnez la dur\xE9e du service"},quantity:{label:"Capacit\xE9",placeholder:"Saisissez la capacit\xE9 du service",helper:"Nombre de r\xE9servations pouvant \xEAtre prises pour ce service sur un m\xEAme cr\xE9neau horaire."},color:{label:"Couleur du service",placeholder:"S\xE9lectionnez la couleur du service",helper:"La couleur du service peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur un service en particulier"},colors:{red:"Rouge",blue:"Bleu",purple:"Violet",green:"Vert",orange:"Orange"},location:{title:"Emplacements du service",subtitle:"Vous pouvez proposer diff\xE9rents types d\u2019emplacement \xE0 votre service",label:"Emplacement du service",placeholder:"S\xE9lectionnez l'emplacement du service",custom:{placeholder:"Saisissez un emplacement personnalis\xE9"}},locations:{company:"Adresse de l'\xE9tablissement",companyAddress:"@:settings.service-details.locations.company",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence",visioconference:"@:settings.service-details.locations.visio",videoconference:"@:settings.service-details.locations.visio",custom:"Emplacement personnalis\xE9"},price:{title:"Prix du service",subtitle:"Vous pouvez fixer le prix de votre service si celui-ci est un service payant.",label:"Prix {currency}",placeholder:"Saisissez un prix"},category:{title:"Cat\xE9gorie du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Cat\xE9gorie",placeholder:"S\xE9lectionnez une cat\xE9gorie"},visibility:{title:"Visibilit\xE9 du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Visibilit\xE9",placeholder:"S\xE9lectionnez une visibilit\xE9"},visibilities:{public:"Public",backoffice:"Priv\xE9",hidden:"Dissimul\xE9",disabled:"D\xE9sactiv\xE9"},staffs:{title:"Collaborateurs en charge du service",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},buffer:{title:"Temps avant et apr\xE8s le rendez-vous",subtitle:"Le temps avant et apr\xE8s le rendez-vous permet d\u2019inclure un d\xE9lai suppl\xE9mentaire de pr\xE9paration ou de rangement dans votre rendez-vous",before:{label:"Dur\xE9e",actif:"Activer un d\xE9lai avant rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps avant le rendez-vous"},after:{label:"Dur\xE9e",actif:"Activer un d\xE9lai apr\xE8s rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps apr\xE8s le rendez-vous"}},validation:{title:"Validation du rendez-vous",subtitle:"Vous pouvez d\xE9sactiver la validation automatique du rendez-vous au profit d\u2019une validation manuelle par le collaborateur ou par le manager",actif:"Valider manuellement le rendez-vous",label:"Mode de validation",placeholder:"S\xE9lectionnez le mode de validation du service"},validations:{location:"Param\xE9trage de l'\xE9tablissement",auto:"Aucune",manager:"Par le manager",staff:"Par le collaborateur"},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availabilities:"Disponibilit\xE9s",options:"Options",advanced:"@:settings.tabs.advanced"}},serviceGroups:{title:"@:common.field.service-groups.label",new:"Nouvelle cat\xE9gorie",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",search:{placeholder:"@:common.search.by-name"},parent:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",parent:"@:common.field.parent.label"},no:"Aucune cat\xE9gorie",deleted:"Cat\xE9gorie supprim\xE9e | Cat\xE9gories supprim\xE9es"},"serviceGroup-details":{title:"Ajouter une cat\xE9gorie",subTitle:"Les cat\xE9gories permettent de cr\xE9er des ensembles de services et organiser votre liste de services.",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations de la cat\xE9gorie ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de la cat\xE9gorie",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration de la cat\xE9gorie",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer la cat\xE9gorie sur le mini-site.",button:"@:common.field.illustration.button"},parent:{label:"Cat\xE9gorie parente",helper:"La cat\xE9gorie parente permet de faire des liens hi\xE9rarchiques entre vos cat\xE9gories. ",none:"Aucune"},color:{label:"Couleur de la cat\xE9gorie",placeholder:"S\xE9lectionnez la couleur de la cat\xE9gorie",helper:"La couleur de la cat\xE9gorie peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur des services d\u2019une cat\xE9gorie particuli\xE8re"},service:{title:"Service de la cat\xE9gorie",description:"Les services de la cat\xE9gorie sont les services disponibles lorsque vos @:crm.contacts-trad se rendent dans la page d\xE9di\xE9e \xE0 cette cat\xE9gorie dans le mini-site."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",advanced:"@:settings.tabs.advanced"}},staffs:{title:"@:common.field.staffs.label",new:"Nouveau collaborateur",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",updated:"Le collaborateur a bien \xE9t\xE9 modifi\xE9",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce collaborateur ? | Souhaitez-vous r\xE9ellement supprimer ces {n} collaborateurs ?",search:{placeholder:"@:common.search.by-firstName-lastName"},group:{none:"@:common.content.none"},columns:{firstname:"@:common.field.firstName.label",lastname:"@:common.field.lastName.label",enabled:"@:common.field.actif.label"},no:"Aucun collaborateur",deleted:"Collaborateur supprim\xE9 | Collaborateurs supprim\xE9s"},"staff-details":{new:"Nouveau collaborateur","page-title":"@:settings.staff-details.new",subTitle:"Les collaborateurs sont les personnes en charge des services.",action:{back:"@:common.action.back-to-list"},clone:"Duplication : {lastName} {firstName}","save-success":"Les informations du collaborateur ont bien \xE9t\xE9 enregistr\xE9es",title:{label:"Titre",placeholder:"@:common.content.none"},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},gender:{label:"Genre",placeholder:"@:common.content.none"},genders:{male:"Homme",female:"Femme",other:"Autre"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},photo:{label:"@:common.field.photo.label",placeholder:"@:common.field.photo.placeholder",helper:"La photo sera utilis\xE9e afin d\u2019identifier le collaborateur sur le mini-site.","default-name":"Image du collaborateur",button:"@:common.field.illustration.button"},contact:{title:"Coordonn\xE9es du collaborateur",subtitle:"Les coordonn\xE9es du collaborateur sont utilis\xE9es pour les notifications email et SMS."},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{fixe:"T\xE9l\xE9phone fixe",mobile:"T\xE9l\xE9phone mobile"},group:{title:"@:common.field.staff-group.label",subtitle:"Les \xE9quipes permettent de g\xE9rer plusieurs collaborateurs comme un ensemble. Des disponibilit\xE9s peuvent \xEAtre affect\xE9es \xE0 une \xE9quipe et impacter la disponibilit\xE9 de l\u2019ensemble des collaborateurs de cette \xE9quipe.",label:"@:common.field.staff-group.label",placeholder:"@:common.content.none-e"},availableForWidget:{title:"Disponibilit\xE9 \xE0 la prise de rendez-vous",subtitle:"Lorsqu\u2019un collaborateur n\u2019est pas disponible \xE0 la prise de rendez-vous en ligne, aucun rendez-vous ne peut \xEAtre pris avec lui.",label:"Disponible \xE0 la prise de rendez-vous"},hours:{title:"Disponibilit\xE9s du collaborateur"},unavailable:{title:"Indisponibilit\xE9s"},services:{title:"Services dispens\xE9s",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},rights:{title:"Droits d'acc\xE9s"},role:{label:"R\xF4le",placeholder:"@:common.content.none",helper:"Le r\xF4le permet de d\xE9finir les droits d\u2019acc\xE8s et fonctionnalit\xE9s accessibles pour le collaborateur"},roles:{none:"@:common.content.none",reader:"@:common.roles.reader",scheduler:"@:common.roles.scheduler",administrator:"@:common.roles.administrator"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},"external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",rights:"Droits d'acc\xE8s",availabilities:"Disponibilit\xE9",advanced:"@:settings.tabs.advanced"}},staffGroups:{title:"@:common.field.staff-groups.label",new:"Nouvelle \xE9quipe",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette \xE9quipe ? | Souhaitez-vous r\xE9ellement supprimer ces {n} \xE9quipes ?",search:{placeholder:"@:common.search.by-name"},membersCount:"1 collaborateur | {n} collaborateurs",noMember:"Aucun collaborateur",group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",staffsCount:"@:common.field.number.label"},no:"Aucune \xE9quipe",deleted:"\xC9quipe supprim\xE9e | \xC9quipes supprim\xE9es"},"staffGroup-details":{title:"Nouvelle \xE9quipe",subTitle:"Les \xE9quipes permettent de cr\xE9er des ensembles de collaborateur et organiser votre liste d'\xE9quipe.","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",action:{back:"@:common.action.back-to-list"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de l'\xE9quipe"},color:{label:"Couleur de l'\xE9quipe",placeholder:"S\xE9lectionnez la couleur de l'\xE9quipe",helper:"La couleur de l'\xE9quipe peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur les collaborateurs d\u2019une \xE9quipe en particulier"},staff:{title:"Collaborateur de l'\xE9quipe",description:"Les collaborateurs de l\u2019\xE9quipe seront li\xE9s par des propri\xE9t\xE9s communes."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},availability:{title:"Disponibilit\xE9s de l\u2019\xE9quipe"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availability:"@:settings.tabs.availabilities",advanced:"@:settings.tabs.advanced"}},tabs:{general:"G\xE9n\xE9ral",hours:"Horaires",availability:"Disponibilit\xE9s",advanced:"Avanc\xE9s",options:"Options",availabilities:"Disponibilit\xE9s",rights:"Droits d'acc\xE8s"},"working-hours":{title:"Horaires d'ouverture",save:"@:common.action.validate"},"working-plannings":{title:"Planification de l'activit\xE9 des collaborateurs",subtitle:"Superviser et ajuster l'activit\xE9 de vos collaborateurs en fonction des \xE9tablissements et le taux d'occupation de chacun",user:"collaborateur(s)",company:{name:"Etablissement",modal:{title:"S\xE9lectionnez un \xE9tablissement",subtitle:"S\xE9lectionnez l'\xE9tablissement pour lequel vous souhaitez planifier l'activit\xE9 des collaborateurs"}},planning:{slot:{unavailable:"Indisponible"}}},"working-plannings-add":{title:"Ajouter une plage d'ouverture",subtitle:"Ajouter des plages d\u2019ouverture \xE0 vos collaborateurs sur un \xE9tablissement.",period:{start:"@:common.from",end:"@:common.to"},company:"@:common.field.company.label",staff:"Affecter \xE0",errors:{conflict:{title:"Chevauchement des plages d'ouverture",description:"La p\xE9riode sp\xE9cifi\xE9e comporte d\xE9j\xE0 des plages d'ouverture. Souhaitez-vous remplacer les plages d'ouverture existantes ou les conserver et y ajouter les nouvelles ?",merge:"Conserver",replace:"Remplacer"},"save-error":"\xC9chec lors de l'enregistrement du planning"},"save-success":"La plage d\u2019ouverture a bien \xE9t\xE9 ajout\xE9e"},administration:{title:"Administration",subtitle:"Visualisez et mettez \xE0 jour les d\xE9tails de votre organisation, g\xE9rez les droits d'acc\xE8s \xE0 votre organisation et personnalisez l'espace de travail",tabs:{audit:"Journal d'audit"},audit:{search:{placeholder:"Rechercher par nom, pr\xE9nom ou email"},columns:{date:"Date",user:"Utilisateur",action_type:"Cat\xE9gorie",action:"Action"},no_data:"Aucun log d'audit",action_type:{0:"Login"},action:{0:"Connexion de l'utilisateur",1:"Echec de la tentative de connexion",2:"Compte v\xE9rouill\xE9",3:"Echec de la modification du mot de passe",4:"Mot de passe modifi\xE9"}}}},Xh={fields:{optional:"Optionnel",mandatory:"Ce champ est obligatoire",file:{defaultPlaceHolder:"Glisser-d\xE9poser votre fichier pour l'ajouter",defaultButtonLabel:"Ajouter un fichier",info:"(jusqu'\xE0 {size}mb, formats accept\xE9s : {format})"}},error:{empty:"Ce champ ne peut \xEAtre vide",regex:"Le format du champ est invalide",phone:"Le num\xE9ro de t\xE9l\xE9phone n'est pas un num\xE9ro valide",format:"Le format du champ est invalide",businessHours:{invalid:"Horaire non valide"},file:{size:"La taille de votre fichier d\xE9passe la limite",format:"Format de fichier non accept\xE9"},api:{message:"Une erreur api est survenue (code : {code}, message: {message})"}},buttons:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel"},businessHours:{"day-enabled-aria-label":"Activer les horaires pour le {day}","day-disabled-aria-label":"D\xE9sactiver les horaires pour le {day}","add-aria-label":"Ajouter des horaires pour le {day}","remove-aria-label":"Supprimer la ligne d'horaire pour le {day}"}},Qh={scheduling:{service:{action:{book:"Prendre rendez-vous","mobile-book":"Prendre RDV"},details:{title:"Les d\xE9tails du rendez-vous","cancel-condition":{title:"Conditions d'annulation",label:"Annulation possible jusqu'\xE0 {delay} heure(s) avant le rendez-vous"}},options:{title:"Vos options de rendez-vous",staff:{title:"Choisissez un collaborateur :",random:"Sans pr\xE9f\xE9rence"},locations:{title:"Choisissez un format :",videoconference:{label:"En visioconf\xE9rence",tooltip:"Le lien de visioconf\xE9rence vous sera transmis dans l\u2019email de confirmation du rendez-vous."},companyAddress:{label:"Dans nos locaux",tooltip:""},phone:{label:"Par t\xE9l\xE9phone",tooltip:"Notre collaborateur se chargera de vous appeler au num\xE9ro de t\xE9l\xE9phone que vous nous communiquerez dans les \xE9tapes suivantes."},custom:{title:"Emplacement :"}}},path:"Itin\xE9raire"}}},ef={agenda:jh,agendize:Vh,calendar:qh,common:Hh,crm:Wh,"event-booking":{new:"Nouveau rendez-vous",reschedule:"Modifier le rendez-vous",subject:"Sujet",date:"Horaires",duration:"Dur\xE9e","duration-error":{"over-1-day":"La dur\xE9e ne peut pas \xEAtre de 1 jour ou plus","negative-null":"La date de fin ne peut pas \xEAtre avant la date de d\xE9but","over-days":"Les dates de d\xE9but et fin doivent \xEAtre le m\xEAme jour"},timeZone:"Fuseau horaire",allDay:"Journ\xE9e enti\xE8re",recurrent:{once:"Une fois"},company:"\xC9tablissement",searchCompany:"Rechercher un \xE9tablissement",service:"@:common.field.service.label",searchService:"Rechercher un service",staff:"@:common.field.staff.label",searchStaff:"Rechercher un collaborateur",contact:{title:"@:crm.contact-caps-trad",save:"@:common.action.save",search:"Rechercher un @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createTitle:"Ajouter un @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contacts-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone",placeholder:"@:common.field.phone.placeholder"}},note:{label:"Note du rendez-vous",placeholder:"Saisissez une note de rendez-vous"},save:"@:common.action.save",back:"@:common.action.back,",close:"@:common.action.close",event:{"panel-title":"Cr\xE9er un \xE9v\xE9nement",title:{label:"\xC9v\xE9nement",placeholder:"Saisissez le nom de votre \xE9v\xE9nement",helper:"Il s\u2019agit du nom de l\u2019\xE9v\xE9nement que vous souhaitez cr\xE9er."},capacity:{label:"Capacit\xE9",placeholder:"Saisissez une capacit\xE9"},description:{label:"Description",placeholder:"Saisissez la description de l\u2019\xE9v\xE9nement"}}},"event-booking-widget":{title:{panel:"Nouveau rendez-vous",company:"Pour quel \xE9tablissement souhaitez-vous prendre rendez-vous ?",service:"Quel est le besoin du @:crm.contact-trad ?",staff:"Avec quel collaborateur ?",date:"Quel cr\xE9neau vous convient le mieux ?","contact-qualif":"S\u2019agit-il d\u2019un nouveau client ?","contact-new":"Quelles sont les informations personnelles du client ? ","contact-search":"Quel client souhaite prendre rendez-vous ?","form-field":"Une derni\xE8re petite chose ...",recap:"Souhaitez-vous confirmer le rendez-vous ?",confirmation:"",error:""},date:{"search-more":"Voir plus de disponibilit\xE9s","search-more-aria-label":"Voir plus de disponibilit\xE9s",empty:"Aucune disponibilit\xE9 n'a \xE9t\xE9 trouv\xE9e entre les dates {start} et {end} "},contact:{save:"Ajouter le @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contacts-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"@:common.field.phone.label",placeholder:"@:common.field.phone.placeholder"}},"form-field":{validate:"Suivant"},recap:{date:"{start} \xE0 {end}",validate:"Confirmer le rendez-vous"},confirmation:{title:"Le rendez-vous est confirm\xE9 !",description:"Le rendez-vous a bien \xE9t\xE9 cr\xE9\xE9. Vous pouvez le retrouver d\xE8s \xE0 pr\xE9sent dans votre calendrier."},error:{messages:{back:{staff:"Retour \xE0 la selection d'un collaborateur",date:"Retour \xE0 la selection de cr\xE9neau",contact:"Retour \xE0 la selection de @:crm.contact-trad"}},unknown:{title:"Une erreur est survenue",description:"Veuillez contacter le support pour plus de precisions."},"staff-not-found":{title:"Collaborateur inconnu",description:"Le collaborateur s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.staff"},"date-not-found":{title:"Cr\xE9neau non disponible",description:"Le cr\xE9neau s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-daily":{title:"Limite atteinte",description:"La limite quotidienne de rendez-vous pris pour ce client est d\xE9pass\xE9e.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-weekly":{title:"Limite atteinte",description:"La limite hebdomadaire de rendez-vous pris pour ce client est d\xE9pass\xE9e.",footerButton:"@:event-booking-widget.error.messages.back.date"},"contact-blocked":{title:"@:crm.contact-caps-trad bloqu\xE9",description:"La prise de rendez-vous est bloqu\xE9e pour ce @:crm.contact-trad.",footerButton:"@:event-booking-widget.error.messages.back.contact"}}},form:Gh,queue:$h,reporting:Yh,report:Zh,search:Kh,settings:Jh,system:Xh,widget:Qh},tf={en:Uh,fr:ef},nf=t=>Sh({legacy:!1,locale:t,fallbackLocale:"fr",globalInjection:!0,messages:tf});var Cg="",rf=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const af={class:"az-flex az-flex-col az-gap-2"},of={class:"az-qrcode"},sf={class:"az-qrcode-left"},lf={class:"az-qrcode-right"},cf={class:"az-qrcode-bottom"};var uf=rf(ue.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,locale:null,download:{type:Boolean,default:!0}},setup(t){var s,c,l,h;const e=t,n=nf(e.locale),r=ue.ref({width:e.width,height:e.height,type:"canvas",data:e.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(s=e.bgColor)!=null?s:"white"},dotsOptions:{color:(c=e.dotsColor)!=null?c:"black",type:"square"},cornersSquareOptions:{color:(l=e.dotsColor)!=null?l:"black",type:"square"},cornersDotOptions:{color:(h=e.dotsColor)!=null?h:"black",type:"square"}}),a=new ed(r.value),i=ue.ref();function o(){a.download()}return ue.onMounted(()=>{a.append(i.value)}),ue.watch(()=>e.value,x=>{r.value.data=x,a.update(r.value)}),(x,y)=>(ue.openBlock(),ue.createElementBlock("div",af,[ue.createElementVNode("div",of,[ue.createElementVNode("div",null,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",{class:"az-qrcode-center",style:ue.normalizeStyle(`grid-template-columns: auto ${e.width}px auto;`)},[ue.createElementVNode("div",sf,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",null,[ue.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),ue.createElementVNode("div",lf,ue.toDisplayString(t.outlineValue),1)],4),ue.createElementVNode("div",cf,ue.toDisplayString(t.outlineValue),1)]),t.download?(ue.openBlock(),ue.createElementBlock("button",{key:0,class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:o},ue.toDisplayString(ue.unref(n).global.t("common.action.download")),1)):ue.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-1f03c38e"]]),df=Object.defineProperty,hf=(t,e,n)=>e in t?df(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,f=(t,e,n)=>(hf(t,typeof e!="symbol"?e+"":e,n),n);class bn extends Error{}class ff extends bn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class mf extends bn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class pf extends bn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class nr extends bn{}class Jo extends bn{constructor(e){super(`Invalid unit ${e}`)}}class Nt extends bn{}class an extends bn{constructor(){super("Zone is an abstract class")}}const fe="numeric",Mt="short",It="long",Fa={year:fe,month:fe,day:fe},Xo={year:fe,month:Mt,day:fe},gf={year:fe,month:Mt,day:fe,weekday:Mt},Qo={year:fe,month:It,day:fe},es={year:fe,month:It,day:fe,weekday:It},ts={hour:fe,minute:fe},ns={hour:fe,minute:fe,second:fe},rs={hour:fe,minute:fe,second:fe,timeZoneName:Mt},as={hour:fe,minute:fe,second:fe,timeZoneName:It},is={hour:fe,minute:fe,hourCycle:"h23"},os={hour:fe,minute:fe,second:fe,hourCycle:"h23"},ss={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:Mt},ls={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:It},cs={year:fe,month:fe,day:fe,hour:fe,minute:fe},us={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},ds={year:fe,month:Mt,day:fe,hour:fe,minute:fe},hs={year:fe,month:Mt,day:fe,hour:fe,minute:fe,second:fe},vf={year:fe,month:Mt,day:fe,weekday:Mt,hour:fe,minute:fe},fs={year:fe,month:It,day:fe,hour:fe,minute:fe,timeZoneName:Mt},ms={year:fe,month:It,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:Mt},ps={year:fe,month:It,day:fe,weekday:It,hour:fe,minute:fe,timeZoneName:It},gs={year:fe,month:It,day:fe,weekday:It,hour:fe,minute:fe,second:fe,timeZoneName:It};function Fe(t){return typeof t>"u"}function En(t){return typeof t=="number"}function Dr(t){return typeof t=="number"&&t%1===0}function yf(t){return typeof t=="string"}function bf(t){return Object.prototype.toString.call(t)==="[object Date]"}function vs(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Ef(t){return Array.isArray(t)?t:[t]}function ys(t,e,n){if(t.length!==0)return t.reduce((r,a)=>{const i=[e(a),a];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function xf(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Nn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,n){return Dr(t)&&t>=e&&t<=n}function wf(t,e){return t-e*Math.floor(t/e)}function nt(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function on(t){if(!(Fe(t)||t===null||t===""))return parseInt(t,10)}function xn(t){if(!(Fe(t)||t===null||t===""))return parseFloat(t)}function za(t){if(!(Fe(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ba(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function rr(t){return t%4===0&&(t%100!==0||t%400===0)}function ar(t){return rr(t)?366:365}function Tr(t,e){const n=wf(e-1,12)+1,r=t+(e-n)/12;return n===2?rr(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ua(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Nr(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function ja(t){return t>99?t:t>60?1900+t:2e3+t}function bs(t,e,n,r=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const o={timeZoneName:e,...i},s=new Intl.DateTimeFormat(n,o).formatToParts(a).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function Lr(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-r:r;return n*60+a}function Es(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Nt(`Invalid unit value ${t}`);return e}function Or(t,e){const n={};for(const r in t)if(Nn(t,r)){const a=t[r];if(a==null)continue;n[e(r)]=Es(a)}return n}function ir(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${nt(n,2)}:${nt(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${nt(n,2)}${nt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Rr(t){return xf(t,["hour","minute","second","millisecond"])}const xs=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,_f=["January","February","March","April","May","June","July","August","September","October","November","December"],ws=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Sf=["J","F","M","A","M","J","J","A","S","O","N","D"];function _s(t){switch(t){case"narrow":return[...Sf];case"short":return[...ws];case"long":return[..._f];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ss=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Is=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],If=["M","T","W","T","F","S","S"];function Cs(t){switch(t){case"narrow":return[...If];case"short":return[...Is];case"long":return[...Ss];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ks=["AM","PM"],Cf=["Before Christ","Anno Domini"],kf=["BC","AD"],Af=["B","A"];function As(t){switch(t){case"narrow":return[...Af];case"short":return[...kf];case"long":return[...Cf];default:return null}}function Df(t){return ks[t.hour<12?0:1]}function Tf(t,e){return Cs(e)[t.weekday-1]}function Nf(t,e){return _s(e)[t.month-1]}function Lf(t,e){return As(e)[t.year<0?0:1]}function Of(t,e,n="always",r=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const x=t==="days";switch(e){case 1:return x?"tomorrow":`next ${a[t][0]}`;case-1:return x?"yesterday":`last ${a[t][0]}`;case 0:return x?"today":`this ${a[t][0]}`}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),c=s===1,l=a[t],h=r?c?l[1]:l[2]||l[1]:c?a[t][0]:t;return o?`${s} ${h} ago`:`in ${s} ${h}`}function Ds(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Rf={D:Fa,DD:Xo,DDD:Qo,DDDD:es,t:ts,tt:ns,ttt:rs,tttt:as,T:is,TT:os,TTT:ss,TTTT:ls,f:cs,ff:ds,fff:fs,ffff:ps,F:us,FF:hs,FFF:ms,FFFF:gs};class wt{static create(e,n={}){return new wt(e,n)}static parseFormat(e){let n=null,r="",a=!1;const i=[];for(let o=0;o<e.length;o++){const s=e.charAt(o);s==="'"?(r.length>0&&i.push({literal:a,val:r}),n=null,r="",a=!a):a||s===n?r+=s:(r.length>0&&i.push({literal:!1,val:r}),r=s,n=s)}return r.length>0&&i.push({literal:a,val:r}),i}static macroTokenToFormatOpts(e){return Rf[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return nt(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(w,S)=>this.loc.extract(e,w,S),o=w=>e.isOffsetFixed&&e.offset===0&&w.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,w.format):"",s=()=>r?Df(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(w,S)=>r?Nf(e,w):i(S?{month:w}:{month:w,day:"numeric"},"month"),l=(w,S)=>r?Tf(e,w):i(S?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),h=w=>{const S=wt.macroTokenToFormatOpts(w);return S?this.formatWithSystemDefault(e,S):w},x=w=>r?Lf(e,w):i({era:w},"era"),y=w=>{switch(w){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(w)}};return Ds(wt.parseFormat(n),y)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=c=>l=>{const h=r(l);return h?this.num(c.get(h),l.length):l},i=wt.parseFormat(n),o=i.reduce((c,{literal:l,val:h})=>l?c:c.concat(h),[]),s=e.shiftTo(...o.map(r).filter(c=>c));return Ds(i,a(s))}}class Pt{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class or{get type(){throw new an}get name(){throw new an}get ianaName(){return this.name}get isUniversal(){throw new an}offsetName(e,n){throw new an}formatOffset(e,n){throw new an}offset(e){throw new an}equals(e){throw new an}get isValid(){throw new an}}let Va=null;class qa extends or{static get instance(){return Va===null&&(Va=new qa),Va}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return bs(e,n,r)}formatOffset(e,n){return ir(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Mr={};function Mf(t){return Mr[t]||(Mr[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Mr[t]}const Pf={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ff(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,i,o,s,c,l,h]=r;return[o,a,i,s,c,l,h]}function zf(t,e){const n=t.formatToParts(e),r=[];for(let a=0;a<n.length;a++){const{type:i,value:o}=n[a],s=Pf[i];i==="era"?r[s]=o:Fe(s)||(r[s]=parseInt(o,10))}return r}let Pr={};class Zt extends or{static create(e){return Pr[e]||(Pr[e]=new Zt(e)),Pr[e]}static resetCache(){Pr={},Mr={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Zt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return bs(e,n,r,this.name)}formatOffset(e,n){return ir(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Mf(this.name);let[a,i,o,s,c,l,h]=r.formatToParts?zf(r,n):Ff(r,n);s==="BC"&&(a=-Math.abs(a)+1);const x=Ua({year:a,month:i,day:o,hour:c===24?0:c,minute:l,second:h,millisecond:0});let y=+n;const w=y%1e3;return y-=w>=0?w:1e3+w,(x-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ha=null;class yt extends or{static get utcInstance(){return Ha===null&&(Ha=new yt(0)),Ha}static instance(e){return e===0?yt.utcInstance:new yt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new yt(Lr(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ir(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ir(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return ir(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Bf extends or{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function sn(t,e){if(Fe(t)||t===null)return e;if(t instanceof or)return t;if(yf(t)){const n=t.toLowerCase();return n==="local"||n==="system"?e:n==="utc"||n==="gmt"?yt.utcInstance:yt.parseSpecifier(n)||Zt.create(t)}else return En(t)?yt.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Bf(t)}let Ts=()=>Date.now(),Ns="system",Ls=null,Os=null,Rs=null,Ms;class ot{static get now(){return Ts}static set now(e){Ts=e}static set defaultZone(e){Ns=e}static get defaultZone(){return sn(Ns,qa.instance)}static get defaultLocale(){return Ls}static set defaultLocale(e){Ls=e}static get defaultNumberingSystem(){return Os}static set defaultNumberingSystem(e){Os=e}static get defaultOutputCalendar(){return Rs}static set defaultOutputCalendar(e){Rs=e}static get throwOnInvalid(){return Ms}static set throwOnInvalid(e){Ms=e}static resetCaches(){Ke.resetCache(),Zt.resetCache()}}let Ps={};function Uf(t,e={}){const n=JSON.stringify([t,e]);let r=Ps[n];return r||(r=new Intl.ListFormat(t,e),Ps[n]=r),r}let Wa={};function Ga(t,e={}){const n=JSON.stringify([t,e]);let r=Wa[n];return r||(r=new Intl.DateTimeFormat(t,e),Wa[n]=r),r}let $a={};function jf(t,e={}){const n=JSON.stringify([t,e]);let r=$a[n];return r||(r=new Intl.NumberFormat(t,e),$a[n]=r),r}let Ya={};function Vf(t,e={}){const{base:n,...r}=e,a=JSON.stringify([t,r]);let i=Ya[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Ya[a]=i),i}let Fr=null;function qf(){return Fr||(Fr=new Intl.DateTimeFormat().resolvedOptions().locale,Fr)}function Hf(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let n;const r=t.substring(0,e);try{n=Ga(t).resolvedOptions()}catch{n=Ga(r).resolvedOptions()}const{numberingSystem:a,calendar:i}=n;return[r,a,i]}}function Wf(t,e,n){return(n||e)&&(t+="-u",n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Gf(t){const e=[];for(let n=1;n<=12;n++){const r=Ae.utc(2016,n,1);e.push(t(r))}return e}function $f(t){const e=[];for(let n=1;n<=7;n++){const r=Ae.utc(2016,11,13+n);e.push(t(r))}return e}function zr(t,e,n,r,a){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):a(e)}function Yf(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Zf{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:a,floor:i,...o}=r;if(!n||Object.keys(o).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=jf(e,s)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ba(e,3);return nt(n,this.padTo)}}}class Kf{constructor(e,n,r){this.opts=r;let a;if(e.zone.isUniversal){const o=-1*(e.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Zt.create(s).valid?(a=s,this.dt=e):(a="UTC",r.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Ae.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,a=e.zone.name);const i={...this.opts};a&&(i.timeZone=a),this.dtf=Ga(n,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Jf{constructor(e,n,r){this.opts={style:"long",...r},!n&&vs()&&(this.rtf=Vf(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Of(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class Ke{static fromOpts(e){return Ke.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,a=!1){const i=e||ot.defaultLocale,o=i||(a?"en-US":qf()),s=n||ot.defaultNumberingSystem,c=r||ot.defaultOutputCalendar;return new Ke(o,s,c,i)}static resetCache(){Fr=null,Wa={},$a={},Ya={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return Ke.create(e,n,r)}constructor(e,n,r,a){const[i,o,s]=Hf(e);this.locale=i,this.numberingSystem=n||o||null,this.outputCalendar=r||s||null,this.intl=Wf(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Yf(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Ke.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return zr(this,e,r,_s,()=>{const a=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Gf(o=>this.extract(o,a,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return zr(this,e,r,Cs,()=>{const a=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=$f(o=>this.extract(o,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return zr(this,void 0,e,()=>ks,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ae.utc(2016,11,13,9),Ae.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return zr(this,e,n,As,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ae.utc(-40,1,1),Ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,n,r){const a=this.dtFormatter(e,n),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(e={}){return new Zf(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Kf(e,this.intl,n)}relFormatter(e={}){return new Jf(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Uf(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Ln(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function On(...t){return e=>t.reduce(([n,r,a],i)=>{const[o,s,c]=i(e,a);return[{...n,...o},s||r,c]},[{},null,1]).slice(0,2)}function Rn(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const a=n.exec(t);if(a)return r(a)}return[null,null]}function Fs(...t){return(e,n)=>{const r={};let a;for(a=0;a<t.length;a++)r[t[a]]=on(e[n+a]);return[r,null,n+a]}}const zs=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Xf=`(?:${zs.source}?(?:\\[(${xs.source})\\])?)?`,Za=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Bs=RegExp(`${Za.source}${Xf}`),Ka=RegExp(`(?:T${Bs.source})?`),Qf=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,em=/(\d{4})-?W(\d\d)(?:-?(\d))?/,tm=/(\d{4})-?(\d{3})/,nm=Fs("weekYear","weekNumber","weekDay"),rm=Fs("year","ordinal"),am=/(\d{4})-(\d\d)-(\d\d)/,Us=RegExp(`${Za.source} ?(?:${zs.source}|(${xs.source}))?`),im=RegExp(`(?: ${Us.source})?`);function Mn(t,e,n){const r=t[e];return Fe(r)?n:on(r)}function om(t,e){return[{year:Mn(t,e),month:Mn(t,e+1,1),day:Mn(t,e+2,1)},null,e+3]}function Pn(t,e){return[{hours:Mn(t,e,0),minutes:Mn(t,e+1,0),seconds:Mn(t,e+2,0),milliseconds:za(t[e+3])},null,e+4]}function sr(t,e){const n=!t[e]&&!t[e+1],r=Lr(t[e+1],t[e+2]),a=n?null:yt.instance(r);return[{},a,e+3]}function lr(t,e){const n=t[e]?Zt.create(t[e]):null;return[{},n,e+1]}const sm=RegExp(`^T?${Za.source}$`),lm=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function cm(t){const[e,n,r,a,i,o,s,c,l]=t,h=e[0]==="-",x=c&&c[0]==="-",y=(w,S=!1)=>w!==void 0&&(S||w&&h)?-w:w;return[{years:y(xn(n)),months:y(xn(r)),weeks:y(xn(a)),days:y(xn(i)),hours:y(xn(o)),minutes:y(xn(s)),seconds:y(xn(c),c==="-0"),milliseconds:y(za(l),x)}]}const um={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ja(t,e,n,r,a,i,o){const s={year:e.length===2?ja(on(e)):on(e),month:ws.indexOf(n)+1,day:on(r),hour:on(a),minute:on(i)};return o&&(s.second=on(o)),t&&(s.weekday=t.length>3?Ss.indexOf(t)+1:Is.indexOf(t)+1),s}const dm=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function hm(t){const[,e,n,r,a,i,o,s,c,l,h,x]=t,y=Ja(e,a,r,n,i,o,s);let w;return c?w=um[c]:l?w=0:w=Lr(h,x),[y,new yt(w)]}function fm(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const mm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,pm=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,gm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function js(t){const[,e,n,r,a,i,o,s]=t;return[Ja(e,a,r,n,i,o,s),yt.utcInstance]}function vm(t){const[,e,n,r,a,i,o,s]=t;return[Ja(e,s,n,r,a,i,o),yt.utcInstance]}const ym=Ln(Qf,Ka),bm=Ln(em,Ka),Em=Ln(tm,Ka),xm=Ln(Bs),Vs=On(om,Pn,sr,lr),wm=On(nm,Pn,sr,lr),_m=On(rm,Pn,sr,lr),Sm=On(Pn,sr,lr);function Im(t){return Rn(t,[ym,Vs],[bm,wm],[Em,_m],[xm,Sm])}function Cm(t){return Rn(fm(t),[dm,hm])}function km(t){return Rn(t,[mm,js],[pm,js],[gm,vm])}function Am(t){return Rn(t,[lm,cm])}const Dm=On(Pn);function Tm(t){return Rn(t,[sm,Dm])}const Nm=Ln(am,im),Lm=Ln(Us),Om=On(Pn,sr,lr);function Rm(t){return Rn(t,[Nm,Vs],[Lm,Om])}const Mm="Invalid Duration",qs={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Pm={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...qs},Lt=146097/400,Fn=146097/4800,Fm={years:{quarters:4,months:12,weeks:Lt/7,days:Lt,hours:Lt*24,minutes:Lt*24*60,seconds:Lt*24*60*60,milliseconds:Lt*24*60*60*1e3},quarters:{months:3,weeks:Lt/28,days:Lt/4,hours:Lt*24/4,minutes:Lt*24*60/4,seconds:Lt*24*60*60/4,milliseconds:Lt*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...qs},wn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],zm=wn.slice(0).reverse();function _n(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ze(r)}function Bm(t){return t<0?Math.floor(t):Math.ceil(t)}function Hs(t,e,n,r,a){const i=t[a][n],o=e[n]/i,s=Math.sign(o)===Math.sign(r[a]),c=!s&&r[a]!==0&&Math.abs(o)<=1?Bm(o):Math.trunc(o);r[a]+=c,e[n]-=c*i}function Um(t,e){zm.reduce((n,r)=>Fe(e[r])?n:(n&&Hs(t,e,n,e,r),r),null)}class ze{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Ke.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n?Fm:Pm,this.isLuxonDuration=!0}static fromMillis(e,n){return ze.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Nt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new ze({values:Or(e,ze.normalizeUnit),loc:Ke.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(e){if(En(e))return ze.fromMillis(e);if(ze.isDuration(e))return e;if(typeof e=="object")return ze.fromObject(e);throw new Nt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Am(e);return r?ze.fromObject(r,n):ze.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Tm(e);return r?ze.fromObject(r,n):ze.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Nt("need to specify a reason the Duration is invalid");const r=e instanceof Pt?e:new Pt(e,n);if(ot.throwOnInvalid)throw new pf(r);return new ze({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Jo(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?wt.create(this.loc,r).formatDurationFromString(this,e):Mm}toHuman(e={}){const n=wn.map(r=>{const a=this.values[r];return Fe(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(a)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ba(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(a+=".SSS"));let i=r.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e),r={};for(const a of wn)(Nn(n.values,a)||Nn(this.values,a))&&(r[a]=n.get(a)+this.get(a));return _n(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Es(e(this.values[r],r));return _n(this,{values:n},!0)}get(e){return this[ze.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Or(e,ze.normalizeUnit)};return _n(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n}),i={loc:a};return r&&(i.conversionAccuracy=r),_n(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Um(this.matrix,e),_n(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>ze.normalizeUnit(o));const n={},r={},a=this.toObject();let i;for(const o of wn)if(e.indexOf(o)>=0){i=o;let s=0;for(const l in r)s+=this.matrix[l][o]*r[l],r[l]=0;En(a[o])&&(s+=a[o]);const c=Math.trunc(s);n[o]=c,r[o]=(s*1e3-c*1e3)/1e3;for(const l in a)wn.indexOf(l)>wn.indexOf(o)&&Hs(this.matrix,a,l,n,o)}else En(a[o])&&(r[o]=a[o]);for(const o in r)r[o]!==0&&(n[i]+=o===i?r[o]:r[o]/this.matrix[i][o]);return _n(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return _n(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,a){return r===void 0||r===0?a===void 0||a===0:r===a}for(const r of wn)if(!n(this.values[r],e.values[r]))return!1;return!0}}const cr="Invalid Interval";function jm(t,e){return!t||!t.isValid?Je.invalid("missing or invalid start"):!e||!e.isValid?Je.invalid("missing or invalid end"):e<t?Je.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Je{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Nt("need to specify a reason the Interval is invalid");const r=e instanceof Pt?e:new Pt(e,n);if(ot.throwOnInvalid)throw new mf(r);return new Je({invalid:r})}static fromDateTimes(e,n){const r=hr(e),a=hr(n),i=jm(r,a);return i==null?new Je({start:r,end:a}):i}static after(e,n){const r=ze.fromDurationLike(n),a=hr(e);return Je.fromDateTimes(a,a.plus(r))}static before(e,n){const r=ze.fromDurationLike(n),a=hr(e);return Je.fromDateTimes(a.minus(r),a)}static fromISO(e,n){const[r,a]=(e||"").split("/",2);if(r&&a){let i,o;try{i=Ae.fromISO(r,n),o=i.isValid}catch{o=!1}let s,c;try{s=Ae.fromISO(a,n),c=s.isValid}catch{c=!1}if(o&&c)return Je.fromDateTimes(i,s);if(o){const l=ze.fromISO(a,n);if(l.isValid)return Je.after(i,l)}else if(c){const l=ze.fromISO(r,n);if(l.isValid)return Je.before(s,l)}}return Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Je.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(hr).filter(o=>this.contains(o)).sort(),r=[];let{s:a}=this,i=0;for(;a<this.e;){const o=n[i]||this.e,s=+o>+this.e?this.e:o;r.push(Je.fromDateTimes(a,s)),a=s,i+=1}return r}splitBy(e){const n=ze.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,a=1,i;const o=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(c=>c*a));i=+s>+this.e?this.e:s,o.push(Je.fromDateTimes(r,i)),r=i,a+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:Je.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return Je.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const a=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((c,l)=>c.time-l.time);for(const c of s)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&a.push(Je.fromDateTimes(n,c.time)),n=null);return Je.merge(a)}difference(...e){return Je.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:cr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:cr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:cr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:cr}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:cr}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):ze.invalid(this.invalidReason)}mapEndpoints(e){return Je.fromDateTimes(e(this.s),e(this.e))}}class Br{static hasDST(e=ot.defaultZone){const n=Ae.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Zt.isValidZone(e)}static normalizeZone(e){return sn(e,ot.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ke.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ke.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Ke.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Ke.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ke.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Ke.create(n,null,"gregory").eras(e)}static features(){return{relative:vs()}}}function Ws(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(ze.fromMillis(r).as("days"))}function Vm(t,e,n){const r=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const l=Ws(s,c);return(l-l%7)/7}],["days",Ws]],a={};let i,o;for(const[s,c]of r)if(n.indexOf(s)>=0){i=s;let l=c(t,e);o=t.plus({[s]:l}),o>e?(t=t.plus({[s]:l-1}),l-=1):t=o,a[s]=l}return[t,a,o,i]}function qm(t,e,n,r){let[a,i,o,s]=Vm(t,e,n);const c=e-a,l=n.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);l.length===0&&(o<e&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+c/(o-a)));const h=ze.fromObject(i,r);return l.length>0?ze.fromMillis(c,r).shiftTo(...l).plus(h):h}const Xa={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Gs={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Hm=Xa.hanidec.replace(/[\[|\]]/g,"").split("");function Wm(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Xa.hanidec)!==-1)e+=Hm.indexOf(t[n]);else for(const a in Gs){const[i,o]=Gs[a];r>=i&&r<=o&&(e+=r-i)}}return parseInt(e,10)}else return e}function Ft({numberingSystem:t},e=""){return new RegExp(`${Xa[t||"latn"]}${e}`)}const Gm="missing Intl.DateTimeFormat.formatToParts support";function He(t,e=n=>n){return{regex:t,deser:([n])=>e(Wm(n))}}const $m=String.fromCharCode(160),$s=`[ ${$m}]`,Ys=new RegExp($s,"g");function Ym(t){return t.replace(/\./g,"\\.?").replace(Ys,$s)}function Zs(t){return t.replace(/\./g,"").replace(Ys," ").toLowerCase()}function zt(t,e){return t===null?null:{regex:RegExp(t.map(Ym).join("|")),deser:([n])=>t.findIndex(r=>Zs(n)===Zs(r))+e}}function Ks(t,e){return{regex:t,deser:([,n,r])=>Lr(n,r),groups:e}}function Qa(t){return{regex:t,deser:([e])=>e}}function Zm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Km(t,e){const n=Ft(e),r=Ft(e,"{2}"),a=Ft(e,"{3}"),i=Ft(e,"{4}"),o=Ft(e,"{6}"),s=Ft(e,"{1,2}"),c=Ft(e,"{1,3}"),l=Ft(e,"{1,6}"),h=Ft(e,"{1,9}"),x=Ft(e,"{2,4}"),y=Ft(e,"{4,6}"),w=C=>({regex:RegExp(Zm(C.val)),deser:([N])=>N,literal:!0}),S=(C=>{if(t.literal)return w(C);switch(C.val){case"G":return zt(e.eras("short",!1),0);case"GG":return zt(e.eras("long",!1),0);case"y":return He(l);case"yy":return He(x,ja);case"yyyy":return He(i);case"yyyyy":return He(y);case"yyyyyy":return He(o);case"M":return He(s);case"MM":return He(r);case"MMM":return zt(e.months("short",!0,!1),1);case"MMMM":return zt(e.months("long",!0,!1),1);case"L":return He(s);case"LL":return He(r);case"LLL":return zt(e.months("short",!1,!1),1);case"LLLL":return zt(e.months("long",!1,!1),1);case"d":return He(s);case"dd":return He(r);case"o":return He(c);case"ooo":return He(a);case"HH":return He(r);case"H":return He(s);case"hh":return He(r);case"h":return He(s);case"mm":return He(r);case"m":return He(s);case"q":return He(s);case"qq":return He(r);case"s":return He(s);case"ss":return He(r);case"S":return He(c);case"SSS":return He(a);case"u":return Qa(h);case"uu":return Qa(s);case"uuu":return He(n);case"a":return zt(e.meridiems(),0);case"kkkk":return He(i);case"kk":return He(x,ja);case"W":return He(s);case"WW":return He(r);case"E":case"c":return He(n);case"EEE":return zt(e.weekdays("short",!1,!1),1);case"EEEE":return zt(e.weekdays("long",!1,!1),1);case"ccc":return zt(e.weekdays("short",!0,!1),1);case"cccc":return zt(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ks(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Ks(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return Qa(/[a-z_+-/]{1,256}?/i);default:return w(C)}})(t)||{invalidReason:Gm};return S.token=t,S}const Jm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Xm(t,e,n){const{type:r,value:a}=t;if(r==="literal")return{literal:!0,val:a};const i=n[r];let o=Jm[r];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Qm(t){return[`^${t.map(e=>e.regex).reduce((e,n)=>`${e}(${n.source})`,"")}$`,t]}function ep(t,e,n){const r=t.match(e);if(r){const a={};let i=1;for(const o in n)if(Nn(n,o)){const s=n[o],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(r.slice(i,i+c))),i+=c}return[r,a]}else return[r,{}]}function tp(t){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Fe(t.z)||(n=Zt.create(t.z)),Fe(t.Z)||(n||(n=new yt(t.Z)),r=t.Z),Fe(t.q)||(t.M=(t.q-1)*3+1),Fe(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Fe(t.u)||(t.S=za(t.u)),[Object.keys(t).reduce((a,i)=>{const o=e(i);return o&&(a[o]=t[i]),a},{}),n,r]}let ei=null;function np(){return ei||(ei=Ae.fromMillis(1555555555555)),ei}function rp(t,e){if(t.literal)return t;const n=wt.macroTokenToFormatOpts(t.val);if(!n)return t;const r=wt.create(e,n).formatDateTimeParts(np()).map(a=>Xm(a,e,n));return r.includes(void 0)?t:r}function ap(t,e){return Array.prototype.concat(...t.map(n=>rp(n,e)))}function Js(t,e,n){const r=ap(wt.parseFormat(n),t),a=r.map(o=>Km(o,t)),i=a.find(o=>o.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[o,s]=Qm(a),c=RegExp(o,"i"),[l,h]=ep(e,c,s),[x,y,w]=h?tp(h):[null,null,void 0];if(Nn(h,"a")&&Nn(h,"H"))throw new nr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:l,matches:h,result:x,zone:y,specificOffset:w}}}function ip(t,e,n){const{result:r,zone:a,specificOffset:i,invalidReason:o}=Js(t,e,n);return[r,a,i,o]}const Xs=[0,31,59,90,120,151,181,212,243,273,304,334],Qs=[0,31,60,91,121,152,182,213,244,274,305,335];function Ot(t,e){return new Pt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function el(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const a=r.getUTCDay();return a===0?7:a}function tl(t,e,n){return n+(rr(t)?Qs:Xs)[e-1]}function nl(t,e){const n=rr(t)?Qs:Xs,r=n.findIndex(i=>i<e),a=e-n[r];return{month:r+1,day:a}}function ti(t){const{year:e,month:n,day:r}=t,a=tl(e,n,r),i=el(e,n,r);let o=Math.floor((a-i+10)/7),s;return o<1?(s=e-1,o=Nr(s)):o>Nr(e)?(s=e+1,o=1):s=e,{weekYear:s,weekNumber:o,weekday:i,...Rr(t)}}function rl(t){const{weekYear:e,weekNumber:n,weekday:r}=t,a=el(e,1,4),i=ar(e);let o=n*7+r-a-3,s;o<1?(s=e-1,o+=ar(s)):o>i?(s=e+1,o-=ar(e)):s=e;const{month:c,day:l}=nl(s,o);return{year:s,month:c,day:l,...Rr(t)}}function ni(t){const{year:e,month:n,day:r}=t,a=tl(e,n,r);return{year:e,ordinal:a,...Rr(t)}}function al(t){const{year:e,ordinal:n}=t,{month:r,day:a}=nl(e,n);return{year:e,month:r,day:a,...Rr(t)}}function op(t){const e=Dr(t.weekYear),n=Yt(t.weekNumber,1,Nr(t.weekYear)),r=Yt(t.weekday,1,7);return e?n?r?!1:Ot("weekday",t.weekday):Ot("week",t.week):Ot("weekYear",t.weekYear)}function sp(t){const e=Dr(t.year),n=Yt(t.ordinal,1,ar(t.year));return e?n?!1:Ot("ordinal",t.ordinal):Ot("year",t.year)}function il(t){const e=Dr(t.year),n=Yt(t.month,1,12),r=Yt(t.day,1,Tr(t.year,t.month));return e?n?r?!1:Ot("day",t.day):Ot("month",t.month):Ot("year",t.year)}function ol(t){const{hour:e,minute:n,second:r,millisecond:a}=t,i=Yt(e,0,23)||e===24&&n===0&&r===0&&a===0,o=Yt(n,0,59),s=Yt(r,0,59),c=Yt(a,0,999);return i?o?s?c?!1:Ot("millisecond",a):Ot("second",r):Ot("minute",n):Ot("hour",e)}const ri="Invalid DateTime",sl=864e13;function Ur(t){return new Pt("unsupported zone",`the zone "${t.name}" is not supported`)}function ai(t){return t.weekData===null&&(t.weekData=ti(t.c)),t.weekData}function ur(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ae({...n,...e,old:n})}function ll(t,e,n){let r=t-e*60*1e3;const a=n.offset(r);if(e===a)return[r,e];r-=(a-e)*60*1e3;const i=n.offset(r);return a===i?[r,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function cl(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function jr(t,e,n){return ll(Ua(t),e,n)}function ul(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:a,day:Math.min(t.c.day,Tr(r,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Ua(i);let[c,l]=ll(s,n,t.zone);return o!==0&&(c+=o,l=t.zone.offset(c)),{ts:c,o:l}}function dr(t,e,n,r,a,i){const{setZone:o,zone:s}=n;if(t&&Object.keys(t).length!==0){const c=e||s,l=Ae.fromObject(t,{...n,zone:c,specificOffset:i});return o?l:l.setZone(s)}else return Ae.invalid(new Pt("unparsable",`the input "${a}" can't be parsed as ${r}`))}function Vr(t,e,n=!0){return t.isValid?wt.create(Ke.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ii(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=nt(t.c.year,n?6:4),e?(r+="-",r+=nt(t.c.month),r+="-",r+=nt(t.c.day)):(r+=nt(t.c.month),r+=nt(t.c.day)),r}function dl(t,e,n,r,a,i){let o=nt(t.c.hour);return e?(o+=":",o+=nt(t.c.minute),(t.c.second!==0||!n)&&(o+=":")):o+=nt(t.c.minute),(t.c.second!==0||!n)&&(o+=nt(t.c.second),(t.c.millisecond!==0||!r)&&(o+=".",o+=nt(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=nt(Math.trunc(-t.o/60)),o+=":",o+=nt(Math.trunc(-t.o%60))):(o+="+",o+=nt(Math.trunc(t.o/60)),o+=":",o+=nt(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const hl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lp={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cp={ordinal:1,hour:0,minute:0,second:0,millisecond:0},fl=["year","month","day","hour","minute","second","millisecond"],up=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],dp=["year","ordinal","hour","minute","second","millisecond"];function ml(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Jo(t);return e}function pl(t,e){const n=sn(e.zone,ot.defaultZone),r=Ke.fromObject(e),a=ot.now();let i,o;if(Fe(t.year))i=a;else{for(const l of fl)Fe(t[l])&&(t[l]=hl[l]);const s=il(t)||ol(t);if(s)return Ae.invalid(s);const c=n.offset(a);[i,o]=jr(t,c,n)}return new Ae({ts:i,zone:n,loc:r,o})}function gl(t,e,n){const r=Fe(n.round)?!0:n.round,a=(o,s)=>(o=Ba(o,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,s)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return a(i(n.unit),n.unit);for(const o of n.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(t>e?-0:0,n.units[n.units.length-1])}function vl(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Ae{constructor(e){const n=e.zone||ot.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Pt("invalid input"):null)||(n.isValid?null:Ur(n));this.ts=Fe(e.ts)?ot.now():e.ts;let a=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);a=cl(this.ts,o),r=Number.isNaN(a.year)?new Pt("invalid input"):null,a=r?null:a,i=r?null:o}this._zone=n,this.loc=e.loc||Ke.create(),this.invalid=r,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new Ae({})}static local(){const[e,n]=vl(arguments),[r,a,i,o,s,c,l]=n;return pl({year:r,month:a,day:i,hour:o,minute:s,second:c,millisecond:l},e)}static utc(){const[e,n]=vl(arguments),[r,a,i,o,s,c,l]=n;return e.zone=yt.utcInstance,pl({year:r,month:a,day:i,hour:o,minute:s,second:c,millisecond:l},e)}static fromJSDate(e,n={}){const r=bf(e)?e.valueOf():NaN;if(Number.isNaN(r))return Ae.invalid("invalid input");const a=sn(n.zone,ot.defaultZone);return a.isValid?new Ae({ts:r,zone:a,loc:Ke.fromObject(n)}):Ae.invalid(Ur(a))}static fromMillis(e,n={}){if(En(e))return e<-sl||e>sl?Ae.invalid("Timestamp out of range"):new Ae({ts:e,zone:sn(n.zone,ot.defaultZone),loc:Ke.fromObject(n)});throw new Nt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(En(e))return new Ae({ts:e*1e3,zone:sn(n.zone,ot.defaultZone),loc:Ke.fromObject(n)});throw new Nt("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=sn(n.zone,ot.defaultZone);if(!r.isValid)return Ae.invalid(Ur(r));const a=ot.now(),i=Fe(n.specificOffset)?r.offset(a):n.specificOffset,o=Or(e,ml),s=!Fe(o.ordinal),c=!Fe(o.year),l=!Fe(o.month)||!Fe(o.day),h=c||l,x=o.weekYear||o.weekNumber,y=Ke.fromObject(n);if((h||s)&&x)throw new nr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new nr("Can't mix ordinal dates with month/day");const w=x||o.weekday&&!h;let S,C,N=cl(a,i);w?(S=up,C=lp,N=ti(N)):s?(S=dp,C=cp,N=ni(N)):(S=fl,C=hl);let k=!1;for(const Y of S){const Q=o[Y];Fe(Q)?k?o[Y]=C[Y]:o[Y]=N[Y]:k=!0}const E=w?op(o):s?sp(o):il(o),D=E||ol(o);if(D)return Ae.invalid(D);const I=w?rl(o):s?al(o):o,[T,P]=jr(I,i,r),z=new Ae({ts:T,zone:r,o:P,loc:y});return o.weekday&&h&&e.weekday!==z.weekday?Ae.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${z.toISO()}`):z}static fromISO(e,n={}){const[r,a]=Im(e);return dr(r,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,a]=Cm(e);return dr(r,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,a]=km(e);return dr(r,a,n,"HTTP",n)}static fromFormat(e,n,r={}){if(Fe(e)||Fe(n))throw new Nt("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=r,o=Ke.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,c,l,h]=ip(o,e,n);return h?Ae.invalid(h):dr(s,c,r,`format ${n}`,e,l)}static fromString(e,n,r={}){return Ae.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,a]=Rm(e);return dr(r,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Nt("need to specify a reason the DateTime is invalid");const r=e instanceof Pt?e:new Pt(e,n);if(ot.throwOnInvalid)throw new ff(r);return new Ae({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ai(this).weekYear:NaN}get weekNumber(){return this.isValid?ai(this).weekNumber:NaN}get weekday(){return this.isValid?ai(this).weekday:NaN}get ordinal(){return this.isValid?ni(this.c).ordinal:NaN}get monthShort(){return this.isValid?Br.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Br.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Br.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Br.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return rr(this.year)}get daysInMonth(){return Tr(this.year,this.month)}get daysInYear(){return this.isValid?ar(this.year):NaN}get weeksInWeekYear(){return this.isValid?Nr(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:a}=wt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(yt.instance(e),n)}toLocal(){return this.setZone(ot.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=sn(e,ot.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||r){const i=e.offset(this.ts),o=this.toObject();[a]=jr(o,i,e)}return ur(this,{ts:a,zone:e})}else return Ae.invalid(Ur(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return ur(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Or(e,ml),r=!Fe(n.weekYear)||!Fe(n.weekNumber)||!Fe(n.weekday),a=!Fe(n.ordinal),i=!Fe(n.year),o=!Fe(n.month)||!Fe(n.day),s=i||o,c=n.weekYear||n.weekNumber;if((s||a)&&c)throw new nr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new nr("Can't mix ordinal dates with month/day");let l;r?l=rl({...ti(this.c),...n}):Fe(n.ordinal)?(l={...this.toObject(),...n},Fe(n.day)&&(l.day=Math.min(Tr(l.year,l.month),l.day))):l=al({...ni(this.c),...n});const[h,x]=jr(l,this.o,this.zone);return ur(this,{ts:h,o:x})}plus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e);return ur(this,ul(this,n))}minus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e).negate();return ur(this,ul(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=ze.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?wt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):ri}toLocaleString(e=Fa,n={}){return this.isValid?wt.create(this.loc.clone(n),e).formatDateTime(this):ri}toLocaleParts(e={}){return this.isValid?wt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let s=ii(this,o);return s+="T",s+=dl(this,o,n,r,a,i),s}toISODate({format:e="extended"}={}){return this.isValid?ii(this,e==="extended"):null}toISOWeekDate(){return Vr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+dl(this,o==="extended",n,e,r,i):null}toRFC2822(){return Vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ii(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let a="HH:mm:ss.SSS";return(n||e)&&(r&&(a+=" "),n?a+="z":e&&(a+="ZZ")),Vr(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ri}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return ze.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Ef(n).map(ze.normalizeUnit),o=e.valueOf()>this.valueOf(),s=o?this:e,c=o?e:this,l=qm(s,c,i,a);return o?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(Ae.now(),e,n)}until(e){return this.isValid?Je.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=r&&r<=a.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Ae.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),gl(n,this.plus(r),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?gl(e.base||Ae.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ae.isDateTime))throw new Nt("min requires all arguments be DateTimes");return ys(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ae.isDateTime))throw new Nt("max requires all arguments be DateTimes");return ys(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:a=null,numberingSystem:i=null}=r,o=Ke.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return Js(o,e,n)}static fromStringExplain(e,n,r={}){return Ae.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Fa}static get DATE_MED(){return Xo}static get DATE_MED_WITH_WEEKDAY(){return gf}static get DATE_FULL(){return Qo}static get DATE_HUGE(){return es}static get TIME_SIMPLE(){return ts}static get TIME_WITH_SECONDS(){return ns}static get TIME_WITH_SHORT_OFFSET(){return rs}static get TIME_WITH_LONG_OFFSET(){return as}static get TIME_24_SIMPLE(){return is}static get TIME_24_WITH_SECONDS(){return os}static get TIME_24_WITH_SHORT_OFFSET(){return ss}static get TIME_24_WITH_LONG_OFFSET(){return ls}static get DATETIME_SHORT(){return cs}static get DATETIME_SHORT_WITH_SECONDS(){return us}static get DATETIME_MED(){return ds}static get DATETIME_MED_WITH_SECONDS(){return hs}static get DATETIME_MED_WITH_WEEKDAY(){return vf}static get DATETIME_FULL(){return fs}static get DATETIME_FULL_WITH_SECONDS(){return ms}static get DATETIME_HUGE(){return ps}static get DATETIME_HUGE_WITH_SECONDS(){return gs}}function hr(t){if(Ae.isDateTime(t))return t;if(t&&t.valueOf&&En(t.valueOf()))return Ae.fromJSDate(t);if(t&&typeof t=="object")return Ae.fromObject(t);throw new Nt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function oi(t,e){return Ae.fromISO(t,{zone:e}).toJSDate()}function yl(t,e){if(e){const n=new Date(t.toLocaleString("en-US",{timeZone:e}));return{dateTime:bl(n),timeZone:e}}else return{dateTime:bl(t)}}function zn(t,e){const n=new Date(t.toLocaleString("en-US",{timeZone:e}));return n.getFullYear()+"-"+("0"+(n.getMonth()+1)).slice(-2)+"-"+("0"+n.getDate()).slice(-2)}function bl(t,e=!1){var n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(r<10?"0"+r:r)+"/"+n:n+"-"+(r<10?"0"+r:r)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(s<10?"0"+s:s)}const hp={nbsp:" ",amp:"&",lt:"<",gt:">",quot:'"',apos:"'",cent:"\xA2",pound:"\xA3",yen:"\xA5",euro:"\u20AC",copy:"\xA9",reg:"\xAE"};function Ce(t){return t==null?"":(t=t==null?void 0:t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(n)}),t=t.replace(/&([^;]+);/g,(e,n)=>hp[n]),t)}function Re(t){return t==null?"":t==null?void 0:t.replace(/[\u0100-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function fp(t){return new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result),r.onerror=a=>n(a)})}class Bn{constructor(){f(this,"name"),f(this,"startPeriod"),f(this,"endPeriod"),f(this,"monday"),f(this,"tuesday"),f(this,"wednesday"),f(this,"thursday"),f(this,"friday"),f(this,"saturday"),f(this,"sunday")}static fromSettingsPeriodWorkingDto(e){const n=new Bn;return n.name=Ce(e.name),n.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},n.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(n.monday=[],e.monday.forEach(r=>{var a;(a=n.monday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.tuesday&&(n.tuesday=[],e.tuesday.forEach(r=>{var a;(a=n.tuesday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.wednesday&&(n.wednesday=[],e.wednesday.forEach(r=>{var a;(a=n.wednesday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.thursday&&(n.thursday=[],e.thursday.forEach(r=>{var a;(a=n.thursday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.friday&&(n.friday=[],e.friday.forEach(r=>{var a;(a=n.friday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.saturday&&(n.saturday=[],e.saturday.forEach(r=>{var a;(a=n.saturday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.sunday&&(n.sunday=[],e.sunday.forEach(r=>{var a;(a=n.sunday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),n}static toSettingsPeriodWorkingDto(e){const n=new mp;return n.name=Re(e.name),n.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},n.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(n.monday=[],e.monday.forEach(r=>{var a;(a=n.monday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.tuesday&&(n.tuesday=[],e.tuesday.forEach(r=>{var a;(a=n.tuesday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.wednesday&&(n.wednesday=[],e.wednesday.forEach(r=>{var a;(a=n.wednesday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.thursday&&(n.thursday=[],e.thursday.forEach(r=>{var a;(a=n.thursday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.friday&&(n.friday=[],e.friday.forEach(r=>{var a;(a=n.friday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.saturday&&(n.saturday=[],e.saturday.forEach(r=>{var a;(a=n.saturday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),e.sunday&&(n.sunday=[],e.sunday.forEach(r=>{var a;(a=n.sunday)==null||a.push(mt.fromSettingsPeriodWorkingDayDto(r))})),n}}class mt{constructor(){f(this,"service"),f(this,"start"),f(this,"end")}static fromSettingsPeriodWorkingDayDto(e){var n,r;const a=new mt;return a.end=e.end,e.service&&(a.service={id:(n=e.service)==null?void 0:n.id,name:(r=e.service)==null?void 0:r.name}),a.start=e.start,a}static toSettingsPeriodWorkingDayDto(e){var n,r;const a=new pp;return a.end=e.end,e.service&&(a.service={id:(n=e.service)==null?void 0:n.id,name:(r=e.service)==null?void 0:r.name}),a.start=e.start,a}}class Un{constructor(){f(this,"day"),f(this,"hours")}static fromSettingsWorkingDayDto(e){const n=new Un;return n.day=e.day,n.hours=[],e.hours.forEach(r=>n.hours.push(qr.fromSettingsWorkingHoursDto(r))),n}static toSettingsWorkingDayDto(e){const n=new gp;return n.day=e.day,n.hours=[],e.hours.forEach(r=>n.hours.push(qr.toSettingsWorkingHoursDto(r))),n}}class qr{constructor(){f(this,"start"),f(this,"end")}static fromSettingsWorkingHoursDto(e){const n=new qr;return n.start=e.start,n.end=e.end,n}static toSettingsWorkingHoursDto(e){const n=new vp;return n.start=e.start,n.end=e.end,n}}class mp{constructor(){f(this,"name"),f(this,"startPeriod"),f(this,"endPeriod"),f(this,"monday"),f(this,"tuesday"),f(this,"wednesday"),f(this,"thursday"),f(this,"friday"),f(this,"saturday"),f(this,"sunday")}}class pp{constructor(){f(this,"service"),f(this,"start"),f(this,"end")}}class gp{constructor(){f(this,"day"),f(this,"hours")}}class vp{constructor(){f(this,"start"),f(this,"end")}}const yp=(t,e)=>e.some(n=>t instanceof n);let El,xl;function bp(){return El||(El=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ep(){return xl||(xl=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const wl=new WeakMap,si=new WeakMap,_l=new WeakMap,li=new WeakMap,ci=new WeakMap;function xp(t){const e=new Promise((n,r)=>{const a=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(fr(t.result)),a()},o=()=>{r(t.error),a()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&wl.set(n,t)}).catch(()=>{}),ci.set(e,t),e}function wp(t){if(si.has(t))return;const e=new Promise((n,r)=>{const a=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),a()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});si.set(t,e)}let ui={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return si.get(t);if(e==="objectStoreNames")return t.objectStoreNames||_l.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return fr(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function _p(t){ui=t(ui)}function Sp(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(di(this),e,...n);return _l.set(r,e.sort?e.sort():[e]),fr(r)}:Ep().includes(t)?function(...e){return t.apply(di(this),e),fr(wl.get(this))}:function(...e){return fr(t.apply(di(this),e))}}function Ip(t){return typeof t=="function"?Sp(t):(t instanceof IDBTransaction&&wp(t),yp(t,bp())?new Proxy(t,ui):t)}function fr(t){if(t instanceof IDBRequest)return xp(t);if(li.has(t))return li.get(t);const e=Ip(t);return e!==t&&(li.set(t,e),ci.set(e,t)),e}const di=t=>ci.get(t),Cp=["get","getKey","getAll","getAllKeys","count"],kp=["put","add","delete","clear"],hi=new Map;function Sl(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(hi.get(e))return hi.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,a=kp.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||Cp.includes(n)))return;const i=async function(o,...s){const c=this.transaction(o,a?"readwrite":"readonly");let l=c.store;return r&&(l=l.index(s.shift())),(await Promise.all([l[n](...s),a&&c.done]))[0]};return hi.set(e,i),i}_p(t=>({...t,get:(e,n,r)=>Sl(e,n)||t.get(e,n,r),has:(e,n)=>!!Sl(e,n)||t.has(e,n)}));class _t{constructor(e,n,r){f(this,"mimeType"),f(this,"url"),f(this,"data"),this.mimeType=e,this.url=n,this.data=r}static fromImageDto(e){if(e)return new _t(e.mimeType,e.url&&e.url.startsWith("http")?e.url+"?"+Math.random().toString(32):e.url,e.data)}static toImageDto(e){let n;if(e){const r=JSON.parse(JSON.stringify(e));r.data!==void 0&&(n=new _t(r.mimeType,r.url,r.data))}return n}static fromFileData(e,n){return e?new _t("","",""):n?new _t("","",n):void 0}}class Sn{constructor(){f(this,"id"),f(this,"name"),f(this,"value"),f(this,"values")}static fromCustomFormValueDto(e){var n;const r=new Sn;r.id=e.id,r.name=Ce(e.name),r.value=Ce(e.value);const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(Sn.fromCustomFormValueDto(i))}),r.values=a,r}static toFormValueDto(e){var n;const r=new Dp;r.id=e.id,r.name=Re(e.name),r.value=Re(e.value);const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(Sn.toFormValueDto(i))}),r.values=a,r}}class Bt{constructor(){f(this,"id"),f(this,"label"),f(this,"type"),f(this,"inputType"),f(this,"visible"),f(this,"disabled"),f(this,"required"),f(this,"values"),f(this,"subItem"),f(this,"formatType"),f(this,"pattern"),f(this,"minlength"),f(this,"maxlength"),f(this,"externalId"),f(this,"help"),f(this,"placeholder"),f(this,"otherValue"),f(this,"category"),f(this,"readonly"),f(this,"value"),f(this,"multiple"),f(this,"bind"),f(this,"bindGroup")}static fromFormDto(e){var n,r,a,i,o,s;const c=new Bt;c.id=e.id,c.label=Ce(e.title?e.title:e.label),c.type=e.type,c.inputType=e.inputType,c.visible=e.visible,c.disabled=e.disabled,c.required=e.mandatory;const l=[];(n=e.values)==null||n.forEach(x=>{l.push(Sn.fromCustomFormValueDto(x))}),c.values=l;const h=[];return e.subItem&&((r=e.subItem)==null||r.forEach(x=>{h.push(Bt.fromFormDto(x))})),c.subItem=h,c.readonly=e.readonly,c.multiple=e.multiple,c.pattern=(a=e.valueFormat)==null?void 0:a.regexValue,c.minlength=(i=e.valueFormat)==null?void 0:i.minLength,c.maxlength=(o=e.valueFormat)==null?void 0:o.maxLength,c.formatType=(s=e.valueFormat)==null?void 0:s.type,c.externalId=e.externalId,c.help=e.help,c.placeholder=e.placeholder,c.otherValue=e.otherValue,c.category=e.category,c.bind=e.bind,c.bindGroup=e.bindGroup,c.value=Ce(e.value),c}static fromWidgetFormItemDto(e){var n;const r=new Bt;r.id=e.id,r.label=Ce(e.title?e.title:e.label),r.type=e.type,r.inputType=e.inputType,r.visible=e.visible,r.disabled=e.disabled,r.required=e.required;const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(Sn.fromCustomFormValueDto(i))}),r.values=a,r.readonly=e.readonly,r.multiple=e.multiple,r.pattern=e.pattern,r.minlength=e.minlength,r.maxlength=e.maxlength,r.formatType=e.pattern?"regex":"none",r.externalId=e.externalId,r.help=e.help,r.placeholder=e.placeholder,r.bind=e.bind,r.bindGroup=e.bindGroup,r.value=Ce(e.value),r}static toFormDto(e){var n,r;const a=new Ap;a.id=e.id,a.label=Re(e.label),a.title=Re(e.label),a.type=e.type,a.inputType=e.inputType,a.visible=e.visible,a.disabled=e.disabled,a.mandatory=e.required;const i=[];(n=e.values)==null||n.forEach(s=>{i.push(Sn.toFormValueDto(s))}),a.values=i,a.valueFormat={type:e.formatType,maxLength:e.maxlength,minLength:e.minlength,regexValue:e.pattern};const o=[];return e.subItem&&((r=e.subItem)==null||r.forEach(s=>{o.push(Bt.toFormDto(s))})),a.subItem=o,a.readonly=e.readonly,a.multiple=e.multiple,a.bind=e.bind,a.bindGroup=e.bindGroup,a.externalId=e.externalId,a.help=e.help,a.placeholder=e.placeholder,a.otherValue=e.otherValue,a.category=e.category,Array.isArray(e.value)?a.value=e.value.map(s=>Re(s)):typeof e.value=="string"?a.value=Re(e.value):a.value=e.value,a}static formItemToFormField(e){var n;return{id:e.id,inputType:e.inputType||e.type,label:e.label,mandatory:e.required,visible:e.visible,values:(n=e.values)==null?void 0:n.map(r=>({label:r.name,value:r.value})),bind:e.bind,multiple:e.multiple,value:e.value,pattern:e.pattern,disabled:e.disabled,minlength:e.minlength,maxlength:e.maxlength}}static formItemsToFormFields(e,n=!1){if(e&&e.length>0){const r=[];return e.forEach(a=>{var i;n&&a.subItem&&a.subItem.length>0?(i=a.subItem)==null||i.forEach(o=>{r.push(Bt.formItemToFormField(o))}):r.push(Bt.formItemToFormField(a))}),r}}}class Ap{constructor(){f(this,"id"),f(this,"label"),f(this,"title"),f(this,"type"),f(this,"inputType"),f(this,"visible"),f(this,"disabled"),f(this,"mandatory"),f(this,"values"),f(this,"subItem"),f(this,"valueFormat"),f(this,"externalId"),f(this,"help"),f(this,"placeholder"),f(this,"otherValue"),f(this,"category"),f(this,"readonly"),f(this,"value"),f(this,"fileName"),f(this,"multiple"),f(this,"bind"),f(this,"bindGroup")}}class Dp{constructor(){f(this,"id"),f(this,"name"),f(this,"value"),f(this,"values")}}class Kt{constructor(){f(this,"id"),f(this,"userId"),f(this,"company"),f(this,"firstName"),f(this,"lastName"),f(this,"gender"),f(this,"title"),f(this,"email"),f(this,"phone"),f(this,"otherPhone"),f(this,"description"),f(this,"vacations"),f(this,"role"),f(this,"workingHours"),f(this,"customWorkingHours"),f(this,"picture"),f(this,"servicesSkill"),f(this,"color"),f(this,"availableForWidget"),f(this,"externalId"),f(this,"additionalFields"),f(this,"externalCalendars"),f(this,"calendarLink")}fullName(){return this.firstName+" "+this.lastName}static fromStaffDto(e){const n=new Kt;return n.id=e.id,e.company&&(n.company={id:e.company.id,name:e.company.name}),n.firstName=Ce(e.firstName),n.lastName=Ce(e.lastName),n.email=e.email,n.phone=e.phone,n.gender=e.gender,n.title=e.title,n.otherPhone=e.otherPhone,n.description=Ce(e.description),n.role=e.role,n.externalId=e.externalId,e.vacations&&(n.vacations=[],e.vacations.forEach(r=>{var a;return(a=n.vacations)==null?void 0:a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(Un.fromSettingsWorkingDayDto(r))})),e.customWorkingHours&&(n.customWorkingHours=[],e.customWorkingHours.forEach(r=>{var a;return(a=n.customWorkingHours)==null?void 0:a.push(Bn.fromSettingsPeriodWorkingDto(r))})),e.additionalFields&&(n.additionalFields=[],e.additionalFields.forEach(r=>{var a;return(a=n.additionalFields)==null?void 0:a.push(Bt.fromFormDto(r))})),e.externalCalendars&&(n.externalCalendars=[],e.externalCalendars.forEach(r=>{var a;return(a=n.externalCalendars)==null?void 0:a.push(r)})),e.calendarLink&&(n.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(n.picture=_t.fromImageDto(e.picture)),e.services&&(n.servicesSkill=[],e.services.forEach(r=>{var a;(a=n.servicesSkill)==null||a.push(r.id)})),n.color=e.color,n.availableForWidget=e.availableForWidget,n}static toStaffDto(e){const n=new Tp;return n.id=e.id,e.company&&(n.company={id:e.company.id,name:e.company.name}),n.firstName=Re(e.firstName),n.lastName=Re(e.lastName),n.email=e.email,n.phone=e.phone,n.gender=e.gender,n.title=e.title,n.otherPhone=e.otherPhone,n.description=Re(e.description),n.role=e.role,n.externalId=e.externalId,e.vacations&&(n.vacations=[],e.vacations.forEach(r=>{var a;return(a=n.vacations)==null?void 0:a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(Un.fromSettingsWorkingDayDto(r))})),e.customWorkingHours&&(n.customWorkingHours=[],e.customWorkingHours.forEach(r=>{var a;return(a=n.customWorkingHours)==null?void 0:a.push(Bn.fromSettingsPeriodWorkingDto(r))})),e.additionalFields&&(n.additionalFields=[],e.additionalFields.forEach(r=>{var a;return(a=n.additionalFields)==null?void 0:a.push(Bt.fromFormDto(r))})),e.externalCalendars&&(n.externalCalendars=[],e.externalCalendars.forEach(r=>{var a;return(a=n.externalCalendars)==null?void 0:a.push(r)})),e.calendarLink&&(n.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(n.picture=_t.toImageDto(e.picture)),e.servicesSkill&&(n.services=[],e.servicesSkill.forEach(r=>{var a;(a=n.services)==null||a.push({id:r})})),n.color=e.color,n.availableForWidget=e.availableForWidget,n}}class Tp{constructor(){f(this,"id"),f(this,"company"),f(this,"firstName"),f(this,"lastName"),f(this,"gender"),f(this,"title"),f(this,"email"),f(this,"phone"),f(this,"otherPhone"),f(this,"description"),f(this,"vacations"),f(this,"role"),f(this,"workingHours"),f(this,"customWorkingHours"),f(this,"picture"),f(this,"services"),f(this,"color"),f(this,"availableForWidget"),f(this,"externalId"),f(this,"additionalFields"),f(this,"externalCalendars"),f(this,"calendarLink")}}class ln{constructor(){f(this,"id"),f(this,"company"),f(this,"name"),f(this,"description"),f(this,"capacity"),f(this,"price"),f(this,"bufferDuration"),f(this,"preparationDuration"),f(this,"validation"),f(this,"externalId"),f(this,"duration"),f(this,"locations"),f(this,"locationCustom"),f(this,"picture"),f(this,"staffsSkill"),f(this,"color"),f(this,"type"),f(this,"availability"),f(this,"i18n"),f(this,"resources")}static fromServiceDto(e){var n;const r=new ln;r.id=e.id,r.company=e.company?{id:e.company.id,name:Ce(e.company.name)}:void 0,r.name=Ce(e.name),r.duration=e.duration,r.description=Ce(e.description),r.capacity=e.capacity,r.price=e.price,r.bufferDuration=e.bufferDuration,r.preparationDuration=e.preparationDuration,r.validation=e.validation,r.externalId=e.externalId;const a=[];return(n=e.resource)==null||n.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),r.resources=a,r.type=e.bypassFreeBusyAvailabilities!==void 0&&e.bypassFreeBusyAvailabilities?"event":"default",r.locations=e.locations,r.locationCustom=Ce(e.locationCustom),r.picture=_t.fromImageDto(e.picture),e.staff&&(r.staffsSkill=[],e.staff.forEach(i=>{var o;(o=r.staffsSkill)==null||o.push(i.id)})),e.i18n&&(r.i18n={},e.i18n.fr&&(r.i18n.fr=e.i18n.fr),e.i18n.en&&(r.i18n.en=e.i18n.en),e.i18n.es&&(r.i18n.es=e.i18n.es),e.i18n.de&&(r.i18n.de=e.i18n.de),e.i18n.it&&(r.i18n.it=e.i18n.it),e.i18n.pt&&(r.i18n.pt=e.i18n.pt),e.i18n.jp&&(r.i18n.jp=e.i18n.jp),e.i18n.nl&&(r.i18n.nl=e.i18n.nl)),r.color=e.color,r.availability=e.availability,r}static toServiceDto(e){var n;const r=new Np;r.id=e.id,r.name=Re(e.name),r.duration=e.duration,r.description=Re(e.description),r.capacity=e.capacity,r.price=e.price,r.bufferDuration=e.bufferDuration,r.preparationDuration=e.preparationDuration,r.validation=e.validation,r.externalId=e.externalId,r.picture=_t.toImageDto(e.picture);const a=[];return r.bypassFreeBusyAvailabilities=e.type==="event",(n=e.resources)==null||n.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),r.resource=a,r.locations=e.locations,r.locationCustom=Re(e.locationCustom),e.staffsSkill&&(r.staff=[],e.staffsSkill.forEach(i=>{var o;(o=r.staff)==null||o.push({id:i})})),e.i18n&&(r.i18n={},e.i18n.fr&&(r.i18n.fr=e.i18n.fr),e.i18n.en&&(r.i18n.en=e.i18n.en),e.i18n.es&&(r.i18n.es=e.i18n.es),e.i18n.de&&(r.i18n.de=e.i18n.de),e.i18n.it&&(r.i18n.it=e.i18n.it),e.i18n.pt&&(r.i18n.pt=e.i18n.pt),e.i18n.jp&&(r.i18n.jp=e.i18n.jp),e.i18n.nl&&(r.i18n.nl=e.i18n.nl)),r.color=e.color,r.availability=e.availability,r}}class Np{constructor(){f(this,"id"),f(this,"company"),f(this,"name"),f(this,"duration"),f(this,"locations"),f(this,"locationCustom"),f(this,"picture"),f(this,"description"),f(this,"capacity"),f(this,"price"),f(this,"bufferDuration"),f(this,"preparationDuration"),f(this,"validation"),f(this,"externalId"),f(this,"staff"),f(this,"color"),f(this,"availability"),f(this,"resource"),f(this,"bypassFreeBusyAvailabilities"),f(this,"i18n")}}class fi{constructor(e){f(this,"text"),this.text=e}}class mr{constructor(){f(this,"street"),f(this,"otherStreet"),f(this,"zipCode"),f(this,"city"),f(this,"country"),f(this,"state")}static fromAddressDto(e){const n=new mr;return n.street=Ce(e.street),n.otherStreet=Ce(e.otherStreet),n.zipCode=Ce(e.zipCode),n.city=Ce(e.city),n.country=Ce(e.country),n.state=Ce(e.state),n}static toAddressDto(e){const n=new Lp;return n.street=Re(e.street),n.otherStreet=Re(e.otherStreet),n.zipCode=Re(e.zipCode),n.city=Re(e.city),n.country=Re(e.country),n.state=Re(e.state),n}}class Lp{constructor(){f(this,"street"),f(this,"otherStreet"),f(this,"zipCode"),f(this,"city"),f(this,"country"),f(this,"state")}}var Le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Op(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Rp(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Hr={exports:{}};function Mp(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Il={exports:{}};const Pp={},Fp=Object.freeze(Object.defineProperty({__proto__:null,default:Pp},Symbol.toStringTag,{value:"Module"})),zp=Rp(Fp);var Cl;function Be(){return Cl||(Cl=1,function(t,e){(function(n,r){t.exports=r()})(Le,function(){var n=n||function(r,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Le<"u"&&Le.crypto&&(i=Le.crypto),!i&&typeof Mp=="function")try{i=zp}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function E(){}return function(D){var I;return E.prototype=D,I=new E,E.prototype=null,I}}(),c={},l=c.lib={},h=l.Base=function(){return{extend:function(E){var D=s(this);return E&&D.mixIn(E),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var D in E)E.hasOwnProperty(D)&&(this[D]=E[D]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=l.WordArray=h.extend({init:function(E,D){E=this.words=E||[],D!=a?this.sigBytes=D:this.sigBytes=E.length*4},toString:function(E){return(E||w).stringify(this)},concat:function(E){var D=this.words,I=E.words,T=this.sigBytes,P=E.sigBytes;if(this.clamp(),T%4)for(var z=0;z<P;z++){var Y=I[z>>>2]>>>24-z%4*8&255;D[T+z>>>2]|=Y<<24-(T+z)%4*8}else for(var Q=0;Q<P;Q+=4)D[T+Q>>>2]=I[Q>>>2];return this.sigBytes+=P,this},clamp:function(){var E=this.words,D=this.sigBytes;E[D>>>2]&=4294967295<<32-D%4*8,E.length=r.ceil(D/4)},clone:function(){var E=h.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var D=[],I=0;I<E;I+=4)D.push(o());return new x.init(D,E)}}),y=c.enc={},w=y.Hex={stringify:function(E){for(var D=E.words,I=E.sigBytes,T=[],P=0;P<I;P++){var z=D[P>>>2]>>>24-P%4*8&255;T.push((z>>>4).toString(16)),T.push((z&15).toString(16))}return T.join("")},parse:function(E){for(var D=E.length,I=[],T=0;T<D;T+=2)I[T>>>3]|=parseInt(E.substr(T,2),16)<<24-T%8*4;return new x.init(I,D/2)}},S=y.Latin1={stringify:function(E){for(var D=E.words,I=E.sigBytes,T=[],P=0;P<I;P++){var z=D[P>>>2]>>>24-P%4*8&255;T.push(String.fromCharCode(z))}return T.join("")},parse:function(E){for(var D=E.length,I=[],T=0;T<D;T++)I[T>>>2]|=(E.charCodeAt(T)&255)<<24-T%4*8;return new x.init(I,D)}},C=y.Utf8={stringify:function(E){try{return decodeURIComponent(escape(S.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return S.parse(unescape(encodeURIComponent(E)))}},N=l.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=C.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var D,I=this._data,T=I.words,P=I.sigBytes,z=this.blockSize,Y=z*4,Q=P/Y;E?Q=r.ceil(Q):Q=r.max((Q|0)-this._minBufferSize,0);var B=Q*z,W=r.min(B*4,P);if(B){for(var ne=0;ne<B;ne+=z)this._doProcessBlock(T,ne);D=T.splice(0,B),I.sigBytes-=W}return new x.init(D,W)},clone:function(){var E=h.clone.call(this);return E._data=this._data.clone(),E},_minBufferSize:0});l.Hasher=N.extend({cfg:h.extend(),init:function(E){this.cfg=this.cfg.extend(E),this.reset()},reset:function(){N.reset.call(this),this._doReset()},update:function(E){return this._append(E),this._process(),this},finalize:function(E){E&&this._append(E);var D=this._doFinalize();return D},blockSize:16,_createHelper:function(E){return function(D,I){return new E.init(I).finalize(D)}},_createHmacHelper:function(E){return function(D,I){return new k.HMAC.init(E,I).finalize(D)}}});var k=c.algo={};return c}(Math);return n})}(Il)),Il.exports}(function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,c=a.algo,l=[],h=[];(function(){function w(k){for(var E=r.sqrt(k),D=2;D<=E;D++)if(!(k%D))return!1;return!0}function S(k){return(k-(k|0))*4294967296|0}for(var C=2,N=0;N<64;)w(C)&&(N<8&&(l[N]=S(r.pow(C,1/2))),h[N]=S(r.pow(C,1/3)),N++),C++})();var x=[],y=c.SHA256=s.extend({_doReset:function(){this._hash=new o.init(l.slice(0))},_doProcessBlock:function(w,S){for(var C=this._hash.words,N=C[0],k=C[1],E=C[2],D=C[3],I=C[4],T=C[5],P=C[6],z=C[7],Y=0;Y<64;Y++){if(Y<16)x[Y]=w[S+Y]|0;else{var Q=x[Y-15],B=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,W=x[Y-2],ne=(W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10;x[Y]=B+x[Y-7]+ne+x[Y-16]}var R=I&T^~I&P,q=N&k^N&E^k&E,$=(N<<30|N>>>2)^(N<<19|N>>>13)^(N<<10|N>>>22),V=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),j=z+V+R+h[Y]+x[Y],Z=$+q;z=P,P=T,T=I,I=D+j|0,D=E,E=k,k=N,N=j+Z|0}C[0]=C[0]+N|0,C[1]=C[1]+k|0,C[2]=C[2]+E|0,C[3]=C[3]+D|0,C[4]=C[4]+I|0,C[5]=C[5]+T|0,C[6]=C[6]+P|0,C[7]=C[7]+z|0},_doFinalize:function(){var w=this._data,S=w.words,C=this._nDataBytes*8,N=w.sigBytes*8;return S[N>>>5]|=128<<24-N%32,S[(N+64>>>9<<4)+14]=r.floor(C/4294967296),S[(N+64>>>9<<4)+15]=C,w.sigBytes=S.length*4,this._process(),this._hash},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});a.SHA256=s._createHelper(y),a.HmacSHA256=s._createHmacHelper(y)}(Math),n.SHA256})})(Hr);const Bp=Hr.exports,Wr=["#BBBCD4","#33357D","#1A1B3F","#FCE8C0","#F7BB42","#C58D1D","#FCC5C5","#F55151","#7B2929","#AAEAE5","#00BFB2","#006059","#BEE4F2","#3BAED9","#1E576D","#D0D0D8","#71738A","#393A45","#AD1457","#F4511E","#E4C441","#0B8043","#3F51B5","#8E24AA","#D81B60","#EF6C00","#C0CA33","#009688","#7986CB","#795548","#D50000","#F09300","#7CB342","#039BE5","#B39DDB","#616161","#E67C73","#F6BF26","#33B679","#4285F4","#9E69AF","#A79B8E"],pr=new Map;function kl(t){const e=t.replace("#",""),n=("rgb("+e.match(new RegExp("(.{"+e.length/3+"})","g")).map(function(a){return parseInt(e.length%2?a+a:a,16)}).join(",")+")").replace(/[^\d,]/g,"").split(",");var r=Math.floor((Number.parseInt(n[0])*299+Number.parseInt(n[1])*587+Number.parseInt(n[2])*114)/1e3);return r>125?"black":"white"}function Up(t){let e="";return t&&(t.id&&(e=t.id),t.firstName&&(e=e.concat(t.firstName)),t.lastName&&(e=e.concat(t.lastName))),jp(Bp(e).toString())}function jp(t){if(pr.has(t))return pr.get(t);{let e=0;if([...t.toLowerCase()].forEach(a=>{e+=a.charCodeAt(0)}),pr.size===Wr.length)return Wr[e%Wr.length];const n=Wr.filter(a=>!Array.from(pr.values()).includes(a)),r=n[e%n.length];return pr.set(t,r),r}}class Jt{constructor(){f(this,"id"),f(this,"owner"),f(this,"firstName"),f(this,"lastName"),f(this,"email"),f(this,"emailAddresses"),f(this,"phone"),f(this,"phoneNumbers"),f(this,"picture"),f(this,"externalId"),f(this,"marketingConsent"),f(this,"marketingOptins"),f(this,"title"),f(this,"gender"),f(this,"tags"),f(this,"companyName"),f(this,"jobTitle"),f(this,"address"),f(this,"birthDate"),f(this,"language"),f(this,"languageSpoken"),f(this,"languageUnderstood"),f(this,"additionalFieldsTitle"),f(this,"additionalFields"),f(this,"creationDate"),f(this,"timeZone"),f(this,"fax"),f(this,"notification"),f(this,"reminder"),f(this,"description")}static fromContactDto(e){var n,r,a,i;const o=new Jt;o.id=e.id,o.owner=e.owner,o.firstName=Ce(e.firstName),o.lastName=Ce(e.lastName);let s=[];(n=e.emailAddresses)==null||n.forEach(x=>{s.push($r.fromContactEmailAddressDto(x))}),s.length>0?(o.emailAddresses=s,o.email=s[0].email):o.email=e.email;let c=[];(r=e.phoneNumbers)==null||r.forEach(x=>{c.push(Gr.fromContactPhoneNumberDto(x))}),c.length>0?(o.phoneNumbers=c,o.phone=c[0].number):o.phone=e.phone,e.picture&&(o.picture=_t.fromImageDto(e.picture)),o.externalId=e.externalId,o.marketingConsent=e.marketingConsent,o.title=e.title,o.gender=e.gender,e.marketingOptins&&(o.marketingOptins={},e.marketingOptins.email&&(o.marketingOptins.email={enabled:e.marketingOptins.email.enabled}));let l=[];(a=e.tags)==null||a.forEach(x=>{l.push(Yr.fromContactTagDto(x))}),l.length>0&&(o.tags=l),o.companyName=e.companyName?Ce(e.companyName):void 0,o.jobTitle=e.jobTitle?Ce(e.jobTitle):void 0,e.address&&(o.address=mr.fromAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood;let h=[];if((i=e.additionalFields)==null||i.forEach(x=>{h.push(Zr.fromContactAdditionalFieldDto(x))}),h.length>0&&(o.additionalFields=h),o.additionalFieldsTitle=e.additionalFieldsTitle?Ce(e.additionalFieldsTitle):void 0,e.creationDate){const x=oi(e.creationDate);x.setHours(0,0,0),o.creationDate=x}return o.timeZone=e.timeZone,o.fax=e.fax,o.notification=e.notificationType,o.reminder=e.reminderType,o.description=e.description,o}static toContactDto(e){var n,r,a,i;const o=new Vp;o.id=e.id,o.owner=e.owner,o.firstName=Re(e.firstName),o.lastName=Re(e.lastName);let s=[];(n=e.emailAddresses)==null||n.forEach(x=>{s.push($r.toContactEmailAddressDto(x))}),o.emailAddresses=s,o.email=e.email;let c=[];(r=e.phoneNumbers)==null||r.forEach(x=>{c.push(Gr.toContactPhoneNumberDto(x))}),o.phoneNumbers=c,o.phone=e.phone,e.picture&&(o.picture=_t.toImageDto(e.picture)),o.externalId=e.externalId,e.marketingConsent&&(o.marketingConsent=new fi(e.marketingConsent.text)),o.title=e.title,o.gender=e.gender;let l=[];(a=e.tags)==null||a.forEach(x=>{l.push(Yr.toContactTagDto(x))}),o.tags=l,o.companyName=Re(e.companyName),o.jobTitle=Re(e.jobTitle),e.address&&(o.address=mr.toAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood,o.additionalFieldsTitle=Re(e.additionalFieldsTitle);let h=[];return(i=e.additionalFields)==null||i.forEach(x=>{h.push(Zr.toContactAdditionalFieldDto(x))}),o.additionalFields=h,o.fax=e.fax,o.timeZone=e.timeZone,o.notificationType=e.notification,o.reminderType=e.reminder,o.description=e.description,o}}class Gr{constructor(){f(this,"number"),f(this,"primary"),f(this,"mobile")}static fromContactPhoneNumberDto(e){const n=new Gr;return n.number=e.number,n.primary=e.primary,n.mobile=e.mobile,n}static toContactPhoneNumberDto(e){const n=new qp;return n.number=e.number,n.primary=e.primary,n.mobile=e.mobile,n}}class $r{constructor(){f(this,"email"),f(this,"primary")}static fromContactEmailAddressDto(e){const n=new $r;return n.email=e.email,n.primary=e.primary,n}static toContactEmailAddressDto(e){const n=new Hp;return n.email=e.email,n.primary=e.primary,n}}class Yr{constructor(){f(this,"id"),f(this,"tag"),f(this,"color"),f(this,"textColor")}static fromContactTagDto(e){const n=new Yr;return n.id=e.id,n.tag=Ce(e.tag),n.color=e.color,e.color&&(n.textColor=kl(e.color)),n}static toContactTagDto(e){const n=new Wp;return n.id=e.id,n.tag=Re(e.tag),n.color=e.color,n}}class Zr{constructor(){f(this,"id"),f(this,"name"),f(this,"mandatory"),f(this,"value")}static fromContactAdditionalFieldDto(e){const n=new Zr;return n.id=e.id,n.name=Ce(e.name),n.mandatory=e.mandatory,n.value=Ce(e.value),n}static toContactAdditionalFieldDto(e){const n=new Gp;return n.id=e.id,n.name=Re(e.name),n.mandatory=e.mandatory,n.value=Re(e.value),n}}class Vp{constructor(){f(this,"id"),f(this,"owner"),f(this,"firstName"),f(this,"lastName"),f(this,"email"),f(this,"emailAddresses"),f(this,"phone"),f(this,"phoneNumbers"),f(this,"picture"),f(this,"externalId"),f(this,"marketingConsent"),f(this,"marketingOptins"),f(this,"title"),f(this,"gender"),f(this,"tags"),f(this,"companyName"),f(this,"jobTitle"),f(this,"address"),f(this,"birthDate"),f(this,"language"),f(this,"languageSpoken"),f(this,"languageUnderstood"),f(this,"additionalFieldsTitle"),f(this,"additionalFields"),f(this,"creationDate"),f(this,"timeZone"),f(this,"fax"),f(this,"notificationType"),f(this,"reminderType"),f(this,"description")}}class qp{constructor(){f(this,"number"),f(this,"primary"),f(this,"mobile")}}class Hp{constructor(){f(this,"email"),f(this,"primary")}}class Wp{constructor(){f(this,"id"),f(this,"tag"),f(this,"color")}}class Gp{constructor(){f(this,"id"),f(this,"name"),f(this,"mandatory"),f(this,"value")}}var Al=(t=>(t.PRO="normal",t.PERSO="personal",t.EXTERNAL="external",t.ICS="ics",t))(Al||{});class Rt{constructor(){f(this,"id"),f(this,"owner"),f(this,"company"),f(this,"service"),f(this,"staff"),f(this,"client"),f(this,"start"),f(this,"end"),f(this,"status"),f(this,"type"),f(this,"source"),f(this,"price"),f(this,"paid"),f(this,"notes"),f(this,"summary"),f(this,"form"),f(this,"metaEvent"),f(this,"metaEventId"),f(this,"onlineMeeting"),f(this,"parameters"),f(this,"events"),f(this,"privacyConsent"),f(this,"marketingConsent"),f(this,"location"),f(this,"locationCustom"),f(this,"preparationDuration"),f(this,"bufferDuration")}static fromEventDto(e,n){var r;const a=new Rt;a.id=e.id,e.owner&&(a.owner={id:e.owner.id,userName:e.owner.userName}),e.company&&(a.company={id:e.company.id,name:Ce(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Ce(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Ce(e.staff.firstName),lastName:Ce(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Ce(e.client.firstName),lastName:Ce(e.client.lastName),email:e.client.email}),a.start=oi(e.start.dateTime,e.start.timeZone),a.end=oi(e.end.dateTime,e.end.timeZone),a.status=e.status,a.paid=e.paid,a.type=n||e.type,a.source=e.source,a.price=e.price,a.notes=Ce(e.notes),a.summary=Ce(e.summary);const i=[];if((r=e.form)==null||r.forEach(o=>i.push(Bt.fromFormDto(o))),a.form=i,a.metaEvent=e["meta-event"],a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,a.location=e.location,a.locationCustom=Ce(e.locationCustom),e.events){const o=[];e.events.forEach(s=>o.push(Rt.fromEventDto(s,n))),a.events=o}return a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}static toEventDto(e,n){var r;const a=new $p;a.id=e.id,e.company&&(a.company={id:e.company.id,name:Re(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Re(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Re(e.staff.firstName),lastName:Re(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Re(e.client.firstName),lastName:Re(e.client.lastName),email:e.client.email}),a.start=yl(e.start,n),a.end=yl(e.end,n),a.status=e.status,a.paid=e.paid,a.type=e.type,a.source=e.source,a.price=e.price,a.notes=Re(e.notes),a.summary=Re(e.summary);const i=[];if((r=e.form)==null||r.forEach(o=>i.push(Bt.toFormDto(o))),a.form=i,a["meta-event"]=e.metaEvent,a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,e.events){const o=[];e.events.forEach(s=>o.push(Rt.toEventDto(s,n))),a.events=o}return e.marketingConsent&&(a.marketingConsent=new fi(e.marketingConsent.text)),e.privacyConsent&&(a.privacyConsent=new fi(e.privacyConsent.text)),a.location=e.location,a.locationCustom=Re(e.locationCustom),a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}}class $p{constructor(){f(this,"id"),f(this,"owner"),f(this,"company"),f(this,"service"),f(this,"staff"),f(this,"client"),f(this,"start"),f(this,"end"),f(this,"status"),f(this,"type"),f(this,"source"),f(this,"paid"),f(this,"price"),f(this,"notes"),f(this,"summary"),f(this,"form"),f(this,"meta-event"),f(this,"metaEventId"),f(this,"onlineMeeting"),f(this,"parameters"),f(this,"events"),f(this,"privacyConsent"),f(this,"marketingConsent"),f(this,"location"),f(this,"locationCustom"),f(this,"preparationDuration"),f(this,"bufferDuration")}}class gr{constructor(){f(this,"id"),f(this,"firstName"),f(this,"lastName"),f(this,"picture"),f(this,"anonymous"),f(this,"color"),f(this,"login"),f(this,"checkFilterColor"),f(this,"companies"),f(this,"staffIds")}static fromUserDto(e){const n=new gr;if(n.id=e.id,n.firstName=Ce(e.firstName),n.lastName=Ce(e.lastName),e.picture&&(n.picture=new _t(e.picture.mimeType,e.picture.url)),n.anonymous=!1,n.login=e.login,n.color=Up(e),n.checkFilterColor=n.color?kl(n.color):"white",n.companies=e.companies,n.staffIds=[],e.companies)for(const r of e.companies)r.staffIds&&Array.prototype.push.apply(n.staffIds,r.staffIds);return n}}class cn{constructor(){f(this,"id"),f(this,"name"),f(this,"color"),f(this,"picture"),f(this,"members"),f(this,"parent"),f(this,"externalId"),f(this,"companyId")}static fromServiceGroupDto(e,n){const r=new cn;return r.id=e.id,r.name=Ce(e.name),r.color=e.color,r.picture=_t.fromImageDto(e.picture),e.members&&(r.members=[],e.members.forEach(a=>{var i;(i=r.members)==null||i.push({id:a.id,name:Ce(a.name)})})),e.parent&&(r.parent={id:e.parent.id,name:Ce(e.parent.name)}),r.externalId=e.externalId,r.companyId=n,r}static toServiceGroupDto(e){const n=new Yp;return n.id=e.id,n.name=Re(e.name),n.color=e.color,n.picture=_t.toImageDto(e.picture),e.members&&(n.members=[],e.members.forEach(r=>{var a;(a=n.members)==null||a.push({id:r.id,name:Re(r.name)})})),e.parent&&(n.parent={id:e.parent.id,name:Re(e.parent.name)}),n.externalId=e.externalId,n}}class Yp{constructor(){f(this,"id"),f(this,"name"),f(this,"color"),f(this,"picture"),f(this,"members"),f(this,"parent"),f(this,"externalId")}}class un{constructor(){f(this,"id"),f(this,"name"),f(this,"color"),f(this,"members"),f(this,"workingHours"),f(this,"externalId"),f(this,"companyId")}static fromStaffGroupDto(e,n){const r=new un;return r.id=e.id,r.name=Ce(e.name),r.color=e.color,e.members&&(r.members=[],e.members.forEach(a=>{var i;(i=r.members)==null||i.push(a)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(a=>{var i;return(i=r.workingHours)==null?void 0:i.push(Un.fromSettingsWorkingDayDto(a))})),r.externalId=e.externalId,r.companyId=n,r}static toStaffGroupDto(e){const n=new Zp;return n.id=e.id,n.name=Re(e.name),n.color=e.color,e.members&&(n.members=[],e.members.forEach(r=>{var a;(a=n.members)==null||a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(Un.fromSettingsWorkingDayDto(r))})),n.externalId=e.externalId,n}}class Zp{constructor(){f(this,"id"),f(this,"name"),f(this,"color"),f(this,"members"),f(this,"workingHours"),f(this,"externalId")}}var Se=(t=>(t[t.UNKOWN=0]="UNKOWN",t[t.INTERNAL_ERROR=1]="INTERNAL_ERROR",t[t.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",t[t.INVALID_PARAMETER=3]="INVALID_PARAMETER",t[t.CREDENTIAL_ERROR=100]="CREDENTIAL_ERROR",t[t.USER_ACCOUNT_LOCKED=101]="USER_ACCOUNT_LOCKED",t[t.PASSWORD_POLICY_ERROR=102]="PASSWORD_POLICY_ERROR",t[t.STAFF_NOT_AVAILABLE=1e3]="STAFF_NOT_AVAILABLE",t[t.MAX_APPOINTMENT_DAILY=1001]="MAX_APPOINTMENT_DAILY",t[t.MAX_APPOINTMENT_WEEKLY=1002]="MAX_APPOINTMENT_WEEKLY",t[t.APPOINTMENT_PERIOD_RULE=1003]="APPOINTMENT_PERIOD_RULE",t[t.RESOURCE_NOT_AVAILABLE=1004]="RESOURCE_NOT_AVAILABLE",t[t.DATE_NOT_AVAILABLE=1005]="DATE_NOT_AVAILABLE",t[t.USER_BLOCKED=1006]="USER_BLOCKED",t[t.ACCOUNT_NOT_FOUND=2e3]="ACCOUNT_NOT_FOUND",t[t.ACCOUNT_DISABLED=3003]="ACCOUNT_DISABLED",t))(Se||{});function Kp(t,e){if(e.errorCode)return Se[e.errorCode];if(t==="Appointment")switch(e.reason){case"notFound":return 1e3}return 0}class mi{constructor(){f(this,"errorCode"),f(this,"reason"),f(this,"code"),f(this,"message")}}const dn=new mi;dn.reason="notFound",dn.code=404,dn.message="Not Found";class Te{constructor(e,n){f(this,"errorCode"),f(this,"e"),this.errorCode=e,this.e=n}}const Jp=36e5;var $e=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))($e||{}),Oe=(t=>(t[t.REMOTE_THEN_LOCAL=0]="REMOTE_THEN_LOCAL",t[t.LOCAL_THEN_REMOTE=1]="LOCAL_THEN_REMOTE",t[t.LOCAL_ONLY=2]="LOCAL_ONLY",t[t.REMOTE_ONLY=3]="REMOTE_ONLY",t))(Oe||{});const pi=class{constructor(t,e){f(this,"repositoryName"),f(this,"logger"),this.logger=e,this.repositoryName=t}async list(t,e,n){var r;let a;switch(+e){case 0:return this._listRemoteFirstThenLocal(t,n);case 1:return this._isExpired(pi.lastRemoteList[this.repositoryName])?((r=this.logger)==null||r.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._listRemoteFirstThenLocal(t,n)):this._listLocalFirstThenRemote(t,n);case 2:return a=await this.localList(n),{local:!0,results:a};case 3:return a=await this.remoteList(t,n),await this.localSaveList(n,a),{local:!1,results:a}}throw new Error("Not implemented")}async update(t,e,n,r){switch(+e){case 0:return this._updateRemoteFirstThenLocal(t,n,r);case 3:return await this.remoteUpdate(t,n,r)}throw new Error("Not implemented")}async create(t,e,n,r){switch(+e){case 0:return this._createRemoteFirstThenLocal(t,n,r);case 3:return await this.remoteCreate(t,n,r);case 2:return await this.localBulkSave(n,[r]),r}throw new Error("Not implemented")}async getById(t,e,n){var r,a;let i=!0,o;switch(+e){case 0:const s=await this._getRemoteFirstThenLocal(t,n);o=s.result,i=s.local;break;case 3:i=!1,o=await this.remoteGet(t,n),await this.localSave(n,o);break;case 2:o=await this.localGet(n);break;case 1:try{o=await this.localGet(n)}catch(c){(r=this.logger)==null||r.debug("js-calendar-api","LocalThenRemote localGet error",c)}return!o||!o.lastRemote||this._isExpired(o.lastRemote)?((a=this.logger)==null||a.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._getRemoteFirstThenLocal(t,n)):this._getLocalFirstThenRemote(t,n);default:throw new Error("Not implemented")}return{local:i,result:o}}async deleteById(t,e){await this.remoteDelete(t,e),await this.localDelete(e)}async cascadeDeleteList(t,e){const n=await this.localList(t);if(n){const r=n.filter(e);await this.localBulkDelete(r)}}async cascadeDeleteItem(t){await this.localDelete(t)}async cascadeDelete(t,e,n=!0){n&&e?await this.cascadeDeleteList(t,e):n||await this.cascadeDeleteItem(t)}async _getLocalFirstThenRemote(t,e){var n,r,a,i=!0;try{a=await this.localGet(e)}catch(o){(n=this.logger)==null||n.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(!a){i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`Get ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{result:a,local:i}}async _getRemoteFirstThenLocal(t,e){var n,r;let a,i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){i=!0,(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localGet(e),a===void 0)throw o}catch(s){throw(r=this.logger)==null||r.error("js-calendar-api",`Get ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{result:a,local:i}}async _listRemoteFirstThenLocal(t,e){var n,r;let a=[],i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){i=!0,(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localList(e),a===void 0||a.length===0)throw o}catch(s){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{results:a,local:i}}async _listLocalFirstThenRemote(t,e){var n,r;let a=[],i=!0;try{a=await this.localList(e)}catch(o){(n=this.logger)==null||n.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(a===void 0||a.length===0){i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{results:a,local:i}}async _createRemoteFirstThenLocal(t,e,n){var r;let a;try{a=await this.remoteCreate(t,e,n),await this.localSave(e,a)}catch(i){throw(r=this.logger)==null||r.error("js-calendar-api",`Create ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async _updateRemoteFirstThenLocal(t,e,n){var r;let a;try{a=await this.remoteUpdate(t,e,n),await this.localSave(e,a)}catch(i){throw(r=this.logger)==null||r.error("js-calendar-api",`Update ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async localSaveList(t,e){await this.localBulkSave(t,e),pi.lastRemoteList[this.repositoryName]=new Date().getTime()}async localSave(t,e){await this.localBulkSave(t,[e])}_isExpired(t){return!(t&&t+Jp>new Date().getTime())}getError(t){let e=Se.UNKOWN;return t instanceof mi&&(e=Kp(this.repositoryName,t)),new Te(e,t)}};let Ht=pi;f(Ht,"lastRemoteList",{});class hn{constructor(){f(this,"id"),f(this,"company"),f(this,"name"),f(this,"quantity"),f(this,"availability"),f(this,"services"),f(this,"customWorkingHours")}static fromServiceResourceDto(e,n){var r;const a=new hn;a.name=e.name,a.id=e.id,a.company={id:n},a.quantity=e.quantity,a.availability=e.availability,a.services=e.services;const i=[];return(r=e.customWorkingHours)==null||r.forEach(o=>{i.push(Bn.fromSettingsPeriodWorkingDto(o))}),a.customWorkingHours=i,a}static toServiceResourceDto(e){var n;const r=new Xp;r.id=e.id,r.name=e.name,r.quantity=e.quantity,r.availability=e.availability,r.services=e.services;const a=[];return(n=e.customWorkingHours)==null||n.forEach(i=>{a.push(Bn.toSettingsPeriodWorkingDto(i))}),r.customWorkingHours=a,r}}class Xp{constructor(){f(this,"id"),f(this,"name"),f(this,"quantity"),f(this,"availability"),f(this,"services"),f(this,"customWorkingHours")}}const jn="staff",Vn="service",qn="serviceResource",vr="contact",fn="event",yr="user",Hn="serviceGroup",Wn="staffGroup";var Dl={exports:{}},gi={exports:{}},Tl=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Qp=Tl,mn=Object.prototype.toString;function vi(t){return Array.isArray(t)}function yi(t){return typeof t>"u"}function e0(t){return t!==null&&!yi(t)&&t.constructor!==null&&!yi(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Nl(t){return mn.call(t)==="[object ArrayBuffer]"}function t0(t){return mn.call(t)==="[object FormData]"}function n0(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Nl(t.buffer),e}function r0(t){return typeof t=="string"}function a0(t){return typeof t=="number"}function Ll(t){return t!==null&&typeof t=="object"}function Kr(t){if(mn.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function i0(t){return mn.call(t)==="[object Date]"}function o0(t){return mn.call(t)==="[object File]"}function s0(t){return mn.call(t)==="[object Blob]"}function Ol(t){return mn.call(t)==="[object Function]"}function l0(t){return Ll(t)&&Ol(t.pipe)}function c0(t){return mn.call(t)==="[object URLSearchParams]"}function u0(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function bi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),vi(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function Ei(){var t={};function e(a,i){Kr(t[i])&&Kr(a)?t[i]=Ei(t[i],a):Kr(a)?t[i]=Ei({},a):vi(a)?t[i]=a.slice():t[i]=a}for(var n=0,r=arguments.length;n<r;n++)bi(arguments[n],e);return t}function h0(t,e,n){return bi(e,function(r,a){n&&typeof r=="function"?t[a]=Qp(r,n):t[a]=r}),t}function f0(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var St={isArray:vi,isArrayBuffer:Nl,isBuffer:e0,isFormData:t0,isArrayBufferView:n0,isString:r0,isNumber:a0,isObject:Ll,isPlainObject:Kr,isUndefined:yi,isDate:i0,isFile:o0,isBlob:s0,isFunction:Ol,isStream:l0,isURLSearchParams:c0,isStandardBrowserEnv:d0,forEach:bi,merge:Ei,extend:h0,trim:u0,stripBOM:f0},Gn=St;function Rl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ml=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Gn.isURLSearchParams(e))r=e.toString();else{var a=[];Gn.forEach(e,function(o,s){o===null||typeof o>"u"||(Gn.isArray(o)?s=s+"[]":o=[o],Gn.forEach(o,function(c){Gn.isDate(c)?c=c.toISOString():Gn.isObject(c)&&(c=JSON.stringify(c)),a.push(Rl(s)+"="+Rl(c))}))}),r=a.join("&")}if(r){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},m0=St;function Jr(){this.handlers=[]}Jr.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Jr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Jr.prototype.forEach=function(t){m0.forEach(this.handlers,function(e){e!==null&&t(e)})};var p0=Jr,g0=St,v0=function(t,e){g0.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})},Pl=function(t,e,n,r,a){return t.config=e,n&&(t.code=n),t.request=r,t.response=a,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Fl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xi,zl;function Bl(){if(zl)return xi;zl=1;var t=Pl;return xi=function(e,n,r,a,i){var o=new Error(e);return t(o,n,r,a,i)},xi}var wi,Ul;function y0(){if(Ul)return wi;Ul=1;var t=Bl();return wi=function(e,n,r){var a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):n(t("Request failed with status code "+r.status,r.config,null,r.request,r))},wi}var _i,jl;function b0(){if(jl)return _i;jl=1;var t=St;return _i=t.isStandardBrowserEnv()?function(){return{write:function(e,n,r,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),t.isString(a)&&s.push("path="+a),t.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),_i}var Vl,ql;function E0(){return ql||(ql=1,Vl=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Vl}var Hl,Wl;function x0(){return Wl||(Wl=1,Hl=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),Hl}var Si,Gl;function w0(){if(Gl)return Si;Gl=1;var t=E0(),e=x0();return Si=function(n,r){return n&&!t(r)?e(n,r):r},Si}var Ii,$l;function _0(){if($l)return Ii;$l=1;var t=St,e=["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"];return Ii=function(n){var r={},a,i,o;return n&&t.forEach(n.split(`
|
|
36
|
+
`),function(s){if(o=s.indexOf(":"),a=t.trim(s.substr(0,o)).toLowerCase(),i=t.trim(s.substr(o+1)),a){if(r[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?r[a]=(r[a]?r[a]:[]).concat([i]):r[a]=r[a]?r[a]+", "+i:i}}),r},Ii}var Ci,Yl;function S0(){if(Yl)return Ci;Yl=1;var t=St;return Ci=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function a(i){var o=i;return e&&(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=a(window.location.href),function(i){var o=t.isString(i)?a(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),Ci}var ki,Zl;function Xr(){if(Zl)return ki;Zl=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,ki=t,ki}var Ai,Kl;function I0(){if(Kl)return Ai;Kl=1;var t=St,e=y0(),n=b0(),r=Ml,a=w0(),i=_0(),o=S0(),s=Bl(),c=Fl,l=Xr();return Ai=function(h){return new Promise(function(x,y){var w=h.data,S=h.headers,C=h.responseType,N;function k(){h.cancelToken&&h.cancelToken.unsubscribe(N),h.signal&&h.signal.removeEventListener("abort",N)}t.isFormData(w)&&delete S["Content-Type"];var E=new XMLHttpRequest;if(h.auth){var D=h.auth.username||"",I=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";S.Authorization="Basic "+btoa(D+":"+I)}var T=a(h.baseURL,h.url);E.open(h.method.toUpperCase(),r(T,h.params,h.paramsSerializer),!0),E.timeout=h.timeout;function P(){if(E){var Y="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,Q=!C||C==="text"||C==="json"?E.responseText:E.response,B={data:Q,status:E.status,statusText:E.statusText,headers:Y,config:h,request:E};e(function(W){x(W),k()},function(W){y(W),k()},B),E=null}}if("onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){!E||(y(s("Request aborted",h,"ECONNABORTED",E)),E=null)},E.onerror=function(){y(s("Network Error",h,null,E)),E=null},E.ontimeout=function(){var Y=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",Q=h.transitional||c;h.timeoutErrorMessage&&(Y=h.timeoutErrorMessage),y(s(Y,h,Q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},t.isStandardBrowserEnv()){var z=(h.withCredentials||o(T))&&h.xsrfCookieName?n.read(h.xsrfCookieName):void 0;z&&(S[h.xsrfHeaderName]=z)}"setRequestHeader"in E&&t.forEach(S,function(Y,Q){typeof w>"u"&&Q.toLowerCase()==="content-type"?delete S[Q]:E.setRequestHeader(Q,Y)}),t.isUndefined(h.withCredentials)||(E.withCredentials=!!h.withCredentials),C&&C!=="json"&&(E.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&E.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(N=function(Y){!E||(y(!Y||Y&&Y.type?new l("canceled"):Y),E.abort(),E=null)},h.cancelToken&&h.cancelToken.subscribe(N),h.signal&&(h.signal.aborted?N():h.signal.addEventListener("abort",N))),w||(w=null),E.send(w)})},Ai}var dt=St,Jl=v0,C0=Pl,k0=Fl,A0={"Content-Type":"application/x-www-form-urlencoded"};function Xl(t,e){!dt.isUndefined(t)&&dt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function D0(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=I0()),t}function T0(t,e,n){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var Qr={transitional:k0,adapter:D0(),transformRequest:[function(t,e){return Jl(e,"Accept"),Jl(e,"Content-Type"),dt.isFormData(t)||dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)?t:dt.isArrayBufferView(t)?t.buffer:dt.isURLSearchParams(t)?(Xl(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):dt.isObject(t)||e&&e["Content-Type"]==="application/json"?(Xl(e,"application/json"),T0(t)):t}],transformResponse:[function(t){var e=this.transitional||Qr.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&dt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?C0(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};dt.forEach(["delete","get","head"],function(t){Qr.headers[t]={}}),dt.forEach(["post","put","patch"],function(t){Qr.headers[t]=dt.merge(A0)});var Di=Qr,N0=St,L0=Di,O0=function(t,e,n){var r=this||L0;return N0.forEach(n,function(a){t=a.call(r,t,e)}),t},Ql,ec;function tc(){return ec||(ec=1,Ql=function(t){return!!(t&&t.__CANCEL__)}),Ql}var nc=St,Ti=O0,R0=tc(),M0=Di,P0=Xr();function Ni(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new P0("canceled")}var F0=function(t){Ni(t),t.headers=t.headers||{},t.data=Ti.call(t,t.data,t.headers,t.transformRequest),t.headers=nc.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),nc.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var e=t.adapter||M0.adapter;return e(t).then(function(n){return Ni(t),n.data=Ti.call(t,n.data,n.headers,t.transformResponse),n},function(n){return R0(n)||(Ni(t),n&&n.response&&(n.response.data=Ti.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},Ct=St,rc=function(t,e){e=e||{};var n={};function r(l,h){return Ct.isPlainObject(l)&&Ct.isPlainObject(h)?Ct.merge(l,h):Ct.isPlainObject(h)?Ct.merge({},h):Ct.isArray(h)?h.slice():h}function a(l){if(Ct.isUndefined(e[l])){if(!Ct.isUndefined(t[l]))return r(void 0,t[l])}else return r(t[l],e[l])}function i(l){if(!Ct.isUndefined(e[l]))return r(void 0,e[l])}function o(l){if(Ct.isUndefined(e[l])){if(!Ct.isUndefined(t[l]))return r(void 0,t[l])}else return r(void 0,e[l])}function s(l){if(l in e)return r(t[l],e[l]);if(l in t)return r(void 0,t[l])}var c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return Ct.forEach(Object.keys(t).concat(Object.keys(e)),function(l){var h=c[l]||a,x=h(l);Ct.isUndefined(x)&&h!==s||(n[l]=x)}),n},ac,ic;function oc(){return ic||(ic=1,ac={version:"0.26.1"}),ac}var z0=oc().version,Li={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Li[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var sc={};Li.transitional=function(t,e,n){function r(a,i){return"[Axios v"+z0+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return function(a,i,o){if(t===!1)throw new Error(r(i," has been removed"+(e?" in "+e:"")));return e&&!sc[i]&&(sc[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(a,i,o):!0}};function B0(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var r=Object.keys(t),a=r.length;a-- >0;){var i=r[a],o=e[i];if(o){var s=t[i],c=s===void 0||o(s,i,t);if(c!==!0)throw new TypeError("option "+i+" must be "+c);continue}if(n!==!0)throw Error("Unknown option "+i)}}var U0={assertOptions:B0,validators:Li},lc=St,j0=Ml,cc=p0,uc=F0,ea=rc,dc=U0,$n=dc.validators;function br(t){this.defaults=t,this.interceptors={request:new cc,response:new cc}}br.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ea(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&dc.assertOptions(n,{silentJSONParsing:$n.transitional($n.boolean),forcedJSONParsing:$n.transitional($n.boolean),clarifyTimeoutError:$n.transitional($n.boolean)},!1);var r=[],a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(e)===!1||(a=a&&x.synchronous,r.unshift(x.fulfilled,x.rejected))});var i=[];this.interceptors.response.forEach(function(x){i.push(x.fulfilled,x.rejected)});var o;if(!a){var s=[uc,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=e;r.length;){var l=r.shift(),h=r.shift();try{c=l(c)}catch(x){h(x);break}}try{o=uc(c)}catch(x){return Promise.reject(x)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},br.prototype.getUri=function(t){return t=ea(this.defaults,t),j0(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},lc.forEach(["delete","get","head","options"],function(t){br.prototype[t]=function(e,n){return this.request(ea(n||{},{method:t,url:e,data:(n||{}).data}))}}),lc.forEach(["post","put","patch"],function(t){br.prototype[t]=function(e,n,r){return this.request(ea(r||{},{method:t,url:e,data:n}))}});var V0=br,Oi,hc;function q0(){if(hc)return Oi;hc=1;var t=Xr();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(c){a.subscribe(c),o=c}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},n(function(i){a.reason||(a.reason=new t(i),r(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},e.prototype.unsubscribe=function(n){if(this._listeners){var r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}},e.source=function(){var n,r=new e(function(a){n=a});return{token:r,cancel:n}},Oi=e,Oi}var fc,mc;function H0(){return mc||(mc=1,fc=function(t){return function(e){return t.apply(null,e)}}),fc}var Ri,pc;function W0(){if(pc)return Ri;pc=1;var t=St;return Ri=function(e){return t.isObject(e)&&e.isAxiosError===!0},Ri}var gc=St,G0=Tl,ta=V0,$0=rc,Y0=Di;function vc(t){var e=new ta(t),n=G0(ta.prototype.request,e);return gc.extend(n,ta.prototype,e),gc.extend(n,e),n.create=function(r){return vc($0(t,r))},n}var Wt=vc(Y0);Wt.Axios=ta,Wt.Cancel=Xr(),Wt.CancelToken=q0(),Wt.isCancel=tc(),Wt.VERSION=oc().version,Wt.all=function(t){return Promise.all(t)},Wt.spread=H0(),Wt.isAxiosError=W0(),gi.exports=Wt,gi.exports.default=Wt,function(t){t.exports=gi.exports}(Dl);const yc=Op(Dl.exports);class Z0{constructor(){f(this,"printQueue"),this.printQueue=[]}makeUrl(e,n){return e&&(n&&(e=this.combineURLs(n,e)),this.printQueue.push(e)),this}makeParams(e){return e&&this.printQueue.push(JSON.stringify(e)),this}makeMethod(e){return e&&this.printQueue.push(e.toUpperCase()),this}makeData(e){const n=typeof e=="string"?e:JSON.stringify(e);return e&&this.printQueue.push(n),this}makeStatus(e,n){return e&&n?this.printQueue.push(`${e}:${n}`):e?this.printQueue.push(`${e}`):n&&this.printQueue.push(n),this}build(){const e=this.printQueue.join(" ");return this.printQueue=[],e}combineURLs(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}}const K0=["get_/api/2.3/clients","get_/api/2.3/clients/search","get_/api/2.3/audit/logs","get_/api/2.3/scheduling/workinghours"];class Xt{constructor(e,n,r){f(this,"authenticationService"),f(this,"logger"),f(this,"bearerCall",!1),f(this,"instance"),f(this,"axiosLoggerBuilder"),f(this,"baseUrl"),f(this,"abortControllers",new Map),f(this,"_initializeRequestInterceptor",()=>{this.instance.interceptors.request.use(this._handleRequest)}),f(this,"_handleRequest",a=>{var i;const o=(a.method+"_"+a.url).toLowerCase();if(K0.includes(o.indexOf("?")!==-1?o.substring(0,o.indexOf("?")):o)){const s=new AbortController;a.signal=s.signal,this.abortControllers.has(o)&&((i=this.abortControllers.get(o))==null||i.abort()),this.abortControllers.set(o,s)}return a}),f(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleRefreshToken)}),f(this,"_handleResponse",a=>{var i,o,s,c,l;if(this.logger){const h=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((c=a.config)==null?void 0:c.params).makeStatus(a.status,a.statusText).makeData(this.filteredDataLog((l=a.config)==null?void 0:l.data)).makeData(this.filteredDataLog(a.data)).build();this.logger.debug("js-calendar-api",h)}return a.data}),f(this,"_handleError",a=>{var i,o,s,c,l,h,x,y,w,S;if(this.logger){const C=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((c=a.config)==null?void 0:c.params).makeStatus((l=a.response)==null?void 0:l.status,(h=a.response)==null?void 0:h.statusText).makeData((x=a.config)==null?void 0:x.data).makeData((y=a.response)==null?void 0:y.data).build();this.logger.error("js-calendar-api",C)}if(yc.isAxiosError(a)&&((S=(w=a.response)==null?void 0:w.data)==null?void 0:S.error)){const C=Object.assign(new mi,a.response.data.error);return Promise.reject(C)}else return Promise.reject(a)}),f(this,"_handleRefreshToken",async a=>{if(!this.bearerCall&&a.response){const i=a.config;if(a.response.status===401||a.response.status===400&&a.response.data&&a.response.data.error&&a.response.data.error.message&&a.response.data.error.message.indexOf("Required parameter apiKey not found")>-1)if(i._retry)this.authenticationService.logout().finally(()=>window.location.href="/");else{i._retry=!0;try{return await this.authenticationService.refreshToken(),this.instance(i)}catch{this.authenticationService.logout().finally(()=>window.location.href="/")}}}return this._handleError(a)}),this.authenticationService=n,this.logger=r,this.baseUrl=e,this.instance=yc.create({baseURL:e}),this.axiosLoggerBuilder=new Z0,this._initializeRequestInterceptor(),this._initializeResponseInterceptor()}filteredDataLog(e){return e}getAxiosConfig(e){var n={};return e?(this.bearerCall=!0,n={headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},params:{}}):(this.bearerCall=!1,n={headers:{"Content-Type":"application/json"},params:{},withCredentials:!0}),n}}var Ne={};/*! *****************************************************************************
|
|
37
37
|
Copyright (C) Microsoft. All rights reserved.
|
|
38
38
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
39
39
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -46,7 +46,7 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placehold
|
|
|
46
46
|
|
|
47
47
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
48
48
|
and limitations under the License.
|
|
49
|
-
***************************************************************************** */var nc;(function(t){(function(e){var r=typeof Ae=="object"?Ae:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=a(t);typeof r.Reflect>"u"?r.Reflect=t:n=a(r.Reflect,n),e(n);function a(i,o){return function(s,l){typeof i[s]!="function"&&Object.defineProperty(i,s,{configurable:!0,writable:!0,value:l}),o&&o(s,l)}}})(function(e){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",a=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,l=!o&&!s,u={create:o?function(){return m(Object.create(null))}:s?function(){return m({__proto__:null})}:function(){return m({})},has:l?function(h,p){return r.call(h,p)}:function(h,p){return p in h},get:l?function(h,p){return r.call(h,p)?h[p]:void 0}:function(h,p){return h[p]}},f=Object.getPrototypeOf(Function),x=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!x&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:c(),w=!x&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:v(),S=!x&&typeof WeakMap=="function"?WeakMap:d(),T=new S;function N(h,p,k,R){if(F(k)){if(!Ie(h))throw new TypeError;if(!ae(p))throw new TypeError;return B(h,p)}else{if(!Ie(h))throw new TypeError;if(!J(p))throw new TypeError;if(!J(R)&&!F(R)&&!ee(R))throw new TypeError;return ee(R)&&(R=void 0),k=Be(k),G(h,p,k,R)}}e("decorate",N);function C(h,p){function k(R,U){if(!J(R))throw new TypeError;if(!F(U)&&!_(U))throw new TypeError;V(h,p,R,U)}return k}e("metadata",C);function E(h,p,k,R){if(!J(k))throw new TypeError;return F(R)||(R=Be(R)),V(h,p,k,R)}e("defineMetadata",E);function A(h,p,k){if(!J(p))throw new TypeError;return F(k)||(k=Be(k)),L(h,p,k)}e("hasMetadata",A);function I(h,p,k){if(!J(p))throw new TypeError;return F(k)||(k=Be(k)),q(h,p,k)}e("hasOwnMetadata",I);function D(h,p,k){if(!J(p))throw new TypeError;return F(k)||(k=Be(k)),$(h,p,k)}e("getMetadata",D);function P(h,p,k){if(!J(p))throw new TypeError;return F(k)||(k=Be(k)),j(h,p,k)}e("getOwnMetadata",P);function z(h,p){if(!J(h))throw new TypeError;return F(p)||(p=Be(p)),Z(h,p)}e("getMetadataKeys",z);function Y(h,p){if(!J(h))throw new TypeError;return F(p)||(p=Be(p)),se(h,p)}e("getOwnMetadataKeys",Y);function Q(h,p,k){if(!J(p))throw new TypeError;F(k)||(k=Be(k));var R=re(p,k,!1);if(F(R)||!R.delete(h))return!1;if(R.size>0)return!0;var U=T.get(p);return U.delete(k),U.size>0||T.delete(p),!0}e("deleteMetadata",Q);function B(h,p){for(var k=h.length-1;k>=0;--k){var R=h[k],U=R(p);if(!F(U)&&!ee(U)){if(!ae(U))throw new TypeError;p=U}}return p}function G(h,p,k,R){for(var U=h.length-1;U>=0;--U){var H=h[U],K=H(p,k,R);if(!F(K)&&!ee(K)){if(!J(K))throw new TypeError;R=K}}return R}function re(h,p,k){var R=T.get(h);if(F(R)){if(!k)return;R=new y,T.set(h,R)}var U=R.get(p);if(F(U)){if(!k)return;U=new y,R.set(p,U)}return U}function L(h,p,k){var R=q(h,p,k);if(R)return!0;var U=M(p);return ee(U)?!1:L(h,U,k)}function q(h,p,k){var R=re(p,k,!1);return F(R)?!1:Oe(R.has(h))}function $(h,p,k){var R=q(h,p,k);if(R)return j(h,p,k);var U=M(p);if(!ee(U))return $(h,U,k)}function j(h,p,k){var R=re(p,k,!1);if(!F(R))return R.get(h)}function V(h,p,k,R){var U=re(k,R,!0);U.set(h,p)}function Z(h,p){var k=se(h,p),R=M(h);if(R===null)return k;var U=Z(R,p);if(U.length<=0)return k;if(k.length<=0)return U;for(var H=new w,K=[],X=0,oe=k;X<oe.length;X++){var fe=oe[X],pe=H.has(fe);pe||(H.add(fe),K.push(fe))}for(var ve=0,Se=U;ve<Se.length;ve++){var fe=Se[ve],pe=H.has(fe);pe||(H.add(fe),K.push(fe))}return K}function se(h,p){var k=[],R=re(h,p,!1);if(F(R))return k;for(var U=R.keys(),H=O(U),K=0;;){var X=le(H);if(!X)return k.length=K,k;var oe=te(X);try{k[K]=oe}catch(fe){try{de(H)}finally{throw fe}}K++}}function ie(h){if(h===null)return 1;switch(typeof h){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return h===null?1:6;default:return 6}}function F(h){return h===void 0}function ee(h){return h===null}function ne(h){return typeof h=="symbol"}function J(h){return typeof h=="object"?h!==null:typeof h=="function"}function we(h,p){switch(ie(h)){case 0:return h;case 1:return h;case 2:return h;case 3:return h;case 4:return h;case 5:return h}var k=p===3?"string":p===5?"number":"default",R=b(h,a);if(R!==void 0){var U=R.call(h,k);if(J(U))throw new TypeError;return U}return _e(h,k==="default"?"number":k)}function _e(h,p){if(p==="string"){var k=h.toString;if(W(k)){var R=k.call(h);if(!J(R))return R}var U=h.valueOf;if(W(U)){var R=U.call(h);if(!J(R))return R}}else{var U=h.valueOf;if(W(U)){var R=U.call(h);if(!J(R))return R}var H=h.toString;if(W(H)){var R=H.call(h);if(!J(R))return R}}throw new TypeError}function Oe(h){return!!h}function ye(h){return""+h}function Be(h){var p=we(h,3);return ne(p)?p:ye(p)}function Ie(h){return Array.isArray?Array.isArray(h):h instanceof Object?h instanceof Array:Object.prototype.toString.call(h)==="[object Array]"}function W(h){return typeof h=="function"}function ae(h){return typeof h=="function"}function _(h){switch(ie(h)){case 3:return!0;case 4:return!0;default:return!1}}function b(h,p){var k=h[p];if(k!=null){if(!W(k))throw new TypeError;return k}}function O(h){var p=b(h,i);if(!W(p))throw new TypeError;var k=p.call(h);if(!J(k))throw new TypeError;return k}function te(h){return h.value}function le(h){var p=h.next();return p.done?!1:p}function de(h){var p=h.return;p&&p.call(h)}function M(h){var p=Object.getPrototypeOf(h);if(typeof h!="function"||h===f||p!==f)return p;var k=h.prototype,R=k&&Object.getPrototypeOf(k);if(R==null||R===Object.prototype)return p;var U=R.constructor;return typeof U!="function"||U===h?p:U}function c(){var h={},p=[],k=function(){function K(X,oe,fe){this._index=0,this._keys=X,this._values=oe,this._selector=fe}return K.prototype["@@iterator"]=function(){return this},K.prototype[i]=function(){return this},K.prototype.next=function(){var X=this._index;if(X>=0&&X<this._keys.length){var oe=this._selector(this._keys[X],this._values[X]);return X+1>=this._keys.length?(this._index=-1,this._keys=p,this._values=p):this._index++,{value:oe,done:!1}}return{value:void 0,done:!0}},K.prototype.throw=function(X){throw this._index>=0&&(this._index=-1,this._keys=p,this._values=p),X},K.prototype.return=function(X){return this._index>=0&&(this._index=-1,this._keys=p,this._values=p),{value:X,done:!0}},K}();return function(){function K(){this._keys=[],this._values=[],this._cacheKey=h,this._cacheIndex=-2}return Object.defineProperty(K.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),K.prototype.has=function(X){return this._find(X,!1)>=0},K.prototype.get=function(X){var oe=this._find(X,!1);return oe>=0?this._values[oe]:void 0},K.prototype.set=function(X,oe){var fe=this._find(X,!0);return this._values[fe]=oe,this},K.prototype.delete=function(X){var oe=this._find(X,!1);if(oe>=0){for(var fe=this._keys.length,pe=oe+1;pe<fe;pe++)this._keys[pe-1]=this._keys[pe],this._values[pe-1]=this._values[pe];return this._keys.length--,this._values.length--,X===this._cacheKey&&(this._cacheKey=h,this._cacheIndex=-2),!0}return!1},K.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=h,this._cacheIndex=-2},K.prototype.keys=function(){return new k(this._keys,this._values,R)},K.prototype.values=function(){return new k(this._keys,this._values,U)},K.prototype.entries=function(){return new k(this._keys,this._values,H)},K.prototype["@@iterator"]=function(){return this.entries()},K.prototype[i]=function(){return this.entries()},K.prototype._find=function(X,oe){return this._cacheKey!==X&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=X)),this._cacheIndex<0&&oe&&(this._cacheIndex=this._keys.length,this._keys.push(X),this._values.push(void 0)),this._cacheIndex},K}();function R(K,X){return K}function U(K,X){return X}function H(K,X){return[K,X]}}function v(){return function(){function h(){this._map=new y}return Object.defineProperty(h.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),h.prototype.has=function(p){return this._map.has(p)},h.prototype.add=function(p){return this._map.set(p,p),this},h.prototype.delete=function(p){return this._map.delete(p)},h.prototype.clear=function(){this._map.clear()},h.prototype.keys=function(){return this._map.keys()},h.prototype.values=function(){return this._map.values()},h.prototype.entries=function(){return this._map.entries()},h.prototype["@@iterator"]=function(){return this.keys()},h.prototype[i]=function(){return this.keys()},h}()}function d(){var h=16,p=u.create(),k=R();return function(){function oe(){this._key=R()}return oe.prototype.has=function(fe){var pe=U(fe,!1);return pe!==void 0?u.has(pe,this._key):!1},oe.prototype.get=function(fe){var pe=U(fe,!1);return pe!==void 0?u.get(pe,this._key):void 0},oe.prototype.set=function(fe,pe){var ve=U(fe,!0);return ve[this._key]=pe,this},oe.prototype.delete=function(fe){var pe=U(fe,!1);return pe!==void 0?delete pe[this._key]:!1},oe.prototype.clear=function(){this._key=R()},oe}();function R(){var oe;do oe="@@WeakMap@@"+X();while(u.has(p,oe));return p[oe]=!0,oe}function U(oe,fe){if(!r.call(oe,k)){if(!fe)return;Object.defineProperty(oe,k,{value:u.create()})}return oe[k]}function H(oe,fe){for(var pe=0;pe<fe;++pe)oe[pe]=Math.random()*255|0;return oe}function K(oe){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(oe)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(oe)):H(new Uint8Array(oe),oe):H(new Array(oe),oe)}function X(){var oe=K(h);oe[6]=oe[6]&79|64,oe[8]=oe[8]&191|128;for(var fe="",pe=0;pe<h;++pe){var ve=oe[pe];(pe===4||pe===6||pe===8)&&(fe+="-"),ve<16&&(fe+="0"),fe+=ve.toString(16).toLowerCase()}return fe}}function m(h){return h.__=void 0,delete h.__,h}})})(nc||(nc={}));var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.Channel=void 0;var k1=function(){function t(){this.subscriptions=new Map}return t.prototype.publish=function(e,r){var n=this,a=this.subscriptions.get(e);a&&a.forEach(function(i){i(r,e,n,i)})},t.prototype.subscribe=function(e,r){var n=this.subscriptions.get(e);n||(n=[],this.subscriptions.set(e,n)),n.push(r)},t.prototype.unsubscribe=function(e,r){var n=this.subscriptions.get(e);n&&(n=n.filter(function(a){return a!==r}),n.length?this.subscriptions.set(e,n):this.subscriptions.delete(e))},t.prototype.unsubscribeAll=function(){this.subscriptions.clear()},t}();pn.Channel=k1;var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.PubSub=void 0;var A1=pn;gn.PubSub=new A1.Channel;var Kn={},fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.SUBSCRIPTIONS_METADATA_KEY=fr.CHANNEL_METADATA_KEY=void 0,fr.CHANNEL_METADATA_KEY=Symbol("pubsub:channel"),fr.SUBSCRIPTIONS_METADATA_KEY=Symbol("pubsub:subscriptions"),Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.Subscribe=void 0;var ac=fr;function D1(t){return function(e,r,n){var a=Reflect.getMetadata(ac.SUBSCRIPTIONS_METADATA_KEY,e)||new Set;a.add({message:t,handler:n.value}),Reflect.defineMetadata(ac.SUBSCRIPTIONS_METADATA_KEY,a,e)}}Kn.Subscribe=D1;var Xn={},N1=Ae&&Ae.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.Subscriber=void 0;var ki=fr,O1=gn;function R1(t){var e=(t==null?void 0:t.channel)||O1.PubSub;return function(r){Reflect.defineMetadata(ki.CHANNEL_METADATA_KEY,e,r.prototype);var n=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=r,s=new(o.bind.apply(o,N1([void 0],a))),l=Reflect.getMetadata(ki.SUBSCRIPTIONS_METADATA_KEY,r.prototype);if(l){var u=[];Reflect.defineMetadata(ki.SUBSCRIPTIONS_METADATA_KEY,u,s),l.forEach(function(f){var x=f.handler.bind(s);u.push({message:f.message,handler:x}),e.subscribe(f.message,x)})}return s};return n.prototype=r.prototype,t!=null&&t.createInstance&&new n(t.constructorParameters),n}}Xn.Subscriber=R1;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Unsubscribe=void 0;var ic=fr;function L1(){return function(t,e,r){var n=r.value;return r.value=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=Reflect.getMetadata(ic.CHANNEL_METADATA_KEY,t),s=Reflect.getMetadata(ic.SUBSCRIPTIONS_METADATA_KEY,this);return o&&s&&s.forEach(function(l){o.unsubscribe(l.message,l.handler)}),n(a)},r}}Qn.Unsubscribe=L1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Unsubscribe=t.Subscriber=t.Subscribe=t.PubSub=t.Channel=void 0;var e=pn;Object.defineProperty(t,"Channel",{enumerable:!0,get:function(){return e.Channel}});var r=gn;Object.defineProperty(t,"PubSub",{enumerable:!0,get:function(){return r.PubSub}});var n=Kn;Object.defineProperty(t,"Subscribe",{enumerable:!0,get:function(){return n.Subscribe}});var a=Xn;Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return a.Subscriber}});var i=Qn;Object.defineProperty(t,"Unsubscribe",{enumerable:!0,get:function(){return i.Unsubscribe}})}(Me);const _t=new Me.Channel;class M1 extends xr{async getAllStaffs(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createStaff(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateStaff(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async patchAllStaff(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`;const o=this.instance.patch(i,a,this.getAxiosConfig(e));if(o!==null)try{await o;return}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class oc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllStaffs(e){return(await this.indexedDb.getAllValue(zr)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async getById(e,r){var n;const a=await this.indexedDb.getValue(zr,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async saveAllStaffs(e){await this.indexedDb.putBulkValue(zr,e)}async deleteById(e,r){await this.indexedDb.deleteValue(zr,r)}async deleteByStaffIds(e){await this.indexedDb.deleteValues(zr,e)}async drop(){await this.indexedDb.deleteAllValues(zr)}updateServiceSkills(e,r,n){this.getAllStaffs(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.servicesSkill)==null?void 0:s.includes(r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.servicesSkill)==null?void 0:s.findIndex(x=>x===r);f!=null&&(n?(l=o.servicesSkill)==null||l.splice(f,1,n):(u=o.servicesSkill)==null||u.splice(f,1))}),await this.saveAllStaffs(i))})}}var P1=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,Ai=(t,e,r,n)=>{for(var a=n>1?void 0:n?F1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&P1(e,r,a),a};const vn=new Me.Channel;let ea=class extends lr{constructor(t,e,r,n){super("staff",n),g(this,"staffDb"),g(this,"staffService"),this.staffDb=new oc(e),this.staffService=new M1(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllStaffs(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getStaff(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,staffId:n})}async createStaff(t,e,r,n){const a=await this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return vn.publish(Ke.CREATE,{account:e,companyId:r,staff:a}),a}async updateStaff(t,e,r,n,a){const i=await this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,staffId:n},a);return vn.publish(Ke.UPDATE,{account:e,companyId:r,staffId:n,staff:i}),i}async patchAllStaff(t,e,r,n,a){let i=new Yt;return n&&(i.workingHours=n),a&&(i.vacations=a),await this.staffService.patchAllStaff(t,e,r,i),this.getAllStaffs(t,e,r,Le.REMOTE_THEN_LOCAL)}async deleteStaff(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,staffId:n}),vn.publish(Ke.DELETE,{account:e,companyId:r,staffId:n})}async remoteList(t,e){return(await this.staffService.getAllStaffs(t,e.account,e.companyId)).map(r=>Yt.fromStaffDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.staffService.getById(t,e.account,e.companyId,e.staffId);return Yt.fromStaffDto(r)}async remoteCreate(t,e,r){const n=Yt.toStaffDto(r),a=await this.staffService.createStaff(t,e.account,e.companyId,n);return Yt.fromStaffDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=Yt.toStaffDto(r),a=await this.staffService.updateStaff(t,e.account,e.companyId,e.staffId,n);return Yt.fromStaffDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.staffService.delete(t,e.account,e.companyId,e.staffId)}async localList(t){return this.staffDb.getAllStaffs(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffDb.getById(t.companyId,t.staffId)}async localBulkSave(t,e){await this.staffDb.saveAllStaffs(e)}async localDelete(t){this.checkNullable(t),await this.staffDb.deleteById(t.companyId,t.staffId)}async localBulkDelete(t){await this.staffDb.deleteByStaffIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffId)throw Error("Invalid state:"+JSON.stringify(t))}};Ai([Me.Unsubscribe()],ea.prototype,"dispose",1),Ai([Me.Subscribe(Ke.DELETE)],ea.prototype,"onCascadeDelete",1),ea=Ai([Me.Subscriber({channel:_t})],ea);class z1 extends xr{async getAllServices(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/services?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createService(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateService(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class sc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServiceGroups(e){return(await this.indexedDb.getAllValue(Vr)||[]).filter(r=>r.companyId===e)}async saveAllServiceGroups(e){await this.indexedDb.putBulkValue(Vr,e)}async getById(e,r){const n=await this.indexedDb.getValue(Vr,r);if((n==null?void 0:n.companyId)===e)return n;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Vr,r),new oc(this.indexedDb).updateServiceSkills(e,r,void 0)}async deleteByServiceGroupIds(e){await this.indexedDb.deleteValues(Vr,e)}async drop(){await this.indexedDb.deleteAllValues(Vr)}updateServices(e,r,n){this.getAllServiceGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.members)==null?void 0:s.findIndex(x=>x.id===r);f!=null&&(n?(l=o.members)==null||l.splice(f,1,n):(u=o.members)==null||u.splice(f,1))}),await this.saveAllServiceGroups(i))})}}class lc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServices(e){return(await this.indexedDb.getAllValue(Br)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async saveAllServices(e){await this.indexedDb.putBulkValue(Br,e)}async getById(e,r){var n;const a=await this.indexedDb.getValue(Br,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Br,r),new sc(this.indexedDb).updateServices(e,r,void 0)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Br,e)}async drop(){await this.indexedDb.deleteAllValues(Br)}updateStaffSkills(e,r,n){this.getAllServices(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.staffsSkill)==null?void 0:s.includes(r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.staffsSkill)==null?void 0:s.findIndex(x=>x===r);f!=null&&(n?(l=o.staffsSkill)==null||l.splice(f,1,n):(u=o.staffsSkill)==null||u.splice(f,1))}),await this.saveAllServices(i))})}}var B1=Object.defineProperty,U1=Object.getOwnPropertyDescriptor,Di=(t,e,r,n)=>{for(var a=n>1?void 0:n?U1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&B1(e,r,a),a};const yn=new Me.Channel;let ta=class extends lr{constructor(t,e,r,n){super("service",n),g(this,"serviceDb"),g(this,"serviceService"),this.serviceDb=new lc(e),this.serviceService=new z1(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServices(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getService(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceId:n})}async createService(t,e,r,n){const a=await super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return yn.publish(Ke.CREATE,{account:e,companyId:r,service:a}),a}async updateService(t,e,r,n,a){const i=await super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceId:n},a);return yn.publish(Ke.UPDATE,{account:e,companyId:r,serviceId:n,service:i}),i}async deleteService(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,serviceId:n}),yn.publish(Ke.DELETE,{account:e,companyId:r,serviceId:n})}async remoteList(t,e){return(await this.serviceService.getAllServices(t,e.account,e.companyId)).map(r=>ar.fromServiceDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceService.getById(t,e.account,e.companyId,e.serviceId);return ar.fromServiceDto(r)}async remoteCreate(t,e,r){const n=ar.toServiceDto(r),a=await this.serviceService.createService(t,e.account,e.companyId,n);return ar.fromServiceDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=ar.toServiceDto(r),a=await this.serviceService.updateService(t,e.account,e.companyId,e.serviceId,n);return ar.fromServiceDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceService.delete(t,e.account,e.companyId,e.serviceId)}async localList(t){return this.serviceDb.getAllServices(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceDb.getById(t.companyId,t.serviceId)}async localBulkSave(t,e){await this.serviceDb.saveAllServices(e)}async localDelete(t){this.checkNullable(t),await this.serviceDb.deleteById(t.companyId,t.serviceId)}async localBulkDelete(t){await this.serviceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceId)throw Error("Invalid state:"+JSON.stringify(t))}};Di([Me.Unsubscribe()],ta.prototype,"dispose",1),Di([Me.Subscribe(Ke.DELETE)],ta.prototype,"onCascadeDelete",1),ta=Di([Me.Subscriber({channel:_t})],ta);class V1 extends xr{async searchContacts(e,r,n,a=100,i=!0){let o="/api/2.3/clients",s=this.getAxiosConfig(e);s.params.q=r,s.params.maxResult=a,n&&(s.params.account=n);const l=this.instance.get(o,s);if(l!==null)try{const u=await l;return i?u.items:u}catch(u){throw u}else throw new Ne(ke.INTERNAL_ERROR)}async advancedSearchContacts(e,r,n,a=100,i=!0){let o="/api/2.3/clients/search",s=this.getAxiosConfig(e);s.params.maxResult=a,n&&(s.params.account=n);const l=this.instance.post(o,r,s);if(l!==null)try{const u=await l;return i?u.items:u}catch(u){throw u}else throw new Ne(ke.INTERNAL_ERROR)}async createContact(e,r,n){const a=this.instance.post(`/api/2.0/clients?account=${encodeURIComponent(r)}`,n,this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async updateContact(e,r,n,a){const i=this.instance.put(`/api/2.0/clients/${n}?account=${encodeURIComponent(r)}`,a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n){let a=`/api/2.3/clients/${n}?account=${encodeURIComponent(r)}`;const i=this.instance.get(a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async deleteBy(e,r,n){let a=`/api/2.0/clients/${n}?account=${encodeURIComponent(r)}`;const i=this.instance.delete(a,this.getAxiosConfig(e));if(i!==null)try{await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class j1{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllContacts(){return this.indexedDb.getAllValue(hn)}async saveAllContacts(e){await this.indexedDb.putBulkValue(hn,e)}async getById(e){return this.indexedDb.getValue(hn,e)}async deleteById(e){await this.indexedDb.deleteValue(hn,e)}async drop(){this.indexedDb.deleteAllValues(hn)}}function q1(t){t||(t=[]),G1(t);let e="",r="";for(const n of t)e+=r+n,r=",";return e}function H1(){const t=[];return t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.STAFF),t.push(Xe.SERVICE),t.push(Xe.STATUS),t.push(Xe.COMPANY),t.push(Xe.OWNER),t.push(Xe.CLIENT),t.push(Xe.ONLINE_MEETING),t.push(Xe.FORM),t.push(Xe.PRICE),t.push(Xe.SOURCE),t.push(Xe.SUMMARY),t.push(Xe.NOTES),t.push(Xe.PREPARATION_DURATION),t.push(Xe.BUFFER_DURATION),t}function G1(t){t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.SOURCE)}var Xe=(t=>(t.ID="id",t.START="start",t.END="end",t.OWNER="owner",t.NOTES="notes",t.CREATED="created",t.STAFF="staff",t.HISTORY="history",t.SOURCE="source",t.REFERENCE="reference",t.SERVICE="service",t.ENCRYPTED_ID="encryptedId",t.PAID="paid",t.CLIENT="client",t.COMPANY="company",t.STATUS="status",t.SUMMARY="summary",t.RESOURCE="resource",t.SERVICE_RESOURCE="service-resource",t.PARENT="parent",t.RESCHEDULE_LINK="rescheduleLink",t.ONLINE_MEETING="onlineMeeting",t.PRICE="price",t.FORM="form",t.PREPARATION_DURATION="preparationDuration",t.BUFFER_DURATION="bufferDuration",t))(Xe||{});class W1 extends xr{async createEvent(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/appointments?account=${encodeURIComponent(r)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.post(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async updateEvent(e,r,n,a,i=!1){let o=`/api/2.1/scheduling/companies/${n}/appointments/${a.id}?account=${encodeURIComponent(r)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.put(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async updateEventStatus(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/appointments/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,{status:i},this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async getExternalAppointments(e,r,n,a,i){let o=this.getAxiosConfig(e);o.params.userIds=r,o.params.start=n,o.params.end=a,o.params.timeZone=i;const s=this.instance.get("/api/2.1/scheduling/externalAppointments",o);if(s!==null)try{return(await s).items}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async getICS(e,r){let n=this.getAxiosConfig(e),a=r;if(r.indexOf("calendar.google.com/calendar")>0){const o=r.indexOf("://");a="/api/2.3/forward/https//"+(o>0?r.substring(o+3):r)}const i=this.instance.get(a,n);if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async getAllEvents(e,r,n,a,i,o,s){let l=this.getAxiosConfig(e);l.params.userIds=r,l.params.start=n,l.params.end=a,l.params.levelDetail="full",i&&(l.params.personalAppointments=!0),l.params.showDeleted=o,s&&s.length>0?l.params.fields=q1(s):l.params.fields=H1().map(f=>`${f}`).join(",");const u=this.instance.get("/api/2.1/scheduling/appointments",l);if(u!==null)try{return(await u).items}catch(f){throw f}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n){let a=this.getAxiosConfig(e);a.params.levelDetail="full",n&&(a.params.personalAppointments=!0);let i=`/api/2.1/scheduling/appointments/${r}`;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async _prepareFormFields(e){var r;if(e){const n=e.filter(a=>a.inputType!=="file"||a.inputType==="file"&&a.value!==void 0);try{n.forEach(a=>{var i;a.values&&(a.values=(i=a.values)==null?void 0:i.filter(o=>typeof a.value=="string"&&a.value===o.value||Array.isArray(a.value)&&a.value.indexOf(o.value)!==-1),Array.isArray(a.value)&&(a.value=void 0))});for(const a of n.filter(i=>i.inputType==="rating"&&i.value!==void 0&&i.value!==""))a.values=[{id:a.value,value:a.value,name:a.value}];for(const a of n.filter(i=>i.inputType==="file"))a.fileName=a.value.name,a.value=await Km(a.value)}catch(a){(r=this.logger)==null||r.error("js-calendar-api","Error while prepared form fields",a)}return n}}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class $1{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(ur,e)}async saveEvent(e){await this.indexedDb.putValue(ur,e)}async deleteEvent(e){await this.indexedDb.deleteValue(ur,e)}async deleteByEventIds(e){await this.indexedDb.deleteValues(ur,e)}async getAllEvents(e,r,n){return(await this.indexedDb.getAllValue(ur)||[]).filter(a=>{var i,o,s;const l=e===void 0||e.includes(((i=a.staff)==null?void 0:i.userId)||"")||((o=a.staff)==null?void 0:o.userId)==="0"&&e.includes(a.staff.id);return((s=a.staff)==null?void 0:s.userId)!==void 0&&l&&(r===void 0||a.start.getTime()>=r.getTime())&&(n===void 0||a.end.getTime()<=n.getTime())})}async getFirstEventByChildEventId(e){const r=(await this.indexedDb.getAllValue(ur)||[]).filter(n=>{var a;return(a=n.events)==null?void 0:a.some(i=>i.id===e)});return(r==null?void 0:r.length)>0?r[0]:void 0}async getById(e){return this.indexedDb.getValue(ur,e)}async drop(){await this.indexedDb.deleteAllValues(ur)}}class ra extends Map{static fromStorage(e){let r=new ra;return e&&Object.entries(JSON.parse(e)).forEach(n=>{r.set(n[0],n[1])}),r}}class Y1{constructor(){g(this,"STORAGE_KEY","eventCoverage")}getCoverage(e,r,n,a){return this.getLocalCoverage(e,new cc(Ct.fromDate(r),Ct.fromDate(n)),a)}getLocalCoverage(e,r,n){let a=ra.fromStorage(localStorage.getItem(this.STORAGE_KEY)),i=[],o=[],s=[];r.getRange().forEach(y=>{e.forEach(w=>{s.push({userId:w,year:y.year,month:y.month})})}),s.forEach(y=>{let w=a.get(y.userId);J1(new Ct(y.year,y.month),w||[])?i.push(y):o.push(y)}),n==null||n.debug("js-calendar-api","Month to load (local): ",i),n==null||n.debug("js-calendar-api","Month to load (remote): ",o);let l=uc(i),u=uc(o),f=fc(l),x=fc(u);return{local:f,remote:x}}saveCoverage(e,r,n,a){return this.saveLocalCoverage(e,new cc(Ct.fromDate(r),Ct.fromDate(n)),a)}saveLocalCoverage(e,r,n){let a=ra.fromStorage(localStorage.getItem(this.STORAGE_KEY));e.forEach(i=>{let o=a==null?void 0:a.get(i),s=o?o.filter(l=>{r.isIn(l.month,l.year)}):[];r.getRange().forEach(l=>{s.push({userId:i,year:l.year,month:l.month})}),n==null||n.debug("js-calendar-api",`Add coverage ${i} ${JSON.stringify(s)}`),a==null||a.set(i,s)}),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(Object.fromEntries(a)))}clearStorage(){localStorage.removeItem(this.STORAGE_KEY)}}class cc{constructor(e,r){g(this,"start"),g(this,"end"),this.start=e,this.end=r}isIn(e,r){let n=Ct.toNumber(r,e);return this.start.toNumber()<=n&&this.end.toNumber()>=n}getRange(){let e=this.start.year,r=this.start.month,n=[];do n.push(new Ct(e,r)),r++,r==12&&(r=0,e++);while(Ct.toNumber(e,r)<=this.end.toNumber());return n}}class Ct{constructor(e,r){g(this,"month"),g(this,"year"),this.year=e,this.month=r}toNumber(){return Ct.toNumber(this.year,this.month)}static fromDate(e){return new Ct(e.getFullYear(),e.getMonth())}static toNumber(e,r){return e*12+r}}const na=t=>{const e=t.month+1;return new Date(t.year+"-"+(e<10?"0"+e:e)+"-01")},Z1=(t,e,r,n)=>t===r&&Math.abs(e-n)===1||Math.abs(t-r)===1&&Math.abs(e-n)===11,J1=(t,e)=>e.filter(r=>r.year===t.year&&r.month===t.month).length>0,uc=t=>{const e=(a,i)=>Ct.toNumber(a.year,a.month)-Ct.toNumber(i.year,i.month);t.sort(e);let r=[];if(t.length===0)return r;let n;return t.forEach((a,i)=>{i===0?n={userId:[a.userId],month:a.month,year:a.year}:a.month===n.month&&a.year===n.year?n.userId.push(a.userId):(r.push(n),n={userId:[a.userId],month:a.month,year:a.year}),i===t.length-1&&r.push(n)}),r};function dc(t,e,r){return{userId:t.userId,start:{year:e.year,month:e.month},end:{year:r.month==11?r.year+1:r.year,month:r.month==11?0:r.month+1}}}const fc=t=>{let e=[];if(t.length===0)return e;let r,n;return t.sort((a,i)=>a.year<i.year?-1:a.year>i.year||a.month>i.month?1:a.month<i.month?-1:0),t.forEach((a,i)=>{if(i===0)r=a,n=a;else if(Z1(a.year,a.month,n.year,n.month))n=a;else{let o=dc(a,r,n);e.push(o),r=a,n=a}if(i===t.length-1){let o=dc(a,r,n);e.push(o)}}),e};var K1=Object.defineProperty,X1=Object.getOwnPropertyDescriptor,Ni=(t,e,r,n)=>{for(var a=n>1?void 0:n?X1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&K1(e,r,a),a};const bn=new Me.Channel;let aa=class extends lr{constructor(t,e,r,n){super("event",n),g(this,"REPOSITORY_NAME","Appointment"),g(this,"USE_EVENT_COVERAGE",!1),g(this,"eventDb"),g(this,"eventService"),g(this,"eventMetaStorage"),this.eventDb=new $1(e),this.eventService=new W1(r,t,n),this.eventMetaStorage=new Y1}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async createEvent(t,e,r,n,a,i){const o=await this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,timeZone:a,force:i},n);return bn.publish(Ke.CREATE,{account:e,companyId:r,event:o}),o}async updateEvent(t,e,r,n,a,i){let o=await this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,timeZone:a,force:i},n);return bn.publish(Ke.UPDATE,{account:e,companyId:r,event:o}),o}async updateEventStatus(t,e,r,n,a){let i=await this.remoteUpdateStatus(t,{account:e,companyId:r,eventId:n},a);return bn.publish(Ke.UPDATE,{account:e,companyId:r,event:i}),i}async getEvent(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.getById(t,n,{eventId:e,showPersonal:r})}async getAllEvents(t,e,r,n,a,i,o,s,l=Le.LOCAL_THEN_REMOTE){let u=!0,f=[];if(l===Le.REMOTE_ONLY)f=await this.remoteList(t,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s}),await this.localBulkSave({},f),u=!1;else if(l===Le.LOCAL_ONLY)f=await this.localList({userIds:e.join(","),start:r,end:n,showPersonal:a,showDeleted:i});else if(l==Le.REMOTE_THEN_LOCAL){const x=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s});f=x.results,u=x.local}else if(l==Le.LOCAL_THEN_REMOTE)if(this.USE_EVENT_COVERAGE){let x=await this.getEventWithCoverage(t,e,r,n,a,i,o,s,l);u=x.local,f=x.results}else f=await this.remoteList(t,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s}),await this.localBulkSave({},f),u=!1;return{local:u,results:f}}async getEventWithCoverage(t,e,r,n,a,i,o,s,l=Le.LOCAL_THEN_REMOTE){var u,f;let x=!0,y=[],w=this.eventMetaStorage.getCoverage(e,r,n,this.logger);for(const S of w.local){(u=this.logger)==null||u.debug("js-calendar-api",`getAllEvents coverage local: ${JSON.stringify(S)}`);const T=await this.list(t,Le.LOCAL_THEN_REMOTE,{userIds:e.join(","),start:na(S.start),end:na(S.end),timeZone:o,showPersonal:a,showDeleted:i,fields:s});y=y.concat(T.results)}for(const S of w.remote){(f=this.logger)==null||f.debug("js-calendar-api",`getAllEvents coverage remote: ${JSON.stringify(S)}`);const T=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:na(S.start),end:na(S.end),timeZone:o,showPersonal:a,showDeleted:i,fields:s});y=y.concat(T.results)}return x=w.remote.length===0,{local:x,results:y}}async deleteAllEvents(){return this.eventDb.drop()}async getExternalEvent(t,e,r,n,a){const i=Bn(r,a),o=Bn(n,a);return(await this.eventService.getExternalAppointments(t,e.join(","),i,o,a)).map(s=>Rt.fromEventDto(s,fl.EXTERNAL))}async remoteList(t,e){if(!e.start||!e.end||!e.userIds)throw Error("Invalid state:"+JSON.stringify(e));const r=Bn(e.start,e.timeZone),n=Bn(e.end,e.timeZone),a=await this.eventService.getAllEvents(t,e.userIds,r,n,e.showPersonal,e.showDeleted,e.fields);return this.eventMetaStorage.saveCoverage(e.userIds.split(","),e.start,e.end,this.logger),a.map(i=>Rt.fromEventDto(i))}async remoteGet(t,e){if(!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const r=await this.eventService.getById(t,e.eventId,e.showPersonal);return Rt.fromEventDto(r)}async remoteCreate(t,e,r){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));const n=Rt.toEventDto(r,e.timeZone),a=await this.eventService.createEvent(t,e.account,e.companyId,n,e.force||!1);return Rt.fromEventDto(a)}async remoteUpdate(t,e,r){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));let n=Rt.toEventDto(r,e.timeZone);const a=await this.eventService.updateEvent(t,e.account,e.companyId,n,e.force);return Rt.fromEventDto(a)}async remoteUpdateStatus(t,e,r){if(!e.account||!e.companyId||!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const n=await this.eventService.updateEventStatus(t,e.account,e.companyId,e.eventId,r);return Rt.fromEventDto(n)}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){var e;return this.eventDb.getAllEvents((e=t.userIds)==null?void 0:e.split(","),t.start,t.end)}async localGet(t){if(!t.eventId)throw Error("Invalid state:"+JSON.stringify(t));return this.eventDb.getById(t.eventId)}async localBulkSave(t,e){await this.eventDb.saveAllEvents(e)}async localDelete(t){throw new Error("Method not implemented.")}async localBulkDelete(t){await this.eventDb.deleteByEventIds(t.map(e=>e.id||""))}};Ni([Me.Unsubscribe()],aa.prototype,"dispose",1),Ni([Me.Subscribe(Ke.DELETE)],aa.prototype,"onCascadeDelete",1),aa=Ni([Me.Subscriber({channel:_t})],aa);var Q1=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,hc=(t,e,r,n)=>{for(var a=n>1?void 0:n?e0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&Q1(e,r,a),a};const mc=new Me.Channel;let Oi=class extends lr{constructor(t,e,r,n){super("contact",n),g(this,"contactDb"),g(this,"contactService"),this.contactDb=new j1(e),this.contactService=new V1(r,t,n)}async onCascadeChange(t,e,r,n){var a,i,o,s;r==bn&&(i=(a=t.event)==null?void 0:a.client)!=null&&i.id&&await this.cascadeDeleteItem({account:t.account,contactId:(s=(o=t.event)==null?void 0:o.client)==null?void 0:s.id})}async searchContacts(t,e,r){return this.list(t,Le.REMOTE_THEN_LOCAL,{account:r||"",query:e})}async searchContactWithPages(t,e,r,n){let a;return typeof e=="string"?a=await this.contactService.searchContacts(t,e||"",r,100,!1):a=await this.contactService.advancedSearchContacts(t,e,r,100,!1),oi.fromContactSearchDto(a)}async createContact(t,e,r){return r.address===void 0&&(r.address=new fn,r.address.country="FR"),this.create(t,Le.REMOTE_THEN_LOCAL,{account:e},r)}async updateContact(t,e,r,n){return this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,contactId:r},n)}async deleteContact(t,e,r){return this.deleteById(t,{account:e,contactId:r})}async getContact(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.getById(t,n,{account:e,contactId:r})}async remoteList(t,e){return(await this.contactService.searchContacts(t,e.query||"",e.account)).map(r=>Zt.fromContactDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.contactService.getById(t,e.account,e.contactId);return Zt.fromContactDto(r)}async remoteCreate(t,e,r){const n=Zt.toContactDto(r),a=await this.contactService.createContact(t,e.account,n);return Zt.fromContactDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=Zt.toContactDto(r),a=await this.contactService.updateContact(t,e.account,e.contactId,n);return Zt.fromContactDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.contactService.deleteBy(t,e.account,e.contactId)}async localList(t){return this.contactDb.getAllContacts()}async localGet(t){return this.checkNullable(t),this.contactDb.getById(t.contactId)}async localBulkSave(t,e){await this.contactDb.saveAllContacts(e)}async localDelete(t){this.checkNullable(t),await this.contactDb.deleteById(t.contactId)}localBulkDelete(t){return Promise.resolve(void 0)}checkNullable(t){if(!t.contactId)throw Error("Invalid state:"+JSON.stringify(t))}};hc([Me.Subscribe(Ke.UPDATE),Me.Subscribe(Ke.CREATE)],Oi.prototype,"onCascadeChange",1),Oi=hc([Me.Subscriber({channel:bn})],Oi);const pc=new Me.Channel;var t0={exports:{}};function r0(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gc={exports:{}};const n0={},a0=Object.freeze(Object.defineProperty({__proto__:null,default:n0},Symbol.toStringTag,{value:"Module"})),i0=Dp(a0);var vc;function ze(){return vc||(vc=1,function(t,e){(function(r,n){t.exports=n()})(Ae,function(){var r=r||function(n,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ae<"u"&&Ae.crypto&&(i=Ae.crypto),!i&&typeof r0=="function")try{i=i0}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function E(){}return function(A){var I;return E.prototype=A,I=new E,E.prototype=null,I}}(),l={},u=l.lib={},f=u.Base=function(){return{extend:function(E){var A=s(this);return E&&A.mixIn(E),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var A in E)E.hasOwnProperty(A)&&(this[A]=E[A]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=f.extend({init:function(E,A){E=this.words=E||[],A!=a?this.sigBytes=A:this.sigBytes=E.length*4},toString:function(E){return(E||w).stringify(this)},concat:function(E){var A=this.words,I=E.words,D=this.sigBytes,P=E.sigBytes;if(this.clamp(),D%4)for(var z=0;z<P;z++){var Y=I[z>>>2]>>>24-z%4*8&255;A[D+z>>>2]|=Y<<24-(D+z)%4*8}else for(var Q=0;Q<P;Q+=4)A[D+Q>>>2]=I[Q>>>2];return this.sigBytes+=P,this},clamp:function(){var E=this.words,A=this.sigBytes;E[A>>>2]&=4294967295<<32-A%4*8,E.length=n.ceil(A/4)},clone:function(){var E=f.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var A=[],I=0;I<E;I+=4)A.push(o());return new x.init(A,E)}}),y=l.enc={},w=y.Hex={stringify:function(E){for(var A=E.words,I=E.sigBytes,D=[],P=0;P<I;P++){var z=A[P>>>2]>>>24-P%4*8&255;D.push((z>>>4).toString(16)),D.push((z&15).toString(16))}return D.join("")},parse:function(E){for(var A=E.length,I=[],D=0;D<A;D+=2)I[D>>>3]|=parseInt(E.substr(D,2),16)<<24-D%8*4;return new x.init(I,A/2)}},S=y.Latin1={stringify:function(E){for(var A=E.words,I=E.sigBytes,D=[],P=0;P<I;P++){var z=A[P>>>2]>>>24-P%4*8&255;D.push(String.fromCharCode(z))}return D.join("")},parse:function(E){for(var A=E.length,I=[],D=0;D<A;D++)I[D>>>2]|=(E.charCodeAt(D)&255)<<24-D%4*8;return new x.init(I,A)}},T=y.Utf8={stringify:function(E){try{return decodeURIComponent(escape(S.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return S.parse(unescape(encodeURIComponent(E)))}},N=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=T.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var A,I=this._data,D=I.words,P=I.sigBytes,z=this.blockSize,Y=z*4,Q=P/Y;E?Q=n.ceil(Q):Q=n.max((Q|0)-this._minBufferSize,0);var B=Q*z,G=n.min(B*4,P);if(B){for(var re=0;re<B;re+=z)this._doProcessBlock(D,re);A=D.splice(0,B),I.sigBytes-=G}return new x.init(A,G)},clone:function(){var E=f.clone.call(this);return E._data=this._data.clone(),E},_minBufferSize:0});u.Hasher=N.extend({cfg:f.extend(),init:function(E){this.cfg=this.cfg.extend(E),this.reset()},reset:function(){N.reset.call(this),this._doReset()},update:function(E){return this._append(E),this._process(),this},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(E){return function(A,I){return new E.init(I).finalize(A)}},_createHmacHelper:function(E){return function(A,I){return new C.HMAC.init(E,I).finalize(A)}}});var C=l.algo={};return l}(Math);return r})}(gc)),gc.exports}var yc={exports:{}},bc;function ia(){return bc||(bc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(u,f){this.high=u,this.low=f}}),l.WordArray=o.extend({init:function(u,f){u=this.words=u||[],f!=n?this.sigBytes=f:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,f=u.length,x=[],y=0;y<f;y++){var w=u[y];x.push(w.high),x.push(w.low)}return s.create(x,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),f=u.words=this.words.slice(0),x=f.length,y=0;y<x;y++)f[y]=f[y].clone();return u}})}(),r})}(yc)),yc.exports}var Ec={exports:{}},xc;function o0(){return xc||(xc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,a=n.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,f=[],x=0;x<u;x++)f[x>>>2]|=l[x]<<24-x%4*8;o.call(this,f,u)}else o.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(Ec)),Ec.exports}var wc={exports:{}},_c;function s0(){return _c||(_c=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var u=l.words,f=l.sigBytes,x=[],y=0;y<f;y+=2){var w=u[y>>>2]>>>16-y%4*8&65535;x.push(String.fromCharCode(w))}return x.join("")},parse:function(l){for(var u=l.length,f=[],x=0;x<u;x++)f[x>>>1]|=l.charCodeAt(x)<<16-x%2*16;return i.create(f,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,f=l.sigBytes,x=[],y=0;y<f;y+=2){var w=s(u[y>>>2]>>>16-y%4*8&65535);x.push(String.fromCharCode(w))}return x.join("")},parse:function(l){for(var u=l.length,f=[],x=0;x<u;x++)f[x>>>1]|=s(l.charCodeAt(x)<<16-x%2*16);return i.create(f,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(wc)),wc.exports}var Sc={exports:{}},Ic;function Gr(){return Ic||(Ic=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64={stringify:function(l){var u=l.words,f=l.sigBytes,x=this._map;l.clamp();for(var y=[],w=0;w<f;w+=3)for(var S=u[w>>>2]>>>24-w%4*8&255,T=u[w+1>>>2]>>>24-(w+1)%4*8&255,N=u[w+2>>>2]>>>24-(w+2)%4*8&255,C=S<<16|T<<8|N,E=0;E<4&&w+E*.75<f;E++)y.push(x.charAt(C>>>6*(3-E)&63));var A=x.charAt(64);if(A)for(;y.length%4;)y.push(A);return y.join("")},parse:function(l){var u=l.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var y=0;y<f.length;y++)x[f.charCodeAt(y)]=y}var w=f.charAt(64);if(w){var S=l.indexOf(w);S!==-1&&(u=S)}return s(l,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,f){for(var x=[],y=0,w=0;w<u;w++)if(w%4){var S=f[l.charCodeAt(w-1)]<<w%4*2,T=f[l.charCodeAt(w)]>>>6-w%4*2,N=S|T;x[y>>>2]|=N<<24-y%4*8,y++}return i.create(x,y)}}(),r.enc.Base64})}(Sc)),Sc.exports}var Cc={exports:{}},Tc;function l0(){return Tc||(Tc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64url={stringify:function(l,u=!0){var f=l.words,x=l.sigBytes,y=u?this._safe_map:this._map;l.clamp();for(var w=[],S=0;S<x;S+=3)for(var T=f[S>>>2]>>>24-S%4*8&255,N=f[S+1>>>2]>>>24-(S+1)%4*8&255,C=f[S+2>>>2]>>>24-(S+2)%4*8&255,E=T<<16|N<<8|C,A=0;A<4&&S+A*.75<x;A++)w.push(y.charAt(E>>>6*(3-A)&63));var I=y.charAt(64);if(I)for(;w.length%4;)w.push(I);return w.join("")},parse:function(l,u=!0){var f=l.length,x=u?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var w=0;w<x.length;w++)y[x.charCodeAt(w)]=w}var S=x.charAt(64);if(S){var T=l.indexOf(S);T!==-1&&(f=T)}return s(l,f,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,u,f){for(var x=[],y=0,w=0;w<u;w++)if(w%4){var S=f[l.charCodeAt(w-1)]<<w%4*2,T=f[l.charCodeAt(w)]>>>6-w%4*2,N=S|T;x[y>>>2]|=N<<24-y%4*8,y++}return i.create(x,y)}}(),r.enc.Base64url})}(Cc)),Cc.exports}var kc={exports:{}},Ac;function Wr(){return Ac||(Ac=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[];(function(){for(var T=0;T<64;T++)u[T]=n.abs(n.sin(T+1))*4294967296|0})();var f=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(T,N){for(var C=0;C<16;C++){var E=N+C,A=T[E];T[E]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var I=this._hash.words,D=T[N+0],P=T[N+1],z=T[N+2],Y=T[N+3],Q=T[N+4],B=T[N+5],G=T[N+6],re=T[N+7],L=T[N+8],q=T[N+9],$=T[N+10],j=T[N+11],V=T[N+12],Z=T[N+13],se=T[N+14],ie=T[N+15],F=I[0],ee=I[1],ne=I[2],J=I[3];F=x(F,ee,ne,J,D,7,u[0]),J=x(J,F,ee,ne,P,12,u[1]),ne=x(ne,J,F,ee,z,17,u[2]),ee=x(ee,ne,J,F,Y,22,u[3]),F=x(F,ee,ne,J,Q,7,u[4]),J=x(J,F,ee,ne,B,12,u[5]),ne=x(ne,J,F,ee,G,17,u[6]),ee=x(ee,ne,J,F,re,22,u[7]),F=x(F,ee,ne,J,L,7,u[8]),J=x(J,F,ee,ne,q,12,u[9]),ne=x(ne,J,F,ee,$,17,u[10]),ee=x(ee,ne,J,F,j,22,u[11]),F=x(F,ee,ne,J,V,7,u[12]),J=x(J,F,ee,ne,Z,12,u[13]),ne=x(ne,J,F,ee,se,17,u[14]),ee=x(ee,ne,J,F,ie,22,u[15]),F=y(F,ee,ne,J,P,5,u[16]),J=y(J,F,ee,ne,G,9,u[17]),ne=y(ne,J,F,ee,j,14,u[18]),ee=y(ee,ne,J,F,D,20,u[19]),F=y(F,ee,ne,J,B,5,u[20]),J=y(J,F,ee,ne,$,9,u[21]),ne=y(ne,J,F,ee,ie,14,u[22]),ee=y(ee,ne,J,F,Q,20,u[23]),F=y(F,ee,ne,J,q,5,u[24]),J=y(J,F,ee,ne,se,9,u[25]),ne=y(ne,J,F,ee,Y,14,u[26]),ee=y(ee,ne,J,F,L,20,u[27]),F=y(F,ee,ne,J,Z,5,u[28]),J=y(J,F,ee,ne,z,9,u[29]),ne=y(ne,J,F,ee,re,14,u[30]),ee=y(ee,ne,J,F,V,20,u[31]),F=w(F,ee,ne,J,B,4,u[32]),J=w(J,F,ee,ne,L,11,u[33]),ne=w(ne,J,F,ee,j,16,u[34]),ee=w(ee,ne,J,F,se,23,u[35]),F=w(F,ee,ne,J,P,4,u[36]),J=w(J,F,ee,ne,Q,11,u[37]),ne=w(ne,J,F,ee,re,16,u[38]),ee=w(ee,ne,J,F,$,23,u[39]),F=w(F,ee,ne,J,Z,4,u[40]),J=w(J,F,ee,ne,D,11,u[41]),ne=w(ne,J,F,ee,Y,16,u[42]),ee=w(ee,ne,J,F,G,23,u[43]),F=w(F,ee,ne,J,q,4,u[44]),J=w(J,F,ee,ne,V,11,u[45]),ne=w(ne,J,F,ee,ie,16,u[46]),ee=w(ee,ne,J,F,z,23,u[47]),F=S(F,ee,ne,J,D,6,u[48]),J=S(J,F,ee,ne,re,10,u[49]),ne=S(ne,J,F,ee,se,15,u[50]),ee=S(ee,ne,J,F,B,21,u[51]),F=S(F,ee,ne,J,V,6,u[52]),J=S(J,F,ee,ne,Y,10,u[53]),ne=S(ne,J,F,ee,$,15,u[54]),ee=S(ee,ne,J,F,P,21,u[55]),F=S(F,ee,ne,J,L,6,u[56]),J=S(J,F,ee,ne,ie,10,u[57]),ne=S(ne,J,F,ee,G,15,u[58]),ee=S(ee,ne,J,F,Z,21,u[59]),F=S(F,ee,ne,J,Q,6,u[60]),J=S(J,F,ee,ne,j,10,u[61]),ne=S(ne,J,F,ee,z,15,u[62]),ee=S(ee,ne,J,F,q,21,u[63]),I[0]=I[0]+F|0,I[1]=I[1]+ee|0,I[2]=I[2]+ne|0,I[3]=I[3]+J|0},_doFinalize:function(){var T=this._data,N=T.words,C=this._nDataBytes*8,E=T.sigBytes*8;N[E>>>5]|=128<<24-E%32;var A=n.floor(C/4294967296),I=C;N[(E+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,N[(E+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.sigBytes=(N.length+1)*4,this._process();for(var D=this._hash,P=D.words,z=0;z<4;z++){var Y=P[z];P[z]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return D},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function x(T,N,C,E,A,I,D){var P=T+(N&C|~N&E)+A+D;return(P<<I|P>>>32-I)+N}function y(T,N,C,E,A,I,D){var P=T+(N&E|C&~E)+A+D;return(P<<I|P>>>32-I)+N}function w(T,N,C,E,A,I,D){var P=T+(N^C^E)+A+D;return(P<<I|P>>>32-I)+N}function S(T,N,C,E,A,I,D){var P=T+(C^(N|~E))+A+D;return(P<<I|P>>>32-I)+N}a.MD5=s._createHelper(f),a.HmacMD5=s._createHmacHelper(f)}(Math),r.MD5})}(kc)),kc.exports}var Dc={exports:{}},Nc;function Ri(){return Nc||(Nc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.Hasher,s=n.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var y=this._hash.words,w=y[0],S=y[1],T=y[2],N=y[3],C=y[4],E=0;E<80;E++){if(E<16)l[E]=f[x+E]|0;else{var A=l[E-3]^l[E-8]^l[E-14]^l[E-16];l[E]=A<<1|A>>>31}var I=(w<<5|w>>>27)+C+l[E];E<20?I+=(S&T|~S&N)+1518500249:E<40?I+=(S^T^N)+1859775393:E<60?I+=(S&T|S&N|T&N)-1894007588:I+=(S^T^N)-899497514,C=N,N=T,T=S<<30|S>>>2,S=w,w=I}y[0]=y[0]+w|0,y[1]=y[1]+S|0,y[2]=y[2]+T|0,y[3]=y[3]+N|0,y[4]=y[4]+C|0},_doFinalize:function(){var f=this._data,x=f.words,y=this._nDataBytes*8,w=f.sigBytes*8;return x[w>>>5]|=128<<24-w%32,x[(w+64>>>9<<4)+14]=Math.floor(y/4294967296),x[(w+64>>>9<<4)+15]=y,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u)}(),r.SHA1})}(Dc)),Dc.exports}var Oc={exports:{}},Rc;function Lc(){return Rc||(Rc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[],f=[];(function(){function w(C){for(var E=n.sqrt(C),A=2;A<=E;A++)if(!(C%A))return!1;return!0}function S(C){return(C-(C|0))*4294967296|0}for(var T=2,N=0;N<64;)w(T)&&(N<8&&(u[N]=S(n.pow(T,1/2))),f[N]=S(n.pow(T,1/3)),N++),T++})();var x=[],y=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(w,S){for(var T=this._hash.words,N=T[0],C=T[1],E=T[2],A=T[3],I=T[4],D=T[5],P=T[6],z=T[7],Y=0;Y<64;Y++){if(Y<16)x[Y]=w[S+Y]|0;else{var Q=x[Y-15],B=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,G=x[Y-2],re=(G<<15|G>>>17)^(G<<13|G>>>19)^G>>>10;x[Y]=B+x[Y-7]+re+x[Y-16]}var L=I&D^~I&P,q=N&C^N&E^C&E,$=(N<<30|N>>>2)^(N<<19|N>>>13)^(N<<10|N>>>22),j=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),V=z+j+L+f[Y]+x[Y],Z=$+q;z=P,P=D,D=I,I=A+V|0,A=E,E=C,C=N,N=V+Z|0}T[0]=T[0]+N|0,T[1]=T[1]+C|0,T[2]=T[2]+E|0,T[3]=T[3]+A|0,T[4]=T[4]+I|0,T[5]=T[5]+D|0,T[6]=T[6]+P|0,T[7]=T[7]+z|0},_doFinalize:function(){var w=this._data,S=w.words,T=this._nDataBytes*8,N=w.sigBytes*8;return S[N>>>5]|=128<<24-N%32,S[(N+64>>>9<<4)+14]=n.floor(T/4294967296),S[(N+64>>>9<<4)+15]=T,w.sigBytes=S.length*4,this._process(),this._hash},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});a.SHA256=s._createHelper(y),a.HmacSHA256=s._createHmacHelper(y)}(Math),r.SHA256})}(Oc)),Oc.exports}var Mc={exports:{}},Pc;function c0(){return Pc||(Pc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Lc())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(Mc)),Mc.exports}var Fc={exports:{}},zc;function Bc(){return zc||(zc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ia())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Hasher,o=n.x64,s=o.Word,l=o.WordArray,u=n.algo;function f(){return s.create.apply(s,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],y=[];(function(){for(var S=0;S<80;S++)y[S]=f()})();var w=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(S,T){for(var N=this._hash.words,C=N[0],E=N[1],A=N[2],I=N[3],D=N[4],P=N[5],z=N[6],Y=N[7],Q=C.high,B=C.low,G=E.high,re=E.low,L=A.high,q=A.low,$=I.high,j=I.low,V=D.high,Z=D.low,se=P.high,ie=P.low,F=z.high,ee=z.low,ne=Y.high,J=Y.low,we=Q,_e=B,Oe=G,ye=re,Be=L,Ie=q,W=$,ae=j,_=V,b=Z,O=se,te=ie,le=F,de=ee,M=ne,c=J,v=0;v<80;v++){var d,m,h=y[v];if(v<16)m=h.high=S[T+v*2]|0,d=h.low=S[T+v*2+1]|0;else{var p=y[v-15],k=p.high,R=p.low,U=(k>>>1|R<<31)^(k>>>8|R<<24)^k>>>7,H=(R>>>1|k<<31)^(R>>>8|k<<24)^(R>>>7|k<<25),K=y[v-2],X=K.high,oe=K.low,fe=(X>>>19|oe<<13)^(X<<3|oe>>>29)^X>>>6,pe=(oe>>>19|X<<13)^(oe<<3|X>>>29)^(oe>>>6|X<<26),ve=y[v-7],Se=ve.high,Ee=ve.low,be=y[v-16],ce=be.high,Ve=be.low;d=H+Ee,m=U+Se+(d>>>0<H>>>0?1:0),d=d+pe,m=m+fe+(d>>>0<pe>>>0?1:0),d=d+Ve,m=m+ce+(d>>>0<Ve>>>0?1:0),h.high=m,h.low=d}var xe=_&O^~_&le,$e=b&te^~b&de,Qe=we&Oe^we&Be^Oe&Be,mt=_e&ye^_e&Ie^ye&Ie,ge=(we>>>28|_e<<4)^(we<<30|_e>>>2)^(we<<25|_e>>>7),nt=(_e>>>28|we<<4)^(_e<<30|we>>>2)^(_e<<25|we>>>7),Ht=(_>>>14|b<<18)^(_>>>18|b<<14)^(_<<23|b>>>9),Tt=(b>>>14|_<<18)^(b>>>18|_<<14)^(b<<23|_>>>9),kt=x[v],At=kt.high,pt=kt.low,ct=c+Tt,ut=M+Ht+(ct>>>0<c>>>0?1:0),ct=ct+$e,ut=ut+xe+(ct>>>0<$e>>>0?1:0),ct=ct+pt,ut=ut+At+(ct>>>0<pt>>>0?1:0),ct=ct+d,ut=ut+m+(ct>>>0<d>>>0?1:0),hr=nt+mt,$r=ge+Qe+(hr>>>0<nt>>>0?1:0);M=le,c=de,le=O,de=te,O=_,te=b,b=ae+ct|0,_=W+ut+(b>>>0<ae>>>0?1:0)|0,W=Be,ae=Ie,Be=Oe,Ie=ye,Oe=we,ye=_e,_e=ct+hr|0,we=ut+$r+(_e>>>0<ct>>>0?1:0)|0}B=C.low=B+_e,C.high=Q+we+(B>>>0<_e>>>0?1:0),re=E.low=re+ye,E.high=G+Oe+(re>>>0<ye>>>0?1:0),q=A.low=q+Ie,A.high=L+Be+(q>>>0<Ie>>>0?1:0),j=I.low=j+ae,I.high=$+W+(j>>>0<ae>>>0?1:0),Z=D.low=Z+b,D.high=V+_+(Z>>>0<b>>>0?1:0),ie=P.low=ie+te,P.high=se+O+(ie>>>0<te>>>0?1:0),ee=z.low=ee+de,z.high=F+le+(ee>>>0<de>>>0?1:0),J=Y.low=J+c,Y.high=ne+M+(J>>>0<c>>>0?1:0)},_doFinalize:function(){var S=this._data,T=S.words,N=this._nDataBytes*8,C=S.sigBytes*8;T[C>>>5]|=128<<24-C%32,T[(C+128>>>10<<5)+30]=Math.floor(N/4294967296),T[(C+128>>>10<<5)+31]=N,S.sigBytes=T.length*4,this._process();var E=this._hash.toX32();return E},clone:function(){var S=i.clone.call(this);return S._hash=this._hash.clone(),S},blockSize:1024/32});n.SHA512=i._createHelper(w),n.HmacSHA512=i._createHmacHelper(w)}(),r.SHA512})}(Fc)),Fc.exports}var Uc={exports:{}},Vc;function u0(){return Vc||(Vc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ia(),Bc())})(Ae,function(r){return function(){var n=r,a=n.x64,i=a.Word,o=a.WordArray,s=n.algo,l=s.SHA512,u=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=l._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=l._createHelper(u),n.HmacSHA384=l._createHmacHelper(u)}(),r.SHA384})}(Uc)),Uc.exports}var jc={exports:{}},qc;function d0(){return qc||(qc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ia())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,u=l.Word,f=a.algo,x=[],y=[],w=[];(function(){for(var N=1,C=0,E=0;E<24;E++){x[N+5*C]=(E+1)*(E+2)/2%64;var A=C%5,I=(2*N+3*C)%5;N=A,C=I}for(var N=0;N<5;N++)for(var C=0;C<5;C++)y[N+5*C]=C+(2*N+3*C)%5*5;for(var D=1,P=0;P<24;P++){for(var z=0,Y=0,Q=0;Q<7;Q++){if(D&1){var B=(1<<Q)-1;B<32?Y^=1<<B:z^=1<<B-32}D&128?D=D<<1^113:D<<=1}w[P]=u.create(z,Y)}})();var S=[];(function(){for(var N=0;N<25;N++)S[N]=u.create()})();var T=f.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var N=this._state=[],C=0;C<25;C++)N[C]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(N,C){for(var E=this._state,A=this.blockSize/2,I=0;I<A;I++){var D=N[C+2*I],P=N[C+2*I+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var z=E[I];z.high^=P,z.low^=D}for(var Y=0;Y<24;Y++){for(var Q=0;Q<5;Q++){for(var B=0,G=0,re=0;re<5;re++){var z=E[Q+5*re];B^=z.high,G^=z.low}var L=S[Q];L.high=B,L.low=G}for(var Q=0;Q<5;Q++)for(var q=S[(Q+4)%5],$=S[(Q+1)%5],j=$.high,V=$.low,B=q.high^(j<<1|V>>>31),G=q.low^(V<<1|j>>>31),re=0;re<5;re++){var z=E[Q+5*re];z.high^=B,z.low^=G}for(var Z=1;Z<25;Z++){var B,G,z=E[Z],se=z.high,ie=z.low,F=x[Z];F<32?(B=se<<F|ie>>>32-F,G=ie<<F|se>>>32-F):(B=ie<<F-32|se>>>64-F,G=se<<F-32|ie>>>64-F);var ee=S[y[Z]];ee.high=B,ee.low=G}var ne=S[0],J=E[0];ne.high=J.high,ne.low=J.low;for(var Q=0;Q<5;Q++)for(var re=0;re<5;re++){var Z=Q+5*re,z=E[Z],we=S[Z],_e=S[(Q+1)%5+5*re],Oe=S[(Q+2)%5+5*re];z.high=we.high^~_e.high&Oe.high,z.low=we.low^~_e.low&Oe.low}var z=E[0],ye=w[Y];z.high^=ye.high,z.low^=ye.low}},_doFinalize:function(){var N=this._data,C=N.words;this._nDataBytes*8;var E=N.sigBytes*8,A=this.blockSize*32;C[E>>>5]|=1<<24-E%32,C[(n.ceil((E+1)/A)*A>>>5)-1]|=128,N.sigBytes=C.length*4,this._process();for(var I=this._state,D=this.cfg.outputLength/8,P=D/8,z=[],Y=0;Y<P;Y++){var Q=I[Y],B=Q.high,G=Q.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,G=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360,z.push(G),z.push(B)}return new o.init(z,D)},clone:function(){for(var N=s.clone.call(this),C=N._state=this._state.slice(0),E=0;E<25;E++)C[E]=C[E].clone();return N}});a.SHA3=s._createHelper(T),a.HmacSHA3=s._createHmacHelper(T)}(Math),r.SHA3})}(jc)),jc.exports}var Hc={exports:{}},Gc;function f0(){return Gc||(Gc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){/** @preserve
|
|
49
|
+
***************************************************************************** */var bc;(function(t){(function(e){var n=typeof Le=="object"?Le:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=a(t);typeof n.Reflect>"u"?n.Reflect=t:r=a(n.Reflect,r),e(r);function a(i,o){return function(s,c){typeof i[s]!="function"&&Object.defineProperty(i,s,{configurable:!0,writable:!0,value:c}),o&&o(s,c)}}})(function(e){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return p(Object.create(null))}:s?function(){return p({__proto__:null})}:function(){return p({})},has:c?function(m,g){return n.call(m,g)}:function(m,g){return g in m},get:c?function(m,g){return n.call(m,g)?m[g]:void 0}:function(m,g){return m[g]}},h=Object.getPrototypeOf(Function),x=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!x&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:u(),w=!x&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:v(),S=!x&&typeof WeakMap=="function"?WeakMap:d(),C=new S;function N(m,g,A,O){if(F(A)){if(!ke(m))throw new TypeError;if(!ae(g))throw new TypeError;return B(m,g)}else{if(!ke(m))throw new TypeError;if(!K(g))throw new TypeError;if(!K(O)&&!F(O)&&!ee(O))throw new TypeError;return ee(O)&&(O=void 0),A=Ue(A),W(m,g,A,O)}}e("decorate",N);function k(m,g){function A(O,U){if(!K(O))throw new TypeError;if(!F(U)&&!_(U))throw new TypeError;j(m,g,O,U)}return A}e("metadata",k);function E(m,g,A,O){if(!K(A))throw new TypeError;return F(O)||(O=Ue(O)),j(m,g,A,O)}e("defineMetadata",E);function D(m,g,A){if(!K(g))throw new TypeError;return F(A)||(A=Ue(A)),R(m,g,A)}e("hasMetadata",D);function I(m,g,A){if(!K(g))throw new TypeError;return F(A)||(A=Ue(A)),q(m,g,A)}e("hasOwnMetadata",I);function T(m,g,A){if(!K(g))throw new TypeError;return F(A)||(A=Ue(A)),$(m,g,A)}e("getMetadata",T);function P(m,g,A){if(!K(g))throw new TypeError;return F(A)||(A=Ue(A)),V(m,g,A)}e("getOwnMetadata",P);function z(m,g){if(!K(m))throw new TypeError;return F(g)||(g=Ue(g)),Z(m,g)}e("getMetadataKeys",z);function Y(m,g){if(!K(m))throw new TypeError;return F(g)||(g=Ue(g)),se(m,g)}e("getOwnMetadataKeys",Y);function Q(m,g,A){if(!K(g))throw new TypeError;F(A)||(A=Ue(A));var O=ne(g,A,!1);if(F(O)||!O.delete(m))return!1;if(O.size>0)return!0;var U=C.get(g);return U.delete(A),U.size>0||C.delete(g),!0}e("deleteMetadata",Q);function B(m,g){for(var A=m.length-1;A>=0;--A){var O=m[A],U=O(g);if(!F(U)&&!ee(U)){if(!ae(U))throw new TypeError;g=U}}return g}function W(m,g,A,O){for(var U=m.length-1;U>=0;--U){var H=m[U],J=H(g,A,O);if(!F(J)&&!ee(J)){if(!K(J))throw new TypeError;O=J}}return O}function ne(m,g,A){var O=C.get(m);if(F(O)){if(!A)return;O=new y,C.set(m,O)}var U=O.get(g);if(F(U)){if(!A)return;U=new y,O.set(g,U)}return U}function R(m,g,A){var O=q(m,g,A);if(O)return!0;var U=M(g);return ee(U)?!1:R(m,U,A)}function q(m,g,A){var O=ne(g,A,!1);return F(O)?!1:Me(O.has(m))}function $(m,g,A){var O=q(m,g,A);if(O)return V(m,g,A);var U=M(g);if(!ee(U))return $(m,U,A)}function V(m,g,A){var O=ne(g,A,!1);if(!F(O))return O.get(m)}function j(m,g,A,O){var U=ne(A,O,!0);U.set(m,g)}function Z(m,g){var A=se(m,g),O=M(m);if(O===null)return A;var U=Z(O,g);if(U.length<=0)return A;if(A.length<=0)return U;for(var H=new w,J=[],X=0,oe=A;X<oe.length;X++){var he=oe[X],pe=H.has(he);pe||(H.add(he),J.push(he))}for(var ve=0,Ie=U;ve<Ie.length;ve++){var he=Ie[ve],pe=H.has(he);pe||(H.add(he),J.push(he))}return J}function se(m,g){var A=[],O=ne(m,g,!1);if(F(O))return A;for(var U=O.keys(),H=L(U),J=0;;){var X=le(H);if(!X)return A.length=J,A;var oe=te(X);try{A[J]=oe}catch(he){try{de(H)}finally{throw he}}J++}}function ie(m){if(m===null)return 1;switch(typeof m){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return m===null?1:6;default:return 6}}function F(m){return m===void 0}function ee(m){return m===null}function re(m){return typeof m=="symbol"}function K(m){return typeof m=="object"?m!==null:typeof m=="function"}function we(m,g){switch(ie(m)){case 0:return m;case 1:return m;case 2:return m;case 3:return m;case 4:return m;case 5:return m}var A=g===3?"string":g===5?"number":"default",O=b(m,a);if(O!==void 0){var U=O.call(m,A);if(K(U))throw new TypeError;return U}return _e(m,A==="default"?"number":A)}function _e(m,g){if(g==="string"){var A=m.toString;if(G(A)){var O=A.call(m);if(!K(O))return O}var U=m.valueOf;if(G(U)){var O=U.call(m);if(!K(O))return O}}else{var U=m.valueOf;if(G(U)){var O=U.call(m);if(!K(O))return O}var H=m.toString;if(G(H)){var O=H.call(m);if(!K(O))return O}}throw new TypeError}function Me(m){return!!m}function ye(m){return""+m}function Ue(m){var g=we(m,3);return re(g)?g:ye(g)}function ke(m){return Array.isArray?Array.isArray(m):m instanceof Object?m instanceof Array:Object.prototype.toString.call(m)==="[object Array]"}function G(m){return typeof m=="function"}function ae(m){return typeof m=="function"}function _(m){switch(ie(m)){case 3:return!0;case 4:return!0;default:return!1}}function b(m,g){var A=m[g];if(A!=null){if(!G(A))throw new TypeError;return A}}function L(m){var g=b(m,i);if(!G(g))throw new TypeError;var A=g.call(m);if(!K(A))throw new TypeError;return A}function te(m){return m.value}function le(m){var g=m.next();return g.done?!1:g}function de(m){var g=m.return;g&&g.call(m)}function M(m){var g=Object.getPrototypeOf(m);if(typeof m!="function"||m===h||g!==h)return g;var A=m.prototype,O=A&&Object.getPrototypeOf(A);if(O==null||O===Object.prototype)return g;var U=O.constructor;return typeof U!="function"||U===m?g:U}function u(){var m={},g=[],A=function(){function J(X,oe,he){this._index=0,this._keys=X,this._values=oe,this._selector=he}return J.prototype["@@iterator"]=function(){return this},J.prototype[i]=function(){return this},J.prototype.next=function(){var X=this._index;if(X>=0&&X<this._keys.length){var oe=this._selector(this._keys[X],this._values[X]);return X+1>=this._keys.length?(this._index=-1,this._keys=g,this._values=g):this._index++,{value:oe,done:!1}}return{value:void 0,done:!0}},J.prototype.throw=function(X){throw this._index>=0&&(this._index=-1,this._keys=g,this._values=g),X},J.prototype.return=function(X){return this._index>=0&&(this._index=-1,this._keys=g,this._values=g),{value:X,done:!0}},J}();return function(){function J(){this._keys=[],this._values=[],this._cacheKey=m,this._cacheIndex=-2}return Object.defineProperty(J.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),J.prototype.has=function(X){return this._find(X,!1)>=0},J.prototype.get=function(X){var oe=this._find(X,!1);return oe>=0?this._values[oe]:void 0},J.prototype.set=function(X,oe){var he=this._find(X,!0);return this._values[he]=oe,this},J.prototype.delete=function(X){var oe=this._find(X,!1);if(oe>=0){for(var he=this._keys.length,pe=oe+1;pe<he;pe++)this._keys[pe-1]=this._keys[pe],this._values[pe-1]=this._values[pe];return this._keys.length--,this._values.length--,X===this._cacheKey&&(this._cacheKey=m,this._cacheIndex=-2),!0}return!1},J.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=m,this._cacheIndex=-2},J.prototype.keys=function(){return new A(this._keys,this._values,O)},J.prototype.values=function(){return new A(this._keys,this._values,U)},J.prototype.entries=function(){return new A(this._keys,this._values,H)},J.prototype["@@iterator"]=function(){return this.entries()},J.prototype[i]=function(){return this.entries()},J.prototype._find=function(X,oe){return this._cacheKey!==X&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=X)),this._cacheIndex<0&&oe&&(this._cacheIndex=this._keys.length,this._keys.push(X),this._values.push(void 0)),this._cacheIndex},J}();function O(J,X){return J}function U(J,X){return X}function H(J,X){return[J,X]}}function v(){return function(){function m(){this._map=new y}return Object.defineProperty(m.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),m.prototype.has=function(g){return this._map.has(g)},m.prototype.add=function(g){return this._map.set(g,g),this},m.prototype.delete=function(g){return this._map.delete(g)},m.prototype.clear=function(){this._map.clear()},m.prototype.keys=function(){return this._map.keys()},m.prototype.values=function(){return this._map.values()},m.prototype.entries=function(){return this._map.entries()},m.prototype["@@iterator"]=function(){return this.keys()},m.prototype[i]=function(){return this.keys()},m}()}function d(){var m=16,g=l.create(),A=O();return function(){function oe(){this._key=O()}return oe.prototype.has=function(he){var pe=U(he,!1);return pe!==void 0?l.has(pe,this._key):!1},oe.prototype.get=function(he){var pe=U(he,!1);return pe!==void 0?l.get(pe,this._key):void 0},oe.prototype.set=function(he,pe){var ve=U(he,!0);return ve[this._key]=pe,this},oe.prototype.delete=function(he){var pe=U(he,!1);return pe!==void 0?delete pe[this._key]:!1},oe.prototype.clear=function(){this._key=O()},oe}();function O(){var oe;do oe="@@WeakMap@@"+X();while(l.has(g,oe));return g[oe]=!0,oe}function U(oe,he){if(!n.call(oe,A)){if(!he)return;Object.defineProperty(oe,A,{value:l.create()})}return oe[A]}function H(oe,he){for(var pe=0;pe<he;++pe)oe[pe]=Math.random()*255|0;return oe}function J(oe){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(oe)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(oe)):H(new Uint8Array(oe),oe):H(new Array(oe),oe)}function X(){var oe=J(m);oe[6]=oe[6]&79|64,oe[8]=oe[8]&191|128;for(var he="",pe=0;pe<m;++pe){var ve=oe[pe];(pe===4||pe===6||pe===8)&&(he+="-"),ve<16&&(he+="0"),he+=ve.toString(16).toLowerCase()}return he}}function p(m){return m.__=void 0,delete m.__,m}})})(bc||(bc={}));var Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.Channel=void 0;var J0=function(){function t(){this.subscriptions=new Map}return t.prototype.publish=function(e,n){var r=this,a=this.subscriptions.get(e);a&&a.forEach(function(i){i(n,e,r,i)})},t.prototype.subscribe=function(e,n){var r=this.subscriptions.get(e);r||(r=[],this.subscriptions.set(e,r)),r.push(n)},t.prototype.unsubscribe=function(e,n){var r=this.subscriptions.get(e);r&&(r=r.filter(function(a){return a!==n}),r.length?this.subscriptions.set(e,r):this.subscriptions.delete(e))},t.prototype.unsubscribeAll=function(){this.subscriptions.clear()},t}();Er.Channel=J0;var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.PubSub=void 0;var X0=Er;xr.PubSub=new X0.Channel;var na={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.SUBSCRIPTIONS_METADATA_KEY=pn.CHANNEL_METADATA_KEY=void 0,pn.CHANNEL_METADATA_KEY=Symbol("pubsub:channel"),pn.SUBSCRIPTIONS_METADATA_KEY=Symbol("pubsub:subscriptions"),Object.defineProperty(na,"__esModule",{value:!0}),na.Subscribe=void 0;var Ec=pn;function Q0(t){return function(e,n,r){var a=Reflect.getMetadata(Ec.SUBSCRIPTIONS_METADATA_KEY,e)||new Set;a.add({message:t,handler:r.value}),Reflect.defineMetadata(Ec.SUBSCRIPTIONS_METADATA_KEY,a,e)}}na.Subscribe=Q0;var ra={},e1=Le&&Le.__spreadArray||function(t,e){for(var n=0,r=e.length,a=t.length;n<r;n++,a++)t[a]=e[n];return t};Object.defineProperty(ra,"__esModule",{value:!0}),ra.Subscriber=void 0;var Mi=pn,t1=xr;function n1(t){var e=(t==null?void 0:t.channel)||t1.PubSub;return function(n){Reflect.defineMetadata(Mi.CHANNEL_METADATA_KEY,e,n.prototype);var r=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=n,s=new(o.bind.apply(o,e1([void 0],a))),c=Reflect.getMetadata(Mi.SUBSCRIPTIONS_METADATA_KEY,n.prototype);if(c){var l=[];Reflect.defineMetadata(Mi.SUBSCRIPTIONS_METADATA_KEY,l,s),c.forEach(function(h){var x=h.handler.bind(s);l.push({message:h.message,handler:x}),e.subscribe(h.message,x)})}return s};return r.prototype=n.prototype,t!=null&&t.createInstance&&new r(t.constructorParameters),r}}ra.Subscriber=n1;var aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.Unsubscribe=void 0;var xc=pn;function r1(){return function(t,e,n){var r=n.value;return n.value=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=Reflect.getMetadata(xc.CHANNEL_METADATA_KEY,t),s=Reflect.getMetadata(xc.SUBSCRIPTIONS_METADATA_KEY,this);return o&&s&&s.forEach(function(c){o.unsubscribe(c.message,c.handler)}),r(a)},n}}aa.Unsubscribe=r1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Unsubscribe=t.Subscriber=t.Subscribe=t.PubSub=t.Channel=void 0;var e=Er;Object.defineProperty(t,"Channel",{enumerable:!0,get:function(){return e.Channel}});var n=xr;Object.defineProperty(t,"PubSub",{enumerable:!0,get:function(){return n.PubSub}});var r=na;Object.defineProperty(t,"Subscribe",{enumerable:!0,get:function(){return r.Subscribe}});var a=ra;Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return a.Subscriber}});var i=aa;Object.defineProperty(t,"Unsubscribe",{enumerable:!0,get:function(){return i.Unsubscribe}})}(Ne);const ht=new Ne.Channel;class a1 extends Xt{async getAllStaffs(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/staff?account=${encodeURIComponent(n)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async createStaff(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff?account=${encodeURIComponent(n)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async updateStaff(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/staff/${a}?account=${encodeURIComponent(n)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async patchAllStaff(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff?account=${encodeURIComponent(n)}`;const o=this.instance.patch(i,a,this.getAxiosConfig(e));if(o!==null)try{await o;return}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class wc{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllStaffs(e){return(await this.indexedDb.getAllValue(jn)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async getById(e,n){var r;const a=await this.indexedDb.getValue(jn,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw dn}async saveAllStaffs(e){await this.indexedDb.putBulkValue(jn,e)}async deleteById(e,n){await this.indexedDb.deleteValue(jn,n)}async deleteByStaffIds(e){await this.indexedDb.deleteValues(jn,e)}async drop(){await this.indexedDb.deleteAllValues(jn)}updateServiceSkills(e,n,r){this.getAllStaffs(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.servicesSkill)==null?void 0:s.includes(n)});i&&i.length>0&&(i.forEach(o=>{var s,c,l;const h=(s=o.servicesSkill)==null?void 0:s.findIndex(x=>x===n);h!=null&&(r?(c=o.servicesSkill)==null||c.splice(h,1,r):(l=o.servicesSkill)==null||l.splice(h,1))}),await this.saveAllStaffs(i))})}}var i1=Object.defineProperty,o1=Object.getOwnPropertyDescriptor,Pi=(t,e,n,r)=>{for(var a=r>1?void 0:r?o1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&i1(e,n,a),a};const gn=new Ne.Channel;let ia=class extends Ht{constructor(t,e,n,r){super("staff",r),f(this,"staffDb"),f(this,"staffService"),this.staffDb=new wc(e),this.staffService=new a1(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllStaffs(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getStaff(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,staffId:r})}async createStaff(t,e,n,r){const a=await this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return gn.publish($e.CREATE,{account:e,companyId:n,staff:a}),a}async updateStaff(t,e,n,r,a){const i=await this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,staffId:r},a);return gn.publish($e.UPDATE,{account:e,companyId:n,staffId:r,staff:i}),i}async patchAllStaff(t,e,n,r,a){let i=new Kt;return r&&(i.workingHours=r),a&&(i.vacations=a),await this.staffService.patchAllStaff(t,e,n,i),this.getAllStaffs(t,e,n,Oe.REMOTE_THEN_LOCAL)}async deleteStaff(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,staffId:r}),gn.publish($e.DELETE,{account:e,companyId:n,staffId:r})}async remoteList(t,e){return(await this.staffService.getAllStaffs(t,e.account,e.companyId)).map(n=>Kt.fromStaffDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.staffService.getById(t,e.account,e.companyId,e.staffId);return Kt.fromStaffDto(n)}async remoteCreate(t,e,n){const r=Kt.toStaffDto(n),a=await this.staffService.createStaff(t,e.account,e.companyId,r);return Kt.fromStaffDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Kt.toStaffDto(n),a=await this.staffService.updateStaff(t,e.account,e.companyId,e.staffId,r);return Kt.fromStaffDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.staffService.delete(t,e.account,e.companyId,e.staffId)}async localList(t){return this.staffDb.getAllStaffs(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffDb.getById(t.companyId,t.staffId)}async localBulkSave(t,e){await this.staffDb.saveAllStaffs(e)}async localDelete(t){this.checkNullable(t),await this.staffDb.deleteById(t.companyId,t.staffId)}async localBulkDelete(t){await this.staffDb.deleteByStaffIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffId)throw Error("Invalid state:"+JSON.stringify(t))}};Pi([Ne.Unsubscribe()],ia.prototype,"dispose",1),Pi([Ne.Subscribe($e.DELETE)],ia.prototype,"onCascadeDelete",1),ia=Pi([Ne.Subscriber({channel:ht})],ia);class s1 extends Xt{async getAllServices(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/services?account=${encodeURIComponent(n)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async createService(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services?account=${encodeURIComponent(n)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async updateService(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/services/${a}?account=${encodeURIComponent(n)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class _c{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllServiceGroups(e){return(await this.indexedDb.getAllValue(Hn)||[]).filter(n=>n.companyId===e)}async saveAllServiceGroups(e){await this.indexedDb.putBulkValue(Hn,e)}async getById(e,n){const r=await this.indexedDb.getValue(Hn,n);if((r==null?void 0:r.companyId)===e)return r;throw dn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Hn,n),new wc(this.indexedDb).updateServiceSkills(e,n,void 0)}async deleteByServiceGroupIds(e){await this.indexedDb.deleteValues(Hn,e)}async drop(){await this.indexedDb.deleteAllValues(Hn)}updateServices(e,n,r){this.getAllServiceGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(c=>c.id===n)});i&&i.length>0&&(i.forEach(o=>{var s,c,l;const h=(s=o.members)==null?void 0:s.findIndex(x=>x.id===n);h!=null&&(r?(c=o.members)==null||c.splice(h,1,r):(l=o.members)==null||l.splice(h,1))}),await this.saveAllServiceGroups(i))})}}class Sc{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllServices(e){return(await this.indexedDb.getAllValue(Vn)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async saveAllServices(e){await this.indexedDb.putBulkValue(Vn,e)}async getById(e,n){var r;const a=await this.indexedDb.getValue(Vn,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw dn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Vn,n),new _c(this.indexedDb).updateServices(e,n,void 0)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Vn,e)}async drop(){await this.indexedDb.deleteAllValues(Vn)}updateStaffSkills(e,n,r){this.getAllServices(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.staffsSkill)==null?void 0:s.includes(n)});i&&i.length>0&&(i.forEach(o=>{var s,c,l;const h=(s=o.staffsSkill)==null?void 0:s.findIndex(x=>x===n);h!=null&&(r?(c=o.staffsSkill)==null||c.splice(h,1,r):(l=o.staffsSkill)==null||l.splice(h,1))}),await this.saveAllServices(i))})}}var l1=Object.defineProperty,c1=Object.getOwnPropertyDescriptor,Fi=(t,e,n,r)=>{for(var a=r>1?void 0:r?c1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&l1(e,n,a),a};const wr=new Ne.Channel;let oa=class extends Ht{constructor(t,e,n,r){super("service",r),f(this,"serviceDb"),f(this,"serviceService"),this.serviceDb=new Sc(e),this.serviceService=new s1(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServices(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getService(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceId:r})}async createService(t,e,n,r){const a=await super.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return wr.publish($e.CREATE,{account:e,companyId:n,service:a}),a}async updateService(t,e,n,r,a){const i=await super.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceId:r},a);return wr.publish($e.UPDATE,{account:e,companyId:n,serviceId:r,service:i}),i}async deleteService(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,serviceId:r}),wr.publish($e.DELETE,{account:e,companyId:n,serviceId:r})}async remoteList(t,e){return(await this.serviceService.getAllServices(t,e.account,e.companyId)).map(n=>ln.fromServiceDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceService.getById(t,e.account,e.companyId,e.serviceId);return ln.fromServiceDto(n)}async remoteCreate(t,e,n){const r=ln.toServiceDto(n),a=await this.serviceService.createService(t,e.account,e.companyId,r);return ln.fromServiceDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=ln.toServiceDto(n),a=await this.serviceService.updateService(t,e.account,e.companyId,e.serviceId,r);return ln.fromServiceDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceService.delete(t,e.account,e.companyId,e.serviceId)}async localList(t){return this.serviceDb.getAllServices(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceDb.getById(t.companyId,t.serviceId)}async localBulkSave(t,e){await this.serviceDb.saveAllServices(e)}async localDelete(t){this.checkNullable(t),await this.serviceDb.deleteById(t.companyId,t.serviceId)}async localBulkDelete(t){await this.serviceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceId)throw Error("Invalid state:"+JSON.stringify(t))}};Fi([Ne.Unsubscribe()],oa.prototype,"dispose",1),Fi([Ne.Subscribe($e.DELETE)],oa.prototype,"onCascadeDelete",1),oa=Fi([Ne.Subscriber({channel:ht})],oa);class u1 extends Xt{async searchContacts(e,n,r,a=100,i=!0,o=!1,s,c){let l="/api/2.3/clients",h=this.getAxiosConfig(e);h.params.q=r,h.params.maxResult=a,h.params.showAnonymized=o,s&&(h.params.orderBy=s),c&&(h.params.pageToken=c),n&&(h.params.account=n);const x=this.instance.get(l,h);if(x!==null)try{const y=await x;return i?y.items:y}catch(y){throw y}else throw new Te(Se.INTERNAL_ERROR)}async advancedSearchContacts(e,n,r,a=100,i=!0,o,s){let c="/api/2.3/clients/search",l=this.getAxiosConfig(e);l.params.maxResult=a,o&&(l.params.orderBy=o),n&&(l.params.account=n),s&&(l.params.pageToken=s);const h=this.instance.post(c,r,l);if(h!==null)try{const x=await h;return i?x.items:x}catch(x){throw x}else throw new Te(Se.INTERNAL_ERROR)}async createContact(e,n,r){const a=this.instance.post(`/api/2.3/clients?account=${encodeURIComponent(n)}`,r,this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}async updateContact(e,n,r,a){const i=this.instance.put(`/api/2.3/clients/${r}?account=${encodeURIComponent(n)}`,a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r){let a=`/api/2.3/clients/${r}?account=${encodeURIComponent(n)}`;const i=this.instance.get(a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Te(Se.INTERNAL_ERROR)}async deleteBy(e,n,r){let a=`/api/2.3/clients/${r}?account=${encodeURIComponent(n)}`;const i=this.instance.delete(a,this.getAxiosConfig(e));if(i!==null)try{await i}catch(o){throw o}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class d1{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllContacts(){return this.indexedDb.getAllValue(vr)}async saveAllContacts(e){await this.indexedDb.putBulkValue(vr,e)}async getById(e){return this.indexedDb.getValue(vr,e)}async deleteById(e){await this.indexedDb.deleteValue(vr,e)}async drop(){this.indexedDb.deleteAllValues(vr)}}function h1(t){t||(t=[]),m1(t);let e="",n="";for(const r of t)e+=n+r,n=",";return e}function f1(){const t=[];return t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.STAFF),t.push(Xe.SERVICE),t.push(Xe.STATUS),t.push(Xe.COMPANY),t.push(Xe.OWNER),t.push(Xe.CLIENT),t.push(Xe.ONLINE_MEETING),t.push(Xe.FORM),t.push(Xe.PRICE),t.push(Xe.SOURCE),t.push(Xe.SUMMARY),t.push(Xe.NOTES),t.push(Xe.PREPARATION_DURATION),t.push(Xe.BUFFER_DURATION),t}function m1(t){t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.SOURCE)}var Xe=(t=>(t.ID="id",t.START="start",t.END="end",t.OWNER="owner",t.NOTES="notes",t.CREATED="created",t.STAFF="staff",t.HISTORY="history",t.SOURCE="source",t.REFERENCE="reference",t.SERVICE="service",t.ENCRYPTED_ID="encryptedId",t.PAID="paid",t.CLIENT="client",t.COMPANY="company",t.STATUS="status",t.SUMMARY="summary",t.RESOURCE="resource",t.SERVICE_RESOURCE="service-resource",t.PARENT="parent",t.RESCHEDULE_LINK="rescheduleLink",t.ONLINE_MEETING="onlineMeeting",t.PRICE="price",t.FORM="form",t.PREPARATION_DURATION="preparationDuration",t.BUFFER_DURATION="bufferDuration",t))(Xe||{});class p1 extends Xt{async createEvent(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/appointments?account=${encodeURIComponent(n)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.post(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async updateEvent(e,n,r,a,i=!1){let o=`/api/2.1/scheduling/companies/${r}/appointments/${a.id}?account=${encodeURIComponent(n)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.put(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async updateEventStatus(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/appointments/${a}?account=${encodeURIComponent(n)}`;const s=this.instance.put(o,{status:i},this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async getExternalAppointments(e,n,r,a,i,o){let s=this.getAxiosConfig(e);s.params.userIds=r,s.params.account=n,s.params.start=a,s.params.end=i,s.params.timeZone=o;const c=this.instance.get("/api/2.1/scheduling/externalAppointments",s);if(c!==null)try{return(await c).items}catch(l){throw l}else throw new Te(Se.INTERNAL_ERROR)}async getICS(e,n){let r=this.getAxiosConfig(e),a=n;if(n.indexOf("calendar.google.com/calendar")>0){const o=n.indexOf("://");a="/api/2.3/forward/https//"+(o>0?n.substring(o+3):n)}const i=this.instance.get(a,r);if(i!==null)try{return await i}catch(o){throw o}else throw new Te(Se.INTERNAL_ERROR)}async getAllEvents(e,n,r,a,i,o,s,c){let l=this.getAxiosConfig(e);l.params.userIds=r,l.params.account=n,l.params.start=a,l.params.end=i,l.params.levelDetail="full",o&&(l.params.personalAppointments=!0),l.params.showDeleted=s,c&&c.length>0?l.params.fields=h1(c):l.params.fields=f1().map(x=>`${x}`).join(",");const h=this.instance.get("/api/2.1/scheduling/appointments",l);if(h!==null)try{return(await h).items}catch(x){throw x}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=this.getAxiosConfig(e);i.params.levelDetail="full",i.params.account=n,a&&(i.params.personalAppointments=!0);let o=`/api/2.1/scheduling/appointments/${r}`;const s=this.instance.get(o,i);if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async _prepareFormFields(e){var n;if(e){const r=e.filter(a=>a.inputType!=="file"||a.inputType==="file"&&a.value!==void 0);try{r.forEach(a=>{var i;a.values&&(a.values=(i=a.values)==null?void 0:i.filter(o=>typeof a.value=="string"&&a.value===o.value||Array.isArray(a.value)&&a.value.indexOf(o.value)!==-1),Array.isArray(a.value)&&(a.value=void 0))});for(const a of r.filter(i=>i.inputType==="rating"&&i.value!==void 0&&i.value!==""))a.values=[{id:a.value,value:a.value,name:a.value}];for(const a of r.filter(i=>i.inputType==="file"))a.fileName=a.value.name,a.value=await fp(a.value)}catch(a){(n=this.logger)==null||n.error("js-calendar-api","Error while prepared form fields",a)}return r}}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class g1{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(fn,e)}async saveEvent(e){await this.indexedDb.putValue(fn,e)}async deleteEvent(e){await this.indexedDb.deleteValue(fn,e)}async deleteByEventIds(e){await this.indexedDb.deleteValues(fn,e)}async getAllEvents(e,n,r,a){return(await this.indexedDb.getAllValue(fn)||[]).filter(i=>{var o,s,c,l;const h=n===void 0||n.includes(((o=i.staff)==null?void 0:o.userId)||"")||((s=i.staff)==null?void 0:s.userId)==="0"&&n.includes(i.staff.id);return((c=i.staff)==null?void 0:c.userId)!==void 0&&h&&(r===void 0||i.start.getTime()>=r.getTime())&&(a===void 0||i.end.getTime()<=a.getTime())&&(e===void 0||((l=i.owner)==null?void 0:l.userName)===e)})}async getFirstEventByChildEventId(e){const n=(await this.indexedDb.getAllValue(fn)||[]).filter(r=>{var a;return(a=r.events)==null?void 0:a.some(i=>i.id===e)});return(n==null?void 0:n.length)>0?n[0]:void 0}async getById(e){return this.indexedDb.getValue(fn,e)}async drop(){await this.indexedDb.deleteAllValues(fn)}}class sa extends Map{static fromStorage(e){let n=new sa;return e&&Object.entries(JSON.parse(e)).forEach(r=>{n.set(r[0],r[1])}),n}}class v1{constructor(){f(this,"STORAGE_KEY","eventCoverage")}getCoverage(e,n,r,a,i){return this.getLocalCoverage(e,n,new Ic(kt.fromDate(r),kt.fromDate(a)),i)}getLocalCoverage(e,n,r,a){let i=sa.fromStorage(localStorage.getItem(this.STORAGE_KEY)),o=[],s=[],c=[];r.getRange().forEach(w=>{n.forEach(S=>{c.push({account:e,userId:S,year:w.year,month:w.month})})}),c.forEach(w=>{let S=i.get(w.userId);b1(new kt(w.year,w.month),S||[])?o.push(w):s.push(w)}),a==null||a.debug("js-calendar-api","Month to load (local): ",o),a==null||a.debug("js-calendar-api","Month to load (remote): ",s);let l=Cc(o),h=Cc(s),x=Ac(l),y=Ac(h);return{local:x,remote:y}}saveCoverage(e,n,r,a,i){return this.saveLocalCoverage(e,n,new Ic(kt.fromDate(r),kt.fromDate(a)),i)}saveLocalCoverage(e,n,r,a){let i=sa.fromStorage(localStorage.getItem(this.STORAGE_KEY));n.forEach(o=>{let s=i==null?void 0:i.get(o),c=s?s.filter(l=>{r.isIn(l.month,l.year)}):[];r.getRange().forEach(l=>{c.push({account:e,userId:o,year:l.year,month:l.month})}),a==null||a.debug("js-calendar-api",`Add coverage ${o} ${JSON.stringify(c)}`),i==null||i.set(o,c)}),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(Object.fromEntries(i)))}clearStorage(){localStorage.removeItem(this.STORAGE_KEY)}}class Ic{constructor(e,n){f(this,"start"),f(this,"end"),this.start=e,this.end=n}isIn(e,n){let r=kt.toNumber(n,e);return this.start.toNumber()<=r&&this.end.toNumber()>=r}getRange(){let e=this.start.year,n=this.start.month,r=[];do r.push(new kt(e,n)),n++,n==12&&(n=0,e++);while(kt.toNumber(e,n)<=this.end.toNumber());return r}}class kt{constructor(e,n){f(this,"month"),f(this,"year"),this.year=e,this.month=n}toNumber(){return kt.toNumber(this.year,this.month)}static fromDate(e){return new kt(e.getFullYear(),e.getMonth())}static toNumber(e,n){return e*12+n}}const la=t=>{const e=t.month+1;return new Date(t.year+"-"+(e<10?"0"+e:e)+"-01")},y1=(t,e,n,r)=>t===n&&Math.abs(e-r)===1||Math.abs(t-n)===1&&Math.abs(e-r)===11,b1=(t,e)=>e.filter(n=>n.year===t.year&&n.month===t.month).length>0,Cc=t=>{const e=(a,i)=>kt.toNumber(a.year,a.month)-kt.toNumber(i.year,i.month);t.sort(e);let n=[];if(t.length===0)return n;let r;return t.forEach((a,i)=>{i===0?r={userId:[a.userId],month:a.month,year:a.year}:a.month===r.month&&a.year===r.year?r.userId.push(a.userId):(n.push(r),r={userId:[a.userId],month:a.month,year:a.year}),i===t.length-1&&n.push(r)}),n};function kc(t,e,n){return{userId:t.userId,start:{year:e.year,month:e.month},end:{year:n.month==11?n.year+1:n.year,month:n.month==11?0:n.month+1}}}const Ac=t=>{let e=[];if(t.length===0)return e;let n,r;return t.sort((a,i)=>a.year<i.year?-1:a.year>i.year||a.month>i.month?1:a.month<i.month?-1:0),t.forEach((a,i)=>{if(i===0)n=a,r=a;else if(y1(a.year,a.month,r.year,r.month))r=a;else{let o=kc(a,n,r);e.push(o),n=a,r=a}if(i===t.length-1){let o=kc(a,n,r);e.push(o)}}),e};var E1=Object.defineProperty,x1=Object.getOwnPropertyDescriptor,zi=(t,e,n,r)=>{for(var a=r>1?void 0:r?x1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&E1(e,n,a),a};const _r=new Ne.Channel;let ca=class extends Ht{constructor(t,e,n,r){super("event",r),f(this,"REPOSITORY_NAME","Appointment"),f(this,"USE_EVENT_COVERAGE",!1),f(this,"eventDb"),f(this,"eventService"),f(this,"eventMetaStorage"),this.eventDb=new g1(e),this.eventService=new p1(n,t,r),this.eventMetaStorage=new v1}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async createEvent(t,e,n,r,a,i){const o=await this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,timeZone:a,force:i},r);return _r.publish($e.CREATE,{account:e,companyId:n,event:o}),o}async updateEvent(t,e,n,r,a,i){let o=await this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,timeZone:a,force:i},r);return _r.publish($e.UPDATE,{account:e,companyId:n,event:o}),o}async updateEventStatus(t,e,n,r,a){let i=await this.remoteUpdateStatus(t,{account:e,companyId:n,eventId:r},a);return _r.publish($e.UPDATE,{account:e,companyId:n,event:i}),i}async getEvent(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{eventId:n,showPersonal:r,account:e})}async getAllEvents(t,e,n,r,a,i,o,s,c,l=Oe.LOCAL_THEN_REMOTE){let h=!0,x=[];if(l===Oe.REMOTE_ONLY)x=await this.remoteList(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:s,showPersonal:i,showDeleted:o,fields:c}),await this.localBulkSave({},x),h=!1;else if(l===Oe.LOCAL_ONLY)x=await this.localList({userIds:n.join(","),account:e,start:r,end:a,showPersonal:i,showDeleted:o});else if(l==Oe.REMOTE_THEN_LOCAL){const y=await this.list(t,Oe.REMOTE_THEN_LOCAL,{userIds:n.join(","),account:e,start:r,end:a,timeZone:s,showPersonal:i,showDeleted:o,fields:c});x=y.results,h=y.local}else if(l==Oe.LOCAL_THEN_REMOTE)if(this.USE_EVENT_COVERAGE){let y=await this.getEventWithCoverage(t,e,n,r,a,i,o,s,c,l);h=y.local,x=y.results}else x=await this.remoteList(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:s,showPersonal:i,showDeleted:o,fields:c}),await this.localBulkSave({},x),h=!1;return{local:h,results:x}}async getEventWithCoverage(t,e,n,r,a,i,o,s,c,l=Oe.LOCAL_THEN_REMOTE){var h,x;let y=!0,w=[],S=this.eventMetaStorage.getCoverage(e,n,r,a,this.logger);for(const C of S.local){(h=this.logger)==null||h.debug("js-calendar-api",`getAllEvents coverage local: ${JSON.stringify(C)}`);const N=await this.list(t,Oe.LOCAL_THEN_REMOTE,{userIds:n.join(","),account:e,start:la(C.start),end:la(C.end),timeZone:s,showPersonal:i,showDeleted:o,fields:c});w=w.concat(N.results)}for(const C of S.remote){(x=this.logger)==null||x.debug("js-calendar-api",`getAllEvents coverage remote: ${JSON.stringify(C)}`);const N=await this.list(t,Oe.REMOTE_THEN_LOCAL,{userIds:n.join(","),account:e,start:la(C.start),end:la(C.end),timeZone:s,showPersonal:i,showDeleted:o,fields:c});w=w.concat(N.results)}return y=S.remote.length===0,{local:y,results:w}}async deleteAllEvents(){return this.eventDb.drop()}async getExternalEvent(t,e,n,r,a,i){const o=zn(r,i),s=zn(a,i);return(await this.eventService.getExternalAppointments(t,e,n.join(","),o,s,i)).map(c=>Rt.fromEventDto(c,Al.EXTERNAL))}async remoteList(t,e){if(!e.start||!e.end||!e.userIds||!e.account)throw Error("Invalid state:"+JSON.stringify(e));const n=zn(e.start,e.timeZone),r=zn(e.end,e.timeZone),a=await this.eventService.getAllEvents(t,e.account,e.userIds,n,r,e.showPersonal,e.showDeleted,e.fields);return this.eventMetaStorage.saveCoverage(e.account,e.userIds.split(","),e.start,e.end,this.logger),a.map(i=>Rt.fromEventDto(i))}async remoteGet(t,e){if(!e.eventId||!e.account)throw Error("Invalid state:"+JSON.stringify(e));const n=await this.eventService.getById(t,e.account,e.eventId,e.showPersonal);return Rt.fromEventDto(n)}async remoteCreate(t,e,n){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));const r=Rt.toEventDto(n,e.timeZone),a=await this.eventService.createEvent(t,e.account,e.companyId,r,e.force||!1);return Rt.fromEventDto(a)}async remoteUpdate(t,e,n){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));let r=Rt.toEventDto(n,e.timeZone);const a=await this.eventService.updateEvent(t,e.account,e.companyId,r,e.force);return Rt.fromEventDto(a)}async remoteUpdateStatus(t,e,n){if(!e.account||!e.companyId||!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const r=await this.eventService.updateEventStatus(t,e.account,e.companyId,e.eventId,n);return Rt.fromEventDto(r)}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){var e;return this.eventDb.getAllEvents(t.account,(e=t.userIds)==null?void 0:e.split(","),t.start,t.end)}async localGet(t){if(!t.eventId)throw Error("Invalid state:"+JSON.stringify(t));return this.eventDb.getById(t.eventId)}async localBulkSave(t,e){await this.eventDb.saveAllEvents(e)}async localDelete(t){throw new Error("Method not implemented.")}async localBulkDelete(t){await this.eventDb.deleteByEventIds(t.map(e=>e.id||""))}};zi([Ne.Unsubscribe()],ca.prototype,"dispose",1),zi([Ne.Subscribe($e.DELETE)],ca.prototype,"onCascadeDelete",1),ca=zi([Ne.Subscriber({channel:ht})],ca);var w1=Object.defineProperty,_1=Object.getOwnPropertyDescriptor,Dc=(t,e,n,r)=>{for(var a=r>1?void 0:r?_1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&w1(e,n,a),a};const Tc=new Ne.Channel,Nc=100;let Bi=class extends Ht{constructor(t,e,n,r){super("contact",r),f(this,"contactDb"),f(this,"contactService"),this.contactDb=new d1(e),this.contactService=new u1(n,t,r)}async onCascadeChange(t,e,n,r){var a,i,o,s;n==_r&&(i=(a=t.event)==null?void 0:a.client)!=null&&i.id&&await this.cascadeDeleteItem({account:t.account,contactId:(s=(o=t.event)==null?void 0:o.client)==null?void 0:s.id})}async searchContacts(t,e,n,r){return this.list(t,Oe.REMOTE_THEN_LOCAL,{account:e||"",query:n,showAnonymized:r})}async searchContactWithPages(t,e,n,r,a,i){var o;let s;return typeof n=="string"?s=await this.contactService.searchContacts(t,e,n||"",Nc,!1,r,a,i):s=await this.contactService.advancedSearchContacts(t,e,n,Nc,!1,a,i),{nextPageToken:s.nextPageToken,nextSyncToken:s.nextSyncToken,totalItems:s.totalItems,items:(o=s.items)==null?void 0:o.map(c=>Jt.fromContactDto(c))}}async createContact(t,e,n){return n.address===void 0&&(n.address=new mr,n.address.country="FR"),this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e},n)}async updateContact(t,e,n,r){return this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,contactId:n},r)}async deleteContact(t,e,n){return this.deleteById(t,{account:e,contactId:n})}async getContact(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.getById(t,r,{account:e,contactId:n})}async remoteList(t,e){return(await this.contactService.searchContacts(t,e.account,e.query||"",100,!0,e.showAnonymized)).map(n=>Jt.fromContactDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.contactService.getById(t,e.account,e.contactId);return Jt.fromContactDto(n)}async remoteCreate(t,e,n){const r=Jt.toContactDto(n),a=await this.contactService.createContact(t,e.account,r);return Jt.fromContactDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Jt.toContactDto(n),a=await this.contactService.updateContact(t,e.account,e.contactId,r);return Jt.fromContactDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.contactService.deleteBy(t,e.account,e.contactId)}async localList(t){return this.contactDb.getAllContacts()}async localGet(t){return this.checkNullable(t),this.contactDb.getById(t.contactId)}async localBulkSave(t,e){await this.contactDb.saveAllContacts(e)}async localDelete(t){this.checkNullable(t),await this.contactDb.deleteById(t.contactId)}localBulkDelete(t){return Promise.resolve(void 0)}checkNullable(t){if(!t.contactId)throw Error("Invalid state:"+JSON.stringify(t))}};Dc([Ne.Subscribe($e.UPDATE),Ne.Subscribe($e.CREATE)],Bi.prototype,"onCascadeChange",1),Bi=Dc([Ne.Subscriber({channel:_r})],Bi);class S1 extends Xt{async getAllUsers(e){const n=this.instance.get("/api/2.1/scheduling/users",this.getAxiosConfig(e));if(n!==null)try{return await n}catch(r){throw r}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n){let r=`/api/2.1/scheduling/users/${n}`;const a=this.instance.get(r,this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class I1{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllUsers(){return this.indexedDb.getAllValue(yr)}async getById(e){return this.indexedDb.getValue(yr,e)}async saveAllUsers(e){this.indexedDb.putBulkValue(yr,e)}async drop(){return this.indexedDb.deleteAllValues(yr)}async dropBulk(e){return this.indexedDb.deleteValues(yr,e.map(n=>n.id))}}var C1=Object.defineProperty,k1=Object.getOwnPropertyDescriptor,Ui=(t,e,n,r)=>{for(var a=r>1?void 0:r?k1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&C1(e,n,a),a};const Lc=new Ne.Channel;let ua=class extends Ht{constructor(t,e,n,r){super("user",r),f(this,"userDb"),f(this,"userService"),this.userDb=new I1(e),this.userService=new S1(n,t,r)}async getAllUsers(t,e=Oe.LOCAL_THEN_REMOTE){return this.list(t,e,{})}async getUser(t,e,n=Oe.LOCAL_THEN_REMOTE){return this.getById(t,n,{userId:e})}async remoteList(t,e){const n=await this.userService.getAllUsers(t);return n.anonymousUsers.map(r=>{const a=gr.fromUserDto(r);return a.anonymous=!0,a}).concat(n.users.map(r=>{const a=gr.fromUserDto(r);return a.anonymous=!1,a}))}async remoteGet(t,e){this.checkNullable(e);const n=await this.userService.getById(t,e.userId);return gr.fromUserDto(n)}async remoteCreate(t,e,n){throw new Error("Method not implemented.")}async remoteUpdate(t,e,n){throw new Error("Method not implemented.")}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){return this.userDb.getAllUsers()}async localGet(t){return this.checkNullable(t),this.userDb.getById(t.userId)}async localBulkSave(t,e){await this.userDb.saveAllUsers(e)}async localDelete(t){throw new Error("Method not implemented.")}localBulkDelete(t){return this.userDb.dropBulk(t)}checkNullable(t){if(!t.userId)throw Error("Invalid state:"+JSON.stringify(t))}dispose(){}async onCascadeDelete(t,e,n,r){(n==gn||n==ht)&&await this.cascadeDelete({},()=>!0)}};Ui([Ne.Unsubscribe()],ua.prototype,"dispose",1),Ui([Ne.Subscribe($e.DELETE),Ne.Subscribe($e.CREATE),Ne.Subscribe($e.UPDATE)],ua.prototype,"onCascadeDelete",1),ua=Ui([Ne.Subscriber({channel:gn}),Ne.Subscriber({channel:ht})],ua);var A1={exports:{}},Oc={exports:{}},Rc;function da(){return Rc||(Rc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.Base,s=i.WordArray,c=a.x64={};c.Word=o.extend({init:function(l,h){this.high=l,this.low=h}}),c.WordArray=o.extend({init:function(l,h){l=this.words=l||[],h!=r?this.sigBytes=h:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,h=l.length,x=[],y=0;y<h;y++){var w=l[y];x.push(w.high),x.push(w.low)}return s.create(x,this.sigBytes)},clone:function(){for(var l=o.clone.call(this),h=l.words=this.words.slice(0),x=h.length,y=0;y<x;y++)h[y]=h[y].clone();return l}})}(),n})}(Oc)),Oc.exports}var Mc={exports:{}},Pc;function D1(){return Pc||(Pc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,a=r.lib,i=a.WordArray,o=i.init,s=i.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var l=c.byteLength,h=[],x=0;x<l;x++)h[x>>>2]|=c[x]<<24-x%4*8;o.call(this,h,l)}else o.apply(this,arguments)};s.prototype=i}}(),n.lib.WordArray})}(Mc)),Mc.exports}var Fc={exports:{}},zc;function T1(){return zc||(zc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(c){for(var l=c.words,h=c.sigBytes,x=[],y=0;y<h;y+=2){var w=l[y>>>2]>>>16-y%4*8&65535;x.push(String.fromCharCode(w))}return x.join("")},parse:function(c){for(var l=c.length,h=[],x=0;x<l;x++)h[x>>>1]|=c.charCodeAt(x)<<16-x%2*16;return i.create(h,l*2)}},o.Utf16LE={stringify:function(c){for(var l=c.words,h=c.sigBytes,x=[],y=0;y<h;y+=2){var w=s(l[y>>>2]>>>16-y%4*8&65535);x.push(String.fromCharCode(w))}return x.join("")},parse:function(c){for(var l=c.length,h=[],x=0;x<l;x++)h[x>>>1]|=s(c.charCodeAt(x)<<16-x%2*16);return i.create(h,l*2)}};function s(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(Fc)),Fc.exports}var Bc={exports:{}},Uc;function Yn(){return Uc||(Uc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64={stringify:function(c){var l=c.words,h=c.sigBytes,x=this._map;c.clamp();for(var y=[],w=0;w<h;w+=3)for(var S=l[w>>>2]>>>24-w%4*8&255,C=l[w+1>>>2]>>>24-(w+1)%4*8&255,N=l[w+2>>>2]>>>24-(w+2)%4*8&255,k=S<<16|C<<8|N,E=0;E<4&&w+E*.75<h;E++)y.push(x.charAt(k>>>6*(3-E)&63));var D=x.charAt(64);if(D)for(;y.length%4;)y.push(D);return y.join("")},parse:function(c){var l=c.length,h=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var y=0;y<h.length;y++)x[h.charCodeAt(y)]=y}var w=h.charAt(64);if(w){var S=c.indexOf(w);S!==-1&&(l=S)}return s(c,l,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(c,l,h){for(var x=[],y=0,w=0;w<l;w++)if(w%4){var S=h[c.charCodeAt(w-1)]<<w%4*2,C=h[c.charCodeAt(w)]>>>6-w%4*2,N=S|C;x[y>>>2]|=N<<24-y%4*8,y++}return i.create(x,y)}}(),n.enc.Base64})}(Bc)),Bc.exports}var jc={exports:{}},Vc;function N1(){return Vc||(Vc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64url={stringify:function(c,l=!0){var h=c.words,x=c.sigBytes,y=l?this._safe_map:this._map;c.clamp();for(var w=[],S=0;S<x;S+=3)for(var C=h[S>>>2]>>>24-S%4*8&255,N=h[S+1>>>2]>>>24-(S+1)%4*8&255,k=h[S+2>>>2]>>>24-(S+2)%4*8&255,E=C<<16|N<<8|k,D=0;D<4&&S+D*.75<x;D++)w.push(y.charAt(E>>>6*(3-D)&63));var I=y.charAt(64);if(I)for(;w.length%4;)w.push(I);return w.join("")},parse:function(c,l=!0){var h=c.length,x=l?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var w=0;w<x.length;w++)y[x.charCodeAt(w)]=w}var S=x.charAt(64);if(S){var C=c.indexOf(S);C!==-1&&(h=C)}return s(c,h,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(c,l,h){for(var x=[],y=0,w=0;w<l;w++)if(w%4){var S=h[c.charCodeAt(w-1)]<<w%4*2,C=h[c.charCodeAt(w)]>>>6-w%4*2,N=S|C;x[y>>>2]|=N<<24-y%4*8,y++}return i.create(x,y)}}(),n.enc.Base64url})}(jc)),jc.exports}var qc={exports:{}},Hc;function Zn(){return Hc||(Hc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,c=a.algo,l=[];(function(){for(var C=0;C<64;C++)l[C]=r.abs(r.sin(C+1))*4294967296|0})();var h=c.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,N){for(var k=0;k<16;k++){var E=N+k,D=C[E];C[E]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var I=this._hash.words,T=C[N+0],P=C[N+1],z=C[N+2],Y=C[N+3],Q=C[N+4],B=C[N+5],W=C[N+6],ne=C[N+7],R=C[N+8],q=C[N+9],$=C[N+10],V=C[N+11],j=C[N+12],Z=C[N+13],se=C[N+14],ie=C[N+15],F=I[0],ee=I[1],re=I[2],K=I[3];F=x(F,ee,re,K,T,7,l[0]),K=x(K,F,ee,re,P,12,l[1]),re=x(re,K,F,ee,z,17,l[2]),ee=x(ee,re,K,F,Y,22,l[3]),F=x(F,ee,re,K,Q,7,l[4]),K=x(K,F,ee,re,B,12,l[5]),re=x(re,K,F,ee,W,17,l[6]),ee=x(ee,re,K,F,ne,22,l[7]),F=x(F,ee,re,K,R,7,l[8]),K=x(K,F,ee,re,q,12,l[9]),re=x(re,K,F,ee,$,17,l[10]),ee=x(ee,re,K,F,V,22,l[11]),F=x(F,ee,re,K,j,7,l[12]),K=x(K,F,ee,re,Z,12,l[13]),re=x(re,K,F,ee,se,17,l[14]),ee=x(ee,re,K,F,ie,22,l[15]),F=y(F,ee,re,K,P,5,l[16]),K=y(K,F,ee,re,W,9,l[17]),re=y(re,K,F,ee,V,14,l[18]),ee=y(ee,re,K,F,T,20,l[19]),F=y(F,ee,re,K,B,5,l[20]),K=y(K,F,ee,re,$,9,l[21]),re=y(re,K,F,ee,ie,14,l[22]),ee=y(ee,re,K,F,Q,20,l[23]),F=y(F,ee,re,K,q,5,l[24]),K=y(K,F,ee,re,se,9,l[25]),re=y(re,K,F,ee,Y,14,l[26]),ee=y(ee,re,K,F,R,20,l[27]),F=y(F,ee,re,K,Z,5,l[28]),K=y(K,F,ee,re,z,9,l[29]),re=y(re,K,F,ee,ne,14,l[30]),ee=y(ee,re,K,F,j,20,l[31]),F=w(F,ee,re,K,B,4,l[32]),K=w(K,F,ee,re,R,11,l[33]),re=w(re,K,F,ee,V,16,l[34]),ee=w(ee,re,K,F,se,23,l[35]),F=w(F,ee,re,K,P,4,l[36]),K=w(K,F,ee,re,Q,11,l[37]),re=w(re,K,F,ee,ne,16,l[38]),ee=w(ee,re,K,F,$,23,l[39]),F=w(F,ee,re,K,Z,4,l[40]),K=w(K,F,ee,re,T,11,l[41]),re=w(re,K,F,ee,Y,16,l[42]),ee=w(ee,re,K,F,W,23,l[43]),F=w(F,ee,re,K,q,4,l[44]),K=w(K,F,ee,re,j,11,l[45]),re=w(re,K,F,ee,ie,16,l[46]),ee=w(ee,re,K,F,z,23,l[47]),F=S(F,ee,re,K,T,6,l[48]),K=S(K,F,ee,re,ne,10,l[49]),re=S(re,K,F,ee,se,15,l[50]),ee=S(ee,re,K,F,B,21,l[51]),F=S(F,ee,re,K,j,6,l[52]),K=S(K,F,ee,re,Y,10,l[53]),re=S(re,K,F,ee,$,15,l[54]),ee=S(ee,re,K,F,P,21,l[55]),F=S(F,ee,re,K,R,6,l[56]),K=S(K,F,ee,re,ie,10,l[57]),re=S(re,K,F,ee,W,15,l[58]),ee=S(ee,re,K,F,Z,21,l[59]),F=S(F,ee,re,K,Q,6,l[60]),K=S(K,F,ee,re,V,10,l[61]),re=S(re,K,F,ee,z,15,l[62]),ee=S(ee,re,K,F,q,21,l[63]),I[0]=I[0]+F|0,I[1]=I[1]+ee|0,I[2]=I[2]+re|0,I[3]=I[3]+K|0},_doFinalize:function(){var C=this._data,N=C.words,k=this._nDataBytes*8,E=C.sigBytes*8;N[E>>>5]|=128<<24-E%32;var D=r.floor(k/4294967296),I=k;N[(E+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,N[(E+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,C.sigBytes=(N.length+1)*4,this._process();for(var T=this._hash,P=T.words,z=0;z<4;z++){var Y=P[z];P[z]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return T},clone:function(){var C=s.clone.call(this);return C._hash=this._hash.clone(),C}});function x(C,N,k,E,D,I,T){var P=C+(N&k|~N&E)+D+T;return(P<<I|P>>>32-I)+N}function y(C,N,k,E,D,I,T){var P=C+(N&E|k&~E)+D+T;return(P<<I|P>>>32-I)+N}function w(C,N,k,E,D,I,T){var P=C+(N^k^E)+D+T;return(P<<I|P>>>32-I)+N}function S(C,N,k,E,D,I,T){var P=C+(k^(N|~E))+D+T;return(P<<I|P>>>32-I)+N}a.MD5=s._createHelper(h),a.HmacMD5=s._createHmacHelper(h)}(Math),n.MD5})}(qc)),qc.exports}var Wc={exports:{}},Gc;function ji(){return Gc||(Gc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.Hasher,s=r.algo,c=[],l=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,x){for(var y=this._hash.words,w=y[0],S=y[1],C=y[2],N=y[3],k=y[4],E=0;E<80;E++){if(E<16)c[E]=h[x+E]|0;else{var D=c[E-3]^c[E-8]^c[E-14]^c[E-16];c[E]=D<<1|D>>>31}var I=(w<<5|w>>>27)+k+c[E];E<20?I+=(S&C|~S&N)+1518500249:E<40?I+=(S^C^N)+1859775393:E<60?I+=(S&C|S&N|C&N)-1894007588:I+=(S^C^N)-899497514,k=N,N=C,C=S<<30|S>>>2,S=w,w=I}y[0]=y[0]+w|0,y[1]=y[1]+S|0,y[2]=y[2]+C|0,y[3]=y[3]+N|0,y[4]=y[4]+k|0},_doFinalize:function(){var h=this._data,x=h.words,y=this._nDataBytes*8,w=h.sigBytes*8;return x[w>>>5]|=128<<24-w%32,x[(w+64>>>9<<4)+14]=Math.floor(y/4294967296),x[(w+64>>>9<<4)+15]=y,h.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=o._createHelper(l),r.HmacSHA1=o._createHmacHelper(l)}(),n.SHA1})}(Wc)),Wc.exports}var $c={exports:{}},Yc;function L1(){return Yc||(Yc=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Hr.exports)})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.algo,s=o.SHA256,c=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=s._doFinalize.call(this);return l.sigBytes-=4,l}});r.SHA224=s._createHelper(c),r.HmacSHA224=s._createHmacHelper(c)}(),n.SHA224})}($c)),$c.exports}var Zc={exports:{}},Kc;function Jc(){return Kc||(Kc=1,function(t,e){(function(n,r,a){t.exports=r(Be(),da())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.Hasher,o=r.x64,s=o.Word,c=o.WordArray,l=r.algo;function h(){return s.create.apply(s,arguments)}var x=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],y=[];(function(){for(var S=0;S<80;S++)y[S]=h()})();var w=l.SHA512=i.extend({_doReset:function(){this._hash=new c.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(S,C){for(var N=this._hash.words,k=N[0],E=N[1],D=N[2],I=N[3],T=N[4],P=N[5],z=N[6],Y=N[7],Q=k.high,B=k.low,W=E.high,ne=E.low,R=D.high,q=D.low,$=I.high,V=I.low,j=T.high,Z=T.low,se=P.high,ie=P.low,F=z.high,ee=z.low,re=Y.high,K=Y.low,we=Q,_e=B,Me=W,ye=ne,Ue=R,ke=q,G=$,ae=V,_=j,b=Z,L=se,te=ie,le=F,de=ee,M=re,u=K,v=0;v<80;v++){var d,p,m=y[v];if(v<16)p=m.high=S[C+v*2]|0,d=m.low=S[C+v*2+1]|0;else{var g=y[v-15],A=g.high,O=g.low,U=(A>>>1|O<<31)^(A>>>8|O<<24)^A>>>7,H=(O>>>1|A<<31)^(O>>>8|A<<24)^(O>>>7|A<<25),J=y[v-2],X=J.high,oe=J.low,he=(X>>>19|oe<<13)^(X<<3|oe>>>29)^X>>>6,pe=(oe>>>19|X<<13)^(oe<<3|X>>>29)^(oe>>>6|X<<26),ve=y[v-7],Ie=ve.high,Ee=ve.low,be=y[v-16],ce=be.high,je=be.low;d=H+Ee,p=U+Ie+(d>>>0<H>>>0?1:0),d=d+pe,p=p+he+(d>>>0<pe>>>0?1:0),d=d+je,p=p+ce+(d>>>0<je>>>0?1:0),m.high=p,m.low=d}var xe=_&L^~_&le,Ye=b&te^~b&de,Qe=we&Me^we&Ue^Me&Ue,pt=_e&ye^_e&ke^ye&ke,ge=(we>>>28|_e<<4)^(we<<30|_e>>>2)^(we<<25|_e>>>7),rt=(_e>>>28|we<<4)^(_e<<30|we>>>2)^(_e<<25|we>>>7),Gt=(_>>>14|b<<18)^(_>>>18|b<<14)^(_<<23|b>>>9),At=(b>>>14|_<<18)^(b>>>18|_<<14)^(b<<23|_>>>9),Dt=x[v],Tt=Dt.high,gt=Dt.low,ct=u+At,ut=M+Gt+(ct>>>0<u>>>0?1:0),ct=ct+Ye,ut=ut+xe+(ct>>>0<Ye>>>0?1:0),ct=ct+gt,ut=ut+Tt+(ct>>>0<gt>>>0?1:0),ct=ct+d,ut=ut+p+(ct>>>0<d>>>0?1:0),vn=rt+pt,Kn=ge+Qe+(vn>>>0<rt>>>0?1:0);M=le,u=de,le=L,de=te,L=_,te=b,b=ae+ct|0,_=G+ut+(b>>>0<ae>>>0?1:0)|0,G=Ue,ae=ke,Ue=Me,ke=ye,Me=we,ye=_e,_e=ct+vn|0,we=ut+Kn+(_e>>>0<ct>>>0?1:0)|0}B=k.low=B+_e,k.high=Q+we+(B>>>0<_e>>>0?1:0),ne=E.low=ne+ye,E.high=W+Me+(ne>>>0<ye>>>0?1:0),q=D.low=q+ke,D.high=R+Ue+(q>>>0<ke>>>0?1:0),V=I.low=V+ae,I.high=$+G+(V>>>0<ae>>>0?1:0),Z=T.low=Z+b,T.high=j+_+(Z>>>0<b>>>0?1:0),ie=P.low=ie+te,P.high=se+L+(ie>>>0<te>>>0?1:0),ee=z.low=ee+de,z.high=F+le+(ee>>>0<de>>>0?1:0),K=Y.low=K+u,Y.high=re+M+(K>>>0<u>>>0?1:0)},_doFinalize:function(){var S=this._data,C=S.words,N=this._nDataBytes*8,k=S.sigBytes*8;C[k>>>5]|=128<<24-k%32,C[(k+128>>>10<<5)+30]=Math.floor(N/4294967296),C[(k+128>>>10<<5)+31]=N,S.sigBytes=C.length*4,this._process();var E=this._hash.toX32();return E},clone:function(){var S=i.clone.call(this);return S._hash=this._hash.clone(),S},blockSize:1024/32});r.SHA512=i._createHelper(w),r.HmacSHA512=i._createHmacHelper(w)}(),n.SHA512})}(Zc)),Zc.exports}var Xc={exports:{}},Qc;function O1(){return Qc||(Qc=1,function(t,e){(function(n,r,a){t.exports=r(Be(),da(),Jc())})(Le,function(n){return function(){var r=n,a=r.x64,i=a.Word,o=a.WordArray,s=r.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var h=c._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=c._createHelper(l),r.HmacSHA384=c._createHmacHelper(l)}(),n.SHA384})}(Xc)),Xc.exports}var eu={exports:{}},tu;function R1(){return tu||(tu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),da())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,c=a.x64,l=c.Word,h=a.algo,x=[],y=[],w=[];(function(){for(var N=1,k=0,E=0;E<24;E++){x[N+5*k]=(E+1)*(E+2)/2%64;var D=k%5,I=(2*N+3*k)%5;N=D,k=I}for(var N=0;N<5;N++)for(var k=0;k<5;k++)y[N+5*k]=k+(2*N+3*k)%5*5;for(var T=1,P=0;P<24;P++){for(var z=0,Y=0,Q=0;Q<7;Q++){if(T&1){var B=(1<<Q)-1;B<32?Y^=1<<B:z^=1<<B-32}T&128?T=T<<1^113:T<<=1}w[P]=l.create(z,Y)}})();var S=[];(function(){for(var N=0;N<25;N++)S[N]=l.create()})();var C=h.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var N=this._state=[],k=0;k<25;k++)N[k]=new l.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(N,k){for(var E=this._state,D=this.blockSize/2,I=0;I<D;I++){var T=N[k+2*I],P=N[k+2*I+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var z=E[I];z.high^=P,z.low^=T}for(var Y=0;Y<24;Y++){for(var Q=0;Q<5;Q++){for(var B=0,W=0,ne=0;ne<5;ne++){var z=E[Q+5*ne];B^=z.high,W^=z.low}var R=S[Q];R.high=B,R.low=W}for(var Q=0;Q<5;Q++)for(var q=S[(Q+4)%5],$=S[(Q+1)%5],V=$.high,j=$.low,B=q.high^(V<<1|j>>>31),W=q.low^(j<<1|V>>>31),ne=0;ne<5;ne++){var z=E[Q+5*ne];z.high^=B,z.low^=W}for(var Z=1;Z<25;Z++){var B,W,z=E[Z],se=z.high,ie=z.low,F=x[Z];F<32?(B=se<<F|ie>>>32-F,W=ie<<F|se>>>32-F):(B=ie<<F-32|se>>>64-F,W=se<<F-32|ie>>>64-F);var ee=S[y[Z]];ee.high=B,ee.low=W}var re=S[0],K=E[0];re.high=K.high,re.low=K.low;for(var Q=0;Q<5;Q++)for(var ne=0;ne<5;ne++){var Z=Q+5*ne,z=E[Z],we=S[Z],_e=S[(Q+1)%5+5*ne],Me=S[(Q+2)%5+5*ne];z.high=we.high^~_e.high&Me.high,z.low=we.low^~_e.low&Me.low}var z=E[0],ye=w[Y];z.high^=ye.high,z.low^=ye.low}},_doFinalize:function(){var N=this._data,k=N.words;this._nDataBytes*8;var E=N.sigBytes*8,D=this.blockSize*32;k[E>>>5]|=1<<24-E%32,k[(r.ceil((E+1)/D)*D>>>5)-1]|=128,N.sigBytes=k.length*4,this._process();for(var I=this._state,T=this.cfg.outputLength/8,P=T/8,z=[],Y=0;Y<P;Y++){var Q=I[Y],B=Q.high,W=Q.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360,z.push(W),z.push(B)}return new o.init(z,T)},clone:function(){for(var N=s.clone.call(this),k=N._state=this._state.slice(0),E=0;E<25;E++)k[E]=k[E].clone();return N}});a.SHA3=s._createHelper(C),a.HmacSHA3=s._createHmacHelper(C)}(Math),n.SHA3})}(eu)),eu.exports}var nu={exports:{}},ru;function M1(){return ru||(ru=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){/** @preserve
|
|
50
50
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
51
51
|
|
|
52
52
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -55,8 +55,8 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placehold
|
|
|
55
55
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
56
56
|
|
|
57
57
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
58
|
-
*/return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),w=o.create([0,1518500249,1859775393,2400959708,2840853838]),S=o.create([1352829926,1548603684,1836072691,2053994217,0]),T=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,z){for(var Y=0;Y<16;Y++){var Q=z+Y,B=P[Q];P[Q]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var G=this._hash.words,re=w.words,L=S.words,q=u.words,$=f.words,j=x.words,V=y.words,Z,se,ie,F,ee,ne,J,we,_e,Oe;ne=Z=G[0],J=se=G[1],we=ie=G[2],_e=F=G[3],Oe=ee=G[4];for(var ye,Y=0;Y<80;Y+=1)ye=Z+P[z+q[Y]]|0,Y<16?ye+=N(se,ie,F)+re[0]:Y<32?ye+=C(se,ie,F)+re[1]:Y<48?ye+=E(se,ie,F)+re[2]:Y<64?ye+=A(se,ie,F)+re[3]:ye+=I(se,ie,F)+re[4],ye=ye|0,ye=D(ye,j[Y]),ye=ye+ee|0,Z=ee,ee=F,F=D(ie,10),ie=se,se=ye,ye=ne+P[z+$[Y]]|0,Y<16?ye+=I(J,we,_e)+L[0]:Y<32?ye+=A(J,we,_e)+L[1]:Y<48?ye+=E(J,we,_e)+L[2]:Y<64?ye+=C(J,we,_e)+L[3]:ye+=N(J,we,_e)+L[4],ye=ye|0,ye=D(ye,V[Y]),ye=ye+Oe|0,ne=Oe,Oe=_e,_e=D(we,10),we=J,J=ye;ye=G[1]+ie+_e|0,G[1]=G[2]+F+Oe|0,G[2]=G[3]+ee+ne|0,G[3]=G[4]+Z+J|0,G[4]=G[0]+se+we|0,G[0]=ye},_doFinalize:function(){var P=this._data,z=P.words,Y=this._nDataBytes*8,Q=P.sigBytes*8;z[Q>>>5]|=128<<24-Q%32,z[(Q+64>>>9<<4)+14]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,P.sigBytes=(z.length+1)*4,this._process();for(var B=this._hash,G=B.words,re=0;re<5;re++){var L=G[re];G[re]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return B},clone:function(){var P=s.clone.call(this);return P._hash=this._hash.clone(),P}});function N(P,z,Y){return P^z^Y}function C(P,z,Y){return P&z|~P&Y}function E(P,z,Y){return(P|~z)^Y}function A(P,z,Y){return P&Y|z&~Y}function I(P,z,Y){return P^(z|~Y)}function D(P,z){return P<<z|P>>>32-z}a.RIPEMD160=s._createHelper(T),a.HmacRIPEMD160=s._createHmacHelper(T)}(),r.RIPEMD160})}(Hc)),Hc.exports}var Wc={exports:{}},$c;function Li(){return $c||($c=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){(function(){var n=r,a=n.lib,i=a.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=i.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=s.parse(f));var x=u.blockSize,y=x*4;f.sigBytes>y&&(f=u.finalize(f)),f.clamp();for(var w=this._oKey=f.clone(),S=this._iKey=f.clone(),T=w.words,N=S.words,C=0;C<x;C++)T[C]^=1549556828,N[C]^=909522486;w.sigBytes=S.sigBytes=y,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,x=f.finalize(u);f.reset();var y=f.finalize(this._oKey.clone().concat(x));return y}})})()})}(Wc)),Wc.exports}var Yc={exports:{}},Zc;function h0(){return Zc||(Zc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Ri(),Li())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.SHA1,u=s.HMAC,f=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,y){for(var w=this.cfg,S=u.create(w.hasher,x),T=o.create(),N=o.create([1]),C=T.words,E=N.words,A=w.keySize,I=w.iterations;C.length<A;){var D=S.update(y).finalize(N);S.reset();for(var P=D.words,z=P.length,Y=D,Q=1;Q<I;Q++){Y=S.finalize(Y),S.reset();for(var B=Y.words,G=0;G<z;G++)P[G]^=B[G]}T.concat(D),E[0]++}return T.sigBytes=A*4,T}});n.PBKDF2=function(x,y,w){return f.create(w).compute(x,y)}}(),r.PBKDF2})}(Yc)),Yc.exports}var Jc={exports:{}},Kc;function wr(){return Kc||(Kc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Ri(),Li())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var y,w=this.cfg,S=w.hasher.create(),T=o.create(),N=T.words,C=w.keySize,E=w.iterations;N.length<C;){y&&S.update(y),y=S.update(f).finalize(x),S.reset();for(var A=1;A<E;A++)y=S.finalize(y),S.reset();T.concat(y)}return T.sigBytes=C*4,T}});n.EvpKDF=function(f,x,y){return u.create(y).compute(f,x)}}(),r.EvpKDF})}(Jc)),Jc.exports}var Xc={exports:{}},Qc;function ft(){return Qc||(Qc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),wr())})(Ae,function(r){r.lib.Cipher||function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var f=u.Base64,x=a.algo,y=x.EvpKDF,w=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(B,G){return this.create(this._ENC_XFORM_MODE,B,G)},createDecryptor:function(B,G){return this.create(this._DEC_XFORM_MODE,B,G)},init:function(B,G,re){this.cfg=this.cfg.extend(re),this._xformMode=B,this._key=G,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var G=this._doFinalize();return G},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(G){return typeof G=="string"?Q:P}return function(G){return{encrypt:function(re,L,q){return B(L).encrypt(G,re,L,q)},decrypt:function(re,L,q){return B(L).decrypt(G,re,L,q)}}}}()});i.StreamCipher=w.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var S=a.mode={},T=i.BlockCipherMode=o.extend({createEncryptor:function(B,G){return this.Encryptor.create(B,G)},createDecryptor:function(B,G){return this.Decryptor.create(B,G)},init:function(B,G){this._cipher=B,this._iv=G}}),N=S.CBC=function(){var B=T.extend();B.Encryptor=B.extend({processBlock:function(re,L){var q=this._cipher,$=q.blockSize;G.call(this,re,L,$),q.encryptBlock(re,L),this._prevBlock=re.slice(L,L+$)}}),B.Decryptor=B.extend({processBlock:function(re,L){var q=this._cipher,$=q.blockSize,j=re.slice(L,L+$);q.decryptBlock(re,L),G.call(this,re,L,$),this._prevBlock=j}});function G(re,L,q){var $,j=this._iv;j?($=j,this._iv=n):$=this._prevBlock;for(var V=0;V<q;V++)re[L+V]^=$[V]}return B}(),C=a.pad={},E=C.Pkcs7={pad:function(B,G){for(var re=G*4,L=re-B.sigBytes%re,q=L<<24|L<<16|L<<8|L,$=[],j=0;j<L;j+=4)$.push(q);var V=s.create($,L);B.concat(V)},unpad:function(B){var G=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=G}};i.BlockCipher=w.extend({cfg:w.cfg.extend({mode:N,padding:E}),reset:function(){var B;w.reset.call(this);var G=this.cfg,re=G.iv,L=G.mode;this._xformMode==this._ENC_XFORM_MODE?B=L.createEncryptor:(B=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,re&&re.words):(this._mode=B.call(L,this,re&&re.words),this._mode.__creator=B)},_doProcessBlock:function(B,G){this._mode.processBlock(B,G)},_doFinalize:function(){var B,G=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(G.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),G.unpad(B)),B},blockSize:128/32});var A=i.CipherParams=o.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),I=a.format={},D=I.OpenSSL={stringify:function(B){var G,re=B.ciphertext,L=B.salt;return L?G=s.create([1398893684,1701076831]).concat(L).concat(re):G=re,G.toString(f)},parse:function(B){var G,re=f.parse(B),L=re.words;return L[0]==1398893684&&L[1]==1701076831&&(G=s.create(L.slice(2,4)),L.splice(0,4),re.sigBytes-=16),A.create({ciphertext:re,salt:G})}},P=i.SerializableCipher=o.extend({cfg:o.extend({format:D}),encrypt:function(B,G,re,L){L=this.cfg.extend(L);var q=B.createEncryptor(re,L),$=q.finalize(G),j=q.cfg;return A.create({ciphertext:$,key:re,iv:j.iv,algorithm:B,mode:j.mode,padding:j.padding,blockSize:B.blockSize,formatter:L.format})},decrypt:function(B,G,re,L){L=this.cfg.extend(L),G=this._parse(G,L.format);var q=B.createDecryptor(re,L).finalize(G.ciphertext);return q},_parse:function(B,G){return typeof B=="string"?G.parse(B,this):B}}),z=a.kdf={},Y=z.OpenSSL={execute:function(B,G,re,L){L||(L=s.random(64/8));var q=y.create({keySize:G+re}).compute(B,L),$=s.create(q.words.slice(G),re*4);return q.sigBytes=G*4,A.create({key:q,iv:$,salt:L})}},Q=i.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:Y}),encrypt:function(B,G,re,L){L=this.cfg.extend(L);var q=L.kdf.execute(re,B.keySize,B.ivSize);L.iv=q.iv;var $=P.encrypt.call(this,B,G,q.key,L);return $.mixIn(q),$},decrypt:function(B,G,re,L){L=this.cfg.extend(L),G=this._parse(G,L.format);var q=L.kdf.execute(re,B.keySize,B.ivSize,G.salt);L.iv=q.iv;var $=P.decrypt.call(this,B,G,q.key,L);return $}})}()})}(Xc)),Xc.exports}var eu={exports:{}},tu;function m0(){return tu||(tu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),n.Decryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=u}});function a(i,o,s,l){var u,f=this._iv;f?(u=f.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var x=0;x<s;x++)i[o+x]^=u[x]}return n}(),r.mode.CFB})}(eu)),eu.exports}var ru={exports:{}},nu;function p0(){return nu||(nu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0);var x=f.slice(0);s.encryptBlock(x,0),f[l-1]=f[l-1]+1|0;for(var y=0;y<l;y++)i[o+y]^=x[y]}});return n.Decryptor=a,n}(),r.mode.CTR})}(ru)),ru.exports}var au={exports:{}},iu;function g0(){return iu||(iu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){/** @preserve
|
|
58
|
+
*/return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,c=a.algo,l=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),w=o.create([0,1518500249,1859775393,2400959708,2840853838]),S=o.create([1352829926,1548603684,1836072691,2053994217,0]),C=c.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,z){for(var Y=0;Y<16;Y++){var Q=z+Y,B=P[Q];P[Q]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var W=this._hash.words,ne=w.words,R=S.words,q=l.words,$=h.words,V=x.words,j=y.words,Z,se,ie,F,ee,re,K,we,_e,Me;re=Z=W[0],K=se=W[1],we=ie=W[2],_e=F=W[3],Me=ee=W[4];for(var ye,Y=0;Y<80;Y+=1)ye=Z+P[z+q[Y]]|0,Y<16?ye+=N(se,ie,F)+ne[0]:Y<32?ye+=k(se,ie,F)+ne[1]:Y<48?ye+=E(se,ie,F)+ne[2]:Y<64?ye+=D(se,ie,F)+ne[3]:ye+=I(se,ie,F)+ne[4],ye=ye|0,ye=T(ye,V[Y]),ye=ye+ee|0,Z=ee,ee=F,F=T(ie,10),ie=se,se=ye,ye=re+P[z+$[Y]]|0,Y<16?ye+=I(K,we,_e)+R[0]:Y<32?ye+=D(K,we,_e)+R[1]:Y<48?ye+=E(K,we,_e)+R[2]:Y<64?ye+=k(K,we,_e)+R[3]:ye+=N(K,we,_e)+R[4],ye=ye|0,ye=T(ye,j[Y]),ye=ye+Me|0,re=Me,Me=_e,_e=T(we,10),we=K,K=ye;ye=W[1]+ie+_e|0,W[1]=W[2]+F+Me|0,W[2]=W[3]+ee+re|0,W[3]=W[4]+Z+K|0,W[4]=W[0]+se+we|0,W[0]=ye},_doFinalize:function(){var P=this._data,z=P.words,Y=this._nDataBytes*8,Q=P.sigBytes*8;z[Q>>>5]|=128<<24-Q%32,z[(Q+64>>>9<<4)+14]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,P.sigBytes=(z.length+1)*4,this._process();for(var B=this._hash,W=B.words,ne=0;ne<5;ne++){var R=W[ne];W[ne]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return B},clone:function(){var P=s.clone.call(this);return P._hash=this._hash.clone(),P}});function N(P,z,Y){return P^z^Y}function k(P,z,Y){return P&z|~P&Y}function E(P,z,Y){return(P|~z)^Y}function D(P,z,Y){return P&Y|z&~Y}function I(P,z,Y){return P^(z|~Y)}function T(P,z){return P<<z|P>>>32-z}a.RIPEMD160=s._createHelper(C),a.HmacRIPEMD160=s._createHmacHelper(C)}(),n.RIPEMD160})}(nu)),nu.exports}var au={exports:{}},iu;function Vi(){return iu||(iu=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){(function(){var r=n,a=r.lib,i=a.Base,o=r.enc,s=o.Utf8,c=r.algo;c.HMAC=i.extend({init:function(l,h){l=this._hasher=new l.init,typeof h=="string"&&(h=s.parse(h));var x=l.blockSize,y=x*4;h.sigBytes>y&&(h=l.finalize(h)),h.clamp();for(var w=this._oKey=h.clone(),S=this._iKey=h.clone(),C=w.words,N=S.words,k=0;k<x;k++)C[k]^=1549556828,N[k]^=909522486;w.sigBytes=S.sigBytes=y,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var h=this._hasher,x=h.finalize(l);h.reset();var y=h.finalize(this._oKey.clone().concat(x));return y}})})()})}(au)),au.exports}var ou={exports:{}},su;function P1(){return su||(su=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ji(),Vi())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,s=r.algo,c=s.SHA1,l=s.HMAC,h=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:c,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,y){for(var w=this.cfg,S=l.create(w.hasher,x),C=o.create(),N=o.create([1]),k=C.words,E=N.words,D=w.keySize,I=w.iterations;k.length<D;){var T=S.update(y).finalize(N);S.reset();for(var P=T.words,z=P.length,Y=T,Q=1;Q<I;Q++){Y=S.finalize(Y),S.reset();for(var B=Y.words,W=0;W<z;W++)P[W]^=B[W]}C.concat(T),E[0]++}return C.sigBytes=D*4,C}});r.PBKDF2=function(x,y,w){return h.create(w).compute(x,y)}}(),n.PBKDF2})}(ou)),ou.exports}var lu={exports:{}},cu;function In(){return cu||(cu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ji(),Vi())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,s=r.algo,c=s.MD5,l=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:c,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,x){for(var y,w=this.cfg,S=w.hasher.create(),C=o.create(),N=C.words,k=w.keySize,E=w.iterations;N.length<k;){y&&S.update(y),y=S.update(h).finalize(x),S.reset();for(var D=1;D<E;D++)y=S.finalize(y),S.reset();C.concat(y)}return C.sigBytes=k*4,C}});r.EvpKDF=function(h,x,y){return l.create(y).compute(h,x)}}(),n.EvpKDF})}(lu)),lu.exports}var uu={exports:{}},du;function ft(){return du||(du=1,function(t,e){(function(n,r,a){t.exports=r(Be(),In())})(Le,function(n){n.lib.Cipher||function(r){var a=n,i=a.lib,o=i.Base,s=i.WordArray,c=i.BufferedBlockAlgorithm,l=a.enc;l.Utf8;var h=l.Base64,x=a.algo,y=x.EvpKDF,w=i.Cipher=c.extend({cfg:o.extend(),createEncryptor:function(B,W){return this.create(this._ENC_XFORM_MODE,B,W)},createDecryptor:function(B,W){return this.create(this._DEC_XFORM_MODE,B,W)},init:function(B,W,ne){this.cfg=this.cfg.extend(ne),this._xformMode=B,this._key=W,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var W=this._doFinalize();return W},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(W){return typeof W=="string"?Q:P}return function(W){return{encrypt:function(ne,R,q){return B(R).encrypt(W,ne,R,q)},decrypt:function(ne,R,q){return B(R).decrypt(W,ne,R,q)}}}}()});i.StreamCipher=w.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var S=a.mode={},C=i.BlockCipherMode=o.extend({createEncryptor:function(B,W){return this.Encryptor.create(B,W)},createDecryptor:function(B,W){return this.Decryptor.create(B,W)},init:function(B,W){this._cipher=B,this._iv=W}}),N=S.CBC=function(){var B=C.extend();B.Encryptor=B.extend({processBlock:function(ne,R){var q=this._cipher,$=q.blockSize;W.call(this,ne,R,$),q.encryptBlock(ne,R),this._prevBlock=ne.slice(R,R+$)}}),B.Decryptor=B.extend({processBlock:function(ne,R){var q=this._cipher,$=q.blockSize,V=ne.slice(R,R+$);q.decryptBlock(ne,R),W.call(this,ne,R,$),this._prevBlock=V}});function W(ne,R,q){var $,V=this._iv;V?($=V,this._iv=r):$=this._prevBlock;for(var j=0;j<q;j++)ne[R+j]^=$[j]}return B}(),k=a.pad={},E=k.Pkcs7={pad:function(B,W){for(var ne=W*4,R=ne-B.sigBytes%ne,q=R<<24|R<<16|R<<8|R,$=[],V=0;V<R;V+=4)$.push(q);var j=s.create($,R);B.concat(j)},unpad:function(B){var W=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=W}};i.BlockCipher=w.extend({cfg:w.cfg.extend({mode:N,padding:E}),reset:function(){var B;w.reset.call(this);var W=this.cfg,ne=W.iv,R=W.mode;this._xformMode==this._ENC_XFORM_MODE?B=R.createEncryptor:(B=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,ne&&ne.words):(this._mode=B.call(R,this,ne&&ne.words),this._mode.__creator=B)},_doProcessBlock:function(B,W){this._mode.processBlock(B,W)},_doFinalize:function(){var B,W=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(W.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),W.unpad(B)),B},blockSize:128/32});var D=i.CipherParams=o.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),I=a.format={},T=I.OpenSSL={stringify:function(B){var W,ne=B.ciphertext,R=B.salt;return R?W=s.create([1398893684,1701076831]).concat(R).concat(ne):W=ne,W.toString(h)},parse:function(B){var W,ne=h.parse(B),R=ne.words;return R[0]==1398893684&&R[1]==1701076831&&(W=s.create(R.slice(2,4)),R.splice(0,4),ne.sigBytes-=16),D.create({ciphertext:ne,salt:W})}},P=i.SerializableCipher=o.extend({cfg:o.extend({format:T}),encrypt:function(B,W,ne,R){R=this.cfg.extend(R);var q=B.createEncryptor(ne,R),$=q.finalize(W),V=q.cfg;return D.create({ciphertext:$,key:ne,iv:V.iv,algorithm:B,mode:V.mode,padding:V.padding,blockSize:B.blockSize,formatter:R.format})},decrypt:function(B,W,ne,R){R=this.cfg.extend(R),W=this._parse(W,R.format);var q=B.createDecryptor(ne,R).finalize(W.ciphertext);return q},_parse:function(B,W){return typeof B=="string"?W.parse(B,this):B}}),z=a.kdf={},Y=z.OpenSSL={execute:function(B,W,ne,R){R||(R=s.random(64/8));var q=y.create({keySize:W+ne}).compute(B,R),$=s.create(q.words.slice(W),ne*4);return q.sigBytes=W*4,D.create({key:q,iv:$,salt:R})}},Q=i.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:Y}),encrypt:function(B,W,ne,R){R=this.cfg.extend(R);var q=R.kdf.execute(ne,B.keySize,B.ivSize);R.iv=q.iv;var $=P.encrypt.call(this,B,W,q.key,R);return $.mixIn(q),$},decrypt:function(B,W,ne,R){R=this.cfg.extend(R),W=this._parse(W,R.format);var q=R.kdf.execute(ne,B.keySize,B.ivSize,W.salt);R.iv=q.iv;var $=P.decrypt.call(this,B,W,q.key,R);return $}})}()})}(uu)),uu.exports}var hu={exports:{}},fu;function F1(){return fu||(fu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,c=s.blockSize;a.call(this,i,o,c,s),this._prevBlock=i.slice(o,o+c)}}),r.Decryptor=r.extend({processBlock:function(i,o){var s=this._cipher,c=s.blockSize,l=i.slice(o,o+c);a.call(this,i,o,c,s),this._prevBlock=l}});function a(i,o,s,c){var l,h=this._iv;h?(l=h.slice(0),this._iv=void 0):l=this._prevBlock,c.encryptBlock(l,0);for(var x=0;x<s;x++)i[o+x]^=l[x]}return r}(),n.mode.CFB})}(hu)),hu.exports}var mu={exports:{}},pu;function z1(){return pu||(pu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,c=s.blockSize,l=this._iv,h=this._counter;l&&(h=this._counter=l.slice(0),this._iv=void 0);var x=h.slice(0);s.encryptBlock(x,0),h[c-1]=h[c-1]+1|0;for(var y=0;y<c;y++)i[o+y]^=x[y]}});return r.Decryptor=a,r}(),n.mode.CTR})}(mu)),mu.exports}var gu={exports:{}},vu;function B1(){return vu||(vu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){/** @preserve
|
|
59
59
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
60
60
|
* derived from CryptoJS.mode.CTR
|
|
61
61
|
* Jan Hruby jhruby.web@gmail.com
|
|
62
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,u=s>>8&255,f=s&255;l===255?(l=0,u===255?(u=0,f===255?f=0:++f):++u):++l,s=0,s+=l<<16,s+=u<<8,s+=f}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=n.Encryptor=n.extend({processBlock:function(s,l){var u=this._cipher,f=u.blockSize,x=this._iv,y=this._counter;x&&(y=this._counter=x.slice(0),this._iv=void 0),i(y);var w=y.slice(0);u.encryptBlock(w,0);for(var S=0;S<f;S++)s[l+S]^=w[S]}});return n.Decryptor=o,n}(),r.mode.CTRGladman})}(au)),au.exports}var ou={exports:{}},su;function v0(){return su||(su=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,f=this._keystream;u&&(f=this._keystream=u.slice(0),this._iv=void 0),s.encryptBlock(f,0);for(var x=0;x<l;x++)i[o+x]^=f[x]}});return n.Decryptor=a,n}(),r.mode.OFB})}(ou)),ou.exports}var lu={exports:{}},cu;function y0(){return cu||(cu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),n.Decryptor=n.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),n}(),r.mode.ECB})}(lu)),lu.exports}var uu={exports:{}},du;function b0(){return du||(du=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.AnsiX923={pad:function(n,a){var i=n.sigBytes,o=a*4,s=o-i%o,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Ansix923})}(uu)),uu.exports}var fu={exports:{}},hu;function E0(){return hu||(hu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.Iso10126={pad:function(n,a){var i=a*4,o=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Iso10126})}(fu)),fu.exports}var mu={exports:{}},pu;function x0(){return pu||(pu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.Iso97971={pad:function(n,a){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,a)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(mu)),mu.exports}var gu={exports:{}},vu;function w0(){return vu||(vu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.ZeroPadding={pad:function(n,a){var i=a*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var a=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(gu)),gu.exports}var yu={exports:{}},bu;function _0(){return bu||(bu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(yu)),yu.exports}var Eu={exports:{}},xu;function S0(){return xu||(xu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,u=a.format;u.Hex={stringify:function(f){return f.ciphertext.toString(l)},parse:function(f){var x=l.parse(f);return o.create({ciphertext:x})}}}(),r.format.Hex})}(Eu)),Eu.exports}var wu={exports:{}},_u;function I0(){return _u||(_u=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),Wr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,o=n.algo,s=[],l=[],u=[],f=[],x=[],y=[],w=[],S=[],T=[],N=[];(function(){for(var A=[],I=0;I<256;I++)I<128?A[I]=I<<1:A[I]=I<<1^283;for(var D=0,P=0,I=0;I<256;I++){var z=P^P<<1^P<<2^P<<3^P<<4;z=z>>>8^z&255^99,s[D]=z,l[z]=D;var Y=A[D],Q=A[Y],B=A[Q],G=A[z]*257^z*16843008;u[D]=G<<24|G>>>8,f[D]=G<<16|G>>>16,x[D]=G<<8|G>>>24,y[D]=G;var G=B*16843009^Q*65537^Y*257^D*16843008;w[z]=G<<24|G>>>8,S[z]=G<<16|G>>>16,T[z]=G<<8|G>>>24,N[z]=G,D?(D=Y^A[A[A[B^Y]]],P^=A[A[P]]):D=P=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],E=o.AES=i.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,D=I.words,P=I.sigBytes/4,z=this._nRounds=P+6,Y=(z+1)*4,Q=this._keySchedule=[],B=0;B<Y;B++)B<P?Q[B]=D[B]:(A=Q[B-1],B%P?P>6&&B%P==4&&(A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255]):(A=A<<8|A>>>24,A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255],A^=C[B/P|0]<<24),Q[B]=Q[B-P]^A);for(var G=this._invKeySchedule=[],re=0;re<Y;re++){var B=Y-re;if(re%4)var A=Q[B];else var A=Q[B-4];re<4||B<=4?G[re]=A:G[re]=w[s[A>>>24]]^S[s[A>>>16&255]]^T[s[A>>>8&255]]^N[s[A&255]]}}},encryptBlock:function(A,I){this._doCryptBlock(A,I,this._keySchedule,u,f,x,y,s)},decryptBlock:function(A,I){var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D,this._doCryptBlock(A,I,this._invKeySchedule,w,S,T,N,l);var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D},_doCryptBlock:function(A,I,D,P,z,Y,Q,B){for(var G=this._nRounds,re=A[I]^D[0],L=A[I+1]^D[1],q=A[I+2]^D[2],$=A[I+3]^D[3],j=4,V=1;V<G;V++){var Z=P[re>>>24]^z[L>>>16&255]^Y[q>>>8&255]^Q[$&255]^D[j++],se=P[L>>>24]^z[q>>>16&255]^Y[$>>>8&255]^Q[re&255]^D[j++],ie=P[q>>>24]^z[$>>>16&255]^Y[re>>>8&255]^Q[L&255]^D[j++],F=P[$>>>24]^z[re>>>16&255]^Y[L>>>8&255]^Q[q&255]^D[j++];re=Z,L=se,q=ie,$=F}var Z=(B[re>>>24]<<24|B[L>>>16&255]<<16|B[q>>>8&255]<<8|B[$&255])^D[j++],se=(B[L>>>24]<<24|B[q>>>16&255]<<16|B[$>>>8&255]<<8|B[re&255])^D[j++],ie=(B[q>>>24]<<24|B[$>>>16&255]<<16|B[re>>>8&255]<<8|B[L&255])^D[j++],F=(B[$>>>24]<<24|B[re>>>16&255]<<16|B[L>>>8&255]<<8|B[q&255])^D[j++];A[I]=Z,A[I+1]=se,A[I+2]=ie,A[I+3]=F},keySize:256/32});n.AES=i._createHelper(E)}(),r.AES})}(wu)),wu.exports}var Su={exports:{}},Iu;function C0(){return Iu||(Iu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),Wr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],w=s.DES=o.extend({_doReset:function(){for(var C=this._key,E=C.words,A=[],I=0;I<56;I++){var D=l[I]-1;A[I]=E[D>>>5]>>>31-D%32&1}for(var P=this._subKeys=[],z=0;z<16;z++){for(var Y=P[z]=[],Q=f[z],I=0;I<24;I++)Y[I/6|0]|=A[(u[I]-1+Q)%28]<<31-I%6,Y[4+(I/6|0)]|=A[28+(u[I+24]-1+Q)%28]<<31-I%6;Y[0]=Y[0]<<1|Y[0]>>>31;for(var I=1;I<7;I++)Y[I]=Y[I]>>>(I-1)*4+3;Y[7]=Y[7]<<5|Y[7]>>>27}for(var B=this._invSubKeys=[],I=0;I<16;I++)B[I]=P[15-I]},encryptBlock:function(C,E){this._doCryptBlock(C,E,this._subKeys)},decryptBlock:function(C,E){this._doCryptBlock(C,E,this._invSubKeys)},_doCryptBlock:function(C,E,A){this._lBlock=C[E],this._rBlock=C[E+1],S.call(this,4,252645135),S.call(this,16,65535),T.call(this,2,858993459),T.call(this,8,16711935),S.call(this,1,1431655765);for(var I=0;I<16;I++){for(var D=A[I],P=this._lBlock,z=this._rBlock,Y=0,Q=0;Q<8;Q++)Y|=x[Q][((z^D[Q])&y[Q])>>>0];this._lBlock=z,this._rBlock=P^Y}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,S.call(this,1,1431655765),T.call(this,8,16711935),T.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),C[E]=this._lBlock,C[E+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(C,E){var A=(this._lBlock>>>C^this._rBlock)&E;this._rBlock^=A,this._lBlock^=A<<C}function T(C,E){var A=(this._rBlock>>>C^this._lBlock)&E;this._lBlock^=A,this._rBlock^=A<<C}n.DES=o._createHelper(w);var N=s.TripleDES=o.extend({_doReset:function(){var C=this._key,E=C.words;if(E.length!==2&&E.length!==4&&E.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=E.slice(0,2),I=E.length<4?E.slice(0,2):E.slice(2,4),D=E.length<6?E.slice(0,2):E.slice(4,6);this._des1=w.createEncryptor(i.create(A)),this._des2=w.createEncryptor(i.create(I)),this._des3=w.createEncryptor(i.create(D))},encryptBlock:function(C,E){this._des1.encryptBlock(C,E),this._des2.decryptBlock(C,E),this._des3.encryptBlock(C,E)},decryptBlock:function(C,E){this._des3.decryptBlock(C,E),this._des2.encryptBlock(C,E),this._des1.decryptBlock(C,E)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=o._createHelper(N)}(),r.TripleDES})}(Su)),Su.exports}var Cu={exports:{}},Tu;function T0(){return Tu||(Tu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),Wr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=o.RC4=i.extend({_doReset:function(){for(var f=this._key,x=f.words,y=f.sigBytes,w=this._S=[],S=0;S<256;S++)w[S]=S;for(var S=0,T=0;S<256;S++){var N=S%y,C=x[N>>>2]>>>24-N%4*8&255;T=(T+w[S]+C)%256;var E=w[S];w[S]=w[T],w[T]=E}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var f=this._S,x=this._i,y=this._j,w=0,S=0;S<4;S++){x=(x+1)%256,y=(y+f[x])%256;var T=f[x];f[x]=f[y],f[y]=T,w|=f[(f[x]+f[y])%256]<<24-S*8}return this._i=x,this._j=y,w}n.RC4=i._createHelper(s);var u=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)l.call(this)}});n.RC4Drop=i._createHelper(u)}(),r.RC4})}(Cu)),Cu.exports}var ku={exports:{}},Au;function k0(){return Au||(Au=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),Wr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],f=o.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,w=this.cfg.iv,S=0;S<4;S++)y[S]=(y[S]<<8|y[S]>>>24)&16711935|(y[S]<<24|y[S]>>>8)&4278255360;var T=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],N=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)x.call(this);for(var S=0;S<8;S++)N[S]^=T[S+4&7];if(w){var C=w.words,E=C[0],A=C[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=I>>>16|D&4294901760,z=D<<16|I&65535;N[0]^=I,N[1]^=P,N[2]^=D,N[3]^=z,N[4]^=I,N[5]^=P,N[6]^=D,N[7]^=z;for(var S=0;S<4;S++)x.call(this)}},_doProcessBlock:function(y,w){var S=this._X;x.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)s[T]=(s[T]<<8|s[T]>>>24)&16711935|(s[T]<<24|s[T]>>>8)&4278255360,y[w+T]^=s[T]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,S=0;S<8;S++)l[S]=w[S];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<l[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<l[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<l[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<l[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<l[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<l[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<l[6]>>>0?1:0)|0,this._b=w[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+w[S],N=T&65535,C=T>>>16,E=((N*N>>>17)+N*C>>>15)+C*C,A=((T&4294901760)*T|0)+((T&65535)*T|0);u[S]=E^A}y[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,y[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,y[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,y[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,y[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,y[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,y[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,y[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=i._createHelper(f)}(),r.Rabbit})}(ku)),ku.exports}var Du={exports:{}},Nu;function A0(){return Nu||(Nu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),Wr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],f=o.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,w=this.cfg.iv,S=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],T=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var N=0;N<4;N++)x.call(this);for(var N=0;N<8;N++)T[N]^=S[N+4&7];if(w){var C=w.words,E=C[0],A=C[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=I>>>16|D&4294901760,z=D<<16|I&65535;T[0]^=I,T[1]^=P,T[2]^=D,T[3]^=z,T[4]^=I,T[5]^=P,T[6]^=D,T[7]^=z;for(var N=0;N<4;N++)x.call(this)}},_doProcessBlock:function(y,w){var S=this._X;x.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)s[T]=(s[T]<<8|s[T]>>>24)&16711935|(s[T]<<24|s[T]>>>8)&4278255360,y[w+T]^=s[T]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,S=0;S<8;S++)l[S]=w[S];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<l[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<l[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<l[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<l[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<l[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<l[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<l[6]>>>0?1:0)|0,this._b=w[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+w[S],N=T&65535,C=T>>>16,E=((N*N>>>17)+N*C>>>15)+C*C,A=((T&4294901760)*T|0)+((T&65535)*T|0);u[S]=E^A}y[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,y[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,y[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,y[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,y[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,y[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,y[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,y[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=i._createHelper(f)}(),r.RabbitLegacy})}(Du)),Du.exports}(function(t,e){(function(r,n,a){t.exports=n(ze(),ia(),o0(),s0(),Gr(),l0(),Wr(),Ri(),Lc(),c0(),Bc(),u0(),d0(),f0(),Li(),h0(),wr(),ft(),m0(),p0(),g0(),v0(),y0(),b0(),E0(),x0(),w0(),_0(),S0(),I0(),C0(),T0(),k0(),A0())})(Ae,function(r){return r})})(t0);class D0 extends xr{async getAllServiceGroups(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/serviceGroups?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createServiceGroup(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateServiceGroup(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}var N0=Object.defineProperty,O0=Object.getOwnPropertyDescriptor,Mi=(t,e,r,n)=>{for(var a=n>1?void 0:n?O0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&N0(e,r,a),a};let oa=class extends lr{constructor(t,e,r,n){super("serviceGroup",n),g(this,"serviceGroupDb"),g(this,"serviceGroupService"),this.serviceGroupDb=new sc(e),this.serviceGroupService=new D0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllServiceGroups(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getServiceGroup(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceGroupId:n})}async createServiceGroup(t,e,r,n){return super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n)}async updateServiceGroup(t,e,r,n,a){return super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceGroupId:n},a)}async deleteServiceGroup(t,e,r,n){return this.deleteById(t,{account:e,companyId:r,serviceGroupId:n})}async remoteList(t,e){return(await this.serviceGroupService.getAllServiceGroups(t,e.account,e.companyId)).map(r=>ir.fromServiceGroupDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceGroupService.getById(t,e.account,e.companyId,e.serviceGroupId);return ir.fromServiceGroupDto(r,e.companyId)}async remoteCreate(t,e,r){const n=ir.toServiceGroupDto(r),a=await this.serviceGroupService.createServiceGroup(t,e.account,e.companyId,n);return ir.fromServiceGroupDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=ir.toServiceGroupDto(r),a=await this.serviceGroupService.updateServiceGroup(t,e.account,e.companyId,e.serviceGroupId,n);return ir.fromServiceGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceGroupService.delete(t,e.account,e.companyId,e.serviceGroupId)}async localList(t){return this.serviceGroupDb.getAllServiceGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceGroupDb.getById(t.companyId,t.serviceGroupId)}async localBulkSave(t,e){await this.serviceGroupDb.saveAllServiceGroups(e)}async localDelete(t){this.checkNullable(t),await this.serviceGroupDb.deleteById(t.companyId,t.serviceGroupId)}async localBulkDelete(t){await this.serviceGroupDb.deleteByServiceGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Mi([Me.Unsubscribe()],oa.prototype,"dispose",1),Mi([Me.Subscribe(Ke.DELETE)],oa.prototype,"onCascadeDelete",1),oa=Mi([Me.Subscriber({channel:_t})],oa);class R0 extends xr{async getAllStaffGroups(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/staffGroups?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createStaffGroup(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateStaffGroup(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class L0{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllStaffGroups(e){return(await this.indexedDb.getAllValue(jr)||[]).filter(r=>r.companyId===e)}async saveAllStaffGroups(e){await this.indexedDb.putBulkValue(jr,e)}async getById(e,r){const n=await this.indexedDb.getValue(jr,r);if((n==null?void 0:n.companyId)===e)return n;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(jr,r),await new lc(this.indexedDb).updateStaffSkills(e,r,void 0)}async deleteByStaffGroupIds(e){await this.indexedDb.deleteValues(jr,e)}async drop(){await this.indexedDb.deleteAllValues(jr)}updateStaffs(e,r,n){this.getAllStaffGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.members)==null?void 0:s.findIndex(x=>x.id===r);f!=null&&(n?(l=o.members)==null||l.splice(f,1,n):(u=o.members)==null||u.splice(f,1))}),await this.saveAllStaffGroups(i))})}}var M0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,Pi=(t,e,r,n)=>{for(var a=n>1?void 0:n?P0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&M0(e,r,a),a};let sa=class extends lr{constructor(t,e,r,n){super("staffGroup",n),g(this,"staffGroupDb"),g(this,"staffGroupService"),this.staffGroupDb=new L0(e),this.staffGroupService=new R0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllStaffGroups(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getStaffGroup(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,staffGroupId:n})}async createStaffGroup(t,e,r,n){return this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n)}async updateStaffGroup(t,e,r,n,a){return this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,staffGroupId:n},a)}async deleteStaffGroup(t,e,r,n){return this.deleteById(t,{account:e,companyId:r,staffGroupId:n})}async remoteList(t,e){return(await this.staffGroupService.getAllStaffGroups(t,e.account,e.companyId)).map(r=>or.fromStaffGroupDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.staffGroupService.getById(t,e.account,e.companyId,e.staffGroupId);return or.fromStaffGroupDto(r,e.companyId)}async remoteCreate(t,e,r){const n=or.toStaffGroupDto(r),a=await this.staffGroupService.createStaffGroup(t,e.account,e.companyId,n);return or.fromStaffGroupDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=or.toStaffGroupDto(r),a=await this.staffGroupService.updateStaffGroup(t,e.account,e.companyId,e.staffGroupId,n);return or.fromStaffGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.staffGroupService.delete(t,e.account,e.companyId,e.staffGroupId)}async localList(t){return this.staffGroupDb.getAllStaffGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffGroupDb.getById(t.companyId,t.staffGroupId)}async localBulkSave(t,e){await this.staffGroupDb.saveAllStaffGroups(e)}async localDelete(t){this.checkNullable(t),await this.staffGroupDb.deleteById(t.companyId,t.staffGroupId)}async localBulkDelete(t){await this.staffGroupDb.deleteByStaffGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Pi([Me.Unsubscribe()],sa.prototype,"dispose",1),Pi([Me.Subscribe(Ke.DELETE)],sa.prototype,"onCascadeDelete",1),sa=Pi([Me.Subscriber({channel:_t})],sa);class F0 extends xr{async getAllServiceResources(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/service-resources?account=${r}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createService(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources?account=${r}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateService(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class z0{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServiceResources(e){return(await this.indexedDb.getAllValue(Ur)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async saveAllServiceResources(e){await this.indexedDb.putBulkValue(Ur,e)}async getById(e,r){var n;const a=await this.indexedDb.getValue(Ur,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Ur,r)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Ur,e)}async drop(){await this.indexedDb.deleteAllValues(Ur)}}var B0=Object.defineProperty,U0=Object.getOwnPropertyDescriptor,Fi=(t,e,r,n)=>{for(var a=n>1?void 0:n?U0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&B0(e,r,a),a};const zi=new Me.Channel;let la=class extends lr{constructor(t,e,r,n){super("serviceResource",n),g(this,"serviceResourceDb"),g(this,"serviceResourceService"),this.serviceResourceDb=new z0(e),this.serviceResourceService=new F0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServiceResources(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getServiceResource(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceResourceId:n})}async createServiceResource(t,e,r,n){const a=await super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return zi.publish(Ke.CREATE,{account:e,companyId:r,resource:a}),a}async updateServiceResource(t,e,r,n,a){const i=await super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceResourceId:n},a);return zi.publish(Ke.UPDATE,{account:e,companyId:r,serviceResourceId:n,resource:i}),i}async deleteServiceResource(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,serviceResourceId:n}),zi.publish(Ke.DELETE,{account:e,companyId:r,serviceResourceId:n})}async remoteList(t,e){return(await this.serviceResourceService.getAllServiceResources(t,e.account,e.companyId)).map(r=>cr.fromServiceResourceDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceResourceService.getById(t,e.account,e.companyId,e.serviceResourceId);return cr.fromServiceResourceDto(r,e.companyId)}async remoteCreate(t,e,r){const n=cr.toServiceResourceDto(r),a=await this.serviceResourceService.createService(t,e.account,e.companyId,n);return cr.fromServiceResourceDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=cr.toServiceResourceDto(r),a=await this.serviceResourceService.updateService(t,e.account,e.companyId,e.serviceResourceId,n);return cr.fromServiceResourceDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceResourceService.delete(t,e.account,e.companyId,e.serviceResourceId)}async localList(t){return this.serviceResourceDb.getAllServiceResources(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceResourceDb.getById(t.companyId,t.serviceResourceId)}async localBulkSave(t,e){await this.serviceResourceDb.saveAllServiceResources(e)}async localDelete(t){this.checkNullable(t),await this.serviceResourceDb.deleteById(t.companyId,t.serviceResourceId)}async localBulkDelete(t){await this.serviceResourceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceResourceId)throw Error("Invalid state:"+JSON.stringify(t))}};Fi([Me.Unsubscribe()],la.prototype,"dispose",1),Fi([Me.Subscribe(Ke.DELETE)],la.prototype,"onCascadeDelete",1),la=Fi([Me.Subscriber({channel:_t})],la);var V0=Object.defineProperty,j0=Object.getOwnPropertyDescriptor,Bi=(t,e,r,n)=>{for(var a=n>1?void 0:n?j0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&V0(e,r,a),a};let ca=class{constructor(t){g(this,"logger"),this.logger=t}dispose(){}getItem(t){return localStorage.getItem(t)}setItem(t,e){localStorage.setItem(t,e)}clear(){localStorage.clear()}removeItem(t){localStorage.removeItem(t)}getItems(t){const e=localStorage.getItem(t);return e&&JSON.parse(e)}setItems(t,e){localStorage.setItem(t,JSON.stringify(e))}async _onCascadeDelete(t,e,r,n){var a,i,o,s,l;switch(r){case _t:(a=this.logger)==null||a.debug("js-calendar-api","Company deleted (clean localStorage)",t),this._cleanRecentsCompanies(t.companyId);break;case yn:(i=this.logger)==null||i.debug("js-calendar-api","Service deleted (clean localStorage)",t),this._cleanRecentsServices(t.serviceId);break;case vn:(o=this.logger)==null||o.debug("js-calendar-api","Staff deleted (clean localStorage)",t),this._cleanRecentsStaffs(t.staffId);break;case mc:(s=this.logger)==null||s.debug("js-calendar-api","Contact deleted (clean localStorage)",t),this._cleanRecentsContacts(t.contactId);break;case pc:(l=this.logger)==null||l.debug("js-calendar-api","User deleted (clean localStorage)",t),this._cleanRecentsUsers(t.userId);break}}_cleanRecentsCompanies(t){const e=this.getItems(Bt.RECENT_COMPANIES),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_COMPANIES,r||[])}_cleanRecentsServices(t){const e=this.getItems(Bt.RECENT_SERVICES),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_SERVICES,r||[])}_cleanRecentsStaffs(t){const e=this.getItems(Bt.RECENT_STAFFS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_STAFFS,r||[])}_cleanRecentsContacts(t){const e=this.getItems(Bt.RECENT_CONTACTS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_CONTACTS,r||[])}_cleanRecentsUsers(t){const e=this.getItems(Bt.RECENT_USERS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_USERS,r||[])}};Bi([Me.Unsubscribe()],ca.prototype,"dispose",1),Bi([Me.Subscribe(Ke.DELETE)],ca.prototype,"_onCascadeDelete",1),ca=Bi([Me.Subscriber({channel:_t}),Me.Subscriber({channel:yn}),Me.Subscriber({channel:vn}),Me.Subscriber({channel:mc}),Me.Subscriber({channel:pc})],ca);var Bt=(t=>(t.RECENT_SERVICES="recent_services",t.RECENT_STAFFS="recent_staffs",t.RECENT_CONTACTS="recent_contacts",t.RECENT_COMPANIES="recent_companies",t.RECENT_USERS="recent_users",t))(Bt||{});let ua;const q0=t=>(ua=t,Jt.createPinia()),H0=Jt.defineStore({id:"account",state:()=>({account:{}}),actions:{async updateAccount(t){if(!!t)return ua.updateAccount(t).then(e=>{const r=e;r.picture&&(r.picture=new Fr(r.picture.mimeType,r.picture.url.length>0?r.picture.url+"?"+Math.random().toString(32):r.picture.url)),this.account=r})},fetchAccount(t,e){return ua.getAccount().then(r=>{r.result?(this.account=r.result,t&&t(r.result)):e&&e()}).catch(()=>{e&&e()})},async updatePassword(t,e){return ua.updatePassword(t,e)}}});class G0{constructor(e){Ui(this,"internalState");Ui(this,"listeners",[]);this.internalState=e}get state(){return this.internalState}changeState(e){this.internalState=e,this.listeners.length>0&&this.listeners.forEach(r=>r(this.state))}subscribe(e){this.listeners.push(e)}unsubscribe(e){const r=this.listeners.indexOf(e);r>-1&&this.listeners.splice(r,1)}}const W0=[{label:"English",value:"en"},{label:"Fran\xE7ais",value:"fr"},{label:"Espa\xF1ol",value:"es"},{label:"Portugu\xEAs",value:"pt"},{label:"Deutsch",value:"de"},{label:"Nederlands",value:"nl"},{label:"Italiano",value:"it"},{label:"\u65E5\u672C\u8A9E",value:"ja"}];He.Bloc=G0,He.QRCode=Zf,He.createStore=q0,He.dateToString=Ru,He.languages=W0,He.onPictureUpdated=Lu,He.pad=zu,He.parseToInt=Fu,He.readBlobFromUrl=Pu,He.useAccountStore=H0,He.useBlocState=Ou,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
62
|
+
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var c=s>>16&255,l=s>>8&255,h=s&255;c===255?(c=0,l===255?(l=0,h===255?h=0:++h):++l):++c,s=0,s+=c<<16,s+=l<<8,s+=h}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=r.Encryptor=r.extend({processBlock:function(s,c){var l=this._cipher,h=l.blockSize,x=this._iv,y=this._counter;x&&(y=this._counter=x.slice(0),this._iv=void 0),i(y);var w=y.slice(0);l.encryptBlock(w,0);for(var S=0;S<h;S++)s[c+S]^=w[S]}});return r.Decryptor=o,r}(),n.mode.CTRGladman})}(gu)),gu.exports}var yu={exports:{}},bu;function U1(){return bu||(bu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,c=s.blockSize,l=this._iv,h=this._keystream;l&&(h=this._keystream=l.slice(0),this._iv=void 0),s.encryptBlock(h,0);for(var x=0;x<c;x++)i[o+x]^=h[x]}});return r.Decryptor=a,r}(),n.mode.OFB})}(yu)),yu.exports}var Eu={exports:{}},xu;function j1(){return xu||(xu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),r.Decryptor=r.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),r}(),n.mode.ECB})}(Eu)),Eu.exports}var wu={exports:{}},_u;function V1(){return _u||(_u=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.pad.AnsiX923={pad:function(r,a){var i=r.sigBytes,o=a*4,s=o-i%o,c=i+s-1;r.clamp(),r.words[c>>>2]|=s<<24-c%4*8,r.sigBytes+=s},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(wu)),wu.exports}var Su={exports:{}},Iu;function q1(){return Iu||(Iu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.pad.Iso10126={pad:function(r,a){var i=a*4,o=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(Su)),Su.exports}var Cu={exports:{}},ku;function H1(){return ku||(ku=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Cu)),Cu.exports}var Au={exports:{}},Du;function W1(){return Du||(Du=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.pad.ZeroPadding={pad:function(r,a){var i=a*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var a=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(Au)),Au.exports}var Tu={exports:{}},Nu;function G1(){return Nu||(Nu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Tu)),Tu.exports}var Lu={exports:{}},Ou;function $1(){return Ou||(Ou=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ft())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.CipherParams,s=a.enc,c=s.Hex,l=a.format;l.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var x=c.parse(h);return o.create({ciphertext:x})}}}(),n.format.Hex})}(Lu)),Lu.exports}var Ru={exports:{}},Mu;function Y1(){return Mu||(Mu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Yn(),Zn(),In(),ft())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.BlockCipher,o=r.algo,s=[],c=[],l=[],h=[],x=[],y=[],w=[],S=[],C=[],N=[];(function(){for(var D=[],I=0;I<256;I++)I<128?D[I]=I<<1:D[I]=I<<1^283;for(var T=0,P=0,I=0;I<256;I++){var z=P^P<<1^P<<2^P<<3^P<<4;z=z>>>8^z&255^99,s[T]=z,c[z]=T;var Y=D[T],Q=D[Y],B=D[Q],W=D[z]*257^z*16843008;l[T]=W<<24|W>>>8,h[T]=W<<16|W>>>16,x[T]=W<<8|W>>>24,y[T]=W;var W=B*16843009^Q*65537^Y*257^T*16843008;w[z]=W<<24|W>>>8,S[z]=W<<16|W>>>16,C[z]=W<<8|W>>>24,N[z]=W,T?(T=Y^D[D[D[B^Y]]],P^=D[D[P]]):T=P=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],E=o.AES=i.extend({_doReset:function(){var D;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,T=I.words,P=I.sigBytes/4,z=this._nRounds=P+6,Y=(z+1)*4,Q=this._keySchedule=[],B=0;B<Y;B++)B<P?Q[B]=T[B]:(D=Q[B-1],B%P?P>6&&B%P==4&&(D=s[D>>>24]<<24|s[D>>>16&255]<<16|s[D>>>8&255]<<8|s[D&255]):(D=D<<8|D>>>24,D=s[D>>>24]<<24|s[D>>>16&255]<<16|s[D>>>8&255]<<8|s[D&255],D^=k[B/P|0]<<24),Q[B]=Q[B-P]^D);for(var W=this._invKeySchedule=[],ne=0;ne<Y;ne++){var B=Y-ne;if(ne%4)var D=Q[B];else var D=Q[B-4];ne<4||B<=4?W[ne]=D:W[ne]=w[s[D>>>24]]^S[s[D>>>16&255]]^C[s[D>>>8&255]]^N[s[D&255]]}}},encryptBlock:function(D,I){this._doCryptBlock(D,I,this._keySchedule,l,h,x,y,s)},decryptBlock:function(D,I){var T=D[I+1];D[I+1]=D[I+3],D[I+3]=T,this._doCryptBlock(D,I,this._invKeySchedule,w,S,C,N,c);var T=D[I+1];D[I+1]=D[I+3],D[I+3]=T},_doCryptBlock:function(D,I,T,P,z,Y,Q,B){for(var W=this._nRounds,ne=D[I]^T[0],R=D[I+1]^T[1],q=D[I+2]^T[2],$=D[I+3]^T[3],V=4,j=1;j<W;j++){var Z=P[ne>>>24]^z[R>>>16&255]^Y[q>>>8&255]^Q[$&255]^T[V++],se=P[R>>>24]^z[q>>>16&255]^Y[$>>>8&255]^Q[ne&255]^T[V++],ie=P[q>>>24]^z[$>>>16&255]^Y[ne>>>8&255]^Q[R&255]^T[V++],F=P[$>>>24]^z[ne>>>16&255]^Y[R>>>8&255]^Q[q&255]^T[V++];ne=Z,R=se,q=ie,$=F}var Z=(B[ne>>>24]<<24|B[R>>>16&255]<<16|B[q>>>8&255]<<8|B[$&255])^T[V++],se=(B[R>>>24]<<24|B[q>>>16&255]<<16|B[$>>>8&255]<<8|B[ne&255])^T[V++],ie=(B[q>>>24]<<24|B[$>>>16&255]<<16|B[ne>>>8&255]<<8|B[R&255])^T[V++],F=(B[$>>>24]<<24|B[ne>>>16&255]<<16|B[R>>>8&255]<<8|B[q&255])^T[V++];D[I]=Z,D[I+1]=se,D[I+2]=ie,D[I+3]=F},keySize:256/32});r.AES=i._createHelper(E)}(),n.AES})}(Ru)),Ru.exports}var Pu={exports:{}},Fu;function Z1(){return Fu||(Fu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Yn(),Zn(),In(),ft())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.BlockCipher,s=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],w=s.DES=o.extend({_doReset:function(){for(var k=this._key,E=k.words,D=[],I=0;I<56;I++){var T=c[I]-1;D[I]=E[T>>>5]>>>31-T%32&1}for(var P=this._subKeys=[],z=0;z<16;z++){for(var Y=P[z]=[],Q=h[z],I=0;I<24;I++)Y[I/6|0]|=D[(l[I]-1+Q)%28]<<31-I%6,Y[4+(I/6|0)]|=D[28+(l[I+24]-1+Q)%28]<<31-I%6;Y[0]=Y[0]<<1|Y[0]>>>31;for(var I=1;I<7;I++)Y[I]=Y[I]>>>(I-1)*4+3;Y[7]=Y[7]<<5|Y[7]>>>27}for(var B=this._invSubKeys=[],I=0;I<16;I++)B[I]=P[15-I]},encryptBlock:function(k,E){this._doCryptBlock(k,E,this._subKeys)},decryptBlock:function(k,E){this._doCryptBlock(k,E,this._invSubKeys)},_doCryptBlock:function(k,E,D){this._lBlock=k[E],this._rBlock=k[E+1],S.call(this,4,252645135),S.call(this,16,65535),C.call(this,2,858993459),C.call(this,8,16711935),S.call(this,1,1431655765);for(var I=0;I<16;I++){for(var T=D[I],P=this._lBlock,z=this._rBlock,Y=0,Q=0;Q<8;Q++)Y|=x[Q][((z^T[Q])&y[Q])>>>0];this._lBlock=z,this._rBlock=P^Y}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,S.call(this,1,1431655765),C.call(this,8,16711935),C.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),k[E]=this._lBlock,k[E+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(k,E){var D=(this._lBlock>>>k^this._rBlock)&E;this._rBlock^=D,this._lBlock^=D<<k}function C(k,E){var D=(this._rBlock>>>k^this._lBlock)&E;this._lBlock^=D,this._rBlock^=D<<k}r.DES=o._createHelper(w);var N=s.TripleDES=o.extend({_doReset:function(){var k=this._key,E=k.words;if(E.length!==2&&E.length!==4&&E.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var D=E.slice(0,2),I=E.length<4?E.slice(0,2):E.slice(2,4),T=E.length<6?E.slice(0,2):E.slice(4,6);this._des1=w.createEncryptor(i.create(D)),this._des2=w.createEncryptor(i.create(I)),this._des3=w.createEncryptor(i.create(T))},encryptBlock:function(k,E){this._des1.encryptBlock(k,E),this._des2.decryptBlock(k,E),this._des3.encryptBlock(k,E)},decryptBlock:function(k,E){this._des3.decryptBlock(k,E),this._des2.encryptBlock(k,E),this._des1.decryptBlock(k,E)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(N)}(),n.TripleDES})}(Pu)),Pu.exports}var zu={exports:{}},Bu;function K1(){return Bu||(Bu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Yn(),Zn(),In(),ft())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=o.RC4=i.extend({_doReset:function(){for(var h=this._key,x=h.words,y=h.sigBytes,w=this._S=[],S=0;S<256;S++)w[S]=S;for(var S=0,C=0;S<256;S++){var N=S%y,k=x[N>>>2]>>>24-N%4*8&255;C=(C+w[S]+k)%256;var E=w[S];w[S]=w[C],w[C]=E}this._i=this._j=0},_doProcessBlock:function(h,x){h[x]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,x=this._i,y=this._j,w=0,S=0;S<4;S++){x=(x+1)%256,y=(y+h[x])%256;var C=h[x];h[x]=h[y],h[y]=C,w|=h[(h[x]+h[y])%256]<<24-S*8}return this._i=x,this._j=y,w}r.RC4=i._createHelper(s);var l=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=i._createHelper(l)}(),n.RC4})}(zu)),zu.exports}var Uu={exports:{}},ju;function J1(){return ju||(ju=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Yn(),Zn(),In(),ft())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=[],c=[],l=[],h=o.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,w=this.cfg.iv,S=0;S<4;S++)y[S]=(y[S]<<8|y[S]>>>24)&16711935|(y[S]<<24|y[S]>>>8)&4278255360;var C=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],N=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)x.call(this);for(var S=0;S<8;S++)N[S]^=C[S+4&7];if(w){var k=w.words,E=k[0],D=k[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,P=I>>>16|T&4294901760,z=T<<16|I&65535;N[0]^=I,N[1]^=P,N[2]^=T,N[3]^=z,N[4]^=I,N[5]^=P,N[6]^=T,N[7]^=z;for(var S=0;S<4;S++)x.call(this)}},_doProcessBlock:function(y,w){var S=this._X;x.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var C=0;C<4;C++)s[C]=(s[C]<<8|s[C]>>>24)&16711935|(s[C]<<24|s[C]>>>8)&4278255360,y[w+C]^=s[C]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,S=0;S<8;S++)c[S]=w[S];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<c[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<c[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<c[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<c[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<c[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<c[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<c[6]>>>0?1:0)|0,this._b=w[7]>>>0<c[7]>>>0?1:0;for(var S=0;S<8;S++){var C=y[S]+w[S],N=C&65535,k=C>>>16,E=((N*N>>>17)+N*k>>>15)+k*k,D=((C&4294901760)*C|0)+((C&65535)*C|0);l[S]=E^D}y[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,y[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,y[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,y[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,y[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,y[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,y[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,y[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.Rabbit=i._createHelper(h)}(),n.Rabbit})}(Uu)),Uu.exports}var Vu={exports:{}},qu;function X1(){return qu||(qu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Yn(),Zn(),In(),ft())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=[],c=[],l=[],h=o.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,w=this.cfg.iv,S=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],C=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var N=0;N<4;N++)x.call(this);for(var N=0;N<8;N++)C[N]^=S[N+4&7];if(w){var k=w.words,E=k[0],D=k[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,P=I>>>16|T&4294901760,z=T<<16|I&65535;C[0]^=I,C[1]^=P,C[2]^=T,C[3]^=z,C[4]^=I,C[5]^=P,C[6]^=T,C[7]^=z;for(var N=0;N<4;N++)x.call(this)}},_doProcessBlock:function(y,w){var S=this._X;x.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var C=0;C<4;C++)s[C]=(s[C]<<8|s[C]>>>24)&16711935|(s[C]<<24|s[C]>>>8)&4278255360,y[w+C]^=s[C]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,S=0;S<8;S++)c[S]=w[S];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<c[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<c[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<c[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<c[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<c[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<c[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<c[6]>>>0?1:0)|0,this._b=w[7]>>>0<c[7]>>>0?1:0;for(var S=0;S<8;S++){var C=y[S]+w[S],N=C&65535,k=C>>>16,E=((N*N>>>17)+N*k>>>15)+k*k,D=((C&4294901760)*C|0)+((C&65535)*C|0);l[S]=E^D}y[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,y[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,y[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,y[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,y[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,y[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,y[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,y[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.RabbitLegacy=i._createHelper(h)}(),n.RabbitLegacy})}(Vu)),Vu.exports}(function(t,e){(function(n,r,a){t.exports=r(Be(),da(),D1(),T1(),Yn(),N1(),Zn(),ji(),Hr.exports,L1(),Jc(),O1(),R1(),M1(),Vi(),P1(),In(),ft(),F1(),z1(),B1(),U1(),j1(),V1(),q1(),H1(),W1(),G1(),$1(),Y1(),Z1(),K1(),J1(),X1())})(Le,function(n){return n})})(A1);var Q1=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,qi=(t,e,n,r)=>{for(var a=r>1?void 0:r?eg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&Q1(e,n,a),a};const Ut=new Map;Ut.set("agenda_users","local"),Ut.set("organisation_id","local"),Ut.set("organisation","session"),Ut.set("currentUser","local"),Ut.set("recent_services","local"),Ut.set("recent_staffs","local"),Ut.set("recent_contacts","local"),Ut.set("recent_companies","local"),Ut.set("recent_users","local"),Ut.set("working_planning_company","local");let ha=class{constructor(t){f(this,"logger"),this.logger=t}dispose(){}getItem(t){const e=this.getKeyStorage(t);return e?e.getItem(t):null}setItem(t,e){const n=this.getKeyStorage(t);n&&n.setItem(t,e)}clear(){localStorage.clear()}clearAllBut(t){if(t===void 0||t.length===0)localStorage.clear(),sessionStorage.clear();else{let e=t.filter(i=>i==="local").length>0,n=t.filter(i=>i==="session").length>0;const r=this,a=t.map(i=>{if(i!=="local"&&i!=="session"){const o=r.getKeyStorage(i);if(o)return{key:i,value:o.getItem(i)}}});e||localStorage.clear(),n||sessionStorage.clear(),a&&a.length>0&&a.forEach(i=>{if(i&&i.key&&i.value){const o=r.getKeyStorage(i.key);if(o)return o.setItem(i.key,i.value)}})}}removeItem(t){localStorage.removeItem(t)}getItems(t){const e=localStorage.getItem(t);return e&&JSON.parse(e)}setItems(t,e){localStorage.setItem(t,JSON.stringify(e))}getKeyStorage(t){const e=Ut.get(t);if(e)return e==="local"?localStorage:sessionStorage}async _onCascadeDelete(t,e,n,r){var a,i,o,s,c;switch(n){case ht:(a=this.logger)==null||a.debug("js-calendar-api","Company deleted (clean localStorage)",t),this._cleanRecentsCompanies(t.companyId);break;case wr:(i=this.logger)==null||i.debug("js-calendar-api","Service deleted (clean localStorage)",t),this._cleanRecentsServices(t.serviceId);break;case gn:(o=this.logger)==null||o.debug("js-calendar-api","Staff deleted (clean localStorage)",t),this._cleanRecentsStaffs(t.staffId);break;case Tc:(s=this.logger)==null||s.debug("js-calendar-api","Contact deleted (clean localStorage)",t),this._cleanRecentsContacts(t.contactId);break;case Lc:(c=this.logger)==null||c.debug("js-calendar-api","User deleted (clean localStorage)",t),this._cleanRecentsUsers(t.userId);break}}_cleanRecentsCompanies(t){const e=this.getItems("recent_companies"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_companies",n||[])}_cleanRecentsServices(t){const e=this.getItems("recent_services"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_services",n||[])}_cleanRecentsStaffs(t){const e=this.getItems("recent_staffs"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_staffs",n||[])}_cleanRecentsContacts(t){const e=this.getItems("recent_contacts"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_contacts",n||[])}_cleanRecentsUsers(t){const e=this.getItems("recent_users"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_users",n||[])}};qi([Ne.Unsubscribe()],ha.prototype,"dispose",1),qi([Ne.Subscribe($e.DELETE)],ha.prototype,"_onCascadeDelete",1),ha=qi([Ne.Subscriber({channel:ht}),Ne.Subscriber({channel:wr}),Ne.Subscriber({channel:gn}),Ne.Subscriber({channel:Tc}),Ne.Subscriber({channel:Lc})],ha);class tg extends Xt{async getAllServiceGroups(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/serviceGroups?account=${encodeURIComponent(n)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async createServiceGroup(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups?account=${encodeURIComponent(n)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async updateServiceGroup(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}?account=${encodeURIComponent(n)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}var ng=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,Hi=(t,e,n,r)=>{for(var a=r>1?void 0:r?rg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&ng(e,n,a),a};let fa=class extends Ht{constructor(t,e,n,r){super("serviceGroup",r),f(this,"serviceGroupDb"),f(this,"serviceGroupService"),this.serviceGroupDb=new _c(e),this.serviceGroupService=new tg(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllServiceGroups(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getServiceGroup(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceGroupId:r})}async createServiceGroup(t,e,n,r){return super.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r)}async updateServiceGroup(t,e,n,r,a){return super.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceGroupId:r},a)}async deleteServiceGroup(t,e,n,r){return this.deleteById(t,{account:e,companyId:n,serviceGroupId:r})}async remoteList(t,e){return(await this.serviceGroupService.getAllServiceGroups(t,e.account,e.companyId)).map(n=>cn.fromServiceGroupDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceGroupService.getById(t,e.account,e.companyId,e.serviceGroupId);return cn.fromServiceGroupDto(n,e.companyId)}async remoteCreate(t,e,n){const r=cn.toServiceGroupDto(n),a=await this.serviceGroupService.createServiceGroup(t,e.account,e.companyId,r);return cn.fromServiceGroupDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=cn.toServiceGroupDto(n),a=await this.serviceGroupService.updateServiceGroup(t,e.account,e.companyId,e.serviceGroupId,r);return cn.fromServiceGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceGroupService.delete(t,e.account,e.companyId,e.serviceGroupId)}async localList(t){return this.serviceGroupDb.getAllServiceGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceGroupDb.getById(t.companyId,t.serviceGroupId)}async localBulkSave(t,e){await this.serviceGroupDb.saveAllServiceGroups(e)}async localDelete(t){this.checkNullable(t),await this.serviceGroupDb.deleteById(t.companyId,t.serviceGroupId)}async localBulkDelete(t){await this.serviceGroupDb.deleteByServiceGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Hi([Ne.Unsubscribe()],fa.prototype,"dispose",1),Hi([Ne.Subscribe($e.DELETE)],fa.prototype,"onCascadeDelete",1),fa=Hi([Ne.Subscriber({channel:ht})],fa);class ag extends Xt{async getAllStaffGroups(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/staffGroups?account=${encodeURIComponent(n)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async createStaffGroup(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups?account=${encodeURIComponent(n)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async updateStaffGroup(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}?account=${encodeURIComponent(n)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class ig{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllStaffGroups(e){return(await this.indexedDb.getAllValue(Wn)||[]).filter(n=>n.companyId===e)}async saveAllStaffGroups(e){await this.indexedDb.putBulkValue(Wn,e)}async getById(e,n){const r=await this.indexedDb.getValue(Wn,n);if((r==null?void 0:r.companyId)===e)return r;throw dn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Wn,n),await new Sc(this.indexedDb).updateStaffSkills(e,n,void 0)}async deleteByStaffGroupIds(e){await this.indexedDb.deleteValues(Wn,e)}async drop(){await this.indexedDb.deleteAllValues(Wn)}updateStaffs(e,n,r){this.getAllStaffGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(c=>c.id===n)});i&&i.length>0&&(i.forEach(o=>{var s,c,l;const h=(s=o.members)==null?void 0:s.findIndex(x=>x.id===n);h!=null&&(r?(c=o.members)==null||c.splice(h,1,r):(l=o.members)==null||l.splice(h,1))}),await this.saveAllStaffGroups(i))})}}var og=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,Wi=(t,e,n,r)=>{for(var a=r>1?void 0:r?sg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&og(e,n,a),a};let ma=class extends Ht{constructor(t,e,n,r){super("staffGroup",r),f(this,"staffGroupDb"),f(this,"staffGroupService"),this.staffGroupDb=new ig(e),this.staffGroupService=new ag(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllStaffGroups(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getStaffGroup(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,staffGroupId:r})}async createStaffGroup(t,e,n,r){return this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r)}async updateStaffGroup(t,e,n,r,a){return this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,staffGroupId:r},a)}async deleteStaffGroup(t,e,n,r){return this.deleteById(t,{account:e,companyId:n,staffGroupId:r})}async remoteList(t,e){return(await this.staffGroupService.getAllStaffGroups(t,e.account,e.companyId)).map(n=>un.fromStaffGroupDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.staffGroupService.getById(t,e.account,e.companyId,e.staffGroupId);return un.fromStaffGroupDto(n,e.companyId)}async remoteCreate(t,e,n){const r=un.toStaffGroupDto(n),a=await this.staffGroupService.createStaffGroup(t,e.account,e.companyId,r);return un.fromStaffGroupDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=un.toStaffGroupDto(n),a=await this.staffGroupService.updateStaffGroup(t,e.account,e.companyId,e.staffGroupId,r);return un.fromStaffGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.staffGroupService.delete(t,e.account,e.companyId,e.staffGroupId)}async localList(t){return this.staffGroupDb.getAllStaffGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffGroupDb.getById(t.companyId,t.staffGroupId)}async localBulkSave(t,e){await this.staffGroupDb.saveAllStaffGroups(e)}async localDelete(t){this.checkNullable(t),await this.staffGroupDb.deleteById(t.companyId,t.staffGroupId)}async localBulkDelete(t){await this.staffGroupDb.deleteByStaffGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Wi([Ne.Unsubscribe()],ma.prototype,"dispose",1),Wi([Ne.Subscribe($e.DELETE)],ma.prototype,"onCascadeDelete",1),ma=Wi([Ne.Subscriber({channel:ht})],ma);class lg extends Xt{async getAllServiceResources(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/service-resources?account=${encodeURIComponent(n)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Te(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async createService(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources?account=${encodeURIComponent(n)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async updateService(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/service-resources/${a}?account=${encodeURIComponent(n)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(c){throw c}else throw new Te(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources/${a}?account=${encodeURIComponent(n)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class cg{constructor(e){f(this,"indexedDb"),this.indexedDb=e}async getAllServiceResources(e){return(await this.indexedDb.getAllValue(qn)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async saveAllServiceResources(e){await this.indexedDb.putBulkValue(qn,e)}async getById(e,n){var r;const a=await this.indexedDb.getValue(qn,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw dn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(qn,n)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(qn,e)}async drop(){await this.indexedDb.deleteAllValues(qn)}}var ug=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,Gi=(t,e,n,r)=>{for(var a=r>1?void 0:r?dg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&ug(e,n,a),a};const $i=new Ne.Channel;let pa=class extends Ht{constructor(t,e,n,r){super("serviceResource",r),f(this,"serviceResourceDb"),f(this,"serviceResourceService"),this.serviceResourceDb=new cg(e),this.serviceResourceService=new lg(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServiceResources(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getServiceResource(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceResourceId:r})}async createServiceResource(t,e,n,r){const a=await super.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return $i.publish($e.CREATE,{account:e,companyId:n,resource:a}),a}async updateServiceResource(t,e,n,r,a){const i=await super.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceResourceId:r},a);return $i.publish($e.UPDATE,{account:e,companyId:n,serviceResourceId:r,resource:i}),i}async deleteServiceResource(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,serviceResourceId:r}),$i.publish($e.DELETE,{account:e,companyId:n,serviceResourceId:r})}async remoteList(t,e){return(await this.serviceResourceService.getAllServiceResources(t,e.account,e.companyId)).map(n=>hn.fromServiceResourceDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceResourceService.getById(t,e.account,e.companyId,e.serviceResourceId);return hn.fromServiceResourceDto(n,e.companyId)}async remoteCreate(t,e,n){const r=hn.toServiceResourceDto(n),a=await this.serviceResourceService.createService(t,e.account,e.companyId,r);return hn.fromServiceResourceDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=hn.toServiceResourceDto(n),a=await this.serviceResourceService.updateService(t,e.account,e.companyId,e.serviceResourceId,r);return hn.fromServiceResourceDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceResourceService.delete(t,e.account,e.companyId,e.serviceResourceId)}async localList(t){return this.serviceResourceDb.getAllServiceResources(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceResourceDb.getById(t.companyId,t.serviceResourceId)}async localBulkSave(t,e){await this.serviceResourceDb.saveAllServiceResources(e)}async localDelete(t){this.checkNullable(t),await this.serviceResourceDb.deleteById(t.companyId,t.serviceResourceId)}async localBulkDelete(t){await this.serviceResourceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceResourceId)throw Error("Invalid state:"+JSON.stringify(t))}};Gi([Ne.Unsubscribe()],pa.prototype,"dispose",1),Gi([Ne.Subscribe($e.DELETE)],pa.prototype,"onCascadeDelete",1),pa=Gi([Ne.Subscriber({channel:ht})],pa);class Yi{constructor(){f(this,"company"),f(this,"days"),f(this,"start"),f(this,"end"),f(this,"saveMode")}static fromWorkingPlanningDto(e){switch(e.objectOwner.type){case"staff":let n=new hg;return n.company=Zi.fromCompanyDto(e.company),n.staffId=e.objectOwner.id,e.objectOwner.properties&&(n.user=Ki.fromPropertiesDto(e.objectOwner.properties)),n.days=e.days.map(r=>ga.fromWorkingPlanningDayDto(r)),n}throw new Error("Unknow working planning type:"+e.objectOwner.type)}static toWorkingPlanningDto(e){let n=new fg;return n.companyId=e.company.id,n.objectOwners=[{id:e.staffId,type:"staff"}],n.days=ga.toWorkingPlanningDayDto(e.days),n.start=Ae.fromJSDate(e.start).toFormat("yyyy-MM-dd"),n.end=Ae.fromJSDate(e.end).toFormat("yyyy-MM-dd"),n.saveMode=e.saveMode,n}}class hg extends Yi{constructor(){super(...arguments),f(this,"user"),f(this,"staffId")}}class ga{constructor(){f(this,"date"),f(this,"hours"),f(this,"durationInMinutes"),f(this,"isOnVacation")}static fromWorkingPlanningDayDto(e){var n;let r=new ga;return r.hours=e.hours,r.durationInMinutes=ze.fromISOTime(e.duration).as("minutes"),r.date=Ae.fromISO(e.date).toJSDate(),r.isOnVacation=(n=e.isOnVacation)!=null?n:!1,r}static toWorkingPlanningDayDto(e){let n={};return e.forEach((r,a)=>{r&&(n[a]=r)}),n}}class fg{constructor(){f(this,"objectOwner"),f(this,"objectOwners"),f(this,"company"),f(this,"companyId"),f(this,"days"),f(this,"start"),f(this,"end"),f(this,"saveMode")}}class Zi{constructor(){f(this,"id"),f(this,"name")}static fromCompanyDto(e){let n=new Zi;return n.id=e.id,n.name=Ce(e.name),n}}class Ki{constructor(){f(this,"id"),f(this,"firstName"),f(this,"lastName"),f(this,"email")}static fromPropertiesDto(e){let n=new Ki;return n.id=e.userId,n.email=Ce(e.email),n.firstName=Ce(e.firstName),n.lastName=Ce(e.lastName),n}}class mg extends Xt{async getAllCompanyWorkingPlanning(e,n,r,a,i){const o=this.instance.get(`/api/2.3/scheduling/workingHours?account=${encodeURIComponent(n)}&companyIds=${r}&start=${a}&end=${i}`,this.getAxiosConfig(e));if(o!==null)try{return(await o).items}catch(s){throw s}else throw new Te(Se.INTERNAL_ERROR)}async createWorkingPlanning(e,n,r){let a=`/api/2.3/scheduling/workingHours?account=${encodeURIComponent(n)}`;const i=this.instance.post(a,r,this.getAxiosConfig(e));if(i!==null)try{await i;return}catch(o){throw o}else throw new Te(Se.INTERNAL_ERROR)}}var pg=Object.defineProperty,gg=Object.getOwnPropertyDescriptor,vg=(t,e,n,r)=>{for(var a=r>1?void 0:r?gg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&pg(e,n,a),a};let Hu=class extends Ht{constructor(t,e,n){super("workingPlanning",n),f(this,"workingPlanningService"),this.workingPlanningService=new mg(e,t,n)}async getAllCompanyWorkingPlannings(t,e,n,r,a){return this.remoteList(t,{account:e,companyId:n,start:r,end:a})}async createWorkingPlanning(t,e,n){return await super.create(t,Oe.REMOTE_ONLY,{account:e},n)}localBulkDelete(t){throw new Error("Method not implemented.")}localBulkSave(t,e){throw new Error("Method not implemented.")}localDelete(t){throw new Error("Method not implemented.")}localGet(t){throw new Error("Method not implemented.")}localList(t){throw new Error("Method not implemented.")}async remoteCreate(t,e,n){const r=Yi.toWorkingPlanningDto(n);return await this.workingPlanningService.createWorkingPlanning(t,e.account,r),n}remoteDelete(t,e){throw new Error("Method not implemented.")}remoteGet(t,e){throw new Error("Method not implemented.")}async remoteList(t,e){const n=zn(e.start),r=zn(e.end);return(await this.workingPlanningService.getAllCompanyWorkingPlanning(t,e.account,e.companyId,n,r)).map(a=>Yi.fromWorkingPlanningDto(a))}remoteUpdate(t,e,n){throw new Error("Method not implemented.")}};Hu=vg([Ne.Subscriber({channel:gn}),Ne.Subscriber({channel:ht})],Hu);let va,Ji;const yg=(t,e)=>(va=t,Ji=e,Qt.createPinia()),bg=Qt.defineStore({id:"account",state:()=>({account:{}}),actions:{async updateAccount(t){if(!!t)return va.updateAccount(t).then(e=>{const n=e;Object.keys(n).forEach(function(r){n[r]===void 0&&delete n[r]}),Object.assign(this.account,n)})},fetchAccount(t,e){return va.getAccount().then(n=>{n.result?(this.account=n.result,t&&t(n.result)):e&&e(Se.INTERNAL_ERROR)}).catch(()=>{e&&e(Se.INTERNAL_ERROR)})},async updatePassword(t,e){return va.updatePassword(t,e)},async hasAbility(t,e){return Ji.can(t,e)},async hasAnyRoles(t){return Ji.role.any(t)}}});class Eg{constructor(e){Xi(this,"internalState");Xi(this,"listeners",[]);this.internalState=e}get state(){return this.internalState}changeState(e){this.internalState=e,this.listeners.length>0&&this.listeners.forEach(n=>n(this.state))}subscribe(e){this.listeners.push(e)}unsubscribe(e){const n=this.listeners.indexOf(e);n>-1&&this.listeners.splice(n,1)}}function xg(t){let e="ffffff",n="000000",r=t.substr(1);const a=[{id:25,weight:95,base:e},{id:50,weight:90,base:e},{id:100,weight:80,base:e},{id:200,weight:60,base:e},{id:300,weight:40,base:e},{id:400,weight:20,base:e},{id:600,weight:20,base:n},{id:700,weight:40,base:n},{id:800,weight:60,base:n},{id:900,weight:90,base:n}],i=[];return a.forEach(o=>{i.push({key:`--az-primary-${o.id}`,code:wg(o.base,r,o.weight)})}),i.push({key:"--az-primary-500",code:t}),i}function wg(t,e,n){function r(o){return o.toString(16)}function a(o){return parseInt(o,16)}n=typeof n!="undefined"?n:50;let i="#";for(let o=0;o<=5;o+=2){let s=a(t.substr(o,2)),c=a(e.substr(o,2)),l=r(Math.floor(c+(s-c)*(n/100)));for(;l.length<2;)l="0"+l;i+=l}return i}const _g=[{label:"English",value:"en"},{label:"Fran\xE7ais",value:"fr"},{label:"Espa\xF1ol",value:"es"},{label:"Portugu\xEAs",value:"pt"},{label:"Deutsch",value:"de"},{label:"Nederlands",value:"nl"},{label:"Italiano",value:"it"},{label:"\u65E5\u672C\u8A9E",value:"ja"}];qe.Bloc=Eg,qe.QRCode=uf,qe.createStore=yg,qe.dateToString=Gu,qe.decodeHtml=Ju,qe.formatDate=Ku,qe.generateShadesFromColor=xg,qe.languages=_g,qe.onPictureUpdated=$u,qe.pad=ya,qe.parseToInt=Zu,qe.personToInitials=Xu,qe.readBlobFromUrl=Yu,qe.toBase64=Qi,qe.useAccountStore=bg,qe.useBlocState=Wu,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|