@agendize/vue-tools 1.0.2 → 1.1.0-beta4818
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/index.d.ts +3 -0
- package/dist/presentation/component/qr-code/View.vue.d.ts +13 -1
- package/dist/store/accountStore.d.ts +10 -0
- package/dist/style.css +1 -1
- package/dist/utils/constants.d.ts +4 -0
- package/dist/vue-tools.es.js +11020 -333
- package/dist/vue-tools.umd.js +42 -15
- package/package.json +7 -5
package/dist/vue-tools.umd.js
CHANGED
|
@@ -1,35 +1,62 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`}return
|
|
3
|
-
`}return n.substring(0,n.length-1)},te.renderTo2dContext=function(E,D){D=D||2;for(var u=te.getModuleCount(),l=0;l<u;l++)for(var p=0;p<u;p++)E.fillStyle=te.isDark(l,p)?"black":"white",E.fillRect(l*D,p*D,D,D)},te};q.stringToBytes=(q.stringToBytesFuncs={default:function(P){for(var O=[],T=0;T<P.length;T+=1){var S=P.charCodeAt(T);O.push(255&S)}return O}}).default,q.createStringToBytes=function(P,O){var T=function(){for(var y=Te(P),k=function(){var ve=y.read();if(ve==-1)throw"eof";return ve},X=0,W={};;){var te=y.read();if(te==-1)break;var xe=k(),ye=k()<<8|k();W[String.fromCharCode(te<<8|xe)]=ye,X+=1}if(X!=O)throw X+" != "+O;return W}(),S="?".charCodeAt(0);return function(y){for(var k=[],X=0;X<y.length;X+=1){var W=y.charCodeAt(X);if(W<128)k.push(W);else{var te=T[y.charAt(X)];typeof te=="number"?(255&te)==te?k.push(te):(k.push(te>>>8),k.push(255&te)):k.push(S)}}return k}};var V,z,G,$,Q,ee={L:1,M:0,Q:3,H:2},_=(V=[[],[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]],z=1335,G=7973,Q=function(P){for(var O=0;P!=0;)O+=1,P>>>=1;return O},($={}).getBCHTypeInfo=function(P){for(var O=P<<10;Q(O)-Q(z)>=0;)O^=z<<Q(O)-Q(z);return 21522^(P<<10|O)},$.getBCHTypeNumber=function(P){for(var O=P<<12;Q(O)-Q(G)>=0;)O^=G<<Q(O)-Q(G);return P<<12|O},$.getPatternPosition=function(P){return V[P-1]},$.getMaskFunction=function(P){switch(P){case 0:return function(O,T){return(O+T)%2==0};case 1:return function(O,T){return O%2==0};case 2:return function(O,T){return T%3==0};case 3:return function(O,T){return(O+T)%3==0};case 4:return function(O,T){return(Math.floor(O/2)+Math.floor(T/3))%2==0};case 5:return function(O,T){return O*T%2+O*T%3==0};case 6:return function(O,T){return(O*T%2+O*T%3)%2==0};case 7:return function(O,T){return(O*T%3+(O+T)%2)%2==0};default:throw"bad maskPattern:"+P}},$.getErrorCorrectPolynomial=function(P){for(var O=B([1],0),T=0;T<P;T+=1)O=O.multiply(B([1,R.gexp(T)],0));return O},$.getLengthInBits=function(P,O){if(1<=O&&O<10)switch(P){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+P}else if(O<27)switch(P){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+P}else{if(!(O<41))throw"type:"+O;switch(P){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+P}}},$.getLostPoint=function(P){for(var O=P.getModuleCount(),T=0,S=0;S<O;S+=1)for(var y=0;y<O;y+=1){for(var k=0,X=P.isDark(S,y),W=-1;W<=1;W+=1)if(!(S+W<0||O<=S+W))for(var te=-1;te<=1;te+=1)y+te<0||O<=y+te||W==0&&te==0||X==P.isDark(S+W,y+te)&&(k+=1);k>5&&(T+=3+k-5)}for(S=0;S<O-1;S+=1)for(y=0;y<O-1;y+=1){var xe=0;P.isDark(S,y)&&(xe+=1),P.isDark(S+1,y)&&(xe+=1),P.isDark(S,y+1)&&(xe+=1),P.isDark(S+1,y+1)&&(xe+=1),xe!=0&&xe!=4||(T+=3)}for(S=0;S<O;S+=1)for(y=0;y<O-6;y+=1)P.isDark(S,y)&&!P.isDark(S,y+1)&&P.isDark(S,y+2)&&P.isDark(S,y+3)&&P.isDark(S,y+4)&&!P.isDark(S,y+5)&&P.isDark(S,y+6)&&(T+=40);for(y=0;y<O;y+=1)for(S=0;S<O-6;S+=1)P.isDark(S,y)&&!P.isDark(S+1,y)&&P.isDark(S+2,y)&&P.isDark(S+3,y)&&P.isDark(S+4,y)&&!P.isDark(S+5,y)&&P.isDark(S+6,y)&&(T+=40);var ye=0;for(y=0;y<O;y+=1)for(S=0;S<O;S+=1)P.isDark(S,y)&&(ye+=1);return T+Math.abs(100*ye/O/O-50)/5*10},$),R=function(){for(var P=new Array(256),O=new Array(256),T=0;T<8;T+=1)P[T]=1<<T;for(T=8;T<256;T+=1)P[T]=P[T-4]^P[T-5]^P[T-6]^P[T-8];for(T=0;T<255;T+=1)O[P[T]]=T;return{glog:function(S){if(S<1)throw"glog("+S+")";return O[S]},gexp:function(S){for(;S<0;)S+=255;for(;S>=256;)S-=255;return P[S]}}}();function B(P,O){if(P.length===void 0)throw P.length+"/"+O;var T=function(){for(var y=0;y<P.length&&P[y]==0;)y+=1;for(var k=new Array(P.length-y+O),X=0;X<P.length-y;X+=1)k[X]=P[X+y];return k}(),S={getAt:function(y){return T[y]},getLength:function(){return T.length},multiply:function(y){for(var k=new Array(S.getLength()+y.getLength()-1),X=0;X<S.getLength();X+=1)for(var W=0;W<y.getLength();W+=1)k[X+W]^=R.gexp(R.glog(S.getAt(X))+R.glog(y.getAt(W)));return B(k,0)},mod:function(y){if(S.getLength()-y.getLength()<0)return S;for(var k=R.glog(S.getAt(0))-R.glog(y.getAt(0)),X=new Array(S.getLength()),W=0;W<S.getLength();W+=1)X[W]=S.getAt(W);for(W=0;W<y.getLength();W+=1)X[W]^=R.gexp(R.glog(y.getAt(W))+k);return B(X,0).mod(y)}};return S}var M=function(){var P=[[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]],O=function(S,y){var k={};return k.totalCount=S,k.dataCount=y,k},T={getRSBlocks:function(S,y){var k=function(Ne,Le){switch(Le){case ee.L:return P[4*(Ne-1)+0];case ee.M:return P[4*(Ne-1)+1];case ee.Q:return P[4*(Ne-1)+2];case ee.H:return P[4*(Ne-1)+3];default:return}}(S,y);if(k===void 0)throw"bad rs block @ typeNumber:"+S+"/errorCorrectionLevel:"+y;for(var X=k.length/3,W=[],te=0;te<X;te+=1)for(var xe=k[3*te+0],ye=k[3*te+1],ve=k[3*te+2],we=0;we<xe;we+=1)W.push(O(ye,ve));return W}};return T}(),L=function(){var P=[],O=0,T={getBuffer:function(){return P},getAt:function(S){var y=Math.floor(S/8);return(P[y]>>>7-S%8&1)==1},put:function(S,y){for(var k=0;k<y;k+=1)T.putBit((S>>>y-k-1&1)==1)},getLengthInBits:function(){return O},putBit:function(S){var y=Math.floor(O/8);P.length<=y&&P.push(0),S&&(P[y]|=128>>>O%8),O+=1}};return T},J=function(P){var O=P,T={getMode:function(){return 1},getLength:function(k){return O.length},write:function(k){for(var X=O,W=0;W+2<X.length;)k.put(S(X.substring(W,W+3)),10),W+=3;W<X.length&&(X.length-W==1?k.put(S(X.substring(W,W+1)),4):X.length-W==2&&k.put(S(X.substring(W,W+2)),7))}},S=function(k){for(var X=0,W=0;W<k.length;W+=1)X=10*X+y(k.charAt(W));return X},y=function(k){if("0"<=k&&k<="9")return k.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+k};return T},re=function(P){var O=P,T={getMode:function(){return 2},getLength:function(y){return O.length},write:function(y){for(var k=O,X=0;X+1<k.length;)y.put(45*S(k.charAt(X))+S(k.charAt(X+1)),11),X+=2;X<k.length&&y.put(S(k.charAt(X)),6)}},S=function(y){if("0"<=y&&y<="9")return y.charCodeAt(0)-"0".charCodeAt(0);if("A"<=y&&y<="Z")return y.charCodeAt(0)-"A".charCodeAt(0)+10;switch(y){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 :"+y}};return T},Ce=function(P){var O=q.stringToBytes(P);return{getMode:function(){return 4},getLength:function(T){return O.length},write:function(T){for(var S=0;S<O.length;S+=1)T.put(O[S],8)}}},pe=function(P){var O=q.stringToBytesFuncs.SJIS;if(!O)throw"sjis not supported.";(function(S,y){var k=O("\u53CB");if(k.length!=2||(k[0]<<8|k[1])!=38726)throw"sjis not supported."})();var T=O(P);return{getMode:function(){return 8},getLength:function(S){return~~(T.length/2)},write:function(S){for(var y=T,k=0;k+1<y.length;){var X=(255&y[k])<<8|255&y[k+1];if(33088<=X&&X<=40956)X-=33088;else{if(!(57408<=X&&X<=60351))throw"illegal char at "+(k+1)+"/"+X;X-=49472}X=192*(X>>>8&255)+(255&X),S.put(X,13),k+=2}if(k<y.length)throw"illegal char at "+(k+1)}}},Me=function(){var P=[],O={writeByte:function(T){P.push(255&T)},writeShort:function(T){O.writeByte(T),O.writeByte(T>>>8)},writeBytes:function(T,S,y){S=S||0,y=y||T.length;for(var k=0;k<y;k+=1)O.writeByte(T[k+S])},writeString:function(T){for(var S=0;S<T.length;S+=1)O.writeByte(T.charCodeAt(S))},toByteArray:function(){return P},toString:function(){var T="";T+="[";for(var S=0;S<P.length;S+=1)S>0&&(T+=","),T+=P[S];return T+"]"}};return O},Te=function(P){var O=P,T=0,S=0,y=0,k={read:function(){for(;y<8;){if(T>=O.length){if(y==0)return-1;throw"unexpected end of file./"+y}var W=O.charAt(T);if(T+=1,W=="=")return y=0,-1;W.match(/^\s$/)||(S=S<<6|X(W.charCodeAt(0)),y+=6)}var te=S>>>y-8&255;return y-=8,te}},X=function(W){if(65<=W&&W<=90)return W-65;if(97<=W&&W<=122)return W-97+26;if(48<=W&&W<=57)return W-48+52;if(W==43)return 62;if(W==47)return 63;throw"c:"+W};return k},qe=function(P,O,T){for(var S=function(ye,ve){var we=ye,Ne=ve,Le=new Array(ye*ve),Ve={setPixel:function(E,D,u){Le[D*we+E]=u},write:function(E){E.writeString("GIF87a"),E.writeShort(we),E.writeShort(Ne),E.writeByte(128),E.writeByte(0),E.writeByte(0),E.writeByte(0),E.writeByte(0),E.writeByte(0),E.writeByte(255),E.writeByte(255),E.writeByte(255),E.writeString(","),E.writeShort(0),E.writeShort(0),E.writeShort(we),E.writeShort(Ne),E.writeByte(0);var D=Ue(2);E.writeByte(2);for(var u=0;D.length-u>255;)E.writeByte(255),E.writeBytes(D,u,255),u+=255;E.writeByte(D.length-u),E.writeBytes(D,u,D.length-u),E.writeByte(0),E.writeString(";")}},Ue=function(E){for(var D=1<<E,u=1+(1<<E),l=E+1,p=me(),A=0;A<D;A+=1)p.add(String.fromCharCode(A));p.add(String.fromCharCode(D)),p.add(String.fromCharCode(u));var H,Z,g,t=Me(),a=(H=t,Z=0,g=0,{write:function(c,v){if(c>>>v!=0)throw"length over";for(;Z+v>=8;)H.writeByte(255&(c<<Z|g)),v-=8-Z,c>>>=8-Z,g=0,Z=0;g|=c<<Z,Z+=v},flush:function(){Z>0&&H.writeByte(g)}});a.write(D,l);var n=0,r=String.fromCharCode(Le[n]);for(n+=1;n<Le.length;){var d=String.fromCharCode(Le[n]);n+=1,p.contains(r+d)?r+=d:(a.write(p.indexOf(r),l),p.size()<4095&&(p.size()==1<<l&&(l+=1),p.add(r+d)),r=d)}return a.write(p.indexOf(r),l),a.write(u,l),a.flush(),t.toByteArray()},me=function(){var E={},D=0,u={add:function(l){if(u.contains(l))throw"dup key:"+l;E[l]=D,D+=1},size:function(){return D},indexOf:function(l){return E[l]},contains:function(l){return E[l]!==void 0}};return u};return Ve}(P,O),y=0;y<O;y+=1)for(var k=0;k<P;k+=1)S.setPixel(k,y,T(k,y));var X=Me();S.write(X);for(var W=function(){var ye=0,ve=0,we=0,Ne="",Le={},Ve=function(me){Ne+=String.fromCharCode(Ue(63&me))},Ue=function(me){if(!(me<0)){if(me<26)return 65+me;if(me<52)return me-26+97;if(me<62)return me-52+48;if(me==62)return 43;if(me==63)return 47}throw"n:"+me};return Le.writeByte=function(me){for(ye=ye<<8|255&me,ve+=8,we+=1;ve>=6;)Ve(ye>>>ve-6),ve-=6},Le.flush=function(){if(ve>0&&(Ve(ye<<6-ve),ye=0,ve=0),we%3!=0)for(var me=3-we%3,E=0;E<me;E+=1)Ne+="="},Le.toString=function(){return Ne},Le}(),te=X.toByteArray(),xe=0;xe<te.length;xe+=1)W.writeByte(te[xe]);return W.flush(),"data:image/gif;base64,"+W};return q}();I.stringToBytesFuncs["UTF-8"]=function(q){return function(V){for(var z=[],G=0;G<V.length;G++){var $=V.charCodeAt(G);$<128?z.push($):$<2048?z.push(192|$>>6,128|63&$):$<55296||$>=57344?z.push(224|$>>12,128|$>>6&63,128|63&$):(G++,$=65536+((1023&$)<<10|1023&V.charCodeAt(G)),z.push(240|$>>18,128|$>>12&63,128|$>>6&63,128|63&$))}return z}(q)},(b=typeof(x=function(){return I})=="function"?x.apply(h,[]):x)===void 0||(s.exports=b)},796:(s,h,x)=>{x.d(h,{default:()=>Z});var b=function(){return(b=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)},I=function(){for(var g=0,t=0,a=arguments.length;t<a;t++)g+=arguments[t].length;var n=Array(g),r=0;for(t=0;t<a;t++)for(var d=arguments[t],c=0,v=d.length;c<v;c++,r++)n[r]=d[c];return n},q=function(g){return!!g&&typeof g=="object"&&!Array.isArray(g)};function V(g){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!t.length)return g;var n=t.shift();return n!==void 0&&q(g)&&q(n)?(g=b({},g),Object.keys(n).forEach(function(r){var d=g[r],c=n[r];Array.isArray(d)&&Array.isArray(c)?g[r]=c:q(d)&&q(c)?g[r]=V(Object.assign({},d),c):g[r]=c}),V.apply(void 0,I([g],t))):g}function z(g,t){var a=document.createElement("a");a.download=t,a.href=g,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function G(g){var t=g.originalHeight,a=g.originalWidth,n=g.maxHiddenDots,r=g.maxHiddenAxisDots,d=g.dotSize,c={x:0,y:0},v={x:0,y:0};if(t<=0||a<=0||n<=0||d<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var w=t/a;return c.x=Math.floor(Math.sqrt(n/w)),c.x<=0&&(c.x=1),r&&r<c.x&&(c.x=r),c.x%2==0&&c.x--,v.x=c.x*d,c.y=1+2*Math.ceil((c.x*w-1)/2),v.y=Math.round(v.x*w),(c.y*c.x>n||r&&r<c.y)&&(r&&r<c.y?(c.y=r,c.y%2==0&&c.x--):c.y-=2,v.y=c.y*d,c.x=1+2*Math.ceil((c.y/w-1)/2),v.x=Math.round(v.y/w)),{height:v.y,width:v.x,hideYDots:c.y,hideXDots:c.x}}const $={L:.07,M:.15,Q:.25,H:.3},Q="dots",ee="rounded",_="classy",R="classy-rounded",B="square",M="extra-rounded";var L=function(){return(L=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};const J=function(){function g(t){var a=t.context,n=t.type;this._context=a,this._type=n}return g.prototype.draw=function(t,a,n,r){var d,c=this._context;switch(this._type){case Q:d=this._drawDot;break;case _:d=this._drawClassy;break;case R:d=this._drawClassyRounded;break;case ee:d=this._drawRounded;break;case M:d=this._drawExtraRounded;break;case B:default:d=this._drawSquare}d.call(this,{x:t,y:a,size:n,context:c,getNeighbor:r})},g.prototype._rotateFigure=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation,v=c===void 0?0:c,w=t.draw,N=a+r/2,C=n+r/2;d.translate(N,C),v&&d.rotate(v),w(),d.closePath(),v&&d.rotate(-v),d.translate(-N,-C)},g.prototype._basicDot=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.arc(0,0,a/2,0,2*Math.PI)}}))},g.prototype._basicSquare=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.rect(-a/2,-a/2,a,a)}}))},g.prototype._basicSideRounded=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.arc(0,0,a/2,-Math.PI/2,Math.PI/2),n.lineTo(-a/2,a/2),n.lineTo(-a/2,-a/2),n.lineTo(0,-a/2)}}))},g.prototype._basicCornerRounded=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.arc(0,0,a/2,-Math.PI/2,0),n.lineTo(a/2,a/2),n.lineTo(-a/2,a/2),n.lineTo(-a/2,-a/2),n.lineTo(0,-a/2)}}))},g.prototype._basicCornerExtraRounded=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.arc(-a/2,a/2,a,-Math.PI/2,0),n.lineTo(-a/2,a/2),n.lineTo(-a/2,-a/2)}}))},g.prototype._basicCornersRounded=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.arc(0,0,a/2,-Math.PI/2,0),n.lineTo(a/2,a/2),n.lineTo(0,a/2),n.arc(0,0,a/2,Math.PI/2,Math.PI),n.lineTo(-a/2,-a/2),n.lineTo(0,-a/2)}}))},g.prototype._basicCornersExtraRounded=function(t){var a=t.size,n=t.context;this._rotateFigure(L(L({},t),{draw:function(){n.arc(-a/2,a/2,a,-Math.PI/2,0),n.arc(a/2,-a/2,a,Math.PI/2,Math.PI)}}))},g.prototype._drawDot=function(t){var a=t.x,n=t.y,r=t.size,d=t.context;this._basicDot({x:a,y:n,size:r,context:d,rotation:0})},g.prototype._drawSquare=function(t){var a=t.x,n=t.y,r=t.size,d=t.context;this._basicSquare({x:a,y:n,size:r,context:d,rotation:0})},g.prototype._drawRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.getNeighbor,v=c?+c(-1,0):0,w=c?+c(1,0):0,N=c?+c(0,-1):0,C=c?+c(0,1):0,F=v+w+N+C;if(F!==0)if(F>2||v&&w||N&&C)this._basicSquare({x:a,y:n,size:r,context:d,rotation:0});else{if(F===2){var U=0;return v&&N?U=Math.PI/2:N&&w?U=Math.PI:w&&C&&(U=-Math.PI/2),void this._basicCornerRounded({x:a,y:n,size:r,context:d,rotation:U})}if(F===1)return U=0,N?U=Math.PI/2:w?U=Math.PI:C&&(U=-Math.PI/2),void this._basicSideRounded({x:a,y:n,size:r,context:d,rotation:U})}else this._basicDot({x:a,y:n,size:r,context:d,rotation:0})},g.prototype._drawExtraRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.getNeighbor,v=c?+c(-1,0):0,w=c?+c(1,0):0,N=c?+c(0,-1):0,C=c?+c(0,1):0,F=v+w+N+C;if(F!==0)if(F>2||v&&w||N&&C)this._basicSquare({x:a,y:n,size:r,context:d,rotation:0});else{if(F===2){var U=0;return v&&N?U=Math.PI/2:N&&w?U=Math.PI:w&&C&&(U=-Math.PI/2),void this._basicCornerExtraRounded({x:a,y:n,size:r,context:d,rotation:U})}if(F===1)return U=0,N?U=Math.PI/2:w?U=Math.PI:C&&(U=-Math.PI/2),void this._basicSideRounded({x:a,y:n,size:r,context:d,rotation:U})}else this._basicDot({x:a,y:n,size:r,context:d,rotation:0})},g.prototype._drawClassy=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.getNeighbor,v=c?+c(-1,0):0,w=c?+c(1,0):0,N=c?+c(0,-1):0,C=c?+c(0,1):0;v+w+N+C!==0?v||N?w||C?this._basicSquare({x:a,y:n,size:r,context:d,rotation:0}):this._basicCornerRounded({x:a,y:n,size:r,context:d,rotation:Math.PI/2}):this._basicCornerRounded({x:a,y:n,size:r,context:d,rotation:-Math.PI/2}):this._basicCornersRounded({x:a,y:n,size:r,context:d,rotation:Math.PI/2})},g.prototype._drawClassyRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.getNeighbor,v=c?+c(-1,0):0,w=c?+c(1,0):0,N=c?+c(0,-1):0,C=c?+c(0,1):0;v+w+N+C!==0?v||N?w||C?this._basicSquare({x:a,y:n,size:r,context:d,rotation:0}):this._basicCornerExtraRounded({x:a,y:n,size:r,context:d,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:a,y:n,size:r,context:d,rotation:-Math.PI/2}):this._basicCornersRounded({x:a,y:n,size:r,context:d,rotation:Math.PI/2})},g}(),re="square",Ce="extra-rounded";var pe=function(){return(pe=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};const Me=function(){function g(t){var a=t.context,n=t.type;this._context=a,this._type=n}return g.prototype.draw=function(t,a,n,r){var d,c=this._context;switch(this._type){case re:d=this._drawSquare;break;case Ce:d=this._drawExtraRounded;break;case"dot":default:d=this._drawDot}d.call(this,{x:t,y:a,size:n,context:c,rotation:r})},g.prototype._rotateFigure=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation,v=c===void 0?0:c,w=t.draw,N=a+r/2,C=n+r/2;d.translate(N,C),v&&d.rotate(v),w(),d.closePath(),v&&d.rotate(-v),d.translate(-N,-C)},g.prototype._basicDot=function(t){var a=t.size,n=t.context,r=a/7;this._rotateFigure(pe(pe({},t),{draw:function(){n.arc(0,0,a/2,0,2*Math.PI),n.arc(0,0,a/2-r,0,2*Math.PI)}}))},g.prototype._basicSquare=function(t){var a=t.size,n=t.context,r=a/7;this._rotateFigure(pe(pe({},t),{draw:function(){n.rect(-a/2,-a/2,a,a),n.rect(-a/2+r,-a/2+r,a-2*r,a-2*r)}}))},g.prototype._basicExtraRounded=function(t){var a=t.size,n=t.context,r=a/7;this._rotateFigure(pe(pe({},t),{draw:function(){n.arc(-r,-r,2.5*r,Math.PI,-Math.PI/2),n.lineTo(r,-3.5*r),n.arc(r,-r,2.5*r,-Math.PI/2,0),n.lineTo(3.5*r,-r),n.arc(r,r,2.5*r,0,Math.PI/2),n.lineTo(-r,3.5*r),n.arc(-r,r,2.5*r,Math.PI/2,Math.PI),n.lineTo(-3.5*r,-r),n.arc(-r,-r,1.5*r,Math.PI,-Math.PI/2),n.lineTo(r,-2.5*r),n.arc(r,-r,1.5*r,-Math.PI/2,0),n.lineTo(2.5*r,-r),n.arc(r,r,1.5*r,0,Math.PI/2),n.lineTo(-r,2.5*r),n.arc(-r,r,1.5*r,Math.PI/2,Math.PI),n.lineTo(-2.5*r,-r)}}))},g.prototype._drawDot=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation;this._basicDot({x:a,y:n,size:r,context:d,rotation:c})},g.prototype._drawSquare=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation;this._basicSquare({x:a,y:n,size:r,context:d,rotation:c})},g.prototype._drawExtraRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation;this._basicExtraRounded({x:a,y:n,size:r,context:d,rotation:c})},g}(),Te="square";var qe=function(){return(qe=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};const P=function(){function g(t){var a=t.context,n=t.type;this._context=a,this._type=n}return g.prototype.draw=function(t,a,n,r){var d,c=this._context;switch(this._type){case Te:d=this._drawSquare;break;case"dot":default:d=this._drawDot}d.call(this,{x:t,y:a,size:n,context:c,rotation:r})},g.prototype._rotateFigure=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation,v=c===void 0?0:c,w=t.draw,N=a+r/2,C=n+r/2;d.translate(N,C),v&&d.rotate(v),w(),d.closePath(),v&&d.rotate(-v),d.translate(-N,-C)},g.prototype._basicDot=function(t){var a=t.size,n=t.context;this._rotateFigure(qe(qe({},t),{draw:function(){n.arc(0,0,a/2,0,2*Math.PI)}}))},g.prototype._basicSquare=function(t){var a=t.size,n=t.context;this._rotateFigure(qe(qe({},t),{draw:function(){n.rect(-a/2,-a/2,a,a)}}))},g.prototype._drawDot=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation;this._basicDot({x:a,y:n,size:r,context:d,rotation:c})},g.prototype._drawSquare=function(t){var a=t.x,n=t.y,r=t.size,d=t.context,c=t.rotation;this._basicSquare({x:a,y:n,size:r,context:d,rotation:c})},g}(),O="radial";var T=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],S=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const y=function(){function g(t){this._canvas=document.createElement("canvas"),this._canvas.width=t.width,this._canvas.height=t.height,this._options=t}return Object.defineProperty(g.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),g.prototype.getCanvas=function(){return this._canvas},g.prototype.clear=function(){var t=this.context;t&&t.clearRect(0,0,this._canvas.width,this._canvas.height)},g.prototype.drawQR=function(t){return a=this,n=void 0,d=function(){var c,v,w,N,C,F,U,ae,de,he=this;return function(le,ue){var oe,ie,j,be,se={label:0,sent:function(){if(1&j[0])throw j[1];return j[1]},trys:[],ops:[]};return be={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Ie(Oe){return function($e){return function(ne){if(oe)throw new TypeError("Generator is already executing.");for(;se;)try{if(oe=1,ie&&(j=2&ne[0]?ie.return:ne[0]?ie.throw||((j=ie.return)&&j.call(ie),0):ie.next)&&!(j=j.call(ie,ne[1])).done)return j;switch(ie=0,j&&(ne=[2&ne[0],j.value]),ne[0]){case 0:case 1:j=ne;break;case 4:return se.label++,{value:ne[1],done:!1};case 5:se.label++,ie=ne[1],ne=[0];continue;case 7:ne=se.ops.pop(),se.trys.pop();continue;default:if(!((j=(j=se.trys).length>0&&j[j.length-1])||ne[0]!==6&&ne[0]!==2)){se=0;continue}if(ne[0]===3&&(!j||ne[1]>j[0]&&ne[1]<j[3])){se.label=ne[1];break}if(ne[0]===6&&se.label<j[1]){se.label=j[1],j=ne;break}if(j&&se.label<j[2]){se.label=j[2],se.ops.push(ne);break}j[2]&&se.ops.pop(),se.trys.pop();continue}ne=ue.call(le,se)}catch(We){ne=[6,We],ie=0}finally{oe=j=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([Oe,$e])}}}(this,function(le){switch(le.label){case 0:return c=t.getModuleCount(),v=Math.min(this._options.width,this._options.height)-2*this._options.margin,w=Math.floor(v/c),N={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(le.sent(),!this._image)return[2];C=this._options,F=C.imageOptions,U=C.qrOptions,ae=F.imageSize*$[U.errorCorrectionLevel],de=Math.floor(ae*c*c),N=G({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:de,maxHiddenAxisDots:c-14,dotSize:w}),le.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(ue,oe){var ie,j,be,se,Ie,Oe;return!(he._options.imageOptions.hideBackgroundDots&&ue>=(c-N.hideXDots)/2&&ue<(c+N.hideXDots)/2&&oe>=(c-N.hideYDots)/2&&oe<(c+N.hideYDots)/2||((ie=T[ue])===null||ie===void 0?void 0:ie[oe])||((j=T[ue-c+7])===null||j===void 0?void 0:j[oe])||((be=T[ue])===null||be===void 0?void 0:be[oe-c+7])||((se=S[ue])===null||se===void 0?void 0:se[oe])||((Ie=S[ue-c+7])===null||Ie===void 0?void 0:Ie[oe])||((Oe=S[ue])===null||Oe===void 0?void 0:Oe[oe-c+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:N.width,height:N.height,count:c,dotSize:w}),[2]}})},new((r=void 0)||(r=Promise))(function(c,v){function w(F){try{C(d.next(F))}catch(U){v(U)}}function N(F){try{C(d.throw(F))}catch(U){v(U)}}function C(F){var U;F.done?c(F.value):(U=F.value,U instanceof r?U:new r(function(ae){ae(U)})).then(w,N)}C((d=d.apply(a,n||[])).next())});var a,n,r,d},g.prototype.drawBackground=function(){var t=this.context,a=this._options;if(t){if(a.backgroundOptions.gradient){var n=a.backgroundOptions.gradient,r=this._createGradient({context:t,options:n,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});n.colorStops.forEach(function(d){var c=d.offset,v=d.color;r.addColorStop(c,v)}),t.fillStyle=r}else a.backgroundOptions.color&&(t.fillStyle=a.backgroundOptions.color);t.fillRect(0,0,this._canvas.width,this._canvas.height)}},g.prototype.drawDots=function(t){var a=this;if(!this._qr)throw"QR code is not defined";var n=this.context;if(!n)throw"QR code is not defined";var r=this._options,d=this._qr.getModuleCount();if(d>r.width||d>r.height)throw"The canvas is too small.";var c=Math.min(r.width,r.height)-2*r.margin,v=Math.floor(c/d),w=Math.floor((r.width-d*v)/2),N=Math.floor((r.height-d*v)/2),C=new J({context:n,type:r.dotsOptions.type});n.beginPath();for(var F=function(le){for(var ue=function(ie){return t&&!t(le,ie)?"continue":U._qr.isDark(le,ie)?void C.draw(w+le*v,N+ie*v,v,function(j,be){return!(le+j<0||ie+be<0||le+j>=d||ie+be>=d)&&!(t&&!t(le+j,ie+be))&&!!a._qr&&a._qr.isDark(le+j,ie+be)}):"continue"},oe=0;oe<d;oe++)ue(oe)},U=this,ae=0;ae<d;ae++)F(ae);if(r.dotsOptions.gradient){var de=r.dotsOptions.gradient,he=this._createGradient({context:n,options:de,additionalRotation:0,x:w,y:N,size:d*v});de.colorStops.forEach(function(le){var ue=le.offset,oe=le.color;he.addColorStop(ue,oe)}),n.fillStyle=n.strokeStyle=he}else r.dotsOptions.color&&(n.fillStyle=n.strokeStyle=r.dotsOptions.color);n.fill("evenodd")},g.prototype.drawCorners=function(t){var a=this;if(!this._qr)throw"QR code is not defined";var n=this.context;if(!n)throw"QR code is not defined";var r=this._options,d=this._qr.getModuleCount(),c=Math.min(r.width,r.height)-2*r.margin,v=Math.floor(c/d),w=7*v,N=3*v,C=Math.floor((r.width-d*v)/2),F=Math.floor((r.height-d*v)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(U){var ae,de,he,le,ue,oe,ie,j,be,se,Ie=U[0],Oe=U[1],$e=U[2];if(!t||t(Ie,Oe)){var ne=C+Ie*v*(d-7),We=F+Oe*v*(d-7);if(!((ae=r.cornersSquareOptions)===null||ae===void 0)&&ae.type){var st=new Me({context:n,type:(de=r.cornersSquareOptions)===null||de===void 0?void 0:de.type});n.beginPath(),st.draw(ne,We,w,$e)}else{var Xe=new J({context:n,type:r.dotsOptions.type});n.beginPath();for(var et=function(Se){for(var Ke=function(je){if(!(!((he=T[Se])===null||he===void 0)&&he[je]))return"continue";Xe.draw(ne+Se*v,We+je*v,v,function(ct,ut){var He;return!!(!((He=T[Se+ct])===null||He===void 0)&&He[je+ut])})},ze=0;ze<T[Se].length;ze++)Ke(ze)},Qe=0;Qe<T.length;Qe++)et(Qe)}if(!((le=r.cornersSquareOptions)===null||le===void 0)&&le.gradient){var Ye=r.cornersSquareOptions.gradient,St=a._createGradient({context:n,options:Ye,additionalRotation:$e,x:ne,y:We,size:w});Ye.colorStops.forEach(function(Se){var Ke=Se.offset,ze=Se.color;St.addColorStop(Ke,ze)}),n.fillStyle=n.strokeStyle=St}else!((ue=r.cornersSquareOptions)===null||ue===void 0)&&ue.color&&(n.fillStyle=n.strokeStyle=r.cornersSquareOptions.color);if(n.fill("evenodd"),(oe=r.cornersDotOptions)===null||oe===void 0?void 0:oe.type){var nt=new P({context:n,type:(ie=r.cornersDotOptions)===null||ie===void 0?void 0:ie.type});n.beginPath(),nt.draw(ne+2*v,We+2*v,N,$e)}else{Xe=new J({context:n,type:r.dotsOptions.type}),n.beginPath();var xt=function(Se){for(var Ke=function(je){if(!(!((j=S[Se])===null||j===void 0)&&j[je]))return"continue";Xe.draw(ne+Se*v,We+je*v,v,function(ct,ut){var He;return!!(!((He=S[Se+ct])===null||He===void 0)&&He[je+ut])})},ze=0;ze<S[Se].length;ze++)Ke(ze)};for(Qe=0;Qe<S.length;Qe++)xt(Qe)}if(!((be=r.cornersDotOptions)===null||be===void 0)&&be.gradient){Ye=r.cornersDotOptions.gradient;var Lt=a._createGradient({context:n,options:Ye,additionalRotation:$e,x:ne+2*v,y:We+2*v,size:N});Ye.colorStops.forEach(function(Se){var Ke=Se.offset,ze=Se.color;Lt.addColorStop(Ke,ze)}),n.fillStyle=n.strokeStyle=Lt}else!((se=r.cornersDotOptions)===null||se===void 0)&&se.color&&(n.fillStyle=n.strokeStyle=r.cornersDotOptions.color);n.fill("evenodd")}})},g.prototype.loadImage=function(){var t=this;return new Promise(function(a,n){var r=t._options,d=new Image;if(!r.image)return n("Image is not defined");typeof r.imageOptions.crossOrigin=="string"&&(d.crossOrigin=r.imageOptions.crossOrigin),t._image=d,d.onload=function(){a()},d.src=r.image})},g.prototype.drawImage=function(t){var a=t.width,n=t.height,r=t.count,d=t.dotSize,c=this.context;if(!c)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var v=this._options,w=Math.floor((v.width-r*d)/2),N=Math.floor((v.height-r*d)/2),C=w+v.imageOptions.margin+(r*d-a)/2,F=N+v.imageOptions.margin+(r*d-n)/2,U=a-2*v.imageOptions.margin,ae=n-2*v.imageOptions.margin;c.drawImage(this._image,C,F,U<0?0:U,ae<0?0:ae)},g.prototype._createGradient=function(t){var a,n=t.context,r=t.options,d=t.additionalRotation,c=t.x,v=t.y,w=t.size;if(r.type===O)a=n.createRadialGradient(c+w/2,v+w/2,0,c+w/2,v+w/2,w/2);else{var N=((r.rotation||0)+d)%(2*Math.PI),C=(N+2*Math.PI)%(2*Math.PI),F=c+w/2,U=v+w/2,ae=c+w/2,de=v+w/2;C>=0&&C<=.25*Math.PI||C>1.75*Math.PI&&C<=2*Math.PI?(F-=w/2,U-=w/2*Math.tan(N),ae+=w/2,de+=w/2*Math.tan(N)):C>.25*Math.PI&&C<=.75*Math.PI?(U-=w/2,F-=w/2/Math.tan(N),de+=w/2,ae+=w/2/Math.tan(N)):C>.75*Math.PI&&C<=1.25*Math.PI?(F+=w/2,U+=w/2*Math.tan(N),ae-=w/2,de-=w/2*Math.tan(N)):C>1.25*Math.PI&&C<=1.75*Math.PI&&(U+=w/2,F+=w/2/Math.tan(N),de-=w/2,ae-=w/2/Math.tan(N)),a=n.createLinearGradient(Math.round(F),Math.round(U),Math.round(ae),Math.round(de))}return a},g}();var k=function(){return(k=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};const X=function(){function g(t){var a=t.svg,n=t.type;this._svg=a,this._type=n}return g.prototype.draw=function(t,a,n,r){var d;switch(this._type){case Q:d=this._drawDot;break;case _:d=this._drawClassy;break;case R:d=this._drawClassyRounded;break;case ee:d=this._drawRounded;break;case M:d=this._drawExtraRounded;break;case B:default:d=this._drawSquare}d.call(this,{x:t,y:a,size:n,getNeighbor:r})},g.prototype._rotateFigure=function(t){var a,n=t.x,r=t.y,d=t.size,c=t.rotation,v=c===void 0?0:c,w=n+d/2,N=r+d/2;(0,t.draw)(),(a=this._element)===null||a===void 0||a.setAttribute("transform","rotate("+180*v/Math.PI+","+w+","+N+")")},g.prototype._basicDot=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(k(k({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),a._element.setAttribute("cx",String(r+n/2)),a._element.setAttribute("cy",String(d+n/2)),a._element.setAttribute("r",String(n/2))}}))},g.prototype._basicSquare=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(k(k({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),a._element.setAttribute("x",String(r)),a._element.setAttribute("y",String(d)),a._element.setAttribute("width",String(n)),a._element.setAttribute("height",String(n))}}))},g.prototype._basicSideRounded=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(k(k({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("d","M "+r+" "+d+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},g.prototype._basicCornerRounded=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(k(k({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("d","M "+r+" "+d+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},g.prototype._basicCornerExtraRounded=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(k(k({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("d","M "+r+" "+d+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},g.prototype._basicCornersRounded=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(k(k({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("d","M "+r+" "+d+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},g.prototype._drawDot=function(t){var a=t.x,n=t.y,r=t.size;this._basicDot({x:a,y:n,size:r,rotation:0})},g.prototype._drawSquare=function(t){var a=t.x,n=t.y,r=t.size;this._basicSquare({x:a,y:n,size:r,rotation:0})},g.prototype._drawRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.getNeighbor,c=d?+d(-1,0):0,v=d?+d(1,0):0,w=d?+d(0,-1):0,N=d?+d(0,1):0,C=c+v+w+N;if(C!==0)if(C>2||c&&v||w&&N)this._basicSquare({x:a,y:n,size:r,rotation:0});else{if(C===2){var F=0;return c&&w?F=Math.PI/2:w&&v?F=Math.PI:v&&N&&(F=-Math.PI/2),void this._basicCornerRounded({x:a,y:n,size:r,rotation:F})}if(C===1)return F=0,w?F=Math.PI/2:v?F=Math.PI:N&&(F=-Math.PI/2),void this._basicSideRounded({x:a,y:n,size:r,rotation:F})}else this._basicDot({x:a,y:n,size:r,rotation:0})},g.prototype._drawExtraRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.getNeighbor,c=d?+d(-1,0):0,v=d?+d(1,0):0,w=d?+d(0,-1):0,N=d?+d(0,1):0,C=c+v+w+N;if(C!==0)if(C>2||c&&v||w&&N)this._basicSquare({x:a,y:n,size:r,rotation:0});else{if(C===2){var F=0;return c&&w?F=Math.PI/2:w&&v?F=Math.PI:v&&N&&(F=-Math.PI/2),void this._basicCornerExtraRounded({x:a,y:n,size:r,rotation:F})}if(C===1)return F=0,w?F=Math.PI/2:v?F=Math.PI:N&&(F=-Math.PI/2),void this._basicSideRounded({x:a,y:n,size:r,rotation:F})}else this._basicDot({x:a,y:n,size:r,rotation:0})},g.prototype._drawClassy=function(t){var a=t.x,n=t.y,r=t.size,d=t.getNeighbor,c=d?+d(-1,0):0,v=d?+d(1,0):0,w=d?+d(0,-1):0,N=d?+d(0,1):0;c+v+w+N!==0?c||w?v||N?this._basicSquare({x:a,y:n,size:r,rotation:0}):this._basicCornerRounded({x:a,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:a,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:a,y:n,size:r,rotation:Math.PI/2})},g.prototype._drawClassyRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.getNeighbor,c=d?+d(-1,0):0,v=d?+d(1,0):0,w=d?+d(0,-1):0,N=d?+d(0,1):0;c+v+w+N!==0?c||w?v||N?this._basicSquare({x:a,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:a,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:a,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:a,y:n,size:r,rotation:Math.PI/2})},g}();var W=function(){return(W=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};const te=function(){function g(t){var a=t.svg,n=t.type;this._svg=a,this._type=n}return g.prototype.draw=function(t,a,n,r){var d;switch(this._type){case re:d=this._drawSquare;break;case Ce:d=this._drawExtraRounded;break;case"dot":default:d=this._drawDot}d.call(this,{x:t,y:a,size:n,rotation:r})},g.prototype._rotateFigure=function(t){var a,n=t.x,r=t.y,d=t.size,c=t.rotation,v=c===void 0?0:c,w=n+d/2,N=r+d/2;(0,t.draw)(),(a=this._element)===null||a===void 0||a.setAttribute("transform","rotate("+180*v/Math.PI+","+w+","+N+")")},g.prototype._basicDot=function(t){var a=this,n=t.size,r=t.x,d=t.y,c=n/7;this._rotateFigure(W(W({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("clip-rule","evenodd"),a._element.setAttribute("d","M "+(r+n/2)+" "+d+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+c+"a "+(n/2-c)+" "+(n/2-c)+" 0 1 1 -0.1 0Z")}}))},g.prototype._basicSquare=function(t){var a=this,n=t.size,r=t.x,d=t.y,c=n/7;this._rotateFigure(W(W({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("clip-rule","evenodd"),a._element.setAttribute("d","M "+r+" "+d+"v "+n+"h "+n+"v "+-n+"zM "+(r+c)+" "+(d+c)+"h "+(n-2*c)+"v "+(n-2*c)+"h "+(2*c-n)+"z")}}))},g.prototype._basicExtraRounded=function(t){var a=this,n=t.size,r=t.x,d=t.y,c=n/7;this._rotateFigure(W(W({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","path"),a._element.setAttribute("clip-rule","evenodd"),a._element.setAttribute("d","M "+r+" "+(d+2.5*c)+"v "+2*c+"a "+2.5*c+" "+2.5*c+", 0, 0, 0, "+2.5*c+" "+2.5*c+"h "+2*c+"a "+2.5*c+" "+2.5*c+", 0, 0, 0, "+2.5*c+" "+2.5*-c+"v "+-2*c+"a "+2.5*c+" "+2.5*c+", 0, 0, 0, "+2.5*-c+" "+2.5*-c+"h "+-2*c+"a "+2.5*c+" "+2.5*c+", 0, 0, 0, "+2.5*-c+" "+2.5*c+"M "+(r+2.5*c)+" "+(d+c)+"h "+2*c+"a "+1.5*c+" "+1.5*c+", 0, 0, 1, "+1.5*c+" "+1.5*c+"v "+2*c+"a "+1.5*c+" "+1.5*c+", 0, 0, 1, "+1.5*-c+" "+1.5*c+"h "+-2*c+"a "+1.5*c+" "+1.5*c+", 0, 0, 1, "+1.5*-c+" "+1.5*-c+"v "+-2*c+"a "+1.5*c+" "+1.5*c+", 0, 0, 1, "+1.5*c+" "+1.5*-c)}}))},g.prototype._drawDot=function(t){var a=t.x,n=t.y,r=t.size,d=t.rotation;this._basicDot({x:a,y:n,size:r,rotation:d})},g.prototype._drawSquare=function(t){var a=t.x,n=t.y,r=t.size,d=t.rotation;this._basicSquare({x:a,y:n,size:r,rotation:d})},g.prototype._drawExtraRounded=function(t){var a=t.x,n=t.y,r=t.size,d=t.rotation;this._basicExtraRounded({x:a,y:n,size:r,rotation:d})},g}();var xe=function(){return(xe=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};const ye=function(){function g(t){var a=t.svg,n=t.type;this._svg=a,this._type=n}return g.prototype.draw=function(t,a,n,r){var d;switch(this._type){case Te:d=this._drawSquare;break;case"dot":default:d=this._drawDot}d.call(this,{x:t,y:a,size:n,rotation:r})},g.prototype._rotateFigure=function(t){var a,n=t.x,r=t.y,d=t.size,c=t.rotation,v=c===void 0?0:c,w=n+d/2,N=r+d/2;(0,t.draw)(),(a=this._element)===null||a===void 0||a.setAttribute("transform","rotate("+180*v/Math.PI+","+w+","+N+")")},g.prototype._basicDot=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(xe(xe({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),a._element.setAttribute("cx",String(r+n/2)),a._element.setAttribute("cy",String(d+n/2)),a._element.setAttribute("r",String(n/2))}}))},g.prototype._basicSquare=function(t){var a=this,n=t.size,r=t.x,d=t.y;this._rotateFigure(xe(xe({},t),{draw:function(){a._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),a._element.setAttribute("x",String(r)),a._element.setAttribute("y",String(d)),a._element.setAttribute("width",String(n)),a._element.setAttribute("height",String(n))}}))},g.prototype._drawDot=function(t){var a=t.x,n=t.y,r=t.size,d=t.rotation;this._basicDot({x:a,y:n,size:r,rotation:d})},g.prototype._drawSquare=function(t){var a=t.x,n=t.y,r=t.size,d=t.rotation;this._basicSquare({x:a,y:n,size:r,rotation:d})},g}();var ve=[[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 Ne=function(){function g(t){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=t}return Object.defineProperty(g.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),g.prototype.getElement=function(){return this._element},g.prototype.clear=function(){var t,a=this._element;this._element=a.cloneNode(!1),(t=a==null?void 0:a.parentNode)===null||t===void 0||t.replaceChild(this._element,a),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},g.prototype.drawQR=function(t){return a=this,n=void 0,d=function(){var c,v,w,N,C,F,U,ae,de,he=this;return function(le,ue){var oe,ie,j,be,se={label:0,sent:function(){if(1&j[0])throw j[1];return j[1]},trys:[],ops:[]};return be={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Ie(Oe){return function($e){return function(ne){if(oe)throw new TypeError("Generator is already executing.");for(;se;)try{if(oe=1,ie&&(j=2&ne[0]?ie.return:ne[0]?ie.throw||((j=ie.return)&&j.call(ie),0):ie.next)&&!(j=j.call(ie,ne[1])).done)return j;switch(ie=0,j&&(ne=[2&ne[0],j.value]),ne[0]){case 0:case 1:j=ne;break;case 4:return se.label++,{value:ne[1],done:!1};case 5:se.label++,ie=ne[1],ne=[0];continue;case 7:ne=se.ops.pop(),se.trys.pop();continue;default:if(!((j=(j=se.trys).length>0&&j[j.length-1])||ne[0]!==6&&ne[0]!==2)){se=0;continue}if(ne[0]===3&&(!j||ne[1]>j[0]&&ne[1]<j[3])){se.label=ne[1];break}if(ne[0]===6&&se.label<j[1]){se.label=j[1],j=ne;break}if(j&&se.label<j[2]){se.label=j[2],se.ops.push(ne);break}j[2]&&se.ops.pop(),se.trys.pop();continue}ne=ue.call(le,se)}catch(We){ne=[6,We],ie=0}finally{oe=j=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([Oe,$e])}}}(this,function(le){switch(le.label){case 0:return c=t.getModuleCount(),v=Math.min(this._options.width,this._options.height)-2*this._options.margin,w=Math.floor(v/c),N={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(le.sent(),!this._image)return[2];C=this._options,F=C.imageOptions,U=C.qrOptions,ae=F.imageSize*$[U.errorCorrectionLevel],de=Math.floor(ae*c*c),N=G({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:de,maxHiddenAxisDots:c-14,dotSize:w}),le.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(ue,oe){var ie,j,be,se,Ie,Oe;return!(he._options.imageOptions.hideBackgroundDots&&ue>=(c-N.hideXDots)/2&&ue<(c+N.hideXDots)/2&&oe>=(c-N.hideYDots)/2&&oe<(c+N.hideYDots)/2||((ie=ve[ue])===null||ie===void 0?void 0:ie[oe])||((j=ve[ue-c+7])===null||j===void 0?void 0:j[oe])||((be=ve[ue])===null||be===void 0?void 0:be[oe-c+7])||((se=we[ue])===null||se===void 0?void 0:se[oe])||((Ie=we[ue-c+7])===null||Ie===void 0?void 0:Ie[oe])||((Oe=we[ue])===null||Oe===void 0?void 0:Oe[oe-c+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:N.width,height:N.height,count:c,dotSize:w}),[2]}})},new((r=void 0)||(r=Promise))(function(c,v){function w(F){try{C(d.next(F))}catch(U){v(U)}}function N(F){try{C(d.throw(F))}catch(U){v(U)}}function C(F){var U;F.done?c(F.value):(U=F.value,U instanceof r?U:new r(function(ae){ae(U)})).then(w,N)}C((d=d.apply(a,n||[])).next())});var a,n,r,d},g.prototype.drawBackground=function(){var t,a,n=this._element,r=this._options;if(n){var d=(t=r.backgroundOptions)===null||t===void 0?void 0:t.gradient,c=(a=r.backgroundOptions)===null||a===void 0?void 0:a.color;(d||c)&&this._createColor({options:d,color:c,additionalRotation:0,x:0,y:0,height:r.height,width:r.width,name:"background-color"})}},g.prototype.drawDots=function(t){var a,n,r=this;if(!this._qr)throw"QR code is not defined";var d=this._options,c=this._qr.getModuleCount();if(c>d.width||c>d.height)throw"The canvas is too small.";var v=Math.min(d.width,d.height)-2*d.margin,w=Math.floor(v/c),N=Math.floor((d.width-c*w)/2),C=Math.floor((d.height-c*w)/2),F=new X({svg:this._element,type:d.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:(a=d.dotsOptions)===null||a===void 0?void 0:a.gradient,color:d.dotsOptions.color,additionalRotation:0,x:N,y:C,height:c*w,width:c*w,name:"dot-color"});for(var U=function(he){for(var le=function(oe){return t&&!t(he,oe)?"continue":!((n=ae._qr)===null||n===void 0)&&n.isDark(he,oe)?(F.draw(N+he*w,C+oe*w,w,function(ie,j){return!(he+ie<0||oe+j<0||he+ie>=c||oe+j>=c)&&!(t&&!t(he+ie,oe+j))&&!!r._qr&&r._qr.isDark(he+ie,oe+j)}),void(F._element&&ae._dotsClipPath&&ae._dotsClipPath.appendChild(F._element))):"continue"},ue=0;ue<c;ue++)le(ue)},ae=this,de=0;de<c;de++)U(de)},g.prototype.drawCorners=function(){var t=this;if(!this._qr)throw"QR code is not defined";var a=this._element,n=this._options;if(!a)throw"Element code is not defined";var r=this._qr.getModuleCount(),d=Math.min(n.width,n.height)-2*n.margin,c=Math.floor(d/r),v=7*c,w=3*c,N=Math.floor((n.width-r*c)/2),C=Math.floor((n.height-r*c)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(F){var U,ae,de,he,le,ue,oe,ie,j,be,se,Ie,Oe=F[0],$e=F[1],ne=F[2],We=N+Oe*c*(r-7),st=C+$e*c*(r-7),Xe=t._dotsClipPath,et=t._dotsClipPath;if((((U=n.cornersSquareOptions)===null||U===void 0?void 0:U.gradient)||((ae=n.cornersSquareOptions)===null||ae===void 0?void 0:ae.color))&&((Xe=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Oe+"-"+$e),t._defs.appendChild(Xe),t._cornersSquareClipPath=t._cornersDotClipPath=et=Xe,t._createColor({options:(de=n.cornersSquareOptions)===null||de===void 0?void 0:de.gradient,color:(he=n.cornersSquareOptions)===null||he===void 0?void 0:he.color,additionalRotation:ne,x:We,y:st,height:v,width:v,name:"corners-square-color-"+Oe+"-"+$e})),(le=n.cornersSquareOptions)===null||le===void 0?void 0:le.type){var Qe=new te({svg:t._element,type:n.cornersSquareOptions.type});Qe.draw(We,st,v,ne),Qe._element&&Xe&&Xe.appendChild(Qe._element)}else for(var Ye=new X({svg:t._element,type:n.dotsOptions.type}),St=function(Se){for(var Ke=function(je){if(!(!((ue=ve[Se])===null||ue===void 0)&&ue[je]))return"continue";Ye.draw(We+Se*c,st+je*c,c,function(ct,ut){var He;return!!(!((He=ve[Se+ct])===null||He===void 0)&&He[je+ut])}),Ye._element&&Xe&&Xe.appendChild(Ye._element)},ze=0;ze<ve[Se].length;ze++)Ke(ze)},nt=0;nt<ve.length;nt++)St(nt);if((((oe=n.cornersDotOptions)===null||oe===void 0?void 0:oe.gradient)||((ie=n.cornersDotOptions)===null||ie===void 0?void 0:ie.color))&&((et=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Oe+"-"+$e),t._defs.appendChild(et),t._cornersDotClipPath=et,t._createColor({options:(j=n.cornersDotOptions)===null||j===void 0?void 0:j.gradient,color:(be=n.cornersDotOptions)===null||be===void 0?void 0:be.color,additionalRotation:ne,x:We+2*c,y:st+2*c,height:w,width:w,name:"corners-dot-color-"+Oe+"-"+$e})),(se=n.cornersDotOptions)===null||se===void 0?void 0:se.type){var xt=new ye({svg:t._element,type:n.cornersDotOptions.type});xt.draw(We+2*c,st+2*c,w,ne),xt._element&&et&&et.appendChild(xt._element)}else{Ye=new X({svg:t._element,type:n.dotsOptions.type});var Lt=function(Se){for(var Ke=function(je){if(!(!((Ie=we[Se])===null||Ie===void 0)&&Ie[je]))return"continue";Ye.draw(We+Se*c,st+je*c,c,function(ct,ut){var He;return!!(!((He=we[Se+ct])===null||He===void 0)&&He[je+ut])}),Ye._element&&et&&et.appendChild(Ye._element)},ze=0;ze<we[Se].length;ze++)Ke(ze)};for(nt=0;nt<we.length;nt++)Lt(nt)}})},g.prototype.loadImage=function(){var t=this;return new Promise(function(a,n){var r=t._options,d=new Image;if(!r.image)return n("Image is not defined");typeof r.imageOptions.crossOrigin=="string"&&(d.crossOrigin=r.imageOptions.crossOrigin),t._image=d,d.onload=function(){a()},d.src=r.image})},g.prototype.drawImage=function(t){var a=t.width,n=t.height,r=t.count,d=t.dotSize,c=this._options,v=Math.floor((c.width-r*d)/2),w=Math.floor((c.height-r*d)/2),N=v+c.imageOptions.margin+(r*d-a)/2,C=w+c.imageOptions.margin+(r*d-n)/2,F=a-2*c.imageOptions.margin,U=n-2*c.imageOptions.margin,ae=document.createElementNS("http://www.w3.org/2000/svg","image");ae.setAttribute("href",c.image||""),ae.setAttribute("x",String(N)),ae.setAttribute("y",String(C)),ae.setAttribute("width",F+"px"),ae.setAttribute("height",U+"px"),this._element.appendChild(ae)},g.prototype._createColor=function(t){var a=t.options,n=t.color,r=t.additionalRotation,d=t.x,c=t.y,v=t.height,w=t.width,N=t.name,C=w>v?w:v,F=document.createElementNS("http://www.w3.org/2000/svg","rect");if(F.setAttribute("x",String(d)),F.setAttribute("y",String(c)),F.setAttribute("height",String(v)),F.setAttribute("width",String(w)),F.setAttribute("clip-path","url('#clip-path-"+N+"')"),a){var U;if(a.type===O)(U=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",N),U.setAttribute("gradientUnits","userSpaceOnUse"),U.setAttribute("fx",String(d+w/2)),U.setAttribute("fy",String(c+v/2)),U.setAttribute("cx",String(d+w/2)),U.setAttribute("cy",String(c+v/2)),U.setAttribute("r",String(C/2));else{var ae=((a.rotation||0)+r)%(2*Math.PI),de=(ae+2*Math.PI)%(2*Math.PI),he=d+w/2,le=c+v/2,ue=d+w/2,oe=c+v/2;de>=0&&de<=.25*Math.PI||de>1.75*Math.PI&&de<=2*Math.PI?(he-=w/2,le-=v/2*Math.tan(ae),ue+=w/2,oe+=v/2*Math.tan(ae)):de>.25*Math.PI&&de<=.75*Math.PI?(le-=v/2,he-=w/2/Math.tan(ae),oe+=v/2,ue+=w/2/Math.tan(ae)):de>.75*Math.PI&&de<=1.25*Math.PI?(he+=w/2,le+=v/2*Math.tan(ae),ue-=w/2,oe-=v/2*Math.tan(ae)):de>1.25*Math.PI&&de<=1.75*Math.PI&&(le+=v/2,he+=w/2/Math.tan(ae),oe-=v/2,ue-=w/2/Math.tan(ae)),(U=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",N),U.setAttribute("gradientUnits","userSpaceOnUse"),U.setAttribute("x1",String(Math.round(he))),U.setAttribute("y1",String(Math.round(le))),U.setAttribute("x2",String(Math.round(ue))),U.setAttribute("y2",String(Math.round(oe)))}a.colorStops.forEach(function(ie){var j=ie.offset,be=ie.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*j+"%"),se.setAttribute("stop-color",be),U.appendChild(se)}),F.setAttribute("fill","url('#"+N+"')"),this._defs.appendChild(U)}else n&&F.setAttribute("fill",n);this._element.appendChild(F)},g}(),Le="canvas";for(var Ve={},Ue=0;Ue<=40;Ue++)Ve[Ue]=Ue;const me={type:Le,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Ve[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 E=function(){return(E=Object.assign||function(g){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(g[r]=t[r]);return g}).apply(this,arguments)};function D(g){var t=E({},g);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map(function(a){return E(E({},a),{offset:Number(a.offset)})}),t}function u(g){var t=E({},g);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=E(E({},t.imageOptions),{hideBackgroundDots:Boolean(t.imageOptions.hideBackgroundDots),imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=E({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=D(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=E({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=D(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=E({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=D(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=E({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=D(t.backgroundOptions.gradient))),t}var l=x(192),p=x.n(l),A=function(g,t,a,n){return new(a||(a=Promise))(function(r,d){function c(N){try{w(n.next(N))}catch(C){d(C)}}function v(N){try{w(n.throw(N))}catch(C){d(C)}}function w(N){var C;N.done?r(N.value):(C=N.value,C instanceof a?C:new a(function(F){F(C)})).then(c,v)}w((n=n.apply(g,t||[])).next())})},H=function(g,t){var a,n,r,d,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(w){return function(N){return function(C){if(a)throw new TypeError("Generator is already executing.");for(;c;)try{if(a=1,n&&(r=2&C[0]?n.return:C[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,C[1])).done)return r;switch(n=0,r&&(C=[2&C[0],r.value]),C[0]){case 0:case 1:r=C;break;case 4:return c.label++,{value:C[1],done:!1};case 5:c.label++,n=C[1],C=[0];continue;case 7:C=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||C[0]!==6&&C[0]!==2)){c=0;continue}if(C[0]===3&&(!r||C[1]>r[0]&&C[1]<r[3])){c.label=C[1];break}if(C[0]===6&&c.label<r[1]){c.label=r[1],r=C;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(C);break}r[2]&&c.ops.pop(),c.trys.pop();continue}C=t.call(g,c)}catch(F){C=[6,F],n=0}finally{a=r=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([w,N])}}};const Z=function(){function g(t){this._options=t?u(V(me,t)):me,this.update()}return g._clearContainer=function(t){t&&(t.innerHTML="")},g.prototype._getQRStylingElement=function(t){return t===void 0&&(t="png"),A(this,void 0,void 0,function(){var a,n,r;return H(this,function(d){switch(d.label){case 0:if(!this._qr)throw"QR code is empty";return t.toLowerCase()!=="svg"?[3,2]:(n=void 0,a=void 0,this._svg&&this._svgDrawingPromise?(a=this._svg,n=this._svgDrawingPromise):(a=new Ne(this._options),n=a.drawQR(this._qr)),[4,n]);case 1:return d.sent(),[2,a];case 2:return n=void 0,r=void 0,this._canvas&&this._canvasDrawingPromise?(r=this._canvas,n=this._canvasDrawingPromise):(r=new y(this._options),n=r.drawQR(this._qr)),[4,n];case 3:return d.sent(),[2,r]}})})},g.prototype.update=function(t){g._clearContainer(this._container),this._options=t?u(V(this._options,t)):this._options,this._options.data&&(this._qr=p()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(a){switch(!0){case/^[0-9]*$/.test(a):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(a):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Le?(this._canvas=new y(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new Ne(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},g.prototype.append=function(t){if(t){if(typeof t.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Le?this._canvas&&t.appendChild(this._canvas.getCanvas()):this._svg&&t.appendChild(this._svg.getElement()),this._container=t}},g.prototype.getRawData=function(t){return t===void 0&&(t="png"),A(this,void 0,void 0,function(){var a,n,r;return H(this,function(d){switch(d.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(t)];case 1:return a=d.sent(),t.toLowerCase()==="svg"?(n=new XMLSerializer,r=n.serializeToString(a.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
4
|
-
`+
|
|
5
|
-
`+(
|
|
1
|
+
(function(He,ue){typeof exports=="object"&&typeof module!="undefined"?ue(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],ue):(He=typeof globalThis!="undefined"?globalThis:He||self,ue((He.agendize=He.agendize||{},He.agendize.tools={}),He.Vue,He.pinia))})(this,function(He,ue,Kt){"use strict";var W0=Object.defineProperty;var Y0=(He,ue,Kt)=>ue in He?W0(He,ue,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):He[ue]=Kt;var Ui=(He,ue,Kt)=>(Y0(He,typeof ue!="symbol"?ue+"":ue,Kt),Kt);function Ou(t){const e=ue.ref(t.state),r=n=>{e.value=n};return ue.onMounted(()=>{t.subscribe(r)}),ue.onUnmounted(()=>{t.unsubscribe(r)}),ue.readonly(e)}function Ru(t,e=!1){let r=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?mr(a)+"/"+mr(n)+"/"+r:r+"-"+mr(n)+"-"+mr(a)+"T"+mr(i)+":"+mr(o)+":"+mr(s)}function mr(t){return t<10?"0"+t:t}function Lu(t,e){e.urlPicture.value=void 0,e.pictureAsData.value="",e.filePicture.value=void 0,t&&Mu(t).then(r=>{!r||typeof r=="string"&&(e.pictureAsData.value=r)})}const Mu=t=>new Promise((e,r)=>{const n=new FileReader;n.readAsDataURL(t),n.onload=()=>e(n.result),n.onerror=a=>r(a)});function Pu(t,e){let r=new XMLHttpRequest;r.open("get",t),r.responseType="blob",r.onload=function(){let n=new FileReader;n.onload=function(){if(!e&&n.result)return;let a;typeof n.result=="string"?a=n.result:a=Buffer.from(String.fromCharCode(...new Uint8Array(n.result)),"base64").toString(),e(a)},n.readAsDataURL(r.response)},r.send()}function Fu(t){try{return parseInt(t)}catch{return 0}}function zu(t,e=2){let r=t+"";for(;r.length<e;)r="0"+r;return r}function Bu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vi={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(self,function(){return(()=>{var r={192:(i,o)=>{var s,l,u=function(){var f=function(L,q){var W=L,j=N[q],V=null,Z=0,se=null,ie=[],F={},ee=function($,ae){V=function(_){for(var b=new Array(_),O=0;O<_;O+=1){b[O]=new Array(_);for(var te=0;te<_;te+=1)b[O][te]=null}return b}(Z=4*W+17),ne(0,0),ne(Z-7,0),ne(0,Z-7),xe(),K(),Oe($,ae),W>=7&&_e($),se==null&&(se=Be(W,j,ie)),ye(se,ae)},ne=function($,ae){for(var _=-1;_<=7;_+=1)if(!($+_<=-1||Z<=$+_))for(var b=-1;b<=7;b+=1)ae+b<=-1||Z<=ae+b||(V[$+_][ae+b]=0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4)},K=function(){for(var $=8;$<Z-8;$+=1)V[$][6]==null&&(V[$][6]=$%2==0);for(var ae=8;ae<Z-8;ae+=1)V[6][ae]==null&&(V[6][ae]=ae%2==0)},xe=function(){for(var $=C.getPatternPosition(W),ae=0;ae<$.length;ae+=1)for(var _=0;_<$.length;_+=1){var b=$[ae],O=$[_];if(V[b][O]==null)for(var te=-2;te<=2;te+=1)for(var le=-2;le<=2;le+=1)V[b+te][O+le]=te==-2||te==2||le==-2||le==2||te==0&&le==0}},_e=function($){for(var ae=C.getBCHTypeNumber(W),_=0;_<18;_+=1){var b=!$&&(ae>>_&1)==1;V[Math.floor(_/3)][_%3+Z-8-3]=b}for(_=0;_<18;_+=1)b=!$&&(ae>>_&1)==1,V[_%3+Z-8-3][Math.floor(_/3)]=b},Oe=function($,ae){for(var _=j<<3|ae,b=C.getBCHTypeInfo(_),O=0;O<15;O+=1){var te=!$&&(b>>O&1)==1;O<6?V[O][8]=te:O<8?V[O+1][8]=te:V[Z-15+O][8]=te}for(O=0;O<15;O+=1)te=!$&&(b>>O&1)==1,O<8?V[8][Z-O-1]=te:O<9?V[8][15-O-1+1]=te:V[8][15-O-1]=te;V[Z-8][8]=!$},ye=function($,ae){for(var _=-1,b=Z-1,O=7,te=0,le=C.getMaskFunction(ae),de=Z-1;de>0;de-=2)for(de==6&&(de-=1);;){for(var M=0;M<2;M+=1)if(V[b][de-M]==null){var c=!1;te<$.length&&(c=($[te]>>>O&1)==1),le(b,de-M)&&(c=!c),V[b][de-M]=c,(O-=1)==-1&&(te+=1,O=7)}if((b+=_)<0||Z<=b){b-=_,_=-_;break}}},Be=function($,ae,_){for(var b=I.getRSBlocks($,ae),O=D(),te=0;te<_.length;te+=1){var le=_[te];O.put(le.getMode(),4),O.put(le.getLength(),C.getLengthInBits(le.getMode(),$)),le.write(O)}var de=0;for(te=0;te<b.length;te+=1)de+=b[te].dataCount;if(O.getLengthInBits()>8*de)throw"code length overflow. ("+O.getLengthInBits()+">"+8*de+")";for(O.getLengthInBits()+4<=8*de&&O.put(0,4);O.getLengthInBits()%8!=0;)O.putBit(!1);for(;!(O.getLengthInBits()>=8*de||(O.put(236,8),O.getLengthInBits()>=8*de));)O.put(17,8);return function(M,c){for(var v=0,d=0,m=0,h=new Array(c.length),p=new Array(c.length),k=0;k<c.length;k+=1){var R=c[k].dataCount,U=c[k].totalCount-R;d=Math.max(d,R),m=Math.max(m,U),h[k]=new Array(R);for(var H=0;H<h[k].length;H+=1)h[k][H]=255&M.getBuffer()[H+v];v+=R;var J=C.getErrorCorrectPolynomial(U),X=A(h[k],J.getLength()-1).mod(J);for(p[k]=new Array(J.getLength()-1),H=0;H<p[k].length;H+=1){var oe=H+X.getLength()-p[k].length;p[k][H]=oe>=0?X.getAt(oe):0}}var fe=0;for(H=0;H<c.length;H+=1)fe+=c[H].totalCount;var pe=new Array(fe),ve=0;for(H=0;H<d;H+=1)for(k=0;k<c.length;k+=1)H<h[k].length&&(pe[ve]=h[k][H],ve+=1);for(H=0;H<m;H+=1)for(k=0;k<c.length;k+=1)H<p[k].length&&(pe[ve]=p[k][H],ve+=1);return pe}(O,b)};F.addData=function($,ae){var _=null;switch(ae=ae||"Byte"){case"Numeric":_=P($);break;case"Alphanumeric":_=z($);break;case"Byte":_=Y($);break;case"Kanji":_=Q($);break;default:throw"mode:"+ae}ie.push(_),se=null},F.isDark=function($,ae){if($<0||Z<=$||ae<0||Z<=ae)throw $+","+ae;return V[$][ae]},F.getModuleCount=function(){return Z},F.make=function(){if(W<1){for(var $=1;$<40;$++){for(var ae=I.getRSBlocks($,j),_=D(),b=0;b<ie.length;b++){var O=ie[b];_.put(O.getMode(),4),_.put(O.getLength(),C.getLengthInBits(O.getMode(),$)),O.write(_)}var te=0;for(b=0;b<ae.length;b++)te+=ae[b].dataCount;if(_.getLengthInBits()<=8*te)break}W=$}ee(!1,function(){for(var le=0,de=0,M=0;M<8;M+=1){ee(!0,M);var c=C.getLostPoint(F);(M==0||le>c)&&(le=c,de=M)}return de}())},F.createTableTag=function($,ae){$=$||2;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+(ae=ae===void 0?4*$:ae)+"px;",_+='">',_+="<tbody>";for(var b=0;b<F.getModuleCount();b+=1){_+="<tr>";for(var O=0;O<F.getModuleCount();O+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+$+"px;",_+=" height: "+$+"px;",_+=" background-color: ",_+=F.isDark(b,O)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return(_+="</tbody>")+"</table>"},F.createSvgTag=function($,ae,_,b){var O={};typeof arguments[0]=="object"&&($=(O=arguments[0]).cellSize,ae=O.margin,_=O.alt,b=O.title),$=$||2,ae=ae===void 0?4*$: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,c=F.getModuleCount()*$+2*ae,v="";for(M="l"+$+",0 0,"+$+" -"+$+",0 0,-"+$+"z ",v+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',v+=O.scalable?"":' width="'+c+'px" height="'+c+'px"',v+=' viewBox="0 0 '+c+" "+c+'" ',v+=' preserveAspectRatio="xMinYMin meet"',v+=b.text||_.text?' role="img" aria-labelledby="'+Ie([b.id,_.id].join(" ").trim())+'"':"",v+=">",v+=b.text?'<title id="'+Ie(b.id)+'">'+Ie(b.text)+"</title>":"",v+=_.text?'<description id="'+Ie(_.id)+'">'+Ie(_.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*$+ae,te=0;te<F.getModuleCount();te+=1)F.isDark(le,te)&&(v+="M"+(te*$+ae)+","+de+M);return(v+='" stroke="transparent" fill="black"/>')+"</svg>"},F.createDataURL=function($,ae){$=$||2,ae=ae===void 0?4*$:ae;var _=F.getModuleCount()*$+2*ae,b=ae,O=_-ae;return re(_,_,function(te,le){if(b<=te&&te<O&&b<=le&&le<O){var de=Math.floor((te-b)/$),M=Math.floor((le-b)/$);return F.isDark(M,de)?0:1}return 1})},F.createImgTag=function($,ae,_){$=$||2,ae=ae===void 0?4*$:ae;var b=F.getModuleCount()*$+2*ae,O="";return O+="<img",O+=' src="',O+=F.createDataURL($,ae),O+='"',O+=' width="',O+=b,O+='"',O+=' height="',O+=b,O+='"',_&&(O+=' alt="',O+=Ie(_),O+='"'),O+"/>"};var Ie=function($){for(var ae="",_=0;_<$.length;_+=1){var b=$.charAt(_);switch(b){case"<":ae+="<";break;case">":ae+=">";break;case"&":ae+="&";break;case'"':ae+=""";break;default:ae+=b}}return ae};return F.createASCII=function($,ae){if(($=$||1)<2)return function(h){h=h===void 0?2:h;var p,k,R,U,H,J=1*F.getModuleCount()+2*h,X=h,oe=J-h,fe={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},pe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ve="";for(p=0;p<J;p+=2){for(R=Math.floor((p-X)/1),U=Math.floor((p+1-X)/1),k=0;k<J;k+=1)H="\u2588",X<=k&&k<oe&&X<=p&&p<oe&&F.isDark(R,Math.floor((k-X)/1))&&(H=" "),X<=k&&k<oe&&X<=p+1&&p+1<oe&&F.isDark(U,Math.floor((k-X)/1))?H+=" ":H+="\u2588",ve+=h<1&&p+1>=oe?pe[H]:fe[H];ve+=`
|
|
2
|
+
`}return J%2&&h>0?ve.substring(0,ve.length-J-1)+Array(J+1).join("\u2580"):ve.substring(0,ve.length-1)}(ae);$-=1,ae=ae===void 0?2*$:ae;var _,b,O,te,le=F.getModuleCount()*$+2*ae,de=ae,M=le-ae,c=Array($+1).join("\u2588\u2588"),v=Array($+1).join(" "),d="",m="";for(_=0;_<le;_+=1){for(O=Math.floor((_-de)/$),m="",b=0;b<le;b+=1)te=1,de<=b&&b<M&&de<=_&&_<M&&F.isDark(O,Math.floor((b-de)/$))&&(te=0),m+=te?c:v;for(O=0;O<$;O+=1)d+=m+`
|
|
3
|
+
`}return d.substring(0,d.length-1)},F.renderTo2dContext=function($,ae){ae=ae||2;for(var _=F.getModuleCount(),b=0;b<_;b++)for(var O=0;O<_;O++)$.fillStyle=F.isDark(b,O)?"black":"white",$.fillRect(b*ae,O*ae,ae,ae)},F};f.stringToBytes=(f.stringToBytesFuncs={default:function(L){for(var q=[],W=0;W<L.length;W+=1){var j=L.charCodeAt(W);q.push(255&j)}return q}}).default,f.createStringToBytes=function(L,q){var W=function(){for(var V=G(L),Z=function(){var K=V.read();if(K==-1)throw"eof";return K},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=W[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 w,y,x,S,T,N={L:1,M:0,Q:3,H:2},C=(w=[[],[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,x=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(x)>=0;)q^=x<<T(q)-T(x);return L<<12|q},S.getPatternPosition=function(L){return w[L-1]},S.getMaskFunction=function(L){switch(L){case 0:return function(q,W){return(q+W)%2==0};case 1:return function(q,W){return q%2==0};case 2:return function(q,W){return W%3==0};case 3:return function(q,W){return(q+W)%3==0};case 4:return function(q,W){return(Math.floor(q/2)+Math.floor(W/3))%2==0};case 5:return function(q,W){return q*W%2+q*W%3==0};case 6:return function(q,W){return(q*W%2+q*W%3)%2==0};case 7:return function(q,W){return(q*W%3+(q+W)%2)%2==0};default:throw"bad maskPattern:"+L}},S.getErrorCorrectPolynomial=function(L){for(var q=A([1],0),W=0;W<L;W+=1)q=q.multiply(A([1,E.gexp(W)],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(),W=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&&(W+=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||(W+=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)&&(W+=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)&&(W+=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 W+Math.abs(100*ne/q/q-50)/5*10},S),E=function(){for(var L=new Array(256),q=new Array(256),W=0;W<8;W+=1)L[W]=1<<W;for(W=8;W<256;W+=1)L[W]=L[W-4]^L[W-5]^L[W-6]^L[W-8];for(W=0;W<255;W+=1)q[L[W]]=W;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 W=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 W[V]},getLength:function(){return W.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},W={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],K=Z[3*F+2],xe=0;xe<ee;xe+=1)ie.push(q(ne,K));return ie}};return W}(),D=function(){var L=[],q=0,W={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)W.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 W},P=function(L){var q=L,W={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 W},z=function(L){var q=L,W={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 W},Y=function(L){var q=f.stringToBytes(L);return{getMode:function(){return 4},getLength:function(W){return q.length},write:function(W){for(var j=0;j<q.length;j+=1)W.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 W=q(L);return{getMode:function(){return 8},getLength:function(j){return~~(W.length/2)},write:function(j){for(var V=W,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(W){L.push(255&W)},writeShort:function(W){q.writeByte(W),q.writeByte(W>>>8)},writeBytes:function(W,j,V){j=j||0,V=V||W.length;for(var Z=0;Z<V;Z+=1)q.writeByte(W[Z+j])},writeString:function(W){for(var j=0;j<W.length;j+=1)q.writeByte(W.charCodeAt(j))},toByteArray:function(){return L},toString:function(){var W="";W+="[";for(var j=0;j<L.length;j+=1)j>0&&(W+=","),W+=L[j];return W+"]"}};return q},G=function(L){var q=L,W=0,j=0,V=0,Z={read:function(){for(;V<8;){if(W>=q.length){if(V==0)return-1;throw"unexpected end of file./"+V}var ie=q.charAt(W);if(W+=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,W){for(var j=function(ne,K){var xe=ne,_e=K,Oe=new Array(ne*K),ye={setPixel:function($,ae,_){Oe[ae*xe+$]=_},write:function($){$.writeString("GIF87a"),$.writeShort(xe),$.writeShort(_e),$.writeByte(128),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(255),$.writeByte(255),$.writeByte(255),$.writeString(","),$.writeShort(0),$.writeShort(0),$.writeShort(xe),$.writeShort(_e),$.writeByte(0);var ae=Be(2);$.writeByte(2);for(var _=0;ae.length-_>255;)$.writeByte(255),$.writeBytes(ae,_,255),_+=255;$.writeByte(ae.length-_),$.writeBytes(ae,_,ae.length-_),$.writeByte(0),$.writeString(";")}},Be=function($){for(var ae=1<<$,_=1+(1<<$),b=$+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 $={},ae=0,_={add:function(b){if(_.contains(b))throw"dup key:"+b;$[b]=ae,ae+=1},size:function(){return ae},indexOf:function(b){return $[b]},contains:function(b){return $[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,W(Z,V));var se=B();j.write(se);for(var ie=function(){var ne=0,K=0,xe=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,K+=8,xe+=1;K>=6;)ye(ne>>>K-6),K-=6},Oe.flush=function(){if(K>0&&(ye(ne<<6-K),ne=0,K=0),xe%3!=0)for(var Ie=3-xe%3,$=0;$<Ie;$+=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(w){for(var y=[],x=0;x<w.length;x++){var S=w.charCodeAt(x);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):(x++,S=65536+((1023&S)<<10|1023&w.charCodeAt(x)),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 w(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]=w(Object.assign({},h),p):M[m]=p}),w.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 x(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,J=k+R+U+H;if(J!==0)if(J>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(J===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(J===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,J=k+R+U+H;if(J!==0)if(J>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(J===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(J===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 W=[[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,J,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,we={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function We(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;we;)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 we.label++,{value:ge[1],done:!1};case 5:we.label++,be=ge[1],ge=[0];continue;case 7:ge=we.ops.pop(),we.trys.pop();continue;default:if(!((ce=(ce=we.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){we=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){we.label=ge[1];break}if(ge[0]===6&&we.label<ce[1]){we.label=ce[1],ce=ge;break}if(ce&&we.label<ce[2]){we.label=ce[2],we.ops.push(ge);break}ce[2]&&we.ops.pop(),we.trys.pop();continue}ge=Se.call(ve,we)}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,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=x({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,we,We,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=W[Se])===null||be===void 0?void 0:be[Ee])||((ce=W[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=W[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((we=j[Se])===null||we===void 0?void 0:we[Ee])||((We=j[Se-p+7])===null||We===void 0?void 0:We[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(J){try{H(h.next(J))}catch(X){k(X)}}function U(J){try{H(h.throw(J))}catch(X){k(X)}}function H(J){var X;J.done?p(J.value):(X=J.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 J=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++)J(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),J=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,we,We=X[0],Qe=X[1],mt=X[2];if(!c||c(We,Qe)){var ge=H+We*k*(h-7),nt=J+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=W[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=W[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])})},st=0;st<W[Ye].length;st++)Ut(st)},At=0;At<W.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 Wr=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;Wr.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=Wr}else!((we=m.cornersDotOptions)===null||we===void 0)&&we.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,J=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,J,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),J=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?(J-=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,J-=R/2/Math.tan(U),fe+=R/2,oe+=R/2/Math.tan(U)):H>.75*Math.PI&&H<=1.25*Math.PI?(J+=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,J+=R/2/Math.tan(U),fe-=R/2,oe-=R/2/Math.tan(U)),v=d.createLinearGradient(Math.round(J),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 J=0;return p&&R?J=Math.PI/2:R&&k?J=Math.PI:k&&U&&(J=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,rotation:J})}if(H===1)return J=0,R?J=Math.PI/2:k?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:J})}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 J=0;return p&&R?J=Math.PI/2:R&&k?J=Math.PI:k&&U&&(J=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:J})}if(H===1)return J=0,R?J=Math.PI/2:k?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:J})}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 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]],xe=[[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,J,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,we={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function We(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;we;)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 we.label++,{value:ge[1],done:!1};case 5:we.label++,be=ge[1],ge=[0];continue;case 7:ge=we.ops.pop(),we.trys.pop();continue;default:if(!((ce=(ce=we.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){we=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){we.label=ge[1];break}if(ge[0]===6&&we.label<ce[1]){we.label=ce[1],ce=ge;break}if(ce&&we.label<ce[2]){we.label=ce[2],we.ops.push(ge);break}ce[2]&&we.ops.pop(),we.trys.pop();continue}ge=Se.call(ve,we)}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,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=x({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,we,We,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=K[Se])===null||be===void 0?void 0:be[Ee])||((ce=K[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=K[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((we=xe[Se])===null||we===void 0?void 0:we[Ee])||((We=xe[Se-p+7])===null||We===void 0?void 0:We[Ee])||((Qe=xe[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(J){try{H(h.next(J))}catch(X){k(X)}}function U(J){try{H(h.throw(J))}catch(X){k(X)}}function H(J){var X;J.done?p(J.value):(X=J.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),J=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)?(J.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(J._element&&oe._dotsClipPath&&oe._dotsClipPath.appendChild(J._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(J){var X,oe,fe,pe,ve,Se,Ee,be,ce,Ve,we,We,Qe=J[0],mt=J[1],ge=J[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=K[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=K[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])}),pt._element&&Tt&&Tt.appendChild(pt._element)},st=0;st<K[Ye].length;st++)Ut(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))&&((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})),(we=d.cornersDotOptions)===null||we===void 0?void 0:we.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 Wr=function(Ye){for(var Ut=function(yt){if(!(!((We=xe[Ye])===null||We===void 0)&&We[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(_r,Sr){var bt;return!!(!((bt=xe[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])}),pt._element&&kt&&kt.appendChild(pt._element)},st=0;st<xe[Ye].length;st++)Ut(st)};for(ut=0;ut<xe.length;ut++)Wr(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,J=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",J+"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,J=document.createElementNS("http://www.w3.org/2000/svg","rect");if(J.setAttribute("x",String(h)),J.setAttribute("y",String(p)),J.setAttribute("height",String(k)),J.setAttribute("width",String(R)),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(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,we=document.createElementNS("http://www.w3.org/2000/svg","stop");we.setAttribute("offset",100*ce+"%"),we.setAttribute("stop-color",Ve),X.appendChild(we)}),J.setAttribute("fill","url('#"+U+"')"),this._defs.appendChild(X)}else d&&J.setAttribute("fill",d);this._element.appendChild(J)},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 $=function(){return($=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=$({},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 $($({},v),{offset:Number(v.offset)})}),c}function _(M){var c=$({},M);return c.width=Number(c.width),c.height=Number(c.height),c.margin=Number(c.margin),c.imageOptions=$($({},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=$({},c.dotsOptions),c.dotsOptions.gradient&&(c.dotsOptions.gradient=ae(c.dotsOptions.gradient)),c.cornersSquareOptions&&(c.cornersSquareOptions=$({},c.cornersSquareOptions),c.cornersSquareOptions.gradient&&(c.cornersSquareOptions.gradient=ae(c.cornersSquareOptions.gradient))),c.cornersDotOptions&&(c.cornersDotOptions=$({},c.cornersDotOptions),c.cornersDotOptions.gradient&&(c.cornersDotOptions.gradient=ae(c.cornersDotOptions.gradient))),c.backgroundOptions&&(c.backgroundOptions=$({},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(J){J(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(J){H=[6,J],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?_(w(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?_(w(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
|
+
`+m],{type:"image/svg+xml"})]):[2,new Promise(function(p){return v.getCanvas().toBlob(p,"image/"+c,1)})]}})})},M.prototype.download=function(c){return te(this,void 0,void 0,function(){var v,d,m,h,p;return le(this,function(k){switch(k.label){case 0:if(!this._qr)throw"QR code is empty";return v="png",d="qr",typeof c=="string"?(v=c,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof c=="object"&&c!==null&&(c.name&&(d=c.name),c.extension&&(v=c.extension)),[4,this._getQRStylingElement(v)];case 1:return m=k.sent(),v.toLowerCase()==="svg"?(h=new XMLSerializer,p=`<?xml version="1.0" standalone="no"?>\r
|
|
5
|
+
`+(p=h.serializeToString(m.getElement())),y("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(p),d+".svg")):y(m.getCanvas().toDataURL("image/"+v),d+"."+v),[2]}})})},M}()}},n={};function a(i){if(n[i])return n[i].exports;var o=n[i]={exports:{}};return r[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})})(Vi);var Uu=Bu(Vi.exports);/*!
|
|
6
6
|
* shared v9.2.2
|
|
7
7
|
* (c) 2022 kazuya kawaguchi
|
|
8
8
|
* Released under the MIT License.
|
|
9
|
-
*/const
|
|
9
|
+
*/const da=typeof window!="undefined",Vu=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jt=t=>Vu?Symbol(t):t,ju=(t,e,r)=>qu({l:t,k:e,s:r}),qu=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),at=t=>typeof t=="number"&&isFinite(t),Hu=t=>ha(t)==="[object Date]",Xt=t=>ha(t)==="[object RegExp]",En=t=>Ce(t)&&Object.keys(t).length===0;function Gu(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const lt=Object.assign;let ji;const Yr=()=>ji||(ji=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function qi(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const $u=Object.prototype.hasOwnProperty;function fa(t,e){return $u.call(t,e)}const Ge=Array.isArray,et=t=>typeof t=="function",me=t=>typeof t=="string",Pe=t=>typeof t=="boolean",$e=t=>t!==null&&typeof t=="object",Hi=Object.prototype.toString,ha=t=>Hi.call(t),Ce=t=>ha(t)==="[object Object]",Wu=t=>t==null?"":Ge(t)||Ce(t)&&t.toString===Hi?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
|
-
`,sr=String.fromCharCode(8232),lr=String.fromCharCode(8233);function cr(e){const o=e;let i=0,m=1,f=1,s=0;const h=re=>o[re]===ir&&o[re+1]===Be,x=re=>o[re]===Be,b=re=>o[re]===lr,I=re=>o[re]===sr,q=re=>h(re)||x(re)||b(re)||I(re),V=()=>i,z=()=>m,G=()=>f,$=()=>s,Q=re=>h(re)||b(re)||I(re)?Be:o[re],ee=()=>Q(i),_=()=>Q(i+s);function R(){return s=0,q(i)&&(m++,f=0),h(i)&&i++,i++,f++,o[i]}function B(){return h(i+s)&&s++,s++,o[i+s]}function M(){i=0,m=1,f=1,s=0}function L(re=0){s=re}function J(){const re=i+s;for(;re!==i;)R();s=0}return{index:V,line:z,column:G,peekOffset:$,charAt:Q,currentChar:ee,currentPeek:_,next:R,peek:B,reset:M,resetPeek:L,skipToPeek:J}}const ot=void 0,Qt="'",ur="tokenizer";function dr(e,o={}){const i=o.location!==!1,m=cr(e),f=()=>m.index(),s=()=>or(m.line(),m.column(),m.index()),h=s(),x=f(),b={currentType:14,offset:x,startLoc:h,endLoc:h,lastType:14,lastOffset:x,lastStartLoc:h,lastEndLoc:h,braceNest:0,inLinked:!1,text:""},I=()=>b,{onError:q}=o;function V(u,l,p,...A){const H=I();if(l.column+=p,l.offset+=p,q){const Z=kt(H.startLoc,l),g=_t(u,Z,{domain:ur,args:A});q(g)}}function z(u,l,p){u.endLoc=s(),u.currentType=l;const A={type:l};return i&&(A.loc=kt(u.startLoc,u.endLoc)),p!=null&&(A.value=p),A}const G=u=>z(u,14);function $(u,l){return u.currentChar()===l?(u.next(),l):(V(ge.EXPECTED_TOKEN,s(),0,l),"")}function Q(u){let l="";for(;u.currentPeek()===tt||u.currentPeek()===Be;)l+=u.currentPeek(),u.peek();return l}function ee(u){const l=Q(u);return u.skipToPeek(),l}function _(u){if(u===ot)return!1;const l=u.charCodeAt(0);return l>=97&&l<=122||l>=65&&l<=90||l===95}function R(u){if(u===ot)return!1;const l=u.charCodeAt(0);return l>=48&&l<=57}function B(u,l){const{currentType:p}=l;if(p!==2)return!1;Q(u);const A=_(u.currentPeek());return u.resetPeek(),A}function M(u,l){const{currentType:p}=l;if(p!==2)return!1;Q(u);const A=u.currentPeek()==="-"?u.peek():u.currentPeek(),H=R(A);return u.resetPeek(),H}function L(u,l){const{currentType:p}=l;if(p!==2)return!1;Q(u);const A=u.currentPeek()===Qt;return u.resetPeek(),A}function J(u,l){const{currentType:p}=l;if(p!==8)return!1;Q(u);const A=u.currentPeek()===".";return u.resetPeek(),A}function re(u,l){const{currentType:p}=l;if(p!==9)return!1;Q(u);const A=_(u.currentPeek());return u.resetPeek(),A}function Ce(u,l){const{currentType:p}=l;if(!(p===8||p===12))return!1;Q(u);const A=u.currentPeek()===":";return u.resetPeek(),A}function pe(u,l){const{currentType:p}=l;if(p!==10)return!1;const A=()=>{const Z=u.currentPeek();return Z==="{"?_(u.peek()):Z==="@"||Z==="%"||Z==="|"||Z===":"||Z==="."||Z===tt||!Z?!1:Z===Be?(u.peek(),A()):_(Z)},H=A();return u.resetPeek(),H}function Me(u){Q(u);const l=u.currentPeek()==="|";return u.resetPeek(),l}function Te(u){const l=Q(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:l.length>0}}function qe(u,l=!0){const p=(H=!1,Z="",g=!1)=>{const t=u.currentPeek();return t==="{"?Z==="%"?!1:H:t==="@"||!t?Z==="%"?!0:H:t==="%"?(u.peek(),p(H,"%",!0)):t==="|"?Z==="%"||g?!0:!(Z===tt||Z===Be):t===tt?(u.peek(),p(!0,tt,g)):t===Be?(u.peek(),p(!0,Be,g)):!0},A=p();return l&&u.resetPeek(),A}function P(u,l){const p=u.currentChar();return p===ot?ot:l(p)?(u.next(),p):null}function O(u){return P(u,p=>{const A=p.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A>=48&&A<=57||A===95||A===36})}function T(u){return P(u,p=>{const A=p.charCodeAt(0);return A>=48&&A<=57})}function S(u){return P(u,p=>{const A=p.charCodeAt(0);return A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102})}function y(u){let l="",p="";for(;l=T(u);)p+=l;return p}function k(u){ee(u);const l=u.currentChar();return l!=="%"&&V(ge.EXPECTED_TOKEN,s(),0,l),u.next(),"%"}function X(u){let l="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(qe(u))l+=p,u.next();else break;else if(p===tt||p===Be)if(qe(u))l+=p,u.next();else{if(Me(u))break;l+=p,u.next()}else l+=p,u.next()}return l}function W(u){ee(u);let l="",p="";for(;l=O(u);)p+=l;return u.currentChar()===ot&&V(ge.UNTERMINATED_CLOSING_BRACE,s(),0),p}function te(u){ee(u);let l="";return u.currentChar()==="-"?(u.next(),l+=`-${y(u)}`):l+=y(u),u.currentChar()===ot&&V(ge.UNTERMINATED_CLOSING_BRACE,s(),0),l}function xe(u){ee(u),$(u,"'");let l="",p="";const A=Z=>Z!==Qt&&Z!==Be;for(;l=P(u,A);)l==="\\"?p+=ye(u):p+=l;const H=u.currentChar();return H===Be||H===ot?(V(ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),H===Be&&(u.next(),$(u,"'")),p):($(u,"'"),p)}function ye(u){const l=u.currentChar();switch(l){case"\\":case"'":return u.next(),`\\${l}`;case"u":return ve(u,l,4);case"U":return ve(u,l,6);default:return V(ge.UNKNOWN_ESCAPE_SEQUENCE,s(),0,l),""}}function ve(u,l,p){$(u,l);let A="";for(let H=0;H<p;H++){const Z=S(u);if(!Z){V(ge.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${l}${A}${u.currentChar()}`);break}A+=Z}return`\\${l}${A}`}function we(u){ee(u);let l="",p="";const A=H=>H!=="{"&&H!=="}"&&H!==tt&&H!==Be;for(;l=P(u,A);)p+=l;return p}function Ne(u){let l="",p="";for(;l=O(u);)p+=l;return p}function Le(u){const l=(p=!1,A)=>{const H=u.currentChar();return H==="{"||H==="%"||H==="@"||H==="|"||!H||H===tt?A:H===Be?(A+=H,u.next(),l(p,A)):(A+=H,u.next(),l(!0,A))};return l(!1,"")}function Ve(u){ee(u);const l=$(u,"|");return ee(u),l}function Ue(u,l){let p=null;switch(u.currentChar()){case"{":return l.braceNest>=1&&V(ge.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),u.next(),p=z(l,2,"{"),ee(u),l.braceNest++,p;case"}":return l.braceNest>0&&l.currentType===2&&V(ge.EMPTY_PLACEHOLDER,s(),0),u.next(),p=z(l,3,"}"),l.braceNest--,l.braceNest>0&&ee(u),l.inLinked&&l.braceNest===0&&(l.inLinked=!1),p;case"@":return l.braceNest>0&&V(ge.UNTERMINATED_CLOSING_BRACE,s(),0),p=me(u,l)||G(l),l.braceNest=0,p;default:let H=!0,Z=!0,g=!0;if(Me(u))return l.braceNest>0&&V(ge.UNTERMINATED_CLOSING_BRACE,s(),0),p=z(l,1,Ve(u)),l.braceNest=0,l.inLinked=!1,p;if(l.braceNest>0&&(l.currentType===5||l.currentType===6||l.currentType===7))return V(ge.UNTERMINATED_CLOSING_BRACE,s(),0),l.braceNest=0,E(u,l);if(H=B(u,l))return p=z(l,5,W(u)),ee(u),p;if(Z=M(u,l))return p=z(l,6,te(u)),ee(u),p;if(g=L(u,l))return p=z(l,7,xe(u)),ee(u),p;if(!H&&!Z&&!g)return p=z(l,13,we(u)),V(ge.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p.value),ee(u),p;break}return p}function me(u,l){const{currentType:p}=l;let A=null;const H=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(H===Be||H===tt)&&V(ge.INVALID_LINKED_FORMAT,s(),0),H){case"@":return u.next(),A=z(l,8,"@"),l.inLinked=!0,A;case".":return ee(u),u.next(),z(l,9,".");case":":return ee(u),u.next(),z(l,10,":");default:return Me(u)?(A=z(l,1,Ve(u)),l.braceNest=0,l.inLinked=!1,A):J(u,l)||Ce(u,l)?(ee(u),me(u,l)):re(u,l)?(ee(u),z(l,12,Ne(u))):pe(u,l)?(ee(u),H==="{"?Ue(u,l)||A:z(l,11,Le(u))):(p===8&&V(ge.INVALID_LINKED_FORMAT,s(),0),l.braceNest=0,l.inLinked=!1,E(u,l))}}function E(u,l){let p={type:14};if(l.braceNest>0)return Ue(u,l)||G(l);if(l.inLinked)return me(u,l)||G(l);switch(u.currentChar()){case"{":return Ue(u,l)||G(l);case"}":return V(ge.UNBALANCED_CLOSING_BRACE,s(),0),u.next(),z(l,3,"}");case"@":return me(u,l)||G(l);default:if(Me(u))return p=z(l,1,Ve(u)),l.braceNest=0,l.inLinked=!1,p;const{isModulo:H,hasSpace:Z}=Te(u);if(H)return Z?z(l,0,X(u)):z(l,4,k(u));if(qe(u))return z(l,0,X(u));break}return p}function D(){const{currentType:u,offset:l,startLoc:p,endLoc:A}=b;return b.lastType=u,b.lastOffset=l,b.lastStartLoc=p,b.lastEndLoc=A,b.offset=f(),b.startLoc=s(),m.currentChar()===ot?z(b,14):E(m,b)}return{nextToken:D,currentOffset:f,currentPosition:s,context:I}}const mr="parser",fr=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pr(e,o,i){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const m=parseInt(o||i,16);return m<=55295||m>=57344?String.fromCodePoint(m):"\uFFFD"}}}function hr(e={}){const o=e.location!==!1,{onError:i}=e;function m(_,R,B,M,...L){const J=_.currentPosition();if(J.offset+=M,J.column+=M,i){const re=kt(B,J),Ce=_t(R,re,{domain:mr,args:L});i(Ce)}}function f(_,R,B){const M={type:_,start:R,end:R};return o&&(M.loc={start:B,end:B}),M}function s(_,R,B,M){_.end=R,M&&(_.type=M),o&&_.loc&&(_.loc.end=B)}function h(_,R){const B=_.context(),M=f(3,B.offset,B.startLoc);return M.value=R,s(M,_.currentOffset(),_.currentPosition()),M}function x(_,R){const B=_.context(),{lastOffset:M,lastStartLoc:L}=B,J=f(5,M,L);return J.index=parseInt(R,10),_.nextToken(),s(J,_.currentOffset(),_.currentPosition()),J}function b(_,R){const B=_.context(),{lastOffset:M,lastStartLoc:L}=B,J=f(4,M,L);return J.key=R,_.nextToken(),s(J,_.currentOffset(),_.currentPosition()),J}function I(_,R){const B=_.context(),{lastOffset:M,lastStartLoc:L}=B,J=f(9,M,L);return J.value=R.replace(fr,pr),_.nextToken(),s(J,_.currentOffset(),_.currentPosition()),J}function q(_){const R=_.nextToken(),B=_.context(),{lastOffset:M,lastStartLoc:L}=B,J=f(8,M,L);return R.type!==12?(m(_,ge.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.lastStartLoc,0),J.value="",s(J,M,L),{nextConsumeToken:R,node:J}):(R.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,B.lastStartLoc,0,Je(R)),J.value=R.value||"",s(J,_.currentOffset(),_.currentPosition()),{node:J})}function V(_,R){const B=_.context(),M=f(7,B.offset,B.startLoc);return M.value=R,s(M,_.currentOffset(),_.currentPosition()),M}function z(_){const R=_.context(),B=f(6,R.offset,R.startLoc);let M=_.nextToken();if(M.type===9){const L=q(_);B.modifier=L.node,M=L.nextConsumeToken||_.nextToken()}switch(M.type!==10&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(M)),M=_.nextToken(),M.type===2&&(M=_.nextToken()),M.type){case 11:M.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(M)),B.key=V(_,M.value||"");break;case 5:M.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(M)),B.key=b(_,M.value||"");break;case 6:M.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(M)),B.key=x(_,M.value||"");break;case 7:M.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(M)),B.key=I(_,M.value||"");break;default:m(_,ge.UNEXPECTED_EMPTY_LINKED_KEY,R.lastStartLoc,0);const L=_.context(),J=f(7,L.offset,L.startLoc);return J.value="",s(J,L.offset,L.startLoc),B.key=J,s(B,L.offset,L.startLoc),{nextConsumeToken:M,node:B}}return s(B,_.currentOffset(),_.currentPosition()),{node:B}}function G(_){const R=_.context(),B=R.currentType===1?_.currentOffset():R.offset,M=R.currentType===1?R.endLoc:R.startLoc,L=f(2,B,M);L.items=[];let J=null;do{const pe=J||_.nextToken();switch(J=null,pe.type){case 0:pe.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(pe)),L.items.push(h(_,pe.value||""));break;case 6:pe.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(pe)),L.items.push(x(_,pe.value||""));break;case 5:pe.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(pe)),L.items.push(b(_,pe.value||""));break;case 7:pe.value==null&&m(_,ge.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Je(pe)),L.items.push(I(_,pe.value||""));break;case 8:const Me=z(_);L.items.push(Me.node),J=Me.nextConsumeToken||null;break}}while(R.currentType!==14&&R.currentType!==1);const re=R.currentType===1?R.lastOffset:_.currentOffset(),Ce=R.currentType===1?R.lastEndLoc:_.currentPosition();return s(L,re,Ce),L}function $(_,R,B,M){const L=_.context();let J=M.items.length===0;const re=f(1,R,B);re.cases=[],re.cases.push(M);do{const Ce=G(_);J||(J=Ce.items.length===0),re.cases.push(Ce)}while(L.currentType!==14);return J&&m(_,ge.MUST_HAVE_MESSAGES_IN_PLURAL,B,0),s(re,_.currentOffset(),_.currentPosition()),re}function Q(_){const R=_.context(),{offset:B,startLoc:M}=R,L=G(_);return R.currentType===14?L:$(_,B,M,L)}function ee(_){const R=dr(_,Fe({},e)),B=R.context(),M=f(0,B.offset,B.startLoc);return o&&M.loc&&(M.loc.source=_),M.body=Q(R),B.currentType!==14&&m(R,ge.UNEXPECTED_LEXICAL_ANALYSIS,B.lastStartLoc,0,_[B.offset]||""),s(M,R.currentOffset(),R.currentPosition()),M}return{parse:ee}}function Je(e){if(e.type===14)return"EOF";const o=(e.value||"").replace(/\r?\n/gu,"\\n");return o.length>10?o.slice(0,9)+"\u2026":o}function gr(e,o={}){const i={ast:e,helpers:new Set};return{context:()=>i,helper:s=>(i.helpers.add(s),s)}}function Kt(e,o){for(let i=0;i<e.length;i++)Mt(e[i],o)}function Mt(e,o){switch(e.type){case 1:Kt(e.cases,o),o.helper("plural");break;case 2:Kt(e.items,o);break;case 6:Mt(e.key,o),o.helper("linked"),o.helper("type");break;case 5:o.helper("interpolate"),o.helper("list");break;case 4:o.helper("interpolate"),o.helper("named");break}}function vr(e,o={}){const i=gr(e);i.helper("normalize"),e.body&&Mt(e.body,i);const m=i.context();e.helpers=Array.from(m.helpers)}function br(e,o){const{sourceMap:i,filename:m,breakLineCode:f,needIndent:s}=o,h={source:e.loc.source,filename:m,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:f,needIndent:s,indentLevel:0},x=()=>h;function b(Q,ee){h.code+=Q}function I(Q,ee=!0){const _=ee?f:"";b(s?_+" ".repeat(Q):_)}function q(Q=!0){const ee=++h.indentLevel;Q&&I(ee)}function V(Q=!0){const ee=--h.indentLevel;Q&&I(ee)}function z(){I(h.indentLevel)}return{context:x,push:b,indent:q,deindent:V,newline:z,helper:Q=>`_${Q}`,needIndent:()=>h.needIndent}}function xr(e,o){const{helper:i}=e;e.push(`${i("linked")}(`),dt(e,o.key),o.modifier?(e.push(", "),dt(e,o.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Er(e,o){const{helper:i,needIndent:m}=e;e.push(`${i("normalize")}([`),e.indent(m());const f=o.items.length;for(let s=0;s<f&&(dt(e,o.items[s]),s!==f-1);s++)e.push(", ");e.deindent(m()),e.push("])")}function _r(e,o){const{helper:i,needIndent:m}=e;if(o.cases.length>1){e.push(`${i("plural")}([`),e.indent(m());const f=o.cases.length;for(let s=0;s<f&&(dt(e,o.cases[s]),s!==f-1);s++)e.push(", ");e.deindent(m()),e.push("])")}}function yr(e,o){o.body?dt(e,o.body):e.push("null")}function dt(e,o){const{helper:i}=e;switch(o.type){case 0:yr(e,o);break;case 1:_r(e,o);break;case 2:Er(e,o);break;case 6:xr(e,o);break;case 8:e.push(JSON.stringify(o.value),o);break;case 7:e.push(JSON.stringify(o.value),o);break;case 5:e.push(`${i("interpolate")}(${i("list")}(${o.index}))`,o);break;case 4:e.push(`${i("interpolate")}(${i("named")}(${JSON.stringify(o.key)}))`,o);break;case 9:e.push(JSON.stringify(o.value),o);break;case 3:e.push(JSON.stringify(o.value),o);break}}const wr=(e,o={})=>{const i=K(o.mode)?o.mode:"normal",m=K(o.filename)?o.filename:"message.intl",f=!!o.sourceMap,s=o.breakLineCode!=null?o.breakLineCode:i==="arrow"?";":`
|
|
15
|
-
`,
|
|
13
|
+
*/const je={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 wn(t,e,r={}){const{domain:n,messages:a,args:i}=r,o=t,s=new SyntaxError(String(o));return s.code=t,e&&(s.location=e),s.domain=n,s}function Yu(t){throw t}function Zu(t,e,r){return{line:t,column:e,offset:r}}function ma(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const Gt=" ",Ku="\r",gt=`
|
|
14
|
+
`,Ju=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]===Ku&&e[z+1]===gt,s=z=>e[z]===gt,l=z=>e[z]===Xu,u=z=>e[z]===Ju,f=z=>o(z)||s(z)||l(z)||u(z),w=()=>r,y=()=>n,x=()=>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:w,line:y,column:x,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 w(_,b,O,...te){const le=u();if(b.column+=O,b.offset+=O,f){const de=ma(le.startLoc,b),M=wn(_,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 x=_=>y(_,14);function S(_,b){return _.currentChar()===b?(_.next(),b):(w(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 W(_){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=W(_);)O+=b;return O}function Z(_){N(_);const b=_.currentChar();return b!=="%"&&w(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&&w(je.UNTERMINATED_CLOSING_BRACE,i(),0),O}function F(_){N(_);let b="";return _.currentChar()==="-"?(_.next(),b+=`-${V(_)}`):b+=V(_),_.currentChar()===Qt&&w(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?(w(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 K(_,b,4);case"U":return K(_,b,6);default:return w(je.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function K(_,b,O){S(_,b);let te="";for(let le=0;le<O;le++){const de=j(_);if(!de){w(je.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${te}${_.currentChar()}`);break}te+=de}return`\\${b}${te}`}function xe(_){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&&w(je.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),O=y(b,2,"{"),N(_),b.braceNest++,O;case"}":return b.braceNest>0&&b.currentType===2&&w(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&&w(je.UNTERMINATED_CLOSING_BRACE,i(),0),O=Ie(_,b)||x(b),b.braceNest=0,O;default:let le=!0,de=!0,M=!0;if(B(_))return b.braceNest>0&&w(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 w(je.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,$(_,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,xe(_)),w(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)&&w(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&&w(je.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,$(_,b))}}function $(_,b){let O={type:14};if(b.braceNest>0)return Be(_,b)||x(b);if(b.inLinked)return Ie(_,b)||x(b);switch(_.currentChar()){case"{":return Be(_,b)||x(b);case"}":return w(je.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),y(b,3,"}");case"@":return Ie(_,b)||x(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):$(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=wn(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 w(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=w(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 x(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=x(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=x(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 $i(t,e){for(let r=0;r<t.length;r++)pa(t[r],e)}function pa(t,e){switch(t.type){case 1:$i(t.cases,e),e.helper("plural");break;case 2:$i(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 w(T=!0){const N=--o.indentLevel;T&&u(N)}function y(){u(o.indentLevel)}return{context:s,push:l,indent:f,deindent:w,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:r!=="arrow",s=t.helpers||[],l=ld(t,{mode:r,filename:n,sourceMap:a,breakLineCode:i,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(w=>`${w}: _${w}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ir(l,t),l.deindent(o),l.push("}");const{code:u,map:f}=l.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function md(t,e={}){const r=lt({},e),a=id(r).parse(t);return sd(a,r),hd(a,r)}/*!
|
|
16
16
|
* devtools-if v9.2.2
|
|
17
17
|
* (c) 2022 kazuya kawaguchi
|
|
18
18
|
* Released under the MIT License.
|
|
19
|
-
*/const
|
|
19
|
+
*/const Wi={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 it=[];it[0]={w:[0],i:[3,0],["["]:[4],o:[7]},it[1]={w:[1],["."]:[2],["["]:[4],o:[7]},it[2]={w:[2],i:[3,0],[0]:[3,0]},it[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},it[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},it[5]={["'"]:[4,0],o:8,l:[5,0]},it[6]={['"']:[4,0],o:8,l:[6,0]};const Sr=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Lr(e){return Sr.test(e)}function Ar(e){const o=e.charCodeAt(0),i=e.charCodeAt(e.length-1);return o===i&&(o===34||o===39)?e.slice(1,-1):e}function Nr(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;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 Ir(e){const o=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Lr(o)?Ar(o):"*"+o}function kr(e){const o=[];let i=-1,m=0,f=0,s,h,x,b,I,q,V;const z=[];z[0]=()=>{h===void 0?h=x:h+=x},z[1]=()=>{h!==void 0&&(o.push(h),h=void 0)},z[2]=()=>{z[0](),f++},z[3]=()=>{if(f>0)f--,m=4,z[0]();else{if(f=0,h===void 0||(h=Ir(h),h===!1))return!1;z[1]()}};function G(){const $=e[i+1];if(m===5&&$==="'"||m===6&&$==='"')return i++,x="\\"+$,z[0](),!0}for(;m!==null;)if(i++,s=e[i],!(s==="\\"&&G())){if(b=Nr(s),V=it[m],I=V[b]||V.l||8,I===8||(m=I[0],I[1]!==void 0&&(q=z[I[1]],q&&(x=s,q()===!1))))return;if(m===7)return o}}const Zt=new Map;function Mr(e,o){return _e(e)?e[o]:null}function Pr(e,o){if(!_e(e))return null;let i=Zt.get(o);if(i||(i=kr(o),i&&Zt.set(o,i)),!i)return null;const m=i.length;let f=e,s=0;for(;s<m;){const h=f[i[s]];if(h===void 0)return null;f=h,s++}return f}const Tr=e=>e,Or=e=>"",Dr="text",Rr=e=>e.length===0?"":e.join(""),zr=rr;function en(e,o){return e=Math.abs(e),o===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Fr(e){const o=De(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(De(e.named.count)||De(e.named.n))?De(e.named.count)?e.named.count:De(e.named.n)?e.named.n:o:o}function qr(e,o){o.count||(o.count=e),o.n||(o.n=e)}function Ur(e={}){const o=e.locale,i=Fr(e),m=_e(e.pluralRules)&&K(o)&&ke(e.pluralRules[o])?e.pluralRules[o]:en,f=_e(e.pluralRules)&&K(o)&&ke(e.pluralRules[o])?en:void 0,s=_=>_[m(i,_.length,f)],h=e.list||[],x=_=>h[_],b=e.named||{};De(e.pluralIndex)&&qr(i,b);const I=_=>b[_];function q(_){const R=ke(e.messages)?e.messages(_):_e(e.messages)?e.messages[_]:!1;return R||(e.parent?e.parent.message(_):Or)}const V=_=>e.modifiers?e.modifiers[_]:Tr,z=ce(e.processor)&&ke(e.processor.normalize)?e.processor.normalize:Rr,G=ce(e.processor)&&ke(e.processor.interpolate)?e.processor.interpolate:zr,$=ce(e.processor)&&K(e.processor.type)?e.processor.type:Dr,ee={list:x,named:I,plural:s,linked:(_,...R)=>{const[B,M]=R;let L="text",J="";R.length===1?_e(B)?(J=B.modifier||J,L=B.type||L):K(B)&&(J=B||J):R.length===2&&(K(B)&&(J=B||J),K(M)&&(L=M||L));let re=q(_)(ee);return L==="vnode"&&Ee(re)&&J&&(re=re[0]),J?V(J)(re,L):re},message:q,type:$,interpolate:G,normalize:z};return ee}let ht=null;function Vr(e){ht=e}function Wr(e,o,i){ht&&ht.emit(Jt.I18nInit,{timestamp:Date.now(),i18n:e,version:o,meta:i})}const Br=jr(Jt.FunctionTranslate);function jr(e){return o=>ht&&ht.emit(e,o)}const Hr={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 Gr(e,o,i){return[...new Set([i,...Ee(o)?o:_e(o)?Object.keys(o):K(o)?[o]:[i]])]}function tn(e,o,i){const m=K(i)?i:gt,f=e;f.__localeChainCache||(f.__localeChainCache=new Map);let s=f.__localeChainCache.get(m);if(!s){s=[];let h=[i];for(;Ee(h);)h=nn(s,h,o);const x=Ee(o)||!ce(o)?o:o.default?o.default:null;h=K(x)?[x]:x,Ee(h)&&nn(s,h,!1),f.__localeChainCache.set(m,s)}return s}function nn(e,o,i){let m=!0;for(let f=0;f<o.length&&fe(m);f++){const s=o[f];K(s)&&(m=$r(e,o[f],i))}return m}function $r(e,o,i){let m;const f=o.split("-");do{const s=f.join("-");m=Yr(e,s,i),f.splice(-1,1)}while(f.length&&m===!0);return m}function Yr(e,o,i){let m=!1;if(!e.includes(o)&&(m=!0,o)){m=o[o.length-1]!=="!";const f=o.replace(/!/g,"");e.push(f),(Ee(i)||ce(i))&&i[f]&&(m=i[f])}return m}const Xr="9.2.2",yt=-1,gt="en-US",rn="",an=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Qr(){return{upper:(e,o)=>o==="text"&&K(e)?e.toUpperCase():o==="vnode"&&_e(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,o)=>o==="text"&&K(e)?e.toLowerCase():o==="vnode"&&_e(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,o)=>o==="text"&&K(e)?an(e):o==="vnode"&&_e(e)&&"__v_isVNode"in e?an(e.children):e}}let on;function Kr(e){on=e}let sn;function Jr(e){sn=e}let ln;function Zr(e){ln=e}let cn=null;const un=e=>{cn=e},ea=()=>cn;let dn=null;const mn=e=>{dn=e},ta=()=>dn;let fn=0;function na(e={}){const o=K(e.version)?e.version:Xr,i=K(e.locale)?e.locale:gt,m=Ee(e.fallbackLocale)||ce(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,f=ce(e.messages)?e.messages:{[i]:{}},s=ce(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},h=ce(e.numberFormats)?e.numberFormats:{[i]:{}},x=Fe({},e.modifiers||{},Qr()),b=e.pluralRules||{},I=ke(e.missing)?e.missing:null,q=fe(e.missingWarn)||at(e.missingWarn)?e.missingWarn:!0,V=fe(e.fallbackWarn)||at(e.fallbackWarn)?e.fallbackWarn:!0,z=!!e.fallbackFormat,G=!!e.unresolving,$=ke(e.postTranslation)?e.postTranslation:null,Q=ce(e.processor)?e.processor:null,ee=fe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,R=ke(e.messageCompiler)?e.messageCompiler:on,B=ke(e.messageResolver)?e.messageResolver:sn||Mr,M=ke(e.localeFallbacker)?e.localeFallbacker:ln||Gr,L=_e(e.fallbackContext)?e.fallbackContext:void 0,J=ke(e.onWarn)?e.onWarn:tr,re=e,Ce=_e(re.__datetimeFormatters)?re.__datetimeFormatters:new Map,pe=_e(re.__numberFormatters)?re.__numberFormatters:new Map,Me=_e(re.__meta)?re.__meta:{};fn++;const Te={version:o,cid:fn,locale:i,fallbackLocale:m,messages:f,modifiers:x,pluralRules:b,missing:I,missingWarn:q,fallbackWarn:V,fallbackFormat:z,unresolving:G,postTranslation:$,processor:Q,warnHtmlMessage:ee,escapeParameter:_,messageCompiler:R,messageResolver:B,localeFallbacker:M,fallbackContext:L,onWarn:J,__meta:Me};return Te.datetimeFormats=s,Te.numberFormats=h,Te.__datetimeFormatters=Ce,Te.__numberFormatters=pe,__INTLIFY_PROD_DEVTOOLS__&&Wr(Te,o,Me),Te}function Pt(e,o,i,m,f){const{missing:s,onWarn:h}=e;if(s!==null){const x=s(e,i,o,f);return K(x)?x:o}else return o}function vt(e,o,i){const m=e;m.__localeChainCache=new Map,e.localeFallbacker(e,i,o)}const ra=e=>e;let pn=Object.create(null);function aa(e,o={}){{const m=(o.onCacheKey||ra)(e),f=pn[m];if(f)return f;let s=!1;const h=o.onError||ar;o.onError=I=>{s=!0,h(I)};const{code:x}=Cr(e,o),b=new Function(`return ${x}`)();return s?b:pn[m]=b}}let hn=ge.__EXTEND_POINT__;const Tt=()=>++hn,mt={INVALID_ARGUMENT:hn,INVALID_DATE_ARGUMENT:Tt(),INVALID_ISO_DATE_ARGUMENT:Tt(),__EXTEND_POINT__:Tt()};function ft(e){return _t(e,null,void 0)}const gn=()=>"",Ze=e=>ke(e);function vn(e,...o){const{fallbackFormat:i,postTranslation:m,unresolving:f,messageCompiler:s,fallbackLocale:h,messages:x}=e,[b,I]=Ot(...o),q=fe(I.missingWarn)?I.missingWarn:e.missingWarn,V=fe(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,z=fe(I.escapeParameter)?I.escapeParameter:e.escapeParameter,G=!!I.resolvedMessage,$=K(I.default)||fe(I.default)?fe(I.default)?s?b:()=>b:I.default:i?s?b:()=>b:"",Q=i||$!=="",ee=K(I.locale)?I.locale:e.locale;z&&oa(I);let[_,R,B]=G?[b,ee,x[ee]||{}]:bn(e,b,ee,h,V,q),M=_,L=b;if(!G&&!(K(M)||Ze(M))&&Q&&(M=$,L=M),!G&&(!(K(M)||Ze(M))||!K(R)))return f?yt:b;let J=!1;const re=()=>{J=!0},Ce=Ze(M)?M:xn(e,b,R,M,L,re);if(J)return M;const pe=la(e,R,B,I),Me=Ur(pe),Te=ia(e,Ce,Me),qe=m?m(Te,b):Te;if(__INTLIFY_PROD_DEVTOOLS__){const P={timestamp:Date.now(),key:K(b)?b:Ze(M)?M.key:"",locale:R||(Ze(M)?M.locale:""),format:K(M)?M:Ze(M)?M.source:"",message:qe};P.meta=Fe({},e.__meta,ea()||{}),Br(P)}return qe}function oa(e){Ee(e.list)?e.list=e.list.map(o=>K(o)?Yt(o):o):_e(e.named)&&Object.keys(e.named).forEach(o=>{K(e.named[o])&&(e.named[o]=Yt(e.named[o]))})}function bn(e,o,i,m,f,s){const{messages:h,onWarn:x,messageResolver:b,localeFallbacker:I}=e,q=I(e,m,i);let V={},z,G=null;const $="translate";for(let Q=0;Q<q.length&&(z=q[Q],V=h[z]||{},(G=b(V,o))===null&&(G=V[o]),!(K(G)||ke(G)));Q++){const ee=Pt(e,o,z,s,$);ee!==o&&(G=ee)}return[G,z,V]}function xn(e,o,i,m,f,s){const{messageCompiler:h,warnHtmlMessage:x}=e;if(Ze(m)){const I=m;return I.locale=I.locale||i,I.key=I.key||o,I}if(h==null){const I=()=>m;return I.locale=i,I.key=o,I}const b=h(m,sa(e,i,f,m,x,s));return b.locale=i,b.key=o,b.source=m,b}function ia(e,o,i){return o(i)}function Ot(...e){const[o,i,m]=e,f={};if(!K(o)&&!De(o)&&!Ze(o))throw ft(mt.INVALID_ARGUMENT);const s=De(o)?String(o):(Ze(o),o);return De(i)?f.plural=i:K(i)?f.default=i:ce(i)&&!Et(i)?f.named=i:Ee(i)&&(f.list=i),De(m)?f.plural=m:K(m)?f.default=m:ce(m)&&Fe(f,m),[s,f]}function sa(e,o,i,m,f,s){return{warnHtmlMessage:f,onError:h=>{throw s&&s(h),h},onCacheKey:h=>Jn(o,i,h)}}function la(e,o,i,m){const{modifiers:f,pluralRules:s,messageResolver:h,fallbackLocale:x,fallbackWarn:b,missingWarn:I,fallbackContext:q}=e,z={locale:o,modifiers:f,pluralRules:s,messages:G=>{let $=h(i,G);if($==null&&q){const[,,Q]=bn(q,G,o,x,b,I);$=h(Q,G)}if(K($)){let Q=!1;const _=xn(e,G,o,$,G,()=>{Q=!0});return Q?gn:_}else return Ze($)?$:gn}};return e.processor&&(z.processor=e.processor),m.list&&(z.list=m.list),m.named&&(z.named=m.named),De(m.plural)&&(z.pluralIndex=m.plural),z}function En(e,...o){const{datetimeFormats:i,unresolving:m,fallbackLocale:f,onWarn:s,localeFallbacker:h}=e,{__datetimeFormatters:x}=e,[b,I,q,V]=Dt(...o),z=fe(q.missingWarn)?q.missingWarn:e.missingWarn;fe(q.fallbackWarn)?q.fallbackWarn:e.fallbackWarn;const G=!!q.part,$=K(q.locale)?q.locale:e.locale,Q=h(e,f,$);if(!K(b)||b==="")return new Intl.DateTimeFormat($,V).format(I);let ee={},_,R=null;const B="datetime format";for(let J=0;J<Q.length&&(_=Q[J],ee=i[_]||{},R=ee[b],!ce(R));J++)Pt(e,b,_,z,B);if(!ce(R)||!K(_))return m?yt:b;let M=`${_}__${b}`;Et(V)||(M=`${M}__${JSON.stringify(V)}`);let L=x.get(M);return L||(L=new Intl.DateTimeFormat(_,Fe({},R,V)),x.set(M,L)),G?L.formatToParts(I):L.format(I)}const _n=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Dt(...e){const[o,i,m,f]=e,s={};let h={},x;if(K(o)){const b=o.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!b)throw ft(mt.INVALID_ISO_DATE_ARGUMENT);const I=b[3]?b[3].trim().startsWith("T")?`${b[1].trim()}${b[3].trim()}`:`${b[1].trim()}T${b[3].trim()}`:b[1].trim();x=new Date(I);try{x.toISOString()}catch{throw ft(mt.INVALID_ISO_DATE_ARGUMENT)}}else if(er(o)){if(isNaN(o.getTime()))throw ft(mt.INVALID_DATE_ARGUMENT);x=o}else if(De(o))x=o;else throw ft(mt.INVALID_ARGUMENT);return K(i)?s.key=i:ce(i)&&Object.keys(i).forEach(b=>{_n.includes(b)?h[b]=i[b]:s[b]=i[b]}),K(m)?s.locale=m:ce(m)&&(h=m),ce(f)&&(h=f),[s.key||"",x,s,h]}function yn(e,o,i){const m=e;for(const f in i){const s=`${o}__${f}`;!m.__datetimeFormatters.has(s)||m.__datetimeFormatters.delete(s)}}function wn(e,...o){const{numberFormats:i,unresolving:m,fallbackLocale:f,onWarn:s,localeFallbacker:h}=e,{__numberFormatters:x}=e,[b,I,q,V]=Rt(...o),z=fe(q.missingWarn)?q.missingWarn:e.missingWarn;fe(q.fallbackWarn)?q.fallbackWarn:e.fallbackWarn;const G=!!q.part,$=K(q.locale)?q.locale:e.locale,Q=h(e,f,$);if(!K(b)||b==="")return new Intl.NumberFormat($,V).format(I);let ee={},_,R=null;const B="number format";for(let J=0;J<Q.length&&(_=Q[J],ee=i[_]||{},R=ee[b],!ce(R));J++)Pt(e,b,_,z,B);if(!ce(R)||!K(_))return m?yt:b;let M=`${_}__${b}`;Et(V)||(M=`${M}__${JSON.stringify(V)}`);let L=x.get(M);return L||(L=new Intl.NumberFormat(_,Fe({},R,V)),x.set(M,L)),G?L.formatToParts(I):L.format(I)}const Cn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Rt(...e){const[o,i,m,f]=e,s={};let h={};if(!De(o))throw ft(mt.INVALID_ARGUMENT);const x=o;return K(i)?s.key=i:ce(i)&&Object.keys(i).forEach(b=>{Cn.includes(b)?h[b]=i[b]:s[b]=i[b]}),K(m)?s.locale=m:ce(m)&&(h=m),ce(f)&&(h=f),[s.key||"",x,s,h]}function Sn(e,o,i){const m=e;for(const f in i){const s=`${o}__${f}`;!m.__numberFormatters.has(s)||m.__numberFormatters.delete(s)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(pt().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
|
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,w;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 x(){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==="\\"&&x())){if(l=yd(i),w=er[n],u=w[l]||w.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 wd(t,e){return $e(t)?t[e]:null}function xd(t,e){if(!$e(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=Wu;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=$e(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?t.pluralRules[e]:Zi,a=$e(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):$e(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):Sd)}const w=C=>t.modifiers?t.modifiers[C]:_d,y=Ce(t.processor)&&et(t.processor.normalize)?t.processor.normalize:Cd,x=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?$e(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?w(P)(z,D):z},message:f,type:S,interpolate:x,normalize:y};return N}let Zr=null;function Nd(t){Zr=t}function Od(t,e,r){Zr&&Zr.emit(Wi.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:r})}const Rd=Ld(Wi.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:$e(e)?Object.keys(e):me(e)?[e]:[r]])]}function Ki(t,e,r){const n=me(r)?r:Kr,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(n);if(!i){i=[];let o=[r];for(;Ge(o);)o=Ji(i,o,e);const s=Ge(e)||!Ce(e)?e:e.default?e.default:null;o=me(s)?[s]:s,Ge(o)&&Ji(i,o,!1),a.__localeChainCache.set(n,i)}return i}function Ji(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",xn=-1,Kr="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"&&$e(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&me(t)?t.toLowerCase():e==="vnode"&&$e(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&me(t)?Qi(t):e==="vnode"&&$e(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 $d(t={}){const e=me(t.version)?t.version:Bd,r=me(t.locale)?t.locale:Kr,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,w=Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,x=!!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||wd,I=et(t.localeFallbacker)?t.localeFallbacker:ro||Pd,D=$e(t.fallbackContext)?t.fallbackContext:void 0,P=et(t.onWarn)?t.onWarn:Gu,z=t,Y=$e(z.__datetimeFormatters)?z.__datetimeFormatters:new Map,Q=$e(z.__numberFormatters)?z.__numberFormatters:new Map,B=$e(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:w,fallbackFormat:y,unresolving:x,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 Jr(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}const Wd=t=>t;let lo=Object.create(null);function Yd(t,e={}){{const n=(e.onCacheKey||Wd)(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 wn(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,w=Pe(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=Pe(u.escapeParameter)?u.escapeParameter:t.escapeParameter,x=!!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]=x?[l,N,s[N]||{}]:ho(t,l,N,o,w,f),I=C,D=l;if(!x&&!(me(I)||jt(I))&&T&&(I=S,D=I),!x&&(!(me(I)||jt(I))||!me(E)))return a?xn: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=Kd(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):$e(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 w={},y,x=null;const S="translate";for(let T=0;T<f.length&&(y=f[T],w=o[y]||{},(x=l(w,e))===null&&(x=w[e]),!(me(x)||et(x)));T++){const N=ga(t,e,y,i,S);N!==e&&(x=N)}return[x,y,w]}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,Jd(t,r,a,n,s,i));return l.locale=r,l.key=e,l.source=n,l}function Kd(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 Jd(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:x=>{let S=o(r,x);if(S==null&&f){const[,,T]=ho(f,x,e,s,l,u);S=o(T,x)}if(me(S)){let T=!1;const C=mo(t,x,e,S,x,()=>{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,w]=ba(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.DateTimeFormat(S,w).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?xn:l;let I=`${C}__${l}`;En(w)||(I=`${I}__${JSON.stringify(w)}`);let D=s.get(I);return D||(D=new Intl.DateTimeFormat(C,lt({},E,w)),s.set(I,D)),x?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,w]=Ea(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.NumberFormat(S,w).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?xn:l;let I=`${C}__${l}`;En(w)||(I=`${I}__${JSON.stringify(w)}`);let D=s.get(I);return D||(D=new Intl.NumberFormat(C,lt({},E,w)),s.set(I,D)),x?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);/*!
|
|
24
24
|
* vue-i18n v9.2.2
|
|
25
25
|
* (c) 2022 kazuya kawaguchi
|
|
26
26
|
* Released under the MIT License.
|
|
27
|
-
*/const ca="9.2.2";function ua(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(pt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(pt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(pt().__INTLIFY_PROD_DEVTOOLS__=!1)}Hr.__EXTEND_POINT__;let Ln=ge.__EXTEND_POINT__;const Ge=()=>++Ln,Pe={UNEXPECTED_RETURN_TYPE:Ln,INVALID_ARGUMENT:Ge(),MUST_BE_CALL_SETUP_TOP:Ge(),NOT_INSLALLED:Ge(),NOT_AVAILABLE_IN_LEGACY_MODE:Ge(),REQUIRED_VALUE:Ge(),INVALID_VALUE:Ge(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ge(),NOT_INSLALLED_WITH_PROVIDE:Ge(),UNEXPECTED_ERROR:Ge(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ge(),BRIDGE_SUPPORT_VUE_2_ONLY:Ge(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ge(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ge(),__EXTEND_POINT__:Ge()};function Re(e,...o){return _t(e,null,void 0)}const zt=rt("__transrateVNode"),Ft=rt("__datetimeParts"),qt=rt("__numberParts"),An=rt("__setPluralRules");rt("__intlifyMeta");const Nn=rt("__injectWithOption");function Ut(e){if(!_e(e))return e;for(const o in e)if(!!Nt(e,o))if(!o.includes("."))_e(e[o])&&Ut(e[o]);else{const i=o.split("."),m=i.length-1;let f=e;for(let s=0;s<m;s++)i[s]in f||(f[i[s]]={}),f=f[i[s]];f[i[m]]=e[o],delete e[o],_e(f[i[m]])&&Ut(f[i[m]])}return e}function wt(e,o){const{messages:i,__i18n:m,messageResolver:f,flatJson:s}=o,h=ce(i)?i:Ee(m)?{}:{[e]:{}};if(Ee(m)&&m.forEach(x=>{if("locale"in x&&"resource"in x){const{locale:b,resource:I}=x;b?(h[b]=h[b]||{},bt(I,h[b])):bt(I,h)}else K(x)&&bt(JSON.parse(x),h)}),f==null&&s)for(const x in h)Nt(h,x)&&Ut(h[x]);return h}const Ct=e=>!_e(e)||Ee(e);function bt(e,o){if(Ct(e)||Ct(o))throw Re(Pe.INVALID_VALUE);for(const i in e)Nt(e,i)&&(Ct(e[i])||Ct(o[i])?o[i]=e[i]:bt(e[i],o[i]))}function In(e){return e.type}function kn(e,o,i){let m=_e(o.messages)?o.messages:{};"__i18nGlobal"in i&&(m=wt(e.locale.value,{messages:m,__i18n:i.__i18nGlobal}));const f=Object.keys(m);f.length&&f.forEach(s=>{e.mergeLocaleMessage(s,m[s])});{if(_e(o.datetimeFormats)){const s=Object.keys(o.datetimeFormats);s.length&&s.forEach(h=>{e.mergeDateTimeFormat(h,o.datetimeFormats[h])})}if(_e(o.numberFormats)){const s=Object.keys(o.numberFormats);s.length&&s.forEach(h=>{e.mergeNumberFormat(h,o.numberFormats[h])})}}}function Mn(e){return Y.createVNode(Y.Text,null,e,0)}const Pn="__INTLIFY_META__";let Tn=0;function On(e){return(o,i,m,f)=>e(i,m,Y.getCurrentInstance()||void 0,f)}const da=()=>{const e=Y.getCurrentInstance();let o=null;return e&&(o=In(e)[Pn])?{[Pn]:o}:null};function Vt(e={},o){const{__root:i}=e,m=i===void 0;let f=fe(e.inheritLocale)?e.inheritLocale:!0;const s=Y.ref(i&&f?i.locale.value:K(e.locale)?e.locale:gt),h=Y.ref(i&&f?i.fallbackLocale.value:K(e.fallbackLocale)||Ee(e.fallbackLocale)||ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),x=Y.ref(wt(s.value,e)),b=Y.ref(ce(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),I=Y.ref(ce(e.numberFormats)?e.numberFormats:{[s.value]:{}});let q=i?i.missingWarn:fe(e.missingWarn)||at(e.missingWarn)?e.missingWarn:!0,V=i?i.fallbackWarn:fe(e.fallbackWarn)||at(e.fallbackWarn)?e.fallbackWarn:!0,z=i?i.fallbackRoot:fe(e.fallbackRoot)?e.fallbackRoot:!0,G=!!e.fallbackFormat,$=ke(e.missing)?e.missing:null,Q=ke(e.missing)?On(e.missing):null,ee=ke(e.postTranslation)?e.postTranslation:null,_=i?i.warnHtmlMessage:fe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,R=!!e.escapeParameter;const B=i?i.modifiers:ce(e.modifiers)?e.modifiers:{};let M=e.pluralRules||i&&i.pluralRules,L;L=(()=>{m&&mn(null);const n={version:ca,locale:s.value,fallbackLocale:h.value,messages:x.value,modifiers:B,pluralRules:M,missing:Q===null?void 0:Q,missingWarn:q,fallbackWarn:V,fallbackFormat:G,unresolving:!0,postTranslation:ee===null?void 0:ee,warnHtmlMessage:_,escapeParameter:R,messageResolver:e.messageResolver,__meta:{framework:"vue"}};n.datetimeFormats=b.value,n.numberFormats=I.value,n.__datetimeFormatters=ce(L)?L.__datetimeFormatters:void 0,n.__numberFormatters=ce(L)?L.__numberFormatters:void 0;const r=na(n);return m&&mn(r),r})(),vt(L,s.value,h.value);function re(){return[s.value,h.value,x.value,b.value,I.value]}const Ce=Y.computed({get:()=>s.value,set:n=>{s.value=n,L.locale=s.value}}),pe=Y.computed({get:()=>h.value,set:n=>{h.value=n,L.fallbackLocale=h.value,vt(L,s.value,n)}}),Me=Y.computed(()=>x.value),Te=Y.computed(()=>b.value),qe=Y.computed(()=>I.value);function P(){return ke(ee)?ee:null}function O(n){ee=n,L.postTranslation=n}function T(){return $}function S(n){n!==null&&(Q=On(n)),$=n,L.missing=Q}const y=(n,r,d,c,v,w)=>{re();let N;if(__INTLIFY_PROD_DEVTOOLS__)try{un(da()),m||(L.fallbackContext=i?ta():void 0),N=n(L)}finally{un(null),m||(L.fallbackContext=void 0)}else N=n(L);if(De(N)&&N===yt){const[C,F]=r();return i&&z?c(i):v(C)}else{if(w(N))return N;throw Re(Pe.UNEXPECTED_RETURN_TYPE)}};function k(...n){return y(r=>Reflect.apply(vn,null,[r,...n]),()=>Ot(...n),"translate",r=>Reflect.apply(r.t,r,[...n]),r=>r,r=>K(r))}function X(...n){const[r,d,c]=n;if(c&&!_e(c))throw Re(Pe.INVALID_ARGUMENT);return k(r,d,Fe({resolvedMessage:!0},c||{}))}function W(...n){return y(r=>Reflect.apply(En,null,[r,...n]),()=>Dt(...n),"datetime format",r=>Reflect.apply(r.d,r,[...n]),()=>rn,r=>K(r))}function te(...n){return y(r=>Reflect.apply(wn,null,[r,...n]),()=>Rt(...n),"number format",r=>Reflect.apply(r.n,r,[...n]),()=>rn,r=>K(r))}function xe(n){return n.map(r=>K(r)||De(r)||fe(r)?Mn(String(r)):r)}const ve={normalize:xe,interpolate:n=>n,type:"vnode"};function we(...n){return y(r=>{let d;const c=r;try{c.processor=ve,d=Reflect.apply(vn,null,[c,...n])}finally{c.processor=null}return d},()=>Ot(...n),"translate",r=>r[zt](...n),r=>[Mn(r)],r=>Ee(r))}function Ne(...n){return y(r=>Reflect.apply(wn,null,[r,...n]),()=>Rt(...n),"number format",r=>r[qt](...n),()=>[],r=>K(r)||Ee(r))}function Le(...n){return y(r=>Reflect.apply(En,null,[r,...n]),()=>Dt(...n),"datetime format",r=>r[Ft](...n),()=>[],r=>K(r)||Ee(r))}function Ve(n){M=n,L.pluralRules=M}function Ue(n,r){const d=K(r)?r:s.value,c=D(d);return L.messageResolver(c,n)!==null}function me(n){let r=null;const d=tn(L,h.value,s.value);for(let c=0;c<d.length;c++){const v=x.value[d[c]]||{},w=L.messageResolver(v,n);if(w!=null){r=w;break}}return r}function E(n){const r=me(n);return r!=null?r:i?i.tm(n)||{}:{}}function D(n){return x.value[n]||{}}function u(n,r){x.value[n]=r,L.messages=x.value}function l(n,r){x.value[n]=x.value[n]||{},bt(r,x.value[n]),L.messages=x.value}function p(n){return b.value[n]||{}}function A(n,r){b.value[n]=r,L.datetimeFormats=b.value,yn(L,n,r)}function H(n,r){b.value[n]=Fe(b.value[n]||{},r),L.datetimeFormats=b.value,yn(L,n,r)}function Z(n){return I.value[n]||{}}function g(n,r){I.value[n]=r,L.numberFormats=I.value,Sn(L,n,r)}function t(n,r){I.value[n]=Fe(I.value[n]||{},r),L.numberFormats=I.value,Sn(L,n,r)}Tn++,i&&At&&(Y.watch(i.locale,n=>{f&&(s.value=n,L.locale=n,vt(L,s.value,h.value))}),Y.watch(i.fallbackLocale,n=>{f&&(h.value=n,L.fallbackLocale=n,vt(L,s.value,h.value))}));const a={id:Tn,locale:Ce,fallbackLocale:pe,get inheritLocale(){return f},set inheritLocale(n){f=n,n&&i&&(s.value=i.locale.value,h.value=i.fallbackLocale.value,vt(L,s.value,h.value))},get availableLocales(){return Object.keys(x.value).sort()},messages:Me,get modifiers(){return B},get pluralRules(){return M||{}},get isGlobal(){return m},get missingWarn(){return q},set missingWarn(n){q=n,L.missingWarn=q},get fallbackWarn(){return V},set fallbackWarn(n){V=n,L.fallbackWarn=V},get fallbackRoot(){return z},set fallbackRoot(n){z=n},get fallbackFormat(){return G},set fallbackFormat(n){G=n,L.fallbackFormat=G},get warnHtmlMessage(){return _},set warnHtmlMessage(n){_=n,L.warnHtmlMessage=n},get escapeParameter(){return R},set escapeParameter(n){R=n,L.escapeParameter=n},t:k,getLocaleMessage:D,setLocaleMessage:u,mergeLocaleMessage:l,getPostTranslationHandler:P,setPostTranslationHandler:O,getMissingHandler:T,setMissingHandler:S,[An]:Ve};return a.datetimeFormats=Te,a.numberFormats=qe,a.rt=X,a.te=Ue,a.tm=E,a.d=W,a.n=te,a.getDateTimeFormat=p,a.setDateTimeFormat=A,a.mergeDateTimeFormat=H,a.getNumberFormat=Z,a.setNumberFormat=g,a.mergeNumberFormat=t,a[Nn]=e.__injectWithOption,a[zt]=we,a[Ft]=Le,a[qt]=Ne,a}function ma(e){const o=K(e.locale)?e.locale:gt,i=K(e.fallbackLocale)||Ee(e.fallbackLocale)||ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,m=ke(e.missing)?e.missing:void 0,f=fe(e.silentTranslationWarn)||at(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=fe(e.silentFallbackWarn)||at(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,h=fe(e.fallbackRoot)?e.fallbackRoot:!0,x=!!e.formatFallbackMessages,b=ce(e.modifiers)?e.modifiers:{},I=e.pluralizationRules,q=ke(e.postTranslation)?e.postTranslation:void 0,V=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,z=!!e.escapeParameterHtml,G=fe(e.sync)?e.sync:!0;let $=e.messages;if(ce(e.sharedMessages)){const L=e.sharedMessages;$=Object.keys(L).reduce((re,Ce)=>{const pe=re[Ce]||(re[Ce]={});return Fe(pe,L[Ce]),re},$||{})}const{__i18n:Q,__root:ee,__injectWithOption:_}=e,R=e.datetimeFormats,B=e.numberFormats,M=e.flatJson;return{locale:o,fallbackLocale:i,messages:$,flatJson:M,datetimeFormats:R,numberFormats:B,missing:m,missingWarn:f,fallbackWarn:s,fallbackRoot:h,fallbackFormat:x,modifiers:b,pluralRules:I,postTranslation:q,warnHtmlMessage:V,escapeParameter:z,messageResolver:e.messageResolver,inheritLocale:G,__i18n:Q,__root:ee,__injectWithOption:_}}function Wt(e={},o){{const i=Vt(ma(e)),m={id:i.id,get locale(){return i.locale.value},set locale(f){i.locale.value=f},get fallbackLocale(){return i.fallbackLocale.value},set fallbackLocale(f){i.fallbackLocale.value=f},get messages(){return i.messages.value},get datetimeFormats(){return i.datetimeFormats.value},get numberFormats(){return i.numberFormats.value},get availableLocales(){return i.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(f){},get missing(){return i.getMissingHandler()},set missing(f){i.setMissingHandler(f)},get silentTranslationWarn(){return fe(i.missingWarn)?!i.missingWarn:i.missingWarn},set silentTranslationWarn(f){i.missingWarn=fe(f)?!f:f},get silentFallbackWarn(){return fe(i.fallbackWarn)?!i.fallbackWarn:i.fallbackWarn},set silentFallbackWarn(f){i.fallbackWarn=fe(f)?!f:f},get modifiers(){return i.modifiers},get formatFallbackMessages(){return i.fallbackFormat},set formatFallbackMessages(f){i.fallbackFormat=f},get postTranslation(){return i.getPostTranslationHandler()},set postTranslation(f){i.setPostTranslationHandler(f)},get sync(){return i.inheritLocale},set sync(f){i.inheritLocale=f},get warnHtmlInMessage(){return i.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(f){i.warnHtmlMessage=f!=="off"},get escapeParameterHtml(){return i.escapeParameter},set escapeParameterHtml(f){i.escapeParameter=f},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(f){},get pluralizationRules(){return i.pluralRules||{}},__composer:i,t(...f){const[s,h,x]=f,b={};let I=null,q=null;if(!K(s))throw Re(Pe.INVALID_ARGUMENT);const V=s;return K(h)?b.locale=h:Ee(h)?I=h:ce(h)&&(q=h),Ee(x)?I=x:ce(x)&&(q=x),Reflect.apply(i.t,i,[V,I||q||{},b])},rt(...f){return Reflect.apply(i.rt,i,[...f])},tc(...f){const[s,h,x]=f,b={plural:1};let I=null,q=null;if(!K(s))throw Re(Pe.INVALID_ARGUMENT);const V=s;return K(h)?b.locale=h:De(h)?b.plural=h:Ee(h)?I=h:ce(h)&&(q=h),K(x)?b.locale=x:Ee(x)?I=x:ce(x)&&(q=x),Reflect.apply(i.t,i,[V,I||q||{},b])},te(f,s){return i.te(f,s)},tm(f){return i.tm(f)},getLocaleMessage(f){return i.getLocaleMessage(f)},setLocaleMessage(f,s){i.setLocaleMessage(f,s)},mergeLocaleMessage(f,s){i.mergeLocaleMessage(f,s)},d(...f){return Reflect.apply(i.d,i,[...f])},getDateTimeFormat(f){return i.getDateTimeFormat(f)},setDateTimeFormat(f,s){i.setDateTimeFormat(f,s)},mergeDateTimeFormat(f,s){i.mergeDateTimeFormat(f,s)},n(...f){return Reflect.apply(i.n,i,[...f])},getNumberFormat(f){return i.getNumberFormat(f)},setNumberFormat(f,s){i.setNumberFormat(f,s)},mergeNumberFormat(f,s){i.mergeNumberFormat(f,s)},getChoiceIndex(f,s){return-1},__onComponentInstanceCreated(f){const{componentInstanceCreatedListener:s}=e;s&&s(f,m)}};return m}}const Bt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function fa({slots:e},o){return o.length===1&&o[0]==="default"?(e.default?e.default():[]).reduce((m,f)=>m=[...m,...Ee(f.children)?f.children:[f]],[]):o.reduce((i,m)=>{const f=e[m];return f&&(i[m]=f()),i},{})}function Dn(e){return Y.Fragment}const Rn={name:"i18n-t",props:Fe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>De(e)||!isNaN(e)}},Bt),setup(e,o){const{slots:i,attrs:m}=o,f=e.i18n||jt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(i).filter(V=>V!=="_"),h={};e.locale&&(h.locale=e.locale),e.plural!==void 0&&(h.plural=K(e.plural)?+e.plural:e.plural);const x=fa(o,s),b=f[zt](e.keypath,x,h),I=Fe({},m),q=K(e.tag)||_e(e.tag)?e.tag:Dn();return Y.h(q,I,b)}}};function pa(e){return Ee(e)&&!K(e[0])}function zn(e,o,i,m){const{slots:f,attrs:s}=o;return()=>{const h={part:!0};let x={};e.locale&&(h.locale=e.locale),K(e.format)?h.key=e.format:_e(e.format)&&(K(e.format.key)&&(h.key=e.format.key),x=Object.keys(e.format).reduce((z,G)=>i.includes(G)?Fe({},z,{[G]:e.format[G]}):z,{}));const b=m(e.value,h,x);let I=[h.key];Ee(b)?I=b.map((z,G)=>{const $=f[z.type],Q=$?$({[z.type]:z.value,index:G,parts:b}):[z.value];return pa(Q)&&(Q[0].key=`${z.type}-${G}`),Q}):K(b)&&(I=[b]);const q=Fe({},s),V=K(e.tag)||_e(e.tag)?e.tag:Dn();return Y.h(V,q,I)}}const Fn={name:"i18n-n",props:Fe({value:{type:Number,required:!0},format:{type:[String,Object]}},Bt),setup(e,o){const i=e.i18n||jt({useScope:"parent",__useComponent:!0});return zn(e,o,Cn,(...m)=>i[qt](...m))}},qn={name:"i18n-d",props:Fe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Bt),setup(e,o){const i=e.i18n||jt({useScope:"parent",__useComponent:!0});return zn(e,o,_n,(...m)=>i[Ft](...m))}};function ha(e,o){const i=e;if(e.mode==="composition")return i.__getInstance(o)||e.global;{const m=i.__getInstance(o);return m!=null?m.__composer:e.global.__composer}}function ga(e){const o=h=>{const{instance:x,modifiers:b,value:I}=h;if(!x||!x.$)throw Re(Pe.UNEXPECTED_ERROR);const q=ha(e,x.$),V=Un(I);return[Reflect.apply(q.t,q,[...Vn(V)]),q]};return{created:(h,x)=>{const[b,I]=o(x);At&&e.global===I&&(h.__i18nWatcher=Y.watch(I.locale,()=>{x.instance&&x.instance.$forceUpdate()})),h.__composer=I,h.textContent=b},unmounted:h=>{At&&h.__i18nWatcher&&(h.__i18nWatcher(),h.__i18nWatcher=void 0,delete h.__i18nWatcher),h.__composer&&(h.__composer=void 0,delete h.__composer)},beforeUpdate:(h,{value:x})=>{if(h.__composer){const b=h.__composer,I=Un(x);h.textContent=Reflect.apply(b.t,b,[...Vn(I)])}},getSSRProps:h=>{const[x]=o(h);return{textContent:x}}}}function Un(e){if(K(e))return{path:e};if(ce(e)){if(!("path"in e))throw Re(Pe.REQUIRED_VALUE,"path");return e}else throw Re(Pe.INVALID_VALUE)}function Vn(e){const{path:o,locale:i,args:m,choice:f,plural:s}=e,h={},x=m||{};return K(i)&&(h.locale=i),De(f)&&(h.plural=f),De(s)&&(h.plural=s),[o,x,h]}function va(e,o,...i){const m=ce(i[0])?i[0]:{},f=!!m.useI18nComponentName;(fe(m.globalInstall)?m.globalInstall:!0)&&(e.component(f?"i18n":Rn.name,Rn),e.component(Fn.name,Fn),e.component(qn.name,qn)),e.directive("t",ga(o))}function ba(e,o,i){return{beforeCreate(){const m=Y.getCurrentInstance();if(!m)throw Re(Pe.UNEXPECTED_ERROR);const f=this.$options;if(f.i18n){const s=f.i18n;f.__i18n&&(s.__i18n=f.__i18n),s.__root=o,this===this.$root?this.$i18n=Wn(e,s):(s.__injectWithOption=!0,this.$i18n=Wt(s))}else f.__i18n?this===this.$root?this.$i18n=Wn(e,f):this.$i18n=Wt({__i18n:f.__i18n,__injectWithOption:!0,__root:o}):this.$i18n=e;f.__i18nGlobal&&kn(o,f,f),e.__onComponentInstanceCreated(this.$i18n),i.__setInstance(m,this.$i18n),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,h)=>this.$i18n.te(s,h),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s)},mounted(){},unmounted(){const m=Y.getCurrentInstance();if(!m)throw Re(Pe.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__deleteInstance(m),delete this.$i18n}}}function Wn(e,o){e.locale=o.locale||e.locale,e.fallbackLocale=o.fallbackLocale||e.fallbackLocale,e.missing=o.missing||e.missing,e.silentTranslationWarn=o.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=o.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=o.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=o.postTranslation||e.postTranslation,e.warnHtmlInMessage=o.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=o.escapeParameterHtml||e.escapeParameterHtml,e.sync=o.sync||e.sync,e.__composer[An](o.pluralizationRules||e.pluralizationRules);const i=wt(e.locale,{messages:o.messages,__i18n:o.__i18n});return Object.keys(i).forEach(m=>e.mergeLocaleMessage(m,i[m])),o.datetimeFormats&&Object.keys(o.datetimeFormats).forEach(m=>e.mergeDateTimeFormat(m,o.datetimeFormats[m])),o.numberFormats&&Object.keys(o.numberFormats).forEach(m=>e.mergeNumberFormat(m,o.numberFormats[m])),e}const xa=rt("global-vue-i18n");function Ea(e={},o){const i=__VUE_I18N_LEGACY_API__&&fe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,m=fe(e.globalInjection)?e.globalInjection:!0,f=__VUE_I18N_LEGACY_API__&&i?!!e.allowComposition:!0,s=new Map,[h,x]=_a(e,i),b=rt("");function I(z){return s.get(z)||null}function q(z,G){s.set(z,G)}function V(z){s.delete(z)}{const z={get mode(){return __VUE_I18N_LEGACY_API__&&i?"legacy":"composition"},get allowComposition(){return f},async install(G,...$){G.__VUE_I18N_SYMBOL__=b,G.provide(G.__VUE_I18N_SYMBOL__,z),!i&&m&&ka(G,z.global),__VUE_I18N_FULL_INSTALL__&&va(G,z,...$),__VUE_I18N_LEGACY_API__&&i&&G.mixin(ba(x,x.__composer,z));const Q=G.unmount;G.unmount=()=>{z.dispose(),Q()}},get global(){return x},dispose(){h.stop()},__instances:s,__getInstance:I,__setInstance:q,__deleteInstance:V};return z}}function jt(e={}){const o=Y.getCurrentInstance();if(o==null)throw Re(Pe.MUST_BE_CALL_SETUP_TOP);if(!o.isCE&&o.appContext.app!=null&&!o.appContext.app.__VUE_I18N_SYMBOL__)throw Re(Pe.NOT_INSLALLED);const i=ya(o),m=Ca(i),f=In(o),s=wa(e,f);if(__VUE_I18N_LEGACY_API__&&i.mode==="legacy"&&!e.__useComponent){if(!i.allowComposition)throw Re(Pe.NOT_AVAILABLE_IN_LEGACY_MODE);return Aa(o,s,m,e)}if(s==="global")return kn(m,e,f),m;if(s==="parent"){let b=Sa(i,o,e.__useComponent);return b==null&&(b=m),b}const h=i;let x=h.__getInstance(o);if(x==null){const b=Fe({},e);"__i18n"in f&&(b.__i18n=f.__i18n),m&&(b.__root=m),x=Vt(b),La(h,o),h.__setInstance(o,x)}return x}function _a(e,o,i){const m=Y.effectScope();{const f=__VUE_I18N_LEGACY_API__&&o?m.run(()=>Wt(e)):m.run(()=>Vt(e));if(f==null)throw Re(Pe.UNEXPECTED_ERROR);return[m,f]}}function ya(e){{const o=Y.inject(e.isCE?xa:e.appContext.app.__VUE_I18N_SYMBOL__);if(!o)throw Re(e.isCE?Pe.NOT_INSLALLED_WITH_PROVIDE:Pe.UNEXPECTED_ERROR);return o}}function wa(e,o){return Et(e)?"__i18n"in o?"local":"global":e.useScope?e.useScope:"local"}function Ca(e){return e.mode==="composition"?e.global:e.global.__composer}function Sa(e,o,i=!1){let m=null;const f=o.root;let s=o.parent;for(;s!=null;){const h=e;if(e.mode==="composition")m=h.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const x=h.__getInstance(s);x!=null&&(m=x.__composer,i&&m&&!m[Nn]&&(m=null))}if(m!=null||f===s)break;s=s.parent}return m}function La(e,o,i){Y.onMounted(()=>{},o),Y.onUnmounted(()=>{e.__deleteInstance(o)},o)}function Aa(e,o,i,m={}){const f=o==="local",s=Y.shallowRef(null);if(f&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Re(Pe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const h=fe(m.inheritLocale)?m.inheritLocale:!0,x=Y.ref(f&&h?i.locale.value:K(m.locale)?m.locale:gt),b=Y.ref(f&&h?i.fallbackLocale.value:K(m.fallbackLocale)||Ee(m.fallbackLocale)||ce(m.fallbackLocale)||m.fallbackLocale===!1?m.fallbackLocale:x.value),I=Y.ref(wt(x.value,m)),q=Y.ref(ce(m.datetimeFormats)?m.datetimeFormats:{[x.value]:{}}),V=Y.ref(ce(m.numberFormats)?m.numberFormats:{[x.value]:{}}),z=f?i.missingWarn:fe(m.missingWarn)||at(m.missingWarn)?m.missingWarn:!0,G=f?i.fallbackWarn:fe(m.fallbackWarn)||at(m.fallbackWarn)?m.fallbackWarn:!0,$=f?i.fallbackRoot:fe(m.fallbackRoot)?m.fallbackRoot:!0,Q=!!m.fallbackFormat,ee=ke(m.missing)?m.missing:null,_=ke(m.postTranslation)?m.postTranslation:null,R=f?i.warnHtmlMessage:fe(m.warnHtmlMessage)?m.warnHtmlMessage:!0,B=!!m.escapeParameter,M=f?i.modifiers:ce(m.modifiers)?m.modifiers:{},L=m.pluralRules||f&&i.pluralRules;function J(){return[x.value,b.value,I.value,q.value,V.value]}const re=Y.computed({get:()=>s.value?s.value.locale.value:x.value,set:l=>{s.value&&(s.value.locale.value=l),x.value=l}}),Ce=Y.computed({get:()=>s.value?s.value.fallbackLocale.value:b.value,set:l=>{s.value&&(s.value.fallbackLocale.value=l),b.value=l}}),pe=Y.computed(()=>s.value?s.value.messages.value:I.value),Me=Y.computed(()=>q.value),Te=Y.computed(()=>V.value);function qe(){return s.value?s.value.getPostTranslationHandler():_}function P(l){s.value&&s.value.setPostTranslationHandler(l)}function O(){return s.value?s.value.getMissingHandler():ee}function T(l){s.value&&s.value.setMissingHandler(l)}function S(l){return J(),l()}function y(...l){return s.value?S(()=>Reflect.apply(s.value.t,null,[...l])):S(()=>"")}function k(...l){return s.value?Reflect.apply(s.value.rt,null,[...l]):""}function X(...l){return s.value?S(()=>Reflect.apply(s.value.d,null,[...l])):S(()=>"")}function W(...l){return s.value?S(()=>Reflect.apply(s.value.n,null,[...l])):S(()=>"")}function te(l){return s.value?s.value.tm(l):{}}function xe(l,p){return s.value?s.value.te(l,p):!1}function ye(l){return s.value?s.value.getLocaleMessage(l):{}}function ve(l,p){s.value&&(s.value.setLocaleMessage(l,p),I.value[l]=p)}function we(l,p){s.value&&s.value.mergeLocaleMessage(l,p)}function Ne(l){return s.value?s.value.getDateTimeFormat(l):{}}function Le(l,p){s.value&&(s.value.setDateTimeFormat(l,p),q.value[l]=p)}function Ve(l,p){s.value&&s.value.mergeDateTimeFormat(l,p)}function Ue(l){return s.value?s.value.getNumberFormat(l):{}}function me(l,p){s.value&&(s.value.setNumberFormat(l,p),V.value[l]=p)}function E(l,p){s.value&&s.value.mergeNumberFormat(l,p)}const D={get id(){return s.value?s.value.id:-1},locale:re,fallbackLocale:Ce,messages:pe,datetimeFormats:Me,numberFormats:Te,get inheritLocale(){return s.value?s.value.inheritLocale:h},set inheritLocale(l){s.value&&(s.value.inheritLocale=l)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(I.value)},get modifiers(){return s.value?s.value.modifiers:M},get pluralRules(){return s.value?s.value.pluralRules:L},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:z},set missingWarn(l){s.value&&(s.value.missingWarn=l)},get fallbackWarn(){return s.value?s.value.fallbackWarn:G},set fallbackWarn(l){s.value&&(s.value.missingWarn=l)},get fallbackRoot(){return s.value?s.value.fallbackRoot:$},set fallbackRoot(l){s.value&&(s.value.fallbackRoot=l)},get fallbackFormat(){return s.value?s.value.fallbackFormat:Q},set fallbackFormat(l){s.value&&(s.value.fallbackFormat=l)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:R},set warnHtmlMessage(l){s.value&&(s.value.warnHtmlMessage=l)},get escapeParameter(){return s.value?s.value.escapeParameter:B},set escapeParameter(l){s.value&&(s.value.escapeParameter=l)},t:y,getPostTranslationHandler:qe,setPostTranslationHandler:P,getMissingHandler:O,setMissingHandler:T,rt:k,d:X,n:W,tm:te,te:xe,getLocaleMessage:ye,setLocaleMessage:ve,mergeLocaleMessage:we,getDateTimeFormat:Ne,setDateTimeFormat:Le,mergeDateTimeFormat:Ve,getNumberFormat:Ue,setNumberFormat:me,mergeNumberFormat:E};function u(l){l.locale.value=x.value,l.fallbackLocale.value=b.value,Object.keys(I.value).forEach(p=>{l.mergeLocaleMessage(p,I.value[p])}),Object.keys(q.value).forEach(p=>{l.mergeDateTimeFormat(p,q.value[p])}),Object.keys(V.value).forEach(p=>{l.mergeNumberFormat(p,V.value[p])}),l.escapeParameter=B,l.fallbackFormat=Q,l.fallbackRoot=$,l.fallbackWarn=G,l.missingWarn=z,l.warnHtmlMessage=R}return Y.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Re(Pe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const l=s.value=e.proxy.$i18n.__composer;o==="global"?(x.value=l.locale.value,b.value=l.fallbackLocale.value,I.value=l.messages.value,q.value=l.datetimeFormats.value,V.value=l.numberFormats.value):f&&u(l)}),D}const Na=["locale","fallbackLocale","availableLocales"],Ia=["t","rt","d","n","tm"];function ka(e,o){const i=Object.create(null);Na.forEach(m=>{const f=Object.getOwnPropertyDescriptor(o,m);if(!f)throw Re(Pe.UNEXPECTED_ERROR);const s=Y.isRef(f.value)?{get(){return f.value.value},set(h){f.value.value=h}}:{get(){return f.get&&f.get()}};Object.defineProperty(i,m,s)}),e.config.globalProperties.$i18n=i,Ia.forEach(m=>{const f=Object.getOwnPropertyDescriptor(o,m);if(!f||!f.value)throw Re(Pe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${m}`,f)})}if(Kr(aa),Jr(Pr),Zr(tn),ua(),__INTLIFY_PROD_DEVTOOLS__){const e=pt();e.__INTLIFY__=!0,Vr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ma={field:{"mandatory-not-filled":"Mandatory field(s) not filled in"}},Pa={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 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 wo=je.__EXTEND_POINT__;const Et=()=>++wo,tt={UNEXPECTED_RETURN_TYPE:wo,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 wn(t,null,void 0)}const wa=Jt("__transrateVNode"),xa=Jt("__datetimeParts"),_a=Jt("__numberParts"),xo=Jt("__setPluralRules");Jt("__intlifyMeta");const _o=Jt("__injectWithOption");function Sa(t){if(!$e(t))return t;for(const e in t)if(!!fa(t,e))if(!e.includes("."))$e(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],$e(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=>!$e(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=$e(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($e(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if($e(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:Kr),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,w=r?r.fallbackWarn:Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=r?r.fallbackRoot:Pe(t.fallbackRoot)?t.fallbackRoot:!0,x=!!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:w,fallbackFormat:x,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=$d(d);return n&&oo(m),m})(),Jr(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,Jr(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 W(){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===xn){const[H,J]=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&&!$e(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 K={normalize:ee,interpolate:d=>d,type:"vnode"};function xe(...d){return V(m=>{let h;const p=m;try{p.processor=K,h=Reflect.apply(fo,null,[p,...d])}finally{p.processor=null}return h},()=>ya(...d),"translate",m=>m[wa](...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[xa](...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=Ki(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 $(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,Jr(D,i.value,o.value))}),ue.watch(r.fallbackLocale,d=>{a&&(o.value=d,D.fallbackLocale=d,Jr(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,Jr(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 w},set fallbackWarn(d){w=d,D.fallbackWarn=w},get fallbackRoot(){return y},set fallbackRoot(d){y=d},get fallbackFormat(){return x},set fallbackFormat(d){x=d,D.fallbackFormat=x},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:W,setMissingHandler:j,[xo]:ye};return v.datetimeFormats=G,v.numberFormats=re,v.rt=se,v.te=Be,v.tm=$,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[wa]=xe,v[xa]=Oe,v[_a]=_e,v}function rf(t){const e=me(t.locale)?t.locale:Kr,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,w=me(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,x=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:w,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:x,__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 w=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,[w,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 w=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,[w,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(w=>w!=="_"),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[wa](t.keypath,s,o),u=lt({},n),f=me(t.tag)||$e(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:$e(t.format)&&(me(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((y,x)=>r.includes(x)?lt({},y,{[x]:t.format[x]}):y,{}));const l=n(t.value,o,s);let u=[o.key];Ge(l)?u=l.map((y,x)=>{const S=a[y.type],T=S?S({[y.type]:y.value,index:x,parts:l}):[y.value];return af(T)&&(T[0].key=`${y.type}-${x}`),T}):me(l)&&(u=[l]);const f=lt({},i),w=me(t.tag)||$e(t.tag)?t.tag:Do();return ue.h(w,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[xa](...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.$),w=Mo(u);return[Reflect.apply(f.t,f,[...Po(w)]),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[xo](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=Jt("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=Jt("");function u(y){return i.get(y)||null}function f(y,x){i.set(y,x)}function w(y){i.delete(y)}{const y={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(x,...S){x.__VUE_I18N_SYMBOL__=l,x.provide(x.__VUE_I18N_SYMBOL__,y),!r&&n&&wf(x,y.global),__VUE_I18N_FULL_INSTALL__&&lf(x,y,...S),__VUE_I18N_LEGACY_API__&&r&&x.mixin(cf(s,s.__composer,y));const T=x.unmount;x.unmount=()=>{y.dispose(),T()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:f,__deleteInstance:w};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:Kr),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]:{}}),w=ue.ref(Ce(n.numberFormats)?n.numberFormats:{[s.value]:{}}),y=a?r.missingWarn:Pe(n.missingWarn)||Xt(n.missingWarn)?n.missingWarn:!0,x=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,w.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(()=>w.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 W(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 K(b,O){i.value&&(i.value.setLocaleMessage(b,O),u.value[b]=O)}function xe(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),w.value[b]=O)}function $(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:x},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:W,rt:Z,d:se,n:ie,tm:F,te:ee,getLocaleMessage:ne,setLocaleMessage:K,mergeLocaleMessage:xe,getDateTimeFormat:_e,setDateTimeFormat:Oe,mergeDateTimeFormat:ye,getNumberFormat:Be,setNumberFormat:Ie,mergeNumberFormat:$};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(w.value).forEach(O=>{b.mergeNumberFormat(O,w.value[O])}),b.escapeParameter=A,b.fallbackFormat=T,b.fallbackRoot=S,b.fallbackWarn=x,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,w.value=b.numberFormats.value):a&&_(b)}),ae}const bf=["locale","fallbackLocale","availableLocales"],Ef=["t","rt","d","n","tm"];function wf(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(xd),qd(Ki),ef(),__INTLIFY_PROD_DEVTOOLS__){const t=Yr();t.__INTLIFY__=!0,Nd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const xf={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.
|
|
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 ({max} maximum):",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"}},
|
|
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"}},Fa={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",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"}}}}},qa={buffer:{after:"Buffer",before:"Buffer"}},Ua={yes:"Oui",no:"Non",next:"Suivant",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",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:{days:"{days} jour(s)",hours:"{hours} heure(s)",h:"{hours} h",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"},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"}},Va={"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"}},Wa={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"}},Ba={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 ({max} maximum):",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"}},Sf={submit:"Submit form"},If={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)"}},Cf={common:{day:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",closed:"Closed"}}},Tf={common:xf,agenda:_f,form:Sf,queue:If,settings:Cf},kf={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 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",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",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:{days:"{days} jour(s)",hours:"{hours} heure(s)",h:"{hours} h",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"},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>
|
|
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"}},ja={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"}},Ha={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"}},Ga={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."}},$a={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"},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"},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"},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 profile a bien \xE9t\xE9 modifi\xE9","change-error":"Votre profile n'a p\xFB \xEAtre modifi\xE9"},"company-details":{title:"Informations g\xE9n\xE9rales","save-success":"Les informations de l'entreprise ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'entreprise",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre entreprise","default-name":"Image de l'entreprise",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre entreprise",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre entreprise 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 entreprise",subtitle:"L\u2019adresse de l\u2019entreprise 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:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone"},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"},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 entreprise. Chacun des collaborateurs cr\xE9\xE9s dans votre compagnie auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019entreprise",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 ?"}},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 ?"}},"serviceGroup-details":{title:"Nouvelle cat\xE9gorie","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 la 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"}},"service-details":{title:"Service",new:"Nouveau service",clone:"Duplication : {name}","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"}},"staff-details":{new:"Nouveau collaborateur",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"}},"staffGroup-details":{title:"Nouvelle \xE9quipe","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",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"}},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"},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"},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"},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"},tabs:{general:"G\xE9n\xE9ral",hours:"Horaires",availability:"Disponibilit\xE9s",advanced:"Avanc\xE9s",options:"Options",availabilities:"Disponibilit\xE9s",rights:"Droits d'acc\xE8s"},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"}},"working-hours":{title:"Horaires d'ouverture",save:"@:common.action.validate"},"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."}},Ya={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}"}},Xa={agenda:za,agendize:Fa,calendar:qa,common:Ua,crm:Va,"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:Wa,queue:Ba,reporting:ja,report:Ha,search:Ga,settings:$a,system:Ya},Qa={en:Ra,fr:Xa},Ka=e=>Ea({legacy:!1,locale:e,fallbackLocale:"fr",globalInjection:!0,messages:Qa});var lo="",Ja=(e,o)=>{const i=e.__vccOpts||e;for(const[m,f]of o)i[m]=f;return i};const Za={class:"az-flex az-flex-col az-gap-2"},eo={class:"az-qrcode"},to={class:"az-qrcode-left"},no={class:"az-qrcode-right"},ro={class:"az-qrcode-bottom"};var ao=Ja(Y.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,locale:null},setup(e){var x,b,I,q;const o=e,i=Ka(o.locale),m=Y.ref({width:o.width,height:o.height,type:"canvas",data:o.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(x=o.bgColor)!=null?x:"white"},dotsOptions:{color:(b=o.dotsColor)!=null?b:"black",type:"square"},cornersSquareOptions:{color:(I=o.dotsColor)!=null?I:"black",type:"square"},cornersDotOptions:{color:(q=o.dotsColor)!=null?q:"black",type:"square"}}),f=new Qn(m.value),s=Y.ref();function h(){f.download()}return Y.onMounted(()=>{f.append(s.value)}),Y.watch(()=>o.value,V=>{m.value.data=V,f.update(m.value)}),(V,z)=>(Y.openBlock(),Y.createElementBlock("div",Za,[Y.createElementVNode("div",eo,[Y.createElementVNode("div",null,Y.toDisplayString(e.outlineValue),1),Y.createElementVNode("div",{class:"az-qrcode-center",style:Y.normalizeStyle(`grid-template-columns: auto ${o.width}px auto;`)},[Y.createElementVNode("div",to,Y.toDisplayString(e.outlineValue),1),Y.createElementVNode("div",null,[Y.createElementVNode("div",{ref_key:"qrCode",ref:s},null,512)]),Y.createElementVNode("div",no,Y.toDisplayString(e.outlineValue),1)],4),Y.createElementVNode("div",ro,Y.toDisplayString(e.outlineValue),1)]),Y.createElementVNode("button",{class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:h},Y.toDisplayString(Y.unref(i).global.t("common.action.download")),1)]))}}),[["__scopeId","data-v-f5dabb8e"]]);class oo{constructor(o){Ht(this,"internalState");Ht(this,"listeners",[]);this.internalState=o}get state(){return this.internalState}changeState(o){this.internalState=o,this.listeners.length>0&&this.listeners.forEach(i=>i(this.state))}subscribe(o){this.listeners.push(o)}unsubscribe(o){const i=this.listeners.indexOf(o);i>-1&&this.listeners.splice(i,1)}}Ae.Bloc=oo,Ae.QRCode=ao,Ae.dateToString=Bn,Ae.onPictureUpdated=jn,Ae.pad=Yn,Ae.parseToInt=$n,Ae.readBlobFromUrl=Gn,Ae.useBlocState=lt,Object.defineProperties(Ae,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
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"}}},"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"}}},"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'entreprise ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'entreprise",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre entreprise","default-name":"Image de l'entreprise",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre entreprise",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre entreprise 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 entreprise",subtitle:"L\u2019adresse de l\u2019entreprise 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:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone"},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 entreprise. Chacun des collaborateurs cr\xE9\xE9s dans votre compagnie auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019entreprise",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"},"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\u2019expiera 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"},"service-details":{title:"Service",new:"Nouveau service",clone:"Duplication : {name}","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"}},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:"Nouvelle cat\xE9gorie","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 la 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"}},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",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"}},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","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",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:"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"},$f={class:"az-qrcode-left"},Wf={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,w=>{n.value.data=w,a.update(n.value)}),(w,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",$f,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",null,[ue.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),ue.createElementVNode("div",Wf,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-1f03c38e"]]),Kf=Object.defineProperty,Jf=(t,e,r)=>e in t?Kf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e,r)=>(Jf(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},$o={hour:he,minute:he,hourCycle:"h23"},Wo={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},Ko={year:he,month:he,day:he,hour:he,minute:he},Jo={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 $t(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 w=t==="days";switch(e){case 1:return w?"tomorrow":`next ${a[t][0]}`;case-1:return w?"yesterday":`last ${a[t][0]}`;case 0:return w?"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:$o,TT:Wo,TTT:Yo,TTTT:Zo,f:Ko,ff:Xo,fff:es,ffff:rs,F:Jo,FF:Qo,FFF:ts,FFFF:ns};class wt{static create(e,r={}){return new wt(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=(x,S)=>this.loc.extract(e,x,S),o=x=>e.isOffsetFixed&&e.offset===0&&x.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,x.format):"",s=()=>n?mh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(x,S)=>n?gh(e,x):i(S?{month:x}:{month:x,day:"numeric"},"month"),u=(x,S)=>n?ph(e,x):i(S?{weekday:x}:{weekday:x,month:"long",day:"numeric"},"weekday"),f=x=>{const S=wt.macroTokenToFormatOpts(x);return S?this.formatWithSystemDefault(e,S):x},w=x=>n?vh(e,x):i({era:x},"era"),y=x=>{switch(x){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 w("short");case"GG":return w("long");case"GGGGG":return w("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(x)}};return gs(wt.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=wt.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 wh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function xh(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=wh[i];i==="era"?n[s]=o:Fe(s)||(n[s]=parseInt(o,10))}return n}let On={};class Wt extends nn{static create(e){return On[e]||(On[e]=new Wt(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=Wt.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):xh(n,r);s==="BC"&&(a=-Math.abs(a)+1);const w=Oa({year:a,month:i,day:o,hour:l===24?0:l,minute:u,second:f,millisecond:0});let y=+r;const x=y%1e3;return y-=x>=0?x:1e3+x,(w-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)||Wt.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,ws=null,xs;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 ws}static set defaultOutputCalendar(e){ws=e}static get throwOnInvalid(){return xs}static set throwOnInvalid(e){xs=e}static resetCaches(){Ze.resetCache(),Wt.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&&Wt.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]?Wt.create(t[e]):null;return[{},r,e+1]}const $h=RegExp(`^T?${Va.source}$`),Wh=/^-?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]==="-",w=l&&l[0]==="-",y=(x,S=!1)=>x!==void 0&&(S||x&&f)?-x:x;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),w)}]}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 Kh=/^(?:(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 Jh(t){const[,e,r,n,a,i,o,s,l,u,f,w]=t,y=qa(e,a,n,r,i,o,s);let x;return l?x=Zh[l]:u?x=0:x=kn(f,w),[y,new vt(x)]}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),[Kh,Jh])}function fm(t){return Nr(t,[Qh,ks],[em,ks],[tm,rm])}function hm(t){return Nr(t,[Wh,Yh])}const mm=Dr(Rr);function pm(t){return Nr(t,[$h,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}},wm={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,xm={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?xm:wm,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?wt.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?Ke.invalid("missing or invalid start"):!e||!e.isValid?Ke.invalid("missing or invalid end"):e<t?Ke.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 Ke{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 Ke({invalid:n})}static fromDateTimes(e,r){const n=un(e),a=un(r),i=Cm(n,a);return i==null?new Ke({start:n,end:a}):i}static after(e,r){const n=Ue.fromDurationLike(r),a=un(e);return Ke.fromDateTimes(a,a.plus(n))}static before(e,r){const n=Ue.fromDurationLike(r),a=un(e);return Ke.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 Ke.fromDateTimes(i,s);if(o){const u=Ue.fromISO(a,r);if(u.isValid)return Ke.after(i,u)}else if(l){const u=Ue.fromISO(n,r);if(u.isValid)return Ke.before(s,u)}}return Ke.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?Ke.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(Ke.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(Ke.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:Ke.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 Ke.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(Ke.fromDateTimes(r,l.time)),r=null);return Ke.merge(a)}difference(...e){return Ke.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 Ke.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 Wt.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(w=>["hours","minutes","seconds","milliseconds"].indexOf(w)>=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}"),w=Pt(e,"{2,4}"),y=Pt(e,"{4,6}"),x=T=>({regex:RegExp(Lm(T.val)),deser:([N])=>N,literal:!0}),S=(T=>{if(t.literal)return x(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(w,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(w,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 x(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=Wt.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 $a=null;function Vm(){return $a||($a=Te.fromMillis(1555555555555)),$a}function jm(t,e){if(t.literal)return t;const r=wt.macroTokenToFormatOpts(t.val);if(!r)return t;const n=wt.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(wt.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),[w,y,x]=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:w,zone:y,specificOffset:x}}}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 Wa(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=$t(t.weekNumber,1,Tn(t.weekYear)),n=$t(t.weekday,1,7);return e?r?n?!1:Ot("weekday",t.weekday):Ot("week",t.week):Ot("weekYear",t.weekYear)}function $m(t){const e=In(t.year),r=$t(t.ordinal,1,tn(t.year));return e?r?!1:Ot("ordinal",t.ordinal):Ot("year",t.year)}function $s(t){const e=In(t.year),r=$t(t.month,1,12),n=$t(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 Ws(t){const{hour:e,minute:r,second:n,millisecond:a}=t,i=$t(e,0,23)||e===24&&r===0&&n===0&&a===0,o=$t(r,0,59),s=$t(n,0,59),l=$t(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 Ka(t){return t.weekData===null&&(t.weekData=Wa(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 Ks(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 Js(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?wt.create(Ze.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ja(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},Wm={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"],Km=["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=$s(t)||Ws(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=Ks(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,w=o.weekYear||o.weekNumber,y=Ze.fromObject(r);if((f||s)&&w)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 x=w||o.weekday&&!f;let S,T,N=Ks(a,i);x?(S=Zm,T=Wm,N=Wa(N)):s?(S=Km,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=x?Gm(o):s?$m(o):$s(o),A=E||Ws(o);if(A)return Te.invalid(A);const I=x?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?Ka(this).weekYear:NaN}get weekNumber(){return this.isValid?Ka(this).weekNumber:NaN}get weekday(){return this.isValid?Ka(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}=wt.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({...Wa(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,w]=Fn(u,this.o,this.zone);return ln(this,{ts:f,o:w})}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return ln(this,Js(this,r))}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e).negate();return ln(this,Js(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?wt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):Za}toLocaleString(e=Aa,r={}){return this.isValid?wt.create(this.loc.clone(r),e).formatDateTime(this):Za}toLocaleParts(e={}){return this.isValid?wt.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=Ja(this,o);return s+="T",s+=Xs(this,o,r,n,a,i),s}toISODate({format:e="extended"}={}){return this.isValid?Ja(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?Ja(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?Ke.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 $o}static get TIME_24_WITH_SECONDS(){return Wo}static get TIME_24_WITH_SHORT_OFFSET(){return Yo}static get TIME_24_WITH_LONG_OFFSET(){return Zo}static get DATETIME_SHORT(){return Ko}static get DATETIME_SHORT_WITH_SECONDS(){return Jo}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 Jm(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(w=>{u.push(Er.fromCustomFormValueDto(w))}),l.values=u;const f=[];return e.subItem&&((n=e.subItem)==null||n.forEach(w=>{f.push(zt.fromFormDto(w))})),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(w=>{s.push(jn.fromContactEmailAddressDto(w))}),s.length>0?(o.emailAddresses=s,o.email=s[0].email):o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(w=>{l.push(Vn.fromContactPhoneNumberDto(w))}),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(w=>{u.push(qn.fromContactTagDto(w))}),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(w=>{f.push(Hn.fromContactAdditionalFieldDto(w))}),f.length>0&&(o.additionalFields=f),o.additionalFieldsTitle=e.additionalFieldsTitle?De(e.additionalFieldsTitle):void 0,e.creationDate){const w=Xa(e.creationDate);w.setHours(0,0,0),o.creationDate=w}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(w=>{s.push(jn.toContactEmailAddressDto(w))}),o.emailAddresses=s,o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(w=>{l.push(Vn.toContactPhoneNumberDto(w))}),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(w=>{u.push(qn.toContactTagDto(w))}),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(w=>{f.push(Hn.toContactAdditionalFieldDto(w))}),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 wp;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 xp;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 wp{constructor(){g(this,"id"),g(this,"tag"),g(this,"color")}}class xp{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 Je=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))(Je||{}),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 xt={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=xt;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},$p=xt;function $n(){this.handlers=[]}$n.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},$n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},$n.prototype.forEach=function(t){$p.forEach(this.handlers,function(e){e!==null&&t(e)})};var Wp=$n,Yp=xt,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},wl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mi,xl;function _l(){if(xl)return mi;xl=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 Kp(){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 Jp(){if(Il)return gi;Il=1;var t=xt;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=xt,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=xt;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 Wn(){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 wi,Ll;function n1(){if(Ll)return wi;Ll=1;var t=xt,e=Kp(),r=Jp(),n=bl,a=e1(),i=t1(),o=r1(),s=_l(),l=wl,u=Wn();return wi=function(f){return new Promise(function(w,y){var x=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(x)&&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){w(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 x>"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))),x||(x=null),E.send(x)})},wi}var dt=xt,Ml=Zp,a1=El,i1=wl,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 xi=Yn,c1=xt,u1=xi,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=xt,_i=d1,f1=Bl(),h1=xi,m1=Wn();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=xt,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,w=f(u);It.isUndefined(w)&&f!==s||(r[u]=w)}),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},$l=xt,b1=bl,Wl=Wp,Yl=p1,Zn=Vl,Zl=y1,Hr=Zl.validators;function mn(t){this.defaults=t,this.interceptors={request:new Wl,response:new Wl}}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(w){typeof w.runWhen=="function"&&w.runWhen(e)===!1||(a=a&&w.synchronous,n.unshift(w.fulfilled,w.rejected))});var i=[];this.interceptors.response.forEach(function(w){i.push(w.fulfilled,w.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(w){f(w);break}}try{o=Yl(l)}catch(w){return Promise.reject(w)}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(/^\?/,"")},$l.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}))}}),$l.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,Kl;function w1(){if(Kl)return Ci;Kl=1;var t=Wn();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 Jl,Xl;function x1(){return Xl||(Xl=1,Jl=function(t){return function(e){return t.apply(null,e)}}),Jl}var Ti,Ql;function _1(){if(Ql)return Ti;Ql=1;var t=xt;return Ti=function(e){return t.isObject(e)&&e.isAxiosError===!0},Ti}var ec=xt,S1=ml,Kn=E1,I1=Vl,C1=xi;function tc(t){var e=new Kn(t),r=S1(Kn.prototype.request,e);return ec.extend(r,Kn.prototype,e),ec.extend(r,e),r.create=function(n){return tc(I1(t,n))},r}var qt=tc(C1);qt.Axios=Kn,qt.Cancel=Wn(),qt.CancelToken=w1(),qt.isCancel=Bl(),qt.VERSION=Hl().version,qt.all=function(t){return Promise.all(t)},qt.spread=x1(),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 wr{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,w,y,x,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((w=a.config)==null?void 0:w.data).makeData((y=a.response)==null?void 0:y.data).build();this.logger.error("js-calendar-api",T)}if(rc.isAxiosError(a)&&((S=(x=a.response)==null?void 0:x.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={};/*! *****************************************************************************
|
|
37
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
38
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
39
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
40
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
41
|
+
|
|
42
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
43
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
44
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
45
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
46
|
+
|
|
47
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
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),w=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!w&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:c(),x=!w&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:v(),S=!w&&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(!K(p))throw new TypeError;if(!K(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(!K(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(!K(k))throw new TypeError;return F(R)||(R=Be(R)),V(h,p,k,R)}e("defineMetadata",E);function A(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),L(h,p,k)}e("hasMetadata",A);function I(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),q(h,p,k)}e("hasOwnMetadata",I);function D(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),W(h,p,k)}e("getMetadata",D);function P(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),j(h,p,k)}e("getOwnMetadata",P);function z(h,p){if(!K(h))throw new TypeError;return F(p)||(p=Be(p)),Z(h,p)}e("getMetadataKeys",z);function Y(h,p){if(!K(h))throw new TypeError;return F(p)||(p=Be(p)),se(h,p)}e("getOwnMetadataKeys",Y);function Q(h,p,k){if(!K(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],J=H(p,k,R);if(!F(J)&&!ee(J)){if(!K(J))throw new TypeError;R=J}}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 W(h,p,k){var R=q(h,p,k);if(R)return j(h,p,k);var U=M(p);if(!ee(U))return W(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 x,J=[],X=0,oe=k;X<oe.length;X++){var fe=oe[X],pe=H.has(fe);pe||(H.add(fe),J.push(fe))}for(var ve=0,Se=U;ve<Se.length;ve++){var fe=Se[ve],pe=H.has(fe);pe||(H.add(fe),J.push(fe))}return J}function se(h,p){var k=[],R=re(h,p,!1);if(F(R))return k;for(var U=R.keys(),H=O(U),J=0;;){var X=le(H);if(!X)return k.length=J,k;var oe=te(X);try{k[J]=oe}catch(fe){try{de(H)}finally{throw fe}}J++}}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 K(h){return typeof h=="object"?h!==null:typeof h=="function"}function xe(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(K(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($(k)){var R=k.call(h);if(!K(R))return R}var U=h.valueOf;if($(U)){var R=U.call(h);if(!K(R))return R}}else{var U=h.valueOf;if($(U)){var R=U.call(h);if(!K(R))return R}var H=h.toString;if($(H)){var R=H.call(h);if(!K(R))return R}}throw new TypeError}function Oe(h){return!!h}function ye(h){return""+h}function Be(h){var p=xe(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 $(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(!$(k))throw new TypeError;return k}}function O(h){var p=b(h,i);if(!$(p))throw new TypeError;var k=p.call(h);if(!K(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 J(X,oe,fe){this._index=0,this._keys=X,this._values=oe,this._selector=fe}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=p,this._values=p):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=p,this._values=p),X},J.prototype.return=function(X){return this._index>=0&&(this._index=-1,this._keys=p,this._values=p),{value:X,done:!0}},J}();return function(){function J(){this._keys=[],this._values=[],this._cacheKey=h,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 fe=this._find(X,!0);return this._values[fe]=oe,this},J.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},J.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=h,this._cacheIndex=-2},J.prototype.keys=function(){return new k(this._keys,this._values,R)},J.prototype.values=function(){return new k(this._keys,this._values,U)},J.prototype.entries=function(){return new k(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 R(J,X){return J}function U(J,X){return X}function H(J,X){return[J,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 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(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 Jn={},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(Jn,"__esModule",{value:!0}),Jn.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)}}Jn.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 w=f.handler.bind(s);u.push({message:f.message,handler:w}),e.subscribe(f.message,w)})}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=Jn;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 wr{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(w=>w===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(Je.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(Je.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(Je.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(Je.DELETE)],ea.prototype,"onCascadeDelete",1),ea=Ai([Me.Subscriber({channel:_t})],ea);class z1 extends wr{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(w=>w.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(w=>w===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(Je.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(Je.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(Je.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(Je.DELETE)],ta.prototype,"onCascadeDelete",1),ta=Di([Me.Subscriber({channel:_t})],ta);class V1 extends wr{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 $1 extends wr{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("://"),s=o>0?r.substring(o+3):r;a="/api/2.3/forward/https//"+s}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 Jm(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 W1{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(x=>{s.push({userId:x,year:y.year,month:y.month})})}),s.forEach(y=>{let x=a.get(y.userId);K1(new Ct(y.year,y.month),x||[])?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),w=fc(u);return{local:f,remote:w}}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,K1=(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 J1=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&&J1(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 W1(e),this.eventService=new $1(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(Je.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(Je.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(Je.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 w=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s});f=w.results,u=w.local}else if(l==Le.LOCAL_THEN_REMOTE)if(this.USE_EVENT_COVERAGE){let w=await this.getEventWithCoverage(t,e,r,n,a,i,o,s,l);u=w.local,f=w.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 w=!0,y=[],x=this.eventMetaStorage.getCoverage(e,r,n,this.logger);for(const S of x.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 x.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 w=x.remote.length===0,{local:w,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(Je.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(Je.UPDATE),Me.Subscribe(Je.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)}}}(),w=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||x).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 w.init(A,E)}}),y=l.enc={},x=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 w.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 w.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 w.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 w.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,w=[],y=0;y<f;y++){var x=u[y];w.push(x.high),w.push(x.low)}return s.create(w,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),f=u.words=this.words.slice(0),w=f.length,y=0;y<w;y++)f[y]=f[y].clone();return u}})}(),r})}(yc)),yc.exports}var Ec={exports:{}},wc;function o0(){return wc||(wc=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=[],w=0;w<u;w++)f[w>>>2]|=l[w]<<24-w%4*8;o.call(this,f,u)}else o.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(Ec)),Ec.exports}var xc={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,w=[],y=0;y<f;y+=2){var x=u[y>>>2]>>>16-y%4*8&65535;w.push(String.fromCharCode(x))}return w.join("")},parse:function(l){for(var u=l.length,f=[],w=0;w<u;w++)f[w>>>1]|=l.charCodeAt(w)<<16-w%2*16;return i.create(f,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,f=l.sigBytes,w=[],y=0;y<f;y+=2){var x=s(u[y>>>2]>>>16-y%4*8&65535);w.push(String.fromCharCode(x))}return w.join("")},parse:function(l){for(var u=l.length,f=[],w=0;w<u;w++)f[w>>>1]|=s(l.charCodeAt(w)<<16-w%2*16);return i.create(f,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(xc)),xc.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,w=this._map;l.clamp();for(var y=[],x=0;x<f;x+=3)for(var S=u[x>>>2]>>>24-x%4*8&255,T=u[x+1>>>2]>>>24-(x+1)%4*8&255,N=u[x+2>>>2]>>>24-(x+2)%4*8&255,C=S<<16|T<<8|N,E=0;E<4&&x+E*.75<f;E++)y.push(w.charAt(C>>>6*(3-E)&63));var A=w.charAt(64);if(A)for(;y.length%4;)y.push(A);return y.join("")},parse:function(l){var u=l.length,f=this._map,w=this._reverseMap;if(!w){w=this._reverseMap=[];for(var y=0;y<f.length;y++)w[f.charCodeAt(y)]=y}var x=f.charAt(64);if(x){var S=l.indexOf(x);S!==-1&&(u=S)}return s(l,u,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,f){for(var w=[],y=0,x=0;x<u;x++)if(x%4){var S=f[l.charCodeAt(x-1)]<<x%4*2,T=f[l.charCodeAt(x)]>>>6-x%4*2,N=S|T;w[y>>>2]|=N<<24-y%4*8,y++}return i.create(w,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,w=l.sigBytes,y=u?this._safe_map:this._map;l.clamp();for(var x=[],S=0;S<w;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<w;A++)x.push(y.charAt(E>>>6*(3-A)&63));var I=y.charAt(64);if(I)for(;x.length%4;)x.push(I);return x.join("")},parse:function(l,u=!0){var f=l.length,w=u?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var x=0;x<w.length;x++)y[w.charCodeAt(x)]=x}var S=w.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 w=[],y=0,x=0;x<u;x++)if(x%4){var S=f[l.charCodeAt(x-1)]<<x%4*2,T=f[l.charCodeAt(x)]>>>6-x%4*2,N=S|T;w[y>>>2]|=N<<24-y%4*8,y++}return i.create(w,y)}}(),r.enc.Base64url})}(Cc)),Cc.exports}var kc={exports:{}},Ac;function $r(){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],W=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],K=I[3];F=w(F,ee,ne,K,D,7,u[0]),K=w(K,F,ee,ne,P,12,u[1]),ne=w(ne,K,F,ee,z,17,u[2]),ee=w(ee,ne,K,F,Y,22,u[3]),F=w(F,ee,ne,K,Q,7,u[4]),K=w(K,F,ee,ne,B,12,u[5]),ne=w(ne,K,F,ee,G,17,u[6]),ee=w(ee,ne,K,F,re,22,u[7]),F=w(F,ee,ne,K,L,7,u[8]),K=w(K,F,ee,ne,q,12,u[9]),ne=w(ne,K,F,ee,W,17,u[10]),ee=w(ee,ne,K,F,j,22,u[11]),F=w(F,ee,ne,K,V,7,u[12]),K=w(K,F,ee,ne,Z,12,u[13]),ne=w(ne,K,F,ee,se,17,u[14]),ee=w(ee,ne,K,F,ie,22,u[15]),F=y(F,ee,ne,K,P,5,u[16]),K=y(K,F,ee,ne,G,9,u[17]),ne=y(ne,K,F,ee,j,14,u[18]),ee=y(ee,ne,K,F,D,20,u[19]),F=y(F,ee,ne,K,B,5,u[20]),K=y(K,F,ee,ne,W,9,u[21]),ne=y(ne,K,F,ee,ie,14,u[22]),ee=y(ee,ne,K,F,Q,20,u[23]),F=y(F,ee,ne,K,q,5,u[24]),K=y(K,F,ee,ne,se,9,u[25]),ne=y(ne,K,F,ee,Y,14,u[26]),ee=y(ee,ne,K,F,L,20,u[27]),F=y(F,ee,ne,K,Z,5,u[28]),K=y(K,F,ee,ne,z,9,u[29]),ne=y(ne,K,F,ee,re,14,u[30]),ee=y(ee,ne,K,F,V,20,u[31]),F=x(F,ee,ne,K,B,4,u[32]),K=x(K,F,ee,ne,L,11,u[33]),ne=x(ne,K,F,ee,j,16,u[34]),ee=x(ee,ne,K,F,se,23,u[35]),F=x(F,ee,ne,K,P,4,u[36]),K=x(K,F,ee,ne,Q,11,u[37]),ne=x(ne,K,F,ee,re,16,u[38]),ee=x(ee,ne,K,F,W,23,u[39]),F=x(F,ee,ne,K,Z,4,u[40]),K=x(K,F,ee,ne,D,11,u[41]),ne=x(ne,K,F,ee,Y,16,u[42]),ee=x(ee,ne,K,F,G,23,u[43]),F=x(F,ee,ne,K,q,4,u[44]),K=x(K,F,ee,ne,V,11,u[45]),ne=x(ne,K,F,ee,ie,16,u[46]),ee=x(ee,ne,K,F,z,23,u[47]),F=S(F,ee,ne,K,D,6,u[48]),K=S(K,F,ee,ne,re,10,u[49]),ne=S(ne,K,F,ee,se,15,u[50]),ee=S(ee,ne,K,F,B,21,u[51]),F=S(F,ee,ne,K,V,6,u[52]),K=S(K,F,ee,ne,Y,10,u[53]),ne=S(ne,K,F,ee,W,15,u[54]),ee=S(ee,ne,K,F,P,21,u[55]),F=S(F,ee,ne,K,L,6,u[56]),K=S(K,F,ee,ne,ie,10,u[57]),ne=S(ne,K,F,ee,G,15,u[58]),ee=S(ee,ne,K,F,Z,21,u[59]),F=S(F,ee,ne,K,Q,6,u[60]),K=S(K,F,ee,ne,j,10,u[61]),ne=S(ne,K,F,ee,z,15,u[62]),ee=S(ee,ne,K,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]+K|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 w(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 x(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,w){for(var y=this._hash.words,x=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[w+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=(x<<5|x>>>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=x,x=I}y[0]=y[0]+x|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,w=f.words,y=this._nDataBytes*8,x=f.sigBytes*8;return w[x>>>5]|=128<<24-x%32,w[(x+64>>>9<<4)+14]=Math.floor(y/4294967296),w[(x+64>>>9<<4)+15]=y,f.sigBytes=w.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 x(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;)x(T)&&(N<8&&(u[N]=S(n.pow(T,1/2))),f[N]=S(n.pow(T,1/3)),N++),T++})();var w=[],y=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(x,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)w[Y]=x[S+Y]|0;else{var Q=w[Y-15],B=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,G=w[Y-2],re=(G<<15|G>>>17)^(G<<13|G>>>19)^G>>>10;w[Y]=B+w[Y-7]+re+w[Y-16]}var L=I&D^~I&P,q=N&C^N&E^C&E,W=(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]+w[Y],Z=W+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 x=this._data,S=x.words,T=this._nDataBytes*8,N=x.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,x.sigBytes=S.length*4,this._process(),this._hash},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});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 w=[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 x=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,W=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,K=Y.low,xe=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=K,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),J=y[v-2],X=J.high,oe=J.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 we=_&O^~_&le,We=b&te^~b&de,Qe=xe&Oe^xe&Be^Oe&Be,mt=_e&ye^_e&Ie^ye&Ie,ge=(xe>>>28|_e<<4)^(xe<<30|_e>>>2)^(xe<<25|_e>>>7),nt=(_e>>>28|xe<<4)^(_e<<30|xe>>>2)^(_e<<25|xe>>>7),Ht=(_>>>14|b<<18)^(_>>>18|b<<14)^(_<<23|b>>>9),Tt=(b>>>14|_<<18)^(b>>>18|_<<14)^(b<<23|_>>>9),kt=w[v],At=kt.high,pt=kt.low,ct=c+Tt,ut=M+Ht+(ct>>>0<c>>>0?1:0),ct=ct+We,ut=ut+we+(ct>>>0<We>>>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,Wr=ge+Qe+(hr>>>0<nt>>>0?1:0);M=le,c=de,le=O,de=te,O=_,te=b,b=ae+ct|0,_=$+ut+(b>>>0<ae>>>0?1:0)|0,$=Be,ae=Ie,Be=Oe,Ie=ye,Oe=xe,ye=_e,_e=ct+hr|0,xe=ut+Wr+(_e>>>0<ct>>>0?1:0)|0}B=C.low=B+_e,C.high=Q+xe+(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),K=Y.low=K+c,Y.high=ne+M+(K>>>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(x),n.HmacSHA512=i._createHmacHelper(x)}(),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,w=[],y=[],x=[];(function(){for(var N=1,C=0,E=0;E<24;E++){w[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}x[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],W=S[(Q+1)%5],j=W.high,V=W.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=w[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],K=E[0];ne.high=K.high,ne.low=K.low;for(var Q=0;Q<5;Q++)for(var re=0;re<5;re++){var Z=Q+5*re,z=E[Z],xe=S[Z],_e=S[(Q+1)%5+5*re],Oe=S[(Q+2)%5+5*re];z.high=xe.high^~_e.high&Oe.high,z.low=xe.low^~_e.low&Oe.low}var z=E[0],ye=x[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
|
|
50
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
51
|
+
|
|
52
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
53
|
+
|
|
54
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
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
|
+
|
|
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]),w=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]),x=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=x.words,L=S.words,q=u.words,W=f.words,j=w.words,V=y.words,Z,se,ie,F,ee,ne,K,xe,_e,Oe;ne=Z=G[0],K=se=G[1],xe=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+W[Y]]|0,Y<16?ye+=I(K,xe,_e)+L[0]:Y<32?ye+=A(K,xe,_e)+L[1]:Y<48?ye+=E(K,xe,_e)+L[2]:Y<64?ye+=C(K,xe,_e)+L[3]:ye+=N(K,xe,_e)+L[4],ye=ye|0,ye=D(ye,V[Y]),ye=ye+Oe|0,ne=Oe,Oe=_e,_e=D(xe,10),xe=K,K=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+K|0,G[4]=G[0]+se+xe|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 $c={exports:{}},Wc;function Li(){return Wc||(Wc=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 w=u.blockSize,y=w*4;f.sigBytes>y&&(f=u.finalize(f)),f.clamp();for(var x=this._oKey=f.clone(),S=this._iKey=f.clone(),T=x.words,N=S.words,C=0;C<w;C++)T[C]^=1549556828,N[C]^=909522486;x.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,w=f.finalize(u);f.reset();var y=f.finalize(this._oKey.clone().concat(w));return y}})})()})}($c)),$c.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(w){this.cfg=this.cfg.extend(w)},compute:function(w,y){for(var x=this.cfg,S=u.create(x.hasher,w),T=o.create(),N=o.create([1]),C=T.words,E=N.words,A=x.keySize,I=x.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(w,y,x){return f.create(x).compute(w,y)}}(),r.PBKDF2})}(Yc)),Yc.exports}var Kc={exports:{}},Jc;function xr(){return Jc||(Jc=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,w){for(var y,x=this.cfg,S=x.hasher.create(),T=o.create(),N=T.words,C=x.keySize,E=x.iterations;N.length<C;){y&&S.update(y),y=S.update(f).finalize(w),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,w,y){return u.create(y).compute(f,w)}}(),r.EvpKDF})}(Kc)),Kc.exports}var Xc={exports:{}},Qc;function ft(){return Qc||(Qc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),xr())})(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,w=a.algo,y=w.EvpKDF,x=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=x.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,W=q.blockSize;G.call(this,re,L,W),q.encryptBlock(re,L),this._prevBlock=re.slice(L,L+W)}}),B.Decryptor=B.extend({processBlock:function(re,L){var q=this._cipher,W=q.blockSize,j=re.slice(L,L+W);q.decryptBlock(re,L),G.call(this,re,L,W),this._prevBlock=j}});function G(re,L,q){var W,j=this._iv;j?(W=j,this._iv=n):W=this._prevBlock;for(var V=0;V<q;V++)re[L+V]^=W[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,W=[],j=0;j<L;j+=4)W.push(q);var V=s.create(W,L);B.concat(V)},unpad:function(B){var G=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=G}};i.BlockCipher=x.extend({cfg:x.cfg.extend({mode:N,padding:E}),reset:function(){var B;x.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),W=q.finalize(G),j=q.cfg;return A.create({ciphertext:W,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),W=s.create(q.words.slice(G),re*4);return q.sigBytes=G*4,A.create({key:q,iv:W,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 W=P.encrypt.call(this,B,G,q.key,L);return W.mixIn(q),W},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 W=P.decrypt.call(this,B,G,q.key,L);return W}})}()})}(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 w=0;w<s;w++)i[o+w]^=u[w]}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 w=f.slice(0);s.encryptBlock(w,0),f[l-1]=f[l-1]+1|0;for(var y=0;y<l;y++)i[o+y]^=w[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
|
|
59
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
60
|
+
* derived from CryptoJS.mode.CTR
|
|
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,w=this._iv,y=this._counter;w&&(y=this._counter=w.slice(0),this._iv=void 0),i(y);var x=y.slice(0);u.encryptBlock(x,0);for(var S=0;S<f;S++)s[l+S]^=x[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 w=0;w<l;w++)i[o+w]^=f[w]}});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 w0(){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 x0(){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:{}},wu;function S0(){return wu||(wu=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 w=l.parse(f);return o.create({ciphertext:w})}}}(),r.format.Hex})}(Eu)),Eu.exports}var xu={exports:{}},_u;function I0(){return _u||(_u=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),$r(),xr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,o=n.algo,s=[],l=[],u=[],f=[],w=[],y=[],x=[],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,w[D]=G<<8|G>>>24,y[D]=G;var G=B*16843009^Q*65537^Y*257^D*16843008;x[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]=x[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,w,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,x,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],W=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[W&255]^D[j++],se=P[L>>>24]^z[q>>>16&255]^Y[W>>>8&255]^Q[re&255]^D[j++],ie=P[q>>>24]^z[W>>>16&255]^Y[re>>>8&255]^Q[L&255]^D[j++],F=P[W>>>24]^z[re>>>16&255]^Y[L>>>8&255]^Q[q&255]^D[j++];re=Z,L=se,q=ie,W=F}var Z=(B[re>>>24]<<24|B[L>>>16&255]<<16|B[q>>>8&255]<<8|B[W&255])^D[j++],se=(B[L>>>24]<<24|B[q>>>16&255]<<16|B[W>>>8&255]<<8|B[re&255])^D[j++],ie=(B[q>>>24]<<24|B[W>>>16&255]<<16|B[re>>>8&255]<<8|B[L&255])^D[j++],F=(B[W>>>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})}(xu)),xu.exports}var Su={exports:{}},Iu;function C0(){return Iu||(Iu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Gr(),$r(),xr(),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],w=[{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],x=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|=w[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(x);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=x.createEncryptor(i.create(A)),this._des2=x.createEncryptor(i.create(I)),this._des3=x.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(),$r(),xr(),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,w=f.words,y=f.sigBytes,x=this._S=[],S=0;S<256;S++)x[S]=S;for(var S=0,T=0;S<256;S++){var N=S%y,C=w[N>>>2]>>>24-N%4*8&255;T=(T+x[S]+C)%256;var E=x[S];x[S]=x[T],x[T]=E}this._i=this._j=0},_doProcessBlock:function(f,w){f[w]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var f=this._S,w=this._i,y=this._j,x=0,S=0;S<4;S++){w=(w+1)%256,y=(y+f[w])%256;var T=f[w];f[w]=f[y],f[y]=T,x|=f[(f[w]+f[y])%256]<<24-S*8}return this._i=w,this._j=y,x}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(),$r(),xr(),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,x=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++)w.call(this);for(var S=0;S<8;S++)N[S]^=T[S+4&7];if(x){var C=x.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++)w.call(this)}},_doProcessBlock:function(y,x){var S=this._X;w.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[x+T]^=s[T]},blockSize:128/32,ivSize:64/32});function w(){for(var y=this._X,x=this._C,S=0;S<8;S++)l[S]=x[S];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<l[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<l[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<l[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<l[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<l[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<l[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<l[6]>>>0?1:0)|0,this._b=x[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+x[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(),$r(),xr(),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,x=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++)w.call(this);for(var N=0;N<8;N++)T[N]^=S[N+4&7];if(x){var C=x.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++)w.call(this)}},_doProcessBlock:function(y,x){var S=this._X;w.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[x+T]^=s[T]},blockSize:128/32,ivSize:64/32});function w(){for(var y=this._X,x=this._C,S=0;S<8;S++)l[S]=x[S];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<l[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<l[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<l[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<l[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<l[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<l[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<l[6]>>>0?1:0)|0,this._b=x[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+x[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(),$r(),Ri(),Lc(),c0(),Bc(),u0(),d0(),f0(),Li(),h0(),xr(),ft(),m0(),p0(),g0(),v0(),y0(),b0(),E0(),w0(),x0(),_0(),S0(),I0(),C0(),T0(),k0(),A0())})(Ae,function(r){return r})})(t0);class D0 extends wr{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(Je.DELETE)],oa.prototype,"onCascadeDelete",1),oa=Mi([Me.Subscriber({channel:_t})],oa);class R0 extends wr{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(w=>w.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(Je.DELETE)],sa.prototype,"onCascadeDelete",1),sa=Pi([Me.Subscriber({channel:_t})],sa);class F0 extends wr{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(Je.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(Je.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(Je.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(Je.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(Je.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,Kt.createPinia()),H0=Kt.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(){ua.getAccount().then(t=>{t.result&&(this.account=t.result)})},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 $0=[{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=$0,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"}})});
|