@descope/web-components-ui 1.0.301 → 1.0.303

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DescopeDev=e():t.DescopeDev=e()}(self,(()=>(()=>{var t={8168:(t,e,r)=>{const n=r(8874),o={};for(const t of Object.keys(n))o[n[t]]=t;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=i;for(const t of Object.keys(i)){if(!("channels"in i[t]))throw new Error("missing channels property: "+t);if(!("labels"in i[t]))throw new Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:e}),Object.defineProperty(i[t],"labels",{value:r})}i.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=i-o;let s,l;i===o?s=0:e===i?s=(r-n)/a:r===i?s=2+(n-e)/a:n===i&&(s=4+(e-r)/a),s=Math.min(60*s,360),s<0&&(s+=360);const d=(o+i)/2;return l=i===o?0:d<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*d]},i.rgb.hsv=function(t){let e,r,n,o,i;const a=t[0]/255,s=t[1]/255,l=t[2]/255,d=Math.max(a,s,l),c=d-Math.min(a,s,l),p=function(t){return(d-t)/6/c+.5};return 0===c?(o=0,i=0):(i=c/d,e=p(a),r=p(s),n=p(l),a===d?o=n-r:s===d?o=1/3+e-n:l===d&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*d]},i.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const o=i.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[o,100*a,100*n]},i.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.min(1-e,1-r,1-n);return[100*((1-e-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},i.rgb.keyword=function(t){const e=o[t];if(e)return e;let r,i=1/0;for(const e of Object.keys(n)){const o=(s=n[e],((a=t)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);o<i&&(i=o,r=e)}var a,s;return r},i.keyword.rgb=function(t){return n[t]},i.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},i.rgb.lab=function(t){const e=i.rgb.xyz(t);let r=e[0],n=e[1],o=e[2];return r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*n-16,500*(r-n),200*(n-o)]},i.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let o,i,a;if(0===r)return a=255*n,[a,a,a];o=n<.5?n*(1+r):n+r-n*r;const s=2*n-o,l=[0,0,0];for(let t=0;t<3;t++)i=e+1/3*-(t-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[t]=255*a;return l},i.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,o=r;const i=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},i.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const o=Math.floor(e)%6,i=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},i.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,o=Math.max(n,.01);let i,a;a=(2-r)*n;const s=(2-r)*o;return i=r*o,i/=s<=1?s:2-s,i=i||0,a/=2,[e,100*i,100*a]},i.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const a=Math.floor(6*e),s=1-n;i=6*e-a,0!=(1&a)&&(i=1-i);const l=r+i*(s-r);let d,c,p;switch(a){default:case 6:case 0:d=s,c=l,p=r;break;case 1:d=l,c=s,p=r;break;case 2:d=r,c=s,p=l;break;case 3:d=r,c=l,p=s;break;case 4:d=l,c=r,p=s;break;case 5:d=s,c=r,p=l}return[255*d,255*c,255*p]},i.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let o,i,a;return o=3.2406*e+-1.5372*r+-.4986*n,i=-.9689*e+1.8758*r+.0415*n,a=.0557*e+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];return e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(e-r),200*(r-n)]},i.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const o=r**3,i=e**3,a=n**3;return r=o>.008856?o:(r-16/116)/7.787,e=i>.008856?i:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},i.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let o;return o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360),[e,Math.sqrt(r*r+n*n),o]},i.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},i.rgb.ansi16=function(t,e=null){const[r,n,o]=t;let a=null===e?i.rgb.hsv(t)[2]:e;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},i.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},i.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.max(Math.max(e,r),n),i=Math.min(Math.min(e,r),n),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===e?(r-n)/a%6:o===r?2+(n-e)/a:4+(e-r)/a,l/=6,l%=1,[360*l,100*a,100*s]},i.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[t[0],100*n,100*o]},i.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},i.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=e%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[255*(r*o[0]+l),255*(r*o[1]+l),255*(r*o[2]+l)]},i.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},i.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},i.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},i.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=function(t){return[0,0,t[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},2085:(t,e,r)=>{const n=r(8168),o=r(4111),i={};Object.keys(n).forEach((t=>{i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});const e=o(t);Object.keys(e).forEach((r=>{const n=e[r];i[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},4111:(t,e,r)=>{const n=r(8168);function o(t,e){return function(r){return e(t(r))}}function i(t,e){const r=[e[t].parent,t];let i=n[e[t].parent][t],a=e[t].parent;for(;e[a].parent;)r.unshift(e[a].parent),i=o(n[e[a].parent][a],i),a=e[a].parent;return i.conversion=r,i}t.exports=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(n[t]);for(let n=o.length,i=0;i<n;i++){const n=o[i],a=e[n];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,r.unshift(n))}}return e}(t),r={},o=Object.keys(e);for(let t=o.length,n=0;n<t;n++){const t=o[n];null!==e[t].parent&&(r[t]=i(t,e))}return r}},8874:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},9818:(t,e,r)=>{var n=r(8874),o=r(6851),i=Object.hasOwnProperty,a=Object.create(null);for(var s in n)i.call(n,s)&&(a[n[s]]=s);var l=t.exports={to:{},get:{}};function d(t,e,r){return Math.min(Math.max(e,t),r)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=l.get.hsl(t),r="hsl";break;case"hwb":e=l.get.hwb(t),r="hwb";break;default:e=l.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,r,o,a=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(e.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],r=0;r<3;r++)a[r]=parseInt(e[r]+e[r],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(e[r+1],0);e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(n,e[1])?((a=n[e[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}for(r=0;r<3;r++)a[r]=d(a[r],0,255);return a[3]=d(a[3],0,1),a},l.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var t=o(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},l.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return a[t.slice(0,3)]}},6767:(t,e,r)=>{const n=r(9818),o=r(2085),i=["keyword","gray","hex"],a={};for(const t of Object.keys(o))a[[...o[t].labels].sort().join("")]=t;const s={};function l(t,e){if(!(this instanceof l))return new l(t,e);if(e&&e in i&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);let r,d;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof l)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=n.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,d=o[this.model].channels,this.color=e.value.slice(0,d),this.valpha="number"==typeof e.value[d]?e.value[d]:1}else if(t.length>0){this.model=e||"rgb",d=o[this.model].channels;const r=Array.prototype.slice.call(t,0,d);this.color=u(r,d),this.valpha="number"==typeof t[d]?t[d]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in a))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=a[n];const{labels:i}=o[this.model],s=[];for(r=0;r<i.length;r++)s.push(t[i[r]]);this.color=u(s)}if(s[this.model])for(d=o[this.model].channels,r=0;r<d;r++){const t=s[this.model][r];t&&(this.color[r]=t(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in n.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const r=1===e.valpha?e.color:[...e.color,this.valpha];return n.to[e.model](r)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:[...e.color,this.valpha];return n.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=o[this.model],{labels:r}=o[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new l([...this.color.map(d(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new l([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:c("rgb",0,p(255)),green:c("rgb",1,p(255)),blue:c("rgb",2,p(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:c("hsl",1,p(100)),lightness:c("hsl",2,p(100)),saturationv:c("hsv",1,p(100)),value:c("hsv",2,p(100)),chroma:c("hcg",1,p(100)),gray:c("hcg",2,p(100)),white:c("hwb",1,p(100)),wblack:c("hwb",2,p(100)),cyan:c("cmyk",0,p(100)),magenta:c("cmyk",1,p(100)),yellow:c("cmyk",2,p(100)),black:c("cmyk",3,p(100)),x:c("xyz",0,p(95.047)),y:c("xyz",1,p(100)),z:c("xyz",2,p(108.833)),l:c("lab",0,p(100)),a:c("lab",1),b:c("lab",2),keyword(t){return void 0!==t?new l(t):o[this.model].keyword(this.color)},hex(t){return void 0!==t?new l(t):n.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new l(t);const e=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(e)+r},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[r,n]of t.entries()){const t=n/255;e[r]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return l.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const r=t.rgb(),n=this.rgb(),o=void 0===e?.5:e,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,d=1-s;return l.rgb(s*r.red()+d*n.red(),s*r.green()+d*n.green(),s*r.blue()+d*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const t of Object.keys(o)){if(i.includes(t))continue;const{channels:e}=o[t];l.prototype[t]=function(...e){return this.model===t?new l(this):e.length>0?new l(e,t):new l([...(r=o[this.model][t].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],t);var r},l[t]=function(...r){let n=r[0];return"number"==typeof n&&(n=u(r,e)),new l(n,t)}}function d(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function c(t,e,r){t=Array.isArray(t)?t:[t];for(const n of t)(s[n]||(s[n]=[]))[e]=r;return t=t[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[t](),o.color[e]=n,o):(o=this[t]().color[e],r&&(o=r(o)),o)}}function p(t){return function(e){return Math.max(0,Math.min(t,e))}}function u(t,e){for(let r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}t.exports=l},5171:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},2378:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",d="[object Null]",c="[object Object]",p="[object Proxy]",u="[object Undefined]",h=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[i]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[s]=f["[object Map]"]=f["[object Number]"]=f[c]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var b,g,y,v="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,C=v||x||Function("return this")(),w=e&&!e.nodeType&&e,k=w&&t&&!t.nodeType&&t,S=k&&k.exports===w,M=S&&v.process,A=function(){try{return k&&k.require&&k.require("util").types||M&&M.binding&&M.binding("util")}catch(t){}}(),T=A&&A.isTypedArray,E=Array.prototype,I=Function.prototype,_=Object.prototype,L=C["__core-js_shared__"],z=I.toString,O=_.hasOwnProperty,N=(b=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",V=_.toString,D=z.call(Object),W=RegExp("^"+z.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=S?C.Buffer:void 0,R=C.Symbol,$=C.Uint8Array,F=(B&&B.allocUnsafe,g=Object.getPrototypeOf,y=Object,function(t){return g(y(t))}),j=Object.create,P=_.propertyIsEnumerable,q=E.splice,H=R?R.toStringTag:void 0,U=function(){try{var t=ut(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=B?B.isBuffer:void 0,Z=Math.max,Q=Date.now,Y=ut(C,"Map"),J=ut(Object,"create"),K=function(){function t(){}return function(e){if(!St(e))return{};if(j)return j(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function rt(t){var e=this.__data__=new tt(t);this.size=e.size}function nt(t,e,r){(void 0!==r&&!gt(t[e],r)||void 0===r&&!(e in t))&&at(t,e,r)}function ot(t,e,r){var n=t[e];O.call(t,e)&&gt(n,r)&&(void 0!==r||e in t)||at(t,e,r)}function it(t,e){for(var r=t.length;r--;)if(gt(t[r][0],e))return r;return-1}function at(t,e,r){"__proto__"==e&&U?U(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}X.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},X.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},X.prototype.get=function(t){var e=this.__data__;if(J){var r=e[t];return r===n?void 0:r}return O.call(e,t)?e[t]:void 0},X.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:O.call(e,t)},X.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=J&&void 0===e?n:e,this},tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(t){var e=this.__data__,r=it(e,t);return!(r<0||(r==e.length-1?e.pop():q.call(e,r,1),--this.size,0))},tt.prototype.get=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]},tt.prototype.has=function(t){return it(this.__data__,t)>-1},tt.prototype.set=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},et.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Y||tt),string:new X}},et.prototype.delete=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e},et.prototype.get=function(t){return pt(this,t).get(t)},et.prototype.has=function(t){return pt(this,t).has(t)},et.prototype.set=function(t,e){var r=pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},rt.prototype.clear=function(){this.__data__=new tt,this.size=0},rt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},rt.prototype.get=function(t){return this.__data__.get(t)},rt.prototype.has=function(t){return this.__data__.has(t)},rt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tt){var n=r.__data__;if(!Y||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(t,e),this.size=r.size,this};function st(t){return null==t?void 0===t?u:d:H&&H in Object(t)?function(t){var e=O.call(t,H),r=t[H];try{t[H]=void 0;var n=!0}catch(t){}var o=V.call(t);return n&&(e?t[H]=r:delete t[H]),o}(t):function(t){return V.call(t)}(t)}function lt(t){return Mt(t)&&st(t)==i}function dt(t,e,r,n,o){t!==e&&function(t,e,r){for(var n=-1,o=Object(t),i=r(t),a=i.length;a--;){var s=i[++n];if(!1===e(o[s],s,o))break}}(e,(function(i,a){if(o||(o=new rt),St(i))!function(t,e,r,n,o,i,a){var s=ft(t,r),l=ft(e,r),d=a.get(l);if(d)nt(t,r,d);else{var p,u,h,m,f,b=i?i(s,l,r+"",t,e,a):void 0,g=void 0===b;if(g){var y=vt(l),v=!y&&Ct(l),x=!y&&!v&&At(l);b=l,y||v||x?vt(s)?b=s:Mt(f=s)&&xt(f)?b=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(s):v?(g=!1,b=function(t,e){return t.slice()}(l)):x?(g=!1,m=new(h=(p=l).buffer).constructor(h.byteLength),new $(m).set(new $(h)),u=m,b=new p.constructor(u,p.byteOffset,p.length)):b=[]:function(t){if(!Mt(t)||st(t)!=c)return!1;var e=F(t);if(null===e)return!0;var r=O.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&z.call(r)==D}(l)||yt(l)?(b=s,yt(s)?b=function(t){return function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=void 0;void 0===l&&(l=t[s]),o?at(r,s,l):ot(r,s,l)}return r}(t,Tt(t))}(s):St(s)&&!wt(s)||(b=function(t){return"function"!=typeof t.constructor||mt(t)?{}:K(F(t))}(l))):g=!1}g&&(a.set(l,b),o(b,l,n,i,a),a.delete(l)),nt(t,r,b)}}(t,e,a,r,dt,n,o);else{var s=n?n(ft(t,a),i,a+"",t,e,o):void 0;void 0===s&&(s=i),nt(t,a,s)}}),Tt)}var ct=U?function(t,e){return U(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:_t;function pt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ut(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!St(t)||function(t){return!!N&&N in t}(t))&&(wt(t)?W:h).test(function(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}function ht(t,e){var r=typeof t;return!!(e=null==e?o:e)&&("number"==r||"symbol"!=r&&m.test(t))&&t>-1&&t%1==0&&t<e}function mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}function ft(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var bt=function(t){var e=0,r=0;return function(){var n=Q(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ct);function gt(t,e){return t===e||t!=t&&e!=e}var yt=lt(function(){return arguments}())?lt:function(t){return Mt(t)&&O.call(t,"callee")&&!P.call(t,"callee")},vt=Array.isArray;function xt(t){return null!=t&&kt(t.length)&&!wt(t)}var Ct=G||function(){return!1};function wt(t){if(!St(t))return!1;var e=st(t);return e==s||e==l||e==a||e==p}function kt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function St(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Mt(t){return null!=t&&"object"==typeof t}var At=T?function(t){return function(e){return t(e)}}(T):function(t){return Mt(t)&&kt(t.length)&&!!f[st(t)]};function Tt(t){return xt(t)?function(t,e){var r=vt(t),n=!r&&yt(t),o=!r&&!n&&Ct(t),i=!r&&!n&&!o&&At(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=s.length;for(var d in t)!e&&!O.call(t,d)||a&&("length"==d||o&&("offset"==d||"parent"==d)||i&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||ht(d,l))||s.push(d);return s}(t,!0):function(t){if(!St(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=mt(t),r=[];for(var n in t)("constructor"!=n||!e&&O.call(t,n))&&r.push(n);return r}(t)}var Et,It=(Et=function(t,e,r){dt(t,e,r)},function(t,e){return bt(function(t,e,r){return e=Z(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Z(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(a),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,s)}}(t,e,_t),t+"")}((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Et.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!St(r))return!1;var n=typeof e;return!!("number"==n?xt(r)&&ht(e,r.length):"string"==n&&e in r)&&gt(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var a=e[r];a&&Et(t,a,r)}return t})));function _t(t){return t}t.exports=It},6851:(t,e,r)=>{"use strict";var n=r(5171),o=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(t){for(var e=[],r=0,a=t.length;r<a;r++){var s=t[r];n(s)?e=o.call(e,i.call(s)):e.push(s)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},1747:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZD0iTTEgMTZDMSAxNy4xIDEuOSAxOCAzIDE4SDExQzEyLjEgMTggMTMgMTcuMSAxMyAxNlY0SDFWMTZaTTMgNkgxMVYxNkgzVjZaTTEwLjUgMUw5LjUgMEg0LjVMMy41IDFIMFYzSDE0VjFIMTAuNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPiA8L3N2Zz4g"},8152:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZD0iTTEwLjAwMDIgMC45OTIxNDlDMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNSAxMC4wMDAyIDEuMDE2MTVMOC4yMjQxOSAzLjAwODE1SDIuOTkyMTlDMi40NjQxOSAzLjAwODE1IDIuMDA4MTkgMy40NDAxNSAyLjAwODE5IDMuOTkyMTVWMTIuMDA4MkMyLjAwODE5IDEyLjUzNjIgMi40NDAxOSAxMi45OTIyIDIuOTkyMTkgMTIuOTkyMkg1LjUzNjE5QzUuODQ4MTkgMTMuMDQwMiA2LjE2MDE5IDEzLjA0MDIgNi40NzIxOSAxMi45OTIySDExLjAwODJDMTEuNTM2MiAxMi45OTIyIDExLjk5MjIgMTIuNTYwMiAxMS45OTIyIDEyLjAwODJWNy43ODQxNkwxMy45MzYyIDUuNjI0MTVMMTQuMDA4MiA1LjY3MjE1VjExLjk4NDJDMTQuMDA4MiAxMy42NjQyIDEyLjY2NDIgMTUuMDA4MiAxMS4wMDgyIDE1LjAwODJIMy4wMTYxOUMxLjMzNjE5IDE1LjAwODIgLTAuMDA3ODEyNSAxMy42NjQyIC0wLjAwNzgxMjUgMTEuOTg0MlYzLjk5MjE1Qy0wLjAwNzgxMjUgMi4zMzYxNSAxLjMzNjE5IDAuOTkyMTQ5IDMuMDE2MTkgMC45OTIxNDlIMTAuMDAwMlpNMTEuMjcyMiAyLjYyNDE1TDEyLjYxNjIgNC4xMTIxNUw3LjcyMDE5IDkuNjgwMTZDNy41MDQxOSA5LjkyMDE2IDYuODMyMTkgMTAuMjMyMiA1LjY4MDE5IDEwLjYxNjJDNS42NTYxOSAxMC42NDAyIDUuNjA4MTkgMTAuNjQwMiA1LjU2MDE5IDEwLjYxNjJDNS40NjQxOSAxMC41OTIyIDUuMzkyMTkgMTAuNDcyMiA1LjQ0MDE5IDEwLjM3NjJDNS43NTIxOSA5LjI0ODE2IDYuMDQwMTkgOC41NTIxNiA2LjI1NjE5IDguMzEyMTZMMTEuMjcyMiAyLjYyNDE1Wk0xMS45MjAyIDEuODU2MTVMMTMuMjg4MiAwLjMyMDE0OUMxMy42NDgyIC0wLjA4Nzg1MTYgMTQuMjcyMiAtMC4xMTE4NTIgMTQuNjgwMiAwLjI3MjE0OUMxNS4wODgyIDAuNjMyMTQ5IDE1LjExMjIgMS4yODAxNSAxNC43NTIyIDEuNjg4MTVMMTMuMjY0MiAzLjM2ODE1TDExLjkyMDIgMS44NTYxNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPiA8L3N2Zz4g"},853:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4gPC9zdmc+IA=="}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{darkTheme:()=>Hc,defaultTheme:()=>qc,themeToStyle:()=>ht});var t={};r.r(t),r.d(t,{default:()=>be,vars:()=>ge});var e={};r.r(e),r.d(e,{default:()=>Ue,refs:()=>qe,vars:()=>He});var o={};r.r(o),r.d(o,{default:()=>Qe,textField:()=>Ze,vars:()=>Ge});var i={};r.r(i),r.d(i,{default:()=>cr,vars:()=>dr});var a={};r.r(a),r.d(a,{default:()=>mr,vars:()=>hr});var s={};r.r(s),r.d(s,{default:()=>yr,vars:()=>gr});var l={};r.r(l),r.d(l,{default:()=>_r,vars:()=>Ir});var d={};r.r(d),r.d(d,{default:()=>Gr,vars:()=>Hr});var c={};r.r(c),r.d(c,{default:()=>ln,vars:()=>sn});var p={};r.r(p),r.d(p,{default:()=>yn,vars:()=>vn});var u={};r.r(u),r.d(u,{default:()=>wn,vars:()=>Cn});var h={};r.r(h),r.d(h,{default:()=>Sn,vars:()=>kn});var m={};r.r(m),r.d(m,{default:()=>An,vars:()=>Mn});var f={};r.r(f),r.d(f,{default:()=>zn,vars:()=>Ln});var b={};r.r(b),r.d(b,{default:()=>Ci,vars:()=>xi});var g={};r.r(g),r.d(g,{default:()=>Si,vars:()=>ki});var y={};r.r(y),r.d(y,{default:()=>Bi,vars:()=>Ri});var v={};r.r(v),r.d(v,{default:()=>ra,vars:()=>ea});var x={};r.r(x),r.d(x,{default:()=>ca,vars:()=>da});var C={};r.r(C),r.d(C,{default:()=>ba,vars:()=>ga});var w={};r.r(w),r.d(w,{comboBox:()=>za,default:()=>Oa,vars:()=>La});var k={};r.r(k),r.d(k,{default:()=>Ba,vars:()=>Wa});var S={};r.r(S),r.d(S,{default:()=>es,vars:()=>ts});var M={};r.r(M),r.d(M,{default:()=>ms,vars:()=>hs});var A={};r.r(A),r.d(A,{default:()=>Rs,vars:()=>Bs});var T={};r.r(T),r.d(T,{default:()=>Js,vars:()=>Ys});var E={};r.r(E),r.d(E,{default:()=>nl,vars:()=>rl});var I={};r.r(I),r.d(I,{default:()=>xl,vars:()=>vl});var _={};r.r(_),r.d(_,{default:()=>Ml,vars:()=>Sl});var L={};r.r(L),r.d(L,{default:()=>_l,vars:()=>Ll});var z={};r.r(z),r.d(z,{default:()=>Zl,grid:()=>Gl,vars:()=>Ul});var O={};r.r(O),r.d(O,{default:()=>ed,vars:()=>Xl});var N={};r.r(N),r.d(N,{default:()=>Cd,multiSelectComboBox:()=>xd,vars:()=>vd});var V={};r.r(V),r.d(V,{default:()=>Td,vars:()=>Ad});var D={};r.r(D),r.d(D,{default:()=>Dd,vars:()=>Wd});var W={};r.r(W),r.d(W,{default:()=>tc,mappingsField:()=>Xd,vars:()=>Kd});var B={};r.r(B),r.d(B,{default:()=>gc,vars:()=>bc});var R={};r.r(R),r.d(R,{default:()=>Lc,vars:()=>_c});var $={};r.r($),r.d($,{default:()=>Bc,samlGroupMappings:()=>Wc,vars:()=>Dc});var F={};r.r(F),r.d(F,{default:()=>Fc,vars:()=>$c});var j=r(2378),P=r.n(j);const q="descope",H="host",U=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),G=(...t)=>U(t.filter((t=>!!t)).join("-")),Z=(...t)=>e=>t.reduceRight(((t,e)=>e(t)),e),Q=t=>"function"==typeof t,Y=(t,e,{excludeAttrs:r=[],includeAttrs:n=[]})=>{const o=Array.from(t.attributes).filter((t=>!r.includes(t.name)&&(!n.length||n.includes(t.name)))).map((t=>t.name));e(o),new MutationObserver((t=>{t.forEach((t=>{"attributes"!==t.type||r.includes(t.attributeName)||n.length&&!n.includes(t.attributeName)||e([t.attributeName])}))})).observe(t,{attributes:!0})},J=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&e(t)}))})).observe(t,{childList:!0})},K=(t,e,r={})=>n=>{n.forEach((n=>{const o=r[n]||n,i=t.getAttribute(n);null!==i?e.getAttribute(o)!==i&&e.setAttribute(o,i):e.removeAttribute(o)}))},X=(t,e,r)=>{Y(t,K(t,e),r),Y(e,K(e,t),r)},tt=t=>G(q,t),et=(...t)=>`--${G(...t)}`,rt=(t,e,r={})=>{Y(t,K(t,e,r.mapAttrs),r)},nt=(t,e,r=[])=>{if(!r.length)return;const n=r.reduce(((e,r)=>Object.assign(e,{[r]:{get:()=>t[r],set(e){t[r]=e}}})),{});Object.defineProperties(e,n)},ot=new class{static mountOnPropName="DescopeThemeManager";#t={};#e="light";#r=new Set;#n(){this.#r.forEach((t=>t?.()))}get currentThemeName(){return this.#e}set currentThemeName(t){this.#e=t,this.#n()}get currentTheme(){return this.#t[this.currentThemeName]}onCurrentThemeChange(t){return this.#r.add(t),()=>{this.#r.delete(t)}}set themes(t){this.#t=t,this.#n()}get hasThemes(){return!!Object.keys(this.#t).length}},it=t=>et(q,...t),at=(t,e,r)=>{const n=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return n.reduce(((t,e,o)=>(void 0===t[e]&&(t[e]={}),o===n.length-1&&(t[e]=r),t[e])),t),t},st=(t,e,r)=>Object.entries(t).reduce(((t,[n,o])=>o?.constructor!==Object?P()(t,r(e.concat(n),o)):P()(t,st(o,[...e,n],r))),{}),lt=t=>{switch(!0){case Array.isArray(t):return t.map((t=>t.includes(" ")?`"${t}"`:t)).join(", ");case(t=>{try{return new URL(t),!0}catch(t){return!1}})(t):return`url(${t})`;default:return t}},dt=(t,e)=>st(t,[],(t=>at({},t,`var(${it(e?[e,...t]:t)})`))),ct=(t,e="")=>{const r=Object.entries((t=>st(t,[],((t,e)=>({[it(t)]:lt(e)}))))(t)).reduce(((t,e)=>`${t}${e.join(":")};\n`),"");return e?`*[data-theme="${e}"] {${r}}`:r},pt=t=>Object.entries(t).reduce(((t,[e,r])=>`${t}${e} { \n${Object.entries(r).map((([t,e])=>`${t}: ${e}`)).join(";\n")} \n}\n\n`),""),ut=t=>{const e=(t=>st(t,[],((t,e)=>{const[r,...n]=t,o=n.pop(),i=tt(r);"undefined"===o&&console.warn(i,`theme value: "${e}" is mapped to an invalid property`);let a=H;n[0]&&n[0].startsWith("@")&&(a=n.shift());const s=n.reduce(((t,e,r)=>{if(e.startsWith("_"))return`${t}[${U(e.replace(/^_/,""))}="true"]`;const o=n[r+1];return"string"!=typeof o||o.startsWith("_")?(console.error("theme generator",`your theme structure is invalid, attribute "${e}" is followed by "${o}" which is not allowed`),t):`${t}[${U(e)}="${n.splice(r+1,1).join("")}"]`}),"");return{[i]:{[a]:{[":host"+(s?`(${s})`:"")]:{[o]:lt(e)}}}}})))(t);return Object.keys(e).reduce(((t,r)=>{const n=e[r];return Object.assign(t,{[r]:Object.keys(n).reduce(((t,e)=>Object.assign(t,{[e]:pt(n[e])})),{})})}),{})},ht=({globals:t,components:e},r)=>({globals:ct(t,r),components:ut(e)}),mt=t=>`var(${t})`,ft=(t,e)=>{const r=st(t,[],((t,r)=>{const n=[...t],o=n.splice(-1),i=et(e,o),a={[o]:i},s={[o]:mt(i)};return{theme:at({},[...n,i],r),useVars:s,vars:a}}));return[r.theme,r.useVars,r.vars]};var bt=r(6767),gt=r.n(bt);const yt=.4,vt=.25,xt=.1,Ct=(t,e)=>t.darken(e).hex(),wt=t=>{const e=t.isDark();return t.mix(gt()(e?"white":"black"),1).saturate(1).hex()},kt=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),St=t=>t.luminosity()<.01,Mt=t=>t.luminosity()>.99,At=(t,e)=>"dark"===e?Mt(t)?Ct(t,vt):kt(t,yt):St(t)?kt(t,vt):Ct(t,yt),Tt=(t,e)=>"dark"===e?St(t)?kt(t,vt):Ct(t,yt):Mt(t)?Ct(t,vt):kt(t,yt),Et=(t,e)=>"dark"===e?St(t)?kt(t,xt):Ct(t,.8):Mt(t)?Ct(t,xt):kt(t,.8),It=(t,e)=>{const r=new(gt())(t.main||t);return{main:r.hex(),dark:t.dark||At(r,e),light:t.light||Tt(r,e),highlight:t.highlight||Et(r,e),contrast:t.contrast||wt(r)}},_t=(t=>Object.keys(t).reduce(((e,r)=>{const n=t[r];return Object.assign(e,{[r]:It(n)})}),{}))({surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"}}),Lt={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},zt=dt({fonts:Lt}).fonts,Ot={colors:_t,typography:{h1:{font:zt.font1.family,weight:"900",size:"48px"},h2:{font:zt.font1.family,weight:"800",size:"38px"},h3:{font:zt.font1.family,weight:"600",size:"28px"},subtitle1:{font:zt.font2.family,weight:"500",size:"22px"},subtitle2:{font:zt.font2.family,weight:"400",size:"20px"},body1:{font:zt.font1.family,weight:"400",size:"16px"},body2:{font:zt.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:Lt,direction:"ltr"},Nt=Ot;((t,e)=>{st(t,[],(t=>at({},t,it(t))))})(Ot);class Vt{constructor(){this.styleMap=new Map}add(t,e,r){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:r}])}toString(){return Array.from(this.styleMap.entries()).reduce(((t,[e,r])=>`${t}${e} { \n${r.map((({property:t,value:e})=>`${t}: ${e}`)).join(";\n")} \n}\n\n`),"")}}const Dt=(t,e)=>Object.keys(e).reduce(((e,r)=>Object.assign(e,{[r]:et(t,r)})),{}),Wt=({mappings:t={},componentNameOverride:e=""})=>r=>{const n=e||r.componentName;return class extends r{static get cssVarList(){return{...r.cssVarList,...Dt(n,{...t})}}#o;#i;#a;#s;#l;#d;#c;#p;#u;constructor({getRootElement:e,componentNameSuffix:r="",themeSection:n=H,baseSelector:o}={}){super(),this.#s=r,this.#l=n,this.#c=o??this.baseSelector,this.#u=e,this.#p=Object.keys(t).map((t=>G("st",r,t)))}get#h(){return ot.currentTheme?.[n]||""}#m(){this.#i.innerHTML=this.#h[this.#l]}#f(){this.#i=document.createElement("style"),this.#i.id=`style-mixin-theme__${n}`,this.#d.prepend(this.#i),this.#a=ot.onCurrentThemeChange(this.#m.bind(this)),this.#m()}#b(){if(this.#p.length){this.#o=document.createElement("style"),this.#o.id=`style-mixin-overrides__${n}`;const e=(t=n,Array(3).fill(`.${t}`).join(""));this.#o.innerText=`:host(${e}) {}`,this.#d.append(this.#o)}var t}#g(t,e){const r=this.#o?.sheet?.cssRules[0].style;if(!r)return;const o=et(n,t.replace(new RegExp("^st-"),""));e?r?.setProperty(o,e):(r?.removeProperty(o),this.removeAttribute(t))}#y(t=[]){let e=!1;t.forEach((t=>{this.#p.includes(t)&&(this.#g(t,this.getAttribute(t)),e=!0)})),e&&(this.#o.innerHTML=this.#o?.sheet?.cssRules[0].cssText)}#v(){if(Object.keys(t).length){const e=document.createElement("style");e.id=`style-mixin-mappings__${n}`,e.innerHTML=((t,e,r)=>{const n=new Vt;return Object.keys(r).forEach((o=>{const i=((t,e)=>{const r={selector:"",property:U(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map((t=>({...r,...t}))):[{...r,...e}]:[r]})(o,r[o]),a=et(t,o);i.forEach((({selector:t,property:r,important:o,fallback:i})=>{n.add(((t="",e="")=>Q(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),Q(r)?r():r,((t,e)=>`var(${t}${e?`, ${e}`:""})`)(a,i)+(o?"!important":""))}))})),n.toString()})(G(n,this.#s),this.#c,t),this.#d.prepend(e)}}#x(t){(this.#d.classList||this.#d.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#d=await(this.#u?.(this))||this.shadowRoot,this.#x(n),this.#v(),this.#f(),this.#b(),Y(this,this.#y.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#a?.()}}},Bt=t=>class extends t{#C=null;static get observedAttributes(){return[...t.observedAttributes||[],"draggable"]}constructor(){super(),this.#C=document.createElement("style"),this.#C.innerText="* { cursor: inherit!important }"}#w(t){t?this.shadowRoot.appendChild(this.#C):this.#C.remove()}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",(t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const r=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",r),t.target.removeEventListener("dragend",r)};t.target.addEventListener("mouseup",r,{once:!0}),t.target.addEventListener("dragend",r,{once:!0})}})),super.init?.()}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"draggable"===t&&this.#w("true"===r)}},Rt=t=>class extends t{#k(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#k()}};function $t(t,e={}){const r=new Event(t,e);this[`on${t}`]?.(r),this.dispatchEvent(r)}const Ft=t=>class extends t{#S=$t.bind(this,"components-context");updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},jt=t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mouseover",(t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",(()=>this.removeAttribute("hover")),{once:!0})}))}},Pt=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options"],qt=t=>class extends t{init(){super.init?.(),Y(this,(t=>t.forEach((t=>{const e=this.getAttribute(t);(t=>Pt.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}))),{})}},Ht=({componentName:t,baseSelector:e=""})=>{class r extends HTMLElement{static get componentName(){return t}#M;#A=!0;get baseSelector(){return e}get baseElement(){return this.#M??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#M||console.warn("missing base element for component",this.localName),this.#M}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#A&&(this.#A=!1,this.init?.())}}return Z(Rt,jt,qt,Ft)(r)},Ut=({componentName:t,wrappedEleName:e,slots:r=[],style:n,excludeAttrsSync:o=[],includeAttrsSync:i=[],includeForwardProps:a=[],delegatesFocus:s=!0})=>{class l extends(Ht({componentName:t,baseSelector:e})){#T=$t.bind(this,"blur");#E=$t.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:s}).innerHTML=`\n\t\t\t<style id="create-proxy">${Q(n)?n():n}</style>\n\t\t\t<${e}>\n\t\t\t${r.map((t=>`<slot ${t?`name="${t}" slot="${t}"`:""} ></slot>`)).join("")}\n\t\t\t</${e}>\n\t\t`}init(){super.init?.(),this.baseElement.addEventListener("blur",(t=>{this.#T()})),this.baseElement.addEventListener("focus",(t=>{this.#E()})),nt(this.baseElement,this,a),X(this.baseElement,this,{excludeAttrs:o,includeAttrs:i})}}return l};!function(){const t=new WeakMap,e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,d=new WeakMap,c=new WeakMap,p=new WeakMap,u=new WeakMap,h=new WeakMap,m=new WeakMap,f={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function b(t){const e=n.get(t),{form:r}=e;L(t,r,e),A(t,e.labels)}const g=(t,e=!1)=>{const r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>n.has(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let o=r.nextNode();const i=!e||t.disabled;for(;o;)o.formDisabledCallback&&i&&k(o,t.disabled),o=r.nextNode()},y={attributes:!0,attributeFilter:["disabled","name"]},v=D()?new MutationObserver((t=>{for(const e of t){const t=e.target;if("disabled"===e.attributeName&&(t.constructor.formAssociated?k(t,t.hasAttribute("disabled")):"fieldset"===t.localName&&g(t)),"name"===e.attributeName&&t.constructor.formAssociated){const e=n.get(t),r=l.get(t);e.setFormValue(r)}}})):{};function x(t){t.forEach((t=>{const{addedNodes:e,removedNodes:o}=t,i=Array.from(e),l=Array.from(o);i.forEach((t=>{if(n.has(t)&&t.constructor.formAssociated&&b(t),d.has(t)){const e=d.get(t);Object.keys(f).filter((t=>null!==e[t])).forEach((r=>{t.setAttribute(f[r],e[r])})),d.delete(t)}if(m.has(t)){const e=m.get(t);t.setAttribute("internals-valid",e.validity.valid.toString()),t.setAttribute("internals-invalid",(!e.validity.valid).toString()),t.setAttribute("aria-invalid",(!e.validity.valid).toString()),m.delete(t)}if("form"===t.localName){const e=s.get(t),r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>!n.has(t)||!t.constructor.formAssociated||e&&e.has(t)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let o=r.nextNode();for(;o;)b(o),o=r.nextNode()}"fieldset"===t.localName&&(v.observe?.(t,y),g(t,!0))})),l.forEach((t=>{const e=n.get(t);e&&r.get(e)&&S(e),a.has(t)&&a.get(t).disconnect()}))}))}function C(t){t.forEach((t=>{const{removedNodes:e}=t;e.forEach((e=>{const r=u.get(t.target);n.has(e)&&V(e),r.disconnect()}))}))}!D()||new MutationObserver(x);const w={childList:!0,subtree:!0},k=(t,e)=>{t.toggleAttribute("internals-disabled",e),e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled"),t.formDisabledCallback&&t.formDisabledCallback.apply(t,[e])},S=t=>{r.get(t).forEach((t=>{t.remove()})),r.set(t,[])},M=(t,e)=>{const n=document.createElement("input");return n.type="hidden",n.name=t.getAttribute("name"),t.after(n),r.get(e).push(n),n},A=(t,e)=>{if(e.length){Array.from(e).forEach((e=>e.addEventListener("click",t.click.bind(t))));let r=e[0].id;e[0].id||(r=`${e[0].htmlFor}_Label`,e[0].id=r),t.setAttribute("aria-labelledby",r)}},T=t=>{const e=Array.from(t.elements).filter((t=>!t.tagName.includes("-")&&t.validity)).map((t=>t.validity.valid)),r=s.get(t)||[],o=[...e,...Array.from(r).filter((t=>t.isConnected)).map((t=>n.get(t).validity.valid))].includes(!1);t.toggleAttribute("internals-invalid",o),t.toggleAttribute("internals-valid",!o)},E=t=>{T(z(t.target))},I=t=>{T(z(t.target))},_=t=>{const e=s.get(t.target);e&&e.size&&e.forEach((t=>{t.constructor.formAssociated&&t.formResetCallback&&t.formResetCallback.apply(t)}))},L=(t,e,r)=>{if(e){const o=s.get(e);if(o)o.add(t);else{const r=new Set;r.add(t),s.set(e,r),(t=>{const e=["button[type=submit]","input[type=submit]","button:not([type])"].map((t=>`${t}:not([disabled])`)).map((e=>`${e}:not([form])${t.id?`,${e}[form='${t.id}']`:""}`)).join(",");t.addEventListener("click",(r=>{if(r.target.closest(e)){const e=s.get(t);if(t.noValidate)return;e.size&&Array.from(e).reverse().map((t=>n.get(t).reportValidity())).includes(!1)&&r.preventDefault()}}))})(e),e.addEventListener("reset",_),e.addEventListener("input",E),e.addEventListener("change",I)}i.set(e,{ref:t,internals:r}),t.constructor.formAssociated&&t.formAssociatedCallback&&setTimeout((()=>{t.formAssociatedCallback.apply(t,[e])}),0),T(e)}},z=t=>{let e=t.parentNode;return e&&"FORM"!==e.tagName&&(e=z(e)),e},O=(t,e,r=DOMException)=>{if(!t.constructor.formAssociated)throw new r(e)},N=(t,e,r)=>{const o=s.get(t);return o&&o.size&&o.forEach((t=>{n.get(t)[r]()||(e=!1)})),e},V=t=>{if(t.constructor.formAssociated){const e=n.get(t),{labels:r,form:o}=e;A(t,r),L(t,o,e)}};function D(){return"undefined"!=typeof MutationObserver}class W{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const B=new WeakMap;function R(t,e){t.toggleAttribute(e,!0),t.part&&t.part.add(e)}class $ extends Set{static get isPolyfilled(){return!0}constructor(t){if(super(),!t||!t.tagName||-1===t.tagName.indexOf("-"))throw new TypeError("Illegal constructor");B.set(this,t)}add(t){if(!/^--/.test(t)||"string"!=typeof t)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${t} must start with '--'.`);const e=super.add(t),r=B.get(this),n=`state${t}`;return r.isConnected?R(r,n):setTimeout((()=>{R(r,n)})),e}clear(){for(let[t]of this.entries())this.delete(t);super.clear()}delete(t){const e=super.delete(t),r=B.get(this);return r.isConnected?(r.toggleAttribute(`state${t}`,!1),r.part&&r.part.remove(`state${t}`)):setTimeout((()=>{r.toggleAttribute(`state${t}`,!1),r.part&&r.part.remove(`state${t}`)})),e}}function F(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}var j;class P{constructor(t){j.set(this,void 0),function(t,e,r,n,o){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,r)}(this,j,t);for(let e=0;e<t.length;e++){let r=t[e];this[e]=r,r.hasAttribute("name")&&(this[r.getAttribute("name")]=r)}Object.freeze(this)}get length(){return F(this,j,"f").length}[(j=new WeakMap,Symbol.iterator)](){return F(this,j,"f")[Symbol.iterator]()}item(t){return null==this[t]?null:this[t]}namedItem(t){return null==this[t]?null:this[t]}}class q{static get isPolyfilled(){return!0}constructor(o){if(!o||!o.tagName||-1===o.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const i=o.getRootNode(),a=new W;this.states=new $(o),t.set(this,o),e.set(this,a),n.set(o,this),((t,e)=>{for(let r in f){e[r]=null;let n=null;const o=f[r];Object.defineProperty(e,r,{get:()=>n,set(r){n=r,t.isConnected?t.setAttribute(o,r):d.set(t,e)}})}})(o,this),((t,e)=>{r.set(e,[]),v.observe?.(t,y)})(o,this),Object.seal(this),i instanceof DocumentFragment&&(t=>{const e=new MutationObserver(C);e.observe?.(t,{childList:!0}),u.set(t,e)})(i)}checkValidity(){const r=t.get(this);if(O(r,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const n=e.get(this);if(!n.valid){const t=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});r.dispatchEvent(t)}return n.valid}get form(){const e=t.get(this);let r;return O(e,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===e.constructor.formAssociated&&(r=z(e)),r}get labels(){const e=t.get(this);O(e,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const r=e.getAttribute("id"),n=e.getRootNode();return n&&r?n.querySelectorAll(`[for="${r}"]`):[]}reportValidity(){const e=t.get(this);if(O(e,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const r=this.checkValidity(),n=p.get(this);if(n&&!e.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!r&&n&&(e.focus(),n.focus()),r}setFormValue(e){const r=t.get(this);O(r,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),S(this),null==e||e instanceof FormData?null!=e&&e instanceof FormData&&Array.from(e).reverse().forEach((([t,e])=>{if("string"==typeof e){const n=M(r,this);n.name=t,n.value=e}})):r.getAttribute("name")&&(M(r,this).value=e),l.set(r,e)}setValidity(r,n,i){const a=t.get(this);if(O(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!r)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");p.set(this,i);const s=e.get(this),l={};for(const t in r)l[t]=r[t];var d;0===Object.keys(l).length&&((d=s).badInput=!1,d.customError=!1,d.patternMismatch=!1,d.rangeOverflow=!1,d.rangeUnderflow=!1,d.stepMismatch=!1,d.tooLong=!1,d.tooShort=!1,d.typeMismatch=!1,d.valid=!0,d.valueMissing=!1);const c={...s,...l};delete c.valid;const{valid:u}=((t,e,r)=>(t.valid=(t=>{let e=!0;for(let r in t)"valid"!==r&&!1!==t[r]&&(e=!1);return e})(e),Object.keys(e).forEach((r=>t[r]=e[r])),r&&T(r),t))(s,c,this.form);if(!u&&!n)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");o.set(this,u?"":n),a.isConnected?(a.toggleAttribute("internals-invalid",!u),a.toggleAttribute("internals-valid",u),a.setAttribute("aria-invalid",`${!u}`)):m.set(a,this)}get shadowRoot(){const e=t.get(this);return c.get(e)||null}get validationMessage(){const e=t.get(this);return O(e,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get validity(){const r=t.get(this);return O(r,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),e.get(this)}get willValidate(){const e=t.get(this);return O(e,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(e.disabled||e.hasAttribute("disabled")||e.hasAttribute("readonly"))}}if(function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class t extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const e=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(e,t);const r=new t;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every((t=>t in r.internals))}()){if("undefined"!=typeof window&&!window.CustomStateSet){window.CustomStateSet=$;const H=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(...t){const e=H.call(this,t);return e.states=new $(this),e}}}else{if("undefined"!=typeof window&&(window.ElementInternals=q),"undefined"!=typeof CustomElementRegistry){const U=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(t,e,r){if(e.formAssociated){const t=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){h.has(this)||(h.set(this,!0),this.hasAttribute("disabled")&&k(this,!0)),null!=t&&t.apply(this),V(this)}}U.call(this,t,e,r)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new q(this)}),"undefined"!=typeof Element){function G(...t){const e=Z.apply(this,t);if(c.set(this,e),D()){const t=new MutationObserver(x);window.ShadyDOM?t.observe(this,w):t.observe(e,w),a.set(this,t)}return e}const Z=Element.prototype.attachShadow;Element.prototype.attachShadow=G}D()&&"undefined"!=typeof document&&new MutationObserver(x).observe(document.documentElement,w),"undefined"!=typeof HTMLFormElement&&function(){const t=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...e){let r=t.apply(this,e);return N(this,r,"checkValidity")};const e=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...t){let r=e.apply(this,t);return N(this,r,"reportValidity")};const{get:r}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...t){const e=r.call(this,...t),n=Array.from(s.get(this)||[]);if(0===n.length)return e;const o=Array.from(e).concat(n).sort(((t,e)=>t.compareDocumentPosition?2&t.compareDocumentPosition(e)?1:-1:0));return new P(o)}})}(),"undefined"==typeof window||window.CustomStateSet||(window.CustomStateSet=$)}}();const Gt=["required","pattern"],Zt=t=>class extends t{static get observedAttributes(){return[...t.observedAttributes||[],...Gt]}static get formAssociated(){return!0}#I;get internals(){return this.#I}set internals(t){this.#I=t}constructor(){super(),this.#I=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}getErrorMessage(t){const{valueMissing:e,patternMismatch:r,typeMismatch:n,stepMismatch:o,tooShort:i,tooLong:a,rangeOverflow:s,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing;case r||n||o||d:return this.getAttribute("data-errormessage-pattern-mismatch")||this.defaultErrorMsgPatternMismatch;case i:return this.getAttribute("data-errormessage-pattern-mismatch-too-short")||this.defaultErrorMsgTooShort;case a:return this.getAttribute("data-errormessage-pattern-mismatch-too-long")||this.defaultErrorMsgTooLong;case l:return this.defaultErrorMsgRangeUnderflow;case s:return this.defaultErrorMsgRangeOverflow;case c:return this.validationMessage;default:return""}}#_(){const t=this.isReadOnly?{}:this.getValidity();this.#I.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#I.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#I.validity.valid}reportValidity(){return this.#I.reportValidity()}get validity(){return this.#I.validity}get validationTarget(){return this.inputElement}setCustomValidity(t){t?this.#I.setValidity({customError:!0},t,this.validationTarget):(this.#I.setValidity({}),this.#_())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#I.form}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),Gt.includes(t)&&this.#_()}init(){super.init?.(),this.addEventListener("change",this.#_),this.addEventListener("invalid",(t=>t.stopPropagation())),this.addEventListener("input",this.#_),setTimeout((()=>this.#_()))}},Qt=["invalid","required"],Yt=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e.localName)return e},Jt=({proxyProps:t=[],inputEvent:e="input",triggerValidationEvents:r=[],proxyParentValidation:n=!1})=>o=>class extends(Zt(o)){static get observedAttributes(){return[...o.observedAttributes||[],...Qt]}#L;#z=$t.bind(this,"change");constructor(){super(),this.#L=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout((()=>{!this.#L&&console.warn(this.localName,"no input was found")}),0)}get inputElement(){if(this.#L)return this.#L;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#L=Yt(t)||Yt(e),this.#L}set inputElement(t){this.#L=t}getValidity(){return this.inputElement?.validity||{}}#O(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#O(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},r.forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.inputElement?.setCustomValidity("")}))})),setTimeout((()=>{(Array.isArray(e)?e:[e]).forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#O()}))})),this.baseElement.addEventListener("change",(()=>{this.#z()})),this.addEventListener("invalid",(()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#O()})),t.forEach((t=>{var e,r;e=this.inputElement,r=t,Object.defineProperty(this,r,{set(t){e[r]=t},get:()=>e[r],configurable:!0})})),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),rt(this,this.inputElement,{includeAttrs:["inputmode"]})})),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,r)=>"function"==typeof t[r]&&"setValidity"===r?(...n)=>{if(3===n.length){const t=n.slice(0,n.length-1);t.push(e.inputElement),e.internals[r](...t)}else e.internals[r](...n);return t[r](...n)}:"function"==typeof t[r]?(...n)=>(e.internals[r](...n),t[r](...n)):t[r]})}}},Kt=t=>Z(Jt(t),Wt({componentNameOverride:tt("input-wrapper")})),Xt=t=>async e=>{const r=await t(e);return new Promise((t=>{let e=0;const n=()=>{if(e>20)return console.error("could not get shadow root for element",r),void t(r);e++,r?.shadowRoot?t(r.shadowRoot):setTimeout(n)};n()}))},te=({name:t,selector:e,mappings:r={},forward:{attributes:n=[],include:o=!0}={}})=>i=>{const a=t||(t=>t.replace(/[^\w\s]/gi,""))(e),s=Wt({mappings:r})(i);return class extends s{static get cssVarList(){return{...s.cssVarList,[a]:Dt(G(i.componentName,"_"+a),r)}}#N;constructor(){const t=Xt((async t=>{const r=t.shadowRoot.querySelector(t.baseSelector);return e?(await Xt((()=>r))(t)).querySelector(e):r}));super({getRootElement:t,componentNameSuffix:"_"+a,themeSection:"@"+a,baseSelector:":host"}),this.#N=t(this).then((t=>t.host))}async#V(){const t=await this.#N;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.();const t=await this.#N;rt(this,t,{[o?"includeAttrs":"excludeAttrs"]:n}),this.#V()}}},ee=t=>class extends t{#z=$t.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",(t=>{t.stopPropagation()})),this.addEventListener("blur",(()=>{this.value!==this.prevValue&&(this.#z(),this.prevValue=this.value)}))}},re=t=>class extends t{init(){this.#D(),super.init?.()}#D(){["blur","focus","focusin","focusout"].forEach((t=>{this.addEventListener(t,(t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()}))}))}handleFocusEventsDispatching(t){let e;t?.forEach((t=>{t?.addEventListener("focusout",(t=>{t.stopImmediatePropagation(),e=setTimeout((()=>{e=null,$t.call(this,"blur"),$t.call(this,"focusout",{bubbles:!0})}))}));const r=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||($t.call(this,"focus"),$t.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",r),t?.addEventListener("focus",r)}))}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",(e=>{t===this.value?e.stopImmediatePropagation():t=this.value}))}},ne=tt("button"),{host:oe,label:ie}={host:{selector:()=>":host"},label:{selector:"::part(label)"}};let ae;const se=Z(Wt({mappings:{hostWidth:{property:"width"},hostHeight:{property:"height"},hostDirection:{...oe,property:"direction"},fontSize:{},fontFamily:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],labelTextColor:{property:"color"},labelTextDecoration:{...ie,property:"text-decoration"},labelSpacing:{...ie,property:"gap"},textAlign:{...ie,property:"justify-content",fallback:"center"}}}),(t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}}),Bt,Rt)(Ut({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${ae}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${se.cssVarList.outlineWidth}) + var(${se.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${se.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${se.cssVarList.hostHeight}) - var(${se.cssVarList.outlineWidth}) - var(${se.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${se.cssVarList.hostWidth}) - var(${se.cssVarList.outlineWidth}) - var(${se.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:ne})),{color:le,fontSize:de}=se.cssVarList;ae=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${le});\n\t\ttop: calc(50% - (var(${de}) / 2));\n\t\tleft: calc(50% - (var(${de}) / 2));\n\t\tborder-width: calc(var(${de}) / 10);\n\t\twidth: var(${de});\n\t\theight: var(${de});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"])::part(prefix),\n\t:host([loading="true"])::part(label) {\n\t\tvisibility: hidden;\n\t}\n`;const ce=dt(Nt),pe=se.cssVarList,ue={primary:ce.colors.primary,secondary:ce.colors.secondary,success:ce.colors.success,error:ce.colors.error,surface:ce.colors.surface},[he,me,fe]=ft({mode:ue},ne),be={...he,[pe.fontFamily]:ce.fonts.font1.family,[pe.cursor]:"pointer",[pe.hostHeight]:"3em",[pe.hostWidth]:"auto",[pe.hostDirection]:ce.direction,[pe.borderRadius]:ce.radius.sm,[pe.borderWidth]:ce.border.xs,[pe.borderStyle]:"solid",[pe.borderColor]:"transparent",[pe.labelSpacing]:"0.25em",[pe.textAlign]:"center",textAlign:{right:{[pe.textAlign]:"right"},left:{[pe.textAlign]:"left"},center:{[pe.textAlign]:"center"}},[pe.verticalPadding]:"1em",[pe.outlineWidth]:Nt.border.sm,[pe.outlineOffset]:"0px",[pe.outlineStyle]:"solid",[pe.outlineColor]:"transparent",size:{xs:{[pe.fontSize]:"12px"},sm:{[pe.fontSize]:"14px"},md:{[pe.fontSize]:"16px"},lg:{[pe.fontSize]:"18px"}},_square:{[pe.hostHeight]:"3em",[pe.hostWidth]:"3em",[pe.verticalPadding]:"0"},_fullWidth:{[pe.hostWidth]:"100%"},_loading:{[pe.cursor]:"wait",[pe.labelTextColor]:me.main},_disabled:{[fe.main]:ce.colors.surface.light,[fe.dark]:ce.colors.surface.dark,[fe.light]:ce.colors.surface.light,[fe.contrast]:ce.colors.surface.main},variant:{contained:{[pe.labelTextColor]:me.contrast,[pe.backgroundColor]:me.main,_hover:{[pe.backgroundColor]:me.dark,_loading:{[pe.backgroundColor]:me.main}},_active:{[pe.backgroundColor]:me.main}},outline:{[pe.labelTextColor]:me.main,[pe.borderColor]:me.main,_hover:{[pe.labelTextColor]:me.dark,[pe.borderColor]:me.dark},_active:{[pe.labelTextColor]:me.main,[pe.borderColor]:me.main}},link:{[pe.labelTextColor]:me.main,_hover:{[pe.labelTextColor]:me.dark,[pe.labelTextDecoration]:"underline"},_active:{[pe.labelTextColor]:me.main}}},_focused:{[pe.outlineColor]:me.light}},ge={...pe,...fe},{host:ye,label:ve,placeholder:xe,requiredIndicator:Ce,inputField:we,input:ke,helperText:Se,errorMessage:Me,disabledPlaceholder:Ae,inputDisabled:Te}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:{selector:"> input:placeholder-shown"},disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ee={fontSize:[{},ye],fontFamily:[ve,we,Se,Me],hostWidth:{...ye,property:"width"},hostMinWidth:{...ye,property:"min-width"},hostDirection:{...ye,property:"direction"},inputBackgroundColor:{...we,property:"background-color"},labelTextColor:[{...ve,property:"color"},{...Ce,property:"color"},{...ve,property:"-webkit-text-fill-color"},{...Ce,property:"-webkit-text-fill-color"}],errorMessageTextColor:{...Me,property:"color"},helperTextColor:{...Se,property:"-webkit-text-fill-color"},inputValueTextColor:[{...we,property:"color"},{...Te,property:"-webkit-text-fill-color"}],inputCaretTextColor:{...ke,property:"color"},labelRequiredIndicator:{...Ce,property:"content"},inputBorderColor:{...we,property:"border-color"},inputBorderWidth:{...we,property:"border-width"},inputBorderStyle:{...we,property:"border-style"},inputBorderRadius:{...we,property:"border-radius"},inputHeight:{...we,property:"height"},inputHorizontalPadding:[{...ke,property:"padding-left"},{...ke,property:"padding-right"}],inputOutlineColor:{...we,property:"outline-color"},inputOutlineStyle:{...we,property:"outline-style"},inputOutlineWidth:{...we,property:"outline-width"},inputOutlineOffset:{...we,property:"outline-offset"},inputTextAlign:{...ke,property:"text-align"},inputPlaceholderColor:[{...xe,property:"color"},{...Ae,property:"-webkit-text-fill-color"}]},Ie=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,_e=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,Le=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,ze=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,Oe=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,Ne=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,Ve=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,De=(t,e)=>`\n ${_e(t)}\n ${ze(t)}\n ${Oe(t)}\n ${Le(t)}\n ${((t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`)(t,e)}\n ${Ve(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`,We=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,Be=tt("text-field"),Re=["type"],$e=Z(Wt({mappings:Ee}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{static get observedAttributes(){return Re.concat(t.observedAttributes||[])}attributeChangedCallback(t,e,r){super.attributeChangeCallback?.(t,e,r),"type"===t&&this.baseElement._setType(r)}}))(Ut({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${$e.cssVarList.inputOutlineWidth}) + var(${$e.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${We("vaadin-text-field")}\n\t\t\t${Ie($e.cssVarList)}\n\t\t\t${De("vaadin-text-field",$e.cssVarList)}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Be})),Fe=tt("input-wrapper"),je=dt(Nt),[Pe,qe,He]=ft({labelTextColor:je.colors.surface.dark,labelFontSize:"14px",valueTextColor:je.colors.surface.contrast,placeholderTextColor:je.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:je.colors.surface.dark,errorMessageTextColor:je.colors.error.main,successMessageTextColor:je.colors.success.main,borderWidth:je.border.xs,borderRadius:je.radius.xs,borderColor:"transparent",outlineWidth:je.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",backgroundColor:je.colors.surface.main,fontFamily:je.fonts.font1.family,direction:je.direction,overlayOpacity:"0.3",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},_fullWidth:{width:"100%"},_focused:{outlineColor:je.colors.surface.light,_invalid:{outlineColor:je.colors.error.main}},_bordered:{outlineWidth:je.border.xs,borderColor:je.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:je.colors.error.main}},_disabled:{labelTextColor:je.colors.surface.light,borderColor:je.colors.surface.light,valueTextColor:je.colors.surface.light,placeholderTextColor:je.colors.surface.light,helperTextColor:je.colors.surface.light,backgroundColor:je.colors.surface.main}},Fe),Ue=Pe,Ge=$e.cssVarList,Ze={[Ge.hostWidth]:qe.width,[Ge.hostMinWidth]:qe.minWidth,[Ge.hostDirection]:qe.direction,[Ge.fontSize]:qe.fontSize,[Ge.fontFamily]:qe.fontFamily,[Ge.labelTextColor]:qe.labelTextColor,[Ge.labelRequiredIndicator]:qe.requiredIndicator,[Ge.errorMessageTextColor]:qe.errorMessageTextColor,[Ge.inputValueTextColor]:qe.valueTextColor,[Ge.inputPlaceholderColor]:qe.placeholderTextColor,[Ge.inputBorderWidth]:qe.borderWidth,[Ge.inputBorderStyle]:qe.borderStyle,[Ge.inputBorderColor]:qe.borderColor,[Ge.inputBorderRadius]:qe.borderRadius,[Ge.inputOutlineWidth]:qe.outlineWidth,[Ge.inputOutlineStyle]:qe.outlineStyle,[Ge.inputOutlineColor]:qe.outlineColor,[Ge.inputOutlineOffset]:qe.outlineOffset,[Ge.inputBackgroundColor]:qe.backgroundColor,[Ge.inputHeight]:qe.inputHeight,[Ge.inputHorizontalPadding]:qe.horizontalPadding,[Ge.helperTextColor]:qe.helperTextColor,textAlign:{right:{[Ge.inputTextAlign]:"right"},left:{[Ge.inputTextAlign]:"left"},center:{[Ge.inputTextAlign]:"center"}}},Qe=Ze,Ye=tt("password"),{host:Je,inputField:Ke,inputElement:Xe,inputElementPlaceholder:tr,revealButtonContainer:er,revealButtonIcon:rr,label:nr,requiredIndicator:or,errorMessage:ir,helperText:ar}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"> input"},inputElementPlaceholder:{selector:"> input:placeholder-shown"},revealButtonContainer:{selector:()=>"::part(reveal-button)"},revealButtonIcon:{selector:()=>"::part(reveal-button)::before"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},sr=Z(Wt({mappings:{hostWidth:{...Je,property:"width"},hostMinWidth:{...Je,property:"min-width"},hostDirection:{...Je,property:"direction"},fontSize:[{},Je],fontFamily:[nr,Ke,ir,ar],inputHeight:{...Ke,property:"height"},inputHorizontalPadding:[{...Xe,property:"padding-left"},{...Xe,property:"padding-right"}],inputBackgroundColor:{...Ke,property:"background-color"},inputBorderStyle:{...Ke,property:"border-style"},inputBorderWidth:{...Ke,property:"border-width"},inputBorderColor:{...Ke,property:"border-color"},inputBorderRadius:{...Ke,property:"border-radius"},inputOutlineColor:{...Ke,property:"outline-color"},inputOutlineStyle:{...Ke,property:"outline-style"},inputOutlineOffset:{...Ke,property:"outline-offset"},inputOutlineWidth:{...Ke,property:"outline-width"},labelTextColor:[{...nr,property:"color"},{...or,property:"color"}],labelRequiredIndicator:{...or,property:"content"},errorMessageTextColor:{...ir,property:"color"},inputValueTextColor:{...Xe,property:"color"},inputPlaceholderTextColor:{...tr,property:"color"},revealButtonOffset:[{...er,property:"margin-right"},{...er,property:"margin-left"}],revealButtonSize:{...er,property:"font-size"},revealButtonColor:{...rr,property:"color"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){this.addEventListener("mousedown",(t=>{if(this.isDraggable&&this.isReadOnly){const e=this.baseElement.querySelector("input"),r=e.getAttribute("type");e.setAttribute("type","text"),setTimeout((()=>e.focus()));const n=o=>{e.setAttribute("type",r),t.target.removeEventListener("mouseup",n),t.target.removeEventListener("dragend",n)};t.target.addEventListener("mouseup",n,{once:!0}),t.target.addEventListener("dragend",n,{once:!0})}})),super.init?.()}}))(Ut({slots:["","suffix"],wrappedEleName:"vaadin-password-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 10em;\n box-sizing: border-box;\n\t\t\t}\n\t\t\t${Ie(sr.cssVarList)}\n\t\t\t${ze("vaadin-password-field")}\n ${We("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n\t\t\t\tmin-height: 0;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\t\t\tvaadin-password-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t[readonly] vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${sr.cssVarList.inputOutlineColor});\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Ye})),lr=dt(Nt),dr=sr.cssVarList,cr={[dr.hostWidth]:qe.width,[dr.hostDirection]:qe.direction,[dr.fontSize]:qe.fontSize,[dr.fontFamily]:qe.fontFamily,[dr.labelTextColor]:qe.labelTextColor,[dr.errorMessageTextColor]:qe.errorMessageTextColor,[dr.inputHorizontalPadding]:qe.horizontalPadding,[dr.inputHeight]:qe.inputHeight,[dr.inputBackgroundColor]:qe.backgroundColor,[dr.labelRequiredIndicator]:qe.requiredIndicator,[dr.inputValueTextColor]:qe.valueTextColor,[dr.inputPlaceholderTextColor]:qe.placeholderTextColor,[dr.inputBorderWidth]:qe.borderWidth,[dr.inputBorderStyle]:qe.borderStyle,[dr.inputBorderColor]:qe.borderColor,[dr.inputBorderRadius]:qe.borderRadius,[dr.inputOutlineWidth]:qe.outlineWidth,[dr.inputOutlineStyle]:qe.outlineStyle,[dr.inputOutlineColor]:qe.outlineColor,[dr.inputOutlineOffset]:qe.outlineOffset,[dr.revealButtonOffset]:lr.spacing.md,[dr.revealButtonSize]:qe.toggleButtonSize,[dr.revealButtonColor]:qe.placeholderTextColor},pr=tt("number-field"),ur=Z(Wt({mappings:Ee}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt)(Ut({slots:["","prefix","suffix"],wrappedEleName:"vaadin-number-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${ur.cssVarList.inputOutlineWidth}) + var(${ur.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${We("vaadin-number-field")}\n\t\t\t${Ie(ur.cssVarList)}\n\t\t\t${De("vaadin-number-field",ur.cssVarList)}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:pr})),hr=ur.cssVarList,mr={[hr.hostWidth]:qe.width,[hr.hostMinWidth]:qe.minWidth,[hr.hostDirection]:qe.direction,[hr.fontSize]:qe.fontSize,[hr.fontFamily]:qe.fontFamily,[hr.labelTextColor]:qe.labelTextColor,[hr.errorMessageTextColor]:qe.errorMessageTextColor,[hr.inputValueTextColor]:qe.valueTextColor,[hr.inputPlaceholderColor]:qe.placeholderTextColor,[hr.inputBorderWidth]:qe.borderWidth,[hr.inputBorderStyle]:qe.borderStyle,[hr.inputBorderColor]:qe.borderColor,[hr.inputBorderRadius]:qe.borderRadius,[hr.inputOutlineWidth]:qe.outlineWidth,[hr.inputOutlineStyle]:qe.outlineStyle,[hr.inputOutlineColor]:qe.outlineColor,[hr.inputOutlineOffset]:qe.outlineOffset,[hr.inputBackgroundColor]:qe.backgroundColor,[hr.labelRequiredIndicator]:qe.requiredIndicator,[hr.inputHorizontalPadding]:qe.horizontalPadding,[hr.inputHeight]:qe.inputHeight},fr=tt("email-field"),br=Z(Wt({mappings:Ee}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{init(){super.init?.(),this.baseElement.setAttribute("pattern","^[\\w\\.\\%\\+\\-]+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$")}}))(Ut({slots:["","suffix"],wrappedEleName:"vaadin-email-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${br.cssVarList.inputOutlineWidth}) + var(${br.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${We("vaadin-email-field")}\n\t\t\t${Ie(br.cssVarList)}\n\t\t\t${De("vaadin-email-field",br.cssVarList)}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:fr})),gr=br.cssVarList,yr={[gr.hostWidth]:qe.width,[gr.hostMinWidth]:qe.minWidth,[gr.hostDirection]:qe.direction,[gr.fontSize]:qe.fontSize,[gr.fontFamily]:qe.fontFamily,[gr.labelTextColor]:qe.labelTextColor,[gr.errorMessageTextColor]:qe.errorMessageTextColor,[gr.inputValueTextColor]:qe.valueTextColor,[gr.labelRequiredIndicator]:qe.requiredIndicator,[gr.inputPlaceholderColor]:qe.placeholderTextColor,[gr.inputBorderWidth]:qe.borderWidth,[gr.inputBorderStyle]:qe.borderStyle,[gr.inputBorderColor]:qe.borderColor,[gr.inputBorderRadius]:qe.borderRadius,[gr.inputOutlineWidth]:qe.outlineWidth,[gr.inputOutlineStyle]:qe.outlineStyle,[gr.inputOutlineColor]:qe.outlineColor,[gr.inputOutlineOffset]:qe.outlineOffset,[gr.inputBackgroundColor]:qe.backgroundColor,[gr.inputHorizontalPadding]:qe.horizontalPadding,[gr.inputHeight]:qe.inputHeight},vr=tt("text-area"),{host:xr,label:Cr,placeholder:wr,inputField:kr,textArea:Sr,requiredIndicator:Mr,helperText:Ar,errorMessage:Tr}={host:{selector:()=>":host"},label:{selector:"::part(label)"},placeholder:{selector:"textarea:placeholder-shown"},inputField:{selector:"::part(input-field)"},textArea:{selector:"> textarea"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Er=Z(Wt({mappings:{hostWidth:{...xr,property:"width"},hostMinWidth:{...xr,property:"min-width"},hostDirection:{...xr,property:"direction"},fontSize:[xr,Sr],fontFamily:[Cr,kr,Ar,Tr],labelTextColor:[{...Cr,property:"color"},{...Mr,property:"color"}],labelRequiredIndicator:{...Mr,property:"content"},errorMessageTextColor:{...Tr,property:"color"},inputBackgroundColor:{...kr,property:"background-color"},inputValueTextColor:{...Sr,property:"color"},inputPlaceholderTextColor:{...wr,property:"color"},inputBorderWidth:{...kr,property:"border-width"},inputBorderStyle:{...kr,property:"border-style"},inputBorderColor:{...kr,property:"border-color"},inputBorderRadius:{...kr,property:"border-radius"},inputOutlineStyle:{...kr,property:"outline-Style"},inputOutlineColor:{...kr,property:"outline-color"},inputOutlineOffset:{...kr,property:"outline-offset"},inputOutlineWidth:{...kr,property:"outline-width"},inputResizeType:{...Sr,property:"resize"},inputMinHeight:{...Sr,property:"min-height"},inputTextAlign:{...Sr,property:"text-align"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt)(Ut({slots:[],wrappedEleName:"vaadin-text-area",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n box-sizing: border-box;\n\t\t\t}\n\t\t\ttextarea {\n\t\t\t\theight: 100%;\n\t\t\t}\n ${We("vaadin-text-area")}\n\t\t\t${Ie(Er.cssVarList)}\n\t\t\t${_e("vaadin-text-area")}\n\t\t\t${Le("vaadin-text-area")}\n\t\t\t${Oe("vaadin-text-area","textarea")}\n\t\t\t${ze("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:vr})),Ir=Er.cssVarList,_r={[Ir.hostWidth]:qe.width,[Ir.hostMinWidth]:qe.minWidth,[Ir.hostDirection]:qe.direction,[Ir.fontSize]:qe.fontSize,[Ir.fontFamily]:qe.fontFamily,[Ir.labelTextColor]:qe.labelTextColor,[Ir.labelRequiredIndicator]:qe.requiredIndicator,[Ir.errorMessageTextColor]:qe.errorMessageTextColor,[Ir.inputBackgroundColor]:qe.backgroundColor,[Ir.inputValueTextColor]:qe.valueTextColor,[Ir.inputPlaceholderTextColor]:qe.placeholderTextColor,[Ir.inputBorderRadius]:qe.borderRadius,[Ir.inputBorderWidth]:qe.borderWidth,[Ir.inputBorderStyle]:qe.borderStyle,[Ir.inputBorderColor]:qe.borderColor,[Ir.inputOutlineWidth]:qe.outlineWidth,[Ir.inputOutlineStyle]:qe.outlineStyle,[Ir.inputOutlineColor]:qe.outlineColor,[Ir.inputOutlineOffset]:qe.outlineOffset,[Ir.inputResizeType]:"vertical",[Ir.inputMinHeight]:"5em",textAlign:{right:{[Ir.inputTextAlign]:"right"},left:{[Ir.inputTextAlign]:"left"},center:{[Ir.inputTextAlign]:"center"}},_readonly:{[Ir.inputResizeType]:"none"}},Lr=(...t)=>Z(Zt,ee,qt,re)(Ht(...t)),zr=tt("boolean-field-internal");Lr({componentName:zr,baseSelector:"div"});const Or=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${zr}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${zr}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(zr),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),rt(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),nt(this.inputElement,this,["checked"]),X(this,this.inputElement,{includeAttrs:["checked"]})}},Nr='\n:host {\n\tdisplay: inline-flex;\n}\n\n\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n.wrapper {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n}\nvaadin-text-field {\n\tposition: relative;\n\tpadding: 0;\n\tdisplay: inline-flex;\n\talign-items: flex-start;\n}\nvaadin-text-field::before {\n\theight: 0;\n\tmargin: 0;\n}\nvaadin-text-field::part(label) {\n position: absolute;\n top: 0;\n}\nvaadin-text-field::part(input-field) {\n\tpadding: 0;\n\tbackground: none;\n\tmin-height: 0;\n}\nvaadin-text-field::part(input-field)::after {\n background: none;\n}\nvaadin-text-field[focus-ring]::part(input-field) {\n\tbox-shadow: none;\n}\n\nvaadin-checkbox [slot="label"] {\n align-self: flex-start;\n padding: 0;\n}\n[required] vaadin-checkbox [slot="label"]:not(:empty) {\n\tpadding-inline-end: 1em;\n}\ndescope-boolean-field-internal {\n -webkit-mask-image: none;\n min-height: initial;\n}\n',Vr=tt("checkbox"),{host:Dr,component:Wr,checkboxElement:Br,checkboxSurface:Rr,checkboxLabel:$r,requiredIndicator:Fr,helperText:jr,errorMessage:Pr}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},qr=Z(Wt({mappings:{hostWidth:{...Dr,property:"width"},hostDirection:{...Dr,property:"direction"},fontSize:[Dr,Br,$r],fontFamily:[$r,jr,Pr],labelTextColor:{...$r,property:"color"},labelSpacing:{...$r,property:"padding-inline-start"},labelLineHeight:{...$r,property:"line-height"},labelFontWeight:{...$r,property:"font-weight"},labelRequiredIndicator:{...Fr,property:"content"},errorMessageTextColor:{...Pr,property:"color"},inputValueTextColor:{...Rr,property:"color"},inputBackgroundColor:{...Br,property:"background-color"},inputBorderRadius:{...Br,property:"border-radius"},inputBorderWidth:{...Br,property:"border-width"},inputBorderOffset:{...Br,property:"border-offset"},inputBorderColor:{...Br,property:"border-color"},inputBorderStyle:{...Br,property:"border-style"},inputOutlineWidth:{...Br,property:"outline-width"},inputOutlineOffset:{...Br,property:"outline-offset"},inputOutlineColor:{...Br,property:"outline-color"},inputOutlineStyle:{...Br,property:"outline-style"},inputSize:[{...Br,property:"width"},{...Br,property:"height"},{...Rr,property:"font-size"},{...Wr,property:"font-size"}]}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,Or)(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Nr}\n ${Ie(qr.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n height: 100%;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox)::after {\n top: 0;\n left: 0;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n `,excludeAttrsSync:["label","tabindex"],componentName:Vr})),Hr=qr.cssVarList,Ur="1.35em",Gr={[Hr.hostWidth]:qe.width,[Hr.hostDirection]:qe.direction,[Hr.fontSize]:qe.fontSize,[Hr.fontFamily]:qe.fontFamily,[Hr.labelTextColor]:qe.labelTextColor,[Hr.labelRequiredIndicator]:qe.requiredIndicator,[Hr.labelFontWeight]:"400",[Hr.labelLineHeight]:Ur,[Hr.labelSpacing]:"1em",[Hr.errorMessageTextColor]:qe.errorMessageTextColor,[Hr.inputOutlineWidth]:qe.outlineWidth,[Hr.inputOutlineOffset]:qe.outlineOffset,[Hr.inputOutlineColor]:qe.outlineColor,[Hr.inputOutlineStyle]:qe.outlineStyle,[Hr.inputBorderRadius]:qe.borderRadius,[Hr.inputBorderColor]:qe.borderColor,[Hr.inputBorderWidth]:qe.borderWidth,[Hr.inputBorderStyle]:qe.borderStyle,[Hr.inputBackgroundColor]:qe.backgroundColor,[Hr.inputSize]:Ur,_checked:{[Hr.inputValueTextColor]:qe.valueTextColor},_disabled:{[Hr.labelTextColor]:qe.labelTextColor}},Zr=tt("switch-toggle"),{host:Qr,component:Yr,checkboxElement:Jr,checkboxSurface:Kr,checkboxLabel:Xr,requiredIndicator:tn,helperText:en,errorMessage:rn}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},nn=Z(Wt({mappings:{hostWidth:{...Qr,property:"width"},hostDirection:{...Qr,property:"direction"},fontSize:[Yr,Xr,Xr],fontFamily:[Xr,en,rn],labelTextColor:{...Xr,property:"color"},labelSpacing:{...Xr,property:"padding-inline-start"},labelLineHeight:{...Xr,property:"line-height"},labelFontWeight:{...Xr,property:"font-weight"},labelRequiredIndicator:{...tn,property:"content"},errorMessageTextColor:{...rn,property:"color"},trackBorderWidth:{...Jr,property:"border-width"},trackBorderStyle:{...Jr,property:"border-style"},trackBorderColor:{...Jr,property:"border-color"},trackBackgroundColor:{...Jr,property:"background-color"},trackBorderRadius:{...Jr,property:"border-radius"},trackWidth:[{...Jr,property:"width"}],trackHeight:[{...Kr,property:"font-size"},{...Jr,property:"height"}],knobSize:[{...Kr,property:"width"},{...Kr,property:"height"}],knobTextColor:{...Kr,property:"color"},knobRadius:{...Kr,property:"border-radius"},knobTransitionDuration:{...Kr,property:"transition"},knobColor:{...Kr,property:"background-color"},knobTopOffset:{...Kr,property:"top"},knobLeftOffset:{...Kr,property:"left"},inputOutlineWidth:{...Jr,property:"outline-width"},inputOutlineOffset:{...Jr,property:"outline-offset"},inputOutlineColor:{...Jr,property:"outline-color"},inputOutlineStyle:{...Jr,property:"outline-style"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,Or)(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Nr}\n\t\t\t${Ie(nn.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n width: 100%;\n }\n\n vaadin-text-field::part(input-field) {\n cursor: pointer;\n }\n\n vaadin-checkbox {\n cursor: pointer;\n }\n\n vaadin-checkbox [slot="label"]:not(:empty) {\n cursor: pointer;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::before {\n content: '';\n\t\t\t}\n\n vaadin-checkbox[active]::part(checkbox) {\n\t\t\t\ttransform: none;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::after {\n\t\t\t\tposition: absolute;\n\t\t\t\topacity: 1;\n\t\t\t\tcontent: '';\n\t\t\t}\n\t\t`,excludeAttrsSync:["label","tabindex"],componentName:Zr})),on="2px",an=dt(Nt),sn=nn.cssVarList,ln={[sn.hostWidth]:qe.width,[sn.hostDirection]:qe.direction,[sn.fontSize]:qe.fontSize,[sn.fontFamily]:qe.fontFamily,[sn.inputOutlineWidth]:qe.outlineWidth,[sn.inputOutlineOffset]:qe.outlineOffset,[sn.inputOutlineColor]:qe.outlineColor,[sn.inputOutlineStyle]:qe.outlineStyle,[sn.trackBorderStyle]:qe.borderStyle,[sn.trackBorderWidth]:qe.borderWidth,[sn.trackBorderColor]:qe.borderColor,[sn.trackBackgroundColor]:qe.backgroundColor,[sn.trackBorderRadius]:an.radius.md,[sn.trackWidth]:"2.5em",[sn.trackHeight]:"1.25em",[sn.knobSize]:`calc(1em - ${on})`,[sn.knobRadius]:"50%",[sn.knobTopOffset]:"1px",[sn.knobLeftOffset]:on,[sn.knobColor]:qe.labelTextColor,[sn.knobTransitionDuration]:"0.3s",[sn.labelTextColor]:qe.labelTextColor,[sn.labelFontWeight]:"400",[sn.labelLineHeight]:"1.35em",[sn.labelSpacing]:"1em",[sn.labelRequiredIndicator]:qe.requiredIndicator,[sn.errorMessageTextColor]:qe.errorMessageTextColor,_checked:{[sn.trackBorderColor]:qe.borderColor,[sn.knobLeftOffset]:`calc(100% - var(${sn.knobSize}) - ${on})`,[sn.knobColor]:qe.valueTextColor,[sn.knobTextColor]:qe.valueTextColor},_disabled:{[sn.knobColor]:an.colors.surface.light,[sn.trackBorderColor]:an.colors.surface.light,[sn.trackBackgroundColor]:an.colors.surface.main,[sn.labelTextColor]:qe.labelTextColor,_checked:{[sn.knobColor]:an.colors.surface.light,[sn.trackBackgroundColor]:an.colors.surface.main}},_invalid:{[sn.trackBorderColor]:an.colors.error.main,[sn.knobColor]:an.colors.error.main}},dn=tt("container");class cn extends(Ht({componentName:dn,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t:host > slot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n\t\t</style>\n\t\t<slot></slot>\n\t"}}const pn=Z(Wt({mappings:{hostHeight:{selector:()=>":host",property:"height"},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:{},flexWrap:{},backgroundColor:{},color:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{}}}),Bt,Rt)(cn),un=dt(Nt),hn=pn.cssVarList,[mn,fn,bn]=ft({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},dn),{shadowColor:gn}=fn,yn={...mn,[hn.hostWidth]:"100%",[hn.boxShadow]:"none",[hn.backgroundColor]:un.colors.surface.main,[hn.color]:un.colors.surface.contrast,[hn.borderRadius]:"0px",[hn.hostDirection]:un.direction,verticalPadding:{sm:{[hn.verticalPadding]:"5px"},md:{[hn.verticalPadding]:"10px"},lg:{[hn.verticalPadding]:"20px"}},horizontalPadding:{sm:{[hn.horizontalPadding]:"5px"},md:{[hn.horizontalPadding]:"10px"},lg:{[hn.horizontalPadding]:"20px"}},direction:{row:{[hn.flexDirection]:"row",[hn.alignItems]:fn.verticalAlignment,[hn.justifyContent]:fn.horizontalAlignment,[hn.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[bn.horizontalAlignment]:"space-between"}}},column:{[hn.flexDirection]:"column",[hn.alignItems]:fn.horizontalAlignment,[hn.justifyContent]:fn.verticalAlignment,verticalAlignment:{spaceBetween:{[bn.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[hn.gap]:"10px"},md:{[hn.gap]:"20px"},lg:{[hn.gap]:"30px"}},shadow:{sm:{[hn.boxShadow]:`${un.shadow.wide.sm} ${gn}, ${un.shadow.narrow.sm} ${gn}`},md:{[hn.boxShadow]:`${un.shadow.wide.md} ${gn}, ${un.shadow.narrow.md} ${gn}`},lg:{[hn.boxShadow]:`${un.shadow.wide.lg} ${gn}, ${un.shadow.narrow.lg} ${gn}`},xl:{[hn.boxShadow]:`${un.shadow.wide.xl} ${gn}, ${un.shadow.narrow.xl} ${gn}`},"2xl":{[bn.shadowColor]:"#00000050",[hn.boxShadow]:`${un.shadow.wide["2xl"]} ${gn}`}},borderRadius:{sm:{[hn.borderRadius]:un.radius.sm},md:{[hn.borderRadius]:un.radius.md},lg:{[hn.borderRadius]:un.radius.lg},xl:{[hn.borderRadius]:un.radius.xl},"2xl":{[hn.borderRadius]:un.radius["2xl"]},"3xl":{[hn.borderRadius]:un.radius["3xl"]}}},vn={...hn,...bn},xn=({componentName:t,varName:e,fallbackVarName:r})=>{let n;class o extends(Ht({componentName:t,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\t\t\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t\tmargin: auto;\n\t\t\t\t\t${n}\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div></div>\n\t\t\t`}}const i=Z(Wt({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[r]:{property:"content"}}}),Bt,Rt)(o);return n=`content: var(${i.cssVarList[e]}, var(${i.cssVarList[r]}));`,i},Cn=xn({componentName:tt("logo"),varName:"url",fallbackVarName:"fallbackUrl"}).cssVarList,wn={[Cn.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"},kn=xn({componentName:tt("totp-image"),varName:"url",fallbackVarName:"fallbackUrl"}).cssVarList,Sn={[kn.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"},Mn=xn({componentName:tt("notp-image"),varName:"url",fallbackVarName:"fallbackUrl"}).cssVarList,An={[Mn.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"},Tn=tt("text");class En extends(Ht({componentName:Tn,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <style>\n :host {\n display: inline-block;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n </style>\n <slot part="text-wrapper"></slot>\n ',this.textSlot=this.shadowRoot.querySelector("slot")}get hideWhenEmpty(){return"true"===this.getAttribute("hide-when-empty")}init(){super.init(),J(this,(()=>{const t=!!this.childNodes.length;this.style.display=!t&&this.hideWhenEmpty?"none":""}))}}const In=Z(Wt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},textColor:{property:"color"},textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Bt,Rt)(En),_n=dt(Nt),Ln=In.cssVarList,zn={[Ln.hostDirection]:_n.direction,[Ln.textLineHeight]:"1.35em",[Ln.textAlign]:"left",[Ln.textColor]:_n.colors.surface.dark,variant:{h1:{[Ln.fontSize]:_n.typography.h1.size,[Ln.fontWeight]:_n.typography.h1.weight,[Ln.fontFamily]:_n.typography.h1.font},h2:{[Ln.fontSize]:_n.typography.h2.size,[Ln.fontWeight]:_n.typography.h2.weight,[Ln.fontFamily]:_n.typography.h2.font},h3:{[Ln.fontSize]:_n.typography.h3.size,[Ln.fontWeight]:_n.typography.h3.weight,[Ln.fontFamily]:_n.typography.h3.font},subtitle1:{[Ln.fontSize]:_n.typography.subtitle1.size,[Ln.fontWeight]:_n.typography.subtitle1.weight,[Ln.fontFamily]:_n.typography.subtitle1.font},subtitle2:{[Ln.fontSize]:_n.typography.subtitle2.size,[Ln.fontWeight]:_n.typography.subtitle2.weight,[Ln.fontFamily]:_n.typography.subtitle2.font},body1:{[Ln.fontSize]:_n.typography.body1.size,[Ln.fontWeight]:_n.typography.body1.weight,[Ln.fontFamily]:_n.typography.body1.font},body2:{[Ln.fontSize]:_n.typography.body2.size,[Ln.fontWeight]:_n.typography.body2.weight,[Ln.fontFamily]:_n.typography.body2.font}},mode:{primary:{[Ln.textColor]:_n.colors.surface.contrast},secondary:{[Ln.textColor]:_n.colors.surface.dark},error:{[Ln.textColor]:_n.colors.error.main},success:{[Ln.textColor]:_n.colors.success.main}},textAlign:{right:{[Ln.textAlign]:"right"},left:{[Ln.textAlign]:"left"},center:{[Ln.textAlign]:"center"}},_fullWidth:{[Ln.hostWidth]:"100%"},_italic:{[Ln.fontStyle]:"italic"},_uppercase:{[Ln.textTransform]:"uppercase"},_lowercase:{[Ln.textTransform]:"lowercase"}};var On;function Nn(t){return(On=On||document.createElement("textarea")).innerHTML="&"+t+";",On.value}var Vn=Object.prototype.hasOwnProperty;function Dn(t){return[].slice.call(arguments,1).forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t}var Wn=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Bn(t){return t.indexOf("\\")<0?t:t.replace(Wn,"$1")}function Rn(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||65535==(65535&t)||65534==(65535&t)||t>=0&&t<=8||11===t||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function $n(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var Fn=/&([a-z#][a-z0-9]{1,31});/gi,jn=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Pn(t,e){var r=0,n=Nn(e);return e!==n?n:35===e.charCodeAt(0)&&jn.test(e)&&Rn(r="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?$n(r):t}function qn(t){return t.indexOf("&")<0?t:t.replace(Fn,Pn)}var Hn=/[&<>"]/,Un=/[&<>"]/g,Gn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Zn(t){return Gn[t]}function Qn(t){return Hn.test(t)?t.replace(Un,Zn):t}var Yn={};function Jn(t,e){return++e>=t.length-2?e:"paragraph_open"===t[e].type&&t[e].tight&&"inline"===t[e+1].type&&0===t[e+1].content.length&&"paragraph_close"===t[e+2].type&&t[e+2].tight?Jn(t,e+2):e}Yn.blockquote_open=function(){return"<blockquote>\n"},Yn.blockquote_close=function(t,e){return"</blockquote>"+Kn(t,e)},Yn.code=function(t,e){return t[e].block?"<pre><code>"+Qn(t[e].content)+"</code></pre>"+Kn(t,e):"<code>"+Qn(t[e].content)+"</code>"},Yn.fence=function(t,e,r,n,o){var i,a,s,l,d=t[e],c="",p=r.langPrefix;if(d.params){if(a=(i=d.params.split(/\s+/g)).join(" "),s=o.rules.fence_custom,l=i[0],s&&Vn.call(s,l))return o.rules.fence_custom[i[0]](t,e,r,n,o);c=' class="'+p+Qn(qn(Bn(a)))+'"'}return"<pre><code"+c+">"+(r.highlight&&r.highlight.apply(r.highlight,[d.content].concat(i))||Qn(d.content))+"</code></pre>"+Kn(t,e)},Yn.fence_custom={},Yn.heading_open=function(t,e){return"<h"+t[e].hLevel+">"},Yn.heading_close=function(t,e){return"</h"+t[e].hLevel+">\n"},Yn.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+Kn(t,e)},Yn.bullet_list_open=function(){return"<ul>\n"},Yn.bullet_list_close=function(t,e){return"</ul>"+Kn(t,e)},Yn.list_item_open=function(){return"<li>"},Yn.list_item_close=function(){return"</li>\n"},Yn.ordered_list_open=function(t,e){var r=t[e];return"<ol"+(r.order>1?' start="'+r.order+'"':"")+">\n"},Yn.ordered_list_close=function(t,e){return"</ol>"+Kn(t,e)},Yn.paragraph_open=function(t,e){return t[e].tight?"":"<p>"},Yn.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&"inline"===t[e-1].type&&!t[e-1].content);return(t[e].tight?"":"</p>")+(r?Kn(t,e):"")},Yn.link_open=function(t,e,r){var n=t[e].title?' title="'+Qn(qn(t[e].title))+'"':"",o=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+Qn(t[e].href)+'"'+n+o+">"},Yn.link_close=function(){return"</a>"},Yn.image=function(t,e,r){var n=' src="'+Qn(t[e].src)+'"',o=t[e].title?' title="'+Qn(qn(t[e].title))+'"':"";return"<img"+n+' alt="'+(t[e].alt?Qn(qn(Bn(t[e].alt))):"")+'"'+o+(r.xhtmlOut?" /":"")+">"},Yn.table_open=function(){return"<table>\n"},Yn.table_close=function(){return"</table>\n"},Yn.thead_open=function(){return"<thead>\n"},Yn.thead_close=function(){return"</thead>\n"},Yn.tbody_open=function(){return"<tbody>\n"},Yn.tbody_close=function(){return"</tbody>\n"},Yn.tr_open=function(){return"<tr>"},Yn.tr_close=function(){return"</tr>\n"},Yn.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"},Yn.th_close=function(){return"</th>"},Yn.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"},Yn.td_close=function(){return"</td>"},Yn.strong_open=function(){return"<strong>"},Yn.strong_close=function(){return"</strong>"},Yn.em_open=function(){return"<em>"},Yn.em_close=function(){return"</em>"},Yn.del_open=function(){return"<del>"},Yn.del_close=function(){return"</del>"},Yn.ins_open=function(){return"<ins>"},Yn.ins_close=function(){return"</ins>"},Yn.mark_open=function(){return"<mark>"},Yn.mark_close=function(){return"</mark>"},Yn.sub=function(t,e){return"<sub>"+Qn(t[e].content)+"</sub>"},Yn.sup=function(t,e){return"<sup>"+Qn(t[e].content)+"</sup>"},Yn.hardbreak=function(t,e,r){return r.xhtmlOut?"<br />\n":"<br>\n"},Yn.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},Yn.text=function(t,e){return Qn(t[e].content)},Yn.htmlblock=function(t,e){return t[e].content},Yn.htmltag=function(t,e){return t[e].content},Yn.abbr_open=function(t,e){return'<abbr title="'+Qn(qn(t[e].title))+'">'},Yn.abbr_close=function(){return"</abbr>"},Yn.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"},Yn.footnote_block_open=function(t,e,r){return(r.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},Yn.footnote_block_close=function(){return"</ol>\n</section>\n"},Yn.footnote_open=function(t,e){return'<li id="fn'+Number(t[e].id+1).toString()+'" class="footnote-item">'},Yn.footnote_close=function(){return"</li>\n"},Yn.footnote_anchor=function(t,e){var r="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(r+=":"+t[e].subId),' <a href="#'+r+'" class="footnote-backref">↩</a>'},Yn.dl_open=function(){return"<dl>\n"},Yn.dt_open=function(){return"<dt>"},Yn.dd_open=function(){return"<dd>"},Yn.dl_close=function(){return"</dl>\n"},Yn.dt_close=function(){return"</dt>\n"},Yn.dd_close=function(){return"</dd>\n"};var Kn=Yn.getBreak=function(t,e){return(e=Jn(t,e))<t.length&&"list_item_close"===t[e].type?"":"\n"};function Xn(){this.rules=Dn({},Yn),this.getBreak=Yn.getBreak}function to(){this.__rules__=[],this.__cache__=null}function eo(t,e,r,n,o){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function ro(t,e){var r,n,o,i=-1,a=t.posMax,s=t.pos,l=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,r=1;t.pos<a;){if(91===(o=t.src.charCodeAt(t.pos)))r++;else if(93===o&&0==--r){n=!0;break}t.parser.skipToken(t)}return n?(i=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=s,t.isInLabel=l,i}function no(t,e,r,n){var o,i,a,s,l,d;if(42!==t.charCodeAt(0))return-1;if(91!==t.charCodeAt(1))return-1;if(-1===t.indexOf("]:"))return-1;if((i=ro(o=new eo(t,e,r,n,[]),1))<0||58!==t.charCodeAt(i+1))return-1;for(s=o.posMax,a=i+2;a<s&&10!==o.src.charCodeAt(a);a++);return l=t.slice(2,i),0===(d=t.slice(i+2,a).trim()).length?-1:(n.abbreviations||(n.abbreviations={}),void 0===n.abbreviations[":"+l]&&(n.abbreviations[":"+l]=d),a)}function oo(t){var e=qn(t);try{e=decodeURI(e)}catch(t){}return encodeURI(e)}function io(t,e){var r,n,o,i=e,a=t.posMax;if(60===t.src.charCodeAt(e)){for(e++;e<a;){if(10===(r=t.src.charCodeAt(e)))return!1;if(62===r)return o=oo(Bn(t.src.slice(i+1,e))),!!t.parser.validateLink(o)&&(t.pos=e+1,t.linkContent=o,!0);92===r&&e+1<a?e+=2:e++}return!1}for(n=0;e<a&&32!==(r=t.src.charCodeAt(e))&&!(r<32||127===r);)if(92===r&&e+1<a)e+=2;else{if(40===r&&++n>1)break;if(41===r&&--n<0)break;e++}return i!==e&&(o=Bn(t.src.slice(i,e)),!!t.parser.validateLink(o)&&(t.linkContent=o,t.pos=e,!0))}function ao(t,e){var r,n=e,o=t.posMax,i=t.src.charCodeAt(e);if(34!==i&&39!==i&&40!==i)return!1;for(e++,40===i&&(i=41);e<o;){if((r=t.src.charCodeAt(e))===i)return t.pos=e+1,t.linkContent=Bn(t.src.slice(n+1,e)),!0;92===r&&e+1<o?e+=2:e++}return!1}function so(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function lo(t,e,r,n){var o,i,a,s,l,d,c,p,u;if(91!==t.charCodeAt(0))return-1;if(-1===t.indexOf("]:"))return-1;if((i=ro(o=new eo(t,e,r,n,[]),0))<0||58!==t.charCodeAt(i+1))return-1;for(s=o.posMax,a=i+2;a<s&&(32===(l=o.src.charCodeAt(a))||10===l);a++);if(!io(o,a))return-1;for(c=o.linkContent,d=a=o.pos,a+=1;a<s&&(32===(l=o.src.charCodeAt(a))||10===l);a++);for(a<s&&d!==a&&ao(o,a)?(p=o.linkContent,a=o.pos):(p="",a=d);a<s&&32===o.src.charCodeAt(a);)a++;return a<s&&10!==o.src.charCodeAt(a)?-1:(u=so(t.slice(1,i)),void 0===n.references[u]&&(n.references[u]={title:p,href:c}),a)}Xn.prototype.renderInline=function(t,e,r){for(var n=this.rules,o=t.length,i=0,a="";o--;)a+=n[t[i].type](t,i++,e,r,this);return a},Xn.prototype.render=function(t,e,r){for(var n=this.rules,o=t.length,i=-1,a="";++i<o;)"inline"===t[i].type?a+=this.renderInline(t[i].children,e,r):a+=n[t[i].type](t,i,e,r,this);return a},to.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1},to.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(r){r.enabled&&(e&&r.alt.indexOf(e)<0||t.__cache__[e].push(r.fn))}))}))},to.prototype.at=function(t,e,r){var n=this.__find__(t),o=r||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null},to.prototype.before=function(t,e,r,n){var o=this.__find__(t),i=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},to.prototype.after=function(t,e,r,n){var o=this.__find__(t),i=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},to.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},to.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach((function(t){t.enabled=!1})),t.forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!0}),this),this.__cache__=null},to.prototype.disable=function(t){(t=Array.isArray(t)?t:[t]).forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!1}),this),this.__cache__=null},to.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},eo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},eo.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level},eo.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e},eo.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};var co=" \n()[]'\".,!?-";function po(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var uo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ho=/\((c|tm|r|p)\)/gi,mo={c:"©",r:"®",p:"§",tm:"™"},fo=/['"]/,bo=/['"]/g,go=/[-\s()\[\]]/;function yo(t,e){return!(e<0||e>=t.length||go.test(t[e]))}function vo(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}var xo=[["block",function(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}],["abbr",function(t){var e,r,n,o,i=t.tokens;if(!t.inlineMode)for(e=1,r=i.length-1;e<r;e++)if("paragraph_open"===i[e-1].type&&"inline"===i[e].type&&"paragraph_close"===i[e+1].type){for(n=i[e].content;n.length&&!((o=no(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();i[e].content=n,n.length||(i[e-1].tight=!0,i[e+1].tight=!0)}}],["references",function(t){var e,r,n,o,i=t.tokens;if(t.env.references=t.env.references||{},!t.inlineMode)for(e=1,r=i.length-1;e<r;e++)if("inline"===i[e].type&&"paragraph_open"===i[e-1].type&&"paragraph_close"===i[e+1].type){for(n=i[e].content;n.length&&!((o=lo(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();i[e].content=n,n.length||(i[e-1].tight=!0,i[e+1].tight=!0)}}],["inline",function(t){var e,r,n,o=t.tokens;for(r=0,n=o.length;r<n;r++)"inline"===(e=o[r]).type&&t.inline.parse(e.content,t.options,t.env,e.children)}],["footnote_tail",function(t){var e,r,n,o,i,a,s,l,d,c=0,p=!1,u={};if(t.env.footnotes&&(t.tokens=t.tokens.filter((function(t){return"footnote_reference_open"===t.type?(p=!0,l=[],d=t.label,!1):"footnote_reference_close"===t.type?(p=!1,u[":"+d]=l,!1):(p&&l.push(t),!p)})),t.env.footnotes.list)){for(a=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:c++}),e=0,r=a.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:c++}),a[e].tokens?((s=[]).push({type:"paragraph_open",tight:!1,level:c++}),s.push({type:"inline",content:"",level:c,children:a[e].tokens}),s.push({type:"paragraph_close",tight:!1,level:--c})):a[e].label&&(s=u[":"+a[e].label]),t.tokens=t.tokens.concat(s),i="paragraph_close"===t.tokens[t.tokens.length-1].type?t.tokens.pop():null,o=a[e].count>0?a[e].count:1,n=0;n<o;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:c});i&&t.tokens.push(i),t.tokens.push({type:"footnote_close",level:--c})}t.tokens.push({type:"footnote_block_close",level:--c})}}],["abbr2",function(t){var e,r,n,o,i,a,s,l,d,c,p,u,h=t.tokens;if(t.env.abbreviations)for(t.env.abbrRegExp||(u="(^|["+co.split("").map(po).join("")+"])("+Object.keys(t.env.abbreviations).map((function(t){return t.substr(1)})).sort((function(t,e){return e.length-t.length})).map(po).join("|")+")($|["+co.split("").map(po).join("")+"])",t.env.abbrRegExp=new RegExp(u,"g")),c=t.env.abbrRegExp,r=0,n=h.length;r<n;r++)if("inline"===h[r].type)for(e=(o=h[r].children).length-1;e>=0;e--)if("text"===(i=o[e]).type){for(l=0,a=i.content,c.lastIndex=0,d=i.level,s=[];p=c.exec(a);)c.lastIndex>l&&s.push({type:"text",content:a.slice(l,p.index+p[1].length),level:d}),s.push({type:"abbr_open",title:t.env.abbreviations[":"+p[2]],level:d++}),s.push({type:"text",content:p[2],level:d}),s.push({type:"abbr_close",level:--d}),l=c.lastIndex-p[3].length;s.length&&(l<a.length&&s.push({type:"text",content:a.slice(l),level:d}),h[r].children=o=[].concat(o.slice(0,e),s,o.slice(e+1)))}}],["replacements",function(t){var e,r,n,o,i,a;if(t.options.typographer)for(i=t.tokens.length-1;i>=0;i--)if("inline"===t.tokens[i].type)for(e=(o=t.tokens[i].children).length-1;e>=0;e--)"text"===(r=o[e]).type&&(n=(a=n=r.content).indexOf("(")<0?a:a.replace(ho,(function(t,e){return mo[e.toLowerCase()]})),uo.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),r.content=n)}],["smartquotes",function(t){var e,r,n,o,i,a,s,l,d,c,p,u,h,m,f,b,g;if(t.options.typographer)for(g=[],f=t.tokens.length-1;f>=0;f--)if("inline"===t.tokens[f].type)for(b=t.tokens[f].children,g.length=0,e=0;e<b.length;e++)if("text"===(r=b[e]).type&&!fo.test(r.text)){for(s=b[e].level,h=g.length-1;h>=0&&!(g[h].level<=s);h--);g.length=h+1,i=0,a=(n=r.content).length;t:for(;i<a&&(bo.lastIndex=i,o=bo.exec(n));)if(l=!yo(n,o.index-1),i=o.index+1,m="'"===o[0],(d=!yo(n,i))||l){if(p=!d,u=!l)for(h=g.length-1;h>=0&&(c=g[h],!(g[h].level<s));h--)if(c.single===m&&g[h].level===s){c=g[h],m?(b[c.token].content=vo(b[c.token].content,c.pos,t.options.quotes[2]),r.content=vo(r.content,o.index,t.options.quotes[3])):(b[c.token].content=vo(b[c.token].content,c.pos,t.options.quotes[0]),r.content=vo(r.content,o.index,t.options.quotes[1])),g.length=h;continue t}p?g.push({token:e,pos:o.index,single:m,level:s}):u&&m&&(r.content=vo(r.content,o.index,"’"))}else m&&(r.content=vo(r.content,o.index,"’"))}}]];function Co(){this.options={},this.ruler=new to;for(var t=0;t<xo.length;t++)this.ruler.push(xo[t][0],xo[t][1])}function wo(t,e,r,n,o){var i,a,s,l,d,c,p;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",c=0,p=!1,s=l=c=0,d=(a=this.src).length;l<d;l++){if(i=a.charCodeAt(l),!p){if(32===i){c++;continue}p=!0}10!==i&&l!==d-1||(10!==i&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),p=!1,c=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function ko(t,e){var r,n,o;return(n=t.bMarks[e]+t.tShift[e])>=(o=t.eMarks[e])||42!==(r=t.src.charCodeAt(n++))&&45!==r&&43!==r||n<o&&32!==t.src.charCodeAt(n)?-1:n}function So(t,e){var r,n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(n+1>=o)return-1;if((r=t.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=o)return-1;if(!((r=t.src.charCodeAt(n++))>=48&&r<=57)){if(41===r||46===r)break;return-1}}return n<o&&32!==t.src.charCodeAt(n)?-1:n}Co.prototype.process=function(t){var e,r,n;for(e=0,r=(n=this.ruler.getRules("")).length;e<r;e++)n[e](t)},wo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},wo.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},wo.prototype.skipSpaces=function(t){for(var e=this.src.length;t<e&&32===this.src.charCodeAt(t);t++);return t},wo.prototype.skipChars=function(t,e){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===e;t++);return t},wo.prototype.skipCharsBack=function(t,e,r){if(t<=r)return t;for(;t>r;)if(e!==this.src.charCodeAt(--t))return t+1;return t},wo.prototype.getLines=function(t,e,r,n){var o,i,a,s,l,d=t;if(t>=e)return"";if(d+1===e)return i=this.bMarks[d]+Math.min(this.tShift[d],r),a=n?this.eMarks[d]+1:this.eMarks[d],this.src.slice(i,a);for(s=new Array(e-t),o=0;d<e;d++,o++)(l=this.tShift[d])>r&&(l=r),l<0&&(l=0),i=this.bMarks[d]+l,a=d+1<e||n?this.eMarks[d]+1:this.eMarks[d],s[o]=this.src.slice(i,a);return s.join("")};var Mo={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(t){Mo[t]=!0}));var Ao=/^<([a-zA-Z]{1,15})[\s\/>]/,To=/^<\/([a-zA-Z]{1,15})[\s>]/;function Eo(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Io(t,e){var r,n,o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return o>=i||126!==(n=t.src.charCodeAt(o++))&&58!==n||o===(r=t.skipSpaces(o))||r>=i?-1:r}var _o=[["code",function(t,e,r){var n,o;if(t.tShift[e]-t.blkIndent<4)return!1;for(o=n=e+1;n<r;)if(t.isEmpty(n))n++;else{if(!(t.tShift[n]-t.blkIndent>=4))break;o=++n}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,o,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}],["fences",function(t,e,r,n){var o,i,a,s,l,d=!1,c=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(c+3>p)return!1;if(126!==(o=t.src.charCodeAt(c))&&96!==o)return!1;if(l=c,(i=(c=t.skipChars(c,o))-l)<3)return!1;if((a=t.src.slice(c,p).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(s=e;!(++s>=r||(c=l=t.bMarks[s]+t.tShift[s])<(p=t.eMarks[s])&&t.tShift[s]<t.blkIndent);)if(t.src.charCodeAt(c)===o&&!(t.tShift[s]-t.blkIndent>=4||(c=t.skipChars(c,o))-l<i||(c=t.skipSpaces(c))<p)){d=!0;break}return i=t.tShift[e],t.line=s+(d?1:0),t.tokens.push({type:"fence",params:a,content:t.getLines(e+1,s,i,!0),lines:[e,t.line],level:t.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m,f=t.bMarks[e]+t.tShift[e],b=t.eMarks[e];if(f>b)return!1;if(62!==t.src.charCodeAt(f++))return!1;if(t.level>=t.options.maxNesting)return!1;if(n)return!0;for(32===t.src.charCodeAt(f)&&f++,l=t.blkIndent,t.blkIndent=0,s=[t.bMarks[e]],t.bMarks[e]=f,i=(f=f<b?t.skipSpaces(f):f)>=b,a=[t.tShift[e]],t.tShift[e]=f-t.bMarks[e],p=t.parser.ruler.getRules("blockquote"),o=e+1;o<r&&!((f=t.bMarks[o]+t.tShift[o])>=(b=t.eMarks[o]));o++)if(62!==t.src.charCodeAt(f++)){if(i)break;for(m=!1,u=0,h=p.length;u<h;u++)if(p[u](t,o,r,!0)){m=!0;break}if(m)break;s.push(t.bMarks[o]),a.push(t.tShift[o]),t.tShift[o]=-1337}else 32===t.src.charCodeAt(f)&&f++,s.push(t.bMarks[o]),t.bMarks[o]=f,i=(f=f<b?t.skipSpaces(f):f)>=b,a.push(t.tShift[o]),t.tShift[o]=f-t.bMarks[o];for(d=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:c=[e,0],level:t.level++}),t.parser.tokenize(t,e,o),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=d,c[1]=t.line,u=0;u<a.length;u++)t.bMarks[u+e]=s[u],t.tShift[u+e]=a[u];return t.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(t,e,r,n){var o,i,a,s=t.bMarks[e],l=t.eMarks[e];if((s+=t.tShift[e])>l)return!1;if(42!==(o=t.src.charCodeAt(s++))&&45!==o&&95!==o)return!1;for(i=1;s<l;){if((a=t.src.charCodeAt(s++))!==o&&32!==a)return!1;a===o&&i++}return!(i<3||(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),0))},["paragraph","blockquote","list"]],["list",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m,f,b,g,y,v,x,C,w,k,S,M=!0;if((p=So(t,e))>=0)f=!0;else{if(!((p=ko(t,e))>=0))return!1;f=!1}if(t.level>=t.options.maxNesting)return!1;if(m=t.src.charCodeAt(p-1),n)return!0;for(g=t.tokens.length,f?(c=t.bMarks[e]+t.tShift[e],h=Number(t.src.substr(c,p-c-1)),t.tokens.push({type:"ordered_list_open",order:h,lines:v=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:v=[e,0],level:t.level++}),o=e,y=!1,C=t.parser.ruler.getRules("list");!(!(o<r)||((u=(b=t.skipSpaces(p))>=t.eMarks[o]?1:b-p)>4&&(u=1),u<1&&(u=1),i=p-t.bMarks[o]+u,t.tokens.push({type:"list_item_open",lines:x=[e,0],level:t.level++}),s=t.blkIndent,l=t.tight,a=t.tShift[e],d=t.parentType,t.tShift[e]=b-t.bMarks[e],t.blkIndent=i,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),t.tight&&!y||(M=!1),y=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=s,t.tShift[e]=a,t.tight=l,t.parentType=d,t.tokens.push({type:"list_item_close",level:--t.level}),o=e=t.line,x[1]=o,b=t.bMarks[e],o>=r)||t.isEmpty(o)||t.tShift[o]<t.blkIndent);){for(S=!1,w=0,k=C.length;w<k;w++)if(C[w](t,o,r,!0)){S=!0;break}if(S)break;if(f){if((p=So(t,o))<0)break}else if((p=ko(t,o))<0)break;if(m!==t.src.charCodeAt(p-1))break}return t.tokens.push({type:f?"ordered_list_close":"bullet_list_close",level:--t.level}),v[1]=o,t.line=o,M&&function(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&"paragraph_open"===t.tokens[r].type&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}(t,g),!0},["paragraph","blockquote"]],["footnote",function(t,e,r,n){var o,i,a,s,l,d=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(d+4>c)return!1;if(91!==t.src.charCodeAt(d))return!1;if(94!==t.src.charCodeAt(d+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(s=d+2;s<c;s++){if(32===t.src.charCodeAt(s))return!1;if(93===t.src.charCodeAt(s))break}return!(s===d+2||s+1>=c||58!==t.src.charCodeAt(++s)||(n||(s++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),l=t.src.slice(d+2,s-2),t.env.footnotes.refs[":"+l]=-1,t.tokens.push({type:"footnote_reference_open",label:l,level:t.level++}),o=t.bMarks[e],i=t.tShift[e],a=t.parentType,t.tShift[e]=t.skipSpaces(s)-s,t.bMarks[e]=s,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,r,!0),t.parentType=a,t.blkIndent-=4,t.tShift[e]=i,t.bMarks[e]=o,t.tokens.push({type:"footnote_reference_close",level:--t.level})),0))},["paragraph"]],["heading",function(t,e,r,n){var o,i,a,s=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(s>=l)return!1;if(35!==(o=t.src.charCodeAt(s))||s>=l)return!1;for(i=1,o=t.src.charCodeAt(++s);35===o&&s<l&&i<=6;)i++,o=t.src.charCodeAt(++s);return!(i>6||s<l&&32!==o||(n||(l=t.skipCharsBack(l,32,s),(a=t.skipCharsBack(l,35,s))>s&&32===t.src.charCodeAt(a-1)&&(l=a),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:i,lines:[e,t.line],level:t.level}),s<l&&t.tokens.push({type:"inline",content:t.src.slice(s,l).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:i,level:t.level})),0))},["paragraph","blockquote"]],["lheading",function(t,e,r){var n,o,i,a=e+1;return!(a>=r||t.tShift[a]<t.blkIndent||t.tShift[a]-t.blkIndent>3||(o=t.bMarks[a]+t.tShift[a])>=(i=t.eMarks[a])||45!==(n=t.src.charCodeAt(o))&&61!==n||(o=t.skipChars(o,n),(o=t.skipSpaces(o))<i||(o=t.bMarks[e]+t.tShift[e],t.line=a+1,t.tokens.push({type:"heading_open",hLevel:61===n?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(o,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:61===n?1:2,level:t.level}),0)))}],["htmlblock",function(t,e,r,n){var o,i,a,s=t.bMarks[e],l=t.eMarks[e],d=t.tShift[e];if(s+=d,!t.options.html)return!1;if(d>3||s+2>=l)return!1;if(60!==t.src.charCodeAt(s))return!1;if(33===(o=t.src.charCodeAt(s+1))||63===o){if(n)return!0}else{if(47!==o&&!function(t){var e=32|t;return e>=97&&e<=122}(o))return!1;if(47===o){if(!(i=t.src.slice(s,l).match(To)))return!1}else if(!(i=t.src.slice(s,l).match(Ao)))return!1;if(!0!==Mo[i[1].toLowerCase()])return!1;if(n)return!0}for(a=e+1;a<t.lineMax&&!t.isEmpty(a);)a++;return t.line=a,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,a,0,!0)}),!0},["paragraph","blockquote"]],["table",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m;if(e+2>r)return!1;if(l=e+1,t.tShift[l]<t.blkIndent)return!1;if((a=t.bMarks[l]+t.tShift[l])>=t.eMarks[l])return!1;if(124!==(o=t.src.charCodeAt(a))&&45!==o&&58!==o)return!1;if(i=Eo(t,e+1),!/^[-:| ]+$/.test(i))return!1;if((d=i.split("|"))<=2)return!1;for(p=[],s=0;s<d.length;s++){if(!(u=d[s].trim())){if(0===s||s===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(u))return!1;58===u.charCodeAt(u.length-1)?p.push(58===u.charCodeAt(0)?"center":"right"):58===u.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(i=Eo(t,e).trim()).indexOf("|"))return!1;if(d=i.replace(/^\||\|$/g,"").split("|"),p.length!==d.length)return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:h=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),s=0;s<d.length;s++)t.tokens.push({type:"th_open",align:p[s],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:d[s].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:m=[e+2,0],level:t.level++}),l=e+2;l<r&&!(t.tShift[l]<t.blkIndent)&&-1!==(i=Eo(t,l).trim()).indexOf("|");l++){for(d=i.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),s=0;s<d.length;s++)t.tokens.push({type:"td_open",align:p[s],level:t.level++}),c=d[s].substring(124===d[s].charCodeAt(0)?1:0,124===d[s].charCodeAt(d[s].length-1)?d[s].length-1:d[s].length).trim(),t.tokens.push({type:"inline",content:c,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),h[1]=m[1]=l,t.line=l,!0},["paragraph"]],["deflist",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m,f,b,g;if(n)return!(t.ddIndent<0)&&Io(t,e)>=0;if(c=e+1,t.isEmpty(c)&&++c>r)return!1;if(t.tShift[c]<t.blkIndent)return!1;if((o=Io(t,c))<0)return!1;if(t.level>=t.options.maxNesting)return!1;d=t.tokens.length,t.tokens.push({type:"dl_open",lines:l=[e,0],level:t.level++}),a=e,i=c;t:for(;;){for(g=!0,b=!1,t.tokens.push({type:"dt_open",lines:[a,a],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(a,a+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[a,a],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:s=[c,0],level:t.level++}),f=t.tight,u=t.ddIndent,p=t.blkIndent,m=t.tShift[i],h=t.parentType,t.blkIndent=t.ddIndent=t.tShift[i]+2,t.tShift[i]=o-t.bMarks[i],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,i,r,!0),t.tight&&!b||(g=!1),b=t.line-i>1&&t.isEmpty(t.line-1),t.tShift[i]=m,t.tight=f,t.parentType=h,t.blkIndent=p,t.ddIndent=u,t.tokens.push({type:"dd_close",level:--t.level}),s[1]=c=t.line,c>=r)break t;if(t.tShift[c]<t.blkIndent)break t;if((o=Io(t,c))<0)break;i=c}if(c>=r)break;if(a=c,t.isEmpty(a))break;if(t.tShift[a]<t.blkIndent)break;if((i=a+1)>=r)break;if(t.isEmpty(i)&&i++,i>=r)break;if(t.tShift[i]<t.blkIndent)break;if((o=Io(t,i))<0)break}return t.tokens.push({type:"dl_close",level:--t.level}),l[1]=c,t.line=c,g&&function(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&"paragraph_open"===t.tokens[r].type&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}(t,d),!0},["paragraph"]],["paragraph",function(t,e){var r,n,o,i,a,s,l=e+1;if(l<(r=t.lineMax)&&!t.isEmpty(l))for(s=t.parser.ruler.getRules("paragraph");l<r&&!t.isEmpty(l);l++)if(!(t.tShift[l]-t.blkIndent>3)){for(o=!1,i=0,a=s.length;i<a;i++)if(s[i](t,l,r,!0)){o=!0;break}if(o)break}return n=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}]];function Lo(){this.ruler=new to;for(var t=0;t<_o.length;t++)this.ruler.push(_o[t][0],_o[t][1],{alt:(_o[t][2]||[]).slice()})}Lo.prototype.tokenize=function(t,e,r){for(var n,o=this.ruler.getRules(""),i=o.length,a=e,s=!1;a<r&&(t.line=a=t.skipEmptyLines(a),!(a>=r))&&!(t.tShift[a]<t.blkIndent);){for(n=0;n<i&&!o[n](t,a,r,!1);n++);if(t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(a=t.line)<r&&t.isEmpty(a)){if(s=!0,++a<r&&"list"===t.parentType&&t.isEmpty(a))break;t.line=a}}};var zo=/[\n\t]/g,Oo=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,No=/\u00a0/g;function Vo(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}Lo.prototype.parse=function(t,e,r,n){var o,i=0,a=0;if(!t)return[];(t=(t=t.replace(No," ")).replace(Oo,"\n")).indexOf("\t")>=0&&(t=t.replace(zo,(function(e,r){var n;return 10===t.charCodeAt(r)?(i=r+1,a=0,e):(n=" ".slice((r-i-a)%4),a=r-i+1,n)}))),o=new wo(t,this,e,r,n),this.tokenize(o,o.line,o.lineMax)};for(var Do=[],Wo=0;Wo<256;Wo++)Do.push(0);function Bo(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function Ro(t,e){var r,n,o,i=e,a=!0,s=!0,l=t.posMax,d=t.src.charCodeAt(e);for(r=e>0?t.src.charCodeAt(e-1):-1;i<l&&t.src.charCodeAt(i)===d;)i++;return i>=l&&(a=!1),(o=i-e)>=4?a=s=!1:(32!==(n=i<l?t.src.charCodeAt(i):-1)&&10!==n||(a=!1),32!==r&&10!==r||(s=!1),95===d&&(Bo(r)&&(a=!1),Bo(n)&&(s=!1))),{can_open:a,can_close:s,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){Do[t.charCodeAt(0)]=1}));var $o=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,Fo=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,jo=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Po=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,qo=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Ho(t,e){return t=t.source,e=e||"",function r(n,o){return n?(o=o.source||o,t=t.replace(n,o),r):new RegExp(t,e)}}var Uo=Ho(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),Go=Ho(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",Uo)(),Zo=Ho(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Go)(),Qo=Ho(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Zo)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)(),Yo=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Jo=/^&([a-z][a-z0-9]{1,31});/i,Ko=[["text",function(t,e){for(var r=t.pos;r<t.posMax&&!Vo(t.src.charCodeAt(r));)r++;return r!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}],["newline",function(t,e){var r,n,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;if(r=t.pending.length-1,n=t.posMax,!e)if(r>=0&&32===t.pending.charCodeAt(r))if(r>=1&&32===t.pending.charCodeAt(r-1)){for(var i=r-2;i>=0;i--)if(32!==t.pending.charCodeAt(i)){t.pending=t.pending.substring(0,i+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(o++;o<n&&32===t.src.charCodeAt(o);)o++;return t.pos=o,!0}],["escape",function(t,e){var r,n=t.pos,o=t.posMax;if(92!==t.src.charCodeAt(n))return!1;if(++n<o){if((r=t.src.charCodeAt(n))<256&&0!==Do[r])return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(10===r){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<o&&32===t.src.charCodeAt(n);)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}],["backticks",function(t,e){var r,n,o,i,a,s=t.pos;if(96!==t.src.charCodeAt(s))return!1;for(r=s,s++,n=t.posMax;s<n&&96===t.src.charCodeAt(s);)s++;for(o=t.src.slice(r,s),i=a=s;-1!==(i=t.src.indexOf("`",a));){for(a=i+1;a<n&&96===t.src.charCodeAt(a);)a++;if(a-i===o.length)return e||t.push({type:"code",content:t.src.slice(s,i).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=a,!0}return e||(t.pending+=o),t.pos+=o.length,!0}],["del",function(t,e){var r,n,o,i,a,s=t.posMax,l=t.pos;if(126!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=s)return!1;if(126!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(i=l>0?t.src.charCodeAt(l-1):-1,a=t.src.charCodeAt(l+2),126===i)return!1;if(126===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n<s&&126===t.src.charCodeAt(n);)n++;if(n>l+3)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<s;){if(126===t.src.charCodeAt(t.pos)&&126===t.src.charCodeAt(t.pos+1)&&(i=t.src.charCodeAt(t.pos-1),126!==(a=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1)&&126!==i&&(32!==i&&10!==i?o--:32!==a&&10!==a&&o++,o<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=l,!1)}],["ins",function(t,e){var r,n,o,i,a,s=t.posMax,l=t.pos;if(43!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=s)return!1;if(43!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(i=l>0?t.src.charCodeAt(l-1):-1,a=t.src.charCodeAt(l+2),43===i)return!1;if(43===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n<s&&43===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<s;){if(43===t.src.charCodeAt(t.pos)&&43===t.src.charCodeAt(t.pos+1)&&(i=t.src.charCodeAt(t.pos-1),43!==(a=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1)&&43!==i&&(32!==i&&10!==i?o--:32!==a&&10!==a&&o++,o<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=l,!1)}],["mark",function(t,e){var r,n,o,i,a,s=t.posMax,l=t.pos;if(61!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=s)return!1;if(61!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(i=l>0?t.src.charCodeAt(l-1):-1,a=t.src.charCodeAt(l+2),61===i)return!1;if(61===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n<s&&61===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<s;){if(61===t.src.charCodeAt(t.pos)&&61===t.src.charCodeAt(t.pos+1)&&(i=t.src.charCodeAt(t.pos-1),61!==(a=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1)&&61!==i&&(32!==i&&10!==i?o--:32!==a&&10!==a&&o++,o<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=l,!1)}],["emphasis",function(t,e){var r,n,o,i,a,s,l,d=t.posMax,c=t.pos,p=t.src.charCodeAt(c);if(95!==p&&42!==p)return!1;if(e)return!1;if(r=(l=Ro(t,c)).delims,!l.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(c,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=c+r,s=[r];t.pos<d;)if(t.src.charCodeAt(t.pos)!==p)t.parser.skipToken(t);else{if(n=(l=Ro(t,t.pos)).delims,l.can_close){for(i=s.pop(),a=n;i!==a;){if(a<i){s.push(i-a);break}if(a-=i,0===s.length)break;t.pos+=i,i=s.pop()}if(0===s.length){r=i,o=!0;break}t.pos+=n;continue}l.can_open&&s.push(n),t.pos+=n}return o?(t.posMax=t.pos,t.pos=c+r,e||(2!==r&&3!==r||t.push({type:"strong_open",level:t.level++}),1!==r&&3!==r||t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),1!==r&&3!==r||t.push({type:"em_close",level:--t.level}),2!==r&&3!==r||t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+r,t.posMax=d,!0):(t.pos=c,!1)}],["sub",function(t,e){var r,n,o=t.posMax,i=t.pos;if(126!==t.src.charCodeAt(i))return!1;if(e)return!1;if(i+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<o;){if(126===t.src.charCodeAt(t.pos)){r=!0;break}t.parser.skipToken(t)}return r&&i+1!==t.pos?(n=t.src.slice(i+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sub",level:t.level,content:n.replace($o,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=i,!1)}],["sup",function(t,e){var r,n,o=t.posMax,i=t.pos;if(94!==t.src.charCodeAt(i))return!1;if(e)return!1;if(i+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<o;){if(94===t.src.charCodeAt(t.pos)){r=!0;break}t.parser.skipToken(t)}return r&&i+1!==t.pos?(n=t.src.slice(i+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sup",level:t.level,content:n.replace(Fo,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=i,!1)}],["links",function(t,e){var r,n,o,i,a,s,l,d,c=!1,p=t.pos,u=t.posMax,h=t.pos,m=t.src.charCodeAt(h);if(33===m&&(c=!0,m=t.src.charCodeAt(++h)),91!==m)return!1;if(t.level>=t.options.maxNesting)return!1;if(r=h+1,(n=ro(t,h))<0)return!1;if((s=n+1)<u&&40===t.src.charCodeAt(s)){for(s++;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);if(s>=u)return!1;for(h=s,io(t,s)?(i=t.linkContent,s=t.pos):i="",h=s;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);if(s<u&&h!==s&&ao(t,s))for(a=t.linkContent,s=t.pos;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);else a="";if(s>=u||41!==t.src.charCodeAt(s))return t.pos=p,!1;s++}else{if(t.linkLevel>0)return!1;for(;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);if(s<u&&91===t.src.charCodeAt(s)&&(h=s+1,(s=ro(t,s))>=0?o=t.src.slice(h,s++):s=h-1),o||(void 0===o&&(s=n+1),o=t.src.slice(r,n)),!(l=t.env.references[so(o)]))return t.pos=p,!1;i=l.href,a=l.title}return e||(t.pos=r,t.posMax=n,c?t.push({type:"image",src:i,title:a,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:i,title:a,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=s,t.posMax=u,!0}],["footnote_inline",function(t,e){var r,n,o,i,a=t.posMax,s=t.pos;return!(s+2>=a||94!==t.src.charCodeAt(s)||91!==t.src.charCodeAt(s+1)||t.level>=t.options.maxNesting||(r=s+2,(n=ro(t,s+1))<0||(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),o=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:o,level:t.level}),t.linkLevel++,i=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[o]={tokens:t.tokens.splice(i)},t.linkLevel--),t.pos=n+1,t.posMax=a,0)))}],["footnote_ref",function(t,e){var r,n,o,i,a=t.posMax,s=t.pos;if(s+3>a)return!1;if(!t.env.footnotes||!t.env.footnotes.refs)return!1;if(91!==t.src.charCodeAt(s))return!1;if(94!==t.src.charCodeAt(s+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(n=s+2;n<a;n++){if(32===t.src.charCodeAt(n))return!1;if(10===t.src.charCodeAt(n))return!1;if(93===t.src.charCodeAt(n))break}return!(n===s+2||n>=a||(n++,r=t.src.slice(s+2,n-1),void 0===t.env.footnotes.refs[":"+r]||(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(o=t.env.footnotes.list.length,t.env.footnotes.list[o]={label:r,count:0},t.env.footnotes.refs[":"+r]=o):o=t.env.footnotes.refs[":"+r],i=t.env.footnotes.list[o].count,t.env.footnotes.list[o].count++,t.push({type:"footnote_ref",id:o,subId:i,level:t.level})),t.pos=n,t.posMax=a,0)))}],["autolink",function(t,e){var r,n,o,i,a,s=t.pos;return!(60!==t.src.charCodeAt(s)||(r=t.src.slice(s)).indexOf(">")<0||((n=r.match(qo))?jo.indexOf(n[1].toLowerCase())<0||(a=oo(i=n[0].slice(1,-1)),!t.parser.validateLink(i)||(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,0)):!(o=r.match(Po))||(a=oo("mailto:"+(i=o[0].slice(1,-1))),!t.parser.validateLink(a)||(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,0))))}],["htmltag",function(t,e){var r,n,o,i=t.pos;return!(!t.options.html||(o=t.posMax,60!==t.src.charCodeAt(i)||i+2>=o||33!==(r=t.src.charCodeAt(i+1))&&63!==r&&47!==r&&!function(t){var e=32|t;return e>=97&&e<=122}(r)||!(n=t.src.slice(i).match(Qo))||(e||t.push({type:"htmltag",content:t.src.slice(i,i+n[0].length),level:t.level}),t.pos+=n[0].length,0)))}],["entity",function(t,e){var r,n,o=t.pos,i=t.posMax;if(38!==t.src.charCodeAt(o))return!1;if(o+1<i)if(35===t.src.charCodeAt(o+1)){if(n=t.src.slice(o).match(Yo))return e||(r="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),t.pending+=Rn(r)?$n(r):$n(65533)),t.pos+=n[0].length,!0}else if(n=t.src.slice(o).match(Jo)){var a=Nn(n[1]);if(n[1]!==a)return e||(t.pending+=a),t.pos+=n[0].length,!0}return e||(t.pending+="&"),t.pos++,!0}]];function Xo(){this.ruler=new to;for(var t=0;t<Ko.length;t++)this.ruler.push(Ko[t][0],Ko[t][1]);this.validateLink=ti}function ti(t){var e=t.trim().toLowerCase();return-1===(e=qn(e)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(e.split(":")[0])}Xo.prototype.skipToken=function(t){var e,r,n=this.ruler.getRules(""),o=n.length,i=t.pos;if((r=t.cacheGet(i))>0)t.pos=r;else{for(e=0;e<o;e++)if(n[e](t,!0))return void t.cacheSet(i,t.pos);t.pos++,t.cacheSet(i,t.pos)}},Xo.prototype.tokenize=function(t){for(var e,r,n=this.ruler.getRules(""),o=n.length,i=t.posMax;t.pos<i;){for(r=0;r<o&&!(e=n[r](t,!1));r++);if(e){if(t.pos>=i)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Xo.prototype.parse=function(t,e,r,n){var o=new eo(t,this,e,r,n);this.tokenize(o)};var ei={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function ri(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function ni(t,e){"string"!=typeof t&&(e=t,t="default"),e&&null!=e.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new Xo,this.block=new Lo,this.core=new Co,this.renderer=new Xn,this.ruler=new to,this.options={},this.configure(ei[t]),this.set(e||{})}ni.prototype.set=function(t){Dn(this.options,t)},ni.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)}))},ni.prototype.use=function(t,e){return t(this,e),this},ni.prototype.parse=function(t,e){var r=new ri(this,t,e);return this.core.process(r),r.tokens},ni.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},ni.prototype.parseInline=function(t,e){var r=new ri(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens},ni.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const oi=["block","inline","abbr","abbr2","references","footnote_tail","replacements","smartquotes"],ii=["text","newline","backticks","del","emphasis","sub","sup","links","escape","ins","mark","footnote_inline","footnote_ref","autolink","htmltag","entity"],ai=["code","fences","blockquote","list","heading","paragraph","hr","footnote","lheading","htmlblock","table","deflist"],si={core:["block","inline"],inline:["text","newline","backticks","del","emphasis","sub","sup","links","escape","ins","footnote_inline","footnote_ref","autolink"],block:["code","fences","blockquote","list","heading","paragraph","footnote","htmlblock"]},li=tt("enriched-text");class di extends(Ht({componentName:li,baseSelector:":host > div"})){#W;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <style>\n :host {\n display: inline-block;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n *, *:last-child {\n margin: 0;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin-bottom: 1em;\n }\n a {\n text-decoration: none;\n cursor: pointer;\n }\n a:hover {\n text-decoration: underline;\n }\n blockquote {\n padding: 0 2em;\n }\n </style>\n <slot part="text-wrapper" style="display:none"></slot>\n <div class="content"></div>\n ',this.textSlot=this.shadowRoot.querySelector("slot"),this.#B(),this.textSlot.addEventListener("slotchange",this.#R.bind(this))}static get observedAttributes(){return["readonly"]}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),r!==e&&"readonly"===t&&this.onReadOnlyChange("true"===r)}#$(){this.processor&&(oi&&this.processor.core.ruler.disable(oi),ii&&this.processor.inline.ruler.disable(ii),ai&&this.processor.block.ruler.disable(ai),this.processor.renderer.rules.image=()=>"")}#F(){if(!this.processor)return;const t=si;t?.core&&this.processor?.core.ruler.enable(t?.core),t?.inline&&this.processor?.inline.ruler.enable(t?.inline),t?.block&&this.processor?.block.ruler.enable(t?.block),t?.custom?.includes("image")&&(this.processor.renderer.rules.image=this.#W)}#j(){this.#$(),this.#F()}#B(){this.processor=new ni,this.#W=this.processor.renderer.rules.image,this.#j()}get contentNode(){return this.shadowRoot.querySelector(".content")}#R(){if(!this.processor)return;let t=this.textContent;try{const e=this.processor.parse(this.textContent);t=this.processor.renderer.render(e,{breaks:!0}),this.contentNode.innerHTML=t}catch(t){console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=t}onReadOnlyChange(t){t?this.setAttribute("inert",t):this.removeAttribute("inert")}}const ci=Z(Wt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"}}}),Wt({componentNameOverride:tt("link")}),Bt,Rt)(di),pi=tt("link");class ui extends(Ht({componentName:pi,baseSelector:":host a"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t\t:host a {\n\t\t\tdisplay: inline;\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t:host a:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t</style>\n\t\t<div>\n\t\t\t<descope-text>\n\t\t\t\t<a>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</a>\n\t\t\t</descope-text>\n\t\t</div>\n\t\t",rt(this,this.shadowRoot.querySelector("a"),{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),rt(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]})}}const hi={host:{selector:()=>":host"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>In.componentName}},{anchor:mi,text:fi,host:bi,wrapper:gi}=hi,yi=Z(Wt({mappings:{hostWidth:{...bi,property:"width"},hostDirection:{...fi,property:"direction"},textAlign:gi,textColor:[{...mi,property:"color"},{...fi,property:In.cssVarList.textColor}],cursor:mi}}),Bt,Rt)(ui),vi=dt(Nt),xi=ci.cssVarList,Ci={[xi.hostDirection]:vi.direction,[xi.fontSize]:vi.typography.body1.size,[xi.fontWeight]:vi.typography.body1.weight,[xi.fontFamily]:vi.typography.body1.font,[xi.textLineHeight]:"1.35em",[xi.textAlign]:"left",[xi.textColor]:vi.colors.surface.dark,[xi.linkColor]:`var(${yi.cssVarList.textColor})`,mode:{primary:{[xi.textColor]:vi.colors.surface.contrast},secondary:{[xi.textColor]:vi.colors.surface.dark},error:{[xi.textColor]:vi.colors.error.main},success:{[xi.textColor]:vi.colors.success.main}},variant:{h1:{[xi.fontSize]:vi.typography.h1.size,[xi.fontWeight]:vi.typography.h1.weight,[xi.fontFamily]:vi.typography.h1.font},h2:{[xi.fontSize]:vi.typography.h2.size,[xi.fontWeight]:vi.typography.h2.weight,[xi.fontFamily]:vi.typography.h2.font},h3:{[xi.fontSize]:vi.typography.h3.size,[xi.fontWeight]:vi.typography.h3.weight,[xi.fontFamily]:vi.typography.h3.font},subtitle1:{[xi.fontSize]:vi.typography.subtitle1.size,[xi.fontWeight]:vi.typography.subtitle1.weight,[xi.fontFamily]:vi.typography.subtitle1.font},subtitle2:{[xi.fontSize]:vi.typography.subtitle2.size,[xi.fontWeight]:vi.typography.subtitle2.weight,[xi.fontFamily]:vi.typography.subtitle2.font},body1:{[xi.fontSize]:vi.typography.body1.size,[xi.fontWeight]:vi.typography.body1.weight,[xi.fontFamily]:vi.typography.body1.font},body2:{[xi.fontSize]:vi.typography.body2.size,[xi.fontWeight]:vi.typography.body2.weight,[xi.fontFamily]:vi.typography.body2.font}},textAlign:{right:{[xi.textAlign]:"right"},left:{[xi.textAlign]:"left"},center:{[xi.textAlign]:"center"}},_fullWidth:{[xi.hostWidth]:"100%"}},wi=dt(Nt),ki=yi.cssVarList,Si={[ki.hostDirection]:wi.direction,[ki.cursor]:"pointer",[ki.textColor]:wi.colors.primary.main,textAlign:{right:{[ki.textAlign]:"right"},left:{[ki.textAlign]:"left"},center:{[ki.textAlign]:"center"}},_fullWidth:{[ki.hostWidth]:"100%"},mode:{primary:{[ki.textColor]:wi.colors.primary.main},secondary:{[ki.textColor]:wi.colors.secondary.main},error:{[ki.textColor]:wi.colors.error.main},success:{[ki.textColor]:wi.colors.success.main}}},Mi=tt("divider");class Ai extends(Ht({componentName:Mi,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t:host > div::before,\n\t\t\t\t:host > div::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t\tdescope-text {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t\t:host(:empty) descope-text {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t\t:host([vertical=\"true\"]) div {\n\t\t\t\t\twidth: fit-content;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div>\n\t\t\t\t<descope-text>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</descope-text>\n\t\t\t</div>\n\t\t",this.textComponent=this.shadowRoot.querySelector("descope-text"),rt(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const Ti=In.cssVarList,{host:Ei,before:Ii,after:_i,text:Li}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},zi=Z(Wt({mappings:{hostWidth:{...Ei,property:"width"},hostPadding:{...Ei,property:"padding"},hostDirection:{...Li,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Li,property:Ti.textAlign},labelTextWidth:{...Li,property:"width"},labelTextMaxWidth:{...Li,property:"max-width"},labelTextVerticalSpacing:[{...Li,property:"padding-top"},{...Li,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Li,property:"padding-right"},{...Li,property:"padding-left"}],stripeColor:[{...Ii,property:"background-color"},{..._i,property:"background-color"}],stripeHorizontalThickness:[{...Ii,property:"height"},{..._i,property:"height"}],stripeVerticalThickness:[{...Ii,property:"width"},{..._i,property:"width"}],stripeColorOpacity:[{...Ii,property:"opacity"},{..._i,property:"opacity"}]}}),Bt,Rt)(Ai),Oi=dt(Nt),Ni=zi.cssVarList,[Vi,Di,Wi]=ft({thickness:"2px",spacing:"10px"},Mi),Bi={...Vi,[Ni.hostDirection]:Oi.direction,[Ni.alignItems]:"center",[Ni.flexDirection]:"row",[Ni.alignSelf]:"stretch",[Ni.hostWidth]:"100%",[Ni.stripeColor]:Oi.colors.surface.light,[Ni.stripeColorOpacity]:"0.5",[Ni.stripeHorizontalThickness]:Di.thickness,[Ni.labelTextWidth]:"fit-content",[Ni.labelTextMaxWidth]:"calc(100% - 100px)",[Ni.labelTextHorizontalSpacing]:Di.spacing,[Ni.textAlign]:"center",_vertical:{[Ni.minHeight]:"200px",[Ni.flexDirection]:"column",[Ni.hostWidth]:"fit-content",[Ni.hostPadding]:`0 calc(${Di.thickness} * 3)`,[Ni.stripeVerticalThickness]:Di.thickness,[Ni.labelTextWidth]:"fit-content",[Ni.labelTextMaxWidth]:"100%",[Ni.labelTextVerticalSpacing]:Di.spacing}},Ri={...Ni,...Wi},$i=tt("passcode-internal");Lr({componentName:$i,baseSelector:"div"});const Fi=tt("loader-radial");class ji extends(Ht({componentName:Fi,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t@keyframes spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tanimation-name: spin;\n\t\t\t}\n\t\t</style>\n\t\t<div></div>\n\t"}}const Pi=Z(Wt({mappings:{hostDisplay:{property:"display"},spinnerSize:[{property:"width"},{property:"height"}],spinnerBorderWidth:{property:"border-width"},spinnerBorderStyle:{property:"border-style"},spinnerBorderRadius:{property:"border-radius"},spinnerQuadrant1Color:{property:"border-top-color"},spinnerQuadrant2Color:{property:"border-bottom-color"},spinnerQuadrant3Color:{property:"border-right-color"},spinnerQuadrant4Color:{property:"border-left-color"},animationDuration:{},animationTimingFunction:{},animationIterationCount:{}}}),Bt,Rt)(ji),qi=tt("passcode"),Hi=["digits"],{host:Ui,digitField:Gi,label:Zi,requiredIndicator:Qi,internalWrapper:Yi,focusedDigitField:Ji,errorMessage:Ki}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${$e.componentName}[focused="true"]`},digitField:{selector:()=>$e.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},Xi=$e.cssVarList,ta=Pi.cssVarList,ea=Z(Wt({mappings:{fontSize:[{...Gi,property:Xi.fontSize},Ui],hostWidth:{property:"width"},hostDirection:{...Ui,property:"direction"},fontFamily:[Ui,{...Zi}],labelTextColor:[{...Zi,property:"color"},{...Qi,property:"color"}],labelRequiredIndicator:{...Qi,property:"content"},errorMessageTextColor:{...Ki,property:"color"},digitValueTextColor:{selector:$e.componentName,property:Xi.inputValueTextColor},digitSize:[{...Gi,property:"height"},{...Gi,property:"width"}],digitPadding:{...Gi,property:Xi.inputHorizontalPadding},digitTextAlign:{...Gi,property:Xi.inputTextAlign},digitCaretTextColor:{...Gi,property:Xi.inputCaretTextColor},digitSpacing:{...Yi,property:"gap"},digitOutlineColor:{...Gi,property:Xi.inputOutlineColor},digitOutlineWidth:{...Gi,property:Xi.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Ji,property:Xi.inputOutlineColor},overlayOpacity:{...Yi,property:"opacity"},spinnerSize:{selector:Pi.componentName,property:ta.spinnerSize}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{static get observedAttributes(){return Hi.concat(t.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${$i}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n ><slot></slot></${$i}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector($i),rt(this,this.inputElement,{includeAttrs:["digits","size","loading"]})}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"digits"===t&&this.style.setProperty("--passcode-digits-count",r)}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: calc(var(--passcode-digits-count) * 2em);\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n :host([loading="true"]) descope-passcode-internal .loader-container {\n display: block;\n }\n\n\t\t\tdescope-passcode-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal .wrapper {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: initial;\n\t\t\t\theight: 100%;\n\t\t\t\tjustify-content: space-between;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal descope-text-field {\n\t\t\t\tmin-width: 2em;\n\t\t\t\tmax-width: var(${Xi.inputHeight});\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${We("vaadin-text-field")}\n\t\t\t${ze("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex"],componentName:qi})).cssVarList,ra={[ea.hostDirection]:qe.direction,[ea.fontFamily]:qe.fontFamily,[ea.fontSize]:qe.fontSize,[ea.labelTextColor]:qe.labelTextColor,[ea.labelRequiredIndicator]:qe.requiredIndicator,[ea.errorMessageTextColor]:qe.errorMessageTextColor,[ea.digitValueTextColor]:qe.valueTextColor,[ea.digitPadding]:"0",[ea.digitTextAlign]:"center",[ea.digitSpacing]:"4px",[ea.hostWidth]:qe.width,[ea.digitOutlineColor]:"transparent",[ea.digitOutlineWidth]:qe.outlineWidth,[ea.focusedDigitFieldOutlineColor]:qe.outlineColor,[ea.digitSize]:qe.inputHeight,size:{xs:{[ea.spinnerSize]:"15px"},sm:{[ea.spinnerSize]:"20px"},md:{[ea.spinnerSize]:"20px"},lg:{[ea.spinnerSize]:"20px"}},_hideCursor:{[ea.digitCaretTextColor]:"transparent"},_loading:{[ea.overlayOpacity]:qe.overlayOpacity}},na=tt("loader-linear");class oa extends(Ht({componentName:na,baseSelector:":host > div"})){static get componentName(){return na}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t@keyframes tilt {\n\t\t\t\t0% { transform: translateX(0); }\n\t\t\t\t50% { transform: translateX(400%); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\tdiv::after {\n\t\t\t\tcontent: '';\n\t\t\t\tanimation-name: tilt;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t</style>\n\t\t<div></div>\n\t"}}const{after:ia,host:aa}={after:{selector:"::after"},host:{selector:()=>":host"}},sa=Z(Wt({mappings:{hostDisplay:{},hostWidth:{...aa,property:"width"},barHeight:[{property:"height"},{...ia,property:"height"}],barBorderRadius:[{property:"border-radius"},{...ia,property:"border-radius"}],verticalPadding:[{...aa,property:"padding-top"},{...aa,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...ia,property:"background-color"},barWidth:{...ia,property:"width"},animationDuration:[{},ia],animationTimingFunction:[{},ia],animationIterationCount:[{},ia]}}),Bt,Rt)(oa),la=dt(Nt),da=sa.cssVarList,ca={[da.hostDisplay]:"inline-block",[da.hostWidth]:"100%",[da.barColor]:la.colors.surface.contrast,[da.barWidth]:"20%",[da.barBackgroundColor]:la.colors.surface.light,[da.barBorderRadius]:"4px",[da.animationDuration]:"2s",[da.animationTimingFunction]:"linear",[da.animationIterationCount]:"infinite",[da.verticalPadding]:"0.25em",size:{xs:{[da.barHeight]:"2px"},sm:{[da.barHeight]:"4px"},md:{[da.barHeight]:"6px"},lg:{[da.barHeight]:"8px"}},mode:{primary:{[da.barColor]:la.colors.primary.main},secondary:{[da.barColor]:la.colors.secondary.main}},_hidden:{[da.hostDisplay]:"none"}},pa=dt(Nt),ua=Pi.cssVarList,[ha,ma,fa]=ft({spinnerColor:pa.colors.surface.contrast,mode:{primary:{spinnerColor:pa.colors.primary.main},secondary:{spinnerColor:pa.colors.secondary.main}}},Fi),ba={...ha,[ua.animationDuration]:"2s",[ua.animationTimingFunction]:"linear",[ua.animationIterationCount]:"infinite",[ua.spinnerBorderStyle]:"solid",[ua.spinnerBorderWidth]:"0.2em",[ua.spinnerBorderRadius]:"50%",[ua.spinnerQuadrant1Color]:ma.spinnerColor,[ua.spinnerQuadrant2Color]:"transparent",[ua.spinnerQuadrant3Color]:ma.spinnerColor,[ua.spinnerQuadrant4Color]:"transparent",size:{xs:{[ua.spinnerSize]:"20px"},sm:{[ua.spinnerSize]:"30px"},md:{[ua.spinnerSize]:"40px"},lg:{[ua.spinnerSize]:"60px"},xl:{[ua.spinnerSize]:"80px"}},_hidden:{[ua.hostDisplay]:"none"}},ga={...ua,...fa},ya=tt("combo-box"),{host:va,inputField:xa,inputElement:Ca,placeholder:wa,toggle:ka,clearButton:Sa,label:Ma,requiredIndicator:Aa,helperText:Ta,errorMessage:Ea}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ia=Z(Wt({mappings:{hostWidth:{...va,property:"width"},hostDirection:{...va,property:"direction"},fontSize:[{},va],fontFamily:[Ma,wa,xa,Ta,Ea],labelTextColor:[{...Ma,property:"color"},{...Aa,property:"color"}],errorMessageTextColor:{...Ea,property:"color"},inputHeight:{...xa,property:"height"},inputBackgroundColor:{...xa,property:"background-color"},inputBorderColor:{...xa,property:"border-color"},inputBorderWidth:{...xa,property:"border-width"},inputBorderStyle:{...xa,property:"border-style"},inputBorderRadius:{...xa,property:"border-radius"},labelRequiredIndicator:{...Aa,property:"content"},inputValueTextColor:{...xa,property:"color"},inputPlaceholderTextColor:{...wa,property:"color"},inputDropdownButtonCursor:[{...ka,property:"cursor"},{...Sa,property:"cursor"}],inputDropdownButtonColor:[{...ka,property:"color"},{...Sa,property:"color"}],inputDropdownButtonSize:[{...ka,property:"font-size"},{...Sa,property:"font-size"}],inputDropdownButtonOffset:[{...ka,property:"margin-right"},{...ka,property:"margin-left"}],inputOutlineColor:{...xa,property:"outline-color"},inputOutlineWidth:{...xa,property:"outline-width"},inputOutlineStyle:{...xa,property:"outline-style"},inputOutlineOffset:{...xa,property:"outline-offset"},inputHorizontalPadding:[{...Ca,property:"padding-left"},{...Ca,property:"padding-right"}],overlayBackground:{property:()=>Ia.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Ia.cssVarList.overlay.textColor},overlayBorder:{property:()=>Ia.cssVarList.overlay.border},overlayFontSize:{property:()=>Ia.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Ia.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Ia.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Ia.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Ia.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Ia.cssVarList.overlay.itemPaddingInlineEnd}}}),Bt,te({name:"overlay",selector:"",mappings:{backgroundColor:{selector:"vaadin-combo-box-scroller"},minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Kt({proxyProps:["selectionStart"],inputEvent:"selected-item-changed"}),Rt,(t=>class extends t{#P=({displayName:t,value:e,label:r})=>`<span data-name="${r}" data-id="${e}">${t||r}</span>`;#q;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#P}set renderItem(t){this.#P=t,this.renderItems()}get data(){if(this.#q)return this.#q;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#q=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.(((t,e)=>t+(this.renderItem?.(e||{})||"")),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}handleSelectedItem(){const t=this.baseElement.selectedItem?.["data-id"];this.baseElement.selectedItem=void 0,t&&(this.value=t),this.value||this.setDefaultValue()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(r){if(!e.baseElement.items?.length)return;const n=e.customValueTransformFn(r)||"";n!==this.value&&t.set.call(this,n)}}})}#H(){const t=this.shadowRoot.querySelector(this.baseSelector),e=Array.from(this.children);e.length&&(e.forEach((t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})})),t.items=e,setTimeout((()=>{this.handleSelectedItem()}),0)),t.renderer=(t,e,r)=>{t.innerHTML=r.item.outerHTML}}#U(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}init(){super.init?.(),this.getValidity=function(){return!this.value&&this.isRequired?{valueMissing:!0}:{}},this.setComboBoxDescriptor(),this.#U(),this.renderItems(),Y(this,this.renderItems.bind(this),{includeAttrs:["data"]}),J(this,this.#H.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("selected-item-changed",(()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}))}setDefaultValue(){this.value=this.defaultValue}set value(t){if(t){const e=this.baseElement.items?.find((e=>e["data-id"]===t));e&&(this.baseElement.selectedItem=e)}else this.baseElement.selectedItem=void 0}get value(){return this.baseElement.selectedItem?.["data-id"]||""}}))(Ut({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${Ie(Ia.cssVarList)}\n\t\t${Ne("vaadin-combo-box")}\n\t\t${Oe("vaadin-combo-box")}\n\t\t${ze("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${We("vaadin-combo-box")}\n\t\t`,excludeAttrsSync:["tabindex","size","data"],componentName:ya,includeForwardProps:["items","renderer","selectedItem"]})),_a=dt(Nt),La=Ia.cssVarList,za={[La.hostWidth]:qe.width,[La.hostDirection]:qe.direction,[La.fontSize]:qe.fontSize,[La.fontFamily]:qe.fontFamily,[La.labelTextColor]:qe.labelTextColor,[La.errorMessageTextColor]:qe.errorMessageTextColor,[La.inputBorderColor]:qe.borderColor,[La.inputBorderWidth]:qe.borderWidth,[La.inputBorderStyle]:qe.borderStyle,[La.inputBorderRadius]:qe.borderRadius,[La.inputOutlineColor]:qe.outlineColor,[La.inputOutlineOffset]:qe.outlineOffset,[La.inputOutlineWidth]:qe.outlineWidth,[La.inputOutlineStyle]:qe.outlineStyle,[La.labelRequiredIndicator]:qe.requiredIndicator,[La.inputValueTextColor]:qe.valueTextColor,[La.inputPlaceholderTextColor]:qe.placeholderTextColor,[La.inputBackgroundColor]:qe.backgroundColor,[La.inputHorizontalPadding]:qe.horizontalPadding,[La.inputHeight]:qe.inputHeight,[La.inputDropdownButtonColor]:_a.colors.surface.dark,[La.inputDropdownButtonCursor]:"pointer",[La.inputDropdownButtonSize]:qe.toggleButtonSize,[La.inputDropdownButtonOffset]:_a.spacing.xs,[La.overlayItemPaddingInlineStart]:_a.spacing.xs,[La.overlayItemPaddingInlineEnd]:_a.spacing.lg,_readonly:{[La.inputDropdownButtonCursor]:"default"},[La.overlayFontSize]:qe.fontSize,[La.overlayFontFamily]:qe.fontFamily,[La.overlayCursor]:"pointer",[La.overlayItemBoxShadow]:"none",[La.overlayBackground]:qe.backgroundColor,[La.overlayTextColor]:qe.valueTextColor,[La.overlay.minHeight]:"400px",[La.overlay.margin]:"0"},Oa=za,Na=["src","alt"],Va=tt("image"),Da=Ht({componentName:Va,baseSelector:":host > img"}),Wa=Z(Wt({mappings:{height:{selector:()=>":host"},width:{selector:()=>":host"}}}),Bt)(class extends Da{static get observedAttributes(){return Na.concat(Da.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t:host > img {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t</style>\n\t\t<img/>\n\t"}connectedCallback(){super.connectedCallback?.(),rt(this,this.baseElement,{includeAttrs:Na})}}).cssVarList,Ba={},Ra=[{name:"United States",dialCode:"+1",code:"US"},...[{name:"Afghanistan",dialCode:"+93",code:"AF"},{name:"Aland Islands",dialCode:"+358",code:"AX"},{name:"Albania",dialCode:"+355",code:"AL"},{name:"Algeria",dialCode:"+213",code:"DZ"},{name:"AmericanSamoa",dialCode:"+1684",code:"AS"},{name:"Andorra",dialCode:"+376",code:"AD"},{name:"Angola",dialCode:"+244",code:"AO"},{name:"Anguilla",dialCode:"+1264",code:"AI"},{name:"Antarctica",dialCode:"+672",code:"AQ"},{name:"Antigua and Barbuda",dialCode:"+1268",code:"AG"},{name:"Argentina",dialCode:"+54",code:"AR"},{name:"Armenia",dialCode:"+374",code:"AM"},{name:"Aruba",dialCode:"+297",code:"AW"},{name:"Australia",dialCode:"+61",code:"AU"},{name:"Austria",dialCode:"+43",code:"AT"},{name:"Azerbaijan",dialCode:"+994",code:"AZ"},{name:"Bahamas",dialCode:"+1242",code:"BS"},{name:"Bahrain",dialCode:"+973",code:"BH"},{name:"Bangladesh",dialCode:"+880",code:"BD"},{name:"Barbados",dialCode:"+1246",code:"BB"},{name:"Belarus",dialCode:"+375",code:"BY"},{name:"Belgium",dialCode:"+32",code:"BE"},{name:"Belize",dialCode:"+501",code:"BZ"},{name:"Benin",dialCode:"+229",code:"BJ"},{name:"Bermuda",dialCode:"+1441",code:"BM"},{name:"Bhutan",dialCode:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dialCode:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dialCode:"+387",code:"BA"},{name:"Botswana",dialCode:"+267",code:"BW"},{name:"Brazil",dialCode:"+55",code:"BR"},{name:"British Indian Ocean Territory",dialCode:"+246",code:"IO"},{name:"Brunei Darussalam",dialCode:"+673",code:"BN"},{name:"Bulgaria",dialCode:"+359",code:"BG"},{name:"Burkina Faso",dialCode:"+226",code:"BF"},{name:"Burundi",dialCode:"+257",code:"BI"},{name:"Cambodia",dialCode:"+855",code:"KH"},{name:"Cameroon",dialCode:"+237",code:"CM"},{name:"Canada",dialCode:"+1",code:"CA"},{name:"Cape Verde",dialCode:"+238",code:"CV"},{name:"Cayman Islands",dialCode:"+345",code:"KY"},{name:"Central African Republic",dialCode:"+236",code:"CF"},{name:"Chad",dialCode:"+235",code:"TD"},{name:"Chile",dialCode:"+56",code:"CL"},{name:"China",dialCode:"+86",code:"CN"},{name:"Christmas Island",dialCode:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dialCode:"+61",code:"CC"},{name:"Colombia",dialCode:"+57",code:"CO"},{name:"Comoros",dialCode:"+269",code:"KM"},{name:"Congo",dialCode:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dialCode:"+243",code:"CD"},{name:"Cook Islands",dialCode:"+682",code:"CK"},{name:"Costa Rica",dialCode:"+506",code:"CR"},{name:"Cote d'Ivoire",dialCode:"+225",code:"CI"},{name:"Croatia",dialCode:"+385",code:"HR"},{name:"Cuba",dialCode:"+53",code:"CU"},{name:"Cyprus",dialCode:"+357",code:"CY"},{name:"Czech Republic",dialCode:"+420",code:"CZ"},{name:"Denmark",dialCode:"+45",code:"DK"},{name:"Djibouti",dialCode:"+253",code:"DJ"},{name:"Dominica",dialCode:"+1767",code:"DM"},{name:"Dominican Republic",dialCode:"+1849",code:"DO"},{name:"Ecuador",dialCode:"+593",code:"EC"},{name:"Egypt",dialCode:"+20",code:"EG"},{name:"El Salvador",dialCode:"+503",code:"SV"},{name:"Equatorial Guinea",dialCode:"+240",code:"GQ"},{name:"Eritrea",dialCode:"+291",code:"ER"},{name:"Estonia",dialCode:"+372",code:"EE"},{name:"Ethiopia",dialCode:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dialCode:"+500",code:"FK"},{name:"Faroe Islands",dialCode:"+298",code:"FO"},{name:"Fiji",dialCode:"+679",code:"FJ"},{name:"Finland",dialCode:"+358",code:"FI"},{name:"France",dialCode:"+33",code:"FR"},{name:"French Guiana",dialCode:"+594",code:"GF"},{name:"French Polynesia",dialCode:"+689",code:"PF"},{name:"Gabon",dialCode:"+241",code:"GA"},{name:"Gambia",dialCode:"+220",code:"GM"},{name:"Georgia",dialCode:"+995",code:"GE"},{name:"Germany",dialCode:"+49",code:"DE"},{name:"Ghana",dialCode:"+233",code:"GH"},{name:"Gibraltar",dialCode:"+350",code:"GI"},{name:"Greece",dialCode:"+30",code:"GR"},{name:"Greenland",dialCode:"+299",code:"GL"},{name:"Grenada",dialCode:"+1473",code:"GD"},{name:"Guadeloupe",dialCode:"+590",code:"GP"},{name:"Guam",dialCode:"+1671",code:"GU"},{name:"Guatemala",dialCode:"+502",code:"GT"},{name:"Guernsey",dialCode:"+44",code:"GG"},{name:"Guinea",dialCode:"+224",code:"GN"},{name:"Guinea-Bissau",dialCode:"+245",code:"GW"},{name:"Guyana",dialCode:"+595",code:"GY"},{name:"Haiti",dialCode:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dialCode:"+379",code:"VA"},{name:"Honduras",dialCode:"+504",code:"HN"},{name:"Hong Kong",dialCode:"+852",code:"HK"},{name:"Hungary",dialCode:"+36",code:"HU"},{name:"Iceland",dialCode:"+354",code:"IS"},{name:"India",dialCode:"+91",code:"IN"},{name:"Indonesia",dialCode:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dialCode:"+98",code:"IR"},{name:"Iraq",dialCode:"+964",code:"IQ"},{name:"Ireland",dialCode:"+353",code:"IE"},{name:"Isle of Man",dialCode:"+44",code:"IM"},{name:"Israel",dialCode:"+972",code:"IL"},{name:"Italy",dialCode:"+39",code:"IT"},{name:"Jamaica",dialCode:"+1876",code:"JM"},{name:"Japan",dialCode:"+81",code:"JP"},{name:"Jersey",dialCode:"+44",code:"JE"},{name:"Jordan",dialCode:"+962",code:"JO"},{name:"Kazakhstan",dialCode:"+77",code:"KZ"},{name:"Kenya",dialCode:"+254",code:"KE"},{name:"Kiribati",dialCode:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dialCode:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dialCode:"+82",code:"KR"},{name:"Kuwait",dialCode:"+965",code:"KW"},{name:"Kyrgyzstan",dialCode:"+996",code:"KG"},{name:"Laos",dialCode:"+856",code:"LA"},{name:"Latvia",dialCode:"+371",code:"LV"},{name:"Lebanon",dialCode:"+961",code:"LB"},{name:"Lesotho",dialCode:"+266",code:"LS"},{name:"Liberia",dialCode:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dialCode:"+218",code:"LY"},{name:"Liechtenstein",dialCode:"+423",code:"LI"},{name:"Lithuania",dialCode:"+370",code:"LT"},{name:"Luxembourg",dialCode:"+352",code:"LU"},{name:"Macao",dialCode:"+853",code:"MO"},{name:"Macedonia",dialCode:"+389",code:"MK"},{name:"Madagascar",dialCode:"+261",code:"MG"},{name:"Malawi",dialCode:"+265",code:"MW"},{name:"Malaysia",dialCode:"+60",code:"MY"},{name:"Maldives",dialCode:"+960",code:"MV"},{name:"Mali",dialCode:"+223",code:"ML"},{name:"Malta",dialCode:"+356",code:"MT"},{name:"Marshall Islands",dialCode:"+692",code:"MH"},{name:"Martinique",dialCode:"+596",code:"MQ"},{name:"Mauritania",dialCode:"+222",code:"MR"},{name:"Mauritius",dialCode:"+230",code:"MU"},{name:"Mayotte",dialCode:"+262",code:"YT"},{name:"Mexico",dialCode:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dialCode:"+691",code:"FM"},{name:"Moldova",dialCode:"+373",code:"MD"},{name:"Monaco",dialCode:"+377",code:"MC"},{name:"Mongolia",dialCode:"+976",code:"MN"},{name:"Montenegro",dialCode:"+382",code:"ME"},{name:"Montserrat",dialCode:"+1664",code:"MS"},{name:"Morocco",dialCode:"+212",code:"MA"},{name:"Mozambique",dialCode:"+258",code:"MZ"},{name:"Myanmar",dialCode:"+95",code:"MM"},{name:"Namibia",dialCode:"+264",code:"NA"},{name:"Nauru",dialCode:"+674",code:"NR"},{name:"Nepal",dialCode:"+977",code:"NP"},{name:"Netherlands",dialCode:"+31",code:"NL"},{name:"Netherlands Antilles",dialCode:"+599",code:"AN"},{name:"New Caledonia",dialCode:"+687",code:"NC"},{name:"New Zealand",dialCode:"+64",code:"NZ"},{name:"Nicaragua",dialCode:"+505",code:"NI"},{name:"Niger",dialCode:"+227",code:"NE"},{name:"Nigeria",dialCode:"+234",code:"NG"},{name:"Niue",dialCode:"+683",code:"NU"},{name:"Norfolk Island",dialCode:"+672",code:"NF"},{name:"Northern Mariana Islands",dialCode:"+1670",code:"MP"},{name:"Norway",dialCode:"+47",code:"NO"},{name:"Oman",dialCode:"+968",code:"OM"},{name:"Pakistan",dialCode:"+92",code:"PK"},{name:"Palau",dialCode:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dialCode:"+970",code:"PS"},{name:"Panama",dialCode:"+507",code:"PA"},{name:"Papua New Guinea",dialCode:"+675",code:"PG"},{name:"Paraguay",dialCode:"+595",code:"PY"},{name:"Peru",dialCode:"+51",code:"PE"},{name:"Philippines",dialCode:"+63",code:"PH"},{name:"Pitcairn",dialCode:"+872",code:"PN"},{name:"Poland",dialCode:"+48",code:"PL"},{name:"Portugal",dialCode:"+351",code:"PT"},{name:"Puerto Rico",dialCode:"+1939",code:"PR"},{name:"Qatar",dialCode:"+974",code:"QA"},{name:"Romania",dialCode:"+40",code:"RO"},{name:"Russia",dialCode:"+7",code:"RU"},{name:"Rwanda",dialCode:"+250",code:"RW"},{name:"Reunion",dialCode:"+262",code:"RE"},{name:"Saint Barthelemy",dialCode:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dialCode:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dialCode:"+1869",code:"KN"},{name:"Saint Lucia",dialCode:"+1758",code:"LC"},{name:"Saint Martin",dialCode:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dialCode:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dialCode:"+1784",code:"VC"},{name:"Samoa",dialCode:"+685",code:"WS"},{name:"San Marino",dialCode:"+378",code:"SM"},{name:"Sao Tome and Principe",dialCode:"+239",code:"ST"},{name:"Saudi Arabia",dialCode:"+966",code:"SA"},{name:"Senegal",dialCode:"+221",code:"SN"},{name:"Serbia",dialCode:"+381",code:"RS"},{name:"Seychelles",dialCode:"+248",code:"SC"},{name:"Sierra Leone",dialCode:"+232",code:"SL"},{name:"Singapore",dialCode:"+65",code:"SG"},{name:"Slovakia",dialCode:"+421",code:"SK"},{name:"Slovenia",dialCode:"+386",code:"SI"},{name:"Solomon Islands",dialCode:"+677",code:"SB"},{name:"Somalia",dialCode:"+252",code:"SO"},{name:"South Africa",dialCode:"+27",code:"ZA"},{name:"South Sudan",dialCode:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dialCode:"+500",code:"GS"},{name:"Spain",dialCode:"+34",code:"ES"},{name:"Sri Lanka",dialCode:"+94",code:"LK"},{name:"Sudan",dialCode:"+249",code:"SD"},{name:"Suriname",dialCode:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dialCode:"+47",code:"SJ"},{name:"Swaziland",dialCode:"+268",code:"SZ"},{name:"Sweden",dialCode:"+46",code:"SE"},{name:"Switzerland",dialCode:"+41",code:"CH"},{name:"Syrian Arab Republic",dialCode:"+963",code:"SY"},{name:"Taiwan",dialCode:"+886",code:"TW"},{name:"Tajikistan",dialCode:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dialCode:"+255",code:"TZ"},{name:"Thailand",dialCode:"+66",code:"TH"},{name:"Timor-Leste",dialCode:"+670",code:"TL"},{name:"Togo",dialCode:"+228",code:"TG"},{name:"Tokelau",dialCode:"+690",code:"TK"},{name:"Tonga",dialCode:"+676",code:"TO"},{name:"Trinidad and Tobago",dialCode:"+1868",code:"TT"},{name:"Tunisia",dialCode:"+216",code:"TN"},{name:"Turkey",dialCode:"+90",code:"TR"},{name:"Turkmenistan",dialCode:"+993",code:"TM"},{name:"Turks and Caicos Islands",dialCode:"+1649",code:"TC"},{name:"Tuvalu",dialCode:"+688",code:"TV"},{name:"Uganda",dialCode:"+256",code:"UG"},{name:"Ukraine",dialCode:"+380",code:"UA"},{name:"United Arab Emirates",dialCode:"+971",code:"AE"},{name:"United Kingdom",dialCode:"+44",code:"GB"},{name:"Uruguay",dialCode:"+598",code:"UY"},{name:"Uzbekistan",dialCode:"+998",code:"UZ"},{name:"Vanuatu",dialCode:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dialCode:"+58",code:"VE"},{name:"Vietnam",dialCode:"+84",code:"VN"},{name:"Virgin Islands, British",dialCode:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dialCode:"+1340",code:"VI"},{name:"Wallis and Futuna",dialCode:"+681",code:"WF"},{name:"Yemen",dialCode:"+967",code:"YE"},{name:"Zambia",dialCode:"+260",code:"ZM"},{name:"Zimbabwe",dialCode:"+263",code:"ZW"}].sort(((t,e)=>t.name<e.name?-1:1))],$a=tt("phone-field-internal");[].concat(["disabled","size","bordered","invalid","readonly"],["country-input-placeholder","default-code","restrict-countries"],["phone-input-placeholder","maxlength"]),Lr({componentName:$a,baseSelector:"div"});const Fa=$e.cssVarList,ja=Ia.cssVarList,Pa=tt("phone-field"),{host:qa,label:Ha,requiredIndicator:Ua,inputField:Ga,countryCodeInput:Za,phoneInput:Qa,separator:Ya,errorMessage:Ja,helperText:Ka}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},phoneInput:{selector:()=>"descope-text-field"},countryCodeInput:{selector:()=>"descope-combo-box"},separator:{selector:"descope-phone-field-internal .separator"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Xa=Z(Wt({mappings:{fontSize:[qa,Ga,{selector:$e.componentName,property:$e.cssVarList.fontSize},{selector:Ia.componentName,property:Ia.cssVarList.fontSize}],fontFamily:[Ha,Ja,Ka,{...Za,property:Ia.cssVarList.overlay.fontFamily}],hostWidth:[{...qa,property:"width"},{...Qa,property:"width"},{...Za,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...qa,property:"direction"},inputBorderStyle:[{...Ga,property:"border-style"},{...Ya,property:"border-left-style"}],inputBorderWidth:[{...Ga,property:"border-width"},{...Ya,property:"border-left-width"}],inputBorderColor:[{...Ga,property:"border-color"},{...Ya,property:"border-left-color"}],inputBorderRadius:{...Ga,property:"border-radius"},countryCodeInputWidth:{...Za,property:ja.hostWidth},countryCodeDropdownWidth:{...Za,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Qa,property:"width"},labelTextColor:[{...Ha,property:"color"},{...Ua,property:"color"}],labelRequiredIndicator:{...Ua,property:"content"},errorMessageTextColor:{...Ja,property:"color"},inputValueTextColor:[{...Qa,property:Fa.inputValueTextColor},{...Za,property:ja.inputValueTextColor}],inputPlaceholderTextColor:{...Qa,property:Fa.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:ja.overlayItemBackgroundColor},inputOutlineStyle:{...Ga,property:"outline-style"},inputOutlineColor:{...Ga,property:"outline-color"},inputOutlineWidth:{...Ga,property:"outline-width"},inputOutlineOffset:{...Ga,property:"outline-offset"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),(t=>class extends t{static get CountryCodes(){return Ra}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${$a}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${$a}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector($a),rt(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","invalid","minlength","maxlength","default-code","country-input-placeholder","phone-input-placeholder","disabled","restrict-countries"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 15em;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\t${Ie(Xa.cssVarList)}\n\t\t\t${ze("vaadin-text-field")}\n\t\t\t${Ve("vaadin-text-field")}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n\t\t\tdiv {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\tvaadin-text-field {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tpadding: 0;\n\t\t\t\tbackground: transparent;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t\tdescope-phone-field-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n direction: ltr;\n\t\t\t}\n\t\t\tdescope-phone-field-internal > div {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\tdescope-phone-field-internal .separator {\n\t\t\t\tflex: 0;\n\t\t\t\tborder: none;\n\t\t\t}\n\t\t\tdescope-combo-box {\n\t\t\t\tflex-shrink: 0;\n\t\t\t\tmin-width: 5.75em;\n\t\t\t\t${ja.inputOutlineWidth}: 0;\n\t\t\t\t${ja.inputOutlineOffset}: 0;\n\t\t\t\t${ja.inputBorderWidth}: 0;\n\t\t\t\t${ja.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Fa.inputOutlineWidth}: 0;\n\t\t\t\t${Fa.inputOutlineOffset}: 0;\n\t\t\t\t${Fa.inputBorderWidth}: 0;\n\t\t\t\t${Fa.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tborder: none;\n\t\t\t}\n ${We("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Pa})),ts=Xa.cssVarList,es={[ts.hostWidth]:qe.width,[ts.hostDirection]:qe.direction,[ts.fontSize]:qe.fontSize,[ts.fontFamily]:qe.fontFamily,[ts.labelTextColor]:qe.labelTextColor,[ts.labelRequiredIndicator]:qe.requiredIndicator,[ts.errorMessageTextColor]:qe.errorMessageTextColor,[ts.inputValueTextColor]:qe.valueTextColor,[ts.inputPlaceholderTextColor]:qe.placeholderTextColor,[ts.inputBorderStyle]:qe.borderStyle,[ts.inputBorderWidth]:qe.borderWidth,[ts.inputBorderColor]:qe.borderColor,[ts.inputBorderRadius]:qe.borderRadius,[ts.inputOutlineStyle]:qe.outlineStyle,[ts.inputOutlineWidth]:qe.outlineWidth,[ts.inputOutlineColor]:qe.outlineColor,[ts.inputOutlineOffset]:qe.outlineOffset,[ts.phoneInputWidth]:qe.minWidth,[ts.countryCodeInputWidth]:"5em",[ts.countryCodeDropdownWidth]:"20em"},rs=tt("phone-field-internal-input-box");Lr({componentName:rs,baseSelector:"div"});const ns=$e.cssVarList,os=tt("phone-input-box-field"),{host:is,label:as,requiredIndicator:ss,inputField:ls,phoneInput:ds,errorMessage:cs,helperText:ps}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},phoneInput:{selector:()=>"descope-text-field"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},us=Z(Wt({mappings:{fontSize:[is,ls,{selector:$e.componentName,property:$e.cssVarList.fontSize}],fontFamily:[as,cs,ps],hostWidth:{...is,property:"width"},hostMinWidth:{...is,property:"min-width"},hostDirection:{...is,property:"direction"},inputBorderStyle:{...ls,property:"border-style"},inputBorderWidth:{...ls,property:"border-width"},inputBorderColor:{...ls,property:"border-color"},inputBorderRadius:{...ls,property:"border-radius"},labelTextColor:[{...as,property:"color"},{...ss,property:"color"}],labelRequiredIndicator:{...ss,property:"content"},errorMessageTextColor:{...cs,property:"color"},inputValueTextColor:{...ds,property:ns.inputValueTextColor},inputPlaceholderTextColor:{...ds,property:ns.inputPlaceholderColor},inputOutlineStyle:{...ls,property:"outline-style"},inputOutlineColor:{...ls,property:"outline-color"},inputOutlineWidth:{...ls,property:"outline-width"},inputOutlineOffset:{...ls,property:"outline-offset"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),(t=>class extends t{static get CountryCodes(){return Ra}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${rs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${rs}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(rs),rt(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","invalid","minlength","maxlength","default-code","disabled","phone-input-placeholder"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${Ie(us.cssVarList)}\n ${ze("vaadin-text-field")}\n ${Ve("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n overflow: hidden;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n height: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n height: 100%;\n }\n descope-phone-field-internal-input-box .separator {\n flex: 0;\n border: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n ${ns.inputOutlineWidth}: 0;\n ${ns.inputOutlineOffset}: 0;\n ${ns.inputBorderWidth}: 0;\n ${ns.inputBorderRadius}: 0;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n ${We("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:os})),hs=us.cssVarList,ms={[hs.hostWidth]:"16em",[hs.hostMinWidth]:qe.minWidth,[hs.hostDirection]:qe.direction,[hs.fontSize]:qe.fontSize,[hs.fontFamily]:qe.fontFamily,[hs.labelTextColor]:qe.labelTextColor,[hs.labelRequiredIndicator]:qe.requiredIndicator,[hs.errorMessageTextColor]:qe.errorMessageTextColor,[hs.inputValueTextColor]:qe.valueTextColor,[hs.inputPlaceholderTextColor]:qe.placeholderTextColor,[hs.inputBorderStyle]:qe.borderStyle,[hs.inputBorderWidth]:qe.borderWidth,[hs.inputBorderColor]:qe.borderColor,[hs.inputBorderRadius]:qe.borderRadius,[hs.inputOutlineStyle]:qe.outlineStyle,[hs.inputOutlineWidth]:qe.outlineWidth,[hs.inputOutlineColor]:qe.outlineColor,[hs.inputOutlineOffset]:qe.outlineOffset,_fullWidth:{[hs.hostWidth]:qe.width}},fs=tt("new-password-internal"),bs=(t,e)=>t.replace(/{{(\w+)+}}/g,((t,r)=>e?.[r]||t)),gs=tt("policy-validation"),ys=["data","active-policies","overrides","data-password-policy-value-minlength"],vs=["label","value",...ys];class xs extends(Ht({componentName:gs,baseSelector:":host > div"})){#G;#Z=[];#Q;static get observedAttributes(){return vs}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n <style>\n :host > div {\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .label {\n max-width: 100%;\n text-wrap: wrap;\n overflow-wrap: break-word;\n }\n .hide-label .label {\n display: none;\n }\n ul {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n }\n ul, li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n li::before {\n display: inline-block;\n width: 1em;\n text-align: center;\n }\n </style>\n\t\t',this.panel=this.shadowRoot.querySelector(":host > div"),this.label=this.shadowRoot.querySelector(".label"),this.list=this.shadowRoot.querySelector("ul")}attributeChangedCallback(t,e,r){if(super.attributeChangedCallback?.(t,e,r),e!==r){if("label"===t&&this.updateLabel(r),ys.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(r)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Z=(r||"").split(",")),"data-password-policy-value-minlength"===t){const t=Number(r);!Number.isNaN(t)&&t>0&&(this.#Q={...this.#Q,minlength:{value:`${t}`}})}}this.renderItems(this.#G,this.#Z,this.#Q)}}get availablePolicies(){return this.#G||[]}set availablePolicies(t){this.#G=t}get value(){return this.getAttribute("value")||""}validate(){let t=this.#G;return this.#Q&&(t=this.#G.map((t=>this.#Q[t.id]?{...t,data:this.#Q[t.id]}:t))),this.#Z.reduce(((e,r)=>{const n=t.find((t=>t.id===r));if(!n)return e;const{pattern:o,message:i,data:a}=n;if(!o||!i)return e;const s={valid:new RegExp(bs(o,a)).test(this.value),message:bs(i,a),id:r};return e.push(s),e}),[])}get isValid(){return!this.validate().some((({valid:t})=>!1===t))}getValidationItemTemplate({valid:t,message:e}){return`\n <li class="item" data-valid="${this.value?t:"none"}">\n <span class="message">${e}</span>\n </li>\n `}renderItems(t,e){t&&e.length&&(this.list.innerHTML=this.validate().map(this.getValidationItemTemplate.bind(this)).join(""))}updateLabel(t){t?(this.label.innerHTML=t,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.innerHTML="")}}const{host:Cs,item:ws,symbolDefault:ks,symbolSuccess:Ss,symbolError:Ms}={host:{selector:()=>":host > div"},item:{selector:()=>".item"},symbolDefault:{selector:()=>'.item[data-valid="none"]::before'},symbolSuccess:{selector:()=>'.item[data-valid="true"]::before'},symbolError:{selector:()=>'.item[data-valid="false"]::before'}},As=Z(Wt({componentNameOverride:tt("input-wrapper")}),Wt({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...Cs,property:"border-width"},borderStyle:{...Cs,property:"border-style"},borderColor:{...Cs,property:"border-color"},borderRadius:{...Cs,property:"border-radius"},backgroundColor:{...Cs,property:"background-color"},textColor:{property:"color"},labelMargin:{...Cs,property:"gap"},itemsSpacing:{...ws,property:"line-height"},itemSymbolSuccessColor:{...Ss,property:"color"},itemSymbolErrorColor:{...Ms,property:"color"},itemSymbolDefault:{...ks,property:"content"},itemSymbolSuccess:{...Ss,property:"content"},itemSymbolError:{...Ms,property:"content"}}}),Bt,Rt)(xs),Ts=tt("new-password"),Es=As.cssVarList,{host:Is,label:_s,internalInputsWrapper:Ls,errorMessage:zs,helperText:Os,passwordInput:Ns,policyPreview:Vs}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-password-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},passwordInput:{selector:"descope-password"},policyPreview:{selector:"descope-policy-validation"}},Ds=Z(Wt({mappings:{fontSize:[Is,{},{selector:sr.componentName,property:sr.cssVarList.fontSize}],fontFamily:[_s,zs,Os],errorMessageTextColor:{...zs,property:"color"},hostWidth:{...Is,property:"width"},hostMinWidth:{...Is,property:"min-width"},hostDirection:[{...Is,property:"direction"},{...Ns,property:sr.cssVarList.hostDirection}],inputsRequiredIndicator:{...Is,property:"content"},spaceBetweenInputs:{...Ls,property:"gap"},policyPreviewBackgroundColor:{...Vs,property:Es.backgroundColor},policyPreviewPadding:{...Vs,property:Es.padding}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t<${fs}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n\t\t\t></${fs}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(fs),rt(this,this.inputElement,{includeAttrs:["password-label","password-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","label","has-confirm","invalid","readonly","draggable","has-validation","policy-label","active-policies","available-policies","data-password-policy-value-minlength"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n :host ::part(error-message) {\n direction: ltr;\n }\n\t\t${Ie(sr.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-password-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-password-internal > .wrapper {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-password {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\tdescope-new-password-internal vaadin-password-field::before {\n\t\t\theight: initial;\n\t\t}\n descope-policy-validation {\n margin-top: 8px;\n display: flex;\n }\n descope-policy-validation.hidden {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Ts})),Ws=dt(Nt),Bs=Ds.cssVarList,Rs={[Bs.hostWidth]:qe.width,[Bs.hostMinWidth]:qe.minWidth,[Bs.hostDirection]:qe.direction,[Bs.fontSize]:qe.fontSize,[Bs.fontFamily]:qe.fontFamily,[Bs.spaceBetweenInputs]:"1em",[Bs.errorMessageTextColor]:qe.errorMessageTextColor,[Bs.policyPreviewBackgroundColor]:"none",[Bs.policyPreviewPadding]:Ws.spacing.lg,_required:{[Bs.inputsRequiredIndicator]:qe.requiredIndicator}},$s=tt("upload-file"),Fs=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],js=Lr({componentName:$s,baseSelector:":host > div"}),Ps=se.cssVarList,{host:qs,wrapper:Hs,icon:Us,title:Gs,description:Zs,requiredIndicator:Qs}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},Ys=Z(Wt({componentNameOverride:tt("input-wrapper")}),Wt({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...qs,property:"height"},hostWidth:{...qs,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...qs,property:"direction"},{selector:()=>se.componentName,property:Ps.hostDirection}],gap:{...Hs},lineHeight:{...Hs,property:"line-height"},titleFontSize:{...Gs,property:"font-size"},titleFontWeight:{...Gs,property:"font-weight"},descriptionFontSize:{...Zs,property:"font-size"},labelTextColor:[{...Gs,property:"color"},{...Zs,property:"color"}],iconSize:{...Us,property:"width"},requiredIndicator:{...Qs,property:"content"}}}),Bt,Rt)(class extends js{static get observedAttributes(){return Fs.concat(js.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<style>\n\t\t\t:host {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\ttext-align: center;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.button-wrapper {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t</style>\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" />\n\t\t\t\t\t<descope-button></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',this.wrapperEle=this.shadowRoot.querySelector(".wrapper"),this.inputElement=this.shadowRoot.querySelector("input"),this.button.onclick=()=>this.inputElement.click(),this.inputElement.onchange=async t=>{const e=t.target.files;var r;e.length&&(this.value=await(r=e[0],new Promise((t=>{const e=new FileReader;e.onload=e=>t(e.target.result),e.readAsDataURL(r)}))),this.updateDescription((t=>t.name.replace(/^.*\\/,""))(e[0])))},this.oninvalid=()=>{this.setAttribute("invalid","true")}}getValidity(){return this.isRequired&&!this.input.value?{valueMissing:!0}:(this.removeAttribute("invalid"),{})}initInputs(){this.rootElement.querySelector("descope-button").onclick=()=>this.inputElement.click()}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e!==r&&("title"===t?this.updateTitle(r):"description"===t?this.updateDescription(r):"button-label"===t?this.updateButtonLabel(r):"button-mode"===t?this.updateButtonMode(r):"button-variant"===t?this.updateButtonVariant(r):"size"===t?this.updateButtonSize(r):"accept"===t?this.updateInputAccept(r):"readonly"===t&&this.updateReadOnly(r))}get button(){return this.shadowRoot.querySelector("descope-button")}get input(){return this.shadowRoot.querySelector("input")}get title(){return this.shadowRoot.querySelector(".title-text")}get description(){return this.shadowRoot.querySelector(".description")}get icon(){return this.shadowRoot.querySelector(".icon")}updateTitle(t){this.title.innerHTML=t}updateDescription(t){this.description.innerHTML=t}updateButtonLabel(t){this.button.innerHTML=t}updateButtonSize(t){this.button.setAttribute("size",t)}updateButtonMode(t){this.button.setAttribute("mode",t)}updateButtonVariant(t){this.button.setAttribute("variant",t)}updateInputAccept(t){this.input.setAttribute("accept",t)}updateReadOnly(t){"true"===t?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}}).cssVarList,Js={[Ys.hostDirection]:qe.direction,[Ys.labelTextColor]:qe.labelTextColor,[Ys.fontFamily]:qe.fontFamily,[Ys.iconSize]:"2em",[Ys.hostPadding]:"0.75em",[Ys.gap]:"0.5em",[Ys.fontSize]:"16px",[Ys.titleFontWeight]:"500",[Ys.lineHeight]:"1em",[Ys.borderWidth]:qe.borderWidth,[Ys.borderColor]:qe.borderColor,[Ys.borderRadius]:qe.borderRadius,[Ys.borderStyle]:"dashed",_required:{[Ys.requiredIndicator]:qe.requiredIndicator},size:{xs:{[Ys.hostHeight]:"196px",[Ys.hostWidth]:"200px",[Ys.titleFontSize]:"0.875em",[Ys.descriptionFontSize]:"0.875em",[Ys.lineHeight]:"1.25em"},sm:{[Ys.hostHeight]:"216px",[Ys.hostWidth]:"230px",[Ys.titleFontSize]:"1em",[Ys.descriptionFontSize]:"0.875em",[Ys.lineHeight]:"1.25em"},md:{[Ys.hostHeight]:"256px",[Ys.hostWidth]:"312px",[Ys.titleFontSize]:"1.125em",[Ys.descriptionFontSize]:"1em",[Ys.lineHeight]:"1.5em"},lg:{[Ys.hostHeight]:"280px",[Ys.hostWidth]:"336px",[Ys.titleFontSize]:"1.125em",[Ys.descriptionFontSize]:"1.125em",[Ys.lineHeight]:"1.75em"}},_fullWidth:{[Ys.hostWidth]:qe.width}},Ks=tt("button-selection-group-item");class Xs extends(Ht({componentName:Ks,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t<style>\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n\t\t</style>\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,rt(this,this.baseElement,{includeAttrs:["size","variant"]}),rt(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",(t=>{t.isTrusted&&this.handleFocus()}))}}const tl=Z(Wt({mappings:{hostDirection:{selector:()=>se.componentName,property:se.cssVarList.hostDirection},backgroundColor:{selector:()=>se.componentName,property:se.cssVarList.backgroundColor},labelTextColor:{selector:()=>se.componentName,property:se.cssVarList.labelTextColor},borderColor:{selector:()=>se.componentName,property:se.cssVarList.borderColor},borderWidth:{selector:()=>se.componentName,property:se.cssVarList.borderWidth},borderStyle:{selector:()=>se.componentName,property:se.cssVarList.borderStyle},borderRadius:{selector:()=>se.componentName,property:se.cssVarList.borderRadius},outlineColor:{selector:()=>se.componentName,property:se.cssVarList.outlineColor}}}),Bt,Rt)(Xs),el=dt(Nt),rl=tl.cssVarList,nl={[rl.hostDirection]:"inherit",[rl.backgroundColor]:el.colors.surface.main,[rl.labelTextColor]:el.colors.surface.contrast,[rl.borderColor]:el.colors.surface.light,[rl.borderStyle]:"solid",[rl.borderRadius]:el.radius.sm,[rl.outlineColor]:"transparent",[rl.borderWidth]:el.border.xs,_hover:{[rl.backgroundColor]:el.colors.surface.highlight},_focused:{[rl.outlineColor]:el.colors.surface.light},_selected:{[rl.borderColor]:el.colors.surface.contrast,[rl.backgroundColor]:el.colors.surface.contrast,[rl.labelTextColor]:el.colors.surface.main}},ol=t=>{class e extends(Lr({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <style>\n slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n }\n </style>\n <slot part="wrapper"></slot>\n '}dispatchChange=$t.bind(this,"change");get items(){return this.querySelector("slot").assignedElements()}get isReadonly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"md"}get value(){console.warn("get value","is not implemented")}set value(t){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach((t=>{t.setAttribute("size",this.size)}))}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(t){t.forEach((t=>{switch(t){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}}))}init(){this.addEventListener("focus",(t=>{t.isTrusted&&this.items[0]?.focus()})),super.init?.(),Y(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return e},il=tt("button-selection-group-internal");class al extends(ol(il)){getSelectedNode(){return this.items.find((t=>t.hasAttribute("selected")))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(t){t.target!==t.currentTarget&&(t.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(t.target),this.dispatchChange())}setSelected(t){t!==this.getSelectedNode()&&(this.removeSelected(),t?.setAttribute("selected","true"))}get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){setTimeout((()=>{this.defaultValue&&(this.value=this.defaultValue,this.setCustomValidity())}))}get value(){return this.getSelectedNode()?.value||""}set value(t){const e=this.items.find((e=>e.value===t));this.setSelected(e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const sl=t=>class extends t{#P=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#q;get renderItem(){return this.#P}set renderItem(t){this.#P=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#q)return this.#q;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#q=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.(((t,e)=>t+(this.renderItem?.(e||{})||"")),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.renderItems(),Y(this,this.renderItems.bind(this),{includeAttrs:["data"]}),J(this,(({addedNodes:t})=>{t.forEach((t=>{t.setAttribute("size",this.size)}))}))}},{host:ll,label:dl,requiredIndicator:cl,internalWrapper:pl,errorMessage:ul}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:()=>':host [part="internal-component"] slot'},errorMessage:{selector:"::part(error-message)"}},hl={hostWidth:{...ll,property:"width"},hostDirection:{...ll,property:"direction"},fontFamily:ll,labelTextColor:[{...dl,property:"color"},{...cl,property:"color"}],labelRequiredIndicator:{...cl,property:"content"},errorMessageTextColor:{...ul,property:"color"},itemsSpacing:{...pl,property:"gap"}},ml=`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${We("vaadin-text-field")}\n\t\t\t${ze("vaadin-text-field")}\n `,fl=tt("button-selection-group"),bl=Z(Wt({mappings:{...hl}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,sl,(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${il}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${il}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(il),rt(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>ml,excludeAttrsSync:["tabindex"],componentName:fl})),gl=dt(Nt),yl=t=>({[t.hostDirection]:qe.direction,[t.fontFamily]:qe.fontFamily,[t.labelTextColor]:qe.labelTextColor,[t.labelRequiredIndicator]:qe.requiredIndicator,[t.errorMessageTextColor]:qe.errorMessageTextColor,[t.itemsSpacing]:gl.spacing.sm,[t.hostWidth]:qe.width}),vl=bl.cssVarList,xl={...yl(vl)},Cl=tt("button-multi-selection-group-internal");class wl extends(ol(Cl)){#Y(){return this.items.filter((t=>t.hasAttribute("selected")))}onClick(t){t.target!==t.currentTarget&&(this.#Y().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Y().map((t=>t.value))}set value(t){this.items.forEach((e=>{t.includes(e.value)?e.setAttribute("selected","true"):e.removeAttribute("selected")}))}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#J(t){const e=Array.isArray(t);return e||console.error("default-values must be an array, received:",t),e}get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.#J(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){setTimeout((()=>{this.defaultValues&&(this.value=this.defaultValues,this.setCustomValidity())}))}getValidity(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}}init(){super.init(),this.setDefaultValues(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const kl=tt("button-multi-selection-group"),Sl=Z(Wt({mappings:{...hl}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,sl,(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Cl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${Cl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Cl),rt(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>ml,excludeAttrsSync:["tabindex"],componentName:kl})).cssVarList,Ml={...yl(Sl)},Al=tt("modal"),Tl=Z(Wt({mappings:{overlayBackgroundColor:{property:()=>Tl.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>Tl.cssVarList.overlay.shadow},overlayWidth:{property:()=>Tl.cssVarList.overlay.width}}}),te({name:"overlay",selector:"",mappings:{hostDisplay:{selector:()=>":host(.descope-modal)",property:"display",important:!0},backgroundColor:[{selector:()=>"::part(content)",property:"background-color"},{selector:()=>"::part(overlay)",property:"background-color"}],width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened"]}}),Bt,Rt,(t=>class extends t{get opened(){return"true"===this.getAttribute("opened")}handleOpened(){rt(this,this.baseElement,{includeAttrs:["opened"]}),this.opened?this.style.display="":this.style.display="none"}init(){super.init?.(),this.style.display="none",setTimeout((()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#U(),this.handleOpened()}))}#U(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),this.baseElement.setAttribute("style","display:flex!important;")},t._detachOverlay=()=>{this.baseElement.style.display="none"},t._enterModalState=()=>{},t.close=()=>!1}}))(Ut({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"",excludeAttrsSync:["tabindex","opened"],componentName:Al})),El=dt(Nt),Il=Tl.cssVarList,_l={[Il.overlayBackgroundColor]:El.colors.surface.main,[Il.overlayShadow]:El.shadow.wide["2xl"],[Il.overlayWidth]:"540px"},Ll={...Il},zl=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},Ol=tt("grid"),{host:Nl,headerRow:Vl,headerRowCell:Dl,contentRow:Wl,firstRow:Bl,sortIndicators:Rl,activeSortIndicator:$l,selectedRow:Fl,rowSeparator:jl,resizeHandle:Pl}={host:{selector:()=>"vaadin-grid"},headerRow:{selector:()=>"::part(header-cell)"},headerRowCell:{selector:()=>"vaadin-grid::part(header-cell)"},contentRow:{selector:()=>"::part(cell)"},firstRow:{selector:()=>"::part(first-header-row-cell)"},selectedRow:{selector:()=>"::part(selected-row-cell)"},sortIndicators:{selector:()=>"vaadin-grid-sorter::part(indicators)"},activeSortIndicator:{selector:()=>"vaadin-grid-sorter[direction]"},rowSeparator:{selector:()=>"vaadin-grid::part(body-cell)"},resizeHandle:{selector:()=>"::part(resize-handle)"}},ql=Z(Wt({componentNameOverride:tt("input-wrapper")}),Wt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Vl},{...Wl}],fontSize:[{...Vl},{...Wl}],fontWeight:{...Wl},valueTextColor:{...Wl,property:"color"},backgroundColor:[{...Nl,property:"background-color"},{...Wl,property:"background-color"}],sortIndicatorsColor:{...Rl,property:"color"},activeSortIndicator:{...$l,property:"color"},borderColor:{...Nl,property:"border-color"},borderWidth:{...Nl,property:"border-width"},borderStyle:{...Nl,property:"border-style"},borderRadius:{...Nl,property:"border-radius"},selectedBackgroundColor:{...Fl,property:"background-color"},headerRowTextColor:{...Dl,property:"color"},separatorColor:[{...Bl,property:"border-bottom-color"},{...jl,property:"border-top-color"}],resizeHandleColor:{...Pl,property:"background-color"}}}),Bt,Rt,(t=>class extends t{#K;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",(t=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:t.detail}))}))}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"columns"===t&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#K=Array.from(this.children).map((t=>({path:t.getAttribute("path"),header:t.getAttribute("header"),type:t.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce(((e,r)=>{const n=t.getAttribute(r);return n&&(e[r]=n),e}),{})})))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const t=JSON.parse(this.columnsAttr);zl(t)&&(this.columns=t)}catch(t){console.error('could not parse data string from attribute "columns" -',t.message)}}#X=({path:t,header:e,type:r,attrs:n})=>{const o=`descope-grid-${r}-column`;return`<${o} header="${e}" path="${t}" ${Object.entries(n).map((([t,e])=>`${t}="${e}"`)).join(" ")}></${o}>`};get renderColumn(){return this.#X}set renderColumn(t){this.#X=t,this.renderColumns()}getColumnsTemplate(){return this.#K?.reduce?.(((t,e)=>t+(this.renderColumn?.(e||{})||"")),"")}renderColumns(){const t=this.getColumnsTemplate();t&&(this.innerHTML=t)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(t){if(zl(t)&&this.grid.items!==t&&(this.grid.items=t,this.grid.selectedItems)){const t=new Set(this.grid.items.map((t=>t[this.uniqueColumnId]??t))),e=this.grid.selectedItems.filter((e=>t.has(e[this.uniqueColumnId]??e)));this.grid.selectedItems.length!==e.length&&(this.grid.selectedItems=e)}}get columns(){return this.#K}set columns(t){this.#K=t,this.renderColumns()}get paths(){return this.columns.map((t=>t.path))}get uniqueColumnId(){return this.getAttribute("unique-column-id")}}))(Ut({delegatesFocus:!1,slots:[""],wrappedEleName:"vaadin-grid",style:()=>"\n vaadin-grid {\n overflow: hidden;\n height: 100%;\n min-height: 300px;\n }\n vaadin-grid-cell-content {\n display: flex;\n }\n vaadin-grid::part(selected-row-cell) {\n background-image: none;\n box-shadow: none;\n }\n\t\t",excludeAttrsSync:["columns","tabindex"],componentName:Ol})),Hl=dt(Nt),Ul=ql.cssVarList,Gl={[Ul.hostWidth]:"100%",[Ul.hostHeight]:"100%",[Ul.hostMinHeight]:"400px",[Ul.fontWeight]:"400",[Ul.backgroundColor]:Hl.colors.surface.main,[Ul.fontSize]:qe.fontSize,[Ul.fontFamily]:qe.fontFamily,[Ul.sortIndicatorsColor]:Hl.colors.surface.light,[Ul.activeSortIndicator]:Hl.colors.surface.dark,[Ul.resizeHandleColor]:Hl.colors.surface.light,[Ul.borderWidth]:qe.borderWidth,[Ul.borderStyle]:qe.borderStyle,[Ul.borderRadius]:qe.borderRadius,[Ul.borderColor]:"transparent",[Ul.headerRowTextColor]:Hl.colors.surface.dark,[Ul.separatorColor]:Hl.colors.surface.light,[Ul.valueTextColor]:Hl.colors.surface.contrast,[Ul.selectedBackgroundColor]:Hl.colors.surface.highlight,_bordered:{[Ul.borderColor]:qe.borderColor}},Zl=Gl,Ql=tt("notification-card"),Yl={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},Jl=Z(Wt({mappings:{hostMinWidth:{selector:Yl.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:Yl.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:Yl.content,property:"border-width"},borderColor:{selector:Yl.content,property:"border-color"},borderStyle:{selector:Yl.content,property:"border-style"},borderRadius:[{selector:Yl.content,property:"border-radius"},{selector:Yl.overlay,property:"border-radius"}],verticalPadding:[{selector:Yl.content,property:"padding-top"},{selector:Yl.content,property:"padding-bottom"}],horizontalPadding:[{selector:Yl.content,property:"padding-right"},{selector:Yl.content,property:"padding-left"}]}}),(t=>class extends t{close(){this.baseElement.addEventListener("animationend",(()=>{this.remove(),this.dispatchEvent(new Event("card-closed"))})),this.setAttribute("opened","false")}constructor(){super(),this.baseElement.innerHTML='\n <div part="root">\n <div part="content">\n <slot></slot>\n </div>\n <div part="close">\n <slot name="close"></slot>\n </div>\n </div>\n ',this.closeEle=this.shadowRoot.querySelector('[part="close"]')}init(){super.init?.(),this.closeEle.onclick=()=>{this.close()}}}))(Ut({slots:[],wrappedEleName:"vaadin-notification-card",style:()=>'\n vaadin-notification-card {\n box-shadow: none;\n }\n ::part(overlay) {\n box-shadow: none;\n background: none;\n }\n\n [part="close"] {\n cursor: pointer;\n display: flex;\n }\n\n [part="content"] {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n [part="root"] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n ',excludeAttrsSync:["tabindex"],componentName:Ql})),Kl=dt(Nt),Xl=Jl.cssVarList,td="#00000020",ed={[Xl.hostMinWidth]:"415px",[Xl.fontFamily]:Kl.fonts.font1.family,[Xl.fontSize]:Kl.typography.body1.size,[Xl.backgroundColor]:Kl.colors.surface.main,[Xl.textColor]:Kl.colors.surface.contrast,[Xl.boxShadow]:`${Kl.shadow.wide.xl} ${td}, ${Kl.shadow.narrow.xl} ${td}`,[Xl.verticalPadding]:"0.625em",[Xl.horizontalPadding]:"1.5em",[Xl.borderRadius]:Kl.radius.xs,_bordered:{[Xl.borderWidth]:Kl.border.sm,[Xl.borderStyle]:"solid",[Xl.borderColor]:"transparent"},size:{xs:{[Xl.fontSize]:"12px"},sm:{[Xl.fontSize]:"14px"},md:{[Xl.fontSize]:"16px"},lg:{[Xl.fontSize]:"18px"}},mode:{primary:{[Xl.backgroundColor]:Kl.colors.primary.main,[Xl.textColor]:Kl.colors.primary.contrast,[Xl.borderColor]:Kl.colors.primary.light},success:{[Xl.backgroundColor]:Kl.colors.success.main,[Xl.textColor]:Kl.colors.success.contrast,[Xl.borderColor]:Kl.colors.success.light},error:{[Xl.backgroundColor]:Kl.colors.error.main,[Xl.textColor]:Kl.colors.error.contrast,[Xl.borderColor]:Kl.colors.error.light}}},rd=tt("multi-select-combo-box"),{host:nd,inputField:od,inputElement:id,placeholder:ad,toggle:sd,clearButton:ld,label:dd,requiredIndicator:cd,helperText:pd,errorMessage:ud,chip:hd,chipLabel:md,overflowChipFirstBorder:fd,overflowChipSecondBorder:bd}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},chip:{selector:"vaadin-multi-select-combo-box-chip"},chipLabel:{selector:"vaadin-multi-select-combo-box-chip::part(label)"},overflowChipFirstBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::before"},overflowChipSecondBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::after"}},gd=Z(Wt({mappings:{hostWidth:{...nd,property:"width"},hostDirection:{...nd,property:"direction"},fontSize:[{},nd],chipFontSize:{...md,property:"font-size"},fontFamily:[dd,ad,od,pd,ud,md],labelTextColor:[{...dd,property:"color"},{...cd,property:"color"}],errorMessageTextColor:{...ud,property:"color"},inputHeight:{...od,property:"min-height"},inputBackgroundColor:{...od,property:"background-color"},inputBorderColor:{...od,property:"border-color"},inputBorderWidth:{...od,property:"border-width"},inputBorderStyle:{...od,property:"border-style"},inputBorderRadius:{...od,property:"border-radius"},labelRequiredIndicator:{...cd,property:"content"},inputValueTextColor:{...od,property:"color"},inputPlaceholderTextColor:{...ad,property:"color"},inputDropdownButtonCursor:[{...sd,property:"cursor"},{...ld,property:"cursor"}],inputDropdownButtonColor:[{...sd,property:"color"},{...ld,property:"color"}],inputDropdownButtonSize:[{...sd,property:"font-size"},{...ld,property:"font-size"}],inputDropdownButtonOffset:[{...sd,property:"margin-right"},{...sd,property:"margin-left"}],inputOutlineColor:{...od,property:"outline-color"},inputOutlineWidth:{...od,property:"outline-width"},inputOutlineStyle:{...od,property:"outline-style"},inputOutlineOffset:{...od,property:"outline-offset"},inputHorizontalPadding:[{...id,property:"padding-left"},{...id,property:"padding-right"},{...od,property:"padding-inline-start"}],inputVerticalPadding:[{...od,property:"padding-top"},{...od,property:"padding-bottom"}],chipTextColor:{...md,property:"color"},chipBackgroundColor:[{...hd,property:"background-color"},{...fd,property:"border-color"},{...bd,property:"border-color"}],overlayBackground:{property:()=>gd.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>gd.cssVarList.overlay.textColor},overlayBorder:{property:()=>gd.cssVarList.overlay.border},overlayFontSize:{property:()=>gd.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>gd.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>gd.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>gd.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>gd.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>gd.cssVarList.overlay.itemPaddingInlineEnd}}}),Bt,te({name:"overlay",selector:"vaadin-multi-select-combo-box-internal",mappings:{backgroundColor:{selector:"vaadin-multi-select-combo-box-scroller"},minHeight:{selector:"vaadin-multi-select-combo-box-overlay"},margin:{selector:"vaadin-multi-select-combo-box-overlay"},cursor:{selector:"vaadin-multi-select-combo-box-item"},fontFamily:{selector:"vaadin-multi-select-combo-box-item"},textColor:{selector:"vaadin-multi-select-combo-box-item",property:"color"},fontSize:{selector:"vaadin-multi-select-combo-box-item"},itemBoxShadow:{selector:"vaadin-multi-select-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Kt({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),ee,Rt,(t=>class extends t{static get observedAttributes(){return["readonly"]}#P=({displayName:t,value:e,label:r})=>`<span data-name="${r}" data-id="${e}">${t||r}</span>`;#q;#tt=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#P}set renderItem(t){this.#P=t,this.renderItems()}get data(){if(this.#q)return this.#q;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#q=t,this.renderItems())}get allowCustomValues(){return"true"===this.getAttribute("allow-custom-value")}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data and default-values must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.(((t,e)=>t+(this.renderItem?.(e||{})||"")),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}updateSelectedItems(){const t=this.baseElement.selectedItems?.map((t=>t.getAttribute("data-id")))||[];t.length>0&&(this.value=t),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(r){const n=e.customValueTransformFn(r)||"";n!==this.value&&t.set.call(this,n)}}})}#et(t){return Array.from(new Map(t.map((t=>[t.getAttribute("data-id"),t]))).values())}#H(){const t=Array.from(this.children),e=this.#et(t);t.length?(this.removeAttribute("has-no-options"),e.forEach((t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})})),this.baseElement.items=e,setTimeout((()=>{this.updateSelectedItems()}),0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,r)=>{t.innerHTML=r.item.outerHTML}}#U(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#rt(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",(t=>{const e=this.#P({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout((()=>{this.value=[...this.value,t.detail]}),0)}))}setGetValidity(){this.getValidity=function(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.setComboBoxDescriptor(),this.#U(),this.#rt(),this.renderItems(),Y(this,this.renderItems.bind(this),{includeAttrs:["data"]}),J(this,this.#H.bind(this)),rt(this,this.baseElement,{includeAttrs:["placeholder"]}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",(()=>{this.#nt(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))}))}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#nt(){this.#tt=this.baseElement.selectedItems?.map((t=>t.getAttribute("data-id")))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter((e=>t.includes(e["data-id"])));if(this.allowCustomValues){const r=e?.map((t=>t.getAttribute("data-id")))||[],n=t.filter((t=>!r.includes(t)));if(n.length){const e=n.reduce(((t,e)=>t+this.#P({label:e,displayName:e,value:e})),"");return this.innerHTML+=e,void setTimeout((()=>{this.value=t}),0)}}const r=e?.map((t=>t.getAttribute("data-id")))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const r=t.slice().sort(),n=e.slice().sort();for(let t=0;t<r.length;t++)if(r[t]!==n[t])return!1;return!0})(this.#tt,r)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#tt}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"readonly"===t&&this.onReadOnlyChange(null!==r&&"true"===r)}onReadOnlyChange(t){t?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",t):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}}))(Ut({slots:["","prefix"],wrappedEleName:"vaadin-multi-select-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${Ie(gd.cssVarList)}\n\t\t${Ne("vaadin-multi-select-combo-box")}\n\t\t${Oe("vaadin-multi-select-combo-box")}\n\t\t${ze("vaadin-multi-select-combo-box")}\n\n\t\tvaadin-multi-select-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-multi-select-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-multi-select-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n align-self: center;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\tvaadin-multi-select-combo-box[readonly] [slot="input"] {\n flex-grow: 1;\n flex-basis: 4em;\n\t\t}\n\n\t\t::part(input-field) {\n padding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${We("vaadin-multi-select-combo-box")}\n :host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {\n display: block;\n }\n\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -4px;\n right: -4px;\n border-left-width: 0;\n border-inline-start-style: solid;\n border-inline-start-width: 2px;\n }\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -8px;\n right: -8px;\n }\n\n :host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex","size","data","placeholder"],componentName:rd,includeForwardProps:["items","renderer","selectedItems"]})),yd=dt(Nt),vd=gd.cssVarList,xd={[vd.hostWidth]:qe.width,[vd.hostDirection]:qe.direction,[vd.fontSize]:qe.fontSize,[vd.fontFamily]:qe.fontFamily,[vd.labelTextColor]:qe.labelTextColor,[vd.errorMessageTextColor]:qe.errorMessageTextColor,[vd.inputBorderColor]:qe.borderColor,[vd.inputBorderWidth]:qe.borderWidth,[vd.inputBorderStyle]:qe.borderStyle,[vd.inputBorderRadius]:qe.borderRadius,[vd.inputOutlineColor]:qe.outlineColor,[vd.inputOutlineOffset]:qe.outlineOffset,[vd.inputOutlineWidth]:qe.outlineWidth,[vd.inputOutlineStyle]:qe.outlineStyle,[vd.labelRequiredIndicator]:qe.requiredIndicator,[vd.inputValueTextColor]:qe.valueTextColor,[vd.inputPlaceholderTextColor]:qe.placeholderTextColor,[vd.inputBackgroundColor]:qe.backgroundColor,[vd.inputHorizontalPadding]:qe.horizontalPadding,[vd.inputVerticalPadding]:qe.verticalPadding,[vd.inputHeight]:qe.inputHeight,[vd.inputDropdownButtonColor]:yd.colors.surface.dark,[vd.inputDropdownButtonCursor]:"pointer",[vd.inputDropdownButtonSize]:qe.toggleButtonSize,[vd.inputDropdownButtonOffset]:yd.spacing.xs,[vd.overlayItemPaddingInlineStart]:yd.spacing.xs,[vd.overlayItemPaddingInlineEnd]:yd.spacing.lg,[vd.chipFontSize]:qe.chipFontSize,[vd.chipTextColor]:yd.colors.surface.contrast,[vd.chipBackgroundColor]:yd.colors.surface.light,_readonly:{[vd.inputDropdownButtonCursor]:"default"},[vd.overlayFontSize]:qe.fontSize,[vd.overlayFontFamily]:qe.fontFamily,[vd.overlayCursor]:"pointer",[vd.overlayItemBoxShadow]:"none",[vd.overlayBackground]:qe.backgroundColor,[vd.overlayTextColor]:qe.valueTextColor,[vd.overlay.minHeight]:"400px",[vd.overlay.margin]:"0"},Cd=xd,wd=tt("badge");class kd extends(Ht({componentName:wd,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n :host {\n display: inline-flex;\n }\n :host > div {\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\t\t</style>\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t"}}const Sd=Z(Wt({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{}}}),Bt,Rt)(kd),Md=dt(Nt),Ad=Sd.cssVarList,Td={[Ad.hostWidth]:"fit-content",[Ad.hostDirection]:Md.direction,[Ad.textAlign]:"center",[Ad.fontFamily]:Md.fonts.font1.family,[Ad.fontWeight]:"400",[Ad.verticalPadding]:"0.25em",[Ad.horizontalPadding]:"0.5em",[Ad.borderWidth]:Md.border.xs,[Ad.borderRadius]:Md.radius.xs,[Ad.borderColor]:"transparent",[Ad.borderStyle]:"solid",_fullWidth:{[Ad.hostWidth]:"100%"},size:{xs:{[Ad.fontSize]:"12px"},sm:{[Ad.fontSize]:"14px"},md:{[Ad.fontSize]:"16px"},lg:{[Ad.fontSize]:"18px"}},mode:{default:{[Ad.textColor]:Md.colors.surface.dark,_bordered:{[Ad.borderColor]:Md.colors.surface.light}},primary:{[Ad.textColor]:Md.colors.primary.main,_bordered:{[Ad.borderColor]:Md.colors.primary.light}},secondary:{[Ad.textColor]:Md.colors.secondary.main,_bordered:{[Ad.borderColor]:Md.colors.secondary.light}},error:{[Ad.textColor]:Md.colors.error.main,_bordered:{[Ad.borderColor]:Md.colors.error.light}},success:{[Ad.textColor]:Md.colors.success.main,_bordered:{[Ad.borderColor]:Md.colors.success.light}}}},Ed=tt("avatar");class Id extends(Ht({componentName:Ed,baseSelector:":host > .wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .editableBadge {\n border: 1px solid;\n border-radius: 100%;\n height: fit-content;\n width: 25%;\n height: 25%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n inset-inline-end: 0;\n }\n\n vaadin-icon {\n color: currentcolor;\n }\n\n vaadin-avatar {\n width: 100%;\n height: 100%;\n }\n\n .wrapper {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 100%;\n }\n </style>\n\n\n <div class="wrapper">\n <vaadin-avatar></vaadin-avatar>\n <div class="editableBadge">\n <vaadin-icon icon="vaadin:pencil"></vaadin-icon>\n </div>\n </div>\n\t\t',this.avatarComponent=this.shadowRoot.querySelector("vaadin-avatar"),rt(this,this.avatarComponent,{includeAttrs:["display-name","img"],mapAttrs:{"display-name":"name"}});const t=this.shadowRoot.querySelector(".editableBadge");Y(this,(()=>{t.style.display=this.isEditable?"":"none"}),{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:_d,editableBadge:Ld,avatar:zd}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Od=Z(Wt({mappings:{hostWidth:{..._d,property:"width"},hostHeight:{..._d,property:"height"},cursor:[zd,_d],hostDirection:{..._d,property:"direction"},avatarTextColor:{...zd,property:"color"},avatarBackgroundColor:{...zd,property:"background-color"},editableIconColor:{...Ld,property:"color"},editableBorderColor:{...Ld,property:"border-color"},editableBackgroundColor:{...Ld,property:"background-color"}}}),Bt,Rt)(Id),Nd=dt(Nt),Vd=Od.cssVarList,Dd={[Vd.hostDirection]:Nd.direction,[Vd.editableIconColor]:Nd.colors.surface.dark,[Vd.editableBorderColor]:Nd.colors.surface.dark,[Vd.editableBackgroundColor]:Nd.colors.surface.main,[Vd.avatarTextColor]:Nd.colors.surface.main,[Vd.avatarBackgroundColor]:Nd.colors.surface.dark,_editable:{[Vd.cursor]:"pointer"},size:{xs:{[Vd.hostWidth]:"30px",[Vd.hostHeight]:"30px"},sm:{[Vd.hostWidth]:"40px",[Vd.hostHeight]:"40px"},md:{[Vd.hostWidth]:"60px",[Vd.hostHeight]:"60px"},lg:{[Vd.hostWidth]:"98px",[Vd.hostHeight]:"98px"}}},Wd={...Vd},Bd=tt("mappings-field-internal");Lr({componentName:Bd,baseSelector:"div"});const Rd=tt("mappings-field"),{host:$d,helperText:Fd,errorMessage:jd,mappingItem:Pd,labels:qd,labelsText:Hd,valueLabel:Ud,attrLabel:Gd,separator:Zd,labelsContainer:Qd}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},Yd=Z(Wt({mappings:{hostWidth:{...$d,property:"width"},hostDirection:{...$d,property:"direction"},fontSize:[{},$d,{...Zd,property:"margin-top"}],fontFamily:[Fd,jd,qd],separatorFontSize:{...Zd,property:"font-size"},labelsFontSize:{...Hd,property:"font-size"},labelsLineHeight:[{...Hd,property:"line-height"},{...qd,property:"line-height"}],labelTextColor:{...qd,property:In.cssVarList.textColor},itemMarginBottom:{...Pd,property:"margin-bottom"},valueLabelMinWidth:{...Ud,property:"min-width"},attrLabelMinWidth:{...Gd,property:"min-width"},labelsMarginBottom:{...Qd,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Bt,Kt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Rt,(t=>class extends t{get defaultValues(){const t=this.getAttribute("default-values");if(t)try{return JSON.parse(t)}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){const t=this.defaultValues;Object.keys(t).length>0&&(this.inputElement.value=t)}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Bd}\n tabindex="-1"\n ></${Bd}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Bd),rt(this,this.inputElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","default-values","invalid","readonly","disabled"]}),X(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}}))(Ut({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-mappings-field-internal [part="labels"] {\n display: none;\n grid-template-columns: 1fr var(${Yd.cssVarList.separatorWidth}) 1fr var(${Yd.cssVarList.removeButtonWidth});\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"],\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n ${In.cssVarList.fontWeight}: 500;\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"] {\n grid-column: 1 / span 1;\n }\n\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n grid-column: 3 / span 1;\n }\n\n descope-mapping-item::part(wrapper) {\n display: grid;\n grid-template-columns: 1fr var(${Yd.cssVarList.separatorWidth}) 1fr var(${Yd.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message"],componentName:Rd})),Jd=dt(Nt),Kd=Yd.cssVarList,Xd={[Kd.hostWidth]:qe.width,[Kd.hostDirection]:qe.direction,[Kd.fontSize]:qe.fontSize,[Kd.fontFamily]:qe.fontFamily,[Kd.separatorFontSize]:"14px",[Kd.labelsFontSize]:"14px",[Kd.labelsLineHeight]:"1",[Kd.labelsMarginBottom]:"6px",[Kd.labelTextColor]:qe.labelTextColor,[Kd.itemMarginBottom]:"1em",[Kd.valueLabelMinWidth]:qe.minWidth,[Kd.attrLabelMinWidth]:`calc(12em + 2 * ${Jd.border.xs})`,[Kd.separatorWidth]:"70px",[Kd.removeButtonWidth]:"60px"},tc=Xd;var ec=r(1747),rc=r.n(ec),nc=r(8152),oc=r.n(nc);const ic=tt("user-attribute");class ac extends(Ht({componentName:ic,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n }\n\n descope-badge {\n margin-inline-end: 10px;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${In.cssVarList.textColor});\n }\n </style>\n\n\n <div class="root">\n <div class="text-wrapper">\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary"></descope-text>\n <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-badge mode="default" bordered="true" size="xs"></descope-badge>\n <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=${oc()}></vaadin-icon>\n </descope-button>\n <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=${rc()}></vaadin-icon>\n </descope-button>\n </div\n </div>\n\t\t`,this.deleteButton=this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]'),this.editButton=this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]'),this.badge=this.shadowRoot.querySelector("descope-badge"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]'),this.valueText=this.shadowRoot.querySelector('descope-text[data-id="value-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onValueOrPlaceholderChange(){const t=this.value||this.placeholder,e=this.value?"primary":"secondary";this.valueText.innerText=t,this.valueText.setAttribute("title",t),this.valueText.setAttribute("mode",e)}onBadgeLabelChange(){this.badgeLabel?(this.badge.innerText=this.badgeLabel,this.badge.style.display=""):this.badge.style.display="none"}onBadgeTooltipTextChange(){this.badge.setAttribute("title",this.badgeTooltipText||this.badgeLabel)}onIsRequiredChange(){this.labelText.classList.toggle("required",this.isRequired)}get label(){return this.getAttribute("label")||""}get value(){return this.getAttribute("value")||""}get placeholder(){return this.getAttribute("placeholder")||""}get isRequired(){return"true"===this.getAttribute("required")}get badgeLabel(){return this.getAttribute("badge-label")||""}get badgeTooltipText(){return this.getAttribute("badge-tooltip-text")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.handleDeleteButtonVisibility(),this.deleteButton.addEventListener("click",(()=>this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,composed:!0})))),this.editButton.addEventListener("click",(()=>this.dispatchEvent(new CustomEvent("edit-clicked",{bubbles:!0,composed:!0}))))}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value)}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e!==r&&("label"===t?this.onLabelChange():"value"===t||"placeholder"===t?this.onValueOrPlaceholderChange():"required"===t?this.onIsRequiredChange():"badge-label"===t?this.onBadgeLabelChange():"badge-tooltip-text"===t&&this.onBadgeTooltipTextChange(),"value"!==t&&"required"!==t||this.handleDeleteButtonVisibility())}}const{host:sc,textFields:lc,buttons:dc,badge:cc,labelText:pc,valueText:uc,textWrapper:hc}={host:{selector:()=>":host"},textFields:{selector:"descope-text"},valueText:{selector:'descope-text[data-id="value-text"]'},labelText:{selector:'descope-text[data-id="label-text"]'},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"}},mc=Z(Wt({mappings:{hostWidth:{...sc,property:"width"},hostMinWidth:{...sc,property:"min-width"},hostDirection:[{...sc,property:"direction"},{...lc,property:In.cssVarList.hostDirection},{...dc,property:se.cssVarList.hostDirection},{...cc,property:Sd.cssVarList.hostDirection}],labelTextWidth:{...pc,property:"width"},valueTextWidth:{...uc,property:"width"},badgeMaxWidth:{...cc,property:"max-width"},itemsGap:[{property:"gap"},{...hc,property:"gap"}]}}),Bt,Rt)(ac),fc=dt(Nt),bc=mc.cssVarList,gc={[bc.hostDirection]:fc.direction,[bc.labelTextWidth]:"150px",[bc.valueTextWidth]:"200px",[bc.badgeMaxWidth]:"85px",[bc.itemsGap]:"16px",[bc.hostMinWidth]:"530px",_fullWidth:{[bc.hostWidth]:"100%"}};var yc=r(853),vc=r.n(yc);const xc=tt("user-auth-method");class Cc extends(Ht({componentName:xc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n }\n\n .fulfilled-indicator {\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n padding-inline-end: 1em;\n }\n\n .hidden {\n display: none;\n }\n\n .hidden-btn {\n width: 0;\n overflow: hidden;\n }\n\n slot[name="method-icon"]{\n display: inline-flex;\n align-items: center;\n }\n </style>\n\n\n <div class="root">\n <div class="text-wrapper">\n <slot name="method-icon"></slot>\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-button size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n <div class="fulfilled-indicator">\n <vaadin-icon src=${vc()}></vaadin-icon>\n </div>\n <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>\n </div>\n </div>\n\t\t`,this.button=this.shadowRoot.querySelector("descope-button"),this.fulfilledIndicator=this.shadowRoot.querySelector(".fulfilled-indicator"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onButtonLabelChange(){let t=this.button.querySelector("span");this.buttonLabel?(t||(t=document.createElement("span"),this.button.appendChild(t)),t.innerText=this.buttonLabel):t&&this.button.removeChild(t)}onFulfilledChange(){this.button.classList.toggle("hidden",this.isFulfilled),this.fulfilledIndicator.classList.toggle("hidden",!this.isFulfilled)}get label(){return this.getAttribute("label")||""}get buttonLabel(){return this.getAttribute("button-label")||""}get isFulfilled(){return"true"===this.getAttribute("fulfilled")}init(){this.onLabelChange(),this.onButtonLabelChange(),this.onFulfilledChange(),this.button.addEventListener("click",(()=>this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0}))))}static get observedAttributes(){return["label","fulfilled"].concat(super.observedAttributes)}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e!==r&&("label"===t?this.onLabelChange():"fulfilled"===t?this.onFulfilledChange():"button-label"===t&&this.onButtonLabelChange())}}const{host:wc,textField:kc,buttons:Sc,badge:Mc,textWrapper:Ac,methodIconSlot:Tc}={host:{selector:()=>":host"},textField:{selector:"descope-text"},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"},methodIconSlot:{selector:'slot[name="method-icon"]'}},Ec=Z(Wt({mappings:{hostWidth:{...wc,property:"width"},hostMinWidth:{...wc,property:"min-width"},hostDirection:[{...wc,property:"direction"},{...kc,property:In.cssVarList.hostDirection},{...Sc,property:se.cssVarList.hostDirection},{...Mc,property:Sd.cssVarList.hostDirection}],labelTextWidth:{...kc,property:"width"},itemsGap:[{property:"gap"},{...Ac,property:"gap"}],iconSize:[{...Tc,property:"width"},{...Tc,property:"height"}]}}),Bt,Rt)(Cc),Ic=dt(Nt),_c=Ec.cssVarList,Lc={[_c.hostDirection]:Ic.direction,[_c.labelTextWidth]:"200px",[_c.itemsGap]:"16px",[_c.hostMinWidth]:"530px",[_c.iconSize]:"24px",_fullWidth:{[_c.hostWidth]:"100%"}},zc=tt("saml-group-mappings-internal");Lr({componentName:zc,baseSelector:""});const Oc=tt("saml-group-mappings"),{host:Nc,groupInput:Vc}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"}},Dc=Z(Wt({mappings:{hostWidth:{...Nc,property:"width"},hostDirection:{...Nc,property:"direction"},groupNameInputMarginBottom:{...Vc,property:"margin-bottom"}}}),Bt,Kt({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Rt,(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${zc}\n tabindex="-1"\n ></${zc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(zc),rt(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),X(this,this.inputElement,{includeAttrs:["invalid"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-text-field {\n width: auto;\n }\n\n descope-mappings-field {\n display: block;\n }\n ",excludeAttrsSync:["tabindex","label-group","label-value","label-attr","button-label","separator","options","error-message"],componentName:Oc})).cssVarList,Wc={[Dc.hostWidth]:qe.width,[Dc.hostDirection]:qe.direction,[Dc.groupNameInputMarginBottom]:"1em"},Bc=Wc,Rc=dt(Nt),$c=As.cssVarList,Fc={[$c.fontFamily]:qe.fontFamily,[$c.fontSize]:qe.labelFontSize,[$c.textColor]:qe.labelTextColor,[$c.borderWidth]:qe.borderWidth,[$c.borderStyle]:qe.borderStyle,[$c.borderColor]:qe.borderColor,[$c.borderRadius]:Rc.radius.sm,[$c.backgroundColor]:"none",[$c.padding]:"0px",[$c.labelMargin]:Rc.spacing.sm,[$c.itemsSpacing]:Rc.spacing.lg,[$c.itemSymbolDefault]:"'\\2022'",[$c.itemSymbolSuccess]:"'\\2713'",[$c.itemSymbolError]:"'\\2A09'",[$c.itemSymbolSuccessColor]:Rc.colors.success.main,[$c.itemSymbolErrorColor]:Rc.colors.error.main},jc={button:t,textField:o,password:i,numberField:a,emailField:s,textArea:l,checkbox:d,switchToggle:c,container:p,logo:u,totpImage:h,notpImage:m,text:f,EnrichedText:b,link:g,divider:y,passcode:v,loaderRadial:C,loaderLinear:x,comboBox:w,image:k,phoneField:S,phoneInputBoxField:M,newPassword:A,inputWrapper:e,uploadFile:T,buttonSelectionGroupItem:E,buttonSelectionGroup:I,buttonMultiSelectionGroup:_,modal:L,grid:z,notificationCard:O,multiSelectComboBox:N,badge:V,avatar:D,mappingsField:W,userAttribute:B,userAuthMethod:R,samlGroupMappings:$,policyValidation:F},Pc=Object.keys(jc).reduce(((t,e)=>({...t,[e]:jc[e].default})),{}),qc=(Object.keys(jc).reduce(((t,e)=>({...t,[e]:jc[e].vars})),{}),{globals:Nt,components:Pc}),Hc=P()({},qc,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"}}}})})(),n})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DescopeDev=e():t.DescopeDev=e()}(self,(()=>(()=>{var t={8168:(t,e,r)=>{const n=r(8874),o={};for(const t of Object.keys(n))o[n[t]]=t;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=i;for(const t of Object.keys(i)){if(!("channels"in i[t]))throw new Error("missing channels property: "+t);if(!("labels"in i[t]))throw new Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:e}),Object.defineProperty(i[t],"labels",{value:r})}i.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=i-o;let s,l;i===o?s=0:e===i?s=(r-n)/a:r===i?s=2+(n-e)/a:n===i&&(s=4+(e-r)/a),s=Math.min(60*s,360),s<0&&(s+=360);const d=(o+i)/2;return l=i===o?0:d<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*d]},i.rgb.hsv=function(t){let e,r,n,o,i;const a=t[0]/255,s=t[1]/255,l=t[2]/255,d=Math.max(a,s,l),c=d-Math.min(a,s,l),p=function(t){return(d-t)/6/c+.5};return 0===c?(o=0,i=0):(i=c/d,e=p(a),r=p(s),n=p(l),a===d?o=n-r:s===d?o=1/3+e-n:l===d&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*d]},i.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const o=i.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[o,100*a,100*n]},i.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.min(1-e,1-r,1-n);return[100*((1-e-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},i.rgb.keyword=function(t){const e=o[t];if(e)return e;let r,i=1/0;for(const e of Object.keys(n)){const o=(s=n[e],((a=t)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);o<i&&(i=o,r=e)}var a,s;return r},i.keyword.rgb=function(t){return n[t]},i.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},i.rgb.lab=function(t){const e=i.rgb.xyz(t);let r=e[0],n=e[1],o=e[2];return r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*n-16,500*(r-n),200*(n-o)]},i.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let o,i,a;if(0===r)return a=255*n,[a,a,a];o=n<.5?n*(1+r):n+r-n*r;const s=2*n-o,l=[0,0,0];for(let t=0;t<3;t++)i=e+1/3*-(t-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[t]=255*a;return l},i.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,o=r;const i=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},i.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const o=Math.floor(e)%6,i=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},i.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,o=Math.max(n,.01);let i,a;a=(2-r)*n;const s=(2-r)*o;return i=r*o,i/=s<=1?s:2-s,i=i||0,a/=2,[e,100*i,100*a]},i.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const a=Math.floor(6*e),s=1-n;i=6*e-a,0!=(1&a)&&(i=1-i);const l=r+i*(s-r);let d,c,p;switch(a){default:case 6:case 0:d=s,c=l,p=r;break;case 1:d=l,c=s,p=r;break;case 2:d=r,c=s,p=l;break;case 3:d=r,c=l,p=s;break;case 4:d=l,c=r,p=s;break;case 5:d=s,c=r,p=l}return[255*d,255*c,255*p]},i.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let o,i,a;return o=3.2406*e+-1.5372*r+-.4986*n,i=-.9689*e+1.8758*r+.0415*n,a=.0557*e+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];return e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(e-r),200*(r-n)]},i.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const o=r**3,i=e**3,a=n**3;return r=o>.008856?o:(r-16/116)/7.787,e=i>.008856?i:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},i.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let o;return o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360),[e,Math.sqrt(r*r+n*n),o]},i.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},i.rgb.ansi16=function(t,e=null){const[r,n,o]=t;let a=null===e?i.rgb.hsv(t)[2]:e;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},i.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},i.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.max(Math.max(e,r),n),i=Math.min(Math.min(e,r),n),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===e?(r-n)/a%6:o===r?2+(n-e)/a:4+(e-r)/a,l/=6,l%=1,[360*l,100*a,100*s]},i.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[t[0],100*n,100*o]},i.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},i.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=e%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[255*(r*o[0]+l),255*(r*o[1]+l),255*(r*o[2]+l)]},i.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},i.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},i.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},i.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=function(t){return[0,0,t[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},2085:(t,e,r)=>{const n=r(8168),o=r(4111),i={};Object.keys(n).forEach((t=>{i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});const e=o(t);Object.keys(e).forEach((r=>{const n=e[r];i[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},4111:(t,e,r)=>{const n=r(8168);function o(t,e){return function(r){return e(t(r))}}function i(t,e){const r=[e[t].parent,t];let i=n[e[t].parent][t],a=e[t].parent;for(;e[a].parent;)r.unshift(e[a].parent),i=o(n[e[a].parent][a],i),a=e[a].parent;return i.conversion=r,i}t.exports=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(n[t]);for(let n=o.length,i=0;i<n;i++){const n=o[i],a=e[n];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,r.unshift(n))}}return e}(t),r={},o=Object.keys(e);for(let t=o.length,n=0;n<t;n++){const t=o[n];null!==e[t].parent&&(r[t]=i(t,e))}return r}},8874:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},9818:(t,e,r)=>{var n=r(8874),o=r(6851),i=Object.hasOwnProperty,a=Object.create(null);for(var s in n)i.call(n,s)&&(a[n[s]]=s);var l=t.exports={to:{},get:{}};function d(t,e,r){return Math.min(Math.max(e,t),r)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=l.get.hsl(t),r="hsl";break;case"hwb":e=l.get.hwb(t),r="hwb";break;default:e=l.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,r,o,a=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(e.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],r=0;r<3;r++)a[r]=parseInt(e[r]+e[r],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(e[r+1],0);e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(n,e[1])?((a=n[e[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}for(r=0;r<3;r++)a[r]=d(a[r],0,255);return a[3]=d(a[3],0,1),a},l.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var t=o(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},l.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return a[t.slice(0,3)]}},6767:(t,e,r)=>{const n=r(9818),o=r(2085),i=["keyword","gray","hex"],a={};for(const t of Object.keys(o))a[[...o[t].labels].sort().join("")]=t;const s={};function l(t,e){if(!(this instanceof l))return new l(t,e);if(e&&e in i&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);let r,d;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof l)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=n.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,d=o[this.model].channels,this.color=e.value.slice(0,d),this.valpha="number"==typeof e.value[d]?e.value[d]:1}else if(t.length>0){this.model=e||"rgb",d=o[this.model].channels;const r=Array.prototype.slice.call(t,0,d);this.color=u(r,d),this.valpha="number"==typeof t[d]?t[d]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in a))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=a[n];const{labels:i}=o[this.model],s=[];for(r=0;r<i.length;r++)s.push(t[i[r]]);this.color=u(s)}if(s[this.model])for(d=o[this.model].channels,r=0;r<d;r++){const t=s[this.model][r];t&&(this.color[r]=t(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in n.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const r=1===e.valpha?e.color:[...e.color,this.valpha];return n.to[e.model](r)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:[...e.color,this.valpha];return n.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=o[this.model],{labels:r}=o[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new l([...this.color.map(d(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new l([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:c("rgb",0,p(255)),green:c("rgb",1,p(255)),blue:c("rgb",2,p(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:c("hsl",1,p(100)),lightness:c("hsl",2,p(100)),saturationv:c("hsv",1,p(100)),value:c("hsv",2,p(100)),chroma:c("hcg",1,p(100)),gray:c("hcg",2,p(100)),white:c("hwb",1,p(100)),wblack:c("hwb",2,p(100)),cyan:c("cmyk",0,p(100)),magenta:c("cmyk",1,p(100)),yellow:c("cmyk",2,p(100)),black:c("cmyk",3,p(100)),x:c("xyz",0,p(95.047)),y:c("xyz",1,p(100)),z:c("xyz",2,p(108.833)),l:c("lab",0,p(100)),a:c("lab",1),b:c("lab",2),keyword(t){return void 0!==t?new l(t):o[this.model].keyword(this.color)},hex(t){return void 0!==t?new l(t):n.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new l(t);const e=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(e)+r},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[r,n]of t.entries()){const t=n/255;e[r]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return l.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const r=t.rgb(),n=this.rgb(),o=void 0===e?.5:e,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,d=1-s;return l.rgb(s*r.red()+d*n.red(),s*r.green()+d*n.green(),s*r.blue()+d*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const t of Object.keys(o)){if(i.includes(t))continue;const{channels:e}=o[t];l.prototype[t]=function(...e){return this.model===t?new l(this):e.length>0?new l(e,t):new l([...(r=o[this.model][t].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],t);var r},l[t]=function(...r){let n=r[0];return"number"==typeof n&&(n=u(r,e)),new l(n,t)}}function d(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function c(t,e,r){t=Array.isArray(t)?t:[t];for(const n of t)(s[n]||(s[n]=[]))[e]=r;return t=t[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[t](),o.color[e]=n,o):(o=this[t]().color[e],r&&(o=r(o)),o)}}function p(t){return function(e){return Math.max(0,Math.min(t,e))}}function u(t,e){for(let r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}t.exports=l},5171:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},2378:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",d="[object Null]",c="[object Object]",p="[object Proxy]",u="[object Undefined]",h=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[i]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[s]=f["[object Map]"]=f["[object Number]"]=f[c]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var b,g,y,v="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,C=v||x||Function("return this")(),w=e&&!e.nodeType&&e,k=w&&t&&!t.nodeType&&t,S=k&&k.exports===w,M=S&&v.process,A=function(){try{return k&&k.require&&k.require("util").types||M&&M.binding&&M.binding("util")}catch(t){}}(),T=A&&A.isTypedArray,E=Array.prototype,I=Function.prototype,_=Object.prototype,L=C["__core-js_shared__"],z=I.toString,O=_.hasOwnProperty,N=(b=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",V=_.toString,D=z.call(Object),W=RegExp("^"+z.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=S?C.Buffer:void 0,R=C.Symbol,$=C.Uint8Array,F=(B&&B.allocUnsafe,g=Object.getPrototypeOf,y=Object,function(t){return g(y(t))}),j=Object.create,P=_.propertyIsEnumerable,q=E.splice,H=R?R.toStringTag:void 0,U=function(){try{var t=ut(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=B?B.isBuffer:void 0,Z=Math.max,Q=Date.now,Y=ut(C,"Map"),J=ut(Object,"create"),K=function(){function t(){}return function(e){if(!St(e))return{};if(j)return j(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function rt(t){var e=this.__data__=new tt(t);this.size=e.size}function nt(t,e,r){(void 0!==r&&!gt(t[e],r)||void 0===r&&!(e in t))&&at(t,e,r)}function ot(t,e,r){var n=t[e];O.call(t,e)&&gt(n,r)&&(void 0!==r||e in t)||at(t,e,r)}function it(t,e){for(var r=t.length;r--;)if(gt(t[r][0],e))return r;return-1}function at(t,e,r){"__proto__"==e&&U?U(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}X.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},X.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},X.prototype.get=function(t){var e=this.__data__;if(J){var r=e[t];return r===n?void 0:r}return O.call(e,t)?e[t]:void 0},X.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:O.call(e,t)},X.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=J&&void 0===e?n:e,this},tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(t){var e=this.__data__,r=it(e,t);return!(r<0||(r==e.length-1?e.pop():q.call(e,r,1),--this.size,0))},tt.prototype.get=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]},tt.prototype.has=function(t){return it(this.__data__,t)>-1},tt.prototype.set=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},et.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Y||tt),string:new X}},et.prototype.delete=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e},et.prototype.get=function(t){return pt(this,t).get(t)},et.prototype.has=function(t){return pt(this,t).has(t)},et.prototype.set=function(t,e){var r=pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},rt.prototype.clear=function(){this.__data__=new tt,this.size=0},rt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},rt.prototype.get=function(t){return this.__data__.get(t)},rt.prototype.has=function(t){return this.__data__.has(t)},rt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tt){var n=r.__data__;if(!Y||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(t,e),this.size=r.size,this};function st(t){return null==t?void 0===t?u:d:H&&H in Object(t)?function(t){var e=O.call(t,H),r=t[H];try{t[H]=void 0;var n=!0}catch(t){}var o=V.call(t);return n&&(e?t[H]=r:delete t[H]),o}(t):function(t){return V.call(t)}(t)}function lt(t){return Mt(t)&&st(t)==i}function dt(t,e,r,n,o){t!==e&&function(t,e,r){for(var n=-1,o=Object(t),i=r(t),a=i.length;a--;){var s=i[++n];if(!1===e(o[s],s,o))break}}(e,(function(i,a){if(o||(o=new rt),St(i))!function(t,e,r,n,o,i,a){var s=ft(t,r),l=ft(e,r),d=a.get(l);if(d)nt(t,r,d);else{var p,u,h,m,f,b=i?i(s,l,r+"",t,e,a):void 0,g=void 0===b;if(g){var y=vt(l),v=!y&&Ct(l),x=!y&&!v&&At(l);b=l,y||v||x?vt(s)?b=s:Mt(f=s)&&xt(f)?b=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(s):v?(g=!1,b=function(t,e){return t.slice()}(l)):x?(g=!1,m=new(h=(p=l).buffer).constructor(h.byteLength),new $(m).set(new $(h)),u=m,b=new p.constructor(u,p.byteOffset,p.length)):b=[]:function(t){if(!Mt(t)||st(t)!=c)return!1;var e=F(t);if(null===e)return!0;var r=O.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&z.call(r)==D}(l)||yt(l)?(b=s,yt(s)?b=function(t){return function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=void 0;void 0===l&&(l=t[s]),o?at(r,s,l):ot(r,s,l)}return r}(t,Tt(t))}(s):St(s)&&!wt(s)||(b=function(t){return"function"!=typeof t.constructor||mt(t)?{}:K(F(t))}(l))):g=!1}g&&(a.set(l,b),o(b,l,n,i,a),a.delete(l)),nt(t,r,b)}}(t,e,a,r,dt,n,o);else{var s=n?n(ft(t,a),i,a+"",t,e,o):void 0;void 0===s&&(s=i),nt(t,a,s)}}),Tt)}var ct=U?function(t,e){return U(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:_t;function pt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ut(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!St(t)||function(t){return!!N&&N in t}(t))&&(wt(t)?W:h).test(function(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}function ht(t,e){var r=typeof t;return!!(e=null==e?o:e)&&("number"==r||"symbol"!=r&&m.test(t))&&t>-1&&t%1==0&&t<e}function mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}function ft(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var bt=function(t){var e=0,r=0;return function(){var n=Q(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ct);function gt(t,e){return t===e||t!=t&&e!=e}var yt=lt(function(){return arguments}())?lt:function(t){return Mt(t)&&O.call(t,"callee")&&!P.call(t,"callee")},vt=Array.isArray;function xt(t){return null!=t&&kt(t.length)&&!wt(t)}var Ct=G||function(){return!1};function wt(t){if(!St(t))return!1;var e=st(t);return e==s||e==l||e==a||e==p}function kt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function St(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Mt(t){return null!=t&&"object"==typeof t}var At=T?function(t){return function(e){return t(e)}}(T):function(t){return Mt(t)&&kt(t.length)&&!!f[st(t)]};function Tt(t){return xt(t)?function(t,e){var r=vt(t),n=!r&&yt(t),o=!r&&!n&&Ct(t),i=!r&&!n&&!o&&At(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=s.length;for(var d in t)!e&&!O.call(t,d)||a&&("length"==d||o&&("offset"==d||"parent"==d)||i&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||ht(d,l))||s.push(d);return s}(t,!0):function(t){if(!St(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=mt(t),r=[];for(var n in t)("constructor"!=n||!e&&O.call(t,n))&&r.push(n);return r}(t)}var Et,It=(Et=function(t,e,r){dt(t,e,r)},function(t,e){return bt(function(t,e,r){return e=Z(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Z(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(a),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,s)}}(t,e,_t),t+"")}((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Et.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!St(r))return!1;var n=typeof e;return!!("number"==n?xt(r)&&ht(e,r.length):"string"==n&&e in r)&&gt(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var a=e[r];a&&Et(t,a,r)}return t})));function _t(t){return t}t.exports=It},6851:(t,e,r)=>{"use strict";var n=r(5171),o=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(t){for(var e=[],r=0,a=t.length;r<a;r++){var s=t[r];n(s)?e=o.call(e,i.call(s)):e.push(s)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},1747:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZD0iTTEgMTZDMSAxNy4xIDEuOSAxOCAzIDE4SDExQzEyLjEgMTggMTMgMTcuMSAxMyAxNlY0SDFWMTZaTTMgNkgxMVYxNkgzVjZaTTEwLjUgMUw5LjUgMEg0LjVMMy41IDFIMFYzSDE0VjFIMTAuNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPiA8L3N2Zz4g"},8152:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZD0iTTEwLjAwMDIgMC45OTIxNDlDMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNSAxMC4wMDAyIDEuMDE2MTVMOC4yMjQxOSAzLjAwODE1SDIuOTkyMTlDMi40NjQxOSAzLjAwODE1IDIuMDA4MTkgMy40NDAxNSAyLjAwODE5IDMuOTkyMTVWMTIuMDA4MkMyLjAwODE5IDEyLjUzNjIgMi40NDAxOSAxMi45OTIyIDIuOTkyMTkgMTIuOTkyMkg1LjUzNjE5QzUuODQ4MTkgMTMuMDQwMiA2LjE2MDE5IDEzLjA0MDIgNi40NzIxOSAxMi45OTIySDExLjAwODJDMTEuNTM2MiAxMi45OTIyIDExLjk5MjIgMTIuNTYwMiAxMS45OTIyIDEyLjAwODJWNy43ODQxNkwxMy45MzYyIDUuNjI0MTVMMTQuMDA4MiA1LjY3MjE1VjExLjk4NDJDMTQuMDA4MiAxMy42NjQyIDEyLjY2NDIgMTUuMDA4MiAxMS4wMDgyIDE1LjAwODJIMy4wMTYxOUMxLjMzNjE5IDE1LjAwODIgLTAuMDA3ODEyNSAxMy42NjQyIC0wLjAwNzgxMjUgMTEuOTg0MlYzLjk5MjE1Qy0wLjAwNzgxMjUgMi4zMzYxNSAxLjMzNjE5IDAuOTkyMTQ5IDMuMDE2MTkgMC45OTIxNDlIMTAuMDAwMlpNMTEuMjcyMiAyLjYyNDE1TDEyLjYxNjIgNC4xMTIxNUw3LjcyMDE5IDkuNjgwMTZDNy41MDQxOSA5LjkyMDE2IDYuODMyMTkgMTAuMjMyMiA1LjY4MDE5IDEwLjYxNjJDNS42NTYxOSAxMC42NDAyIDUuNjA4MTkgMTAuNjQwMiA1LjU2MDE5IDEwLjYxNjJDNS40NjQxOSAxMC41OTIyIDUuMzkyMTkgMTAuNDcyMiA1LjQ0MDE5IDEwLjM3NjJDNS43NTIxOSA5LjI0ODE2IDYuMDQwMTkgOC41NTIxNiA2LjI1NjE5IDguMzEyMTZMMTEuMjcyMiAyLjYyNDE1Wk0xMS45MjAyIDEuODU2MTVMMTMuMjg4MiAwLjMyMDE0OUMxMy42NDgyIC0wLjA4Nzg1MTYgMTQuMjcyMiAtMC4xMTE4NTIgMTQuNjgwMiAwLjI3MjE0OUMxNS4wODgyIDAuNjMyMTQ5IDE1LjExMjIgMS4yODAxNSAxNC43NTIyIDEuNjg4MTVMMTMuMjY0MiAzLjM2ODE1TDExLjkyMDIgMS44NTYxNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPiA8L3N2Zz4g"},853:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4gPC9zdmc+IA=="}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{darkTheme:()=>Hc,defaultTheme:()=>qc,themeToStyle:()=>ht});var t={};r.r(t),r.d(t,{default:()=>be,vars:()=>ge});var e={};r.r(e),r.d(e,{default:()=>Ue,refs:()=>qe,vars:()=>He});var o={};r.r(o),r.d(o,{default:()=>Qe,textField:()=>Ze,vars:()=>Ge});var i={};r.r(i),r.d(i,{default:()=>cr,vars:()=>dr});var a={};r.r(a),r.d(a,{default:()=>mr,vars:()=>hr});var s={};r.r(s),r.d(s,{default:()=>yr,vars:()=>gr});var l={};r.r(l),r.d(l,{default:()=>_r,vars:()=>Ir});var d={};r.r(d),r.d(d,{default:()=>Gr,vars:()=>Hr});var c={};r.r(c),r.d(c,{default:()=>ln,vars:()=>sn});var p={};r.r(p),r.d(p,{default:()=>yn,vars:()=>vn});var u={};r.r(u),r.d(u,{default:()=>wn,vars:()=>Cn});var h={};r.r(h),r.d(h,{default:()=>Sn,vars:()=>kn});var m={};r.r(m),r.d(m,{default:()=>An,vars:()=>Mn});var f={};r.r(f),r.d(f,{default:()=>zn,vars:()=>Ln});var b={};r.r(b),r.d(b,{default:()=>Ci,vars:()=>xi});var g={};r.r(g),r.d(g,{default:()=>Si,vars:()=>ki});var y={};r.r(y),r.d(y,{default:()=>Bi,vars:()=>Ri});var v={};r.r(v),r.d(v,{default:()=>ra,vars:()=>ea});var x={};r.r(x),r.d(x,{default:()=>ca,vars:()=>da});var C={};r.r(C),r.d(C,{default:()=>ba,vars:()=>ga});var w={};r.r(w),r.d(w,{comboBox:()=>za,default:()=>Oa,vars:()=>La});var k={};r.r(k),r.d(k,{default:()=>Ba,vars:()=>Wa});var S={};r.r(S),r.d(S,{default:()=>es,vars:()=>ts});var M={};r.r(M),r.d(M,{default:()=>ms,vars:()=>hs});var A={};r.r(A),r.d(A,{default:()=>Rs,vars:()=>Bs});var T={};r.r(T),r.d(T,{default:()=>Js,vars:()=>Ys});var E={};r.r(E),r.d(E,{default:()=>nl,vars:()=>rl});var I={};r.r(I),r.d(I,{default:()=>xl,vars:()=>vl});var _={};r.r(_),r.d(_,{default:()=>Ml,vars:()=>Sl});var L={};r.r(L),r.d(L,{default:()=>_l,vars:()=>Ll});var z={};r.r(z),r.d(z,{default:()=>Zl,grid:()=>Gl,vars:()=>Ul});var O={};r.r(O),r.d(O,{default:()=>ed,vars:()=>Xl});var N={};r.r(N),r.d(N,{default:()=>Cd,multiSelectComboBox:()=>xd,vars:()=>vd});var V={};r.r(V),r.d(V,{default:()=>Td,vars:()=>Ad});var D={};r.r(D),r.d(D,{default:()=>Dd,vars:()=>Wd});var W={};r.r(W),r.d(W,{default:()=>tc,mappingsField:()=>Xd,vars:()=>Kd});var B={};r.r(B),r.d(B,{default:()=>gc,vars:()=>bc});var R={};r.r(R),r.d(R,{default:()=>Lc,vars:()=>_c});var $={};r.r($),r.d($,{default:()=>Bc,samlGroupMappings:()=>Wc,vars:()=>Dc});var F={};r.r(F),r.d(F,{default:()=>Fc,vars:()=>$c});var j=r(2378),P=r.n(j);const q="descope",H="host",U=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),G=(...t)=>U(t.filter((t=>!!t)).join("-")),Z=(...t)=>e=>t.reduceRight(((t,e)=>e(t)),e),Q=t=>"function"==typeof t,Y=(t,e,{excludeAttrs:r=[],includeAttrs:n=[]})=>{const o=Array.from(t.attributes).filter((t=>!r.includes(t.name)&&(!n.length||n.includes(t.name)))).map((t=>t.name));e(o),new MutationObserver((t=>{t.forEach((t=>{"attributes"!==t.type||r.includes(t.attributeName)||n.length&&!n.includes(t.attributeName)||e([t.attributeName])}))})).observe(t,{attributes:!0})},J=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver((t=>{t.forEach((t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)}))})).observe(t,{childList:!0,characterData:!0,subtree:!0})},K=(t,e,r={})=>n=>{n.forEach((n=>{const o=r[n]||n,i=t.getAttribute(n);null!==i?e.getAttribute(o)!==i&&e.setAttribute(o,i):e.removeAttribute(o)}))},X=(t,e,r)=>{Y(t,K(t,e),r),Y(e,K(e,t),r)},tt=t=>G(q,t),et=(...t)=>`--${G(...t)}`,rt=(t,e,r={})=>{Y(t,K(t,e,r.mapAttrs),r)},nt=(t,e,r=[])=>{if(!r.length)return;const n=r.reduce(((e,r)=>Object.assign(e,{[r]:{get:()=>t[r],set(e){t[r]=e}}})),{});Object.defineProperties(e,n)},ot=new class{static mountOnPropName="DescopeThemeManager";#t={};#e="light";#r=new Set;#n(){this.#r.forEach((t=>t?.()))}get currentThemeName(){return this.#e}set currentThemeName(t){this.#e=t,this.#n()}get currentTheme(){return this.#t[this.currentThemeName]}onCurrentThemeChange(t){return this.#r.add(t),()=>{this.#r.delete(t)}}set themes(t){this.#t=t,this.#n()}get hasThemes(){return!!Object.keys(this.#t).length}},it=t=>et(q,...t),at=(t,e,r)=>{const n=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return n.reduce(((t,e,o)=>(void 0===t[e]&&(t[e]={}),o===n.length-1&&(t[e]=r),t[e])),t),t},st=(t,e,r)=>Object.entries(t).reduce(((t,[n,o])=>o?.constructor!==Object?P()(t,r(e.concat(n),o)):P()(t,st(o,[...e,n],r))),{}),lt=t=>{switch(!0){case Array.isArray(t):return t.map((t=>t.includes(" ")?`"${t}"`:t)).join(", ");case(t=>{try{return new URL(t),!0}catch(t){return!1}})(t):return`url(${t})`;default:return t}},dt=(t,e)=>st(t,[],(t=>at({},t,`var(${it(e?[e,...t]:t)})`))),ct=(t,e="")=>{const r=Object.entries((t=>st(t,[],((t,e)=>({[it(t)]:lt(e)}))))(t)).reduce(((t,e)=>`${t}${e.join(":")};\n`),"");return e?`*[data-theme="${e}"] {${r}}`:r},pt=t=>Object.entries(t).reduce(((t,[e,r])=>`${t}${e} { \n${Object.entries(r).map((([t,e])=>`${t}: ${e}`)).join(";\n")} \n}\n\n`),""),ut=t=>{const e=(t=>st(t,[],((t,e)=>{const[r,...n]=t,o=n.pop(),i=tt(r);"undefined"===o&&console.warn(i,`theme value: "${e}" is mapped to an invalid property`);let a=H;n[0]&&n[0].startsWith("@")&&(a=n.shift());const s=n.reduce(((t,e,r)=>{if(e.startsWith("_"))return`${t}[${U(e.replace(/^_/,""))}="true"]`;const o=n[r+1];return"string"!=typeof o||o.startsWith("_")?(console.error("theme generator",`your theme structure is invalid, attribute "${e}" is followed by "${o}" which is not allowed`),t):`${t}[${U(e)}="${n.splice(r+1,1).join("")}"]`}),"");return{[i]:{[a]:{[":host"+(s?`(${s})`:"")]:{[o]:lt(e)}}}}})))(t);return Object.keys(e).reduce(((t,r)=>{const n=e[r];return Object.assign(t,{[r]:Object.keys(n).reduce(((t,e)=>Object.assign(t,{[e]:pt(n[e])})),{})})}),{})},ht=({globals:t,components:e},r)=>({globals:ct(t,r),components:ut(e)}),mt=t=>`var(${t})`,ft=(t,e)=>{const r=st(t,[],((t,r)=>{const n=[...t],o=n.splice(-1),i=et(e,o),a={[o]:i},s={[o]:mt(i)};return{theme:at({},[...n,i],r),useVars:s,vars:a}}));return[r.theme,r.useVars,r.vars]};var bt=r(6767),gt=r.n(bt);const yt=.4,vt=.25,xt=.1,Ct=(t,e)=>t.darken(e).hex(),wt=t=>{const e=t.isDark();return t.mix(gt()(e?"white":"black"),1).saturate(1).hex()},kt=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),St=t=>t.luminosity()<.01,Mt=t=>t.luminosity()>.99,At=(t,e)=>"dark"===e?Mt(t)?Ct(t,vt):kt(t,yt):St(t)?kt(t,vt):Ct(t,yt),Tt=(t,e)=>"dark"===e?St(t)?kt(t,vt):Ct(t,yt):Mt(t)?Ct(t,vt):kt(t,yt),Et=(t,e)=>"dark"===e?St(t)?kt(t,xt):Ct(t,.8):Mt(t)?Ct(t,xt):kt(t,.8),It=(t,e)=>{const r=new(gt())(t.main||t);return{main:r.hex(),dark:t.dark||At(r,e),light:t.light||Tt(r,e),highlight:t.highlight||Et(r,e),contrast:t.contrast||wt(r)}},_t=(t=>Object.keys(t).reduce(((e,r)=>{const n=t[r];return Object.assign(e,{[r]:It(n)})}),{}))({surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"}}),Lt={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},zt=dt({fonts:Lt}).fonts,Ot={colors:_t,typography:{h1:{font:zt.font1.family,weight:"900",size:"48px"},h2:{font:zt.font1.family,weight:"800",size:"38px"},h3:{font:zt.font1.family,weight:"600",size:"28px"},subtitle1:{font:zt.font2.family,weight:"500",size:"22px"},subtitle2:{font:zt.font2.family,weight:"400",size:"20px"},body1:{font:zt.font1.family,weight:"400",size:"16px"},body2:{font:zt.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:Lt,direction:"ltr"},Nt=Ot;((t,e)=>{st(t,[],(t=>at({},t,it(t))))})(Ot);class Vt{constructor(){this.styleMap=new Map}add(t,e,r){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:r}])}toString(){return Array.from(this.styleMap.entries()).reduce(((t,[e,r])=>`${t}${e} { \n${r.map((({property:t,value:e})=>`${t}: ${e}`)).join(";\n")} \n}\n\n`),"")}}const Dt=(t,e)=>Object.keys(e).reduce(((e,r)=>Object.assign(e,{[r]:et(t,r)})),{}),Wt=({mappings:t={},componentNameOverride:e=""})=>r=>{const n=e||r.componentName;return class extends r{static get cssVarList(){return{...r.cssVarList,...Dt(n,{...t})}}#o;#i;#a;#s;#l;#d;#c;#p;#u;constructor({getRootElement:e,componentNameSuffix:r="",themeSection:n=H,baseSelector:o}={}){super(),this.#s=r,this.#l=n,this.#c=o??this.baseSelector,this.#u=e,this.#p=Object.keys(t).map((t=>G("st",r,t)))}get#h(){return ot.currentTheme?.[n]||""}#m(){this.#i.innerHTML=this.#h[this.#l]}#f(){this.#i=document.createElement("style"),this.#i.id=`style-mixin-theme__${n}`,this.#d.prepend(this.#i),this.#a=ot.onCurrentThemeChange(this.#m.bind(this)),this.#m()}#b(){if(this.#p.length){this.#o=document.createElement("style"),this.#o.id=`style-mixin-overrides__${n}`;const e=(t=n,Array(3).fill(`.${t}`).join(""));this.#o.innerText=`:host(${e}) {}`,this.#d.append(this.#o)}var t}#g(t,e){const r=this.#o?.sheet?.cssRules[0].style;if(!r)return;const o=et(n,t.replace(new RegExp("^st-"),""));e?r?.setProperty(o,e):(r?.removeProperty(o),this.removeAttribute(t))}#y(t=[]){let e=!1;t.forEach((t=>{this.#p.includes(t)&&(this.#g(t,this.getAttribute(t)),e=!0)})),e&&(this.#o.innerHTML=this.#o?.sheet?.cssRules[0].cssText)}#v(){if(Object.keys(t).length){const e=document.createElement("style");e.id=`style-mixin-mappings__${n}`,e.innerHTML=((t,e,r)=>{const n=new Vt;return Object.keys(r).forEach((o=>{const i=((t,e)=>{const r={selector:"",property:U(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map((t=>({...r,...t}))):[{...r,...e}]:[r]})(o,r[o]),a=et(t,o);i.forEach((({selector:t,property:r,important:o,fallback:i})=>{n.add(((t="",e="")=>Q(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),Q(r)?r():r,((t,e)=>`var(${t}${e?`, ${e}`:""})`)(a,i)+(o?"!important":""))}))})),n.toString()})(G(n,this.#s),this.#c,t),this.#d.prepend(e)}}#x(t){(this.#d.classList||this.#d.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#d=await(this.#u?.(this))||this.shadowRoot,this.#x(n),this.#v(),this.#f(),this.#b(),Y(this,this.#y.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#a?.()}}},Bt=t=>class extends t{#C=null;static get observedAttributes(){return[...t.observedAttributes||[],"draggable"]}constructor(){super(),this.#C=document.createElement("style"),this.#C.innerText="* { cursor: inherit!important }"}#w(t){t?this.shadowRoot.appendChild(this.#C):this.#C.remove()}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",(t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const r=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",r),t.target.removeEventListener("dragend",r)};t.target.addEventListener("mouseup",r,{once:!0}),t.target.addEventListener("dragend",r,{once:!0})}})),super.init?.()}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"draggable"===t&&this.#w("true"===r)}},Rt=t=>class extends t{#k(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#k()}};function $t(t,e={}){const r=new Event(t,e);this[`on${t}`]?.(r),this.dispatchEvent(r)}const Ft=t=>class extends t{#S=$t.bind(this,"components-context");updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},jt=t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mouseover",(t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",(()=>this.removeAttribute("hover")),{once:!0})}))}},Pt=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options"],qt=t=>class extends t{init(){super.init?.(),Y(this,(t=>t.forEach((t=>{const e=this.getAttribute(t);(t=>Pt.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}))),{})}},Ht=({componentName:t,baseSelector:e=""})=>{class r extends HTMLElement{static get componentName(){return t}#M;#A=!0;get baseSelector(){return e}get baseElement(){return this.#M??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#M||console.warn("missing base element for component",this.localName),this.#M}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#A&&(this.#A=!1,this.init?.())}}return Z(Rt,jt,qt,Ft)(r)},Ut=({componentName:t,wrappedEleName:e,slots:r=[],style:n,excludeAttrsSync:o=[],includeAttrsSync:i=[],includeForwardProps:a=[],delegatesFocus:s=!0})=>{class l extends(Ht({componentName:t,baseSelector:e})){#T=$t.bind(this,"blur");#E=$t.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:s}).innerHTML=`\n\t\t\t<style id="create-proxy">${Q(n)?n():n}</style>\n\t\t\t<${e}>\n\t\t\t${r.map((t=>`<slot ${t?`name="${t}" slot="${t}"`:""} ></slot>`)).join("")}\n\t\t\t</${e}>\n\t\t`}init(){super.init?.(),this.baseElement.addEventListener("blur",(t=>{this.#T()})),this.baseElement.addEventListener("focus",(t=>{this.#E()})),nt(this.baseElement,this,a),X(this.baseElement,this,{excludeAttrs:o,includeAttrs:i})}}return l};!function(){const t=new WeakMap,e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,d=new WeakMap,c=new WeakMap,p=new WeakMap,u=new WeakMap,h=new WeakMap,m=new WeakMap,f={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function b(t){const e=n.get(t),{form:r}=e;L(t,r,e),A(t,e.labels)}const g=(t,e=!1)=>{const r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>n.has(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let o=r.nextNode();const i=!e||t.disabled;for(;o;)o.formDisabledCallback&&i&&k(o,t.disabled),o=r.nextNode()},y={attributes:!0,attributeFilter:["disabled","name"]},v=D()?new MutationObserver((t=>{for(const e of t){const t=e.target;if("disabled"===e.attributeName&&(t.constructor.formAssociated?k(t,t.hasAttribute("disabled")):"fieldset"===t.localName&&g(t)),"name"===e.attributeName&&t.constructor.formAssociated){const e=n.get(t),r=l.get(t);e.setFormValue(r)}}})):{};function x(t){t.forEach((t=>{const{addedNodes:e,removedNodes:o}=t,i=Array.from(e),l=Array.from(o);i.forEach((t=>{if(n.has(t)&&t.constructor.formAssociated&&b(t),d.has(t)){const e=d.get(t);Object.keys(f).filter((t=>null!==e[t])).forEach((r=>{t.setAttribute(f[r],e[r])})),d.delete(t)}if(m.has(t)){const e=m.get(t);t.setAttribute("internals-valid",e.validity.valid.toString()),t.setAttribute("internals-invalid",(!e.validity.valid).toString()),t.setAttribute("aria-invalid",(!e.validity.valid).toString()),m.delete(t)}if("form"===t.localName){const e=s.get(t),r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>!n.has(t)||!t.constructor.formAssociated||e&&e.has(t)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let o=r.nextNode();for(;o;)b(o),o=r.nextNode()}"fieldset"===t.localName&&(v.observe?.(t,y),g(t,!0))})),l.forEach((t=>{const e=n.get(t);e&&r.get(e)&&S(e),a.has(t)&&a.get(t).disconnect()}))}))}function C(t){t.forEach((t=>{const{removedNodes:e}=t;e.forEach((e=>{const r=u.get(t.target);n.has(e)&&V(e),r.disconnect()}))}))}!D()||new MutationObserver(x);const w={childList:!0,subtree:!0},k=(t,e)=>{t.toggleAttribute("internals-disabled",e),e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled"),t.formDisabledCallback&&t.formDisabledCallback.apply(t,[e])},S=t=>{r.get(t).forEach((t=>{t.remove()})),r.set(t,[])},M=(t,e)=>{const n=document.createElement("input");return n.type="hidden",n.name=t.getAttribute("name"),t.after(n),r.get(e).push(n),n},A=(t,e)=>{if(e.length){Array.from(e).forEach((e=>e.addEventListener("click",t.click.bind(t))));let r=e[0].id;e[0].id||(r=`${e[0].htmlFor}_Label`,e[0].id=r),t.setAttribute("aria-labelledby",r)}},T=t=>{const e=Array.from(t.elements).filter((t=>!t.tagName.includes("-")&&t.validity)).map((t=>t.validity.valid)),r=s.get(t)||[],o=[...e,...Array.from(r).filter((t=>t.isConnected)).map((t=>n.get(t).validity.valid))].includes(!1);t.toggleAttribute("internals-invalid",o),t.toggleAttribute("internals-valid",!o)},E=t=>{T(z(t.target))},I=t=>{T(z(t.target))},_=t=>{const e=s.get(t.target);e&&e.size&&e.forEach((t=>{t.constructor.formAssociated&&t.formResetCallback&&t.formResetCallback.apply(t)}))},L=(t,e,r)=>{if(e){const o=s.get(e);if(o)o.add(t);else{const r=new Set;r.add(t),s.set(e,r),(t=>{const e=["button[type=submit]","input[type=submit]","button:not([type])"].map((t=>`${t}:not([disabled])`)).map((e=>`${e}:not([form])${t.id?`,${e}[form='${t.id}']`:""}`)).join(",");t.addEventListener("click",(r=>{if(r.target.closest(e)){const e=s.get(t);if(t.noValidate)return;e.size&&Array.from(e).reverse().map((t=>n.get(t).reportValidity())).includes(!1)&&r.preventDefault()}}))})(e),e.addEventListener("reset",_),e.addEventListener("input",E),e.addEventListener("change",I)}i.set(e,{ref:t,internals:r}),t.constructor.formAssociated&&t.formAssociatedCallback&&setTimeout((()=>{t.formAssociatedCallback.apply(t,[e])}),0),T(e)}},z=t=>{let e=t.parentNode;return e&&"FORM"!==e.tagName&&(e=z(e)),e},O=(t,e,r=DOMException)=>{if(!t.constructor.formAssociated)throw new r(e)},N=(t,e,r)=>{const o=s.get(t);return o&&o.size&&o.forEach((t=>{n.get(t)[r]()||(e=!1)})),e},V=t=>{if(t.constructor.formAssociated){const e=n.get(t),{labels:r,form:o}=e;A(t,r),L(t,o,e)}};function D(){return"undefined"!=typeof MutationObserver}class W{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const B=new WeakMap;function R(t,e){t.toggleAttribute(e,!0),t.part&&t.part.add(e)}class $ extends Set{static get isPolyfilled(){return!0}constructor(t){if(super(),!t||!t.tagName||-1===t.tagName.indexOf("-"))throw new TypeError("Illegal constructor");B.set(this,t)}add(t){if(!/^--/.test(t)||"string"!=typeof t)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${t} must start with '--'.`);const e=super.add(t),r=B.get(this),n=`state${t}`;return r.isConnected?R(r,n):setTimeout((()=>{R(r,n)})),e}clear(){for(let[t]of this.entries())this.delete(t);super.clear()}delete(t){const e=super.delete(t),r=B.get(this);return r.isConnected?(r.toggleAttribute(`state${t}`,!1),r.part&&r.part.remove(`state${t}`)):setTimeout((()=>{r.toggleAttribute(`state${t}`,!1),r.part&&r.part.remove(`state${t}`)})),e}}function F(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}var j;class P{constructor(t){j.set(this,void 0),function(t,e,r,n,o){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,r)}(this,j,t);for(let e=0;e<t.length;e++){let r=t[e];this[e]=r,r.hasAttribute("name")&&(this[r.getAttribute("name")]=r)}Object.freeze(this)}get length(){return F(this,j,"f").length}[(j=new WeakMap,Symbol.iterator)](){return F(this,j,"f")[Symbol.iterator]()}item(t){return null==this[t]?null:this[t]}namedItem(t){return null==this[t]?null:this[t]}}class q{static get isPolyfilled(){return!0}constructor(o){if(!o||!o.tagName||-1===o.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const i=o.getRootNode(),a=new W;this.states=new $(o),t.set(this,o),e.set(this,a),n.set(o,this),((t,e)=>{for(let r in f){e[r]=null;let n=null;const o=f[r];Object.defineProperty(e,r,{get:()=>n,set(r){n=r,t.isConnected?t.setAttribute(o,r):d.set(t,e)}})}})(o,this),((t,e)=>{r.set(e,[]),v.observe?.(t,y)})(o,this),Object.seal(this),i instanceof DocumentFragment&&(t=>{const e=new MutationObserver(C);e.observe?.(t,{childList:!0}),u.set(t,e)})(i)}checkValidity(){const r=t.get(this);if(O(r,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const n=e.get(this);if(!n.valid){const t=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});r.dispatchEvent(t)}return n.valid}get form(){const e=t.get(this);let r;return O(e,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===e.constructor.formAssociated&&(r=z(e)),r}get labels(){const e=t.get(this);O(e,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const r=e.getAttribute("id"),n=e.getRootNode();return n&&r?n.querySelectorAll(`[for="${r}"]`):[]}reportValidity(){const e=t.get(this);if(O(e,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const r=this.checkValidity(),n=p.get(this);if(n&&!e.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!r&&n&&(e.focus(),n.focus()),r}setFormValue(e){const r=t.get(this);O(r,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),S(this),null==e||e instanceof FormData?null!=e&&e instanceof FormData&&Array.from(e).reverse().forEach((([t,e])=>{if("string"==typeof e){const n=M(r,this);n.name=t,n.value=e}})):r.getAttribute("name")&&(M(r,this).value=e),l.set(r,e)}setValidity(r,n,i){const a=t.get(this);if(O(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!r)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");p.set(this,i);const s=e.get(this),l={};for(const t in r)l[t]=r[t];var d;0===Object.keys(l).length&&((d=s).badInput=!1,d.customError=!1,d.patternMismatch=!1,d.rangeOverflow=!1,d.rangeUnderflow=!1,d.stepMismatch=!1,d.tooLong=!1,d.tooShort=!1,d.typeMismatch=!1,d.valid=!0,d.valueMissing=!1);const c={...s,...l};delete c.valid;const{valid:u}=((t,e,r)=>(t.valid=(t=>{let e=!0;for(let r in t)"valid"!==r&&!1!==t[r]&&(e=!1);return e})(e),Object.keys(e).forEach((r=>t[r]=e[r])),r&&T(r),t))(s,c,this.form);if(!u&&!n)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");o.set(this,u?"":n),a.isConnected?(a.toggleAttribute("internals-invalid",!u),a.toggleAttribute("internals-valid",u),a.setAttribute("aria-invalid",`${!u}`)):m.set(a,this)}get shadowRoot(){const e=t.get(this);return c.get(e)||null}get validationMessage(){const e=t.get(this);return O(e,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get validity(){const r=t.get(this);return O(r,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),e.get(this)}get willValidate(){const e=t.get(this);return O(e,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(e.disabled||e.hasAttribute("disabled")||e.hasAttribute("readonly"))}}if(function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class t extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const e=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(e,t);const r=new t;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every((t=>t in r.internals))}()){if("undefined"!=typeof window&&!window.CustomStateSet){window.CustomStateSet=$;const H=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(...t){const e=H.call(this,t);return e.states=new $(this),e}}}else{if("undefined"!=typeof window&&(window.ElementInternals=q),"undefined"!=typeof CustomElementRegistry){const U=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(t,e,r){if(e.formAssociated){const t=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){h.has(this)||(h.set(this,!0),this.hasAttribute("disabled")&&k(this,!0)),null!=t&&t.apply(this),V(this)}}U.call(this,t,e,r)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new q(this)}),"undefined"!=typeof Element){function G(...t){const e=Z.apply(this,t);if(c.set(this,e),D()){const t=new MutationObserver(x);window.ShadyDOM?t.observe(this,w):t.observe(e,w),a.set(this,t)}return e}const Z=Element.prototype.attachShadow;Element.prototype.attachShadow=G}D()&&"undefined"!=typeof document&&new MutationObserver(x).observe(document.documentElement,w),"undefined"!=typeof HTMLFormElement&&function(){const t=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...e){let r=t.apply(this,e);return N(this,r,"checkValidity")};const e=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...t){let r=e.apply(this,t);return N(this,r,"reportValidity")};const{get:r}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...t){const e=r.call(this,...t),n=Array.from(s.get(this)||[]);if(0===n.length)return e;const o=Array.from(e).concat(n).sort(((t,e)=>t.compareDocumentPosition?2&t.compareDocumentPosition(e)?1:-1:0));return new P(o)}})}(),"undefined"==typeof window||window.CustomStateSet||(window.CustomStateSet=$)}}();const Gt=["required","pattern"],Zt=t=>class extends t{static get observedAttributes(){return[...t.observedAttributes||[],...Gt]}static get formAssociated(){return!0}#I;get internals(){return this.#I}set internals(t){this.#I=t}constructor(){super(),this.#I=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}getErrorMessage(t){const{valueMissing:e,patternMismatch:r,typeMismatch:n,stepMismatch:o,tooShort:i,tooLong:a,rangeOverflow:s,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing;case r||n||o||d:return this.getAttribute("data-errormessage-pattern-mismatch")||this.defaultErrorMsgPatternMismatch;case i:return this.getAttribute("data-errormessage-pattern-mismatch-too-short")||this.defaultErrorMsgTooShort;case a:return this.getAttribute("data-errormessage-pattern-mismatch-too-long")||this.defaultErrorMsgTooLong;case l:return this.defaultErrorMsgRangeUnderflow;case s:return this.defaultErrorMsgRangeOverflow;case c:return this.validationMessage;default:return""}}#_(){const t=this.isReadOnly?{}:this.getValidity();this.#I.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#I.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#I.validity.valid}reportValidity(){return this.#I.reportValidity()}get validity(){return this.#I.validity}get validationTarget(){return this.inputElement}setCustomValidity(t){t?this.#I.setValidity({customError:!0},t,this.validationTarget):(this.#I.setValidity({}),this.#_())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#I.form}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),Gt.includes(t)&&this.#_()}init(){super.init?.(),this.addEventListener("change",this.#_),this.addEventListener("invalid",(t=>t.stopPropagation())),this.addEventListener("input",this.#_),setTimeout((()=>this.#_()))}},Qt=["invalid","required"],Yt=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e.localName)return e},Jt=({proxyProps:t=[],inputEvent:e="input",triggerValidationEvents:r=[],proxyParentValidation:n=!1})=>o=>class extends(Zt(o)){static get observedAttributes(){return[...o.observedAttributes||[],...Qt]}#L;#z=$t.bind(this,"change");constructor(){super(),this.#L=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout((()=>{!this.#L&&console.warn(this.localName,"no input was found")}),0)}get inputElement(){if(this.#L)return this.#L;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#L=Yt(t)||Yt(e),this.#L}set inputElement(t){this.#L=t}getValidity(){return this.inputElement?.validity||{}}#O(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#O(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},r.forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.inputElement?.setCustomValidity("")}))})),setTimeout((()=>{(Array.isArray(e)?e:[e]).forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#O()}))})),this.baseElement.addEventListener("change",(()=>{this.#z()})),this.addEventListener("invalid",(()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#O()})),t.forEach((t=>{var e,r;e=this.inputElement,r=t,Object.defineProperty(this,r,{set(t){e[r]=t},get:()=>e[r],configurable:!0})})),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),rt(this,this.inputElement,{includeAttrs:["inputmode"]})})),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,r)=>"function"==typeof t[r]&&"setValidity"===r?(...n)=>{if(3===n.length){const t=n.slice(0,n.length-1);t.push(e.inputElement),e.internals[r](...t)}else e.internals[r](...n);return t[r](...n)}:"function"==typeof t[r]?(...n)=>(e.internals[r](...n),t[r](...n)):t[r]})}}},Kt=t=>Z(Jt(t),Wt({componentNameOverride:tt("input-wrapper")})),Xt=t=>async e=>{const r=await t(e);return new Promise((t=>{let e=0;const n=()=>{if(e>20)return console.error("could not get shadow root for element",r),void t(r);e++,r?.shadowRoot?t(r.shadowRoot):setTimeout(n)};n()}))},te=({name:t,selector:e,mappings:r={},forward:{attributes:n=[],include:o=!0}={}})=>i=>{const a=t||(t=>t.replace(/[^\w\s]/gi,""))(e),s=Wt({mappings:r})(i);return class extends s{static get cssVarList(){return{...s.cssVarList,[a]:Dt(G(i.componentName,"_"+a),r)}}#N;constructor(){const t=Xt((async t=>{const r=t.shadowRoot.querySelector(t.baseSelector);return e?(await Xt((()=>r))(t)).querySelector(e):r}));super({getRootElement:t,componentNameSuffix:"_"+a,themeSection:"@"+a,baseSelector:":host"}),this.#N=t(this).then((t=>t.host))}async#V(){const t=await this.#N;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.();const t=await this.#N;rt(this,t,{[o?"includeAttrs":"excludeAttrs"]:n}),this.#V()}}},ee=t=>class extends t{#z=$t.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",(t=>{t.stopPropagation()})),this.addEventListener("blur",(()=>{this.value!==this.prevValue&&(this.#z(),this.prevValue=this.value)}))}},re=t=>class extends t{init(){this.#D(),super.init?.()}#D(){["blur","focus","focusin","focusout"].forEach((t=>{this.addEventListener(t,(t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()}))}))}handleFocusEventsDispatching(t){let e;t?.forEach((t=>{t?.addEventListener("focusout",(t=>{t.stopImmediatePropagation(),e=setTimeout((()=>{e=null,$t.call(this,"blur"),$t.call(this,"focusout",{bubbles:!0})}))}));const r=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||($t.call(this,"focus"),$t.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",r),t?.addEventListener("focus",r)}))}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",(e=>{t===this.value?e.stopImmediatePropagation():t=this.value}))}},ne=tt("button"),{host:oe,label:ie}={host:{selector:()=>":host"},label:{selector:"::part(label)"}};let ae;const se=Z(Wt({mappings:{hostWidth:{property:"width"},hostHeight:{property:"height"},hostDirection:{...oe,property:"direction"},fontSize:{},fontFamily:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],labelTextColor:{property:"color"},labelTextDecoration:{...ie,property:"text-decoration"},labelSpacing:{...ie,property:"gap"},textAlign:{...ie,property:"justify-content",fallback:"center"}}}),(t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}}),Bt,Rt)(Ut({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${ae}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${se.cssVarList.outlineWidth}) + var(${se.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${se.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${se.cssVarList.hostHeight}) - var(${se.cssVarList.outlineWidth}) - var(${se.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${se.cssVarList.hostWidth}) - var(${se.cssVarList.outlineWidth}) - var(${se.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:ne})),{color:le,fontSize:de}=se.cssVarList;ae=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${le});\n\t\ttop: calc(50% - (var(${de}) / 2));\n\t\tleft: calc(50% - (var(${de}) / 2));\n\t\tborder-width: calc(var(${de}) / 10);\n\t\twidth: var(${de});\n\t\theight: var(${de});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"])::part(prefix),\n\t:host([loading="true"])::part(label) {\n\t\tvisibility: hidden;\n\t}\n`;const ce=dt(Nt),pe=se.cssVarList,ue={primary:ce.colors.primary,secondary:ce.colors.secondary,success:ce.colors.success,error:ce.colors.error,surface:ce.colors.surface},[he,me,fe]=ft({mode:ue},ne),be={...he,[pe.fontFamily]:ce.fonts.font1.family,[pe.cursor]:"pointer",[pe.hostHeight]:"3em",[pe.hostWidth]:"auto",[pe.hostDirection]:ce.direction,[pe.borderRadius]:ce.radius.sm,[pe.borderWidth]:ce.border.xs,[pe.borderStyle]:"solid",[pe.borderColor]:"transparent",[pe.labelSpacing]:"0.25em",[pe.textAlign]:"center",textAlign:{right:{[pe.textAlign]:"right"},left:{[pe.textAlign]:"left"},center:{[pe.textAlign]:"center"}},[pe.verticalPadding]:"1em",[pe.outlineWidth]:Nt.border.sm,[pe.outlineOffset]:"0px",[pe.outlineStyle]:"solid",[pe.outlineColor]:"transparent",size:{xs:{[pe.fontSize]:"12px"},sm:{[pe.fontSize]:"14px"},md:{[pe.fontSize]:"16px"},lg:{[pe.fontSize]:"18px"}},_square:{[pe.hostHeight]:"3em",[pe.hostWidth]:"3em",[pe.verticalPadding]:"0"},_fullWidth:{[pe.hostWidth]:"100%"},_loading:{[pe.cursor]:"wait",[pe.labelTextColor]:me.main},_disabled:{[fe.main]:ce.colors.surface.light,[fe.dark]:ce.colors.surface.dark,[fe.light]:ce.colors.surface.light,[fe.contrast]:ce.colors.surface.main},variant:{contained:{[pe.labelTextColor]:me.contrast,[pe.backgroundColor]:me.main,_hover:{[pe.backgroundColor]:me.dark,_loading:{[pe.backgroundColor]:me.main}},_active:{[pe.backgroundColor]:me.main}},outline:{[pe.labelTextColor]:me.main,[pe.borderColor]:me.main,_hover:{[pe.labelTextColor]:me.dark,[pe.borderColor]:me.dark},_active:{[pe.labelTextColor]:me.main,[pe.borderColor]:me.main}},link:{[pe.labelTextColor]:me.main,_hover:{[pe.labelTextColor]:me.dark,[pe.labelTextDecoration]:"underline"},_active:{[pe.labelTextColor]:me.main}}},_focused:{[pe.outlineColor]:me.light}},ge={...pe,...fe},{host:ye,label:ve,placeholder:xe,requiredIndicator:Ce,inputField:we,input:ke,helperText:Se,errorMessage:Me,disabledPlaceholder:Ae,inputDisabled:Te}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:{selector:"> input:placeholder-shown"},disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ee={fontSize:[{},ye],fontFamily:[ve,we,Se,Me],hostWidth:{...ye,property:"width"},hostMinWidth:{...ye,property:"min-width"},hostDirection:{...ye,property:"direction"},inputBackgroundColor:{...we,property:"background-color"},labelTextColor:[{...ve,property:"color"},{...Ce,property:"color"},{...ve,property:"-webkit-text-fill-color"},{...Ce,property:"-webkit-text-fill-color"}],errorMessageTextColor:{...Me,property:"color"},helperTextColor:{...Se,property:"-webkit-text-fill-color"},inputValueTextColor:[{...we,property:"color"},{...Te,property:"-webkit-text-fill-color"}],inputCaretTextColor:{...ke,property:"color"},labelRequiredIndicator:{...Ce,property:"content"},inputBorderColor:{...we,property:"border-color"},inputBorderWidth:{...we,property:"border-width"},inputBorderStyle:{...we,property:"border-style"},inputBorderRadius:{...we,property:"border-radius"},inputHeight:{...we,property:"height"},inputHorizontalPadding:[{...ke,property:"padding-left"},{...ke,property:"padding-right"}],inputOutlineColor:{...we,property:"outline-color"},inputOutlineStyle:{...we,property:"outline-style"},inputOutlineWidth:{...we,property:"outline-width"},inputOutlineOffset:{...we,property:"outline-offset"},inputTextAlign:{...ke,property:"text-align"},inputPlaceholderColor:[{...xe,property:"color"},{...Ae,property:"-webkit-text-fill-color"}]},Ie=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,_e=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,Le=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,ze=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,Oe=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,Ne=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,Ve=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,De=(t,e)=>`\n ${_e(t)}\n ${ze(t)}\n ${Oe(t)}\n ${Le(t)}\n ${((t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`)(t,e)}\n ${Ve(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`,We=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,Be=tt("text-field"),Re=["type"],$e=Z(Wt({mappings:Ee}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{static get observedAttributes(){return Re.concat(t.observedAttributes||[])}attributeChangedCallback(t,e,r){super.attributeChangeCallback?.(t,e,r),"type"===t&&this.baseElement._setType(r)}}))(Ut({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${$e.cssVarList.inputOutlineWidth}) + var(${$e.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${We("vaadin-text-field")}\n\t\t\t${Ie($e.cssVarList)}\n\t\t\t${De("vaadin-text-field",$e.cssVarList)}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Be})),Fe=tt("input-wrapper"),je=dt(Nt),[Pe,qe,He]=ft({labelTextColor:je.colors.surface.dark,labelFontSize:"14px",valueTextColor:je.colors.surface.contrast,placeholderTextColor:je.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:je.colors.surface.dark,errorMessageTextColor:je.colors.error.main,successMessageTextColor:je.colors.success.main,borderWidth:je.border.xs,borderRadius:je.radius.xs,borderColor:"transparent",outlineWidth:je.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",backgroundColor:je.colors.surface.main,fontFamily:je.fonts.font1.family,direction:je.direction,overlayOpacity:"0.3",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},_fullWidth:{width:"100%"},_focused:{outlineColor:je.colors.surface.light,_invalid:{outlineColor:je.colors.error.main}},_bordered:{outlineWidth:je.border.xs,borderColor:je.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:je.colors.error.main}},_disabled:{labelTextColor:je.colors.surface.light,borderColor:je.colors.surface.light,valueTextColor:je.colors.surface.light,placeholderTextColor:je.colors.surface.light,helperTextColor:je.colors.surface.light,backgroundColor:je.colors.surface.main}},Fe),Ue=Pe,Ge=$e.cssVarList,Ze={[Ge.hostWidth]:qe.width,[Ge.hostMinWidth]:qe.minWidth,[Ge.hostDirection]:qe.direction,[Ge.fontSize]:qe.fontSize,[Ge.fontFamily]:qe.fontFamily,[Ge.labelTextColor]:qe.labelTextColor,[Ge.labelRequiredIndicator]:qe.requiredIndicator,[Ge.errorMessageTextColor]:qe.errorMessageTextColor,[Ge.inputValueTextColor]:qe.valueTextColor,[Ge.inputPlaceholderColor]:qe.placeholderTextColor,[Ge.inputBorderWidth]:qe.borderWidth,[Ge.inputBorderStyle]:qe.borderStyle,[Ge.inputBorderColor]:qe.borderColor,[Ge.inputBorderRadius]:qe.borderRadius,[Ge.inputOutlineWidth]:qe.outlineWidth,[Ge.inputOutlineStyle]:qe.outlineStyle,[Ge.inputOutlineColor]:qe.outlineColor,[Ge.inputOutlineOffset]:qe.outlineOffset,[Ge.inputBackgroundColor]:qe.backgroundColor,[Ge.inputHeight]:qe.inputHeight,[Ge.inputHorizontalPadding]:qe.horizontalPadding,[Ge.helperTextColor]:qe.helperTextColor,textAlign:{right:{[Ge.inputTextAlign]:"right"},left:{[Ge.inputTextAlign]:"left"},center:{[Ge.inputTextAlign]:"center"}}},Qe=Ze,Ye=tt("password"),{host:Je,inputField:Ke,inputElement:Xe,inputElementPlaceholder:tr,revealButtonContainer:er,revealButtonIcon:rr,label:nr,requiredIndicator:or,errorMessage:ir,helperText:ar}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"> input"},inputElementPlaceholder:{selector:"> input:placeholder-shown"},revealButtonContainer:{selector:()=>"::part(reveal-button)"},revealButtonIcon:{selector:()=>"::part(reveal-button)::before"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},sr=Z(Wt({mappings:{hostWidth:{...Je,property:"width"},hostMinWidth:{...Je,property:"min-width"},hostDirection:{...Je,property:"direction"},fontSize:[{},Je],fontFamily:[nr,Ke,ir,ar],inputHeight:{...Ke,property:"height"},inputHorizontalPadding:[{...Xe,property:"padding-left"},{...Xe,property:"padding-right"}],inputBackgroundColor:{...Ke,property:"background-color"},inputBorderStyle:{...Ke,property:"border-style"},inputBorderWidth:{...Ke,property:"border-width"},inputBorderColor:{...Ke,property:"border-color"},inputBorderRadius:{...Ke,property:"border-radius"},inputOutlineColor:{...Ke,property:"outline-color"},inputOutlineStyle:{...Ke,property:"outline-style"},inputOutlineOffset:{...Ke,property:"outline-offset"},inputOutlineWidth:{...Ke,property:"outline-width"},labelTextColor:[{...nr,property:"color"},{...or,property:"color"}],labelRequiredIndicator:{...or,property:"content"},errorMessageTextColor:{...ir,property:"color"},inputValueTextColor:{...Xe,property:"color"},inputPlaceholderTextColor:{...tr,property:"color"},revealButtonOffset:[{...er,property:"margin-right"},{...er,property:"margin-left"}],revealButtonSize:{...er,property:"font-size"},revealButtonColor:{...rr,property:"color"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){this.addEventListener("mousedown",(t=>{if(this.isDraggable&&this.isReadOnly){const e=this.baseElement.querySelector("input"),r=e.getAttribute("type");e.setAttribute("type","text"),setTimeout((()=>e.focus()));const n=o=>{e.setAttribute("type",r),t.target.removeEventListener("mouseup",n),t.target.removeEventListener("dragend",n)};t.target.addEventListener("mouseup",n,{once:!0}),t.target.addEventListener("dragend",n,{once:!0})}})),super.init?.()}}))(Ut({slots:["","suffix"],wrappedEleName:"vaadin-password-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 10em;\n box-sizing: border-box;\n\t\t\t}\n\t\t\t${Ie(sr.cssVarList)}\n\t\t\t${ze("vaadin-password-field")}\n ${We("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n\t\t\t\tmin-height: 0;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\t\t\tvaadin-password-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t[readonly] vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${sr.cssVarList.inputOutlineColor});\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Ye})),lr=dt(Nt),dr=sr.cssVarList,cr={[dr.hostWidth]:qe.width,[dr.hostDirection]:qe.direction,[dr.fontSize]:qe.fontSize,[dr.fontFamily]:qe.fontFamily,[dr.labelTextColor]:qe.labelTextColor,[dr.errorMessageTextColor]:qe.errorMessageTextColor,[dr.inputHorizontalPadding]:qe.horizontalPadding,[dr.inputHeight]:qe.inputHeight,[dr.inputBackgroundColor]:qe.backgroundColor,[dr.labelRequiredIndicator]:qe.requiredIndicator,[dr.inputValueTextColor]:qe.valueTextColor,[dr.inputPlaceholderTextColor]:qe.placeholderTextColor,[dr.inputBorderWidth]:qe.borderWidth,[dr.inputBorderStyle]:qe.borderStyle,[dr.inputBorderColor]:qe.borderColor,[dr.inputBorderRadius]:qe.borderRadius,[dr.inputOutlineWidth]:qe.outlineWidth,[dr.inputOutlineStyle]:qe.outlineStyle,[dr.inputOutlineColor]:qe.outlineColor,[dr.inputOutlineOffset]:qe.outlineOffset,[dr.revealButtonOffset]:lr.spacing.md,[dr.revealButtonSize]:qe.toggleButtonSize,[dr.revealButtonColor]:qe.placeholderTextColor},pr=tt("number-field"),ur=Z(Wt({mappings:Ee}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt)(Ut({slots:["","prefix","suffix"],wrappedEleName:"vaadin-number-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${ur.cssVarList.inputOutlineWidth}) + var(${ur.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${We("vaadin-number-field")}\n\t\t\t${Ie(ur.cssVarList)}\n\t\t\t${De("vaadin-number-field",ur.cssVarList)}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:pr})),hr=ur.cssVarList,mr={[hr.hostWidth]:qe.width,[hr.hostMinWidth]:qe.minWidth,[hr.hostDirection]:qe.direction,[hr.fontSize]:qe.fontSize,[hr.fontFamily]:qe.fontFamily,[hr.labelTextColor]:qe.labelTextColor,[hr.errorMessageTextColor]:qe.errorMessageTextColor,[hr.inputValueTextColor]:qe.valueTextColor,[hr.inputPlaceholderColor]:qe.placeholderTextColor,[hr.inputBorderWidth]:qe.borderWidth,[hr.inputBorderStyle]:qe.borderStyle,[hr.inputBorderColor]:qe.borderColor,[hr.inputBorderRadius]:qe.borderRadius,[hr.inputOutlineWidth]:qe.outlineWidth,[hr.inputOutlineStyle]:qe.outlineStyle,[hr.inputOutlineColor]:qe.outlineColor,[hr.inputOutlineOffset]:qe.outlineOffset,[hr.inputBackgroundColor]:qe.backgroundColor,[hr.labelRequiredIndicator]:qe.requiredIndicator,[hr.inputHorizontalPadding]:qe.horizontalPadding,[hr.inputHeight]:qe.inputHeight},fr=tt("email-field"),br=Z(Wt({mappings:Ee}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{init(){super.init?.(),this.baseElement.setAttribute("pattern","^[\\w\\.\\%\\+\\-]+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$")}}))(Ut({slots:["","suffix"],wrappedEleName:"vaadin-email-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${br.cssVarList.inputOutlineWidth}) + var(${br.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${We("vaadin-email-field")}\n\t\t\t${Ie(br.cssVarList)}\n\t\t\t${De("vaadin-email-field",br.cssVarList)}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:fr})),gr=br.cssVarList,yr={[gr.hostWidth]:qe.width,[gr.hostMinWidth]:qe.minWidth,[gr.hostDirection]:qe.direction,[gr.fontSize]:qe.fontSize,[gr.fontFamily]:qe.fontFamily,[gr.labelTextColor]:qe.labelTextColor,[gr.errorMessageTextColor]:qe.errorMessageTextColor,[gr.inputValueTextColor]:qe.valueTextColor,[gr.labelRequiredIndicator]:qe.requiredIndicator,[gr.inputPlaceholderColor]:qe.placeholderTextColor,[gr.inputBorderWidth]:qe.borderWidth,[gr.inputBorderStyle]:qe.borderStyle,[gr.inputBorderColor]:qe.borderColor,[gr.inputBorderRadius]:qe.borderRadius,[gr.inputOutlineWidth]:qe.outlineWidth,[gr.inputOutlineStyle]:qe.outlineStyle,[gr.inputOutlineColor]:qe.outlineColor,[gr.inputOutlineOffset]:qe.outlineOffset,[gr.inputBackgroundColor]:qe.backgroundColor,[gr.inputHorizontalPadding]:qe.horizontalPadding,[gr.inputHeight]:qe.inputHeight},vr=tt("text-area"),{host:xr,label:Cr,placeholder:wr,inputField:kr,textArea:Sr,requiredIndicator:Mr,helperText:Ar,errorMessage:Tr}={host:{selector:()=>":host"},label:{selector:"::part(label)"},placeholder:{selector:"textarea:placeholder-shown"},inputField:{selector:"::part(input-field)"},textArea:{selector:"> textarea"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Er=Z(Wt({mappings:{hostWidth:{...xr,property:"width"},hostMinWidth:{...xr,property:"min-width"},hostDirection:{...xr,property:"direction"},fontSize:[xr,Sr],fontFamily:[Cr,kr,Ar,Tr],labelTextColor:[{...Cr,property:"color"},{...Mr,property:"color"}],labelRequiredIndicator:{...Mr,property:"content"},errorMessageTextColor:{...Tr,property:"color"},inputBackgroundColor:{...kr,property:"background-color"},inputValueTextColor:{...Sr,property:"color"},inputPlaceholderTextColor:{...wr,property:"color"},inputBorderWidth:{...kr,property:"border-width"},inputBorderStyle:{...kr,property:"border-style"},inputBorderColor:{...kr,property:"border-color"},inputBorderRadius:{...kr,property:"border-radius"},inputOutlineStyle:{...kr,property:"outline-Style"},inputOutlineColor:{...kr,property:"outline-color"},inputOutlineOffset:{...kr,property:"outline-offset"},inputOutlineWidth:{...kr,property:"outline-width"},inputResizeType:{...Sr,property:"resize"},inputMinHeight:{...Sr,property:"min-height"},inputTextAlign:{...Sr,property:"text-align"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt)(Ut({slots:[],wrappedEleName:"vaadin-text-area",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n box-sizing: border-box;\n\t\t\t}\n\t\t\ttextarea {\n\t\t\t\theight: 100%;\n\t\t\t}\n ${We("vaadin-text-area")}\n\t\t\t${Ie(Er.cssVarList)}\n\t\t\t${_e("vaadin-text-area")}\n\t\t\t${Le("vaadin-text-area")}\n\t\t\t${Oe("vaadin-text-area","textarea")}\n\t\t\t${ze("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:vr})),Ir=Er.cssVarList,_r={[Ir.hostWidth]:qe.width,[Ir.hostMinWidth]:qe.minWidth,[Ir.hostDirection]:qe.direction,[Ir.fontSize]:qe.fontSize,[Ir.fontFamily]:qe.fontFamily,[Ir.labelTextColor]:qe.labelTextColor,[Ir.labelRequiredIndicator]:qe.requiredIndicator,[Ir.errorMessageTextColor]:qe.errorMessageTextColor,[Ir.inputBackgroundColor]:qe.backgroundColor,[Ir.inputValueTextColor]:qe.valueTextColor,[Ir.inputPlaceholderTextColor]:qe.placeholderTextColor,[Ir.inputBorderRadius]:qe.borderRadius,[Ir.inputBorderWidth]:qe.borderWidth,[Ir.inputBorderStyle]:qe.borderStyle,[Ir.inputBorderColor]:qe.borderColor,[Ir.inputOutlineWidth]:qe.outlineWidth,[Ir.inputOutlineStyle]:qe.outlineStyle,[Ir.inputOutlineColor]:qe.outlineColor,[Ir.inputOutlineOffset]:qe.outlineOffset,[Ir.inputResizeType]:"vertical",[Ir.inputMinHeight]:"5em",textAlign:{right:{[Ir.inputTextAlign]:"right"},left:{[Ir.inputTextAlign]:"left"},center:{[Ir.inputTextAlign]:"center"}},_readonly:{[Ir.inputResizeType]:"none"}},Lr=(...t)=>Z(Zt,ee,qt,re)(Ht(...t)),zr=tt("boolean-field-internal");Lr({componentName:zr,baseSelector:"div"});const Or=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${zr}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${zr}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(zr),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),rt(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),nt(this.inputElement,this,["checked"]),X(this,this.inputElement,{includeAttrs:["checked"]})}},Nr='\n:host {\n\tdisplay: inline-flex;\n}\n\n\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n.wrapper {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n}\nvaadin-text-field {\n\tposition: relative;\n\tpadding: 0;\n\tdisplay: inline-flex;\n\talign-items: flex-start;\n}\nvaadin-text-field::before {\n\theight: 0;\n\tmargin: 0;\n}\nvaadin-text-field::part(label) {\n position: absolute;\n top: 0;\n}\nvaadin-text-field::part(input-field) {\n\tpadding: 0;\n\tbackground: none;\n\tmin-height: 0;\n}\nvaadin-text-field::part(input-field)::after {\n background: none;\n}\nvaadin-text-field[focus-ring]::part(input-field) {\n\tbox-shadow: none;\n}\n\nvaadin-checkbox [slot="label"] {\n align-self: flex-start;\n padding: 0;\n}\n[required] vaadin-checkbox [slot="label"]:not(:empty) {\n\tpadding-inline-end: 1em;\n}\ndescope-boolean-field-internal {\n -webkit-mask-image: none;\n min-height: initial;\n}\n',Vr=tt("checkbox"),{host:Dr,component:Wr,checkboxElement:Br,checkboxSurface:Rr,checkboxLabel:$r,requiredIndicator:Fr,helperText:jr,errorMessage:Pr}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},qr=Z(Wt({mappings:{hostWidth:{...Dr,property:"width"},hostDirection:{...Dr,property:"direction"},fontSize:[Dr,Br,$r],fontFamily:[$r,jr,Pr],labelTextColor:{...$r,property:"color"},labelSpacing:{...$r,property:"padding-inline-start"},labelLineHeight:{...$r,property:"line-height"},labelFontWeight:{...$r,property:"font-weight"},labelRequiredIndicator:{...Fr,property:"content"},errorMessageTextColor:{...Pr,property:"color"},inputValueTextColor:{...Rr,property:"color"},inputBackgroundColor:{...Br,property:"background-color"},inputBorderRadius:{...Br,property:"border-radius"},inputBorderWidth:{...Br,property:"border-width"},inputBorderOffset:{...Br,property:"border-offset"},inputBorderColor:{...Br,property:"border-color"},inputBorderStyle:{...Br,property:"border-style"},inputOutlineWidth:{...Br,property:"outline-width"},inputOutlineOffset:{...Br,property:"outline-offset"},inputOutlineColor:{...Br,property:"outline-color"},inputOutlineStyle:{...Br,property:"outline-style"},inputSize:[{...Br,property:"width"},{...Br,property:"height"},{...Rr,property:"font-size"},{...Wr,property:"font-size"}]}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,Or)(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Nr}\n ${Ie(qr.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n height: 100%;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox)::after {\n top: 0;\n left: 0;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n `,excludeAttrsSync:["label","tabindex"],componentName:Vr})),Hr=qr.cssVarList,Ur="1.35em",Gr={[Hr.hostWidth]:qe.width,[Hr.hostDirection]:qe.direction,[Hr.fontSize]:qe.fontSize,[Hr.fontFamily]:qe.fontFamily,[Hr.labelTextColor]:qe.labelTextColor,[Hr.labelRequiredIndicator]:qe.requiredIndicator,[Hr.labelFontWeight]:"400",[Hr.labelLineHeight]:Ur,[Hr.labelSpacing]:"1em",[Hr.errorMessageTextColor]:qe.errorMessageTextColor,[Hr.inputOutlineWidth]:qe.outlineWidth,[Hr.inputOutlineOffset]:qe.outlineOffset,[Hr.inputOutlineColor]:qe.outlineColor,[Hr.inputOutlineStyle]:qe.outlineStyle,[Hr.inputBorderRadius]:qe.borderRadius,[Hr.inputBorderColor]:qe.borderColor,[Hr.inputBorderWidth]:qe.borderWidth,[Hr.inputBorderStyle]:qe.borderStyle,[Hr.inputBackgroundColor]:qe.backgroundColor,[Hr.inputSize]:Ur,_checked:{[Hr.inputValueTextColor]:qe.valueTextColor},_disabled:{[Hr.labelTextColor]:qe.labelTextColor}},Zr=tt("switch-toggle"),{host:Qr,component:Yr,checkboxElement:Jr,checkboxSurface:Kr,checkboxLabel:Xr,requiredIndicator:tn,helperText:en,errorMessage:rn}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},nn=Z(Wt({mappings:{hostWidth:{...Qr,property:"width"},hostDirection:{...Qr,property:"direction"},fontSize:[Yr,Xr,Xr],fontFamily:[Xr,en,rn],labelTextColor:{...Xr,property:"color"},labelSpacing:{...Xr,property:"padding-inline-start"},labelLineHeight:{...Xr,property:"line-height"},labelFontWeight:{...Xr,property:"font-weight"},labelRequiredIndicator:{...tn,property:"content"},errorMessageTextColor:{...rn,property:"color"},trackBorderWidth:{...Jr,property:"border-width"},trackBorderStyle:{...Jr,property:"border-style"},trackBorderColor:{...Jr,property:"border-color"},trackBackgroundColor:{...Jr,property:"background-color"},trackBorderRadius:{...Jr,property:"border-radius"},trackWidth:[{...Jr,property:"width"}],trackHeight:[{...Kr,property:"font-size"},{...Jr,property:"height"}],knobSize:[{...Kr,property:"width"},{...Kr,property:"height"}],knobTextColor:{...Kr,property:"color"},knobRadius:{...Kr,property:"border-radius"},knobTransitionDuration:{...Kr,property:"transition"},knobColor:{...Kr,property:"background-color"},knobTopOffset:{...Kr,property:"top"},knobLeftOffset:{...Kr,property:"left"},inputOutlineWidth:{...Jr,property:"outline-width"},inputOutlineOffset:{...Jr,property:"outline-offset"},inputOutlineColor:{...Jr,property:"outline-color"},inputOutlineStyle:{...Jr,property:"outline-style"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,Or)(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Nr}\n\t\t\t${Ie(nn.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n width: 100%;\n }\n\n vaadin-text-field::part(input-field) {\n cursor: pointer;\n }\n\n vaadin-checkbox {\n cursor: pointer;\n }\n\n vaadin-checkbox [slot="label"]:not(:empty) {\n cursor: pointer;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::before {\n content: '';\n\t\t\t}\n\n vaadin-checkbox[active]::part(checkbox) {\n\t\t\t\ttransform: none;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::after {\n\t\t\t\tposition: absolute;\n\t\t\t\topacity: 1;\n\t\t\t\tcontent: '';\n\t\t\t}\n\t\t`,excludeAttrsSync:["label","tabindex"],componentName:Zr})),on="2px",an=dt(Nt),sn=nn.cssVarList,ln={[sn.hostWidth]:qe.width,[sn.hostDirection]:qe.direction,[sn.fontSize]:qe.fontSize,[sn.fontFamily]:qe.fontFamily,[sn.inputOutlineWidth]:qe.outlineWidth,[sn.inputOutlineOffset]:qe.outlineOffset,[sn.inputOutlineColor]:qe.outlineColor,[sn.inputOutlineStyle]:qe.outlineStyle,[sn.trackBorderStyle]:qe.borderStyle,[sn.trackBorderWidth]:qe.borderWidth,[sn.trackBorderColor]:qe.borderColor,[sn.trackBackgroundColor]:qe.backgroundColor,[sn.trackBorderRadius]:an.radius.md,[sn.trackWidth]:"2.5em",[sn.trackHeight]:"1.25em",[sn.knobSize]:`calc(1em - ${on})`,[sn.knobRadius]:"50%",[sn.knobTopOffset]:"1px",[sn.knobLeftOffset]:on,[sn.knobColor]:qe.labelTextColor,[sn.knobTransitionDuration]:"0.3s",[sn.labelTextColor]:qe.labelTextColor,[sn.labelFontWeight]:"400",[sn.labelLineHeight]:"1.35em",[sn.labelSpacing]:"1em",[sn.labelRequiredIndicator]:qe.requiredIndicator,[sn.errorMessageTextColor]:qe.errorMessageTextColor,_checked:{[sn.trackBorderColor]:qe.borderColor,[sn.knobLeftOffset]:`calc(100% - var(${sn.knobSize}) - ${on})`,[sn.knobColor]:qe.valueTextColor,[sn.knobTextColor]:qe.valueTextColor},_disabled:{[sn.knobColor]:an.colors.surface.light,[sn.trackBorderColor]:an.colors.surface.light,[sn.trackBackgroundColor]:an.colors.surface.main,[sn.labelTextColor]:qe.labelTextColor,_checked:{[sn.knobColor]:an.colors.surface.light,[sn.trackBackgroundColor]:an.colors.surface.main}},_invalid:{[sn.trackBorderColor]:an.colors.error.main,[sn.knobColor]:an.colors.error.main}},dn=tt("container");class cn extends(Ht({componentName:dn,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t:host > slot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n\t\t</style>\n\t\t<slot></slot>\n\t"}}const pn=Z(Wt({mappings:{hostHeight:{selector:()=>":host",property:"height"},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:{},flexWrap:{},backgroundColor:{},color:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{}}}),Bt,Rt)(cn),un=dt(Nt),hn=pn.cssVarList,[mn,fn,bn]=ft({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},dn),{shadowColor:gn}=fn,yn={...mn,[hn.hostWidth]:"100%",[hn.boxShadow]:"none",[hn.backgroundColor]:un.colors.surface.main,[hn.color]:un.colors.surface.contrast,[hn.borderRadius]:"0px",[hn.hostDirection]:un.direction,verticalPadding:{sm:{[hn.verticalPadding]:"5px"},md:{[hn.verticalPadding]:"10px"},lg:{[hn.verticalPadding]:"20px"}},horizontalPadding:{sm:{[hn.horizontalPadding]:"5px"},md:{[hn.horizontalPadding]:"10px"},lg:{[hn.horizontalPadding]:"20px"}},direction:{row:{[hn.flexDirection]:"row",[hn.alignItems]:fn.verticalAlignment,[hn.justifyContent]:fn.horizontalAlignment,[hn.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[bn.horizontalAlignment]:"space-between"}}},column:{[hn.flexDirection]:"column",[hn.alignItems]:fn.horizontalAlignment,[hn.justifyContent]:fn.verticalAlignment,verticalAlignment:{spaceBetween:{[bn.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[hn.gap]:"10px"},md:{[hn.gap]:"20px"},lg:{[hn.gap]:"30px"}},shadow:{sm:{[hn.boxShadow]:`${un.shadow.wide.sm} ${gn}, ${un.shadow.narrow.sm} ${gn}`},md:{[hn.boxShadow]:`${un.shadow.wide.md} ${gn}, ${un.shadow.narrow.md} ${gn}`},lg:{[hn.boxShadow]:`${un.shadow.wide.lg} ${gn}, ${un.shadow.narrow.lg} ${gn}`},xl:{[hn.boxShadow]:`${un.shadow.wide.xl} ${gn}, ${un.shadow.narrow.xl} ${gn}`},"2xl":{[bn.shadowColor]:"#00000050",[hn.boxShadow]:`${un.shadow.wide["2xl"]} ${gn}`}},borderRadius:{sm:{[hn.borderRadius]:un.radius.sm},md:{[hn.borderRadius]:un.radius.md},lg:{[hn.borderRadius]:un.radius.lg},xl:{[hn.borderRadius]:un.radius.xl},"2xl":{[hn.borderRadius]:un.radius["2xl"]},"3xl":{[hn.borderRadius]:un.radius["3xl"]}}},vn={...hn,...bn},xn=({componentName:t,varName:e,fallbackVarName:r})=>{let n;class o extends(Ht({componentName:t,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\t\t\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t\tmargin: auto;\n\t\t\t\t\t${n}\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div></div>\n\t\t\t`}}const i=Z(Wt({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[r]:{property:"content"}}}),Bt,Rt)(o);return n=`content: var(${i.cssVarList[e]}, var(${i.cssVarList[r]}));`,i},Cn=xn({componentName:tt("logo"),varName:"url",fallbackVarName:"fallbackUrl"}).cssVarList,wn={[Cn.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"},kn=xn({componentName:tt("totp-image"),varName:"url",fallbackVarName:"fallbackUrl"}).cssVarList,Sn={[kn.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"},Mn=xn({componentName:tt("notp-image"),varName:"url",fallbackVarName:"fallbackUrl"}).cssVarList,An={[Mn.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"},Tn=tt("text");class En extends(Ht({componentName:Tn,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <style>\n :host {\n display: inline-block;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n </style>\n <slot part="text-wrapper"></slot>\n '}get hideWhenEmpty(){return"true"===this.getAttribute("hide-when-empty")}init(){super.init(),J(this,(()=>{const t=!!this.childNodes.length;this.style.display=!t&&this.hideWhenEmpty?"none":""}))}}const In=Z(Wt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},textColor:{property:"color"},textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Bt,Rt)(En),_n=dt(Nt),Ln=In.cssVarList,zn={[Ln.hostDirection]:_n.direction,[Ln.textLineHeight]:"1.35em",[Ln.textAlign]:"left",[Ln.textColor]:_n.colors.surface.dark,variant:{h1:{[Ln.fontSize]:_n.typography.h1.size,[Ln.fontWeight]:_n.typography.h1.weight,[Ln.fontFamily]:_n.typography.h1.font},h2:{[Ln.fontSize]:_n.typography.h2.size,[Ln.fontWeight]:_n.typography.h2.weight,[Ln.fontFamily]:_n.typography.h2.font},h3:{[Ln.fontSize]:_n.typography.h3.size,[Ln.fontWeight]:_n.typography.h3.weight,[Ln.fontFamily]:_n.typography.h3.font},subtitle1:{[Ln.fontSize]:_n.typography.subtitle1.size,[Ln.fontWeight]:_n.typography.subtitle1.weight,[Ln.fontFamily]:_n.typography.subtitle1.font},subtitle2:{[Ln.fontSize]:_n.typography.subtitle2.size,[Ln.fontWeight]:_n.typography.subtitle2.weight,[Ln.fontFamily]:_n.typography.subtitle2.font},body1:{[Ln.fontSize]:_n.typography.body1.size,[Ln.fontWeight]:_n.typography.body1.weight,[Ln.fontFamily]:_n.typography.body1.font},body2:{[Ln.fontSize]:_n.typography.body2.size,[Ln.fontWeight]:_n.typography.body2.weight,[Ln.fontFamily]:_n.typography.body2.font}},mode:{primary:{[Ln.textColor]:_n.colors.surface.contrast},secondary:{[Ln.textColor]:_n.colors.surface.dark},error:{[Ln.textColor]:_n.colors.error.main},success:{[Ln.textColor]:_n.colors.success.main}},textAlign:{right:{[Ln.textAlign]:"right"},left:{[Ln.textAlign]:"left"},center:{[Ln.textAlign]:"center"}},_fullWidth:{[Ln.hostWidth]:"100%"},_italic:{[Ln.fontStyle]:"italic"},_uppercase:{[Ln.textTransform]:"uppercase"},_lowercase:{[Ln.textTransform]:"lowercase"}};var On;function Nn(t){return(On=On||document.createElement("textarea")).innerHTML="&"+t+";",On.value}var Vn=Object.prototype.hasOwnProperty;function Dn(t){return[].slice.call(arguments,1).forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t}var Wn=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Bn(t){return t.indexOf("\\")<0?t:t.replace(Wn,"$1")}function Rn(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||65535==(65535&t)||65534==(65535&t)||t>=0&&t<=8||11===t||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function $n(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var Fn=/&([a-z#][a-z0-9]{1,31});/gi,jn=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Pn(t,e){var r=0,n=Nn(e);return e!==n?n:35===e.charCodeAt(0)&&jn.test(e)&&Rn(r="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?$n(r):t}function qn(t){return t.indexOf("&")<0?t:t.replace(Fn,Pn)}var Hn=/[&<>"]/,Un=/[&<>"]/g,Gn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Zn(t){return Gn[t]}function Qn(t){return Hn.test(t)?t.replace(Un,Zn):t}var Yn={};function Jn(t,e){return++e>=t.length-2?e:"paragraph_open"===t[e].type&&t[e].tight&&"inline"===t[e+1].type&&0===t[e+1].content.length&&"paragraph_close"===t[e+2].type&&t[e+2].tight?Jn(t,e+2):e}Yn.blockquote_open=function(){return"<blockquote>\n"},Yn.blockquote_close=function(t,e){return"</blockquote>"+Kn(t,e)},Yn.code=function(t,e){return t[e].block?"<pre><code>"+Qn(t[e].content)+"</code></pre>"+Kn(t,e):"<code>"+Qn(t[e].content)+"</code>"},Yn.fence=function(t,e,r,n,o){var i,a,s,l,d=t[e],c="",p=r.langPrefix;if(d.params){if(a=(i=d.params.split(/\s+/g)).join(" "),s=o.rules.fence_custom,l=i[0],s&&Vn.call(s,l))return o.rules.fence_custom[i[0]](t,e,r,n,o);c=' class="'+p+Qn(qn(Bn(a)))+'"'}return"<pre><code"+c+">"+(r.highlight&&r.highlight.apply(r.highlight,[d.content].concat(i))||Qn(d.content))+"</code></pre>"+Kn(t,e)},Yn.fence_custom={},Yn.heading_open=function(t,e){return"<h"+t[e].hLevel+">"},Yn.heading_close=function(t,e){return"</h"+t[e].hLevel+">\n"},Yn.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+Kn(t,e)},Yn.bullet_list_open=function(){return"<ul>\n"},Yn.bullet_list_close=function(t,e){return"</ul>"+Kn(t,e)},Yn.list_item_open=function(){return"<li>"},Yn.list_item_close=function(){return"</li>\n"},Yn.ordered_list_open=function(t,e){var r=t[e];return"<ol"+(r.order>1?' start="'+r.order+'"':"")+">\n"},Yn.ordered_list_close=function(t,e){return"</ol>"+Kn(t,e)},Yn.paragraph_open=function(t,e){return t[e].tight?"":"<p>"},Yn.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&"inline"===t[e-1].type&&!t[e-1].content);return(t[e].tight?"":"</p>")+(r?Kn(t,e):"")},Yn.link_open=function(t,e,r){var n=t[e].title?' title="'+Qn(qn(t[e].title))+'"':"",o=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+Qn(t[e].href)+'"'+n+o+">"},Yn.link_close=function(){return"</a>"},Yn.image=function(t,e,r){var n=' src="'+Qn(t[e].src)+'"',o=t[e].title?' title="'+Qn(qn(t[e].title))+'"':"";return"<img"+n+' alt="'+(t[e].alt?Qn(qn(Bn(t[e].alt))):"")+'"'+o+(r.xhtmlOut?" /":"")+">"},Yn.table_open=function(){return"<table>\n"},Yn.table_close=function(){return"</table>\n"},Yn.thead_open=function(){return"<thead>\n"},Yn.thead_close=function(){return"</thead>\n"},Yn.tbody_open=function(){return"<tbody>\n"},Yn.tbody_close=function(){return"</tbody>\n"},Yn.tr_open=function(){return"<tr>"},Yn.tr_close=function(){return"</tr>\n"},Yn.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"},Yn.th_close=function(){return"</th>"},Yn.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"},Yn.td_close=function(){return"</td>"},Yn.strong_open=function(){return"<strong>"},Yn.strong_close=function(){return"</strong>"},Yn.em_open=function(){return"<em>"},Yn.em_close=function(){return"</em>"},Yn.del_open=function(){return"<del>"},Yn.del_close=function(){return"</del>"},Yn.ins_open=function(){return"<ins>"},Yn.ins_close=function(){return"</ins>"},Yn.mark_open=function(){return"<mark>"},Yn.mark_close=function(){return"</mark>"},Yn.sub=function(t,e){return"<sub>"+Qn(t[e].content)+"</sub>"},Yn.sup=function(t,e){return"<sup>"+Qn(t[e].content)+"</sup>"},Yn.hardbreak=function(t,e,r){return r.xhtmlOut?"<br />\n":"<br>\n"},Yn.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},Yn.text=function(t,e){return Qn(t[e].content)},Yn.htmlblock=function(t,e){return t[e].content},Yn.htmltag=function(t,e){return t[e].content},Yn.abbr_open=function(t,e){return'<abbr title="'+Qn(qn(t[e].title))+'">'},Yn.abbr_close=function(){return"</abbr>"},Yn.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"},Yn.footnote_block_open=function(t,e,r){return(r.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},Yn.footnote_block_close=function(){return"</ol>\n</section>\n"},Yn.footnote_open=function(t,e){return'<li id="fn'+Number(t[e].id+1).toString()+'" class="footnote-item">'},Yn.footnote_close=function(){return"</li>\n"},Yn.footnote_anchor=function(t,e){var r="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(r+=":"+t[e].subId),' <a href="#'+r+'" class="footnote-backref">↩</a>'},Yn.dl_open=function(){return"<dl>\n"},Yn.dt_open=function(){return"<dt>"},Yn.dd_open=function(){return"<dd>"},Yn.dl_close=function(){return"</dl>\n"},Yn.dt_close=function(){return"</dt>\n"},Yn.dd_close=function(){return"</dd>\n"};var Kn=Yn.getBreak=function(t,e){return(e=Jn(t,e))<t.length&&"list_item_close"===t[e].type?"":"\n"};function Xn(){this.rules=Dn({},Yn),this.getBreak=Yn.getBreak}function to(){this.__rules__=[],this.__cache__=null}function eo(t,e,r,n,o){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function ro(t,e){var r,n,o,i=-1,a=t.posMax,s=t.pos,l=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,r=1;t.pos<a;){if(91===(o=t.src.charCodeAt(t.pos)))r++;else if(93===o&&0==--r){n=!0;break}t.parser.skipToken(t)}return n?(i=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=s,t.isInLabel=l,i}function no(t,e,r,n){var o,i,a,s,l,d;if(42!==t.charCodeAt(0))return-1;if(91!==t.charCodeAt(1))return-1;if(-1===t.indexOf("]:"))return-1;if((i=ro(o=new eo(t,e,r,n,[]),1))<0||58!==t.charCodeAt(i+1))return-1;for(s=o.posMax,a=i+2;a<s&&10!==o.src.charCodeAt(a);a++);return l=t.slice(2,i),0===(d=t.slice(i+2,a).trim()).length?-1:(n.abbreviations||(n.abbreviations={}),void 0===n.abbreviations[":"+l]&&(n.abbreviations[":"+l]=d),a)}function oo(t){var e=qn(t);try{e=decodeURI(e)}catch(t){}return encodeURI(e)}function io(t,e){var r,n,o,i=e,a=t.posMax;if(60===t.src.charCodeAt(e)){for(e++;e<a;){if(10===(r=t.src.charCodeAt(e)))return!1;if(62===r)return o=oo(Bn(t.src.slice(i+1,e))),!!t.parser.validateLink(o)&&(t.pos=e+1,t.linkContent=o,!0);92===r&&e+1<a?e+=2:e++}return!1}for(n=0;e<a&&32!==(r=t.src.charCodeAt(e))&&!(r<32||127===r);)if(92===r&&e+1<a)e+=2;else{if(40===r&&++n>1)break;if(41===r&&--n<0)break;e++}return i!==e&&(o=Bn(t.src.slice(i,e)),!!t.parser.validateLink(o)&&(t.linkContent=o,t.pos=e,!0))}function ao(t,e){var r,n=e,o=t.posMax,i=t.src.charCodeAt(e);if(34!==i&&39!==i&&40!==i)return!1;for(e++,40===i&&(i=41);e<o;){if((r=t.src.charCodeAt(e))===i)return t.pos=e+1,t.linkContent=Bn(t.src.slice(n+1,e)),!0;92===r&&e+1<o?e+=2:e++}return!1}function so(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function lo(t,e,r,n){var o,i,a,s,l,d,c,p,u;if(91!==t.charCodeAt(0))return-1;if(-1===t.indexOf("]:"))return-1;if((i=ro(o=new eo(t,e,r,n,[]),0))<0||58!==t.charCodeAt(i+1))return-1;for(s=o.posMax,a=i+2;a<s&&(32===(l=o.src.charCodeAt(a))||10===l);a++);if(!io(o,a))return-1;for(c=o.linkContent,d=a=o.pos,a+=1;a<s&&(32===(l=o.src.charCodeAt(a))||10===l);a++);for(a<s&&d!==a&&ao(o,a)?(p=o.linkContent,a=o.pos):(p="",a=d);a<s&&32===o.src.charCodeAt(a);)a++;return a<s&&10!==o.src.charCodeAt(a)?-1:(u=so(t.slice(1,i)),void 0===n.references[u]&&(n.references[u]={title:p,href:c}),a)}Xn.prototype.renderInline=function(t,e,r){for(var n=this.rules,o=t.length,i=0,a="";o--;)a+=n[t[i].type](t,i++,e,r,this);return a},Xn.prototype.render=function(t,e,r){for(var n=this.rules,o=t.length,i=-1,a="";++i<o;)"inline"===t[i].type?a+=this.renderInline(t[i].children,e,r):a+=n[t[i].type](t,i,e,r,this);return a},to.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1},to.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(r){r.enabled&&(e&&r.alt.indexOf(e)<0||t.__cache__[e].push(r.fn))}))}))},to.prototype.at=function(t,e,r){var n=this.__find__(t),o=r||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null},to.prototype.before=function(t,e,r,n){var o=this.__find__(t),i=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},to.prototype.after=function(t,e,r,n){var o=this.__find__(t),i=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},to.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},to.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach((function(t){t.enabled=!1})),t.forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!0}),this),this.__cache__=null},to.prototype.disable=function(t){(t=Array.isArray(t)?t:[t]).forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!1}),this),this.__cache__=null},to.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},eo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},eo.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level},eo.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e},eo.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};var co=" \n()[]'\".,!?-";function po(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var uo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ho=/\((c|tm|r|p)\)/gi,mo={c:"©",r:"®",p:"§",tm:"™"},fo=/['"]/,bo=/['"]/g,go=/[-\s()\[\]]/;function yo(t,e){return!(e<0||e>=t.length||go.test(t[e]))}function vo(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}var xo=[["block",function(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}],["abbr",function(t){var e,r,n,o,i=t.tokens;if(!t.inlineMode)for(e=1,r=i.length-1;e<r;e++)if("paragraph_open"===i[e-1].type&&"inline"===i[e].type&&"paragraph_close"===i[e+1].type){for(n=i[e].content;n.length&&!((o=no(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();i[e].content=n,n.length||(i[e-1].tight=!0,i[e+1].tight=!0)}}],["references",function(t){var e,r,n,o,i=t.tokens;if(t.env.references=t.env.references||{},!t.inlineMode)for(e=1,r=i.length-1;e<r;e++)if("inline"===i[e].type&&"paragraph_open"===i[e-1].type&&"paragraph_close"===i[e+1].type){for(n=i[e].content;n.length&&!((o=lo(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();i[e].content=n,n.length||(i[e-1].tight=!0,i[e+1].tight=!0)}}],["inline",function(t){var e,r,n,o=t.tokens;for(r=0,n=o.length;r<n;r++)"inline"===(e=o[r]).type&&t.inline.parse(e.content,t.options,t.env,e.children)}],["footnote_tail",function(t){var e,r,n,o,i,a,s,l,d,c=0,p=!1,u={};if(t.env.footnotes&&(t.tokens=t.tokens.filter((function(t){return"footnote_reference_open"===t.type?(p=!0,l=[],d=t.label,!1):"footnote_reference_close"===t.type?(p=!1,u[":"+d]=l,!1):(p&&l.push(t),!p)})),t.env.footnotes.list)){for(a=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:c++}),e=0,r=a.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:c++}),a[e].tokens?((s=[]).push({type:"paragraph_open",tight:!1,level:c++}),s.push({type:"inline",content:"",level:c,children:a[e].tokens}),s.push({type:"paragraph_close",tight:!1,level:--c})):a[e].label&&(s=u[":"+a[e].label]),t.tokens=t.tokens.concat(s),i="paragraph_close"===t.tokens[t.tokens.length-1].type?t.tokens.pop():null,o=a[e].count>0?a[e].count:1,n=0;n<o;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:c});i&&t.tokens.push(i),t.tokens.push({type:"footnote_close",level:--c})}t.tokens.push({type:"footnote_block_close",level:--c})}}],["abbr2",function(t){var e,r,n,o,i,a,s,l,d,c,p,u,h=t.tokens;if(t.env.abbreviations)for(t.env.abbrRegExp||(u="(^|["+co.split("").map(po).join("")+"])("+Object.keys(t.env.abbreviations).map((function(t){return t.substr(1)})).sort((function(t,e){return e.length-t.length})).map(po).join("|")+")($|["+co.split("").map(po).join("")+"])",t.env.abbrRegExp=new RegExp(u,"g")),c=t.env.abbrRegExp,r=0,n=h.length;r<n;r++)if("inline"===h[r].type)for(e=(o=h[r].children).length-1;e>=0;e--)if("text"===(i=o[e]).type){for(l=0,a=i.content,c.lastIndex=0,d=i.level,s=[];p=c.exec(a);)c.lastIndex>l&&s.push({type:"text",content:a.slice(l,p.index+p[1].length),level:d}),s.push({type:"abbr_open",title:t.env.abbreviations[":"+p[2]],level:d++}),s.push({type:"text",content:p[2],level:d}),s.push({type:"abbr_close",level:--d}),l=c.lastIndex-p[3].length;s.length&&(l<a.length&&s.push({type:"text",content:a.slice(l),level:d}),h[r].children=o=[].concat(o.slice(0,e),s,o.slice(e+1)))}}],["replacements",function(t){var e,r,n,o,i,a;if(t.options.typographer)for(i=t.tokens.length-1;i>=0;i--)if("inline"===t.tokens[i].type)for(e=(o=t.tokens[i].children).length-1;e>=0;e--)"text"===(r=o[e]).type&&(n=(a=n=r.content).indexOf("(")<0?a:a.replace(ho,(function(t,e){return mo[e.toLowerCase()]})),uo.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),r.content=n)}],["smartquotes",function(t){var e,r,n,o,i,a,s,l,d,c,p,u,h,m,f,b,g;if(t.options.typographer)for(g=[],f=t.tokens.length-1;f>=0;f--)if("inline"===t.tokens[f].type)for(b=t.tokens[f].children,g.length=0,e=0;e<b.length;e++)if("text"===(r=b[e]).type&&!fo.test(r.text)){for(s=b[e].level,h=g.length-1;h>=0&&!(g[h].level<=s);h--);g.length=h+1,i=0,a=(n=r.content).length;t:for(;i<a&&(bo.lastIndex=i,o=bo.exec(n));)if(l=!yo(n,o.index-1),i=o.index+1,m="'"===o[0],(d=!yo(n,i))||l){if(p=!d,u=!l)for(h=g.length-1;h>=0&&(c=g[h],!(g[h].level<s));h--)if(c.single===m&&g[h].level===s){c=g[h],m?(b[c.token].content=vo(b[c.token].content,c.pos,t.options.quotes[2]),r.content=vo(r.content,o.index,t.options.quotes[3])):(b[c.token].content=vo(b[c.token].content,c.pos,t.options.quotes[0]),r.content=vo(r.content,o.index,t.options.quotes[1])),g.length=h;continue t}p?g.push({token:e,pos:o.index,single:m,level:s}):u&&m&&(r.content=vo(r.content,o.index,"’"))}else m&&(r.content=vo(r.content,o.index,"’"))}}]];function Co(){this.options={},this.ruler=new to;for(var t=0;t<xo.length;t++)this.ruler.push(xo[t][0],xo[t][1])}function wo(t,e,r,n,o){var i,a,s,l,d,c,p;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",c=0,p=!1,s=l=c=0,d=(a=this.src).length;l<d;l++){if(i=a.charCodeAt(l),!p){if(32===i){c++;continue}p=!0}10!==i&&l!==d-1||(10!==i&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),p=!1,c=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function ko(t,e){var r,n,o;return(n=t.bMarks[e]+t.tShift[e])>=(o=t.eMarks[e])||42!==(r=t.src.charCodeAt(n++))&&45!==r&&43!==r||n<o&&32!==t.src.charCodeAt(n)?-1:n}function So(t,e){var r,n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(n+1>=o)return-1;if((r=t.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=o)return-1;if(!((r=t.src.charCodeAt(n++))>=48&&r<=57)){if(41===r||46===r)break;return-1}}return n<o&&32!==t.src.charCodeAt(n)?-1:n}Co.prototype.process=function(t){var e,r,n;for(e=0,r=(n=this.ruler.getRules("")).length;e<r;e++)n[e](t)},wo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},wo.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},wo.prototype.skipSpaces=function(t){for(var e=this.src.length;t<e&&32===this.src.charCodeAt(t);t++);return t},wo.prototype.skipChars=function(t,e){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===e;t++);return t},wo.prototype.skipCharsBack=function(t,e,r){if(t<=r)return t;for(;t>r;)if(e!==this.src.charCodeAt(--t))return t+1;return t},wo.prototype.getLines=function(t,e,r,n){var o,i,a,s,l,d=t;if(t>=e)return"";if(d+1===e)return i=this.bMarks[d]+Math.min(this.tShift[d],r),a=n?this.eMarks[d]+1:this.eMarks[d],this.src.slice(i,a);for(s=new Array(e-t),o=0;d<e;d++,o++)(l=this.tShift[d])>r&&(l=r),l<0&&(l=0),i=this.bMarks[d]+l,a=d+1<e||n?this.eMarks[d]+1:this.eMarks[d],s[o]=this.src.slice(i,a);return s.join("")};var Mo={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(t){Mo[t]=!0}));var Ao=/^<([a-zA-Z]{1,15})[\s\/>]/,To=/^<\/([a-zA-Z]{1,15})[\s>]/;function Eo(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Io(t,e){var r,n,o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return o>=i||126!==(n=t.src.charCodeAt(o++))&&58!==n||o===(r=t.skipSpaces(o))||r>=i?-1:r}var _o=[["code",function(t,e,r){var n,o;if(t.tShift[e]-t.blkIndent<4)return!1;for(o=n=e+1;n<r;)if(t.isEmpty(n))n++;else{if(!(t.tShift[n]-t.blkIndent>=4))break;o=++n}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,o,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}],["fences",function(t,e,r,n){var o,i,a,s,l,d=!1,c=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(c+3>p)return!1;if(126!==(o=t.src.charCodeAt(c))&&96!==o)return!1;if(l=c,(i=(c=t.skipChars(c,o))-l)<3)return!1;if((a=t.src.slice(c,p).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(s=e;!(++s>=r||(c=l=t.bMarks[s]+t.tShift[s])<(p=t.eMarks[s])&&t.tShift[s]<t.blkIndent);)if(t.src.charCodeAt(c)===o&&!(t.tShift[s]-t.blkIndent>=4||(c=t.skipChars(c,o))-l<i||(c=t.skipSpaces(c))<p)){d=!0;break}return i=t.tShift[e],t.line=s+(d?1:0),t.tokens.push({type:"fence",params:a,content:t.getLines(e+1,s,i,!0),lines:[e,t.line],level:t.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m,f=t.bMarks[e]+t.tShift[e],b=t.eMarks[e];if(f>b)return!1;if(62!==t.src.charCodeAt(f++))return!1;if(t.level>=t.options.maxNesting)return!1;if(n)return!0;for(32===t.src.charCodeAt(f)&&f++,l=t.blkIndent,t.blkIndent=0,s=[t.bMarks[e]],t.bMarks[e]=f,i=(f=f<b?t.skipSpaces(f):f)>=b,a=[t.tShift[e]],t.tShift[e]=f-t.bMarks[e],p=t.parser.ruler.getRules("blockquote"),o=e+1;o<r&&!((f=t.bMarks[o]+t.tShift[o])>=(b=t.eMarks[o]));o++)if(62!==t.src.charCodeAt(f++)){if(i)break;for(m=!1,u=0,h=p.length;u<h;u++)if(p[u](t,o,r,!0)){m=!0;break}if(m)break;s.push(t.bMarks[o]),a.push(t.tShift[o]),t.tShift[o]=-1337}else 32===t.src.charCodeAt(f)&&f++,s.push(t.bMarks[o]),t.bMarks[o]=f,i=(f=f<b?t.skipSpaces(f):f)>=b,a.push(t.tShift[o]),t.tShift[o]=f-t.bMarks[o];for(d=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:c=[e,0],level:t.level++}),t.parser.tokenize(t,e,o),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=d,c[1]=t.line,u=0;u<a.length;u++)t.bMarks[u+e]=s[u],t.tShift[u+e]=a[u];return t.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(t,e,r,n){var o,i,a,s=t.bMarks[e],l=t.eMarks[e];if((s+=t.tShift[e])>l)return!1;if(42!==(o=t.src.charCodeAt(s++))&&45!==o&&95!==o)return!1;for(i=1;s<l;){if((a=t.src.charCodeAt(s++))!==o&&32!==a)return!1;a===o&&i++}return!(i<3||(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),0))},["paragraph","blockquote","list"]],["list",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m,f,b,g,y,v,x,C,w,k,S,M=!0;if((p=So(t,e))>=0)f=!0;else{if(!((p=ko(t,e))>=0))return!1;f=!1}if(t.level>=t.options.maxNesting)return!1;if(m=t.src.charCodeAt(p-1),n)return!0;for(g=t.tokens.length,f?(c=t.bMarks[e]+t.tShift[e],h=Number(t.src.substr(c,p-c-1)),t.tokens.push({type:"ordered_list_open",order:h,lines:v=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:v=[e,0],level:t.level++}),o=e,y=!1,C=t.parser.ruler.getRules("list");!(!(o<r)||((u=(b=t.skipSpaces(p))>=t.eMarks[o]?1:b-p)>4&&(u=1),u<1&&(u=1),i=p-t.bMarks[o]+u,t.tokens.push({type:"list_item_open",lines:x=[e,0],level:t.level++}),s=t.blkIndent,l=t.tight,a=t.tShift[e],d=t.parentType,t.tShift[e]=b-t.bMarks[e],t.blkIndent=i,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),t.tight&&!y||(M=!1),y=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=s,t.tShift[e]=a,t.tight=l,t.parentType=d,t.tokens.push({type:"list_item_close",level:--t.level}),o=e=t.line,x[1]=o,b=t.bMarks[e],o>=r)||t.isEmpty(o)||t.tShift[o]<t.blkIndent);){for(S=!1,w=0,k=C.length;w<k;w++)if(C[w](t,o,r,!0)){S=!0;break}if(S)break;if(f){if((p=So(t,o))<0)break}else if((p=ko(t,o))<0)break;if(m!==t.src.charCodeAt(p-1))break}return t.tokens.push({type:f?"ordered_list_close":"bullet_list_close",level:--t.level}),v[1]=o,t.line=o,M&&function(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&"paragraph_open"===t.tokens[r].type&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}(t,g),!0},["paragraph","blockquote"]],["footnote",function(t,e,r,n){var o,i,a,s,l,d=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(d+4>c)return!1;if(91!==t.src.charCodeAt(d))return!1;if(94!==t.src.charCodeAt(d+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(s=d+2;s<c;s++){if(32===t.src.charCodeAt(s))return!1;if(93===t.src.charCodeAt(s))break}return!(s===d+2||s+1>=c||58!==t.src.charCodeAt(++s)||(n||(s++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),l=t.src.slice(d+2,s-2),t.env.footnotes.refs[":"+l]=-1,t.tokens.push({type:"footnote_reference_open",label:l,level:t.level++}),o=t.bMarks[e],i=t.tShift[e],a=t.parentType,t.tShift[e]=t.skipSpaces(s)-s,t.bMarks[e]=s,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,r,!0),t.parentType=a,t.blkIndent-=4,t.tShift[e]=i,t.bMarks[e]=o,t.tokens.push({type:"footnote_reference_close",level:--t.level})),0))},["paragraph"]],["heading",function(t,e,r,n){var o,i,a,s=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(s>=l)return!1;if(35!==(o=t.src.charCodeAt(s))||s>=l)return!1;for(i=1,o=t.src.charCodeAt(++s);35===o&&s<l&&i<=6;)i++,o=t.src.charCodeAt(++s);return!(i>6||s<l&&32!==o||(n||(l=t.skipCharsBack(l,32,s),(a=t.skipCharsBack(l,35,s))>s&&32===t.src.charCodeAt(a-1)&&(l=a),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:i,lines:[e,t.line],level:t.level}),s<l&&t.tokens.push({type:"inline",content:t.src.slice(s,l).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:i,level:t.level})),0))},["paragraph","blockquote"]],["lheading",function(t,e,r){var n,o,i,a=e+1;return!(a>=r||t.tShift[a]<t.blkIndent||t.tShift[a]-t.blkIndent>3||(o=t.bMarks[a]+t.tShift[a])>=(i=t.eMarks[a])||45!==(n=t.src.charCodeAt(o))&&61!==n||(o=t.skipChars(o,n),(o=t.skipSpaces(o))<i||(o=t.bMarks[e]+t.tShift[e],t.line=a+1,t.tokens.push({type:"heading_open",hLevel:61===n?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(o,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:61===n?1:2,level:t.level}),0)))}],["htmlblock",function(t,e,r,n){var o,i,a,s=t.bMarks[e],l=t.eMarks[e],d=t.tShift[e];if(s+=d,!t.options.html)return!1;if(d>3||s+2>=l)return!1;if(60!==t.src.charCodeAt(s))return!1;if(33===(o=t.src.charCodeAt(s+1))||63===o){if(n)return!0}else{if(47!==o&&!function(t){var e=32|t;return e>=97&&e<=122}(o))return!1;if(47===o){if(!(i=t.src.slice(s,l).match(To)))return!1}else if(!(i=t.src.slice(s,l).match(Ao)))return!1;if(!0!==Mo[i[1].toLowerCase()])return!1;if(n)return!0}for(a=e+1;a<t.lineMax&&!t.isEmpty(a);)a++;return t.line=a,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,a,0,!0)}),!0},["paragraph","blockquote"]],["table",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m;if(e+2>r)return!1;if(l=e+1,t.tShift[l]<t.blkIndent)return!1;if((a=t.bMarks[l]+t.tShift[l])>=t.eMarks[l])return!1;if(124!==(o=t.src.charCodeAt(a))&&45!==o&&58!==o)return!1;if(i=Eo(t,e+1),!/^[-:| ]+$/.test(i))return!1;if((d=i.split("|"))<=2)return!1;for(p=[],s=0;s<d.length;s++){if(!(u=d[s].trim())){if(0===s||s===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(u))return!1;58===u.charCodeAt(u.length-1)?p.push(58===u.charCodeAt(0)?"center":"right"):58===u.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(i=Eo(t,e).trim()).indexOf("|"))return!1;if(d=i.replace(/^\||\|$/g,"").split("|"),p.length!==d.length)return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:h=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),s=0;s<d.length;s++)t.tokens.push({type:"th_open",align:p[s],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:d[s].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:m=[e+2,0],level:t.level++}),l=e+2;l<r&&!(t.tShift[l]<t.blkIndent)&&-1!==(i=Eo(t,l).trim()).indexOf("|");l++){for(d=i.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),s=0;s<d.length;s++)t.tokens.push({type:"td_open",align:p[s],level:t.level++}),c=d[s].substring(124===d[s].charCodeAt(0)?1:0,124===d[s].charCodeAt(d[s].length-1)?d[s].length-1:d[s].length).trim(),t.tokens.push({type:"inline",content:c,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),h[1]=m[1]=l,t.line=l,!0},["paragraph"]],["deflist",function(t,e,r,n){var o,i,a,s,l,d,c,p,u,h,m,f,b,g;if(n)return!(t.ddIndent<0)&&Io(t,e)>=0;if(c=e+1,t.isEmpty(c)&&++c>r)return!1;if(t.tShift[c]<t.blkIndent)return!1;if((o=Io(t,c))<0)return!1;if(t.level>=t.options.maxNesting)return!1;d=t.tokens.length,t.tokens.push({type:"dl_open",lines:l=[e,0],level:t.level++}),a=e,i=c;t:for(;;){for(g=!0,b=!1,t.tokens.push({type:"dt_open",lines:[a,a],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(a,a+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[a,a],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:s=[c,0],level:t.level++}),f=t.tight,u=t.ddIndent,p=t.blkIndent,m=t.tShift[i],h=t.parentType,t.blkIndent=t.ddIndent=t.tShift[i]+2,t.tShift[i]=o-t.bMarks[i],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,i,r,!0),t.tight&&!b||(g=!1),b=t.line-i>1&&t.isEmpty(t.line-1),t.tShift[i]=m,t.tight=f,t.parentType=h,t.blkIndent=p,t.ddIndent=u,t.tokens.push({type:"dd_close",level:--t.level}),s[1]=c=t.line,c>=r)break t;if(t.tShift[c]<t.blkIndent)break t;if((o=Io(t,c))<0)break;i=c}if(c>=r)break;if(a=c,t.isEmpty(a))break;if(t.tShift[a]<t.blkIndent)break;if((i=a+1)>=r)break;if(t.isEmpty(i)&&i++,i>=r)break;if(t.tShift[i]<t.blkIndent)break;if((o=Io(t,i))<0)break}return t.tokens.push({type:"dl_close",level:--t.level}),l[1]=c,t.line=c,g&&function(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&"paragraph_open"===t.tokens[r].type&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}(t,d),!0},["paragraph"]],["paragraph",function(t,e){var r,n,o,i,a,s,l=e+1;if(l<(r=t.lineMax)&&!t.isEmpty(l))for(s=t.parser.ruler.getRules("paragraph");l<r&&!t.isEmpty(l);l++)if(!(t.tShift[l]-t.blkIndent>3)){for(o=!1,i=0,a=s.length;i<a;i++)if(s[i](t,l,r,!0)){o=!0;break}if(o)break}return n=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}]];function Lo(){this.ruler=new to;for(var t=0;t<_o.length;t++)this.ruler.push(_o[t][0],_o[t][1],{alt:(_o[t][2]||[]).slice()})}Lo.prototype.tokenize=function(t,e,r){for(var n,o=this.ruler.getRules(""),i=o.length,a=e,s=!1;a<r&&(t.line=a=t.skipEmptyLines(a),!(a>=r))&&!(t.tShift[a]<t.blkIndent);){for(n=0;n<i&&!o[n](t,a,r,!1);n++);if(t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(a=t.line)<r&&t.isEmpty(a)){if(s=!0,++a<r&&"list"===t.parentType&&t.isEmpty(a))break;t.line=a}}};var zo=/[\n\t]/g,Oo=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,No=/\u00a0/g;function Vo(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}Lo.prototype.parse=function(t,e,r,n){var o,i=0,a=0;if(!t)return[];(t=(t=t.replace(No," ")).replace(Oo,"\n")).indexOf("\t")>=0&&(t=t.replace(zo,(function(e,r){var n;return 10===t.charCodeAt(r)?(i=r+1,a=0,e):(n=" ".slice((r-i-a)%4),a=r-i+1,n)}))),o=new wo(t,this,e,r,n),this.tokenize(o,o.line,o.lineMax)};for(var Do=[],Wo=0;Wo<256;Wo++)Do.push(0);function Bo(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function Ro(t,e){var r,n,o,i=e,a=!0,s=!0,l=t.posMax,d=t.src.charCodeAt(e);for(r=e>0?t.src.charCodeAt(e-1):-1;i<l&&t.src.charCodeAt(i)===d;)i++;return i>=l&&(a=!1),(o=i-e)>=4?a=s=!1:(32!==(n=i<l?t.src.charCodeAt(i):-1)&&10!==n||(a=!1),32!==r&&10!==r||(s=!1),95===d&&(Bo(r)&&(a=!1),Bo(n)&&(s=!1))),{can_open:a,can_close:s,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){Do[t.charCodeAt(0)]=1}));var $o=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,Fo=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,jo=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Po=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,qo=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Ho(t,e){return t=t.source,e=e||"",function r(n,o){return n?(o=o.source||o,t=t.replace(n,o),r):new RegExp(t,e)}}var Uo=Ho(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),Go=Ho(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",Uo)(),Zo=Ho(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Go)(),Qo=Ho(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Zo)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)(),Yo=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Jo=/^&([a-z][a-z0-9]{1,31});/i,Ko=[["text",function(t,e){for(var r=t.pos;r<t.posMax&&!Vo(t.src.charCodeAt(r));)r++;return r!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}],["newline",function(t,e){var r,n,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;if(r=t.pending.length-1,n=t.posMax,!e)if(r>=0&&32===t.pending.charCodeAt(r))if(r>=1&&32===t.pending.charCodeAt(r-1)){for(var i=r-2;i>=0;i--)if(32!==t.pending.charCodeAt(i)){t.pending=t.pending.substring(0,i+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(o++;o<n&&32===t.src.charCodeAt(o);)o++;return t.pos=o,!0}],["escape",function(t,e){var r,n=t.pos,o=t.posMax;if(92!==t.src.charCodeAt(n))return!1;if(++n<o){if((r=t.src.charCodeAt(n))<256&&0!==Do[r])return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(10===r){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<o&&32===t.src.charCodeAt(n);)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}],["backticks",function(t,e){var r,n,o,i,a,s=t.pos;if(96!==t.src.charCodeAt(s))return!1;for(r=s,s++,n=t.posMax;s<n&&96===t.src.charCodeAt(s);)s++;for(o=t.src.slice(r,s),i=a=s;-1!==(i=t.src.indexOf("`",a));){for(a=i+1;a<n&&96===t.src.charCodeAt(a);)a++;if(a-i===o.length)return e||t.push({type:"code",content:t.src.slice(s,i).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=a,!0}return e||(t.pending+=o),t.pos+=o.length,!0}],["del",function(t,e){var r,n,o,i,a,s=t.posMax,l=t.pos;if(126!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=s)return!1;if(126!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(i=l>0?t.src.charCodeAt(l-1):-1,a=t.src.charCodeAt(l+2),126===i)return!1;if(126===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n<s&&126===t.src.charCodeAt(n);)n++;if(n>l+3)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<s;){if(126===t.src.charCodeAt(t.pos)&&126===t.src.charCodeAt(t.pos+1)&&(i=t.src.charCodeAt(t.pos-1),126!==(a=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1)&&126!==i&&(32!==i&&10!==i?o--:32!==a&&10!==a&&o++,o<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=l,!1)}],["ins",function(t,e){var r,n,o,i,a,s=t.posMax,l=t.pos;if(43!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=s)return!1;if(43!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(i=l>0?t.src.charCodeAt(l-1):-1,a=t.src.charCodeAt(l+2),43===i)return!1;if(43===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n<s&&43===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<s;){if(43===t.src.charCodeAt(t.pos)&&43===t.src.charCodeAt(t.pos+1)&&(i=t.src.charCodeAt(t.pos-1),43!==(a=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1)&&43!==i&&(32!==i&&10!==i?o--:32!==a&&10!==a&&o++,o<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=l,!1)}],["mark",function(t,e){var r,n,o,i,a,s=t.posMax,l=t.pos;if(61!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=s)return!1;if(61!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(i=l>0?t.src.charCodeAt(l-1):-1,a=t.src.charCodeAt(l+2),61===i)return!1;if(61===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n<s&&61===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<s;){if(61===t.src.charCodeAt(t.pos)&&61===t.src.charCodeAt(t.pos+1)&&(i=t.src.charCodeAt(t.pos-1),61!==(a=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1)&&61!==i&&(32!==i&&10!==i?o--:32!==a&&10!==a&&o++,o<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=l,!1)}],["emphasis",function(t,e){var r,n,o,i,a,s,l,d=t.posMax,c=t.pos,p=t.src.charCodeAt(c);if(95!==p&&42!==p)return!1;if(e)return!1;if(r=(l=Ro(t,c)).delims,!l.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(c,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=c+r,s=[r];t.pos<d;)if(t.src.charCodeAt(t.pos)!==p)t.parser.skipToken(t);else{if(n=(l=Ro(t,t.pos)).delims,l.can_close){for(i=s.pop(),a=n;i!==a;){if(a<i){s.push(i-a);break}if(a-=i,0===s.length)break;t.pos+=i,i=s.pop()}if(0===s.length){r=i,o=!0;break}t.pos+=n;continue}l.can_open&&s.push(n),t.pos+=n}return o?(t.posMax=t.pos,t.pos=c+r,e||(2!==r&&3!==r||t.push({type:"strong_open",level:t.level++}),1!==r&&3!==r||t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),1!==r&&3!==r||t.push({type:"em_close",level:--t.level}),2!==r&&3!==r||t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+r,t.posMax=d,!0):(t.pos=c,!1)}],["sub",function(t,e){var r,n,o=t.posMax,i=t.pos;if(126!==t.src.charCodeAt(i))return!1;if(e)return!1;if(i+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<o;){if(126===t.src.charCodeAt(t.pos)){r=!0;break}t.parser.skipToken(t)}return r&&i+1!==t.pos?(n=t.src.slice(i+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sub",level:t.level,content:n.replace($o,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=i,!1)}],["sup",function(t,e){var r,n,o=t.posMax,i=t.pos;if(94!==t.src.charCodeAt(i))return!1;if(e)return!1;if(i+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<o;){if(94===t.src.charCodeAt(t.pos)){r=!0;break}t.parser.skipToken(t)}return r&&i+1!==t.pos?(n=t.src.slice(i+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sup",level:t.level,content:n.replace(Fo,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=i,!1)}],["links",function(t,e){var r,n,o,i,a,s,l,d,c=!1,p=t.pos,u=t.posMax,h=t.pos,m=t.src.charCodeAt(h);if(33===m&&(c=!0,m=t.src.charCodeAt(++h)),91!==m)return!1;if(t.level>=t.options.maxNesting)return!1;if(r=h+1,(n=ro(t,h))<0)return!1;if((s=n+1)<u&&40===t.src.charCodeAt(s)){for(s++;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);if(s>=u)return!1;for(h=s,io(t,s)?(i=t.linkContent,s=t.pos):i="",h=s;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);if(s<u&&h!==s&&ao(t,s))for(a=t.linkContent,s=t.pos;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);else a="";if(s>=u||41!==t.src.charCodeAt(s))return t.pos=p,!1;s++}else{if(t.linkLevel>0)return!1;for(;s<u&&(32===(d=t.src.charCodeAt(s))||10===d);s++);if(s<u&&91===t.src.charCodeAt(s)&&(h=s+1,(s=ro(t,s))>=0?o=t.src.slice(h,s++):s=h-1),o||(void 0===o&&(s=n+1),o=t.src.slice(r,n)),!(l=t.env.references[so(o)]))return t.pos=p,!1;i=l.href,a=l.title}return e||(t.pos=r,t.posMax=n,c?t.push({type:"image",src:i,title:a,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:i,title:a,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=s,t.posMax=u,!0}],["footnote_inline",function(t,e){var r,n,o,i,a=t.posMax,s=t.pos;return!(s+2>=a||94!==t.src.charCodeAt(s)||91!==t.src.charCodeAt(s+1)||t.level>=t.options.maxNesting||(r=s+2,(n=ro(t,s+1))<0||(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),o=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:o,level:t.level}),t.linkLevel++,i=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[o]={tokens:t.tokens.splice(i)},t.linkLevel--),t.pos=n+1,t.posMax=a,0)))}],["footnote_ref",function(t,e){var r,n,o,i,a=t.posMax,s=t.pos;if(s+3>a)return!1;if(!t.env.footnotes||!t.env.footnotes.refs)return!1;if(91!==t.src.charCodeAt(s))return!1;if(94!==t.src.charCodeAt(s+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(n=s+2;n<a;n++){if(32===t.src.charCodeAt(n))return!1;if(10===t.src.charCodeAt(n))return!1;if(93===t.src.charCodeAt(n))break}return!(n===s+2||n>=a||(n++,r=t.src.slice(s+2,n-1),void 0===t.env.footnotes.refs[":"+r]||(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(o=t.env.footnotes.list.length,t.env.footnotes.list[o]={label:r,count:0},t.env.footnotes.refs[":"+r]=o):o=t.env.footnotes.refs[":"+r],i=t.env.footnotes.list[o].count,t.env.footnotes.list[o].count++,t.push({type:"footnote_ref",id:o,subId:i,level:t.level})),t.pos=n,t.posMax=a,0)))}],["autolink",function(t,e){var r,n,o,i,a,s=t.pos;return!(60!==t.src.charCodeAt(s)||(r=t.src.slice(s)).indexOf(">")<0||((n=r.match(qo))?jo.indexOf(n[1].toLowerCase())<0||(a=oo(i=n[0].slice(1,-1)),!t.parser.validateLink(i)||(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,0)):!(o=r.match(Po))||(a=oo("mailto:"+(i=o[0].slice(1,-1))),!t.parser.validateLink(a)||(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,0))))}],["htmltag",function(t,e){var r,n,o,i=t.pos;return!(!t.options.html||(o=t.posMax,60!==t.src.charCodeAt(i)||i+2>=o||33!==(r=t.src.charCodeAt(i+1))&&63!==r&&47!==r&&!function(t){var e=32|t;return e>=97&&e<=122}(r)||!(n=t.src.slice(i).match(Qo))||(e||t.push({type:"htmltag",content:t.src.slice(i,i+n[0].length),level:t.level}),t.pos+=n[0].length,0)))}],["entity",function(t,e){var r,n,o=t.pos,i=t.posMax;if(38!==t.src.charCodeAt(o))return!1;if(o+1<i)if(35===t.src.charCodeAt(o+1)){if(n=t.src.slice(o).match(Yo))return e||(r="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),t.pending+=Rn(r)?$n(r):$n(65533)),t.pos+=n[0].length,!0}else if(n=t.src.slice(o).match(Jo)){var a=Nn(n[1]);if(n[1]!==a)return e||(t.pending+=a),t.pos+=n[0].length,!0}return e||(t.pending+="&"),t.pos++,!0}]];function Xo(){this.ruler=new to;for(var t=0;t<Ko.length;t++)this.ruler.push(Ko[t][0],Ko[t][1]);this.validateLink=ti}function ti(t){var e=t.trim().toLowerCase();return-1===(e=qn(e)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(e.split(":")[0])}Xo.prototype.skipToken=function(t){var e,r,n=this.ruler.getRules(""),o=n.length,i=t.pos;if((r=t.cacheGet(i))>0)t.pos=r;else{for(e=0;e<o;e++)if(n[e](t,!0))return void t.cacheSet(i,t.pos);t.pos++,t.cacheSet(i,t.pos)}},Xo.prototype.tokenize=function(t){for(var e,r,n=this.ruler.getRules(""),o=n.length,i=t.posMax;t.pos<i;){for(r=0;r<o&&!(e=n[r](t,!1));r++);if(e){if(t.pos>=i)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Xo.prototype.parse=function(t,e,r,n){var o=new eo(t,this,e,r,n);this.tokenize(o)};var ei={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function ri(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function ni(t,e){"string"!=typeof t&&(e=t,t="default"),e&&null!=e.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new Xo,this.block=new Lo,this.core=new Co,this.renderer=new Xn,this.ruler=new to,this.options={},this.configure(ei[t]),this.set(e||{})}ni.prototype.set=function(t){Dn(this.options,t)},ni.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)}))},ni.prototype.use=function(t,e){return t(this,e),this},ni.prototype.parse=function(t,e){var r=new ri(this,t,e);return this.core.process(r),r.tokens},ni.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},ni.prototype.parseInline=function(t,e){var r=new ri(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens},ni.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const oi=["block","inline","abbr","abbr2","references","footnote_tail","replacements","smartquotes"],ii=["text","newline","backticks","del","emphasis","sub","sup","links","escape","ins","mark","footnote_inline","footnote_ref","autolink","htmltag","entity"],ai=["code","fences","blockquote","list","heading","paragraph","hr","footnote","lheading","htmlblock","table","deflist"],si={core:["block","inline"],inline:["text","newline","backticks","del","emphasis","sub","sup","links","escape","ins","footnote_inline","footnote_ref","autolink"],block:["code","fences","blockquote","list","heading","paragraph","footnote","htmlblock"]},li=tt("enriched-text");class di extends(Ht({componentName:li,baseSelector:":host > div"})){#W;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <style>\n :host {\n display: inline-block;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n *, *:last-child {\n margin: 0;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin-bottom: 1em;\n }\n a {\n text-decoration: none;\n cursor: pointer;\n }\n a:hover {\n text-decoration: underline;\n }\n blockquote {\n padding: 0 2em;\n }\n </style>\n <slot part="text-wrapper" style="display:none"></slot>\n <div class="content"></div>\n ',this.textSlot=this.shadowRoot.querySelector("slot"),this.#B(),J(this,this.#R.bind(this))}static get observedAttributes(){return["readonly"]}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),r!==e&&"readonly"===t&&this.onReadOnlyChange("true"===r)}#$(){this.processor&&(oi&&this.processor.core.ruler.disable(oi),ii&&this.processor.inline.ruler.disable(ii),ai&&this.processor.block.ruler.disable(ai),this.processor.renderer.rules.image=()=>"")}#F(){if(!this.processor)return;const t=si;t?.core&&this.processor?.core.ruler.enable(t?.core),t?.inline&&this.processor?.inline.ruler.enable(t?.inline),t?.block&&this.processor?.block.ruler.enable(t?.block),t?.custom?.includes("image")&&(this.processor.renderer.rules.image=this.#W)}#j(){this.#$(),this.#F()}#B(){this.processor=new ni,this.#W=this.processor.renderer.rules.image,this.#j()}get contentNode(){return this.shadowRoot.querySelector(".content")}#R(){if(!this.processor)return;let t=this.textContent;try{const e=this.processor.parse(this.textContent);t=this.processor.renderer.render(e,{breaks:!0})}catch(t){console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=t}onReadOnlyChange(t){t?this.contentNode.setAttribute("inert",t):this.contentNode.removeAttribute("inert")}}const ci=Z(Wt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"}}}),Wt({componentNameOverride:tt("link")}),Bt,Rt)(di),pi=tt("link");class ui extends(Ht({componentName:pi,baseSelector:":host a"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t\t:host a {\n\t\t\tdisplay: inline;\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t:host a:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t</style>\n\t\t<div>\n\t\t\t<descope-text>\n\t\t\t\t<a>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</a>\n\t\t\t</descope-text>\n\t\t</div>\n\t\t",rt(this,this.shadowRoot.querySelector("a"),{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),rt(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]})}}const hi={host:{selector:()=>":host"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>In.componentName}},{anchor:mi,text:fi,host:bi,wrapper:gi}=hi,yi=Z(Wt({mappings:{hostWidth:{...bi,property:"width"},hostDirection:{...fi,property:"direction"},textAlign:gi,textColor:[{...mi,property:"color"},{...fi,property:In.cssVarList.textColor}],cursor:mi}}),Bt,Rt)(ui),vi=dt(Nt),xi=ci.cssVarList,Ci={[xi.hostDirection]:vi.direction,[xi.fontSize]:vi.typography.body1.size,[xi.fontWeight]:vi.typography.body1.weight,[xi.fontFamily]:vi.typography.body1.font,[xi.textLineHeight]:"1.35em",[xi.textAlign]:"left",[xi.textColor]:vi.colors.surface.dark,[xi.linkColor]:`var(${yi.cssVarList.textColor})`,mode:{primary:{[xi.textColor]:vi.colors.surface.contrast},secondary:{[xi.textColor]:vi.colors.surface.dark},error:{[xi.textColor]:vi.colors.error.main},success:{[xi.textColor]:vi.colors.success.main}},variant:{h1:{[xi.fontSize]:vi.typography.h1.size,[xi.fontWeight]:vi.typography.h1.weight,[xi.fontFamily]:vi.typography.h1.font},h2:{[xi.fontSize]:vi.typography.h2.size,[xi.fontWeight]:vi.typography.h2.weight,[xi.fontFamily]:vi.typography.h2.font},h3:{[xi.fontSize]:vi.typography.h3.size,[xi.fontWeight]:vi.typography.h3.weight,[xi.fontFamily]:vi.typography.h3.font},subtitle1:{[xi.fontSize]:vi.typography.subtitle1.size,[xi.fontWeight]:vi.typography.subtitle1.weight,[xi.fontFamily]:vi.typography.subtitle1.font},subtitle2:{[xi.fontSize]:vi.typography.subtitle2.size,[xi.fontWeight]:vi.typography.subtitle2.weight,[xi.fontFamily]:vi.typography.subtitle2.font},body1:{[xi.fontSize]:vi.typography.body1.size,[xi.fontWeight]:vi.typography.body1.weight,[xi.fontFamily]:vi.typography.body1.font},body2:{[xi.fontSize]:vi.typography.body2.size,[xi.fontWeight]:vi.typography.body2.weight,[xi.fontFamily]:vi.typography.body2.font}},textAlign:{right:{[xi.textAlign]:"right"},left:{[xi.textAlign]:"left"},center:{[xi.textAlign]:"center"}},_fullWidth:{[xi.hostWidth]:"100%"}},wi=dt(Nt),ki=yi.cssVarList,Si={[ki.hostDirection]:wi.direction,[ki.cursor]:"pointer",[ki.textColor]:wi.colors.primary.main,textAlign:{right:{[ki.textAlign]:"right"},left:{[ki.textAlign]:"left"},center:{[ki.textAlign]:"center"}},_fullWidth:{[ki.hostWidth]:"100%"},mode:{primary:{[ki.textColor]:wi.colors.primary.main},secondary:{[ki.textColor]:wi.colors.secondary.main},error:{[ki.textColor]:wi.colors.error.main},success:{[ki.textColor]:wi.colors.success.main}}},Mi=tt("divider");class Ai extends(Ht({componentName:Mi,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t:host > div::before,\n\t\t\t\t:host > div::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t\tdescope-text {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t\t:host(:empty) descope-text {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t\t:host([vertical=\"true\"]) div {\n\t\t\t\t\twidth: fit-content;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div>\n\t\t\t\t<descope-text>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</descope-text>\n\t\t\t</div>\n\t\t",this.textComponent=this.shadowRoot.querySelector("descope-text"),rt(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const Ti=In.cssVarList,{host:Ei,before:Ii,after:_i,text:Li}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},zi=Z(Wt({mappings:{hostWidth:{...Ei,property:"width"},hostPadding:{...Ei,property:"padding"},hostDirection:{...Li,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Li,property:Ti.textAlign},labelTextWidth:{...Li,property:"width"},labelTextMaxWidth:{...Li,property:"max-width"},labelTextVerticalSpacing:[{...Li,property:"padding-top"},{...Li,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Li,property:"padding-right"},{...Li,property:"padding-left"}],stripeColor:[{...Ii,property:"background-color"},{..._i,property:"background-color"}],stripeHorizontalThickness:[{...Ii,property:"height"},{..._i,property:"height"}],stripeVerticalThickness:[{...Ii,property:"width"},{..._i,property:"width"}],stripeColorOpacity:[{...Ii,property:"opacity"},{..._i,property:"opacity"}]}}),Bt,Rt)(Ai),Oi=dt(Nt),Ni=zi.cssVarList,[Vi,Di,Wi]=ft({thickness:"2px",spacing:"10px"},Mi),Bi={...Vi,[Ni.hostDirection]:Oi.direction,[Ni.alignItems]:"center",[Ni.flexDirection]:"row",[Ni.alignSelf]:"stretch",[Ni.hostWidth]:"100%",[Ni.stripeColor]:Oi.colors.surface.light,[Ni.stripeColorOpacity]:"0.5",[Ni.stripeHorizontalThickness]:Di.thickness,[Ni.labelTextWidth]:"fit-content",[Ni.labelTextMaxWidth]:"calc(100% - 100px)",[Ni.labelTextHorizontalSpacing]:Di.spacing,[Ni.textAlign]:"center",_vertical:{[Ni.minHeight]:"200px",[Ni.flexDirection]:"column",[Ni.hostWidth]:"fit-content",[Ni.hostPadding]:`0 calc(${Di.thickness} * 3)`,[Ni.stripeVerticalThickness]:Di.thickness,[Ni.labelTextWidth]:"fit-content",[Ni.labelTextMaxWidth]:"100%",[Ni.labelTextVerticalSpacing]:Di.spacing}},Ri={...Ni,...Wi},$i=tt("passcode-internal");Lr({componentName:$i,baseSelector:"div"});const Fi=tt("loader-radial");class ji extends(Ht({componentName:Fi,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t@keyframes spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tanimation-name: spin;\n\t\t\t}\n\t\t</style>\n\t\t<div></div>\n\t"}}const Pi=Z(Wt({mappings:{hostDisplay:{property:"display"},spinnerSize:[{property:"width"},{property:"height"}],spinnerBorderWidth:{property:"border-width"},spinnerBorderStyle:{property:"border-style"},spinnerBorderRadius:{property:"border-radius"},spinnerQuadrant1Color:{property:"border-top-color"},spinnerQuadrant2Color:{property:"border-bottom-color"},spinnerQuadrant3Color:{property:"border-right-color"},spinnerQuadrant4Color:{property:"border-left-color"},animationDuration:{},animationTimingFunction:{},animationIterationCount:{}}}),Bt,Rt)(ji),qi=tt("passcode"),Hi=["digits"],{host:Ui,digitField:Gi,label:Zi,requiredIndicator:Qi,internalWrapper:Yi,focusedDigitField:Ji,errorMessage:Ki}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${$e.componentName}[focused="true"]`},digitField:{selector:()=>$e.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},Xi=$e.cssVarList,ta=Pi.cssVarList,ea=Z(Wt({mappings:{fontSize:[{...Gi,property:Xi.fontSize},Ui],hostWidth:{property:"width"},hostDirection:{...Ui,property:"direction"},fontFamily:[Ui,{...Zi}],labelTextColor:[{...Zi,property:"color"},{...Qi,property:"color"}],labelRequiredIndicator:{...Qi,property:"content"},errorMessageTextColor:{...Ki,property:"color"},digitValueTextColor:{selector:$e.componentName,property:Xi.inputValueTextColor},digitSize:[{...Gi,property:"height"},{...Gi,property:"width"}],digitPadding:{...Gi,property:Xi.inputHorizontalPadding},digitTextAlign:{...Gi,property:Xi.inputTextAlign},digitCaretTextColor:{...Gi,property:Xi.inputCaretTextColor},digitSpacing:{...Yi,property:"gap"},digitOutlineColor:{...Gi,property:Xi.inputOutlineColor},digitOutlineWidth:{...Gi,property:Xi.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Ji,property:Xi.inputOutlineColor},overlayOpacity:{...Yi,property:"opacity"},spinnerSize:{selector:Pi.componentName,property:ta.spinnerSize}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,(t=>class extends t{static get observedAttributes(){return Hi.concat(t.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${$i}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n ><slot></slot></${$i}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector($i),rt(this,this.inputElement,{includeAttrs:["digits","size","loading"]})}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"digits"===t&&this.style.setProperty("--passcode-digits-count",r)}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: calc(var(--passcode-digits-count) * 2em);\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n :host([loading="true"]) descope-passcode-internal .loader-container {\n display: block;\n }\n\n\t\t\tdescope-passcode-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal .wrapper {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: initial;\n\t\t\t\theight: 100%;\n\t\t\t\tjustify-content: space-between;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal descope-text-field {\n\t\t\t\tmin-width: 2em;\n\t\t\t\tmax-width: var(${Xi.inputHeight});\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${We("vaadin-text-field")}\n\t\t\t${ze("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex"],componentName:qi})).cssVarList,ra={[ea.hostDirection]:qe.direction,[ea.fontFamily]:qe.fontFamily,[ea.fontSize]:qe.fontSize,[ea.labelTextColor]:qe.labelTextColor,[ea.labelRequiredIndicator]:qe.requiredIndicator,[ea.errorMessageTextColor]:qe.errorMessageTextColor,[ea.digitValueTextColor]:qe.valueTextColor,[ea.digitPadding]:"0",[ea.digitTextAlign]:"center",[ea.digitSpacing]:"4px",[ea.hostWidth]:qe.width,[ea.digitOutlineColor]:"transparent",[ea.digitOutlineWidth]:qe.outlineWidth,[ea.focusedDigitFieldOutlineColor]:qe.outlineColor,[ea.digitSize]:qe.inputHeight,size:{xs:{[ea.spinnerSize]:"15px"},sm:{[ea.spinnerSize]:"20px"},md:{[ea.spinnerSize]:"20px"},lg:{[ea.spinnerSize]:"20px"}},_hideCursor:{[ea.digitCaretTextColor]:"transparent"},_loading:{[ea.overlayOpacity]:qe.overlayOpacity}},na=tt("loader-linear");class oa extends(Ht({componentName:na,baseSelector:":host > div"})){static get componentName(){return na}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t@keyframes tilt {\n\t\t\t\t0% { transform: translateX(0); }\n\t\t\t\t50% { transform: translateX(400%); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\tdiv::after {\n\t\t\t\tcontent: '';\n\t\t\t\tanimation-name: tilt;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t</style>\n\t\t<div></div>\n\t"}}const{after:ia,host:aa}={after:{selector:"::after"},host:{selector:()=>":host"}},sa=Z(Wt({mappings:{hostDisplay:{},hostWidth:{...aa,property:"width"},barHeight:[{property:"height"},{...ia,property:"height"}],barBorderRadius:[{property:"border-radius"},{...ia,property:"border-radius"}],verticalPadding:[{...aa,property:"padding-top"},{...aa,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...ia,property:"background-color"},barWidth:{...ia,property:"width"},animationDuration:[{},ia],animationTimingFunction:[{},ia],animationIterationCount:[{},ia]}}),Bt,Rt)(oa),la=dt(Nt),da=sa.cssVarList,ca={[da.hostDisplay]:"inline-block",[da.hostWidth]:"100%",[da.barColor]:la.colors.surface.contrast,[da.barWidth]:"20%",[da.barBackgroundColor]:la.colors.surface.light,[da.barBorderRadius]:"4px",[da.animationDuration]:"2s",[da.animationTimingFunction]:"linear",[da.animationIterationCount]:"infinite",[da.verticalPadding]:"0.25em",size:{xs:{[da.barHeight]:"2px"},sm:{[da.barHeight]:"4px"},md:{[da.barHeight]:"6px"},lg:{[da.barHeight]:"8px"}},mode:{primary:{[da.barColor]:la.colors.primary.main},secondary:{[da.barColor]:la.colors.secondary.main}},_hidden:{[da.hostDisplay]:"none"}},pa=dt(Nt),ua=Pi.cssVarList,[ha,ma,fa]=ft({spinnerColor:pa.colors.surface.contrast,mode:{primary:{spinnerColor:pa.colors.primary.main},secondary:{spinnerColor:pa.colors.secondary.main}}},Fi),ba={...ha,[ua.animationDuration]:"2s",[ua.animationTimingFunction]:"linear",[ua.animationIterationCount]:"infinite",[ua.spinnerBorderStyle]:"solid",[ua.spinnerBorderWidth]:"0.2em",[ua.spinnerBorderRadius]:"50%",[ua.spinnerQuadrant1Color]:ma.spinnerColor,[ua.spinnerQuadrant2Color]:"transparent",[ua.spinnerQuadrant3Color]:ma.spinnerColor,[ua.spinnerQuadrant4Color]:"transparent",size:{xs:{[ua.spinnerSize]:"20px"},sm:{[ua.spinnerSize]:"30px"},md:{[ua.spinnerSize]:"40px"},lg:{[ua.spinnerSize]:"60px"},xl:{[ua.spinnerSize]:"80px"}},_hidden:{[ua.hostDisplay]:"none"}},ga={...ua,...fa},ya=tt("combo-box"),{host:va,inputField:xa,inputElement:Ca,placeholder:wa,toggle:ka,clearButton:Sa,label:Ma,requiredIndicator:Aa,helperText:Ta,errorMessage:Ea}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ia=Z(Wt({mappings:{hostWidth:{...va,property:"width"},hostDirection:{...va,property:"direction"},fontSize:[{},va],fontFamily:[Ma,wa,xa,Ta,Ea],labelTextColor:[{...Ma,property:"color"},{...Aa,property:"color"}],errorMessageTextColor:{...Ea,property:"color"},inputHeight:{...xa,property:"height"},inputBackgroundColor:{...xa,property:"background-color"},inputBorderColor:{...xa,property:"border-color"},inputBorderWidth:{...xa,property:"border-width"},inputBorderStyle:{...xa,property:"border-style"},inputBorderRadius:{...xa,property:"border-radius"},labelRequiredIndicator:{...Aa,property:"content"},inputValueTextColor:{...xa,property:"color"},inputPlaceholderTextColor:{...wa,property:"color"},inputDropdownButtonCursor:[{...ka,property:"cursor"},{...Sa,property:"cursor"}],inputDropdownButtonColor:[{...ka,property:"color"},{...Sa,property:"color"}],inputDropdownButtonSize:[{...ka,property:"font-size"},{...Sa,property:"font-size"}],inputDropdownButtonOffset:[{...ka,property:"margin-right"},{...ka,property:"margin-left"}],inputOutlineColor:{...xa,property:"outline-color"},inputOutlineWidth:{...xa,property:"outline-width"},inputOutlineStyle:{...xa,property:"outline-style"},inputOutlineOffset:{...xa,property:"outline-offset"},inputHorizontalPadding:[{...Ca,property:"padding-left"},{...Ca,property:"padding-right"}],overlayBackground:{property:()=>Ia.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Ia.cssVarList.overlay.textColor},overlayBorder:{property:()=>Ia.cssVarList.overlay.border},overlayFontSize:{property:()=>Ia.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Ia.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Ia.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Ia.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Ia.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Ia.cssVarList.overlay.itemPaddingInlineEnd}}}),Bt,te({name:"overlay",selector:"",mappings:{backgroundColor:{selector:"vaadin-combo-box-scroller"},minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Kt({proxyProps:["selectionStart"],inputEvent:"selected-item-changed"}),Rt,(t=>class extends t{#P=({displayName:t,value:e,label:r})=>`<span data-name="${r}" data-id="${e}">${t||r}</span>`;#q;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#P}set renderItem(t){this.#P=t,this.renderItems()}get data(){if(this.#q)return this.#q;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#q=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.(((t,e)=>t+(this.renderItem?.(e||{})||"")),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}handleSelectedItem(){const t=this.baseElement.selectedItem?.["data-id"];this.baseElement.selectedItem=void 0,t&&(this.value=t),this.value||this.setDefaultValue()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(r){if(!e.baseElement.items?.length)return;const n=e.customValueTransformFn(r)||"";n!==this.value&&t.set.call(this,n)}}})}#H(){const t=this.shadowRoot.querySelector(this.baseSelector),e=Array.from(this.children);e.length&&(e.forEach((t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})})),t.items=e,setTimeout((()=>{this.handleSelectedItem()}),0)),t.renderer=(t,e,r)=>{t.innerHTML=r.item.outerHTML}}#U(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}init(){super.init?.(),this.getValidity=function(){return!this.value&&this.isRequired?{valueMissing:!0}:{}},this.setComboBoxDescriptor(),this.#U(),this.renderItems(),Y(this,this.renderItems.bind(this),{includeAttrs:["data"]}),J(this,this.#H.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("selected-item-changed",(()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}))}setDefaultValue(){this.value=this.defaultValue}set value(t){if(t){const e=this.baseElement.items?.find((e=>e["data-id"]===t));e&&(this.baseElement.selectedItem=e)}else this.baseElement.selectedItem=void 0}get value(){return this.baseElement.selectedItem?.["data-id"]||""}}))(Ut({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${Ie(Ia.cssVarList)}\n\t\t${Ne("vaadin-combo-box")}\n\t\t${Oe("vaadin-combo-box")}\n\t\t${ze("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${We("vaadin-combo-box")}\n\t\t`,excludeAttrsSync:["tabindex","size","data"],componentName:ya,includeForwardProps:["items","renderer","selectedItem"]})),_a=dt(Nt),La=Ia.cssVarList,za={[La.hostWidth]:qe.width,[La.hostDirection]:qe.direction,[La.fontSize]:qe.fontSize,[La.fontFamily]:qe.fontFamily,[La.labelTextColor]:qe.labelTextColor,[La.errorMessageTextColor]:qe.errorMessageTextColor,[La.inputBorderColor]:qe.borderColor,[La.inputBorderWidth]:qe.borderWidth,[La.inputBorderStyle]:qe.borderStyle,[La.inputBorderRadius]:qe.borderRadius,[La.inputOutlineColor]:qe.outlineColor,[La.inputOutlineOffset]:qe.outlineOffset,[La.inputOutlineWidth]:qe.outlineWidth,[La.inputOutlineStyle]:qe.outlineStyle,[La.labelRequiredIndicator]:qe.requiredIndicator,[La.inputValueTextColor]:qe.valueTextColor,[La.inputPlaceholderTextColor]:qe.placeholderTextColor,[La.inputBackgroundColor]:qe.backgroundColor,[La.inputHorizontalPadding]:qe.horizontalPadding,[La.inputHeight]:qe.inputHeight,[La.inputDropdownButtonColor]:_a.colors.surface.dark,[La.inputDropdownButtonCursor]:"pointer",[La.inputDropdownButtonSize]:qe.toggleButtonSize,[La.inputDropdownButtonOffset]:_a.spacing.xs,[La.overlayItemPaddingInlineStart]:_a.spacing.xs,[La.overlayItemPaddingInlineEnd]:_a.spacing.lg,_readonly:{[La.inputDropdownButtonCursor]:"default"},[La.overlayFontSize]:qe.fontSize,[La.overlayFontFamily]:qe.fontFamily,[La.overlayCursor]:"pointer",[La.overlayItemBoxShadow]:"none",[La.overlayBackground]:qe.backgroundColor,[La.overlayTextColor]:qe.valueTextColor,[La.overlay.minHeight]:"400px",[La.overlay.margin]:"0"},Oa=za,Na=["src","alt"],Va=tt("image"),Da=Ht({componentName:Va,baseSelector:":host > img"}),Wa=Z(Wt({mappings:{height:{selector:()=>":host"},width:{selector:()=>":host"}}}),Bt)(class extends Da{static get observedAttributes(){return Na.concat(Da.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n\t\t\t:host > img {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t</style>\n\t\t<img/>\n\t"}connectedCallback(){super.connectedCallback?.(),rt(this,this.baseElement,{includeAttrs:Na})}}).cssVarList,Ba={},Ra=[{name:"United States",dialCode:"+1",code:"US"},...[{name:"Afghanistan",dialCode:"+93",code:"AF"},{name:"Aland Islands",dialCode:"+358",code:"AX"},{name:"Albania",dialCode:"+355",code:"AL"},{name:"Algeria",dialCode:"+213",code:"DZ"},{name:"AmericanSamoa",dialCode:"+1684",code:"AS"},{name:"Andorra",dialCode:"+376",code:"AD"},{name:"Angola",dialCode:"+244",code:"AO"},{name:"Anguilla",dialCode:"+1264",code:"AI"},{name:"Antarctica",dialCode:"+672",code:"AQ"},{name:"Antigua and Barbuda",dialCode:"+1268",code:"AG"},{name:"Argentina",dialCode:"+54",code:"AR"},{name:"Armenia",dialCode:"+374",code:"AM"},{name:"Aruba",dialCode:"+297",code:"AW"},{name:"Australia",dialCode:"+61",code:"AU"},{name:"Austria",dialCode:"+43",code:"AT"},{name:"Azerbaijan",dialCode:"+994",code:"AZ"},{name:"Bahamas",dialCode:"+1242",code:"BS"},{name:"Bahrain",dialCode:"+973",code:"BH"},{name:"Bangladesh",dialCode:"+880",code:"BD"},{name:"Barbados",dialCode:"+1246",code:"BB"},{name:"Belarus",dialCode:"+375",code:"BY"},{name:"Belgium",dialCode:"+32",code:"BE"},{name:"Belize",dialCode:"+501",code:"BZ"},{name:"Benin",dialCode:"+229",code:"BJ"},{name:"Bermuda",dialCode:"+1441",code:"BM"},{name:"Bhutan",dialCode:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dialCode:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dialCode:"+387",code:"BA"},{name:"Botswana",dialCode:"+267",code:"BW"},{name:"Brazil",dialCode:"+55",code:"BR"},{name:"British Indian Ocean Territory",dialCode:"+246",code:"IO"},{name:"Brunei Darussalam",dialCode:"+673",code:"BN"},{name:"Bulgaria",dialCode:"+359",code:"BG"},{name:"Burkina Faso",dialCode:"+226",code:"BF"},{name:"Burundi",dialCode:"+257",code:"BI"},{name:"Cambodia",dialCode:"+855",code:"KH"},{name:"Cameroon",dialCode:"+237",code:"CM"},{name:"Canada",dialCode:"+1",code:"CA"},{name:"Cape Verde",dialCode:"+238",code:"CV"},{name:"Cayman Islands",dialCode:"+345",code:"KY"},{name:"Central African Republic",dialCode:"+236",code:"CF"},{name:"Chad",dialCode:"+235",code:"TD"},{name:"Chile",dialCode:"+56",code:"CL"},{name:"China",dialCode:"+86",code:"CN"},{name:"Christmas Island",dialCode:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dialCode:"+61",code:"CC"},{name:"Colombia",dialCode:"+57",code:"CO"},{name:"Comoros",dialCode:"+269",code:"KM"},{name:"Congo",dialCode:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dialCode:"+243",code:"CD"},{name:"Cook Islands",dialCode:"+682",code:"CK"},{name:"Costa Rica",dialCode:"+506",code:"CR"},{name:"Cote d'Ivoire",dialCode:"+225",code:"CI"},{name:"Croatia",dialCode:"+385",code:"HR"},{name:"Cuba",dialCode:"+53",code:"CU"},{name:"Cyprus",dialCode:"+357",code:"CY"},{name:"Czech Republic",dialCode:"+420",code:"CZ"},{name:"Denmark",dialCode:"+45",code:"DK"},{name:"Djibouti",dialCode:"+253",code:"DJ"},{name:"Dominica",dialCode:"+1767",code:"DM"},{name:"Dominican Republic",dialCode:"+1849",code:"DO"},{name:"Ecuador",dialCode:"+593",code:"EC"},{name:"Egypt",dialCode:"+20",code:"EG"},{name:"El Salvador",dialCode:"+503",code:"SV"},{name:"Equatorial Guinea",dialCode:"+240",code:"GQ"},{name:"Eritrea",dialCode:"+291",code:"ER"},{name:"Estonia",dialCode:"+372",code:"EE"},{name:"Ethiopia",dialCode:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dialCode:"+500",code:"FK"},{name:"Faroe Islands",dialCode:"+298",code:"FO"},{name:"Fiji",dialCode:"+679",code:"FJ"},{name:"Finland",dialCode:"+358",code:"FI"},{name:"France",dialCode:"+33",code:"FR"},{name:"French Guiana",dialCode:"+594",code:"GF"},{name:"French Polynesia",dialCode:"+689",code:"PF"},{name:"Gabon",dialCode:"+241",code:"GA"},{name:"Gambia",dialCode:"+220",code:"GM"},{name:"Georgia",dialCode:"+995",code:"GE"},{name:"Germany",dialCode:"+49",code:"DE"},{name:"Ghana",dialCode:"+233",code:"GH"},{name:"Gibraltar",dialCode:"+350",code:"GI"},{name:"Greece",dialCode:"+30",code:"GR"},{name:"Greenland",dialCode:"+299",code:"GL"},{name:"Grenada",dialCode:"+1473",code:"GD"},{name:"Guadeloupe",dialCode:"+590",code:"GP"},{name:"Guam",dialCode:"+1671",code:"GU"},{name:"Guatemala",dialCode:"+502",code:"GT"},{name:"Guernsey",dialCode:"+44",code:"GG"},{name:"Guinea",dialCode:"+224",code:"GN"},{name:"Guinea-Bissau",dialCode:"+245",code:"GW"},{name:"Guyana",dialCode:"+595",code:"GY"},{name:"Haiti",dialCode:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dialCode:"+379",code:"VA"},{name:"Honduras",dialCode:"+504",code:"HN"},{name:"Hong Kong",dialCode:"+852",code:"HK"},{name:"Hungary",dialCode:"+36",code:"HU"},{name:"Iceland",dialCode:"+354",code:"IS"},{name:"India",dialCode:"+91",code:"IN"},{name:"Indonesia",dialCode:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dialCode:"+98",code:"IR"},{name:"Iraq",dialCode:"+964",code:"IQ"},{name:"Ireland",dialCode:"+353",code:"IE"},{name:"Isle of Man",dialCode:"+44",code:"IM"},{name:"Israel",dialCode:"+972",code:"IL"},{name:"Italy",dialCode:"+39",code:"IT"},{name:"Jamaica",dialCode:"+1876",code:"JM"},{name:"Japan",dialCode:"+81",code:"JP"},{name:"Jersey",dialCode:"+44",code:"JE"},{name:"Jordan",dialCode:"+962",code:"JO"},{name:"Kazakhstan",dialCode:"+77",code:"KZ"},{name:"Kenya",dialCode:"+254",code:"KE"},{name:"Kiribati",dialCode:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dialCode:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dialCode:"+82",code:"KR"},{name:"Kuwait",dialCode:"+965",code:"KW"},{name:"Kyrgyzstan",dialCode:"+996",code:"KG"},{name:"Laos",dialCode:"+856",code:"LA"},{name:"Latvia",dialCode:"+371",code:"LV"},{name:"Lebanon",dialCode:"+961",code:"LB"},{name:"Lesotho",dialCode:"+266",code:"LS"},{name:"Liberia",dialCode:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dialCode:"+218",code:"LY"},{name:"Liechtenstein",dialCode:"+423",code:"LI"},{name:"Lithuania",dialCode:"+370",code:"LT"},{name:"Luxembourg",dialCode:"+352",code:"LU"},{name:"Macao",dialCode:"+853",code:"MO"},{name:"Macedonia",dialCode:"+389",code:"MK"},{name:"Madagascar",dialCode:"+261",code:"MG"},{name:"Malawi",dialCode:"+265",code:"MW"},{name:"Malaysia",dialCode:"+60",code:"MY"},{name:"Maldives",dialCode:"+960",code:"MV"},{name:"Mali",dialCode:"+223",code:"ML"},{name:"Malta",dialCode:"+356",code:"MT"},{name:"Marshall Islands",dialCode:"+692",code:"MH"},{name:"Martinique",dialCode:"+596",code:"MQ"},{name:"Mauritania",dialCode:"+222",code:"MR"},{name:"Mauritius",dialCode:"+230",code:"MU"},{name:"Mayotte",dialCode:"+262",code:"YT"},{name:"Mexico",dialCode:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dialCode:"+691",code:"FM"},{name:"Moldova",dialCode:"+373",code:"MD"},{name:"Monaco",dialCode:"+377",code:"MC"},{name:"Mongolia",dialCode:"+976",code:"MN"},{name:"Montenegro",dialCode:"+382",code:"ME"},{name:"Montserrat",dialCode:"+1664",code:"MS"},{name:"Morocco",dialCode:"+212",code:"MA"},{name:"Mozambique",dialCode:"+258",code:"MZ"},{name:"Myanmar",dialCode:"+95",code:"MM"},{name:"Namibia",dialCode:"+264",code:"NA"},{name:"Nauru",dialCode:"+674",code:"NR"},{name:"Nepal",dialCode:"+977",code:"NP"},{name:"Netherlands",dialCode:"+31",code:"NL"},{name:"Netherlands Antilles",dialCode:"+599",code:"AN"},{name:"New Caledonia",dialCode:"+687",code:"NC"},{name:"New Zealand",dialCode:"+64",code:"NZ"},{name:"Nicaragua",dialCode:"+505",code:"NI"},{name:"Niger",dialCode:"+227",code:"NE"},{name:"Nigeria",dialCode:"+234",code:"NG"},{name:"Niue",dialCode:"+683",code:"NU"},{name:"Norfolk Island",dialCode:"+672",code:"NF"},{name:"Northern Mariana Islands",dialCode:"+1670",code:"MP"},{name:"Norway",dialCode:"+47",code:"NO"},{name:"Oman",dialCode:"+968",code:"OM"},{name:"Pakistan",dialCode:"+92",code:"PK"},{name:"Palau",dialCode:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dialCode:"+970",code:"PS"},{name:"Panama",dialCode:"+507",code:"PA"},{name:"Papua New Guinea",dialCode:"+675",code:"PG"},{name:"Paraguay",dialCode:"+595",code:"PY"},{name:"Peru",dialCode:"+51",code:"PE"},{name:"Philippines",dialCode:"+63",code:"PH"},{name:"Pitcairn",dialCode:"+872",code:"PN"},{name:"Poland",dialCode:"+48",code:"PL"},{name:"Portugal",dialCode:"+351",code:"PT"},{name:"Puerto Rico",dialCode:"+1939",code:"PR"},{name:"Qatar",dialCode:"+974",code:"QA"},{name:"Romania",dialCode:"+40",code:"RO"},{name:"Russia",dialCode:"+7",code:"RU"},{name:"Rwanda",dialCode:"+250",code:"RW"},{name:"Reunion",dialCode:"+262",code:"RE"},{name:"Saint Barthelemy",dialCode:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dialCode:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dialCode:"+1869",code:"KN"},{name:"Saint Lucia",dialCode:"+1758",code:"LC"},{name:"Saint Martin",dialCode:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dialCode:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dialCode:"+1784",code:"VC"},{name:"Samoa",dialCode:"+685",code:"WS"},{name:"San Marino",dialCode:"+378",code:"SM"},{name:"Sao Tome and Principe",dialCode:"+239",code:"ST"},{name:"Saudi Arabia",dialCode:"+966",code:"SA"},{name:"Senegal",dialCode:"+221",code:"SN"},{name:"Serbia",dialCode:"+381",code:"RS"},{name:"Seychelles",dialCode:"+248",code:"SC"},{name:"Sierra Leone",dialCode:"+232",code:"SL"},{name:"Singapore",dialCode:"+65",code:"SG"},{name:"Slovakia",dialCode:"+421",code:"SK"},{name:"Slovenia",dialCode:"+386",code:"SI"},{name:"Solomon Islands",dialCode:"+677",code:"SB"},{name:"Somalia",dialCode:"+252",code:"SO"},{name:"South Africa",dialCode:"+27",code:"ZA"},{name:"South Sudan",dialCode:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dialCode:"+500",code:"GS"},{name:"Spain",dialCode:"+34",code:"ES"},{name:"Sri Lanka",dialCode:"+94",code:"LK"},{name:"Sudan",dialCode:"+249",code:"SD"},{name:"Suriname",dialCode:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dialCode:"+47",code:"SJ"},{name:"Swaziland",dialCode:"+268",code:"SZ"},{name:"Sweden",dialCode:"+46",code:"SE"},{name:"Switzerland",dialCode:"+41",code:"CH"},{name:"Syrian Arab Republic",dialCode:"+963",code:"SY"},{name:"Taiwan",dialCode:"+886",code:"TW"},{name:"Tajikistan",dialCode:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dialCode:"+255",code:"TZ"},{name:"Thailand",dialCode:"+66",code:"TH"},{name:"Timor-Leste",dialCode:"+670",code:"TL"},{name:"Togo",dialCode:"+228",code:"TG"},{name:"Tokelau",dialCode:"+690",code:"TK"},{name:"Tonga",dialCode:"+676",code:"TO"},{name:"Trinidad and Tobago",dialCode:"+1868",code:"TT"},{name:"Tunisia",dialCode:"+216",code:"TN"},{name:"Turkey",dialCode:"+90",code:"TR"},{name:"Turkmenistan",dialCode:"+993",code:"TM"},{name:"Turks and Caicos Islands",dialCode:"+1649",code:"TC"},{name:"Tuvalu",dialCode:"+688",code:"TV"},{name:"Uganda",dialCode:"+256",code:"UG"},{name:"Ukraine",dialCode:"+380",code:"UA"},{name:"United Arab Emirates",dialCode:"+971",code:"AE"},{name:"United Kingdom",dialCode:"+44",code:"GB"},{name:"Uruguay",dialCode:"+598",code:"UY"},{name:"Uzbekistan",dialCode:"+998",code:"UZ"},{name:"Vanuatu",dialCode:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dialCode:"+58",code:"VE"},{name:"Vietnam",dialCode:"+84",code:"VN"},{name:"Virgin Islands, British",dialCode:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dialCode:"+1340",code:"VI"},{name:"Wallis and Futuna",dialCode:"+681",code:"WF"},{name:"Yemen",dialCode:"+967",code:"YE"},{name:"Zambia",dialCode:"+260",code:"ZM"},{name:"Zimbabwe",dialCode:"+263",code:"ZW"}].sort(((t,e)=>t.name<e.name?-1:1))],$a=tt("phone-field-internal");[].concat(["disabled","size","bordered","invalid","readonly"],["country-input-placeholder","default-code","restrict-countries"],["phone-input-placeholder","maxlength"]),Lr({componentName:$a,baseSelector:"div"});const Fa=$e.cssVarList,ja=Ia.cssVarList,Pa=tt("phone-field"),{host:qa,label:Ha,requiredIndicator:Ua,inputField:Ga,countryCodeInput:Za,phoneInput:Qa,separator:Ya,errorMessage:Ja,helperText:Ka}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},phoneInput:{selector:()=>"descope-text-field"},countryCodeInput:{selector:()=>"descope-combo-box"},separator:{selector:"descope-phone-field-internal .separator"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Xa=Z(Wt({mappings:{fontSize:[qa,Ga,{selector:$e.componentName,property:$e.cssVarList.fontSize},{selector:Ia.componentName,property:Ia.cssVarList.fontSize}],fontFamily:[Ha,Ja,Ka,{...Za,property:Ia.cssVarList.overlay.fontFamily}],hostWidth:[{...qa,property:"width"},{...Qa,property:"width"},{...Za,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...qa,property:"direction"},inputBorderStyle:[{...Ga,property:"border-style"},{...Ya,property:"border-left-style"}],inputBorderWidth:[{...Ga,property:"border-width"},{...Ya,property:"border-left-width"}],inputBorderColor:[{...Ga,property:"border-color"},{...Ya,property:"border-left-color"}],inputBorderRadius:{...Ga,property:"border-radius"},countryCodeInputWidth:{...Za,property:ja.hostWidth},countryCodeDropdownWidth:{...Za,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Qa,property:"width"},labelTextColor:[{...Ha,property:"color"},{...Ua,property:"color"}],labelRequiredIndicator:{...Ua,property:"content"},errorMessageTextColor:{...Ja,property:"color"},inputValueTextColor:[{...Qa,property:Fa.inputValueTextColor},{...Za,property:ja.inputValueTextColor}],inputPlaceholderTextColor:{...Qa,property:Fa.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:ja.overlayItemBackgroundColor},inputOutlineStyle:{...Ga,property:"outline-style"},inputOutlineColor:{...Ga,property:"outline-color"},inputOutlineWidth:{...Ga,property:"outline-width"},inputOutlineOffset:{...Ga,property:"outline-offset"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),(t=>class extends t{static get CountryCodes(){return Ra}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${$a}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${$a}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector($a),rt(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","invalid","minlength","maxlength","default-code","country-input-placeholder","phone-input-placeholder","disabled","restrict-countries"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 15em;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\t${Ie(Xa.cssVarList)}\n\t\t\t${ze("vaadin-text-field")}\n\t\t\t${Ve("vaadin-text-field")}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n\t\t\tdiv {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\tvaadin-text-field {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tpadding: 0;\n\t\t\t\tbackground: transparent;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t\tdescope-phone-field-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n direction: ltr;\n\t\t\t}\n\t\t\tdescope-phone-field-internal > div {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\tdescope-phone-field-internal .separator {\n\t\t\t\tflex: 0;\n\t\t\t\tborder: none;\n\t\t\t}\n\t\t\tdescope-combo-box {\n\t\t\t\tflex-shrink: 0;\n\t\t\t\tmin-width: 5.75em;\n\t\t\t\t${ja.inputOutlineWidth}: 0;\n\t\t\t\t${ja.inputOutlineOffset}: 0;\n\t\t\t\t${ja.inputBorderWidth}: 0;\n\t\t\t\t${ja.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Fa.inputOutlineWidth}: 0;\n\t\t\t\t${Fa.inputOutlineOffset}: 0;\n\t\t\t\t${Fa.inputBorderWidth}: 0;\n\t\t\t\t${Fa.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tborder: none;\n\t\t\t}\n ${We("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Pa})),ts=Xa.cssVarList,es={[ts.hostWidth]:qe.width,[ts.hostDirection]:qe.direction,[ts.fontSize]:qe.fontSize,[ts.fontFamily]:qe.fontFamily,[ts.labelTextColor]:qe.labelTextColor,[ts.labelRequiredIndicator]:qe.requiredIndicator,[ts.errorMessageTextColor]:qe.errorMessageTextColor,[ts.inputValueTextColor]:qe.valueTextColor,[ts.inputPlaceholderTextColor]:qe.placeholderTextColor,[ts.inputBorderStyle]:qe.borderStyle,[ts.inputBorderWidth]:qe.borderWidth,[ts.inputBorderColor]:qe.borderColor,[ts.inputBorderRadius]:qe.borderRadius,[ts.inputOutlineStyle]:qe.outlineStyle,[ts.inputOutlineWidth]:qe.outlineWidth,[ts.inputOutlineColor]:qe.outlineColor,[ts.inputOutlineOffset]:qe.outlineOffset,[ts.phoneInputWidth]:qe.minWidth,[ts.countryCodeInputWidth]:"5em",[ts.countryCodeDropdownWidth]:"20em"},rs=tt("phone-field-internal-input-box");Lr({componentName:rs,baseSelector:"div"});const ns=$e.cssVarList,os=tt("phone-input-box-field"),{host:is,label:as,requiredIndicator:ss,inputField:ls,phoneInput:ds,errorMessage:cs,helperText:ps}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},phoneInput:{selector:()=>"descope-text-field"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},us=Z(Wt({mappings:{fontSize:[is,ls,{selector:$e.componentName,property:$e.cssVarList.fontSize}],fontFamily:[as,cs,ps],hostWidth:{...is,property:"width"},hostMinWidth:{...is,property:"min-width"},hostDirection:{...is,property:"direction"},inputBorderStyle:{...ls,property:"border-style"},inputBorderWidth:{...ls,property:"border-width"},inputBorderColor:{...ls,property:"border-color"},inputBorderRadius:{...ls,property:"border-radius"},labelTextColor:[{...as,property:"color"},{...ss,property:"color"}],labelRequiredIndicator:{...ss,property:"content"},errorMessageTextColor:{...cs,property:"color"},inputValueTextColor:{...ds,property:ns.inputValueTextColor},inputPlaceholderTextColor:{...ds,property:ns.inputPlaceholderColor},inputOutlineStyle:{...ls,property:"outline-style"},inputOutlineColor:{...ls,property:"outline-color"},inputOutlineWidth:{...ls,property:"outline-width"},inputOutlineOffset:{...ls,property:"outline-offset"}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),(t=>class extends t{static get CountryCodes(){return Ra}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${rs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${rs}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(rs),rt(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","invalid","minlength","maxlength","default-code","disabled","phone-input-placeholder"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${Ie(us.cssVarList)}\n ${ze("vaadin-text-field")}\n ${Ve("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n overflow: hidden;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n height: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n height: 100%;\n }\n descope-phone-field-internal-input-box .separator {\n flex: 0;\n border: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n ${ns.inputOutlineWidth}: 0;\n ${ns.inputOutlineOffset}: 0;\n ${ns.inputBorderWidth}: 0;\n ${ns.inputBorderRadius}: 0;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n ${We("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex"],componentName:os})),hs=us.cssVarList,ms={[hs.hostWidth]:"16em",[hs.hostMinWidth]:qe.minWidth,[hs.hostDirection]:qe.direction,[hs.fontSize]:qe.fontSize,[hs.fontFamily]:qe.fontFamily,[hs.labelTextColor]:qe.labelTextColor,[hs.labelRequiredIndicator]:qe.requiredIndicator,[hs.errorMessageTextColor]:qe.errorMessageTextColor,[hs.inputValueTextColor]:qe.valueTextColor,[hs.inputPlaceholderTextColor]:qe.placeholderTextColor,[hs.inputBorderStyle]:qe.borderStyle,[hs.inputBorderWidth]:qe.borderWidth,[hs.inputBorderColor]:qe.borderColor,[hs.inputBorderRadius]:qe.borderRadius,[hs.inputOutlineStyle]:qe.outlineStyle,[hs.inputOutlineWidth]:qe.outlineWidth,[hs.inputOutlineColor]:qe.outlineColor,[hs.inputOutlineOffset]:qe.outlineOffset,_fullWidth:{[hs.hostWidth]:qe.width}},fs=tt("new-password-internal"),bs=(t,e)=>t.replace(/{{(\w+)+}}/g,((t,r)=>e?.[r]||t)),gs=tt("policy-validation"),ys=["data","active-policies","overrides","data-password-policy-value-minlength"],vs=["label","value",...ys];class xs extends(Ht({componentName:gs,baseSelector:":host > div"})){#G;#Z=[];#Q;static get observedAttributes(){return vs}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n <style>\n :host > div {\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .label {\n max-width: 100%;\n text-wrap: wrap;\n overflow-wrap: break-word;\n }\n .hide-label .label {\n display: none;\n }\n ul {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n }\n ul, li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n li::before {\n display: inline-block;\n width: 1em;\n text-align: center;\n }\n </style>\n\t\t',this.panel=this.shadowRoot.querySelector(":host > div"),this.label=this.shadowRoot.querySelector(".label"),this.list=this.shadowRoot.querySelector("ul")}attributeChangedCallback(t,e,r){if(super.attributeChangedCallback?.(t,e,r),e!==r){if("label"===t&&this.updateLabel(r),ys.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(r)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Z=(r||"").split(",")),"data-password-policy-value-minlength"===t){const t=Number(r);!Number.isNaN(t)&&t>0&&(this.#Q={...this.#Q,minlength:{value:`${t}`}})}}this.renderItems(this.#G,this.#Z,this.#Q)}}get availablePolicies(){return this.#G||[]}set availablePolicies(t){this.#G=t}get value(){return this.getAttribute("value")||""}validate(){let t=this.#G;return this.#Q&&(t=this.#G.map((t=>this.#Q[t.id]?{...t,data:this.#Q[t.id]}:t))),this.#Z.reduce(((e,r)=>{const n=t.find((t=>t.id===r));if(!n)return e;const{pattern:o,message:i,data:a}=n;if(!o||!i)return e;const s={valid:new RegExp(bs(o,a)).test(this.value),message:bs(i,a),id:r};return e.push(s),e}),[])}get isValid(){return!this.validate().some((({valid:t})=>!1===t))}getValidationItemTemplate({valid:t,message:e}){return`\n <li class="item" data-valid="${this.value?t:"none"}">\n <span class="message">${e}</span>\n </li>\n `}renderItems(t,e){t&&e.length&&(this.list.innerHTML=this.validate().map(this.getValidationItemTemplate.bind(this)).join(""))}updateLabel(t){t?(this.label.innerHTML=t,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.innerHTML="")}}const{host:Cs,item:ws,symbolDefault:ks,symbolSuccess:Ss,symbolError:Ms}={host:{selector:()=>":host > div"},item:{selector:()=>".item"},symbolDefault:{selector:()=>'.item[data-valid="none"]::before'},symbolSuccess:{selector:()=>'.item[data-valid="true"]::before'},symbolError:{selector:()=>'.item[data-valid="false"]::before'}},As=Z(Wt({componentNameOverride:tt("input-wrapper")}),Wt({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...Cs,property:"border-width"},borderStyle:{...Cs,property:"border-style"},borderColor:{...Cs,property:"border-color"},borderRadius:{...Cs,property:"border-radius"},backgroundColor:{...Cs,property:"background-color"},textColor:{property:"color"},labelMargin:{...Cs,property:"gap"},itemsSpacing:{...ws,property:"line-height"},itemSymbolSuccessColor:{...Ss,property:"color"},itemSymbolErrorColor:{...Ms,property:"color"},itemSymbolDefault:{...ks,property:"content"},itemSymbolSuccess:{...Ss,property:"content"},itemSymbolError:{...Ms,property:"content"}}}),Bt,Rt)(xs),Ts=tt("new-password"),Es=As.cssVarList,{host:Is,label:_s,internalInputsWrapper:Ls,errorMessage:zs,helperText:Os,passwordInput:Ns,policyPreview:Vs}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-password-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},passwordInput:{selector:"descope-password"},policyPreview:{selector:"descope-policy-validation"}},Ds=Z(Wt({mappings:{fontSize:[Is,{},{selector:sr.componentName,property:sr.cssVarList.fontSize}],fontFamily:[_s,zs,Os],errorMessageTextColor:{...zs,property:"color"},hostWidth:{...Is,property:"width"},hostMinWidth:{...Is,property:"min-width"},hostDirection:[{...Is,property:"direction"},{...Ns,property:sr.cssVarList.hostDirection}],inputsRequiredIndicator:{...Is,property:"content"},spaceBetweenInputs:{...Ls,property:"gap"},policyPreviewBackgroundColor:{...Vs,property:Es.backgroundColor},policyPreviewPadding:{...Vs,property:Es.padding}}}),Bt,Kt({proxyProps:["value","selectionStart"]}),(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t<${fs}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n\t\t\t></${fs}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(fs),rt(this,this.inputElement,{includeAttrs:["password-label","password-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","label","has-confirm","invalid","readonly","draggable","has-validation","policy-label","active-policies","available-policies","data-password-policy-value-minlength"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n :host ::part(error-message) {\n direction: ltr;\n }\n\t\t${Ie(sr.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-password-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-password-internal > .wrapper {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-password {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\tdescope-new-password-internal vaadin-password-field::before {\n\t\t\theight: initial;\n\t\t}\n descope-policy-validation {\n margin-top: 8px;\n display: flex;\n }\n descope-policy-validation.hidden {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex"],componentName:Ts})),Ws=dt(Nt),Bs=Ds.cssVarList,Rs={[Bs.hostWidth]:qe.width,[Bs.hostMinWidth]:qe.minWidth,[Bs.hostDirection]:qe.direction,[Bs.fontSize]:qe.fontSize,[Bs.fontFamily]:qe.fontFamily,[Bs.spaceBetweenInputs]:"1em",[Bs.errorMessageTextColor]:qe.errorMessageTextColor,[Bs.policyPreviewBackgroundColor]:"none",[Bs.policyPreviewPadding]:Ws.spacing.lg,_required:{[Bs.inputsRequiredIndicator]:qe.requiredIndicator}},$s=tt("upload-file"),Fs=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],js=Lr({componentName:$s,baseSelector:":host > div"}),Ps=se.cssVarList,{host:qs,wrapper:Hs,icon:Us,title:Gs,description:Zs,requiredIndicator:Qs}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},Ys=Z(Wt({componentNameOverride:tt("input-wrapper")}),Wt({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...qs,property:"height"},hostWidth:{...qs,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...qs,property:"direction"},{selector:()=>se.componentName,property:Ps.hostDirection}],gap:{...Hs},lineHeight:{...Hs,property:"line-height"},titleFontSize:{...Gs,property:"font-size"},titleFontWeight:{...Gs,property:"font-weight"},descriptionFontSize:{...Zs,property:"font-size"},labelTextColor:[{...Gs,property:"color"},{...Zs,property:"color"}],iconSize:{...Us,property:"width"},requiredIndicator:{...Qs,property:"content"}}}),Bt,Rt)(class extends js{static get observedAttributes(){return Fs.concat(js.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<style>\n\t\t\t:host {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\ttext-align: center;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.button-wrapper {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t</style>\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" />\n\t\t\t\t\t<descope-button></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',this.wrapperEle=this.shadowRoot.querySelector(".wrapper"),this.inputElement=this.shadowRoot.querySelector("input"),this.button.onclick=()=>this.inputElement.click(),this.inputElement.onchange=async t=>{const e=t.target.files;var r;e.length&&(this.value=await(r=e[0],new Promise((t=>{const e=new FileReader;e.onload=e=>t(e.target.result),e.readAsDataURL(r)}))),this.updateDescription((t=>t.name.replace(/^.*\\/,""))(e[0])))},this.oninvalid=()=>{this.setAttribute("invalid","true")}}getValidity(){return this.isRequired&&!this.input.value?{valueMissing:!0}:(this.removeAttribute("invalid"),{})}initInputs(){this.rootElement.querySelector("descope-button").onclick=()=>this.inputElement.click()}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e!==r&&("title"===t?this.updateTitle(r):"description"===t?this.updateDescription(r):"button-label"===t?this.updateButtonLabel(r):"button-mode"===t?this.updateButtonMode(r):"button-variant"===t?this.updateButtonVariant(r):"size"===t?this.updateButtonSize(r):"accept"===t?this.updateInputAccept(r):"readonly"===t&&this.updateReadOnly(r))}get button(){return this.shadowRoot.querySelector("descope-button")}get input(){return this.shadowRoot.querySelector("input")}get title(){return this.shadowRoot.querySelector(".title-text")}get description(){return this.shadowRoot.querySelector(".description")}get icon(){return this.shadowRoot.querySelector(".icon")}updateTitle(t){this.title.innerHTML=t}updateDescription(t){this.description.innerHTML=t}updateButtonLabel(t){this.button.innerHTML=t}updateButtonSize(t){this.button.setAttribute("size",t)}updateButtonMode(t){this.button.setAttribute("mode",t)}updateButtonVariant(t){this.button.setAttribute("variant",t)}updateInputAccept(t){this.input.setAttribute("accept",t)}updateReadOnly(t){"true"===t?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}}).cssVarList,Js={[Ys.hostDirection]:qe.direction,[Ys.labelTextColor]:qe.labelTextColor,[Ys.fontFamily]:qe.fontFamily,[Ys.iconSize]:"2em",[Ys.hostPadding]:"0.75em",[Ys.gap]:"0.5em",[Ys.fontSize]:"16px",[Ys.titleFontWeight]:"500",[Ys.lineHeight]:"1em",[Ys.borderWidth]:qe.borderWidth,[Ys.borderColor]:qe.borderColor,[Ys.borderRadius]:qe.borderRadius,[Ys.borderStyle]:"dashed",_required:{[Ys.requiredIndicator]:qe.requiredIndicator},size:{xs:{[Ys.hostHeight]:"196px",[Ys.hostWidth]:"200px",[Ys.titleFontSize]:"0.875em",[Ys.descriptionFontSize]:"0.875em",[Ys.lineHeight]:"1.25em"},sm:{[Ys.hostHeight]:"216px",[Ys.hostWidth]:"230px",[Ys.titleFontSize]:"1em",[Ys.descriptionFontSize]:"0.875em",[Ys.lineHeight]:"1.25em"},md:{[Ys.hostHeight]:"256px",[Ys.hostWidth]:"312px",[Ys.titleFontSize]:"1.125em",[Ys.descriptionFontSize]:"1em",[Ys.lineHeight]:"1.5em"},lg:{[Ys.hostHeight]:"280px",[Ys.hostWidth]:"336px",[Ys.titleFontSize]:"1.125em",[Ys.descriptionFontSize]:"1.125em",[Ys.lineHeight]:"1.75em"}},_fullWidth:{[Ys.hostWidth]:qe.width}},Ks=tt("button-selection-group-item");class Xs extends(Ht({componentName:Ks,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t<style>\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n\t\t</style>\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,rt(this,this.baseElement,{includeAttrs:["size","variant"]}),rt(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",(t=>{t.isTrusted&&this.handleFocus()}))}}const tl=Z(Wt({mappings:{hostDirection:{selector:()=>se.componentName,property:se.cssVarList.hostDirection},backgroundColor:{selector:()=>se.componentName,property:se.cssVarList.backgroundColor},labelTextColor:{selector:()=>se.componentName,property:se.cssVarList.labelTextColor},borderColor:{selector:()=>se.componentName,property:se.cssVarList.borderColor},borderWidth:{selector:()=>se.componentName,property:se.cssVarList.borderWidth},borderStyle:{selector:()=>se.componentName,property:se.cssVarList.borderStyle},borderRadius:{selector:()=>se.componentName,property:se.cssVarList.borderRadius},outlineColor:{selector:()=>se.componentName,property:se.cssVarList.outlineColor}}}),Bt,Rt)(Xs),el=dt(Nt),rl=tl.cssVarList,nl={[rl.hostDirection]:"inherit",[rl.backgroundColor]:el.colors.surface.main,[rl.labelTextColor]:el.colors.surface.contrast,[rl.borderColor]:el.colors.surface.light,[rl.borderStyle]:"solid",[rl.borderRadius]:el.radius.sm,[rl.outlineColor]:"transparent",[rl.borderWidth]:el.border.xs,_hover:{[rl.backgroundColor]:el.colors.surface.highlight},_focused:{[rl.outlineColor]:el.colors.surface.light},_selected:{[rl.borderColor]:el.colors.surface.contrast,[rl.backgroundColor]:el.colors.surface.contrast,[rl.labelTextColor]:el.colors.surface.main}},ol=t=>{class e extends(Lr({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <style>\n slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n }\n </style>\n <slot part="wrapper"></slot>\n '}dispatchChange=$t.bind(this,"change");get items(){return this.querySelector("slot").assignedElements()}get isReadonly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"md"}get value(){console.warn("get value","is not implemented")}set value(t){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach((t=>{t.setAttribute("size",this.size)}))}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(t){t.forEach((t=>{switch(t){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}}))}init(){this.addEventListener("focus",(t=>{t.isTrusted&&this.items[0]?.focus()})),super.init?.(),Y(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return e},il=tt("button-selection-group-internal");class al extends(ol(il)){getSelectedNode(){return this.items.find((t=>t.hasAttribute("selected")))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(t){t.target!==t.currentTarget&&(t.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(t.target),this.dispatchChange())}setSelected(t){t!==this.getSelectedNode()&&(this.removeSelected(),t?.setAttribute("selected","true"))}get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){setTimeout((()=>{this.defaultValue&&(this.value=this.defaultValue,this.setCustomValidity())}))}get value(){return this.getSelectedNode()?.value||""}set value(t){const e=this.items.find((e=>e.value===t));this.setSelected(e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const sl=t=>class extends t{#P=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#q;get renderItem(){return this.#P}set renderItem(t){this.#P=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#q)return this.#q;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#q=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.(((t,e)=>t+(this.renderItem?.(e||{})||"")),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.renderItems(),Y(this,this.renderItems.bind(this),{includeAttrs:["data"]}),J(this,(({addedNodes:t})=>{t.forEach((t=>{t.setAttribute("size",this.size)}))}))}},{host:ll,label:dl,requiredIndicator:cl,internalWrapper:pl,errorMessage:ul}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:()=>':host [part="internal-component"] slot'},errorMessage:{selector:"::part(error-message)"}},hl={hostWidth:{...ll,property:"width"},hostDirection:{...ll,property:"direction"},fontFamily:ll,labelTextColor:[{...dl,property:"color"},{...cl,property:"color"}],labelRequiredIndicator:{...cl,property:"content"},errorMessageTextColor:{...ul,property:"color"},itemsSpacing:{...pl,property:"gap"}},ml=`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${We("vaadin-text-field")}\n\t\t\t${ze("vaadin-text-field")}\n `,fl=tt("button-selection-group"),bl=Z(Wt({mappings:{...hl}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,sl,(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${il}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${il}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(il),rt(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>ml,excludeAttrsSync:["tabindex"],componentName:fl})),gl=dt(Nt),yl=t=>({[t.hostDirection]:qe.direction,[t.fontFamily]:qe.fontFamily,[t.labelTextColor]:qe.labelTextColor,[t.labelRequiredIndicator]:qe.requiredIndicator,[t.errorMessageTextColor]:qe.errorMessageTextColor,[t.itemsSpacing]:gl.spacing.sm,[t.hostWidth]:qe.width}),vl=bl.cssVarList,xl={...yl(vl)},Cl=tt("button-multi-selection-group-internal");class wl extends(ol(Cl)){#Y(){return this.items.filter((t=>t.hasAttribute("selected")))}onClick(t){t.target!==t.currentTarget&&(this.#Y().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Y().map((t=>t.value))}set value(t){this.items.forEach((e=>{t.includes(e.value)?e.setAttribute("selected","true"):e.removeAttribute("selected")}))}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#J(t){const e=Array.isArray(t);return e||console.error("default-values must be an array, received:",t),e}get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.#J(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){setTimeout((()=>{this.defaultValues&&(this.value=this.defaultValues,this.setCustomValidity())}))}getValidity(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}}init(){super.init(),this.setDefaultValues(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const kl=tt("button-multi-selection-group"),Sl=Z(Wt({mappings:{...hl}}),Bt,Kt({proxyProps:["value","selectionStart"]}),Rt,sl,(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Cl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${Cl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Cl),rt(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-text-field",style:()=>ml,excludeAttrsSync:["tabindex"],componentName:kl})).cssVarList,Ml={...yl(Sl)},Al=tt("modal"),Tl=Z(Wt({mappings:{overlayBackgroundColor:{property:()=>Tl.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>Tl.cssVarList.overlay.shadow},overlayWidth:{property:()=>Tl.cssVarList.overlay.width}}}),te({name:"overlay",selector:"",mappings:{hostDisplay:{selector:()=>":host(.descope-modal)",property:"display",important:!0},backgroundColor:[{selector:()=>"::part(content)",property:"background-color"},{selector:()=>"::part(overlay)",property:"background-color"}],width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened"]}}),Bt,Rt,(t=>class extends t{get opened(){return"true"===this.getAttribute("opened")}handleOpened(){rt(this,this.baseElement,{includeAttrs:["opened"]}),this.opened?this.style.display="":this.style.display="none"}init(){super.init?.(),this.style.display="none",setTimeout((()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#U(),this.handleOpened()}))}#U(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),this.baseElement.setAttribute("style","display:flex!important;")},t._detachOverlay=()=>{this.baseElement.style.display="none"},t._enterModalState=()=>{},t.close=()=>!1}}))(Ut({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"",excludeAttrsSync:["tabindex","opened"],componentName:Al})),El=dt(Nt),Il=Tl.cssVarList,_l={[Il.overlayBackgroundColor]:El.colors.surface.main,[Il.overlayShadow]:El.shadow.wide["2xl"],[Il.overlayWidth]:"540px"},Ll={...Il},zl=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},Ol=tt("grid"),{host:Nl,headerRow:Vl,headerRowCell:Dl,contentRow:Wl,firstRow:Bl,sortIndicators:Rl,activeSortIndicator:$l,selectedRow:Fl,rowSeparator:jl,resizeHandle:Pl}={host:{selector:()=>"vaadin-grid"},headerRow:{selector:()=>"::part(header-cell)"},headerRowCell:{selector:()=>"vaadin-grid::part(header-cell)"},contentRow:{selector:()=>"::part(cell)"},firstRow:{selector:()=>"::part(first-header-row-cell)"},selectedRow:{selector:()=>"::part(selected-row-cell)"},sortIndicators:{selector:()=>"vaadin-grid-sorter::part(indicators)"},activeSortIndicator:{selector:()=>"vaadin-grid-sorter[direction]"},rowSeparator:{selector:()=>"vaadin-grid::part(body-cell)"},resizeHandle:{selector:()=>"::part(resize-handle)"}},ql=Z(Wt({componentNameOverride:tt("input-wrapper")}),Wt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Vl},{...Wl}],fontSize:[{...Vl},{...Wl}],fontWeight:{...Wl},valueTextColor:{...Wl,property:"color"},backgroundColor:[{...Nl,property:"background-color"},{...Wl,property:"background-color"}],sortIndicatorsColor:{...Rl,property:"color"},activeSortIndicator:{...$l,property:"color"},borderColor:{...Nl,property:"border-color"},borderWidth:{...Nl,property:"border-width"},borderStyle:{...Nl,property:"border-style"},borderRadius:{...Nl,property:"border-radius"},selectedBackgroundColor:{...Fl,property:"background-color"},headerRowTextColor:{...Dl,property:"color"},separatorColor:[{...Bl,property:"border-bottom-color"},{...jl,property:"border-top-color"}],resizeHandleColor:{...Pl,property:"background-color"}}}),Bt,Rt,(t=>class extends t{#K;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",(t=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:t.detail}))}))}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"columns"===t&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#K=Array.from(this.children).map((t=>({path:t.getAttribute("path"),header:t.getAttribute("header"),type:t.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce(((e,r)=>{const n=t.getAttribute(r);return n&&(e[r]=n),e}),{})})))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const t=JSON.parse(this.columnsAttr);zl(t)&&(this.columns=t)}catch(t){console.error('could not parse data string from attribute "columns" -',t.message)}}#X=({path:t,header:e,type:r,attrs:n})=>{const o=`descope-grid-${r}-column`;return`<${o} header="${e}" path="${t}" ${Object.entries(n).map((([t,e])=>`${t}="${e}"`)).join(" ")}></${o}>`};get renderColumn(){return this.#X}set renderColumn(t){this.#X=t,this.renderColumns()}getColumnsTemplate(){return this.#K?.reduce?.(((t,e)=>t+(this.renderColumn?.(e||{})||"")),"")}renderColumns(){const t=this.getColumnsTemplate();t&&(this.innerHTML=t)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(t){if(zl(t)&&this.grid.items!==t&&(this.grid.items=t,this.grid.selectedItems)){const t=new Set(this.grid.items.map((t=>t[this.uniqueColumnId]??t))),e=this.grid.selectedItems.filter((e=>t.has(e[this.uniqueColumnId]??e)));this.grid.selectedItems.length!==e.length&&(this.grid.selectedItems=e)}}get columns(){return this.#K}set columns(t){this.#K=t,this.renderColumns()}get paths(){return this.columns.map((t=>t.path))}get uniqueColumnId(){return this.getAttribute("unique-column-id")}}))(Ut({delegatesFocus:!1,slots:[""],wrappedEleName:"vaadin-grid",style:()=>"\n vaadin-grid {\n overflow: hidden;\n height: 100%;\n min-height: 300px;\n }\n vaadin-grid-cell-content {\n display: flex;\n }\n vaadin-grid::part(selected-row-cell) {\n background-image: none;\n box-shadow: none;\n }\n\t\t",excludeAttrsSync:["columns","tabindex"],componentName:Ol})),Hl=dt(Nt),Ul=ql.cssVarList,Gl={[Ul.hostWidth]:"100%",[Ul.hostHeight]:"100%",[Ul.hostMinHeight]:"400px",[Ul.fontWeight]:"400",[Ul.backgroundColor]:Hl.colors.surface.main,[Ul.fontSize]:qe.fontSize,[Ul.fontFamily]:qe.fontFamily,[Ul.sortIndicatorsColor]:Hl.colors.surface.light,[Ul.activeSortIndicator]:Hl.colors.surface.dark,[Ul.resizeHandleColor]:Hl.colors.surface.light,[Ul.borderWidth]:qe.borderWidth,[Ul.borderStyle]:qe.borderStyle,[Ul.borderRadius]:qe.borderRadius,[Ul.borderColor]:"transparent",[Ul.headerRowTextColor]:Hl.colors.surface.dark,[Ul.separatorColor]:Hl.colors.surface.light,[Ul.valueTextColor]:Hl.colors.surface.contrast,[Ul.selectedBackgroundColor]:Hl.colors.surface.highlight,_bordered:{[Ul.borderColor]:qe.borderColor}},Zl=Gl,Ql=tt("notification-card"),Yl={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},Jl=Z(Wt({mappings:{hostMinWidth:{selector:Yl.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:Yl.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:Yl.content,property:"border-width"},borderColor:{selector:Yl.content,property:"border-color"},borderStyle:{selector:Yl.content,property:"border-style"},borderRadius:[{selector:Yl.content,property:"border-radius"},{selector:Yl.overlay,property:"border-radius"}],verticalPadding:[{selector:Yl.content,property:"padding-top"},{selector:Yl.content,property:"padding-bottom"}],horizontalPadding:[{selector:Yl.content,property:"padding-right"},{selector:Yl.content,property:"padding-left"}]}}),(t=>class extends t{close(){this.baseElement.addEventListener("animationend",(()=>{this.remove(),this.dispatchEvent(new Event("card-closed"))})),this.setAttribute("opened","false")}constructor(){super(),this.baseElement.innerHTML='\n <div part="root">\n <div part="content">\n <slot></slot>\n </div>\n <div part="close">\n <slot name="close"></slot>\n </div>\n </div>\n ',this.closeEle=this.shadowRoot.querySelector('[part="close"]')}init(){super.init?.(),this.closeEle.onclick=()=>{this.close()}}}))(Ut({slots:[],wrappedEleName:"vaadin-notification-card",style:()=>'\n vaadin-notification-card {\n box-shadow: none;\n }\n ::part(overlay) {\n box-shadow: none;\n background: none;\n }\n\n [part="close"] {\n cursor: pointer;\n display: flex;\n }\n\n [part="content"] {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n [part="root"] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n ',excludeAttrsSync:["tabindex"],componentName:Ql})),Kl=dt(Nt),Xl=Jl.cssVarList,td="#00000020",ed={[Xl.hostMinWidth]:"415px",[Xl.fontFamily]:Kl.fonts.font1.family,[Xl.fontSize]:Kl.typography.body1.size,[Xl.backgroundColor]:Kl.colors.surface.main,[Xl.textColor]:Kl.colors.surface.contrast,[Xl.boxShadow]:`${Kl.shadow.wide.xl} ${td}, ${Kl.shadow.narrow.xl} ${td}`,[Xl.verticalPadding]:"0.625em",[Xl.horizontalPadding]:"1.5em",[Xl.borderRadius]:Kl.radius.xs,_bordered:{[Xl.borderWidth]:Kl.border.sm,[Xl.borderStyle]:"solid",[Xl.borderColor]:"transparent"},size:{xs:{[Xl.fontSize]:"12px"},sm:{[Xl.fontSize]:"14px"},md:{[Xl.fontSize]:"16px"},lg:{[Xl.fontSize]:"18px"}},mode:{primary:{[Xl.backgroundColor]:Kl.colors.primary.main,[Xl.textColor]:Kl.colors.primary.contrast,[Xl.borderColor]:Kl.colors.primary.light},success:{[Xl.backgroundColor]:Kl.colors.success.main,[Xl.textColor]:Kl.colors.success.contrast,[Xl.borderColor]:Kl.colors.success.light},error:{[Xl.backgroundColor]:Kl.colors.error.main,[Xl.textColor]:Kl.colors.error.contrast,[Xl.borderColor]:Kl.colors.error.light}}},rd=tt("multi-select-combo-box"),{host:nd,inputField:od,inputElement:id,placeholder:ad,toggle:sd,clearButton:ld,label:dd,requiredIndicator:cd,helperText:pd,errorMessage:ud,chip:hd,chipLabel:md,overflowChipFirstBorder:fd,overflowChipSecondBorder:bd}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},chip:{selector:"vaadin-multi-select-combo-box-chip"},chipLabel:{selector:"vaadin-multi-select-combo-box-chip::part(label)"},overflowChipFirstBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::before"},overflowChipSecondBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::after"}},gd=Z(Wt({mappings:{hostWidth:{...nd,property:"width"},hostDirection:{...nd,property:"direction"},fontSize:[{},nd],chipFontSize:{...md,property:"font-size"},fontFamily:[dd,ad,od,pd,ud,md],labelTextColor:[{...dd,property:"color"},{...cd,property:"color"}],errorMessageTextColor:{...ud,property:"color"},inputHeight:{...od,property:"min-height"},inputBackgroundColor:{...od,property:"background-color"},inputBorderColor:{...od,property:"border-color"},inputBorderWidth:{...od,property:"border-width"},inputBorderStyle:{...od,property:"border-style"},inputBorderRadius:{...od,property:"border-radius"},labelRequiredIndicator:{...cd,property:"content"},inputValueTextColor:{...od,property:"color"},inputPlaceholderTextColor:{...ad,property:"color"},inputDropdownButtonCursor:[{...sd,property:"cursor"},{...ld,property:"cursor"}],inputDropdownButtonColor:[{...sd,property:"color"},{...ld,property:"color"}],inputDropdownButtonSize:[{...sd,property:"font-size"},{...ld,property:"font-size"}],inputDropdownButtonOffset:[{...sd,property:"margin-right"},{...sd,property:"margin-left"}],inputOutlineColor:{...od,property:"outline-color"},inputOutlineWidth:{...od,property:"outline-width"},inputOutlineStyle:{...od,property:"outline-style"},inputOutlineOffset:{...od,property:"outline-offset"},inputHorizontalPadding:[{...id,property:"padding-left"},{...id,property:"padding-right"},{...od,property:"padding-inline-start"}],inputVerticalPadding:[{...od,property:"padding-top"},{...od,property:"padding-bottom"}],chipTextColor:{...md,property:"color"},chipBackgroundColor:[{...hd,property:"background-color"},{...fd,property:"border-color"},{...bd,property:"border-color"}],overlayBackground:{property:()=>gd.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>gd.cssVarList.overlay.textColor},overlayBorder:{property:()=>gd.cssVarList.overlay.border},overlayFontSize:{property:()=>gd.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>gd.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>gd.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>gd.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>gd.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>gd.cssVarList.overlay.itemPaddingInlineEnd}}}),Bt,te({name:"overlay",selector:"vaadin-multi-select-combo-box-internal",mappings:{backgroundColor:{selector:"vaadin-multi-select-combo-box-scroller"},minHeight:{selector:"vaadin-multi-select-combo-box-overlay"},margin:{selector:"vaadin-multi-select-combo-box-overlay"},cursor:{selector:"vaadin-multi-select-combo-box-item"},fontFamily:{selector:"vaadin-multi-select-combo-box-item"},textColor:{selector:"vaadin-multi-select-combo-box-item",property:"color"},fontSize:{selector:"vaadin-multi-select-combo-box-item"},itemBoxShadow:{selector:"vaadin-multi-select-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Kt({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),ee,Rt,(t=>class extends t{static get observedAttributes(){return["readonly"]}#P=({displayName:t,value:e,label:r})=>`<span data-name="${r}" data-id="${e}">${t||r}</span>`;#q;#tt=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#P}set renderItem(t){this.#P=t,this.renderItems()}get data(){if(this.#q)return this.#q;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#q=t,this.renderItems())}get allowCustomValues(){return"true"===this.getAttribute("allow-custom-value")}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data and default-values must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.(((t,e)=>t+(this.renderItem?.(e||{})||"")),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}updateSelectedItems(){const t=this.baseElement.selectedItems?.map((t=>t.getAttribute("data-id")))||[];t.length>0&&(this.value=t),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(r){const n=e.customValueTransformFn(r)||"";n!==this.value&&t.set.call(this,n)}}})}#et(t){return Array.from(new Map(t.map((t=>[t.getAttribute("data-id"),t]))).values())}#H(){const t=Array.from(this.children),e=this.#et(t);t.length?(this.removeAttribute("has-no-options"),e.forEach((t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})})),this.baseElement.items=e,setTimeout((()=>{this.updateSelectedItems()}),0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,r)=>{t.innerHTML=r.item.outerHTML}}#U(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#rt(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",(t=>{const e=this.#P({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout((()=>{this.value=[...this.value,t.detail]}),0)}))}setGetValidity(){this.getValidity=function(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.setComboBoxDescriptor(),this.#U(),this.#rt(),this.renderItems(),Y(this,this.renderItems.bind(this),{includeAttrs:["data"]}),J(this,this.#H.bind(this)),rt(this,this.baseElement,{includeAttrs:["placeholder"]}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",(()=>{this.#nt(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))}))}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#nt(){this.#tt=this.baseElement.selectedItems?.map((t=>t.getAttribute("data-id")))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter((e=>t.includes(e["data-id"])));if(this.allowCustomValues){const r=e?.map((t=>t.getAttribute("data-id")))||[],n=t.filter((t=>!r.includes(t)));if(n.length){const e=n.reduce(((t,e)=>t+this.#P({label:e,displayName:e,value:e})),"");return this.innerHTML+=e,void setTimeout((()=>{this.value=t}),0)}}const r=e?.map((t=>t.getAttribute("data-id")))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const r=t.slice().sort(),n=e.slice().sort();for(let t=0;t<r.length;t++)if(r[t]!==n[t])return!1;return!0})(this.#tt,r)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#tt}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),"readonly"===t&&this.onReadOnlyChange(null!==r&&"true"===r)}onReadOnlyChange(t){t?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",t):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}}))(Ut({slots:["","prefix"],wrappedEleName:"vaadin-multi-select-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${Ie(gd.cssVarList)}\n\t\t${Ne("vaadin-multi-select-combo-box")}\n\t\t${Oe("vaadin-multi-select-combo-box")}\n\t\t${ze("vaadin-multi-select-combo-box")}\n\n\t\tvaadin-multi-select-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-multi-select-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-multi-select-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n align-self: center;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\tvaadin-multi-select-combo-box[readonly] [slot="input"] {\n flex-grow: 1;\n flex-basis: 4em;\n\t\t}\n\n\t\t::part(input-field) {\n padding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${We("vaadin-multi-select-combo-box")}\n :host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {\n display: block;\n }\n\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -4px;\n right: -4px;\n border-left-width: 0;\n border-inline-start-style: solid;\n border-inline-start-width: 2px;\n }\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -8px;\n right: -8px;\n }\n\n :host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex","size","data","placeholder"],componentName:rd,includeForwardProps:["items","renderer","selectedItems"]})),yd=dt(Nt),vd=gd.cssVarList,xd={[vd.hostWidth]:qe.width,[vd.hostDirection]:qe.direction,[vd.fontSize]:qe.fontSize,[vd.fontFamily]:qe.fontFamily,[vd.labelTextColor]:qe.labelTextColor,[vd.errorMessageTextColor]:qe.errorMessageTextColor,[vd.inputBorderColor]:qe.borderColor,[vd.inputBorderWidth]:qe.borderWidth,[vd.inputBorderStyle]:qe.borderStyle,[vd.inputBorderRadius]:qe.borderRadius,[vd.inputOutlineColor]:qe.outlineColor,[vd.inputOutlineOffset]:qe.outlineOffset,[vd.inputOutlineWidth]:qe.outlineWidth,[vd.inputOutlineStyle]:qe.outlineStyle,[vd.labelRequiredIndicator]:qe.requiredIndicator,[vd.inputValueTextColor]:qe.valueTextColor,[vd.inputPlaceholderTextColor]:qe.placeholderTextColor,[vd.inputBackgroundColor]:qe.backgroundColor,[vd.inputHorizontalPadding]:qe.horizontalPadding,[vd.inputVerticalPadding]:qe.verticalPadding,[vd.inputHeight]:qe.inputHeight,[vd.inputDropdownButtonColor]:yd.colors.surface.dark,[vd.inputDropdownButtonCursor]:"pointer",[vd.inputDropdownButtonSize]:qe.toggleButtonSize,[vd.inputDropdownButtonOffset]:yd.spacing.xs,[vd.overlayItemPaddingInlineStart]:yd.spacing.xs,[vd.overlayItemPaddingInlineEnd]:yd.spacing.lg,[vd.chipFontSize]:qe.chipFontSize,[vd.chipTextColor]:yd.colors.surface.contrast,[vd.chipBackgroundColor]:yd.colors.surface.light,_readonly:{[vd.inputDropdownButtonCursor]:"default"},[vd.overlayFontSize]:qe.fontSize,[vd.overlayFontFamily]:qe.fontFamily,[vd.overlayCursor]:"pointer",[vd.overlayItemBoxShadow]:"none",[vd.overlayBackground]:qe.backgroundColor,[vd.overlayTextColor]:qe.valueTextColor,[vd.overlay.minHeight]:"400px",[vd.overlay.margin]:"0"},Cd=xd,wd=tt("badge");class kd extends(Ht({componentName:wd,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<style>\n :host {\n display: inline-flex;\n }\n :host > div {\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\t\t</style>\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t"}}const Sd=Z(Wt({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{}}}),Bt,Rt)(kd),Md=dt(Nt),Ad=Sd.cssVarList,Td={[Ad.hostWidth]:"fit-content",[Ad.hostDirection]:Md.direction,[Ad.textAlign]:"center",[Ad.fontFamily]:Md.fonts.font1.family,[Ad.fontWeight]:"400",[Ad.verticalPadding]:"0.25em",[Ad.horizontalPadding]:"0.5em",[Ad.borderWidth]:Md.border.xs,[Ad.borderRadius]:Md.radius.xs,[Ad.borderColor]:"transparent",[Ad.borderStyle]:"solid",_fullWidth:{[Ad.hostWidth]:"100%"},size:{xs:{[Ad.fontSize]:"12px"},sm:{[Ad.fontSize]:"14px"},md:{[Ad.fontSize]:"16px"},lg:{[Ad.fontSize]:"18px"}},mode:{default:{[Ad.textColor]:Md.colors.surface.dark,_bordered:{[Ad.borderColor]:Md.colors.surface.light}},primary:{[Ad.textColor]:Md.colors.primary.main,_bordered:{[Ad.borderColor]:Md.colors.primary.light}},secondary:{[Ad.textColor]:Md.colors.secondary.main,_bordered:{[Ad.borderColor]:Md.colors.secondary.light}},error:{[Ad.textColor]:Md.colors.error.main,_bordered:{[Ad.borderColor]:Md.colors.error.light}},success:{[Ad.textColor]:Md.colors.success.main,_bordered:{[Ad.borderColor]:Md.colors.success.light}}}},Ed=tt("avatar");class Id extends(Ht({componentName:Ed,baseSelector:":host > .wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .editableBadge {\n border: 1px solid;\n border-radius: 100%;\n height: fit-content;\n width: 25%;\n height: 25%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n inset-inline-end: 0;\n }\n\n vaadin-icon {\n color: currentcolor;\n }\n\n vaadin-avatar {\n width: 100%;\n height: 100%;\n }\n\n .wrapper {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 100%;\n }\n </style>\n\n\n <div class="wrapper">\n <vaadin-avatar></vaadin-avatar>\n <div class="editableBadge">\n <vaadin-icon icon="vaadin:pencil"></vaadin-icon>\n </div>\n </div>\n\t\t',this.avatarComponent=this.shadowRoot.querySelector("vaadin-avatar"),rt(this,this.avatarComponent,{includeAttrs:["display-name","img"],mapAttrs:{"display-name":"name"}});const t=this.shadowRoot.querySelector(".editableBadge");Y(this,(()=>{t.style.display=this.isEditable?"":"none"}),{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:_d,editableBadge:Ld,avatar:zd}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Od=Z(Wt({mappings:{hostWidth:{..._d,property:"width"},hostHeight:{..._d,property:"height"},cursor:[zd,_d],hostDirection:{..._d,property:"direction"},avatarTextColor:{...zd,property:"color"},avatarBackgroundColor:{...zd,property:"background-color"},editableIconColor:{...Ld,property:"color"},editableBorderColor:{...Ld,property:"border-color"},editableBackgroundColor:{...Ld,property:"background-color"}}}),Bt,Rt)(Id),Nd=dt(Nt),Vd=Od.cssVarList,Dd={[Vd.hostDirection]:Nd.direction,[Vd.editableIconColor]:Nd.colors.surface.dark,[Vd.editableBorderColor]:Nd.colors.surface.dark,[Vd.editableBackgroundColor]:Nd.colors.surface.main,[Vd.avatarTextColor]:Nd.colors.surface.main,[Vd.avatarBackgroundColor]:Nd.colors.surface.dark,_editable:{[Vd.cursor]:"pointer"},size:{xs:{[Vd.hostWidth]:"30px",[Vd.hostHeight]:"30px"},sm:{[Vd.hostWidth]:"40px",[Vd.hostHeight]:"40px"},md:{[Vd.hostWidth]:"60px",[Vd.hostHeight]:"60px"},lg:{[Vd.hostWidth]:"98px",[Vd.hostHeight]:"98px"}}},Wd={...Vd},Bd=tt("mappings-field-internal");Lr({componentName:Bd,baseSelector:"div"});const Rd=tt("mappings-field"),{host:$d,helperText:Fd,errorMessage:jd,mappingItem:Pd,labels:qd,labelsText:Hd,valueLabel:Ud,attrLabel:Gd,separator:Zd,labelsContainer:Qd}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},Yd=Z(Wt({mappings:{hostWidth:{...$d,property:"width"},hostDirection:{...$d,property:"direction"},fontSize:[{},$d,{...Zd,property:"margin-top"}],fontFamily:[Fd,jd,qd],separatorFontSize:{...Zd,property:"font-size"},labelsFontSize:{...Hd,property:"font-size"},labelsLineHeight:[{...Hd,property:"line-height"},{...qd,property:"line-height"}],labelTextColor:{...qd,property:In.cssVarList.textColor},itemMarginBottom:{...Pd,property:"margin-bottom"},valueLabelMinWidth:{...Ud,property:"min-width"},attrLabelMinWidth:{...Gd,property:"min-width"},labelsMarginBottom:{...Qd,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Bt,Kt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Rt,(t=>class extends t{get defaultValues(){const t=this.getAttribute("default-values");if(t)try{return JSON.parse(t)}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){const t=this.defaultValues;Object.keys(t).length>0&&(this.inputElement.value=t)}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Bd}\n tabindex="-1"\n ></${Bd}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Bd),rt(this,this.inputElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","default-values","invalid","readonly","disabled"]}),X(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}}))(Ut({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-mappings-field-internal [part="labels"] {\n display: none;\n grid-template-columns: 1fr var(${Yd.cssVarList.separatorWidth}) 1fr var(${Yd.cssVarList.removeButtonWidth});\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"],\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n ${In.cssVarList.fontWeight}: 500;\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"] {\n grid-column: 1 / span 1;\n }\n\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n grid-column: 3 / span 1;\n }\n\n descope-mapping-item::part(wrapper) {\n display: grid;\n grid-template-columns: 1fr var(${Yd.cssVarList.separatorWidth}) 1fr var(${Yd.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message"],componentName:Rd})),Jd=dt(Nt),Kd=Yd.cssVarList,Xd={[Kd.hostWidth]:qe.width,[Kd.hostDirection]:qe.direction,[Kd.fontSize]:qe.fontSize,[Kd.fontFamily]:qe.fontFamily,[Kd.separatorFontSize]:"14px",[Kd.labelsFontSize]:"14px",[Kd.labelsLineHeight]:"1",[Kd.labelsMarginBottom]:"6px",[Kd.labelTextColor]:qe.labelTextColor,[Kd.itemMarginBottom]:"1em",[Kd.valueLabelMinWidth]:qe.minWidth,[Kd.attrLabelMinWidth]:`calc(12em + 2 * ${Jd.border.xs})`,[Kd.separatorWidth]:"70px",[Kd.removeButtonWidth]:"60px"},tc=Xd;var ec=r(1747),rc=r.n(ec),nc=r(8152),oc=r.n(nc);const ic=tt("user-attribute");class ac extends(Ht({componentName:ic,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n }\n\n descope-badge {\n margin-inline-end: 10px;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${In.cssVarList.textColor});\n }\n </style>\n\n\n <div class="root">\n <div class="text-wrapper">\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary"></descope-text>\n <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-badge mode="default" bordered="true" size="xs"></descope-badge>\n <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=${oc()}></vaadin-icon>\n </descope-button>\n <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=${rc()}></vaadin-icon>\n </descope-button>\n </div\n </div>\n\t\t`,this.deleteButton=this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]'),this.editButton=this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]'),this.badge=this.shadowRoot.querySelector("descope-badge"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]'),this.valueText=this.shadowRoot.querySelector('descope-text[data-id="value-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onValueOrPlaceholderChange(){const t=this.value||this.placeholder,e=this.value?"primary":"secondary";this.valueText.innerText=t,this.valueText.setAttribute("title",t),this.valueText.setAttribute("mode",e)}onBadgeLabelChange(){this.badgeLabel?(this.badge.innerText=this.badgeLabel,this.badge.style.display=""):this.badge.style.display="none"}onBadgeTooltipTextChange(){this.badge.setAttribute("title",this.badgeTooltipText||this.badgeLabel)}onIsRequiredChange(){this.labelText.classList.toggle("required",this.isRequired)}get label(){return this.getAttribute("label")||""}get value(){return this.getAttribute("value")||""}get placeholder(){return this.getAttribute("placeholder")||""}get isRequired(){return"true"===this.getAttribute("required")}get badgeLabel(){return this.getAttribute("badge-label")||""}get badgeTooltipText(){return this.getAttribute("badge-tooltip-text")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.handleDeleteButtonVisibility(),this.deleteButton.addEventListener("click",(()=>this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,composed:!0})))),this.editButton.addEventListener("click",(()=>this.dispatchEvent(new CustomEvent("edit-clicked",{bubbles:!0,composed:!0}))))}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value)}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e!==r&&("label"===t?this.onLabelChange():"value"===t||"placeholder"===t?this.onValueOrPlaceholderChange():"required"===t?this.onIsRequiredChange():"badge-label"===t?this.onBadgeLabelChange():"badge-tooltip-text"===t&&this.onBadgeTooltipTextChange(),"value"!==t&&"required"!==t||this.handleDeleteButtonVisibility())}}const{host:sc,textFields:lc,buttons:dc,badge:cc,labelText:pc,valueText:uc,textWrapper:hc}={host:{selector:()=>":host"},textFields:{selector:"descope-text"},valueText:{selector:'descope-text[data-id="value-text"]'},labelText:{selector:'descope-text[data-id="label-text"]'},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"}},mc=Z(Wt({mappings:{hostWidth:{...sc,property:"width"},hostMinWidth:{...sc,property:"min-width"},hostDirection:[{...sc,property:"direction"},{...lc,property:In.cssVarList.hostDirection},{...dc,property:se.cssVarList.hostDirection},{...cc,property:Sd.cssVarList.hostDirection}],labelTextWidth:{...pc,property:"width"},valueTextWidth:{...uc,property:"width"},badgeMaxWidth:{...cc,property:"max-width"},itemsGap:[{property:"gap"},{...hc,property:"gap"}]}}),Bt,Rt)(ac),fc=dt(Nt),bc=mc.cssVarList,gc={[bc.hostDirection]:fc.direction,[bc.labelTextWidth]:"150px",[bc.valueTextWidth]:"200px",[bc.badgeMaxWidth]:"85px",[bc.itemsGap]:"16px",[bc.hostMinWidth]:"530px",_fullWidth:{[bc.hostWidth]:"100%"}};var yc=r(853),vc=r.n(yc);const xc=tt("user-auth-method");class Cc extends(Ht({componentName:xc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n }\n\n .fulfilled-indicator {\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n padding-inline-end: 1em;\n }\n\n .hidden {\n display: none;\n }\n\n .hidden-btn {\n width: 0;\n overflow: hidden;\n }\n\n slot[name="method-icon"]{\n display: inline-flex;\n align-items: center;\n }\n </style>\n\n\n <div class="root">\n <div class="text-wrapper">\n <slot name="method-icon"></slot>\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-button size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n <div class="fulfilled-indicator">\n <vaadin-icon src=${vc()}></vaadin-icon>\n </div>\n <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>\n </div>\n </div>\n\t\t`,this.button=this.shadowRoot.querySelector("descope-button"),this.fulfilledIndicator=this.shadowRoot.querySelector(".fulfilled-indicator"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onButtonLabelChange(){let t=this.button.querySelector("span");this.buttonLabel?(t||(t=document.createElement("span"),this.button.appendChild(t)),t.innerText=this.buttonLabel):t&&this.button.removeChild(t)}onFulfilledChange(){this.button.classList.toggle("hidden",this.isFulfilled),this.fulfilledIndicator.classList.toggle("hidden",!this.isFulfilled)}get label(){return this.getAttribute("label")||""}get buttonLabel(){return this.getAttribute("button-label")||""}get isFulfilled(){return"true"===this.getAttribute("fulfilled")}init(){this.onLabelChange(),this.onButtonLabelChange(),this.onFulfilledChange(),this.button.addEventListener("click",(()=>this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0}))))}static get observedAttributes(){return["label","fulfilled"].concat(super.observedAttributes)}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e!==r&&("label"===t?this.onLabelChange():"fulfilled"===t?this.onFulfilledChange():"button-label"===t&&this.onButtonLabelChange())}}const{host:wc,textField:kc,buttons:Sc,badge:Mc,textWrapper:Ac,methodIconSlot:Tc}={host:{selector:()=>":host"},textField:{selector:"descope-text"},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"},methodIconSlot:{selector:'slot[name="method-icon"]'}},Ec=Z(Wt({mappings:{hostWidth:{...wc,property:"width"},hostMinWidth:{...wc,property:"min-width"},hostDirection:[{...wc,property:"direction"},{...kc,property:In.cssVarList.hostDirection},{...Sc,property:se.cssVarList.hostDirection},{...Mc,property:Sd.cssVarList.hostDirection}],labelTextWidth:{...kc,property:"width"},itemsGap:[{property:"gap"},{...Ac,property:"gap"}],iconSize:[{...Tc,property:"width"},{...Tc,property:"height"}]}}),Bt,Rt)(Cc),Ic=dt(Nt),_c=Ec.cssVarList,Lc={[_c.hostDirection]:Ic.direction,[_c.labelTextWidth]:"200px",[_c.itemsGap]:"16px",[_c.hostMinWidth]:"530px",[_c.iconSize]:"24px",_fullWidth:{[_c.hostWidth]:"100%"}},zc=tt("saml-group-mappings-internal");Lr({componentName:zc,baseSelector:""});const Oc=tt("saml-group-mappings"),{host:Nc,groupInput:Vc}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"}},Dc=Z(Wt({mappings:{hostWidth:{...Nc,property:"width"},hostDirection:{...Nc,property:"direction"},groupNameInputMarginBottom:{...Vc,property:"margin-bottom"}}}),Bt,Kt({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Rt,(t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${zc}\n tabindex="-1"\n ></${zc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(zc),rt(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),X(this,this.inputElement,{includeAttrs:["invalid"]})}}))(Ut({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-text-field {\n width: auto;\n }\n\n descope-mappings-field {\n display: block;\n }\n ",excludeAttrsSync:["tabindex","label-group","label-value","label-attr","button-label","separator","options","error-message"],componentName:Oc})).cssVarList,Wc={[Dc.hostWidth]:qe.width,[Dc.hostDirection]:qe.direction,[Dc.groupNameInputMarginBottom]:"1em"},Bc=Wc,Rc=dt(Nt),$c=As.cssVarList,Fc={[$c.fontFamily]:qe.fontFamily,[$c.fontSize]:qe.labelFontSize,[$c.textColor]:qe.labelTextColor,[$c.borderWidth]:qe.borderWidth,[$c.borderStyle]:qe.borderStyle,[$c.borderColor]:qe.borderColor,[$c.borderRadius]:Rc.radius.sm,[$c.backgroundColor]:"none",[$c.padding]:"0px",[$c.labelMargin]:Rc.spacing.sm,[$c.itemsSpacing]:Rc.spacing.lg,[$c.itemSymbolDefault]:"'\\2022'",[$c.itemSymbolSuccess]:"'\\2713'",[$c.itemSymbolError]:"'\\2A09'",[$c.itemSymbolSuccessColor]:Rc.colors.success.main,[$c.itemSymbolErrorColor]:Rc.colors.error.main},jc={button:t,textField:o,password:i,numberField:a,emailField:s,textArea:l,checkbox:d,switchToggle:c,container:p,logo:u,totpImage:h,notpImage:m,text:f,EnrichedText:b,link:g,divider:y,passcode:v,loaderRadial:C,loaderLinear:x,comboBox:w,image:k,phoneField:S,phoneInputBoxField:M,newPassword:A,inputWrapper:e,uploadFile:T,buttonSelectionGroupItem:E,buttonSelectionGroup:I,buttonMultiSelectionGroup:_,modal:L,grid:z,notificationCard:O,multiSelectComboBox:N,badge:V,avatar:D,mappingsField:W,userAttribute:B,userAuthMethod:R,samlGroupMappings:$,policyValidation:F},Pc=Object.keys(jc).reduce(((t,e)=>({...t,[e]:jc[e].default})),{}),qc=(Object.keys(jc).reduce(((t,e)=>({...t,[e]:jc[e].vars})),{}),{globals:Nt,components:Pc}),Hc=P()({},qc,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"}}}})})(),n})()));