-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-2VB5JCDE.js
More file actions
63 lines (57 loc) · 166 KB
/
chunk-2VB5JCDE.js
File metadata and controls
63 lines (57 loc) · 166 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import{a as $r,b as Zu,c as Yu}from"./chunk-TNXZVDJM.js";import{a as Gu,b as Vu,c as Ku}from"./chunk-EJLLX3NW.js";import{A as zi,Ba as Ru,Ca as Ri,H as ks,I as Ii,Kb as Uu,M as xu,N as Mt,Na as Pu,Nb as Wu,Oa as Au,Ob as $u,Qa as Ur,Sa as Dn,V as Su,Za as Ou,a as wn,aa as Fs,ab as Nu,bb as Lu,cb as Mu,d as Ms,db as ku,eb as Pi,fa as Bs,ga as Hs,ib as Fu,jb as Bu,la as bu,lb as Hu,mc as Wr,oc as xn,pa as Hr,qc as qu,ra as wt,s as kr,u as Fr,wa as Tu,x as Ei,xa as Eu,y as Du,ya as zu,yb as Us,z as Br,za as Iu,zb as Ws}from"./chunk-GU7FRFWB.js";import{$ as qn,$b as _n,Ab as Pe,Ac as et,B as eu,Ba as Xe,Bb as Ot,C as $n,Cb as Vn,Db as Is,F as tu,Fc as mu,Gb as he,Gc as vu,Hb as cu,Hc as Cu,Ia as hn,L as nu,La as Si,Lc as Os,Nb as Ct,Nc as Ns,Ob as ye,Pb as we,Pc as yu,Rb as ct,Rc as wu,Sb as ut,Tb as ft,Ub as $,Uc as Mr,Vb as F,Wb as U,X as Pr,Xb as je,Y as Ar,Yb as uu,Yc as yt,Z as Gn,Zb as fu,_b as du,a as Wn,aa as iu,ac as mn,bc as Rs,bd as De,c as Ss,ca as ru,cc as Kn,db as Or,dc as hu,eb as pn,f as oe,fb as su,fd as Ls,g as Jc,ga as wi,gc as dt,ha as At,ib as R,id as Zn,j as Xc,ja as Di,jc as K,kc as Yt,l as vt,la as O,lc as Nt,m as Ce,mc as Lr,md as ht,nb as lt,nc as bi,nd as Lt,ob as Nr,oc as vn,pc as Cn,qb as au,qc as Ps,rb as gn,sa as un,sb as Es,sc as pu,t as jc,ta as fn,tb as zs,tc as Ti,ua as bs,uc as gu,va as Ts,vc as Ae,wa as ou,wb as lu,wc as _u,xa as xi,xc as As,ya as dn,yc as pe,zc as yn}from"./chunk-GUHHCQYK.js";import{a as yi,b as Zc,d as Yc,f as Qc,g as Un}from"./chunk-OW75ZOQB.js";var nf=Yc((WC,$s)=>{"use strict";var qv=/[\p{Lu}]/u,Vv=/[\p{Ll}]/u,Qu=/^[\p{Lu}](?![\p{Lu}])/gu,ju=/([\p{Alpha}\p{N}_]|$)/u,ef=/[_.\- ]+/,Kv=new RegExp("^"+ef.source),Ju=new RegExp(ef.source+ju.source,"gu"),Xu=new RegExp("\\d+"+ju.source,"gu"),Zv=(i,o,r)=>{let a=!1,c=!1,h=!1;for(let m=0;m<i.length;m++){let C=i[m];a&&qv.test(C)?(i=i.slice(0,m)+"-"+i.slice(m),a=!1,h=c,c=!0,m++):c&&h&&Vv.test(C)?(i=i.slice(0,m-1)+"-"+i.slice(m-1),h=c,c=!1,a=!0):(a=o(C)===C&&r(C)!==C,h=c,c=r(C)===C&&o(C)!==C)}return i},Yv=(i,o)=>(Qu.lastIndex=0,i.replace(Qu,r=>o(r))),Qv=(i,o)=>(Ju.lastIndex=0,Xu.lastIndex=0,i.replace(Ju,(r,a)=>o(a)).replace(Xu,r=>o(r))),tf=(i,o)=>{if(!(typeof i=="string"||Array.isArray(i)))throw new TypeError("Expected the input to be `string | string[]`");if(o=yi({pascalCase:!1,preserveConsecutiveUppercase:!1},o),Array.isArray(i)?i=i.map(h=>h.trim()).filter(h=>h.length).join("-"):i=i.trim(),i.length===0)return"";let r=o.locale===!1?h=>h.toLowerCase():h=>h.toLocaleLowerCase(o.locale),a=o.locale===!1?h=>h.toUpperCase():h=>h.toLocaleUpperCase(o.locale);return i.length===1?o.pascalCase?a(i):r(i):(i!==r(i)&&(i=Zv(i,r,a)),i=i.replace(Kv,""),o.preserveConsecutiveUppercase?i=Yv(i,r):i=r(i),o.pascalCase&&(i=a(i.charAt(0))+i.slice(1)),Qv(i,a))};$s.exports=tf;$s.exports.default=tf});var xf=Yc((Yn,Ai)=>{"use strict";(function(){var i,o="4.17.23",r=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",h="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",C=500,b="__lodash_placeholder__",T=1,k=2,ne=4,V=1,kt=2,z=1,S=2,P=4,J=8,j=16,le=32,Ee=64,xe=128,Jt=256,Xt=512,Jn=30,bn="...",Xf=800,jf=16,_a=1,ed=2,td=3,jt=1/0,Ft=9007199254740991,nd=17976931348623157e292,Fi=NaN,pt=4294967295,id=pt-1,rd=pt>>>1,od=[["ary",xe],["bind",z],["bindKey",S],["curry",J],["curryRight",j],["flip",Xt],["partial",le],["partialRight",Ee],["rearg",Jt]],Tn="[object Arguments]",Bi="[object Array]",sd="[object AsyncFunction]",Xn="[object Boolean]",jn="[object Date]",ad="[object DOMException]",Hi="[object Error]",Ui="[object Function]",ma="[object GeneratorFunction]",nt="[object Map]",ei="[object Number]",ld="[object Null]",Dt="[object Object]",va="[object Promise]",cd="[object Proxy]",ti="[object RegExp]",it="[object Set]",ni="[object String]",Wi="[object Symbol]",ud="[object Undefined]",ii="[object WeakMap]",fd="[object WeakSet]",ri="[object ArrayBuffer]",En="[object DataView]",no="[object Float32Array]",io="[object Float64Array]",ro="[object Int8Array]",oo="[object Int16Array]",so="[object Int32Array]",ao="[object Uint8Array]",lo="[object Uint8ClampedArray]",co="[object Uint16Array]",uo="[object Uint32Array]",dd=/\b__p \+= '';/g,hd=/\b(__p \+=) '' \+/g,pd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ca=/&(?:amp|lt|gt|quot|#39);/g,ya=/[&<>"']/g,gd=RegExp(Ca.source),_d=RegExp(ya.source),md=/<%-([\s\S]+?)%>/g,vd=/<%([\s\S]+?)%>/g,wa=/<%=([\s\S]+?)%>/g,Cd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yd=/^\w*$/,wd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fo=/[\\^$.*+?()[\]{}|]/g,Dd=RegExp(fo.source),ho=/^\s+/,xd=/\s/,Sd=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bd=/\{\n\/\* \[wrapped with (.+)\] \*/,Td=/,? & /,Ed=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zd=/[()=,{}\[\]\/\s]/,Id=/\\(\\)?/g,Rd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Da=/\w*$/,Pd=/^[-+]0x[0-9a-f]+$/i,Ad=/^0b[01]+$/i,Od=/^\[object .+?Constructor\]$/,Nd=/^0o[0-7]+$/i,Ld=/^(?:0|[1-9]\d*)$/,Md=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$i=/($^)/,kd=/['\n\r\u2028\u2029\\]/g,Gi="\\ud800-\\udfff",Fd="\\u0300-\\u036f",Bd="\\ufe20-\\ufe2f",Hd="\\u20d0-\\u20ff",xa=Fd+Bd+Hd,Sa="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",Ud="\\xac\\xb1\\xd7\\xf7",Wd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$d="\\u2000-\\u206f",Gd=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ta="A-Z\\xc0-\\xd6\\xd8-\\xde",Ea="\\ufe0e\\ufe0f",za=Ud+Wd+$d+Gd,po="['\u2019]",qd="["+Gi+"]",Ia="["+za+"]",qi="["+xa+"]",Ra="\\d+",Vd="["+Sa+"]",Pa="["+ba+"]",Aa="[^"+Gi+za+Ra+Sa+ba+Ta+"]",go="\\ud83c[\\udffb-\\udfff]",Kd="(?:"+qi+"|"+go+")",Oa="[^"+Gi+"]",_o="(?:\\ud83c[\\udde6-\\uddff]){2}",mo="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="["+Ta+"]",Na="\\u200d",La="(?:"+Pa+"|"+Aa+")",Zd="(?:"+zn+"|"+Aa+")",Ma="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",ka="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",Fa=Kd+"?",Ba="["+Ea+"]?",Yd="(?:"+Na+"(?:"+[Oa,_o,mo].join("|")+")"+Ba+Fa+")*",Qd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ha=Ba+Fa+Yd,Xd="(?:"+[Vd,_o,mo].join("|")+")"+Ha,jd="(?:"+[Oa+qi+"?",qi,_o,mo,qd].join("|")+")",eh=RegExp(po,"g"),th=RegExp(qi,"g"),vo=RegExp(go+"(?="+go+")|"+jd+Ha,"g"),nh=RegExp([zn+"?"+Pa+"+"+Ma+"(?="+[Ia,zn,"$"].join("|")+")",Zd+"+"+ka+"(?="+[Ia,zn+La,"$"].join("|")+")",zn+"?"+La+"+"+Ma,zn+"+"+ka,Jd,Qd,Ra,Xd].join("|"),"g"),ih=RegExp("["+Na+Gi+xa+Ea+"]"),rh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],sh=-1,se={};se[no]=se[io]=se[ro]=se[oo]=se[so]=se[ao]=se[lo]=se[co]=se[uo]=!0,se[Tn]=se[Bi]=se[ri]=se[Xn]=se[En]=se[jn]=se[Hi]=se[Ui]=se[nt]=se[ei]=se[Dt]=se[ti]=se[it]=se[ni]=se[ii]=!1;var re={};re[Tn]=re[Bi]=re[ri]=re[En]=re[Xn]=re[jn]=re[no]=re[io]=re[ro]=re[oo]=re[so]=re[nt]=re[ei]=re[Dt]=re[ti]=re[it]=re[ni]=re[Wi]=re[ao]=re[lo]=re[co]=re[uo]=!0,re[Hi]=re[Ui]=re[ii]=!1;var ah={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},lh={"&":"&","<":"<",">":">",'"':""","'":"'"},ch={"&":"&","<":"<",">":">",""":'"',"'":"'"},uh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fh=parseFloat,dh=parseInt,Ua=typeof global=="object"&&global&&global.Object===Object&&global,hh=typeof self=="object"&&self&&self.Object===Object&&self,me=Ua||hh||Function("return this")(),Co=typeof Yn=="object"&&Yn&&!Yn.nodeType&&Yn,en=Co&&typeof Ai=="object"&&Ai&&!Ai.nodeType&&Ai,Wa=en&&en.exports===Co,yo=Wa&&Ua.process,Ge=(function(){try{var g=en&&en.require&&en.require("util").types;return g||yo&&yo.binding&&yo.binding("util")}catch{}})(),$a=Ge&&Ge.isArrayBuffer,Ga=Ge&&Ge.isDate,qa=Ge&&Ge.isMap,Va=Ge&&Ge.isRegExp,Ka=Ge&&Ge.isSet,Za=Ge&&Ge.isTypedArray;function Fe(g,y,v){switch(v.length){case 0:return g.call(y);case 1:return g.call(y,v[0]);case 2:return g.call(y,v[0],v[1]);case 3:return g.call(y,v[0],v[1],v[2])}return g.apply(y,v)}function ph(g,y,v,I){for(var B=-1,X=g==null?0:g.length;++B<X;){var ge=g[B];y(I,ge,v(ge),g)}return I}function qe(g,y){for(var v=-1,I=g==null?0:g.length;++v<I&&y(g[v],v,g)!==!1;);return g}function gh(g,y){for(var v=g==null?0:g.length;v--&&y(g[v],v,g)!==!1;);return g}function Ya(g,y){for(var v=-1,I=g==null?0:g.length;++v<I;)if(!y(g[v],v,g))return!1;return!0}function Bt(g,y){for(var v=-1,I=g==null?0:g.length,B=0,X=[];++v<I;){var ge=g[v];y(ge,v,g)&&(X[B++]=ge)}return X}function Vi(g,y){var v=g==null?0:g.length;return!!v&&In(g,y,0)>-1}function wo(g,y,v){for(var I=-1,B=g==null?0:g.length;++I<B;)if(v(y,g[I]))return!0;return!1}function ae(g,y){for(var v=-1,I=g==null?0:g.length,B=Array(I);++v<I;)B[v]=y(g[v],v,g);return B}function Ht(g,y){for(var v=-1,I=y.length,B=g.length;++v<I;)g[B+v]=y[v];return g}function Do(g,y,v,I){var B=-1,X=g==null?0:g.length;for(I&&X&&(v=g[++B]);++B<X;)v=y(v,g[B],B,g);return v}function _h(g,y,v,I){var B=g==null?0:g.length;for(I&&B&&(v=g[--B]);B--;)v=y(v,g[B],B,g);return v}function xo(g,y){for(var v=-1,I=g==null?0:g.length;++v<I;)if(y(g[v],v,g))return!0;return!1}var mh=So("length");function vh(g){return g.split("")}function Ch(g){return g.match(Ed)||[]}function Qa(g,y,v){var I;return v(g,function(B,X,ge){if(y(B,X,ge))return I=X,!1}),I}function Ki(g,y,v,I){for(var B=g.length,X=v+(I?1:-1);I?X--:++X<B;)if(y(g[X],X,g))return X;return-1}function In(g,y,v){return y===y?Ph(g,y,v):Ki(g,Ja,v)}function yh(g,y,v,I){for(var B=v-1,X=g.length;++B<X;)if(I(g[B],y))return B;return-1}function Ja(g){return g!==g}function Xa(g,y){var v=g==null?0:g.length;return v?To(g,y)/v:Fi}function So(g){return function(y){return y==null?i:y[g]}}function bo(g){return function(y){return g==null?i:g[y]}}function ja(g,y,v,I,B){return B(g,function(X,ge,ie){v=I?(I=!1,X):y(v,X,ge,ie)}),v}function wh(g,y){var v=g.length;for(g.sort(y);v--;)g[v]=g[v].value;return g}function To(g,y){for(var v,I=-1,B=g.length;++I<B;){var X=y(g[I]);X!==i&&(v=v===i?X:v+X)}return v}function Eo(g,y){for(var v=-1,I=Array(g);++v<g;)I[v]=y(v);return I}function Dh(g,y){return ae(y,function(v){return[v,g[v]]})}function el(g){return g&&g.slice(0,rl(g)+1).replace(ho,"")}function Be(g){return function(y){return g(y)}}function zo(g,y){return ae(y,function(v){return g[v]})}function oi(g,y){return g.has(y)}function tl(g,y){for(var v=-1,I=g.length;++v<I&&In(y,g[v],0)>-1;);return v}function nl(g,y){for(var v=g.length;v--&&In(y,g[v],0)>-1;);return v}function xh(g,y){for(var v=g.length,I=0;v--;)g[v]===y&&++I;return I}var Sh=bo(ah),bh=bo(lh);function Th(g){return"\\"+uh[g]}function Eh(g,y){return g==null?i:g[y]}function Rn(g){return ih.test(g)}function zh(g){return rh.test(g)}function Ih(g){for(var y,v=[];!(y=g.next()).done;)v.push(y.value);return v}function Io(g){var y=-1,v=Array(g.size);return g.forEach(function(I,B){v[++y]=[B,I]}),v}function il(g,y){return function(v){return g(y(v))}}function Ut(g,y){for(var v=-1,I=g.length,B=0,X=[];++v<I;){var ge=g[v];(ge===y||ge===b)&&(g[v]=b,X[B++]=v)}return X}function Zi(g){var y=-1,v=Array(g.size);return g.forEach(function(I){v[++y]=I}),v}function Rh(g){var y=-1,v=Array(g.size);return g.forEach(function(I){v[++y]=[I,I]}),v}function Ph(g,y,v){for(var I=v-1,B=g.length;++I<B;)if(g[I]===y)return I;return-1}function Ah(g,y,v){for(var I=v+1;I--;)if(g[I]===y)return I;return I}function Pn(g){return Rn(g)?Nh(g):mh(g)}function rt(g){return Rn(g)?Lh(g):vh(g)}function rl(g){for(var y=g.length;y--&&xd.test(g.charAt(y)););return y}var Oh=bo(ch);function Nh(g){for(var y=vo.lastIndex=0;vo.test(g);)++y;return y}function Lh(g){return g.match(vo)||[]}function Mh(g){return g.match(nh)||[]}var kh=function g(y){y=y==null?me:Wt.defaults(me.Object(),y,Wt.pick(me,oh));var v=y.Array,I=y.Date,B=y.Error,X=y.Function,ge=y.Math,ie=y.Object,Ro=y.RegExp,Fh=y.String,Ve=y.TypeError,Yi=v.prototype,Bh=X.prototype,An=ie.prototype,Qi=y["__core-js_shared__"],Ji=Bh.toString,ee=An.hasOwnProperty,Hh=0,ol=(function(){var e=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Xi=An.toString,Uh=Ji.call(ie),Wh=me._,$h=Ro("^"+Ji.call(ee).replace(fo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ji=Wa?y.Buffer:i,$t=y.Symbol,er=y.Uint8Array,sl=ji?ji.allocUnsafe:i,tr=il(ie.getPrototypeOf,ie),al=ie.create,ll=An.propertyIsEnumerable,nr=Yi.splice,cl=$t?$t.isConcatSpreadable:i,si=$t?$t.iterator:i,tn=$t?$t.toStringTag:i,ir=(function(){try{var e=an(ie,"defineProperty");return e({},"",{}),e}catch{}})(),Gh=y.clearTimeout!==me.clearTimeout&&y.clearTimeout,qh=I&&I.now!==me.Date.now&&I.now,Vh=y.setTimeout!==me.setTimeout&&y.setTimeout,rr=ge.ceil,or=ge.floor,Po=ie.getOwnPropertySymbols,Kh=ji?ji.isBuffer:i,ul=y.isFinite,Zh=Yi.join,Yh=il(ie.keys,ie),_e=ge.max,be=ge.min,Qh=I.now,Jh=y.parseInt,fl=ge.random,Xh=Yi.reverse,Ao=an(y,"DataView"),ai=an(y,"Map"),Oo=an(y,"Promise"),On=an(y,"Set"),li=an(y,"WeakMap"),ci=an(ie,"create"),sr=li&&new li,Nn={},jh=ln(Ao),ep=ln(ai),tp=ln(Oo),np=ln(On),ip=ln(li),ar=$t?$t.prototype:i,ui=ar?ar.valueOf:i,dl=ar?ar.toString:i;function u(e){if(ue(e)&&!H(e)&&!(e instanceof Y)){if(e instanceof Ke)return e;if(ee.call(e,"__wrapped__"))return hc(e)}return new Ke(e)}var Ln=(function(){function e(){}return function(t){if(!ce(t))return{};if(al)return al(t);e.prototype=t;var n=new e;return e.prototype=i,n}})();function lr(){}function Ke(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}u.templateSettings={escape:md,evaluate:vd,interpolate:wa,variable:"",imports:{_:u}},u.prototype=lr.prototype,u.prototype.constructor=u,Ke.prototype=Ln(lr.prototype),Ke.prototype.constructor=Ke;function Y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pt,this.__views__=[]}function rp(){var e=new Y(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function op(){if(this.__filtered__){var e=new Y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function sp(){var e=this.__wrapped__.value(),t=this.__dir__,n=H(e),s=t<0,l=n?e.length:0,f=vg(0,l,this.__views__),d=f.start,p=f.end,_=p-d,w=s?p:d-1,D=this.__iteratees__,x=D.length,E=0,A=be(_,this.__takeCount__);if(!n||!s&&l==_&&A==_)return Ml(e,this.__actions__);var L=[];e:for(;_--&&E<A;){w+=t;for(var G=-1,M=e[w];++G<x;){var Z=D[G],Q=Z.iteratee,We=Z.type,Re=Q(M);if(We==ed)M=Re;else if(!Re){if(We==_a)continue e;break e}}L[E++]=M}return L}Y.prototype=Ln(lr.prototype),Y.prototype.constructor=Y;function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function ap(){this.__data__=ci?ci(null):{},this.size=0}function lp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function cp(e){var t=this.__data__;if(ci){var n=t[e];return n===m?i:n}return ee.call(t,e)?t[e]:i}function up(e){var t=this.__data__;return ci?t[e]!==i:ee.call(t,e)}function fp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ci&&t===i?m:t,this}nn.prototype.clear=ap,nn.prototype.delete=lp,nn.prototype.get=cp,nn.prototype.has=up,nn.prototype.set=fp;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function dp(){this.__data__=[],this.size=0}function hp(e){var t=this.__data__,n=cr(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():nr.call(t,n,1),--this.size,!0}function pp(e){var t=this.__data__,n=cr(t,e);return n<0?i:t[n][1]}function gp(e){return cr(this.__data__,e)>-1}function _p(e,t){var n=this.__data__,s=cr(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}xt.prototype.clear=dp,xt.prototype.delete=hp,xt.prototype.get=pp,xt.prototype.has=gp,xt.prototype.set=_p;function St(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function mp(){this.size=0,this.__data__={hash:new nn,map:new(ai||xt),string:new nn}}function vp(e){var t=wr(this,e).delete(e);return this.size-=t?1:0,t}function Cp(e){return wr(this,e).get(e)}function yp(e){return wr(this,e).has(e)}function wp(e,t){var n=wr(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}St.prototype.clear=mp,St.prototype.delete=vp,St.prototype.get=Cp,St.prototype.has=yp,St.prototype.set=wp;function rn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new St;++t<n;)this.add(e[t])}function Dp(e){return this.__data__.set(e,m),this}function xp(e){return this.__data__.has(e)}rn.prototype.add=rn.prototype.push=Dp,rn.prototype.has=xp;function ot(e){var t=this.__data__=new xt(e);this.size=t.size}function Sp(){this.__data__=new xt,this.size=0}function bp(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Tp(e){return this.__data__.get(e)}function Ep(e){return this.__data__.has(e)}function zp(e,t){var n=this.__data__;if(n instanceof xt){var s=n.__data__;if(!ai||s.length<r-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new St(s)}return n.set(e,t),this.size=n.size,this}ot.prototype.clear=Sp,ot.prototype.delete=bp,ot.prototype.get=Tp,ot.prototype.has=Ep,ot.prototype.set=zp;function hl(e,t){var n=H(e),s=!n&&cn(e),l=!n&&!s&&Zt(e),f=!n&&!s&&!l&&Bn(e),d=n||s||l||f,p=d?Eo(e.length,Fh):[],_=p.length;for(var w in e)(t||ee.call(e,w))&&!(d&&(w=="length"||l&&(w=="offset"||w=="parent")||f&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||zt(w,_)))&&p.push(w);return p}function pl(e){var t=e.length;return t?e[Go(0,t-1)]:i}function Ip(e,t){return Dr(Ne(e),on(t,0,e.length))}function Rp(e){return Dr(Ne(e))}function No(e,t,n){(n!==i&&!st(e[t],n)||n===i&&!(t in e))&&bt(e,t,n)}function fi(e,t,n){var s=e[t];(!(ee.call(e,t)&&st(s,n))||n===i&&!(t in e))&&bt(e,t,n)}function cr(e,t){for(var n=e.length;n--;)if(st(e[n][0],t))return n;return-1}function Pp(e,t,n,s){return Gt(e,function(l,f,d){t(s,l,n(l),d)}),s}function gl(e,t){return e&&_t(t,ve(t),e)}function Ap(e,t){return e&&_t(t,Me(t),e)}function bt(e,t,n){t=="__proto__"&&ir?ir(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Lo(e,t){for(var n=-1,s=t.length,l=v(s),f=e==null;++n<s;)l[n]=f?i:gs(e,t[n]);return l}function on(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ze(e,t,n,s,l,f){var d,p=t&T,_=t&k,w=t≠if(n&&(d=l?n(e,s,l,f):n(e)),d!==i)return d;if(!ce(e))return e;var D=H(e);if(D){if(d=yg(e),!p)return Ne(e,d)}else{var x=Te(e),E=x==Ui||x==ma;if(Zt(e))return Bl(e,p);if(x==Dt||x==Tn||E&&!l){if(d=_||E?{}:rc(e),!p)return _?cg(e,Ap(d,e)):lg(e,gl(d,e))}else{if(!re[x])return l?e:{};d=wg(e,x,p)}}f||(f=new ot);var A=f.get(e);if(A)return A;f.set(e,d),Oc(e)?e.forEach(function(M){d.add(Ze(M,t,n,M,e,f))}):Pc(e)&&e.forEach(function(M,Z){d.set(Z,Ze(M,t,n,Z,e,f))});var L=w?_?ts:es:_?Me:ve,G=D?i:L(e);return qe(G||e,function(M,Z){G&&(Z=M,M=e[Z]),fi(d,Z,Ze(M,t,n,Z,e,f))}),d}function Op(e){var t=ve(e);return function(n){return _l(n,e,t)}}function _l(e,t,n){var s=n.length;if(e==null)return!s;for(e=ie(e);s--;){var l=n[s],f=t[l],d=e[l];if(d===i&&!(l in e)||!f(d))return!1}return!0}function ml(e,t,n){if(typeof e!="function")throw new Ve(c);return vi(function(){e.apply(i,n)},t)}function di(e,t,n,s){var l=-1,f=Vi,d=!0,p=e.length,_=[],w=t.length;if(!p)return _;n&&(t=ae(t,Be(n))),s?(f=wo,d=!1):t.length>=r&&(f=oi,d=!1,t=new rn(t));e:for(;++l<p;){var D=e[l],x=n==null?D:n(D);if(D=s||D!==0?D:0,d&&x===x){for(var E=w;E--;)if(t[E]===x)continue e;_.push(D)}else f(t,x,s)||_.push(D)}return _}var Gt=Gl(gt),vl=Gl(ko,!0);function Np(e,t){var n=!0;return Gt(e,function(s,l,f){return n=!!t(s,l,f),n}),n}function ur(e,t,n){for(var s=-1,l=e.length;++s<l;){var f=e[s],d=t(f);if(d!=null&&(p===i?d===d&&!Ue(d):n(d,p)))var p=d,_=f}return _}function Lp(e,t,n,s){var l=e.length;for(n=W(n),n<0&&(n=-n>l?0:l+n),s=s===i||s>l?l:W(s),s<0&&(s+=l),s=n>s?0:Lc(s);n<s;)e[n++]=t;return e}function Cl(e,t){var n=[];return Gt(e,function(s,l,f){t(s,l,f)&&n.push(s)}),n}function Se(e,t,n,s,l){var f=-1,d=e.length;for(n||(n=xg),l||(l=[]);++f<d;){var p=e[f];t>0&&n(p)?t>1?Se(p,t-1,n,s,l):Ht(l,p):s||(l[l.length]=p)}return l}var Mo=ql(),yl=ql(!0);function gt(e,t){return e&&Mo(e,t,ve)}function ko(e,t){return e&&yl(e,t,ve)}function fr(e,t){return Bt(t,function(n){return It(e[n])})}function sn(e,t){t=Vt(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[mt(t[n++])];return n&&n==s?e:i}function wl(e,t,n){var s=t(e);return H(e)?s:Ht(s,n(e))}function ze(e){return e==null?e===i?ud:ld:tn&&tn in ie(e)?mg(e):Rg(e)}function Fo(e,t){return e>t}function Mp(e,t){return e!=null&&ee.call(e,t)}function kp(e,t){return e!=null&&t in ie(e)}function Fp(e,t,n){return e>=be(t,n)&&e<_e(t,n)}function Bo(e,t,n){for(var s=n?wo:Vi,l=e[0].length,f=e.length,d=f,p=v(f),_=1/0,w=[];d--;){var D=e[d];d&&t&&(D=ae(D,Be(t))),_=be(D.length,_),p[d]=!n&&(t||l>=120&&D.length>=120)?new rn(d&&D):i}D=e[0];var x=-1,E=p[0];e:for(;++x<l&&w.length<_;){var A=D[x],L=t?t(A):A;if(A=n||A!==0?A:0,!(E?oi(E,L):s(w,L,n))){for(d=f;--d;){var G=p[d];if(!(G?oi(G,L):s(e[d],L,n)))continue e}E&&E.push(L),w.push(A)}}return w}function Bp(e,t,n,s){return gt(e,function(l,f,d){t(s,n(l),f,d)}),s}function hi(e,t,n){t=Vt(t,e),e=lc(e,t);var s=e==null?e:e[mt(Qe(t))];return s==null?i:Fe(s,e,n)}function Dl(e){return ue(e)&&ze(e)==Tn}function Hp(e){return ue(e)&&ze(e)==ri}function Up(e){return ue(e)&&ze(e)==jn}function pi(e,t,n,s,l){return e===t?!0:e==null||t==null||!ue(e)&&!ue(t)?e!==e&&t!==t:Wp(e,t,n,s,pi,l)}function Wp(e,t,n,s,l,f){var d=H(e),p=H(t),_=d?Bi:Te(e),w=p?Bi:Te(t);_=_==Tn?Dt:_,w=w==Tn?Dt:w;var D=_==Dt,x=w==Dt,E=_==w;if(E&&Zt(e)){if(!Zt(t))return!1;d=!0,D=!1}if(E&&!D)return f||(f=new ot),d||Bn(e)?tc(e,t,n,s,l,f):gg(e,t,_,n,s,l,f);if(!(n&V)){var A=D&&ee.call(e,"__wrapped__"),L=x&&ee.call(t,"__wrapped__");if(A||L){var G=A?e.value():e,M=L?t.value():t;return f||(f=new ot),l(G,M,n,s,f)}}return E?(f||(f=new ot),_g(e,t,n,s,l,f)):!1}function $p(e){return ue(e)&&Te(e)==nt}function Ho(e,t,n,s){var l=n.length,f=l,d=!s;if(e==null)return!f;for(e=ie(e);l--;){var p=n[l];if(d&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++l<f;){p=n[l];var _=p[0],w=e[_],D=p[1];if(d&&p[2]){if(w===i&&!(_ in e))return!1}else{var x=new ot;if(s)var E=s(w,D,_,e,t,x);if(!(E===i?pi(D,w,V|kt,s,x):E))return!1}}return!0}function xl(e){if(!ce(e)||bg(e))return!1;var t=It(e)?$h:Od;return t.test(ln(e))}function Gp(e){return ue(e)&&ze(e)==ti}function qp(e){return ue(e)&&Te(e)==it}function Vp(e){return ue(e)&&zr(e.length)&&!!se[ze(e)]}function Sl(e){return typeof e=="function"?e:e==null?ke:typeof e=="object"?H(e)?El(e[0],e[1]):Tl(e):Vc(e)}function Uo(e){if(!mi(e))return Yh(e);var t=[];for(var n in ie(e))ee.call(e,n)&&n!="constructor"&&t.push(n);return t}function Kp(e){if(!ce(e))return Ig(e);var t=mi(e),n=[];for(var s in e)s=="constructor"&&(t||!ee.call(e,s))||n.push(s);return n}function Wo(e,t){return e<t}function bl(e,t){var n=-1,s=Le(e)?v(e.length):[];return Gt(e,function(l,f,d){s[++n]=t(l,f,d)}),s}function Tl(e){var t=is(e);return t.length==1&&t[0][2]?sc(t[0][0],t[0][1]):function(n){return n===e||Ho(n,e,t)}}function El(e,t){return os(e)&&oc(t)?sc(mt(e),t):function(n){var s=gs(n,e);return s===i&&s===t?_s(n,e):pi(t,s,V|kt)}}function dr(e,t,n,s,l){e!==t&&Mo(t,function(f,d){if(l||(l=new ot),ce(f))Zp(e,t,d,n,dr,s,l);else{var p=s?s(as(e,d),f,d+"",e,t,l):i;p===i&&(p=f),No(e,d,p)}},Me)}function Zp(e,t,n,s,l,f,d){var p=as(e,n),_=as(t,n),w=d.get(_);if(w){No(e,n,w);return}var D=f?f(p,_,n+"",e,t,d):i,x=D===i;if(x){var E=H(_),A=!E&&Zt(_),L=!E&&!A&&Bn(_);D=_,E||A||L?H(p)?D=p:fe(p)?D=Ne(p):A?(x=!1,D=Bl(_,!0)):L?(x=!1,D=Hl(_,!0)):D=[]:Ci(_)||cn(_)?(D=p,cn(p)?D=Mc(p):(!ce(p)||It(p))&&(D=rc(_))):x=!1}x&&(d.set(_,D),l(D,_,s,f,d),d.delete(_)),No(e,n,D)}function zl(e,t){var n=e.length;if(n)return t+=t<0?n:0,zt(t,n)?e[t]:i}function Il(e,t,n){t.length?t=ae(t,function(f){return H(f)?function(d){return sn(d,f.length===1?f[0]:f)}:f}):t=[ke];var s=-1;t=ae(t,Be(N()));var l=bl(e,function(f,d,p){var _=ae(t,function(w){return w(f)});return{criteria:_,index:++s,value:f}});return wh(l,function(f,d){return ag(f,d,n)})}function Yp(e,t){return Rl(e,t,function(n,s){return _s(e,s)})}function Rl(e,t,n){for(var s=-1,l=t.length,f={};++s<l;){var d=t[s],p=sn(e,d);n(p,d)&&gi(f,Vt(d,e),p)}return f}function Qp(e){return function(t){return sn(t,e)}}function $o(e,t,n,s){var l=s?yh:In,f=-1,d=t.length,p=e;for(e===t&&(t=Ne(t)),n&&(p=ae(e,Be(n)));++f<d;)for(var _=0,w=t[f],D=n?n(w):w;(_=l(p,D,_,s))>-1;)p!==e&&nr.call(p,_,1),nr.call(e,_,1);return e}function Pl(e,t){for(var n=e?t.length:0,s=n-1;n--;){var l=t[n];if(n==s||l!==f){var f=l;zt(l)?nr.call(e,l,1):Ko(e,l)}}return e}function Go(e,t){return e+or(fl()*(t-e+1))}function Jp(e,t,n,s){for(var l=-1,f=_e(rr((t-e)/(n||1)),0),d=v(f);f--;)d[s?f:++l]=e,e+=n;return d}function qo(e,t){var n="";if(!e||t<1||t>Ft)return n;do t%2&&(n+=e),t=or(t/2),t&&(e+=e);while(t);return n}function q(e,t){return ls(ac(e,t,ke),e+"")}function Xp(e){return pl(Hn(e))}function jp(e,t){var n=Hn(e);return Dr(n,on(t,0,n.length))}function gi(e,t,n,s){if(!ce(e))return e;t=Vt(t,e);for(var l=-1,f=t.length,d=f-1,p=e;p!=null&&++l<f;){var _=mt(t[l]),w=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(l!=d){var D=p[_];w=s?s(D,_,p):i,w===i&&(w=ce(D)?D:zt(t[l+1])?[]:{})}fi(p,_,w),p=p[_]}return e}var Al=sr?function(e,t){return sr.set(e,t),e}:ke,eg=ir?function(e,t){return ir(e,"toString",{configurable:!0,enumerable:!1,value:vs(t),writable:!0})}:ke;function tg(e){return Dr(Hn(e))}function Ye(e,t,n){var s=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var f=v(l);++s<l;)f[s]=e[s+t];return f}function ng(e,t){var n;return Gt(e,function(s,l,f){return n=t(s,l,f),!n}),!!n}function hr(e,t,n){var s=0,l=e==null?s:e.length;if(typeof t=="number"&&t===t&&l<=rd){for(;s<l;){var f=s+l>>>1,d=e[f];d!==null&&!Ue(d)&&(n?d<=t:d<t)?s=f+1:l=f}return l}return Vo(e,t,ke,n)}function Vo(e,t,n,s){var l=0,f=e==null?0:e.length;if(f===0)return 0;t=n(t);for(var d=t!==t,p=t===null,_=Ue(t),w=t===i;l<f;){var D=or((l+f)/2),x=n(e[D]),E=x!==i,A=x===null,L=x===x,G=Ue(x);if(d)var M=s||L;else w?M=L&&(s||E):p?M=L&&E&&(s||!A):_?M=L&&E&&!A&&(s||!G):A||G?M=!1:M=s?x<=t:x<t;M?l=D+1:f=D}return be(f,id)}function Ol(e,t){for(var n=-1,s=e.length,l=0,f=[];++n<s;){var d=e[n],p=t?t(d):d;if(!n||!st(p,_)){var _=p;f[l++]=d===0?0:d}}return f}function Nl(e){return typeof e=="number"?e:Ue(e)?Fi:+e}function He(e){if(typeof e=="string")return e;if(H(e))return ae(e,He)+"";if(Ue(e))return dl?dl.call(e):"";var t=e+"";return t=="0"&&1/e==-jt?"-0":t}function qt(e,t,n){var s=-1,l=Vi,f=e.length,d=!0,p=[],_=p;if(n)d=!1,l=wo;else if(f>=r){var w=t?null:hg(e);if(w)return Zi(w);d=!1,l=oi,_=new rn}else _=t?[]:p;e:for(;++s<f;){var D=e[s],x=t?t(D):D;if(D=n||D!==0?D:0,d&&x===x){for(var E=_.length;E--;)if(_[E]===x)continue e;t&&_.push(x),p.push(D)}else l(_,x,n)||(_!==p&&_.push(x),p.push(D))}return p}function Ko(e,t){t=Vt(t,e);var n=-1,s=t.length;if(!s)return!0;for(var l=e==null||typeof e!="object"&&typeof e!="function";++n<s;){var f=t[n];if(typeof f=="string"){if(f==="__proto__"&&!ee.call(e,"__proto__"))return!1;if(f==="constructor"&&n+1<s&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(l&&n===0)continue;return!1}}}var d=lc(e,t);return d==null||delete d[mt(Qe(t))]}function Ll(e,t,n,s){return gi(e,t,n(sn(e,t)),s)}function pr(e,t,n,s){for(var l=e.length,f=s?l:-1;(s?f--:++f<l)&&t(e[f],f,e););return n?Ye(e,s?0:f,s?f+1:l):Ye(e,s?f+1:0,s?l:f)}function Ml(e,t){var n=e;return n instanceof Y&&(n=n.value()),Do(t,function(s,l){return l.func.apply(l.thisArg,Ht([s],l.args))},n)}function Zo(e,t,n){var s=e.length;if(s<2)return s?qt(e[0]):[];for(var l=-1,f=v(s);++l<s;)for(var d=e[l],p=-1;++p<s;)p!=l&&(f[l]=di(f[l]||d,e[p],t,n));return qt(Se(f,1),t,n)}function kl(e,t,n){for(var s=-1,l=e.length,f=t.length,d={};++s<l;){var p=s<f?t[s]:i;n(d,e[s],p)}return d}function Yo(e){return fe(e)?e:[]}function Qo(e){return typeof e=="function"?e:ke}function Vt(e,t){return H(e)?e:os(e,t)?[e]:dc(te(e))}var ig=q;function Kt(e,t,n){var s=e.length;return n=n===i?s:n,!t&&n>=s?e:Ye(e,t,n)}var Fl=Gh||function(e){return me.clearTimeout(e)};function Bl(e,t){if(t)return e.slice();var n=e.length,s=sl?sl(n):new e.constructor(n);return e.copy(s),s}function Jo(e){var t=new e.constructor(e.byteLength);return new er(t).set(new er(e)),t}function rg(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function og(e){var t=new e.constructor(e.source,Da.exec(e));return t.lastIndex=e.lastIndex,t}function sg(e){return ui?ie(ui.call(e)):{}}function Hl(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ul(e,t){if(e!==t){var n=e!==i,s=e===null,l=e===e,f=Ue(e),d=t!==i,p=t===null,_=t===t,w=Ue(t);if(!p&&!w&&!f&&e>t||f&&d&&_&&!p&&!w||s&&d&&_||!n&&_||!l)return 1;if(!s&&!f&&!w&&e<t||w&&n&&l&&!s&&!f||p&&n&&l||!d&&l||!_)return-1}return 0}function ag(e,t,n){for(var s=-1,l=e.criteria,f=t.criteria,d=l.length,p=n.length;++s<d;){var _=Ul(l[s],f[s]);if(_){if(s>=p)return _;var w=n[s];return _*(w=="desc"?-1:1)}}return e.index-t.index}function Wl(e,t,n,s){for(var l=-1,f=e.length,d=n.length,p=-1,_=t.length,w=_e(f-d,0),D=v(_+w),x=!s;++p<_;)D[p]=t[p];for(;++l<d;)(x||l<f)&&(D[n[l]]=e[l]);for(;w--;)D[p++]=e[l++];return D}function $l(e,t,n,s){for(var l=-1,f=e.length,d=-1,p=n.length,_=-1,w=t.length,D=_e(f-p,0),x=v(D+w),E=!s;++l<D;)x[l]=e[l];for(var A=l;++_<w;)x[A+_]=t[_];for(;++d<p;)(E||l<f)&&(x[A+n[d]]=e[l++]);return x}function Ne(e,t){var n=-1,s=e.length;for(t||(t=v(s));++n<s;)t[n]=e[n];return t}function _t(e,t,n,s){var l=!n;n||(n={});for(var f=-1,d=t.length;++f<d;){var p=t[f],_=s?s(n[p],e[p],p,n,e):i;_===i&&(_=e[p]),l?bt(n,p,_):fi(n,p,_)}return n}function lg(e,t){return _t(e,rs(e),t)}function cg(e,t){return _t(e,nc(e),t)}function gr(e,t){return function(n,s){var l=H(n)?ph:Pp,f=t?t():{};return l(n,e,N(s,2),f)}}function Mn(e){return q(function(t,n){var s=-1,l=n.length,f=l>1?n[l-1]:i,d=l>2?n[2]:i;for(f=e.length>3&&typeof f=="function"?(l--,f):i,d&&Ie(n[0],n[1],d)&&(f=l<3?i:f,l=1),t=ie(t);++s<l;){var p=n[s];p&&e(t,p,s,f)}return t})}function Gl(e,t){return function(n,s){if(n==null)return n;if(!Le(n))return e(n,s);for(var l=n.length,f=t?l:-1,d=ie(n);(t?f--:++f<l)&&s(d[f],f,d)!==!1;);return n}}function ql(e){return function(t,n,s){for(var l=-1,f=ie(t),d=s(t),p=d.length;p--;){var _=d[e?p:++l];if(n(f[_],_,f)===!1)break}return t}}function ug(e,t,n){var s=t&z,l=_i(e);function f(){var d=this&&this!==me&&this instanceof f?l:e;return d.apply(s?n:this,arguments)}return f}function Vl(e){return function(t){t=te(t);var n=Rn(t)?rt(t):i,s=n?n[0]:t.charAt(0),l=n?Kt(n,1).join(""):t.slice(1);return s[e]()+l}}function kn(e){return function(t){return Do(Gc($c(t).replace(eh,"")),e,"")}}function _i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ln(e.prototype),s=e.apply(n,t);return ce(s)?s:n}}function fg(e,t,n){var s=_i(e);function l(){for(var f=arguments.length,d=v(f),p=f,_=Fn(l);p--;)d[p]=arguments[p];var w=f<3&&d[0]!==_&&d[f-1]!==_?[]:Ut(d,_);if(f-=w.length,f<n)return Jl(e,t,_r,l.placeholder,i,d,w,i,i,n-f);var D=this&&this!==me&&this instanceof l?s:e;return Fe(D,this,d)}return l}function Kl(e){return function(t,n,s){var l=ie(t);if(!Le(t)){var f=N(n,3);t=ve(t),n=function(p){return f(l[p],p,l)}}var d=e(t,n,s);return d>-1?l[f?t[d]:d]:i}}function Zl(e){return Et(function(t){var n=t.length,s=n,l=Ke.prototype.thru;for(e&&t.reverse();s--;){var f=t[s];if(typeof f!="function")throw new Ve(c);if(l&&!d&&yr(f)=="wrapper")var d=new Ke([],!0)}for(s=d?s:n;++s<n;){f=t[s];var p=yr(f),_=p=="wrapper"?ns(f):i;_&&ss(_[0])&&_[1]==(xe|J|le|Jt)&&!_[4].length&&_[9]==1?d=d[yr(_[0])].apply(d,_[3]):d=f.length==1&&ss(f)?d[p]():d.thru(f)}return function(){var w=arguments,D=w[0];if(d&&w.length==1&&H(D))return d.plant(D).value();for(var x=0,E=n?t[x].apply(this,w):D;++x<n;)E=t[x].call(this,E);return E}})}function _r(e,t,n,s,l,f,d,p,_,w){var D=t&xe,x=t&z,E=t&S,A=t&(J|j),L=t&Xt,G=E?i:_i(e);function M(){for(var Z=arguments.length,Q=v(Z),We=Z;We--;)Q[We]=arguments[We];if(A)var Re=Fn(M),$e=xh(Q,Re);if(s&&(Q=Wl(Q,s,l,A)),f&&(Q=$l(Q,f,d,A)),Z-=$e,A&&Z<w){var de=Ut(Q,Re);return Jl(e,t,_r,M.placeholder,n,Q,de,p,_,w-Z)}var at=x?n:this,Pt=E?at[e]:e;return Z=Q.length,p?Q=Pg(Q,p):L&&Z>1&&Q.reverse(),D&&_<Z&&(Q.length=_),this&&this!==me&&this instanceof M&&(Pt=G||_i(Pt)),Pt.apply(at,Q)}return M}function Yl(e,t){return function(n,s){return Bp(n,e,t(s),{})}}function mr(e,t){return function(n,s){var l;if(n===i&&s===i)return t;if(n!==i&&(l=n),s!==i){if(l===i)return s;typeof n=="string"||typeof s=="string"?(n=He(n),s=He(s)):(n=Nl(n),s=Nl(s)),l=e(n,s)}return l}}function Xo(e){return Et(function(t){return t=ae(t,Be(N())),q(function(n){var s=this;return e(t,function(l){return Fe(l,s,n)})})})}function vr(e,t){t=t===i?" ":He(t);var n=t.length;if(n<2)return n?qo(t,e):t;var s=qo(t,rr(e/Pn(t)));return Rn(t)?Kt(rt(s),0,e).join(""):s.slice(0,e)}function dg(e,t,n,s){var l=t&z,f=_i(e);function d(){for(var p=-1,_=arguments.length,w=-1,D=s.length,x=v(D+_),E=this&&this!==me&&this instanceof d?f:e;++w<D;)x[w]=s[w];for(;_--;)x[w++]=arguments[++p];return Fe(E,l?n:this,x)}return d}function Ql(e){return function(t,n,s){return s&&typeof s!="number"&&Ie(t,n,s)&&(n=s=i),t=Rt(t),n===i?(n=t,t=0):n=Rt(n),s=s===i?t<n?1:-1:Rt(s),Jp(t,n,s,e)}}function Cr(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Je(t),n=Je(n)),e(t,n)}}function Jl(e,t,n,s,l,f,d,p,_,w){var D=t&J,x=D?d:i,E=D?i:d,A=D?f:i,L=D?i:f;t|=D?le:Ee,t&=~(D?Ee:le),t&P||(t&=~(z|S));var G=[e,t,l,A,x,L,E,p,_,w],M=n.apply(i,G);return ss(e)&&cc(M,G),M.placeholder=s,uc(M,e,t)}function jo(e){var t=ge[e];return function(n,s){if(n=Je(n),s=s==null?0:be(W(s),292),s&&ul(n)){var l=(te(n)+"e").split("e"),f=t(l[0]+"e"+(+l[1]+s));return l=(te(f)+"e").split("e"),+(l[0]+"e"+(+l[1]-s))}return t(n)}}var hg=On&&1/Zi(new On([,-0]))[1]==jt?function(e){return new On(e)}:ws;function Xl(e){return function(t){var n=Te(t);return n==nt?Io(t):n==it?Rh(t):Dh(t,e(t))}}function Tt(e,t,n,s,l,f,d,p){var _=t&S;if(!_&&typeof e!="function")throw new Ve(c);var w=s?s.length:0;if(w||(t&=~(le|Ee),s=l=i),d=d===i?d:_e(W(d),0),p=p===i?p:W(p),w-=l?l.length:0,t&Ee){var D=s,x=l;s=l=i}var E=_?i:ns(e),A=[e,t,n,s,l,D,x,f,d,p];if(E&&zg(A,E),e=A[0],t=A[1],n=A[2],s=A[3],l=A[4],p=A[9]=A[9]===i?_?0:e.length:_e(A[9]-w,0),!p&&t&(J|j)&&(t&=~(J|j)),!t||t==z)var L=ug(e,t,n);else t==J||t==j?L=fg(e,t,p):(t==le||t==(z|le))&&!l.length?L=dg(e,t,n,s):L=_r.apply(i,A);var G=E?Al:cc;return uc(G(L,A),e,t)}function jl(e,t,n,s){return e===i||st(e,An[n])&&!ee.call(s,n)?t:e}function ec(e,t,n,s,l,f){return ce(e)&&ce(t)&&(f.set(t,e),dr(e,t,i,ec,f),f.delete(t)),e}function pg(e){return Ci(e)?i:e}function tc(e,t,n,s,l,f){var d=n&V,p=e.length,_=t.length;if(p!=_&&!(d&&_>p))return!1;var w=f.get(e),D=f.get(t);if(w&&D)return w==t&&D==e;var x=-1,E=!0,A=n&kt?new rn:i;for(f.set(e,t),f.set(t,e);++x<p;){var L=e[x],G=t[x];if(s)var M=d?s(G,L,x,t,e,f):s(L,G,x,e,t,f);if(M!==i){if(M)continue;E=!1;break}if(A){if(!xo(t,function(Z,Q){if(!oi(A,Q)&&(L===Z||l(L,Z,n,s,f)))return A.push(Q)})){E=!1;break}}else if(!(L===G||l(L,G,n,s,f))){E=!1;break}}return f.delete(e),f.delete(t),E}function gg(e,t,n,s,l,f,d){switch(n){case En:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ri:return!(e.byteLength!=t.byteLength||!f(new er(e),new er(t)));case Xn:case jn:case ei:return st(+e,+t);case Hi:return e.name==t.name&&e.message==t.message;case ti:case ni:return e==t+"";case nt:var p=Io;case it:var _=s&V;if(p||(p=Zi),e.size!=t.size&&!_)return!1;var w=d.get(e);if(w)return w==t;s|=kt,d.set(e,t);var D=tc(p(e),p(t),s,l,f,d);return d.delete(e),D;case Wi:if(ui)return ui.call(e)==ui.call(t)}return!1}function _g(e,t,n,s,l,f){var d=n&V,p=es(e),_=p.length,w=es(t),D=w.length;if(_!=D&&!d)return!1;for(var x=_;x--;){var E=p[x];if(!(d?E in t:ee.call(t,E)))return!1}var A=f.get(e),L=f.get(t);if(A&&L)return A==t&&L==e;var G=!0;f.set(e,t),f.set(t,e);for(var M=d;++x<_;){E=p[x];var Z=e[E],Q=t[E];if(s)var We=d?s(Q,Z,E,t,e,f):s(Z,Q,E,e,t,f);if(!(We===i?Z===Q||l(Z,Q,n,s,f):We)){G=!1;break}M||(M=E=="constructor")}if(G&&!M){var Re=e.constructor,$e=t.constructor;Re!=$e&&"constructor"in e&&"constructor"in t&&!(typeof Re=="function"&&Re instanceof Re&&typeof $e=="function"&&$e instanceof $e)&&(G=!1)}return f.delete(e),f.delete(t),G}function Et(e){return ls(ac(e,i,_c),e+"")}function es(e){return wl(e,ve,rs)}function ts(e){return wl(e,Me,nc)}var ns=sr?function(e){return sr.get(e)}:ws;function yr(e){for(var t=e.name+"",n=Nn[t],s=ee.call(Nn,t)?n.length:0;s--;){var l=n[s],f=l.func;if(f==null||f==e)return l.name}return t}function Fn(e){var t=ee.call(u,"placeholder")?u:e;return t.placeholder}function N(){var e=u.iteratee||Cs;return e=e===Cs?Sl:e,arguments.length?e(arguments[0],arguments[1]):e}function wr(e,t){var n=e.__data__;return Sg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function is(e){for(var t=ve(e),n=t.length;n--;){var s=t[n],l=e[s];t[n]=[s,l,oc(l)]}return t}function an(e,t){var n=Eh(e,t);return xl(n)?n:i}function mg(e){var t=ee.call(e,tn),n=e[tn];try{e[tn]=i;var s=!0}catch{}var l=Xi.call(e);return s&&(t?e[tn]=n:delete e[tn]),l}var rs=Po?function(e){return e==null?[]:(e=ie(e),Bt(Po(e),function(t){return ll.call(e,t)}))}:Ds,nc=Po?function(e){for(var t=[];e;)Ht(t,rs(e)),e=tr(e);return t}:Ds,Te=ze;(Ao&&Te(new Ao(new ArrayBuffer(1)))!=En||ai&&Te(new ai)!=nt||Oo&&Te(Oo.resolve())!=va||On&&Te(new On)!=it||li&&Te(new li)!=ii)&&(Te=function(e){var t=ze(e),n=t==Dt?e.constructor:i,s=n?ln(n):"";if(s)switch(s){case jh:return En;case ep:return nt;case tp:return va;case np:return it;case ip:return ii}return t});function vg(e,t,n){for(var s=-1,l=n.length;++s<l;){var f=n[s],d=f.size;switch(f.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=be(t,e+d);break;case"takeRight":e=_e(e,t-d);break}}return{start:e,end:t}}function Cg(e){var t=e.match(bd);return t?t[1].split(Td):[]}function ic(e,t,n){t=Vt(t,e);for(var s=-1,l=t.length,f=!1;++s<l;){var d=mt(t[s]);if(!(f=e!=null&&n(e,d)))break;e=e[d]}return f||++s!=l?f:(l=e==null?0:e.length,!!l&&zr(l)&&zt(d,l)&&(H(e)||cn(e)))}function yg(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function rc(e){return typeof e.constructor=="function"&&!mi(e)?Ln(tr(e)):{}}function wg(e,t,n){var s=e.constructor;switch(t){case ri:return Jo(e);case Xn:case jn:return new s(+e);case En:return rg(e,n);case no:case io:case ro:case oo:case so:case ao:case lo:case co:case uo:return Hl(e,n);case nt:return new s;case ei:case ni:return new s(e);case ti:return og(e);case it:return new s;case Wi:return sg(e)}}function Dg(e,t){var n=t.length;if(!n)return e;var s=n-1;return t[s]=(n>1?"& ":"")+t[s],t=t.join(n>2?", ":" "),e.replace(Sd,`{
/* [wrapped with `+t+`] */
`)}function xg(e){return H(e)||cn(e)||!!(cl&&e&&e[cl])}function zt(e,t){var n=typeof e;return t=t??Ft,!!t&&(n=="number"||n!="symbol"&&Ld.test(e))&&e>-1&&e%1==0&&e<t}function Ie(e,t,n){if(!ce(n))return!1;var s=typeof t;return(s=="number"?Le(n)&&zt(t,n.length):s=="string"&&t in n)?st(n[t],e):!1}function os(e,t){if(H(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ue(e)?!0:yd.test(e)||!Cd.test(e)||t!=null&&e in ie(t)}function Sg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ss(e){var t=yr(e),n=u[t];if(typeof n!="function"||!(t in Y.prototype))return!1;if(e===n)return!0;var s=ns(n);return!!s&&e===s[0]}function bg(e){return!!ol&&ol in e}var Tg=Qi?It:xs;function mi(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||An;return e===n}function oc(e){return e===e&&!ce(e)}function sc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in ie(n))}}function Eg(e){var t=Tr(e,function(s){return n.size===C&&n.clear(),s}),n=t.cache;return t}function zg(e,t){var n=e[1],s=t[1],l=n|s,f=l<(z|S|xe),d=s==xe&&n==J||s==xe&&n==Jt&&e[7].length<=t[8]||s==(xe|Jt)&&t[7].length<=t[8]&&n==J;if(!(f||d))return e;s&z&&(e[2]=t[2],l|=n&z?0:P);var p=t[3];if(p){var _=e[3];e[3]=_?Wl(_,p,t[4]):p,e[4]=_?Ut(e[3],b):t[4]}return p=t[5],p&&(_=e[5],e[5]=_?$l(_,p,t[6]):p,e[6]=_?Ut(e[5],b):t[6]),p=t[7],p&&(e[7]=p),s&xe&&(e[8]=e[8]==null?t[8]:be(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Ig(e){var t=[];if(e!=null)for(var n in ie(e))t.push(n);return t}function Rg(e){return Xi.call(e)}function ac(e,t,n){return t=_e(t===i?e.length-1:t,0),function(){for(var s=arguments,l=-1,f=_e(s.length-t,0),d=v(f);++l<f;)d[l]=s[t+l];l=-1;for(var p=v(t+1);++l<t;)p[l]=s[l];return p[t]=n(d),Fe(e,this,p)}}function lc(e,t){return t.length<2?e:sn(e,Ye(t,0,-1))}function Pg(e,t){for(var n=e.length,s=be(t.length,n),l=Ne(e);s--;){var f=t[s];e[s]=zt(f,n)?l[f]:i}return e}function as(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var cc=fc(Al),vi=Vh||function(e,t){return me.setTimeout(e,t)},ls=fc(eg);function uc(e,t,n){var s=t+"";return ls(e,Dg(s,Ag(Cg(s),n)))}function fc(e){var t=0,n=0;return function(){var s=Qh(),l=jf-(s-n);if(n=s,l>0){if(++t>=Xf)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Dr(e,t){var n=-1,s=e.length,l=s-1;for(t=t===i?s:t;++n<t;){var f=Go(n,l),d=e[f];e[f]=e[n],e[n]=d}return e.length=t,e}var dc=Eg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wd,function(n,s,l,f){t.push(l?f.replace(Id,"$1"):s||n)}),t});function mt(e){if(typeof e=="string"||Ue(e))return e;var t=e+"";return t=="0"&&1/e==-jt?"-0":t}function ln(e){if(e!=null){try{return Ji.call(e)}catch{}try{return e+""}catch{}}return""}function Ag(e,t){return qe(od,function(n){var s="_."+n[0];t&n[1]&&!Vi(e,s)&&e.push(s)}),e.sort()}function hc(e){if(e instanceof Y)return e.clone();var t=new Ke(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Og(e,t,n){(n?Ie(e,t,n):t===i)?t=1:t=_e(W(t),0);var s=e==null?0:e.length;if(!s||t<1)return[];for(var l=0,f=0,d=v(rr(s/t));l<s;)d[f++]=Ye(e,l,l+=t);return d}function Ng(e){for(var t=-1,n=e==null?0:e.length,s=0,l=[];++t<n;){var f=e[t];f&&(l[s++]=f)}return l}function Lg(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ht(H(n)?Ne(n):[n],Se(t,1))}var Mg=q(function(e,t){return fe(e)?di(e,Se(t,1,fe,!0)):[]}),kg=q(function(e,t){var n=Qe(t);return fe(n)&&(n=i),fe(e)?di(e,Se(t,1,fe,!0),N(n,2)):[]}),Fg=q(function(e,t){var n=Qe(t);return fe(n)&&(n=i),fe(e)?di(e,Se(t,1,fe,!0),i,n):[]});function Bg(e,t,n){var s=e==null?0:e.length;return s?(t=n||t===i?1:W(t),Ye(e,t<0?0:t,s)):[]}function Hg(e,t,n){var s=e==null?0:e.length;return s?(t=n||t===i?1:W(t),t=s-t,Ye(e,0,t<0?0:t)):[]}function Ug(e,t){return e&&e.length?pr(e,N(t,3),!0,!0):[]}function Wg(e,t){return e&&e.length?pr(e,N(t,3),!0):[]}function $g(e,t,n,s){var l=e==null?0:e.length;return l?(n&&typeof n!="number"&&Ie(e,t,n)&&(n=0,s=l),Lp(e,t,n,s)):[]}function pc(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=n==null?0:W(n);return l<0&&(l=_e(s+l,0)),Ki(e,N(t,3),l)}function gc(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=s-1;return n!==i&&(l=W(n),l=n<0?_e(s+l,0):be(l,s-1)),Ki(e,N(t,3),l,!0)}function _c(e){var t=e==null?0:e.length;return t?Se(e,1):[]}function Gg(e){var t=e==null?0:e.length;return t?Se(e,jt):[]}function qg(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:W(t),Se(e,t)):[]}function Vg(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var l=e[t];s[l[0]]=l[1]}return s}function mc(e){return e&&e.length?e[0]:i}function Kg(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=n==null?0:W(n);return l<0&&(l=_e(s+l,0)),In(e,t,l)}function Zg(e){var t=e==null?0:e.length;return t?Ye(e,0,-1):[]}var Yg=q(function(e){var t=ae(e,Yo);return t.length&&t[0]===e[0]?Bo(t):[]}),Qg=q(function(e){var t=Qe(e),n=ae(e,Yo);return t===Qe(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Bo(n,N(t,2)):[]}),Jg=q(function(e){var t=Qe(e),n=ae(e,Yo);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Bo(n,i,t):[]});function Xg(e,t){return e==null?"":Zh.call(e,t)}function Qe(e){var t=e==null?0:e.length;return t?e[t-1]:i}function jg(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=s;return n!==i&&(l=W(n),l=l<0?_e(s+l,0):be(l,s-1)),t===t?Ah(e,t,l):Ki(e,Ja,l,!0)}function e_(e,t){return e&&e.length?zl(e,W(t)):i}var t_=q(vc);function vc(e,t){return e&&e.length&&t&&t.length?$o(e,t):e}function n_(e,t,n){return e&&e.length&&t&&t.length?$o(e,t,N(n,2)):e}function i_(e,t,n){return e&&e.length&&t&&t.length?$o(e,t,i,n):e}var r_=Et(function(e,t){var n=e==null?0:e.length,s=Lo(e,t);return Pl(e,ae(t,function(l){return zt(l,n)?+l:l}).sort(Ul)),s});function o_(e,t){var n=[];if(!(e&&e.length))return n;var s=-1,l=[],f=e.length;for(t=N(t,3);++s<f;){var d=e[s];t(d,s,e)&&(n.push(d),l.push(s))}return Pl(e,l),n}function cs(e){return e==null?e:Xh.call(e)}function s_(e,t,n){var s=e==null?0:e.length;return s?(n&&typeof n!="number"&&Ie(e,t,n)?(t=0,n=s):(t=t==null?0:W(t),n=n===i?s:W(n)),Ye(e,t,n)):[]}function a_(e,t){return hr(e,t)}function l_(e,t,n){return Vo(e,t,N(n,2))}function c_(e,t){var n=e==null?0:e.length;if(n){var s=hr(e,t);if(s<n&&st(e[s],t))return s}return-1}function u_(e,t){return hr(e,t,!0)}function f_(e,t,n){return Vo(e,t,N(n,2),!0)}function d_(e,t){var n=e==null?0:e.length;if(n){var s=hr(e,t,!0)-1;if(st(e[s],t))return s}return-1}function h_(e){return e&&e.length?Ol(e):[]}function p_(e,t){return e&&e.length?Ol(e,N(t,2)):[]}function g_(e){var t=e==null?0:e.length;return t?Ye(e,1,t):[]}function __(e,t,n){return e&&e.length?(t=n||t===i?1:W(t),Ye(e,0,t<0?0:t)):[]}function m_(e,t,n){var s=e==null?0:e.length;return s?(t=n||t===i?1:W(t),t=s-t,Ye(e,t<0?0:t,s)):[]}function v_(e,t){return e&&e.length?pr(e,N(t,3),!1,!0):[]}function C_(e,t){return e&&e.length?pr(e,N(t,3)):[]}var y_=q(function(e){return qt(Se(e,1,fe,!0))}),w_=q(function(e){var t=Qe(e);return fe(t)&&(t=i),qt(Se(e,1,fe,!0),N(t,2))}),D_=q(function(e){var t=Qe(e);return t=typeof t=="function"?t:i,qt(Se(e,1,fe,!0),i,t)});function x_(e){return e&&e.length?qt(e):[]}function S_(e,t){return e&&e.length?qt(e,N(t,2)):[]}function b_(e,t){return t=typeof t=="function"?t:i,e&&e.length?qt(e,i,t):[]}function us(e){if(!(e&&e.length))return[];var t=0;return e=Bt(e,function(n){if(fe(n))return t=_e(n.length,t),!0}),Eo(t,function(n){return ae(e,So(n))})}function Cc(e,t){if(!(e&&e.length))return[];var n=us(e);return t==null?n:ae(n,function(s){return Fe(t,i,s)})}var T_=q(function(e,t){return fe(e)?di(e,t):[]}),E_=q(function(e){return Zo(Bt(e,fe))}),z_=q(function(e){var t=Qe(e);return fe(t)&&(t=i),Zo(Bt(e,fe),N(t,2))}),I_=q(function(e){var t=Qe(e);return t=typeof t=="function"?t:i,Zo(Bt(e,fe),i,t)}),R_=q(us);function P_(e,t){return kl(e||[],t||[],fi)}function A_(e,t){return kl(e||[],t||[],gi)}var O_=q(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Cc(e,n)});function yc(e){var t=u(e);return t.__chain__=!0,t}function N_(e,t){return t(e),e}function xr(e,t){return t(e)}var L_=Et(function(e){var t=e.length,n=t?e[0]:0,s=this.__wrapped__,l=function(f){return Lo(f,e)};return t>1||this.__actions__.length||!(s instanceof Y)||!zt(n)?this.thru(l):(s=s.slice(n,+n+(t?1:0)),s.__actions__.push({func:xr,args:[l],thisArg:i}),new Ke(s,this.__chain__).thru(function(f){return t&&!f.length&&f.push(i),f}))});function M_(){return yc(this)}function k_(){return new Ke(this.value(),this.__chain__)}function F_(){this.__values__===i&&(this.__values__=Nc(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function B_(){return this}function H_(e){for(var t,n=this;n instanceof lr;){var s=hc(n);s.__index__=0,s.__values__=i,t?l.__wrapped__=s:t=s;var l=s;n=n.__wrapped__}return l.__wrapped__=e,t}function U_(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:xr,args:[cs],thisArg:i}),new Ke(t,this.__chain__)}return this.thru(cs)}function W_(){return Ml(this.__wrapped__,this.__actions__)}var $_=gr(function(e,t,n){ee.call(e,n)?++e[n]:bt(e,n,1)});function G_(e,t,n){var s=H(e)?Ya:Np;return n&&Ie(e,t,n)&&(t=i),s(e,N(t,3))}function q_(e,t){var n=H(e)?Bt:Cl;return n(e,N(t,3))}var V_=Kl(pc),K_=Kl(gc);function Z_(e,t){return Se(Sr(e,t),1)}function Y_(e,t){return Se(Sr(e,t),jt)}function Q_(e,t,n){return n=n===i?1:W(n),Se(Sr(e,t),n)}function wc(e,t){var n=H(e)?qe:Gt;return n(e,N(t,3))}function Dc(e,t){var n=H(e)?gh:vl;return n(e,N(t,3))}var J_=gr(function(e,t,n){ee.call(e,n)?e[n].push(t):bt(e,n,[t])});function X_(e,t,n,s){e=Le(e)?e:Hn(e),n=n&&!s?W(n):0;var l=e.length;return n<0&&(n=_e(l+n,0)),Ir(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&In(e,t,n)>-1}var j_=q(function(e,t,n){var s=-1,l=typeof t=="function",f=Le(e)?v(e.length):[];return Gt(e,function(d){f[++s]=l?Fe(t,d,n):hi(d,t,n)}),f}),em=gr(function(e,t,n){bt(e,n,t)});function Sr(e,t){var n=H(e)?ae:bl;return n(e,N(t,3))}function tm(e,t,n,s){return e==null?[]:(H(t)||(t=t==null?[]:[t]),n=s?i:n,H(n)||(n=n==null?[]:[n]),Il(e,t,n))}var nm=gr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function im(e,t,n){var s=H(e)?Do:ja,l=arguments.length<3;return s(e,N(t,4),n,l,Gt)}function rm(e,t,n){var s=H(e)?_h:ja,l=arguments.length<3;return s(e,N(t,4),n,l,vl)}function om(e,t){var n=H(e)?Bt:Cl;return n(e,Er(N(t,3)))}function sm(e){var t=H(e)?pl:Xp;return t(e)}function am(e,t,n){(n?Ie(e,t,n):t===i)?t=1:t=W(t);var s=H(e)?Ip:jp;return s(e,t)}function lm(e){var t=H(e)?Rp:tg;return t(e)}function cm(e){if(e==null)return 0;if(Le(e))return Ir(e)?Pn(e):e.length;var t=Te(e);return t==nt||t==it?e.size:Uo(e).length}function um(e,t,n){var s=H(e)?xo:ng;return n&&Ie(e,t,n)&&(t=i),s(e,N(t,3))}var fm=q(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ie(e,t[0],t[1])?t=[]:n>2&&Ie(t[0],t[1],t[2])&&(t=[t[0]]),Il(e,Se(t,1),[])}),br=qh||function(){return me.Date.now()};function dm(e,t){if(typeof t!="function")throw new Ve(c);return e=W(e),function(){if(--e<1)return t.apply(this,arguments)}}function xc(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Tt(e,xe,i,i,i,i,t)}function Sc(e,t){var n;if(typeof t!="function")throw new Ve(c);return e=W(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var fs=q(function(e,t,n){var s=z;if(n.length){var l=Ut(n,Fn(fs));s|=le}return Tt(e,s,t,n,l)}),bc=q(function(e,t,n){var s=z|S;if(n.length){var l=Ut(n,Fn(bc));s|=le}return Tt(t,s,e,n,l)});function Tc(e,t,n){t=n?i:t;var s=Tt(e,J,i,i,i,i,i,t);return s.placeholder=Tc.placeholder,s}function Ec(e,t,n){t=n?i:t;var s=Tt(e,j,i,i,i,i,i,t);return s.placeholder=Ec.placeholder,s}function zc(e,t,n){var s,l,f,d,p,_,w=0,D=!1,x=!1,E=!0;if(typeof e!="function")throw new Ve(c);t=Je(t)||0,ce(n)&&(D=!!n.leading,x="maxWait"in n,f=x?_e(Je(n.maxWait)||0,t):f,E="trailing"in n?!!n.trailing:E);function A(de){var at=s,Pt=l;return s=l=i,w=de,d=e.apply(Pt,at),d}function L(de){return w=de,p=vi(Z,t),D?A(de):d}function G(de){var at=de-_,Pt=de-w,Kc=t-at;return x?be(Kc,f-Pt):Kc}function M(de){var at=de-_,Pt=de-w;return _===i||at>=t||at<0||x&&Pt>=f}function Z(){var de=br();if(M(de))return Q(de);p=vi(Z,G(de))}function Q(de){return p=i,E&&s?A(de):(s=l=i,d)}function We(){p!==i&&Fl(p),w=0,s=_=l=p=i}function Re(){return p===i?d:Q(br())}function $e(){var de=br(),at=M(de);if(s=arguments,l=this,_=de,at){if(p===i)return L(_);if(x)return Fl(p),p=vi(Z,t),A(_)}return p===i&&(p=vi(Z,t)),d}return $e.cancel=We,$e.flush=Re,$e}var hm=q(function(e,t){return ml(e,1,t)}),pm=q(function(e,t,n){return ml(e,Je(t)||0,n)});function gm(e){return Tt(e,Xt)}function Tr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ve(c);var n=function(){var s=arguments,l=t?t.apply(this,s):s[0],f=n.cache;if(f.has(l))return f.get(l);var d=e.apply(this,s);return n.cache=f.set(l,d)||f,d};return n.cache=new(Tr.Cache||St),n}Tr.Cache=St;function Er(e){if(typeof e!="function")throw new Ve(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function _m(e){return Sc(2,e)}var mm=ig(function(e,t){t=t.length==1&&H(t[0])?ae(t[0],Be(N())):ae(Se(t,1),Be(N()));var n=t.length;return q(function(s){for(var l=-1,f=be(s.length,n);++l<f;)s[l]=t[l].call(this,s[l]);return Fe(e,this,s)})}),ds=q(function(e,t){var n=Ut(t,Fn(ds));return Tt(e,le,i,t,n)}),Ic=q(function(e,t){var n=Ut(t,Fn(Ic));return Tt(e,Ee,i,t,n)}),vm=Et(function(e,t){return Tt(e,Jt,i,i,i,t)});function Cm(e,t){if(typeof e!="function")throw new Ve(c);return t=t===i?t:W(t),q(e,t)}function ym(e,t){if(typeof e!="function")throw new Ve(c);return t=t==null?0:_e(W(t),0),q(function(n){var s=n[t],l=Kt(n,0,t);return s&&Ht(l,s),Fe(e,this,l)})}function wm(e,t,n){var s=!0,l=!0;if(typeof e!="function")throw new Ve(c);return ce(n)&&(s="leading"in n?!!n.leading:s,l="trailing"in n?!!n.trailing:l),zc(e,t,{leading:s,maxWait:t,trailing:l})}function Dm(e){return xc(e,1)}function xm(e,t){return ds(Qo(t),e)}function Sm(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function bm(e){return Ze(e,ne)}function Tm(e,t){return t=typeof t=="function"?t:i,Ze(e,ne,t)}function Em(e){return Ze(e,T|ne)}function zm(e,t){return t=typeof t=="function"?t:i,Ze(e,T|ne,t)}function Im(e,t){return t==null||_l(e,t,ve(t))}function st(e,t){return e===t||e!==e&&t!==t}var Rm=Cr(Fo),Pm=Cr(function(e,t){return e>=t}),cn=Dl((function(){return arguments})())?Dl:function(e){return ue(e)&&ee.call(e,"callee")&&!ll.call(e,"callee")},H=v.isArray,Am=$a?Be($a):Hp;function Le(e){return e!=null&&zr(e.length)&&!It(e)}function fe(e){return ue(e)&&Le(e)}function Om(e){return e===!0||e===!1||ue(e)&&ze(e)==Xn}var Zt=Kh||xs,Nm=Ga?Be(Ga):Up;function Lm(e){return ue(e)&&e.nodeType===1&&!Ci(e)}function Mm(e){if(e==null)return!0;if(Le(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||Zt(e)||Bn(e)||cn(e)))return!e.length;var t=Te(e);if(t==nt||t==it)return!e.size;if(mi(e))return!Uo(e).length;for(var n in e)if(ee.call(e,n))return!1;return!0}function km(e,t){return pi(e,t)}function Fm(e,t,n){n=typeof n=="function"?n:i;var s=n?n(e,t):i;return s===i?pi(e,t,i,n):!!s}function hs(e){if(!ue(e))return!1;var t=ze(e);return t==Hi||t==ad||typeof e.message=="string"&&typeof e.name=="string"&&!Ci(e)}function Bm(e){return typeof e=="number"&&ul(e)}function It(e){if(!ce(e))return!1;var t=ze(e);return t==Ui||t==ma||t==sd||t==cd}function Rc(e){return typeof e=="number"&&e==W(e)}function zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ft}function ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ue(e){return e!=null&&typeof e=="object"}var Pc=qa?Be(qa):$p;function Hm(e,t){return e===t||Ho(e,t,is(t))}function Um(e,t,n){return n=typeof n=="function"?n:i,Ho(e,t,is(t),n)}function Wm(e){return Ac(e)&&e!=+e}function $m(e){if(Tg(e))throw new B(a);return xl(e)}function Gm(e){return e===null}function qm(e){return e==null}function Ac(e){return typeof e=="number"||ue(e)&&ze(e)==ei}function Ci(e){if(!ue(e)||ze(e)!=Dt)return!1;var t=tr(e);if(t===null)return!0;var n=ee.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ji.call(n)==Uh}var ps=Va?Be(Va):Gp;function Vm(e){return Rc(e)&&e>=-Ft&&e<=Ft}var Oc=Ka?Be(Ka):qp;function Ir(e){return typeof e=="string"||!H(e)&&ue(e)&&ze(e)==ni}function Ue(e){return typeof e=="symbol"||ue(e)&&ze(e)==Wi}var Bn=Za?Be(Za):Vp;function Km(e){return e===i}function Zm(e){return ue(e)&&Te(e)==ii}function Ym(e){return ue(e)&&ze(e)==fd}var Qm=Cr(Wo),Jm=Cr(function(e,t){return e<=t});function Nc(e){if(!e)return[];if(Le(e))return Ir(e)?rt(e):Ne(e);if(si&&e[si])return Ih(e[si]());var t=Te(e),n=t==nt?Io:t==it?Zi:Hn;return n(e)}function Rt(e){if(!e)return e===0?e:0;if(e=Je(e),e===jt||e===-jt){var t=e<0?-1:1;return t*nd}return e===e?e:0}function W(e){var t=Rt(e),n=t%1;return t===t?n?t-n:t:0}function Lc(e){return e?on(W(e),0,pt):0}function Je(e){if(typeof e=="number")return e;if(Ue(e))return Fi;if(ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=el(e);var n=Ad.test(e);return n||Nd.test(e)?dh(e.slice(2),n?2:8):Pd.test(e)?Fi:+e}function Mc(e){return _t(e,Me(e))}function Xm(e){return e?on(W(e),-Ft,Ft):e===0?e:0}function te(e){return e==null?"":He(e)}var jm=Mn(function(e,t){if(mi(t)||Le(t)){_t(t,ve(t),e);return}for(var n in t)ee.call(t,n)&&fi(e,n,t[n])}),kc=Mn(function(e,t){_t(t,Me(t),e)}),Rr=Mn(function(e,t,n,s){_t(t,Me(t),e,s)}),e0=Mn(function(e,t,n,s){_t(t,ve(t),e,s)}),t0=Et(Lo);function n0(e,t){var n=Ln(e);return t==null?n:gl(n,t)}var i0=q(function(e,t){e=ie(e);var n=-1,s=t.length,l=s>2?t[2]:i;for(l&&Ie(t[0],t[1],l)&&(s=1);++n<s;)for(var f=t[n],d=Me(f),p=-1,_=d.length;++p<_;){var w=d[p],D=e[w];(D===i||st(D,An[w])&&!ee.call(e,w))&&(e[w]=f[w])}return e}),r0=q(function(e){return e.push(i,ec),Fe(Fc,i,e)});function o0(e,t){return Qa(e,N(t,3),gt)}function s0(e,t){return Qa(e,N(t,3),ko)}function a0(e,t){return e==null?e:Mo(e,N(t,3),Me)}function l0(e,t){return e==null?e:yl(e,N(t,3),Me)}function c0(e,t){return e&>(e,N(t,3))}function u0(e,t){return e&&ko(e,N(t,3))}function f0(e){return e==null?[]:fr(e,ve(e))}function d0(e){return e==null?[]:fr(e,Me(e))}function gs(e,t,n){var s=e==null?i:sn(e,t);return s===i?n:s}function h0(e,t){return e!=null&&ic(e,t,Mp)}function _s(e,t){return e!=null&&ic(e,t,kp)}var p0=Yl(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Xi.call(t)),e[t]=n},vs(ke)),g0=Yl(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Xi.call(t)),ee.call(e,t)?e[t].push(n):e[t]=[n]},N),_0=q(hi);function ve(e){return Le(e)?hl(e):Uo(e)}function Me(e){return Le(e)?hl(e,!0):Kp(e)}function m0(e,t){var n={};return t=N(t,3),gt(e,function(s,l,f){bt(n,t(s,l,f),s)}),n}function v0(e,t){var n={};return t=N(t,3),gt(e,function(s,l,f){bt(n,l,t(s,l,f))}),n}var C0=Mn(function(e,t,n){dr(e,t,n)}),Fc=Mn(function(e,t,n,s){dr(e,t,n,s)}),y0=Et(function(e,t){var n={};if(e==null)return n;var s=!1;t=ae(t,function(f){return f=Vt(f,e),s||(s=f.length>1),f}),_t(e,ts(e),n),s&&(n=Ze(n,T|k|ne,pg));for(var l=t.length;l--;)Ko(n,t[l]);return n});function w0(e,t){return Bc(e,Er(N(t)))}var D0=Et(function(e,t){return e==null?{}:Yp(e,t)});function Bc(e,t){if(e==null)return{};var n=ae(ts(e),function(s){return[s]});return t=N(t),Rl(e,n,function(s,l){return t(s,l[0])})}function x0(e,t,n){t=Vt(t,e);var s=-1,l=t.length;for(l||(l=1,e=i);++s<l;){var f=e==null?i:e[mt(t[s])];f===i&&(s=l,f=n),e=It(f)?f.call(e):f}return e}function S0(e,t,n){return e==null?e:gi(e,t,n)}function b0(e,t,n,s){return s=typeof s=="function"?s:i,e==null?e:gi(e,t,n,s)}var Hc=Xl(ve),Uc=Xl(Me);function T0(e,t,n){var s=H(e),l=s||Zt(e)||Bn(e);if(t=N(t,4),n==null){var f=e&&e.constructor;l?n=s?new f:[]:ce(e)?n=It(f)?Ln(tr(e)):{}:n={}}return(l?qe:gt)(e,function(d,p,_){return t(n,d,p,_)}),n}function E0(e,t){return e==null?!0:Ko(e,t)}function z0(e,t,n){return e==null?e:Ll(e,t,Qo(n))}function I0(e,t,n,s){return s=typeof s=="function"?s:i,e==null?e:Ll(e,t,Qo(n),s)}function Hn(e){return e==null?[]:zo(e,ve(e))}function R0(e){return e==null?[]:zo(e,Me(e))}function P0(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Je(n),n=n===n?n:0),t!==i&&(t=Je(t),t=t===t?t:0),on(Je(e),t,n)}function A0(e,t,n){return t=Rt(t),n===i?(n=t,t=0):n=Rt(n),e=Je(e),Fp(e,t,n)}function O0(e,t,n){if(n&&typeof n!="boolean"&&Ie(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Rt(e),t===i?(t=e,e=0):t=Rt(t)),e>t){var s=e;e=t,t=s}if(n||e%1||t%1){var l=fl();return be(e+l*(t-e+fh("1e-"+((l+"").length-1))),t)}return Go(e,t)}var N0=kn(function(e,t,n){return t=t.toLowerCase(),e+(n?Wc(t):t)});function Wc(e){return ms(te(e).toLowerCase())}function $c(e){return e=te(e),e&&e.replace(Md,Sh).replace(th,"")}function L0(e,t,n){e=te(e),t=He(t);var s=e.length;n=n===i?s:on(W(n),0,s);var l=n;return n-=t.length,n>=0&&e.slice(n,l)==t}function M0(e){return e=te(e),e&&_d.test(e)?e.replace(ya,bh):e}function k0(e){return e=te(e),e&&Dd.test(e)?e.replace(fo,"\\$&"):e}var F0=kn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),B0=kn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),H0=Vl("toLowerCase");function U0(e,t,n){e=te(e),t=W(t);var s=t?Pn(e):0;if(!t||s>=t)return e;var l=(t-s)/2;return vr(or(l),n)+e+vr(rr(l),n)}function W0(e,t,n){e=te(e),t=W(t);var s=t?Pn(e):0;return t&&s<t?e+vr(t-s,n):e}function $0(e,t,n){e=te(e),t=W(t);var s=t?Pn(e):0;return t&&s<t?vr(t-s,n)+e:e}function G0(e,t,n){return n||t==null?t=0:t&&(t=+t),Jh(te(e).replace(ho,""),t||0)}function q0(e,t,n){return(n?Ie(e,t,n):t===i)?t=1:t=W(t),qo(te(e),t)}function V0(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var K0=kn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function Z0(e,t,n){return n&&typeof n!="number"&&Ie(e,t,n)&&(t=n=i),n=n===i?pt:n>>>0,n?(e=te(e),e&&(typeof t=="string"||t!=null&&!ps(t))&&(t=He(t),!t&&Rn(e))?Kt(rt(e),0,n):e.split(t,n)):[]}var Y0=kn(function(e,t,n){return e+(n?" ":"")+ms(t)});function Q0(e,t,n){return e=te(e),n=n==null?0:on(W(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function J0(e,t,n){var s=u.templateSettings;n&&Ie(e,t,n)&&(t=i),e=te(e),t=Rr({},t,s,jl);var l=Rr({},t.imports,s.imports,jl),f=ve(l),d=zo(l,f),p,_,w=0,D=t.interpolate||$i,x="__p += '",E=Ro((t.escape||$i).source+"|"+D.source+"|"+(D===wa?Rd:$i).source+"|"+(t.evaluate||$i).source+"|$","g"),A="//# sourceURL="+(ee.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sh+"]")+`
`;e.replace(E,function(M,Z,Q,We,Re,$e){return Q||(Q=We),x+=e.slice(w,$e).replace(kd,Th),Z&&(p=!0,x+=`' +
__e(`+Z+`) +
'`),Re&&(_=!0,x+=`';
`+Re+`;
__p += '`),Q&&(x+=`' +
((__t = (`+Q+`)) == null ? '' : __t) +
'`),w=$e+M.length,M}),x+=`';
`;var L=ee.call(t,"variable")&&t.variable;if(!L)x=`with (obj) {
`+x+`
}
`;else if(zd.test(L))throw new B(h);x=(_?x.replace(dd,""):x).replace(hd,"$1").replace(pd,"$1;"),x="function("+(L||"obj")+`) {
`+(L?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+x+`return __p
}`;var G=qc(function(){return X(f,A+"return "+x).apply(i,d)});if(G.source=x,hs(G))throw G;return G}function X0(e){return te(e).toLowerCase()}function j0(e){return te(e).toUpperCase()}function ev(e,t,n){if(e=te(e),e&&(n||t===i))return el(e);if(!e||!(t=He(t)))return e;var s=rt(e),l=rt(t),f=tl(s,l),d=nl(s,l)+1;return Kt(s,f,d).join("")}function tv(e,t,n){if(e=te(e),e&&(n||t===i))return e.slice(0,rl(e)+1);if(!e||!(t=He(t)))return e;var s=rt(e),l=nl(s,rt(t))+1;return Kt(s,0,l).join("")}function nv(e,t,n){if(e=te(e),e&&(n||t===i))return e.replace(ho,"");if(!e||!(t=He(t)))return e;var s=rt(e),l=tl(s,rt(t));return Kt(s,l).join("")}function iv(e,t){var n=Jn,s=bn;if(ce(t)){var l="separator"in t?t.separator:l;n="length"in t?W(t.length):n,s="omission"in t?He(t.omission):s}e=te(e);var f=e.length;if(Rn(e)){var d=rt(e);f=d.length}if(n>=f)return e;var p=n-Pn(s);if(p<1)return s;var _=d?Kt(d,0,p).join(""):e.slice(0,p);if(l===i)return _+s;if(d&&(p+=_.length-p),ps(l)){if(e.slice(p).search(l)){var w,D=_;for(l.global||(l=Ro(l.source,te(Da.exec(l))+"g")),l.lastIndex=0;w=l.exec(D);)var x=w.index;_=_.slice(0,x===i?p:x)}}else if(e.indexOf(He(l),p)!=p){var E=_.lastIndexOf(l);E>-1&&(_=_.slice(0,E))}return _+s}function rv(e){return e=te(e),e&&gd.test(e)?e.replace(Ca,Oh):e}var ov=kn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ms=Vl("toUpperCase");function Gc(e,t,n){return e=te(e),t=n?i:t,t===i?zh(e)?Mh(e):Ch(e):e.match(t)||[]}var qc=q(function(e,t){try{return Fe(e,i,t)}catch(n){return hs(n)?n:new B(n)}}),sv=Et(function(e,t){return qe(t,function(n){n=mt(n),bt(e,n,fs(e[n],e))}),e});function av(e){var t=e==null?0:e.length,n=N();return e=t?ae(e,function(s){if(typeof s[1]!="function")throw new Ve(c);return[n(s[0]),s[1]]}):[],q(function(s){for(var l=-1;++l<t;){var f=e[l];if(Fe(f[0],this,s))return Fe(f[1],this,s)}})}function lv(e){return Op(Ze(e,T))}function vs(e){return function(){return e}}function cv(e,t){return e==null||e!==e?t:e}var uv=Zl(),fv=Zl(!0);function ke(e){return e}function Cs(e){return Sl(typeof e=="function"?e:Ze(e,T))}function dv(e){return Tl(Ze(e,T))}function hv(e,t){return El(e,Ze(t,T))}var pv=q(function(e,t){return function(n){return hi(n,e,t)}}),gv=q(function(e,t){return function(n){return hi(e,n,t)}});function ys(e,t,n){var s=ve(t),l=fr(t,s);n==null&&!(ce(t)&&(l.length||!s.length))&&(n=t,t=e,e=this,l=fr(t,ve(t)));var f=!(ce(n)&&"chain"in n)||!!n.chain,d=It(e);return qe(l,function(p){var _=t[p];e[p]=_,d&&(e.prototype[p]=function(){var w=this.__chain__;if(f||w){var D=e(this.__wrapped__),x=D.__actions__=Ne(this.__actions__);return x.push({func:_,args:arguments,thisArg:e}),D.__chain__=w,D}return _.apply(e,Ht([this.value()],arguments))})}),e}function _v(){return me._===this&&(me._=Wh),this}function ws(){}function mv(e){return e=W(e),q(function(t){return zl(t,e)})}var vv=Xo(ae),Cv=Xo(Ya),yv=Xo(xo);function Vc(e){return os(e)?So(mt(e)):Qp(e)}function wv(e){return function(t){return e==null?i:sn(e,t)}}var Dv=Ql(),xv=Ql(!0);function Ds(){return[]}function xs(){return!1}function Sv(){return{}}function bv(){return""}function Tv(){return!0}function Ev(e,t){if(e=W(e),e<1||e>Ft)return[];var n=pt,s=be(e,pt);t=N(t),e-=pt;for(var l=Eo(s,t);++n<e;)t(n);return l}function zv(e){return H(e)?ae(e,mt):Ue(e)?[e]:Ne(dc(te(e)))}function Iv(e){var t=++Hh;return te(e)+t}var Rv=mr(function(e,t){return e+t},0),Pv=jo("ceil"),Av=mr(function(e,t){return e/t},1),Ov=jo("floor");function Nv(e){return e&&e.length?ur(e,ke,Fo):i}function Lv(e,t){return e&&e.length?ur(e,N(t,2),Fo):i}function Mv(e){return Xa(e,ke)}function kv(e,t){return Xa(e,N(t,2))}function Fv(e){return e&&e.length?ur(e,ke,Wo):i}function Bv(e,t){return e&&e.length?ur(e,N(t,2),Wo):i}var Hv=mr(function(e,t){return e*t},1),Uv=jo("round"),Wv=mr(function(e,t){return e-t},0);function $v(e){return e&&e.length?To(e,ke):0}function Gv(e,t){return e&&e.length?To(e,N(t,2)):0}return u.after=dm,u.ary=xc,u.assign=jm,u.assignIn=kc,u.assignInWith=Rr,u.assignWith=e0,u.at=t0,u.before=Sc,u.bind=fs,u.bindAll=sv,u.bindKey=bc,u.castArray=Sm,u.chain=yc,u.chunk=Og,u.compact=Ng,u.concat=Lg,u.cond=av,u.conforms=lv,u.constant=vs,u.countBy=$_,u.create=n0,u.curry=Tc,u.curryRight=Ec,u.debounce=zc,u.defaults=i0,u.defaultsDeep=r0,u.defer=hm,u.delay=pm,u.difference=Mg,u.differenceBy=kg,u.differenceWith=Fg,u.drop=Bg,u.dropRight=Hg,u.dropRightWhile=Ug,u.dropWhile=Wg,u.fill=$g,u.filter=q_,u.flatMap=Z_,u.flatMapDeep=Y_,u.flatMapDepth=Q_,u.flatten=_c,u.flattenDeep=Gg,u.flattenDepth=qg,u.flip=gm,u.flow=uv,u.flowRight=fv,u.fromPairs=Vg,u.functions=f0,u.functionsIn=d0,u.groupBy=J_,u.initial=Zg,u.intersection=Yg,u.intersectionBy=Qg,u.intersectionWith=Jg,u.invert=p0,u.invertBy=g0,u.invokeMap=j_,u.iteratee=Cs,u.keyBy=em,u.keys=ve,u.keysIn=Me,u.map=Sr,u.mapKeys=m0,u.mapValues=v0,u.matches=dv,u.matchesProperty=hv,u.memoize=Tr,u.merge=C0,u.mergeWith=Fc,u.method=pv,u.methodOf=gv,u.mixin=ys,u.negate=Er,u.nthArg=mv,u.omit=y0,u.omitBy=w0,u.once=_m,u.orderBy=tm,u.over=vv,u.overArgs=mm,u.overEvery=Cv,u.overSome=yv,u.partial=ds,u.partialRight=Ic,u.partition=nm,u.pick=D0,u.pickBy=Bc,u.property=Vc,u.propertyOf=wv,u.pull=t_,u.pullAll=vc,u.pullAllBy=n_,u.pullAllWith=i_,u.pullAt=r_,u.range=Dv,u.rangeRight=xv,u.rearg=vm,u.reject=om,u.remove=o_,u.rest=Cm,u.reverse=cs,u.sampleSize=am,u.set=S0,u.setWith=b0,u.shuffle=lm,u.slice=s_,u.sortBy=fm,u.sortedUniq=h_,u.sortedUniqBy=p_,u.split=Z0,u.spread=ym,u.tail=g_,u.take=__,u.takeRight=m_,u.takeRightWhile=v_,u.takeWhile=C_,u.tap=N_,u.throttle=wm,u.thru=xr,u.toArray=Nc,u.toPairs=Hc,u.toPairsIn=Uc,u.toPath=zv,u.toPlainObject=Mc,u.transform=T0,u.unary=Dm,u.union=y_,u.unionBy=w_,u.unionWith=D_,u.uniq=x_,u.uniqBy=S_,u.uniqWith=b_,u.unset=E0,u.unzip=us,u.unzipWith=Cc,u.update=z0,u.updateWith=I0,u.values=Hn,u.valuesIn=R0,u.without=T_,u.words=Gc,u.wrap=xm,u.xor=E_,u.xorBy=z_,u.xorWith=I_,u.zip=R_,u.zipObject=P_,u.zipObjectDeep=A_,u.zipWith=O_,u.entries=Hc,u.entriesIn=Uc,u.extend=kc,u.extendWith=Rr,ys(u,u),u.add=Rv,u.attempt=qc,u.camelCase=N0,u.capitalize=Wc,u.ceil=Pv,u.clamp=P0,u.clone=bm,u.cloneDeep=Em,u.cloneDeepWith=zm,u.cloneWith=Tm,u.conformsTo=Im,u.deburr=$c,u.defaultTo=cv,u.divide=Av,u.endsWith=L0,u.eq=st,u.escape=M0,u.escapeRegExp=k0,u.every=G_,u.find=V_,u.findIndex=pc,u.findKey=o0,u.findLast=K_,u.findLastIndex=gc,u.findLastKey=s0,u.floor=Ov,u.forEach=wc,u.forEachRight=Dc,u.forIn=a0,u.forInRight=l0,u.forOwn=c0,u.forOwnRight=u0,u.get=gs,u.gt=Rm,u.gte=Pm,u.has=h0,u.hasIn=_s,u.head=mc,u.identity=ke,u.includes=X_,u.indexOf=Kg,u.inRange=A0,u.invoke=_0,u.isArguments=cn,u.isArray=H,u.isArrayBuffer=Am,u.isArrayLike=Le,u.isArrayLikeObject=fe,u.isBoolean=Om,u.isBuffer=Zt,u.isDate=Nm,u.isElement=Lm,u.isEmpty=Mm,u.isEqual=km,u.isEqualWith=Fm,u.isError=hs,u.isFinite=Bm,u.isFunction=It,u.isInteger=Rc,u.isLength=zr,u.isMap=Pc,u.isMatch=Hm,u.isMatchWith=Um,u.isNaN=Wm,u.isNative=$m,u.isNil=qm,u.isNull=Gm,u.isNumber=Ac,u.isObject=ce,u.isObjectLike=ue,u.isPlainObject=Ci,u.isRegExp=ps,u.isSafeInteger=Vm,u.isSet=Oc,u.isString=Ir,u.isSymbol=Ue,u.isTypedArray=Bn,u.isUndefined=Km,u.isWeakMap=Zm,u.isWeakSet=Ym,u.join=Xg,u.kebabCase=F0,u.last=Qe,u.lastIndexOf=jg,u.lowerCase=B0,u.lowerFirst=H0,u.lt=Qm,u.lte=Jm,u.max=Nv,u.maxBy=Lv,u.mean=Mv,u.meanBy=kv,u.min=Fv,u.minBy=Bv,u.stubArray=Ds,u.stubFalse=xs,u.stubObject=Sv,u.stubString=bv,u.stubTrue=Tv,u.multiply=Hv,u.nth=e_,u.noConflict=_v,u.noop=ws,u.now=br,u.pad=U0,u.padEnd=W0,u.padStart=$0,u.parseInt=G0,u.random=O0,u.reduce=im,u.reduceRight=rm,u.repeat=q0,u.replace=V0,u.result=x0,u.round=Uv,u.runInContext=g,u.sample=sm,u.size=cm,u.snakeCase=K0,u.some=um,u.sortedIndex=a_,u.sortedIndexBy=l_,u.sortedIndexOf=c_,u.sortedLastIndex=u_,u.sortedLastIndexBy=f_,u.sortedLastIndexOf=d_,u.startCase=Y0,u.startsWith=Q0,u.subtract=Wv,u.sum=$v,u.sumBy=Gv,u.template=J0,u.times=Ev,u.toFinite=Rt,u.toInteger=W,u.toLength=Lc,u.toLower=X0,u.toNumber=Je,u.toSafeInteger=Xm,u.toString=te,u.toUpper=j0,u.trim=ev,u.trimEnd=tv,u.trimStart=nv,u.truncate=iv,u.unescape=rv,u.uniqueId=Iv,u.upperCase=ov,u.upperFirst=ms,u.each=wc,u.eachRight=Dc,u.first=mc,ys(u,(function(){var e={};return gt(u,function(t,n){ee.call(u.prototype,n)||(e[n]=t)}),e})(),{chain:!1}),u.VERSION=o,qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){u[e].placeholder=u}),qe(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:_e(W(n),0);var s=this.__filtered__&&!t?new Y(this):this.clone();return s.__filtered__?s.__takeCount__=be(n,s.__takeCount__):s.__views__.push({size:be(n,pt),type:e+(s.__dir__<0?"Right":"")}),s},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),qe(["filter","map","takeWhile"],function(e,t){var n=t+1,s=n==_a||n==td;Y.prototype[e]=function(l){var f=this.clone();return f.__iteratees__.push({iteratee:N(l,3),type:n}),f.__filtered__=f.__filtered__||s,f}}),qe(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),qe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(ke)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=q(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return hi(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Er(N(e)))},Y.prototype.slice=function(e,t){e=W(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=W(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(pt)},gt(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),l=u[s?"take"+(t=="last"?"Right":""):t],f=s||/^find/.test(t);l&&(u.prototype[t]=function(){var d=this.__wrapped__,p=s?[1]:arguments,_=d instanceof Y,w=p[0],D=_||H(d),x=function(Z){var Q=l.apply(u,Ht([Z],p));return s&&E?Q[0]:Q};D&&n&&typeof w=="function"&&w.length!=1&&(_=D=!1);var E=this.__chain__,A=!!this.__actions__.length,L=f&&!E,G=_&&!A;if(!f&&D){d=G?d:new Y(this);var M=e.apply(d,p);return M.__actions__.push({func:xr,args:[x],thisArg:i}),new Ke(M,E)}return L&&G?e.apply(this,p):(M=this.thru(x),L?s?M.value()[0]:M.value():M)})}),qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Yi[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",s=/^(?:pop|shift)$/.test(e);u.prototype[e]=function(){var l=arguments;if(s&&!this.__chain__){var f=this.value();return t.apply(H(f)?f:[],l)}return this[n](function(d){return t.apply(H(d)?d:[],l)})}}),gt(Y.prototype,function(e,t){var n=u[t];if(n){var s=n.name+"";ee.call(Nn,s)||(Nn[s]=[]),Nn[s].push({name:t,func:n})}}),Nn[_r(i,S).name]=[{name:"wrapper",func:i}],Y.prototype.clone=rp,Y.prototype.reverse=op,Y.prototype.value=sp,u.prototype.at=L_,u.prototype.chain=M_,u.prototype.commit=k_,u.prototype.next=F_,u.prototype.plant=H_,u.prototype.reverse=U_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=W_,u.prototype.first=u.prototype.head,si&&(u.prototype[si]=B_),u},Wt=kh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(me._=Wt,define(function(){return Wt})):en?((en.exports=Wt)._=Wt,Co._=Wt):me._=Wt}).call(Yn)});var rf=Qc(nf(),1),Jv=/[^\p{L}\p{N}]+/ug,Xv=i=>i==null?"":Array.isArray(i)?i.map(o=>o.toString().trim()).filter(o=>o.length>0).join(" "):typeof i=="function"?i.name?i.name:"":typeof i.toString!="function"?"":i.toString().trim(),jv=(i,o={})=>{let r=Xv(i),a=o.punctuationRegex??Jv,c=r?(0,rf.default)(a?r.replace(a," "):r,o):"";return c?c[0].toLocaleUpperCase(o.locale)+c.slice(1):""},of=jv;var e1="https://stackblitz.com",sf=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],t1=["project","search","ports","settings"],n1=["light","dark"],i1=["editor","preview"],af={clickToLoad:i=>Sn("ctl",i),devToolsHeight:i=>lf("devtoolsheight",i),forceEmbedLayout:i=>Sn("embed",i),hideDevTools:i=>Sn("hidedevtools",i),hideExplorer:i=>Sn("hideExplorer",i),hideNavigation:i=>Sn("hideNavigation",i),openFile:i=>Gr("file",i),showSidebar:i=>r1("showSidebar",i),sidebarView:i=>Gs("sidebarView",i,t1),startScript:i=>Gr("startScript",i),terminalHeight:i=>lf("terminalHeight",i),theme:i=>Gs("theme",i,n1),view:i=>Gs("view",i,i1),zenMode:i=>Sn("zenMode",i),organization:i=>`${Gr("orgName",i?.name)}&${Gr("orgProvider",i?.provider)}`,crossOriginIsolated:i=>Sn("corp",i)};function cf(i={}){let o=Object.entries(i).map(([r,a])=>a!=null&&af.hasOwnProperty(r)?af[r](a):"").filter(Boolean);return o.length?`?${o.join("&")}`:""}function Sn(i,o){return o===!0?`${i}=1`:""}function r1(i,o){return typeof o=="boolean"?`${i}=${o?"1":"0"}`:""}function lf(i,o){if(typeof o=="number"&&!Number.isNaN(o)){let r=Math.min(100,Math.max(0,o));return`${i}=${encodeURIComponent(Math.round(r))}`}return""}function Gs(i,o="",r=[]){return r.includes(o)?`${i}=${encodeURIComponent(o)}`:""}function Gr(i,o){return(Array.isArray(o)?o:[o]).filter(a=>typeof a=="string"&&a.trim()!=="").map(a=>`${i}=${encodeURIComponent(a)}`).join("&")}function uf(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function Zs(i,o){return`${ff(o)}${i}${cf(o)}`}function Ys(i,o){let r={forceEmbedLayout:!0};return o&&typeof o=="object"&&Object.assign(r,o),`${ff(r)}${i}${cf(r)}`}function ff(i={}){return(typeof i.origin=="string"?i.origin:e1).replace(/\/$/,"")}function Qs(i,o,r){if(!o||!i||!i.parentNode)throw new Error("Invalid Element");i.id&&(o.id=i.id),i.className&&(o.className=i.className),o1(o,r),s1(i,o,r),i.replaceWith(o)}function Js(i){if(typeof i=="string"){let o=document.getElementById(i);if(!o)throw new Error(`Could not find element with id '${i}'`);return o}else if(i instanceof HTMLElement)return i;throw new Error(`Invalid element: ${i}`)}function Xs(i){return i&&i.newWindow===!1?"_self":"_blank"}function o1(i,o={}){let r=Object.hasOwnProperty.call(o,"height")?`${o.height}`:"300",a=Object.hasOwnProperty.call(o,"width")?`${o.width}`:void 0;i.setAttribute("height",r),a?i.setAttribute("width",a):i.setAttribute("style","width:100%;")}function s1(i,o,r={}){let a=i.allow?.split(";")?.map(c=>c.trim())??[];r.crossOriginIsolated&&!a.includes("cross-origin-isolated")&&a.push("cross-origin-isolated"),a.length>0&&(o.allow=a.join("; "))}var qs=class{constructor(o){this.pending={},this.port=o,this.port.onmessage=this.messageListener.bind(this)}request({type:o,payload:r}){return new Promise((a,c)=>{let h=uf();this.pending[h]={resolve:a,reject:c},this.port.postMessage({type:o,payload:Zc(yi({},r),{__reqid:h})})})}messageListener(o){if(typeof o.data.payload?.__reqid!="string")return;let{type:r,payload:a}=o.data,{__reqid:c,__success:h,__error:m}=a;this.pending[c]&&(h?this.pending[c].resolve(this.cleanResult(a)):this.pending[c].reject(m?`${r}: ${m}`:r),delete this.pending[c])}cleanResult(o){let r=yi({},o);return delete r.__reqid,delete r.__success,delete r.__error,Object.keys(r).length?r:null}},Vs=class{constructor(o,r){this.editor={openFile:a=>this._rdc.request({type:"SDK_OPEN_FILE",payload:{path:a}}),setCurrentFile:a=>this._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:a}}),setTheme:a=>this._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:a}}),setView:a=>this._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:a}}),showSidebar:(a=!0)=>this._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:a}})},this.preview={origin:"",getUrl:()=>this._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then(a=>a?.url??null),setUrl:(a="/")=>{if(typeof a!="string"||!a.startsWith("/"))throw new Error(`Invalid argument: expected a path starting with '/', got '${a}'`);return this._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:a}})}},this._rdc=new qs(o),Object.defineProperty(this.preview,"origin",{value:typeof r.previewOrigin=="string"?r.previewOrigin:null,writable:!1})}applyFsDiff(o){let r=a=>a!==null&&typeof a=="object";if(!r(o)||!r(o.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(o.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:o})}getDependencies(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}getFsSnapshot(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}},qr=[],Ks=class{constructor(o){this.id=uf(),this.element=o,this.pending=new Promise((r,a)=>{let c=({data:T,ports:k})=>{T?.action==="SDK_INIT_SUCCESS"&&T.id===this.id&&(this.vm=new Vs(k[0],T.payload),r(this.vm),m())},h=()=>{this.element.contentWindow?.postMessage({action:"SDK_INIT",id:this.id},"*")};function m(){window.clearInterval(b),window.removeEventListener("message",c)}window.addEventListener("message",c),h();let C=0,b=window.setInterval(()=>{if(this.vm){m();return}if(C>=20){m(),a("Timeout: Unable to establish a connection with the StackBlitz VM"),qr.forEach((T,k)=>{T.id===this.id&&qr.splice(k,1)});return}C++,h()},500)}),qr.push(this)}},a1=i=>{let o=i instanceof Element?"element":"id";return qr.find(r=>r[o]===i)??null};function l1(i,o){let r=document.createElement("input");return r.type="hidden",r.name=i,r.value=o,r}function c1(i){return i.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}function df({template:i,title:o,description:r,dependencies:a,files:c,settings:h}){if(!sf.includes(i)){let T=sf.map(k=>`'${k}'`).join(", ");console.warn(`Unsupported project.template: must be one of ${T}`)}let m=[],C=(T,k,ne="")=>{m.push(l1(T,typeof k=="string"?k:ne))};C("project[title]",o),typeof r=="string"&&r.length>0&&C("project[description]",r),C("project[template]",i,"javascript"),a&&(i==="node"?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):C("project[dependencies]",JSON.stringify(a))),h&&C("project[settings]",JSON.stringify(h)),Object.entries(c).forEach(([T,k])=>{C(`project[files][${c1(T)}]`,k)});let b=document.createElement("form");return b.method="POST",b.setAttribute("style","display:none!important;"),b.append(...m),b}function u1(i,o){let r=df(i);return r.action=Ys("/run",o),r.id="sb_run",`<!doctype html>
<html>
<head><title></title></head>
<body>
${r.outerHTML}
<script>document.getElementById('${r.id}').submit();<\/script>
</body>
</html>`}function f1(i,o){let r=df(i);r.action=Zs("/run",o),r.target=Xs(o),document.body.appendChild(r),r.submit(),document.body.removeChild(r)}function Vr(i){return i?.contentWindow?(a1(i)??new Ks(i)).pending:Promise.reject("Provided element is not an iframe.")}function d1(i,o){f1(i,o)}function h1(i,o){let r=Zs(`/edit/${i}`,o),a=Xs(o);window.open(r,a)}function p1(i,o){let r=Zs(`/github/${i}`,o),a=Xs(o);window.open(r,a)}function g1(i,o,r){let a=Js(i),c=u1(o,r),h=document.createElement("iframe");return Qs(a,h,r),h.contentDocument?.write(c),Vr(h)}function _1(i,o,r){let a=Js(i),c=document.createElement("iframe");return c.src=Ys(`/edit/${o}`,r),Qs(a,c,r),Vr(c)}function m1(i,o,r){let a=Js(i),c=document.createElement("iframe");return c.src=Ys(`/github/${o}`,r),Qs(a,c,r),Vr(c)}var hf={connect:Vr,embedGithubProject:m1,embedProject:g1,embedProjectId:_1,openGithubProject:p1,openProject:d1,openProjectId:h1};var js=new ru("20.4.4");var pf={$schema:"./node_modules/@angular/cli/lib/config/schema.json",version:1,newProjectRoot:"projects",projects:{demo:{root:"",sourceRoot:"src",projectType:"application",prefix:"app",architect:{build:{builder:"@angular/build:application",options:{browser:"src/main.ts",polyfills:["zone.js"],tsConfig:"tsconfig.app.json",assets:["src/favicon.ico","src/assets"],styles:["node_modules/ng-zorro-antd/src/ng-zorro-antd.min.css","node_modules/ng-zorro-antd/resizable/style/index.min.css","node_modules/ng-zorro-antd/code-editor/style/index.min.css","node_modules/ng-zorro-antd/graph/style/index.min.css","src/styles.css"]},configurations:{production:{budgets:[{type:"initial",maximumWarning:"500kB",maximumError:"1MB"},{type:"anyComponentStyle",maximumWarning:"4kB",maximumError:"8kB"}],outputHashing:"all"},development:{optimization:!1,extractLicenses:!1,sourceMap:!0}},defaultConfiguration:"production"},serve:{builder:"@angular/build:dev-server",configurations:{production:{buildTarget:"demo:build:production"},development:{buildTarget:"demo:build:development"}},defaultConfiguration:"development"}}}}};var gf=`import { registerLocaleData } from '@angular/common';
import { ApplicationConfig } from '@angular/core';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { provideHttpClient, withJsonpSupport } from '@angular/common/http';
import en from '@angular/common/locales/en';
import { provideNzIcons } from 'ng-zorro-antd/icon';
import { en_US, provideNzI18n } from 'ng-zorro-antd/i18n';
import { IconDefinition } from '@ant-design/icons-angular';
import * as AllIcons from '@ant-design/icons-angular/icons';
registerLocaleData(en);
const antDesignIcons = AllIcons as {
[key: string]: IconDefinition;
};
const icons: IconDefinition[] = Object.keys(antDesignIcons).map(key => antDesignIcons[key])
export const appConfig: ApplicationConfig = {
providers: [
provideHttpClient(withJsonpSupport()),
provideAnimationsAsync(),
provideNzIcons(icons),
provideNzI18n(en_US)
]
};
`;var _f=i=>`import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { ${i} } from './app/app';
bootstrapApplication(${i}, appConfig)
.catch((err) => console.error(err));
`;var mf=(i,o)=>({name:"ng-zorro-demo",private:!0,scripts:{ng:"ng",start:"ng serve",build:"ng build"},dependencies:{"@angular/core":o,"@angular/forms":o,"@angular/common":o,"@angular/router":o,"@angular/compiler":o,"@angular/animations":o,"@angular/platform-browser":o,"@angular/cdk":o,"@ant-design/icons-angular":o,"date-fns":"^2.16.1",rxjs:"~7.8.1",tslib:"^2.0.0","ng-zorro-antd":i,"zone.js":"~0.15.0"},devDependencies:{"@angular/build":o,"@angular/cli":o,"@angular/compiler-cli":o,typescript:"~5.9.2"}});var vf={compileOnSave:!1,compilerOptions:{strict:!0,noImplicitOverride:!0,noPropertyAccessFromIndexSignature:!0,noImplicitReturns:!0,noFallthroughCasesInSwitch:!0,skipLibCheck:!0,isolatedModules:!0,experimentalDecorators:!0,importHelpers:!0,target:"ES2022",module:"preserve"},angularCompilerOptions:{enableI18nLegacyMessageIdFormat:!1,strictInjectionParameters:!0,strictInputAccessModifiers:!0,typeCheckHostBindings:!0,strictTemplates:!0}};var Cf={extends:"./tsconfig.json",compilerOptions:{outDir:"./out-tsc/app",types:[]},include:["src/**/*.ts"]};var Kr=class i{openOnStackBlitz(o,r,a){hf.openProject({title:"NG-ZORRO",description:"Ant Design of Angular",template:"node",files:{"package.json":JSON.stringify(mf(`^${js.full}`,`^${js.major}.0.0`),null,2),"angular.json":JSON.stringify(pf,null,2),"tsconfig.json":JSON.stringify(vf,null,2),"tsconfig.app.json":JSON.stringify(Cf,null,2),"src/index.html":`<${a}>loading</${a}>`,"src/main.ts":_f(o),"src/app/app.ts":r,"src/app/app.config.ts":gf,"src/styles.css":"/* Add application styles & imports to this file! */"}},{openFile:"src/app/app.ts"})}static \u0275fac=function(r){return new(r||i)};static \u0275prov=wi({token:i,factory:i.\u0275fac,providedIn:"root"})};var yf=class i{static formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(o,r=0,a="B",c){if(!(Bs(o)&&Bs(r)&&r%1===0&&r>=0))return o;let h=o,m=a;for(;m!=="B";)h*=1024,m=i.formats[m].prev;if(c){let C=i.formats[c],b=Hs(i.calculateResult(C,h),r);return i.formatResult(b,c)}for(let C in i.formats)if(i.formats.hasOwnProperty(C)){let b=i.formats[C];if(h<b.max){let T=Hs(i.calculateResult(b,h),r);return i.formatResult(T,C)}}}static formatResult(o,r){return`${o} ${r}`}static calculateResult(o,r){let a=o.prev?i.formats[o.prev]:void 0;return a?r/a.max:r}static \u0275fac=function(r){return new(r||i)};static \u0275pipe=Is({name:"nzBytes",type:i,pure:!0})};var wf=(()=>{class i{sanitizer=O(kr);transform(r,a="html"){switch(a){case"html":return this.sanitizer.bypassSecurityTrustHtml(r);case"style":return this.sanitizer.bypassSecurityTrustStyle(r);case"url":return this.sanitizer.bypassSecurityTrustUrl(r);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(r);default:throw new Error("Invalid safe type specified")}}static \u0275fac=function(a){return new(a||i)};static \u0275pipe=Is({name:"nzSanitizer",type:i,pure:!0})}return i})();var Zr=class i{nzCode=De();static \u0275fac=function(r){return new(r||i)};static \u0275cmp=Pe({type:i,selectors:[["nz-highlight"]],inputs:{nzCode:[1,"nzCode"]},decls:5,vars:4,consts:[[1,"language-angular"],[3,"innerHTML"]],template:function(r,a){r&1&&(uu(0,"pre",0),pe(1," "),du(2,"code",1),yu(3,"nzSanitizer"),pe(4,`
`),fu()),r&2&&(R(2),hu("innerHTML",wu(3,1,a.nzCode(),"html"),Or))},dependencies:[wf],encapsulation:2,changeDetection:0})};var Sf=Qc(xf());var y1=[[["","intro",""]],"*"],w1=["[intro]","*"];function D1(i,o){if(i&1&&(F(0,"div")(1,"div"),Nt(2,1),U()()),i&2){let r=K(),a=r.nzIframe&&!r.iframe;Ae("simulate-iframe",a)("browser-mockup",a)("with-url",a),R(),gu("height",a&&r.nzIframeHeight,"px")}}function x1(i,o){if(i&1&&(F(0,"div",3),je(1,"iframe",21),U()),i&2){let r=K();R(),$("src",r.iframe,su)("height",r.nzIframeHeight)}}function S1(i,o){if(i&1){let r=Kn();F(0,"nz-icon",12),dt("click",function(){un(r);let c=K();return fn(c.copyGenerateCommand(c.nzGenerateCommand))}),U()}if(i&2){let r=K();Ae("ant-tooltip-open",r.commandCopied()),$("nzTooltipTitle",r.language()==="zh"?"\u590D\u5236\u751F\u6210\u4EE3\u7801\u547D\u4EE4":"Copy Generate Command")("nzType",r.commandCopied()?"check":"code")}}var b1=["*"];function T1(i,o){i&1&&Rs(0)}function E1(i,o){if(i&1&&(F(0,"nz-code-box",2),he(1,T1,1,0,"ng-container",3),je(2,"div",4),U()),i&2){let r=K().$implicit,a=Cu(0),c=K();Ae("background-grey",a.background()==="grey"),$("nzXl",24/c.cols())("id",a.id())("nzTitle",a.title())("nzSelector",a.selector())("nzGenerateCommand",a.nzGenerateCommand())("nzComponentName",a.componentName())("nzIframe",a.iframe())("nzIframeSource",a.iframeSource())("nzIframeHeight",a.iframeHeight())("nzHref",a.href()),R(),$("ngTemplateOutlet",r.templateRef),R(),$("innerHtml",a.doc(),Or)}}function z1(i,o){i&1&&Rs(0)}function I1(i,o){if(i&1&&he(0,z1,1,0,"ng-container",3),i&2){let r=K().$implicit;$("ngTemplateOutlet",r.templateRef)}}function R1(i,o){if(i&1&&(mu(0),ye(1,E1,3,14,"nz-code-box",1)(2,I1,1,1,"ng-container")),i&2){let r=o.$index,a=vu(K().props()[r]);R(),we(a?1:2)}}var Oi=class i{language=O(qu);sanitizer=O(kr);appService=O(Gu);platform=O(Ei);clipboard=O($r);destroyRef=O(dn);onlineIdeService=O(Kr);iframe;highlightCode=Xe(null);commandCopied=Xe(!1);codeLoaded=yt(()=>!!this.highlightCode());onlineIDELoading=Xe(!1);copied=Xe(!1);codeLoading=Xe(!1);expanded=Xe(!1);id=De.required();nzTitle;nzHref;nzIframeHeight=360;nzComponentName="";nzSelector="";nzGenerateCommand="";nzIframe=!1;set nzIframeSource(o){o!=="null"&&o!==null&&(this.iframe=this.sanitizer.bypassSecurityTrustResourceUrl(o))}navigateToFragment(){this.platform.isBrowser&&(window.location.hash=this.id())}copyCode(){setTimeout(()=>this.codeLoading.set(!this.codeLoaded()),100),this.getDemoCode().subscribe(o=>{this.codeLoading.set(!1),this.clipboard.copy(o.rawCode),this.copied.set(!0),setTimeout(()=>this.copied.set(!1),1e3)})}copyGenerateCommand(o){this.clipboard.copy(o),this.commandCopied.set(!0),setTimeout(()=>this.commandCopied.set(!1),1e3)}expandCode(o){this.expanded.set(o),o&&this.getDemoCode().subscribe()}openOnlineIDE(){setTimeout(()=>this.onlineIDELoading.set(!this.codeLoaded()),100),this.getDemoCode().subscribe(o=>{this.onlineIDELoading.set(!1),this.onlineIdeService.openOnStackBlitz(this.nzComponentName,o.rawCode,this.nzSelector)})}getDemoCode(){return this.appService.getCode(this.id()).pipe(Ii(this.destroyRef),qn(o=>{this.highlightCode.set(o.highlightCode)}))}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=Pe({type:i,selectors:[["nz-code-box"]],inputs:{id:[1,"id"],nzTitle:"nzTitle",nzHref:"nzHref",nzIframeHeight:"nzIframeHeight",nzComponentName:"nzComponentName",nzSelector:"nzSelector",nzGenerateCommand:"nzGenerateCommand",nzIframe:"nzIframe",nzIframeSource:"nzIframeSource"},ngContentSelectors:w1,decls:26,vars:24,consts:[[1,"code-box"],[1,"code-box-demo"],[3,"simulate-iframe","browser-mockup","with-url"],[1,"browser-mockup","with-url"],[1,"code-box-meta","markdown"],["nz-flex","","nzAlign","center","nzGap","small",1,"code-box-title"],[3,"click"],["target","_blank","rel","noopener noreferrer"],["nzType","edit"],[1,"code-box-description"],[1,"code-box-actions"],["nz-tooltip","","nzType","thunderbolt",3,"click","nzTooltipTitle"],["nz-tooltip","",3,"click","nzTooltipTitle","nzType"],["nz-tooltip","",3,"nzTooltipTitle","nzType","ant-tooltip-open"],["nz-tooltip","",3,"click","nzTooltipTitle"],["viewBox","0 0 1024 1024","fill","currentColor"],["d","M1018.645 531.298c8.635-18.61 4.601-41.42-11.442-55.864l-205.108-184.68c-19.7-17.739-50.05-16.148-67.789 3.552-17.738 19.7-16.148 50.051 3.553 67.79l166.28 149.718-167.28 150.62c-19.7 17.738-21.291 48.088-3.553 67.789 17.739 19.7 48.089 21.291 67.79 3.553l205.107-184.68a47.805 47.805 0 0 0 12.442-17.798zM119.947 511.39l166.28-149.719c19.7-17.738 21.29-48.088 3.552-67.789-17.738-19.7-48.088-21.291-67.789-3.553L16.882 475.01C.84 489.456-3.194 512.264 5.44 530.874a47.805 47.805 0 0 0 12.442 17.798l205.108 184.68c19.7 17.739 50.05 16.148 67.79-3.552 17.738-19.7 16.147-50.051-3.553-67.79l-167.28-150.62z","fill-rule","evenodd","opacity","0.78"],["d","M1018.645 531.298c8.635-18.61 4.601-41.42-11.442-55.864l-205.108-184.68c-19.7-17.739-50.05-16.148-67.789 3.552-17.738 19.7-16.148 50.051 3.553 67.79l166.28 149.718-167.28 150.62c-19.7 17.738-21.291 48.088-3.553 67.789 17.739 19.7 48.089 21.291 67.79 3.553l205.107-184.68a47.805 47.805 0 0 0 12.442-17.798zM119.947 511.39l166.28-149.719c19.7-17.738 21.29-48.088 3.552-67.789-17.738-19.7-48.088-21.291-67.789-3.553L16.882 475.01C.84 489.456-3.194 512.264 5.44 530.874a47.805 47.805 0 0 0 12.442 17.798l205.108 184.68c19.7 17.739 50.05 16.148 67.79-3.552 17.738-19.7 16.147-50.051-3.553-67.79l-167.28-150.62zm529.545-377.146c24.911 9.066 37.755 36.61 28.688 61.522L436.03 861.068c-9.067 24.911-36.611 37.755-61.522 28.688-24.911-9.066-37.755-36.61-28.688-61.522l242.15-665.302c9.067-24.911 36.611-37.755 61.522-28.688z","fill-rule","evenodd","opacity","0.78"],[1,"highlight-wrapper"],[1,"highlight"],[3,"nzCode"],["title","demo",3,"src","height"]],template:function(r,a){r&1&&(Yt(y1),F(0,"section",0)(1,"section",1),ye(2,D1,3,8,"div",2)(3,x1,2,2,"div",3),U(),F(4,"section",4)(5,"div",5)(6,"a",6),dt("click",function(){return a.navigateToFragment()}),pe(7),U(),F(8,"a",7),je(9,"nz-icon",8),U()(),F(10,"div",9),Nt(11),U(),F(12,"div",10)(13,"nz-icon",11),dt("click",function(){return a.openOnlineIDE()}),U(),F(14,"nz-icon",12),dt("click",function(){return a.copyCode()}),U(),ye(15,S1,1,4,"nz-icon",13),F(16,"span",14),dt("click",function(){return a.expandCode(!a.expanded())}),F(17,"nz-icon"),bs(),F(18,"svg",15),je(19,"path",16),U()(),Ts(),F(20,"nz-icon"),bs(),F(21,"svg",15),je(22,"path",17),U()()()()(),Ts(),F(23,"section",18)(24,"div",19),je(25,"nz-highlight",20),U()()()),r&2&&(Ae("expand",a.expanded()),Ct("id",a.id()),R(2),we(!a.nzIframe||!a.iframe?2:3),R(5),yn(a.nzTitle),R(),Ct("href",a.nzHref,pn),R(5),$("nzTooltipTitle",a.onlineIDELoading()?a.language()==="zh"?"\u52A0\u8F7D\u4E2D...":"Loading...":a.language()==="zh"?"\u5728 StackBlitz \u4E0A\u6253\u5F00":"Edit On StackBlitz"),R(),Ae("ant-tooltip-open",a.copied()),$("nzTooltipTitle",a.codeLoading()?a.language()==="zh"?"\u52A0\u8F7D\u4E2D...":"Loading...":a.language()==="zh"?"\u590D\u5236\u4EE3\u7801":"Copy Code")("nzType",a.copied()?"check":"snippets"),R(),we(a.nzGenerateCommand?15:-1),R(),$("nzTooltipTitle",a.expanded()?a.language()==="zh"?"\u6536\u8D77\u4EE3\u7801":"Hide Code":a.language()==="zh"?"\u663E\u793A\u4EE3\u7801":"Show Code"),R(),Ae("code-expand-icon-show",a.expanded())("code-expand-icon-hide",!a.expanded()),R(3),Ae("code-expand-icon-show",!a.expanded())("code-expand-icon-hide",a.expanded()),R(3),Ae("highlight-wrapper-expand",a.expanded()),R(2),$("nzCode",a.codeLoaded()?a.highlightCode():a.language()==="zh"?"\u52A0\u8F7D\u4E2D":"Loading..."))},dependencies:[Ku,Vu,Dn,Ur,xn,Wr,Zr],styles:[`.simulate-iframe{display:block;transform:translate(0)}.simulate-iframe>*{display:block;height:100%;overflow:auto;transform:translate(0)}.simulate-iframe>*>*{height:100%;overflow:auto}nz-code-box{display:block}
`],encapsulation:2,changeDetection:0})},Yr=class i{component=De();title=De();key=De();background=De();doc=De("",{transform:o=>(0,Sf.unescape)(o)});iframe=De(!1,{transform:ht});iframeSource=De(null);iframeHeight=De(360,{transform:Lt});nzGenerateCommand=De("");selector=yt(()=>`nx-demo-${this.component()}-${this.key()}`);id=yt(()=>"components-"+this.component()+"-demo-"+this.key());href=yt(()=>`https://github.com/NG-ZORRO/x/edit/master/components/${this.component()}/demo/${this.key()}.md`);componentName=yt(()=>of(`${this.selector()}-component`));static \u0275fac=function(r){return new(r||i)};static \u0275dir=Vn({type:i,selectors:[["","showcase",""]],hostVars:1,hostBindings:function(r,a){r&2&&Ct("title",null)},inputs:{component:[1,"component"],title:[1,"title"],key:[1,"key"],background:[1,"background"],doc:[1,"doc"],iframe:[1,"iframe"],iframeSource:[1,"iframeSource"],iframeHeight:[1,"iframeHeight"],nzGenerateCommand:[1,"nzGenerateCommand"]}})},Qr=class i{templateRef=O(gn);static \u0275fac=function(r){return new(r||i)};static \u0275dir=Vn({type:i,selectors:[["","templateRef",""]]})},Jr=class i{cols=De(2,{transform:Lt});cases=Ls(Qr);props=Ls(Yr);static \u0275fac=function(r){return new(r||i)};static \u0275cmp=Pe({type:i,selectors:[["demo-wrapper"]],contentQueries:function(r,a,c){r&1&&(Ps(c,a.cases,Qr,4),Ps(c,a.props,Yr,4)),r&2&&pu(2)},hostAttrs:["ngSkipHydration",""],inputs:{cols:[1,"cols"]},ngContentSelectors:b1,decls:4,vars:1,consts:[["nz-row","",3,"nzGutter"],["nz-col","","nzSpan","24",3,"nzXl","id","background-grey","nzTitle","nzSelector","nzGenerateCommand","nzComponentName","nzIframe","nzIframeSource","nzIframeHeight","nzHref"],["nz-col","","nzSpan","24",3,"nzXl","id","nzTitle","nzSelector","nzGenerateCommand","nzComponentName","nzIframe","nzIframeSource","nzIframeHeight","nzHref"],[4,"ngTemplateOutlet"],["intro","",3,"innerHtml"]],template:function(r,a){r&1&&(Yt(),F(0,"div",0),ut(1,R1,3,2,null,null,ct),U(),Nt(3)),r&2&&($("nzGutter",8*a.cols()),R(),ft(a.cases()))},dependencies:[Pi,ku,Mu,Oi,wn],encapsulation:2,changeDetection:0})};var P1=["ink"],Ef=["*"],A1=i=>({"ant-anchor-wrapper-horizontal":i}),O1=i=>({"ant-anchor-fixed":i});function N1(i,o){}function L1(i,o){if(i&1&&(F(0,"nz-affix",2),he(1,N1,0,0,"ng-template",3),U()),i&2){let r=K(),a=Ti(3);$("nzOffsetTop",r.nzOffsetTop)("nzTarget",r.container),R(),$("ngTemplateOutlet",a)}}function M1(i,o){}function k1(i,o){if(i&1&&he(0,M1,0,0,"ng-template",3),i&2){K();let r=Ti(3);$("ngTemplateOutlet",r)}}function F1(i,o){if(i&1&&(F(0,"div",4)(1,"div",5)(2,"div",6),je(3,"div",7,1),U(),Nt(5),U()()),i&2){let r=K();_u(r.wrapperStyle),As(Ns(6,A1,r.nzDirection==="horizontal")),R(),As(Ns(8,O1,!r.nzAffix&&!r.nzShowInkInFixed))}}var B1=["nzTemplate"],H1=["linkTitle"];function U1(i,o){if(i&1&&(F(0,"span"),pe(1),U()),i&2){let r=K();R(),yn(r.titleStr)}}function W1(i,o){}function $1(i,o){if(i&1&&he(0,W1,0,0,"ng-template",2),i&2){let r=K();$("ngTemplateOutlet",r.titleTpl||r.nzTemplate)}}function G1(i,o){i&1&&Nt(0)}function bf(i,o){if(!i||!i.getClientRects().length)return 0;let r=i.getBoundingClientRect();if(r.width||r.height){if(o===window){let a=i.ownerDocument.documentElement;return r.top-a.clientTop}return r.top-o.getBoundingClientRect().top}return r.top}var Tf="ant-anchor-ink-ball-visible",q1="anchor",V1=/#([^#]+)$/,K1=Du({passive:!0}),zf=(()=>{var V;let i,o=[],r=[],a,c=[],h=[],m,C=[],b=[],T,k=[],ne=[];return V=class{nzConfigService=O(Hr);scrollSrv=O(Tu);cdr=O(Zn);platform=O(Ei);renderer=O(zs);doc=O(xi);destroyRef=O(dn);_nzModuleName=q1;ink;nzAffix=!0;nzShowInkInFixed=Ce(this,o,!1);nzBounds=(Ce(this,r),Ce(this,c,5));nzOffsetTop=(Ce(this,h),Ce(this,C,void 0));nzTargetOffset=(Ce(this,b),Ce(this,k,void 0));nzContainer=Ce(this,ne);nzCurrentAnchor;nzDirection="vertical";nzClick=new lt;nzChange=new lt;nzScroll=new lt;visible=!1;wrapperStyle={"max-height":"100vh"};container;activeLink;links=[];animating=!1;destroy$=new oe;handleScrollTimeoutID;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.handleScrollTimeoutID),this.destroy$.next(!0),this.destroy$.complete()})}registerLink(z){this.links.push(z)}unregisterLink(z){this.links.splice(this.links.indexOf(z),1)}getContainer(){return this.container||window}ngAfterViewInit(){this.registerScrollEvent()}registerScrollEvent(){this.platform.isBrowser&&(this.destroy$.next(!0),bu(this.getContainer(),"scroll",K1).pipe(iu(50),Gn(this.destroy$)).subscribe(()=>this.handleScroll()),this.handleScrollTimeoutID=setTimeout(()=>this.handleScroll()))}handleScroll(){if(typeof document>"u"||this.animating)return;let z=[],P=(this.nzTargetOffset?this.nzTargetOffset:this.nzOffsetTop||0)+this.nzBounds;if(this.links.forEach(J=>{let j=V1.exec(J.nzHref.toString());if(!j)return;let le=this.doc.getElementById(j[1]);if(le){let Ee=bf(le,this.getContainer());Ee<P&&z.push({top:Ee,comp:J})}}),this.visible=!!z.length,!this.visible)this.clearActive(),this.cdr.detectChanges();else{let J=z.reduce((j,le)=>le.top>j.top?le:j);this.handleActive(J.comp)}this.setVisible()}clearActive(){this.links.forEach(z=>{z.unsetActive()})}setActive(z){let S=this.activeLink,P=this.nzCurrentAnchor&&this.links.find(j=>j.nzHref===this.nzCurrentAnchor)||z;if(!P)return;P.setActive();let J=P.getLinkTitleElement();this.nzDirection==="vertical"?this.ink.nativeElement.style.top=`${J.offsetTop+J.clientHeight/2-4.5}px`:this.ink.nativeElement.style.left=`${J.offsetLeft+J.clientWidth/2}px`,this.activeLink=(z||P).nzHref,S!==this.activeLink&&this.nzChange.emit(this.activeLink)}handleActive(z){this.clearActive(),this.setActive(z),this.visible=!0,this.setVisible(),this.nzScroll.emit(z)}setVisible(){this.ink&&(this.visible?this.renderer.addClass(this.ink.nativeElement,Tf):this.renderer.removeClass(this.ink.nativeElement,Tf))}handleScrollTo(z){let S=this.doc.querySelector(z.nzHref);if(!S)return;this.animating=!0;let P=this.scrollSrv.getScroll(this.getContainer()),J=bf(S,this.getContainer()),j=P+J;j-=this.nzTargetOffset!==void 0?this.nzTargetOffset:this.nzOffsetTop||0,this.scrollSrv.scrollTo(this.getContainer(),j,{callback:()=>{this.animating=!1,this.handleActive(z)}}),this.nzClick.emit(z.nzHref)}ngOnChanges(z){let{nzOffsetTop:S,nzContainer:P,nzCurrentAnchor:J}=z;if(S&&(this.wrapperStyle={"max-height":`calc(100vh - ${this.nzOffsetTop}px)`}),P){let j=this.nzContainer;this.container=typeof j=="string"?this.doc.querySelector(j):j,this.registerScrollEvent()}J&&this.setActive()}},(()=>{let z=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[wt()],a=[wt()],m=[wt()],T=[wt()],vt(null,null,i,{kind:"field",name:"nzShowInkInFixed",static:!1,private:!1,access:{has:S=>"nzShowInkInFixed"in S,get:S=>S.nzShowInkInFixed,set:(S,P)=>{S.nzShowInkInFixed=P}},metadata:z},o,r),vt(null,null,a,{kind:"field",name:"nzBounds",static:!1,private:!1,access:{has:S=>"nzBounds"in S,get:S=>S.nzBounds,set:(S,P)=>{S.nzBounds=P}},metadata:z},c,h),vt(null,null,m,{kind:"field",name:"nzOffsetTop",static:!1,private:!1,access:{has:S=>"nzOffsetTop"in S,get:S=>S.nzOffsetTop,set:(S,P)=>{S.nzOffsetTop=P}},metadata:z},C,b),vt(null,null,T,{kind:"field",name:"nzTargetOffset",static:!1,private:!1,access:{has:S=>"nzTargetOffset"in S,get:S=>S.nzTargetOffset,set:(S,P)=>{S.nzTargetOffset=P}},metadata:z},k,ne),z&&Object.defineProperty(V,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:z})})(),Un(V,"\u0275fac",function(S){return new(S||V)}),Un(V,"\u0275cmp",Pe({type:V,selectors:[["nz-anchor"]],viewQuery:function(S,P){if(S&1&&bi(P1,5),S&2){let J;vn(J=Cn())&&(P.ink=J.first)}},inputs:{nzAffix:[2,"nzAffix","nzAffix",ht],nzShowInkInFixed:[2,"nzShowInkInFixed","nzShowInkInFixed",ht],nzBounds:[2,"nzBounds","nzBounds",Lt],nzOffsetTop:[2,"nzOffsetTop","nzOffsetTop",Fs],nzTargetOffset:[2,"nzTargetOffset","nzTargetOffset",Fs],nzContainer:"nzContainer",nzCurrentAnchor:"nzCurrentAnchor",nzDirection:"nzDirection"},outputs:{nzClick:"nzClick",nzChange:"nzChange",nzScroll:"nzScroll"},exportAs:["nzAnchor"],features:[hn],ngContentSelectors:Ef,decls:4,vars:1,consts:[["content",""],["ink",""],[3,"nzOffsetTop","nzTarget"],[3,"ngTemplateOutlet"],[1,"ant-anchor-wrapper"],[1,"ant-anchor"],[1,"ant-anchor-ink"],[1,"ant-anchor-ink-ball"]],template:function(S,P){S&1&&(Yt(),ye(0,L1,2,3,"nz-affix",2)(1,k1,1,1,null,3),he(2,F1,6,10,"ng-template",null,0,Mr)),S&2&&we(P.nzAffix?0:1)},dependencies:[wn,Ri,Ru],encapsulation:2,changeDetection:0})),V})(),hw=(()=>{class i{elementRef=O(Si);anchorComp=O(zf);platform=O(Ei);renderer=O(zs);destroyRef=O(dn);nzHref="#";nzTarget;titleStr="";titleTpl;nzDirection="vertical";set nzTitle(r){r instanceof gn?(this.titleStr=null,this.titleTpl=r):this.titleStr=r}nzTemplate;linkTitle;constructor(){this.destroyRef.onDestroy(()=>{this.anchorComp.unregisterLink(this)})}ngOnInit(){this.anchorComp.registerLink(this),this.nzDirection=this.anchorComp.nzDirection}getLinkTitleElement(){return this.linkTitle.nativeElement}setActive(){this.renderer.addClass(this.elementRef.nativeElement,"ant-anchor-link-active")}unsetActive(){this.renderer.removeClass(this.elementRef.nativeElement,"ant-anchor-link-active")}goToClick(r){r.preventDefault(),r.stopPropagation(),this.platform.isBrowser&&this.anchorComp.handleScrollTo(this)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=Pe({type:i,selectors:[["nz-link"]],contentQueries:function(a,c,h){if(a&1&&Lr(h,B1,5),a&2){let m;vn(m=Cn())&&(c.nzTemplate=m.first)}},viewQuery:function(a,c){if(a&1&&bi(H1,5),a&2){let h;vn(h=Cn())&&(c.linkTitle=h.first)}},hostAttrs:[1,"ant-anchor-link"],inputs:{nzHref:"nzHref",nzTarget:"nzTarget",nzTitle:"nzTitle"},exportAs:["nzLink"],ngContentSelectors:Ef,decls:5,vars:5,consts:[["linkTitle",""],[1,"ant-anchor-link-title",3,"click","href","target"],[3,"ngTemplateOutlet"]],template:function(a,c){if(a&1){let h=Kn();Yt(),F(0,"a",1,0),dt("click",function(C){return un(h),fn(c.goToClick(C))}),ye(2,U1,2,1,"span")(3,$1,1,1,null,2),U(),ye(4,G1,1,0)}a&2&&($("href",c.nzHref,pn)("target",c.nzTarget),Ct("title",c.titleStr),R(2),we(c.titleStr?2:3),R(2),we(c.nzDirection==="vertical"?4:-1))},dependencies:[wn],encapsulation:2,changeDetection:0})}return i})(),ea=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=Ot({type:i});static \u0275inj=At({imports:[zf]})}return i})();var Z1=["*"];function Y1(i,o){i&1&&Nt(0)}function Q1(i,o){if(i&1&&(_n(0),pe(1),mn()),i&2){let r=K(3);R(),yn(r.nzTitle)}}function J1(i,o){if(i&1&&(F(0,"div",2),he(1,Q1,2,1,"ng-container",4),U()),i&2){let r=K(2);R(),$("nzStringTemplateOutlet",r.nzTitle)}}function X1(i,o){if(i&1&&(_n(0),pe(1),mn()),i&2){let r=K(3);R(),yn(r.nzExtra)}}function j1(i,o){if(i&1&&(F(0,"div",3),he(1,X1,2,1,"ng-container",4),U()),i&2){let r=K(2);R(),$("nzStringTemplateOutlet",r.nzExtra)}}function eC(i,o){if(i&1&&(F(0,"div",0),ye(1,J1,2,1,"div",2),ye(2,j1,2,1,"div",3),U()),i&2){let r=K();R(),we(r.nzTitle?1:-1),R(),we(r.nzExtra?2:-1)}}function tC(i,o){if(i&1&&(_n(0),pe(1),mn()),i&2){let r=K(2).$implicit;R(),et(" ",r.title," ")}}function nC(i,o){}function iC(i,o){if(i&1&&(F(0,"td",6)(1,"div",7)(2,"span",8),he(3,tC,2,1,"ng-container",4),U(),F(4,"span",9),he(5,nC,0,0,"ng-template",10),U()()()),i&2){let r=K().$implicit,a=K(3);$("colSpan",r.span),R(2),Ae("ant-descriptions-item-no-colon",!a.nzColon),R(),$("nzStringTemplateOutlet",r.title),R(2),$("ngTemplateOutlet",r.content)}}function rC(i,o){if(i&1&&(_n(0),pe(1),mn()),i&2){let r=K(2).$implicit;R(),et(" ",r.title," ")}}function oC(i,o){}function sC(i,o){if(i&1&&(F(0,"td",8),he(1,rC,2,1,"ng-container",4),U(),F(2,"td",11),he(3,oC,0,0,"ng-template",10),U()),i&2){let r=K().$implicit;R(),$("nzStringTemplateOutlet",r.title),R(),$("colSpan",r.span*2-1),R(),$("ngTemplateOutlet",r.content)}}function aC(i,o){if(i&1&&ye(0,iC,6,5,"td",6)(1,sC,4,3),i&2){let r=K(3);we(r.nzBordered?1:0)}}function lC(i,o){if(i&1&&(F(0,"tr",5),ut(1,aC,2,1,null,null,ct),U()),i&2){let r=o.$implicit;R(),ft(r)}}function cC(i,o){if(i&1&&ut(0,lC,3,0,"tr",5,ct),i&2){let r=K();ft(r.itemMatrix)}}function uC(i,o){if(i&1&&(_n(0),pe(1),mn()),i&2){let r=K().$implicit;R(),et(" ",r.title," ")}}function fC(i,o){if(i&1&&(F(0,"td",6)(1,"div",7)(2,"span",8),he(3,uC,2,1,"ng-container",4),U()()()),i&2){let r=o.$implicit,a=K(4);$("colSpan",r.span),R(2),Ae("ant-descriptions-item-no-colon",!a.nzColon),R(),$("nzStringTemplateOutlet",r.title)}}function dC(i,o){}function hC(i,o){if(i&1&&(F(0,"td",6)(1,"div",7)(2,"span",9),he(3,dC,0,0,"ng-template",10),U()()()),i&2){let r=o.$implicit;$("colSpan",r.span),R(3),$("ngTemplateOutlet",r.content)}}function pC(i,o){if(i&1&&(F(0,"tr",5),ut(1,fC,4,4,"td",6,ct),U(),F(3,"tr",5),ut(4,hC,4,2,"td",6,ct),U()),i&2){let r=o.$implicit;R(),ft(r),R(3),ft(r)}}function gC(i,o){if(i&1&&ut(0,pC,6,0,null,null,ct),i&2){let r=K(2);ft(r.itemMatrix)}}function _C(i,o){if(i&1&&(_n(0),pe(1),mn()),i&2){let r=K().$implicit;R(),et(" ",r.title," ")}}function mC(i,o){if(i&1&&(F(0,"td",12),he(1,_C,2,1,"ng-container",4),U()),i&2){let r=o.$implicit;$("colSpan",r.span),R(),$("nzStringTemplateOutlet",r.title)}}function vC(i,o){}function CC(i,o){if(i&1&&(F(0,"td",11),he(1,vC,0,0,"ng-template",10),U()),i&2){let r=o.$implicit;$("colSpan",r.span),R(),$("ngTemplateOutlet",r.content)}}function yC(i,o){if(i&1&&(F(0,"tr",5),ut(1,mC,2,2,"td",12,ct),U(),F(3,"tr",5),ut(4,CC,2,2,"td",11,ct),U()),i&2){let r=o.$implicit;R(),ft(r),R(3),ft(r)}}function wC(i,o){if(i&1&&ut(0,yC,6,0,null,null,ct),i&2){let r=K(2);ft(r.itemMatrix)}}function DC(i,o){if(i&1&&ye(0,gC,2,0)(1,wC,2,0),i&2){let r=K();we(r.nzBordered?1:0)}}var ta=(()=>{class i{content;nzSpan=1;nzTitle="";inputChange$=new oe;ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=Pe({type:i,selectors:[["nz-descriptions-item"]],viewQuery:function(a,c){if(a&1&&bi(gn,7),a&2){let h;vn(h=Cn())&&(c.content=h.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",Lt],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[hn],ngContentSelectors:Z1,decls:1,vars:0,template:function(a,c){a&1&&(Yt(),cu(0,Y1,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),xC="descriptions",SC={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},na=(()=>{var V;let i,o=[],r=[],a,c=[],h=[],m,C=[],b=[],T,k=[],ne=[];return V=class{nzConfigService=O(Hr);cdr=O(Zn);breakpointService=O(Iu);directionality=O(Fr);destroyRef=O(dn);_nzModuleName=xC;items;nzBordered=Ce(this,o,!1);nzLayout=(Ce(this,r),"horizontal");nzColumn=Ce(this,c,SC);nzSize=(Ce(this,h),Ce(this,C,"default"));nzTitle=(Ce(this,b),"");nzExtra;nzColon=Ce(this,k,!0);itemMatrix=(Ce(this,ne),[]);realColumn=3;dir="ltr";breakpoint=Eu.md;ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Ii(this.destroyRef)).subscribe(z=>{this.dir=z})}ngOnChanges(z){z.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){let z=this.items.changes.pipe(Pr(this.items));$n(z,z.pipe(Ar(()=>$n(...this.items.map(S=>S.inputChange$)).pipe(tu(16)))),this.breakpointService.subscribe(zu).pipe(qn(S=>this.breakpoint=S))).pipe(Ii(this.destroyRef)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}prepareMatrix(){if(!this.items)return;let z=[],S=0,P=this.realColumn=this.getColumn(),J=this.items.toArray(),j=J.length,le=[],Ee=()=>{le.push(z),z=[],S=0};for(let xe=0;xe<j;xe++){let Jt=J[xe],{nzTitle:Xt,content:Jn,nzSpan:bn}=Jt;S+=bn,S>=P?(S>P&&Su(`"nzColumn" is ${P} but we have row length ${S}`),z.push({title:Xt,content:Jn,span:P-(S-bn)}),Ee()):xe===j-1?(z.push({title:Xt,content:Jn,span:P-(S-bn)}),Ee()):z.push({title:Xt,content:Jn,span:bn})}this.itemMatrix=le}getColumn(){return typeof this.nzColumn!="number"?this.nzColumn[this.breakpoint]:this.nzColumn}},(()=>{let z=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[wt()],a=[wt()],m=[wt()],T=[wt()],vt(null,null,i,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:S=>"nzBordered"in S,get:S=>S.nzBordered,set:(S,P)=>{S.nzBordered=P}},metadata:z},o,r),vt(null,null,a,{kind:"field",name:"nzColumn",static:!1,private:!1,access:{has:S=>"nzColumn"in S,get:S=>S.nzColumn,set:(S,P)=>{S.nzColumn=P}},metadata:z},c,h),vt(null,null,m,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:S=>"nzSize"in S,get:S=>S.nzSize,set:(S,P)=>{S.nzSize=P}},metadata:z},C,b),vt(null,null,T,{kind:"field",name:"nzColon",static:!1,private:!1,access:{has:S=>"nzColon"in S,get:S=>S.nzColon,set:(S,P)=>{S.nzColon=P}},metadata:z},k,ne),z&&Object.defineProperty(V,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:z})})(),Un(V,"\u0275fac",function(S){return new(S||V)}),Un(V,"\u0275cmp",Pe({type:V,selectors:[["nz-descriptions"]],contentQueries:function(S,P,J){if(S&1&&Lr(J,ta,4),S&2){let j;vn(j=Cn())&&(P.items=j)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(S,P){S&2&&Ae("ant-descriptions-bordered",P.nzBordered)("ant-descriptions-middle",P.nzSize==="middle")("ant-descriptions-small",P.nzSize==="small")("ant-descriptions-rtl",P.dir==="rtl")},inputs:{nzBordered:[2,"nzBordered","nzBordered",ht],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",ht]},exportAs:["nzDescriptions"],features:[hn],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(S,P){S&1&&(ye(0,eC,3,2,"div",0),F(1,"div",1)(2,"table")(3,"tbody"),ye(4,cC,2,0),ye(5,DC,2,1),U()()()),S&2&&(we(P.nzTitle||P.nzExtra?0:-1),R(4),we(P.nzLayout==="horizontal"?4:-1),R(),we(P.nzLayout==="vertical"?5:-1))},dependencies:[Au,Pu,wn],encapsulation:2,changeDetection:0})),V})(),If=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=Ot({type:i});static \u0275inj=At({imports:[na]})}return i})();function TC(i,o){if(i&1&&pe(0),i&2){let r=K(2);et(" ",r.isEn()?"Copied":"\u5DF2\u590D\u5236"," ")}}function EC(i,o){if(i&1&&pe(0),i&2){let r=K(2);et(" ",r.isEn()?"Copy":"\u590D\u5236"," ")}}function zC(i,o){if(i&1&&ye(0,TC,1,1)(1,EC,1,1),i&2){let r=K();we(r.copied()?0:1)}}var Xr=class i{name=De.required();language=De();description=De();clipboard=O($r);path=yt(()=>this.name());get sourceCode(){return`https://github.com/NG-ZORRO/x/blob/master/components/${this.path()}`}isEn=yt(()=>this.language()==="en");document=yt(()=>{let o=this.isEn()?"en-US":"zh-CN";return`https://github.com/NG-ZORRO/x/blob/master/components/${this.name()}/doc/index.${o}.md`});copied=Xe(!1);get usage(){let o=this.name(),r=o.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("");return`import { ${o.startsWith("x-")?r:`Nx${r}Module`} } from 'ng-zorro-x/${this.path()}';`}usageTooltipVisibleChange(o){o||this.copied.set(!1)}copy(){this.clipboard.copy(this.usage),this.copied.set(!0)}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=Pe({type:i,selectors:[["component-meta"]],hostAttrs:["ngSkipHydration",""],inputs:{name:[1,"name"],language:[1,"language"],description:[1,"description"]},decls:18,vars:12,consts:[["tip",""],["nzSize","small",3,"nzColumn","nzColon"],[3,"nzTitle"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nz-typography","","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipVisibleChange","nzTooltipTitle"],["nz-button","","nzType","text","nzSize","small","target","_blank","rel","noopener noreferrer"],["nzType","github"],["nz-typography",""],["nzType","edit"]],template:function(r,a){if(r&1){let c=Kn();pe(0),F(1,"nz-descriptions",1)(2,"nz-descriptions-item",2)(3,"button",3),dt("click",function(){return un(c),fn(a.copy())}),F(4,"span",4),dt("nzTooltipVisibleChange",function(m){return un(c),fn(a.usageTooltipVisibleChange(m))}),pe(5),U()()(),F(6,"nz-descriptions-item",2)(7,"a",5),je(8,"nz-icon",6),F(9,"span",7),pe(10),U()()(),F(11,"nz-descriptions-item",2)(12,"a",5),je(13,"nz-icon",8),F(14,"span",7),pe(15),U()()()(),he(16,zC,2,1,"ng-template",null,0,Mr)}if(r&2){let c=Ti(17);et("",a.description()," "),R(),$("nzColumn",1)("nzColon",!1),R(),$("nzTitle",a.isEn()?"Import":"\u4F7F\u7528"),R(2),$("nzTooltipTitle",c),R(),et(" ",a.usage," "),R(),$("nzTitle",a.isEn()?"Source":"\u6E90\u7801"),R(),Ct("href",a.sourceCode,pn),R(3),et("components/",a.path()),R(),$("nzTitle",a.isEn()?"Docs":"\u6587\u6863"),R(),Ct("href",a.document(),pn),R(3),et(" ",a.isEn()?"Edit this page":"\u7F16\u8F91\u6B64\u9875"," ")}},dependencies:[Lu,Nu,Ou,If,na,ta,Dn,Ur,xn,Wr,Yu,Zu],styles:["[_nghost-%COMP%] nz-descriptions[_ngcontent-%COMP%]{margin-top:16px;overflow-x:scroll}[_nghost-%COMP%] .ant-descriptions-item-label{padding-inline-end:16px;width:56px;word-break:keep-all}[_nghost-%COMP%] .ant-typography[_ngcontent-%COMP%]{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}[_nghost-%COMP%] a[_ngcontent-%COMP%] .ant-typography[_ngcontent-%COMP%]:hover{text-decoration:underline}"]})};function oa(i){let o=i.cloneNode(!0),r=o.querySelectorAll("[id]"),a=i.nodeName.toLowerCase();o.removeAttribute("id");for(let c=0;c<r.length;c++)r[c].removeAttribute("id");return a==="canvas"?Af(i,o):(a==="input"||a==="select"||a==="textarea")&&Pf(i,o),Rf("canvas",i,o,Af),Rf("input, textarea, select",i,o,Pf),o}function Rf(i,o,r,a){let c=o.querySelectorAll(i);if(c.length){let h=r.querySelectorAll(i);for(let m=0;m<c.length;m++)a(c[m],h[m])}}var IC=0;function Pf(i,o){o.type!=="file"&&(o.value=i.value),o.type==="radio"&&o.name&&(o.name=`mat-clone-${o.name}-${IC++}`)}function Af(i,o){let r=o.getContext("2d");if(r)try{r.drawImage(i,0,0)}catch{}}function da(i){let o=i.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height,x:o.x,y:o.y}}function sa(i,o,r){let{top:a,bottom:c,left:h,right:m}=i;return r>=a&&r<=c&&o>=h&&o<=m}function RC(i,o){let r=o.left<i.left,a=o.left+o.width>i.right,c=o.top<i.top,h=o.top+o.height>i.bottom;return r||a||c||h}function Mi(i,o,r){i.top+=o,i.bottom=i.top+i.height,i.left+=r,i.right=i.left+i.width}function Of(i,o,r,a){let{top:c,right:h,bottom:m,left:C,width:b,height:T}=i,k=b*o,ne=T*o;return a>c-ne&&a<m+ne&&r>C-k&&r<h+k}var jr=class{_document;positions=new Map;constructor(o){this._document=o}clear(){this.positions.clear()}cache(o){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),o.forEach(r=>{this.positions.set(r,{scrollPosition:{top:r.scrollTop,left:r.scrollLeft},clientRect:da(r)})})}handleScroll(o){let r=zi(o),a=this.positions.get(r);if(!a)return null;let c=a.scrollPosition,h,m;if(r===this._document){let T=this.getViewportScrollPosition();h=T.top,m=T.left}else h=r.scrollTop,m=r.scrollLeft;let C=c.top-h,b=c.left-m;return this.positions.forEach((T,k)=>{T.clientRect&&r!==k&&r.contains(k)&&Mi(T.clientRect,C,b)}),c.top=h,c.left=m,{top:C,left:b}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function Gf(i,o){let r=i.rootNodes;if(r.length===1&&r[0].nodeType===o.ELEMENT_NODE)return r[0];let a=o.createElement("div");return r.forEach(c=>a.appendChild(c)),a}function ha(i,o,r){for(let a in o)if(o.hasOwnProperty(a)){let c=o[a];c?i.setProperty(a,c,r?.has(a)?"important":""):i.removeProperty(a)}return i}function Qn(i,o){let r=o?"":"none";ha(i.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":r,"-ms-user-select":r,"-webkit-user-select":r,"-moz-user-select":r})}function Nf(i,o,r){ha(i.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},r)}function eo(i,o){return o&&o!="none"?i+" "+o:i}function Lf(i,o){i.style.width=`${o.width}px`,i.style.height=`${o.height}px`,i.style.transform=ki(o.left,o.top)}function ki(i,o){return`translate3d(${Math.round(i)}px, ${Math.round(o)}px, 0)`}function Mf(i){let o=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*o}function PC(i){let o=getComputedStyle(i),r=ia(o,"transition-property"),a=r.find(C=>C==="transform"||C==="all");if(!a)return 0;let c=r.indexOf(a),h=ia(o,"transition-duration"),m=ia(o,"transition-delay");return Mf(h[c])+Mf(m[c])}function ia(i,o){return i.getPropertyValue(o).split(",").map(a=>a.trim())}var AC=new Set(["position"]),aa=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(o,r,a,c,h,m,C,b,T,k){this._document=o,this._rootElement=r,this._direction=a,this._initialDomRect=c,this._previewTemplate=h,this._previewClass=m,this._pickupPositionOnPage=C,this._initialTransform=b,this._zIndex=T,this._renderer=k}attach(o){this._preview=this._createPreview(),o.appendChild(this._preview),kf(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(o){this._preview.style.transform=o}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(o){this._preview.classList.add(o)}getTransitionDuration(){return PC(this._preview)}addEventListener(o,r){return this._renderer.listen(this._preview,o,r)}_createPreview(){let o=this._previewTemplate,r=this._previewClass,a=o?o.template:null,c;if(a&&o){let h=o.matchSize?this._initialDomRect:null,m=o.viewContainer.createEmbeddedView(a,o.context);m.detectChanges(),c=Gf(m,this._document),this._previewEmbeddedView=m,o.matchSize?Lf(c,h):c.style.transform=ki(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else c=oa(this._rootElement),Lf(c,this._initialDomRect),this._initialTransform&&(c.style.transform=this._initialTransform);return ha(c.style,{"pointer-events":"none",margin:kf(c)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},AC),Qn(c,!1),c.classList.add("cdk-drag-preview"),c.setAttribute("popover","manual"),c.setAttribute("dir",this._direction),r&&(Array.isArray(r)?r.forEach(h=>c.classList.add(h)):c.classList.add(r)),c}};function kf(i){return"showPopover"in i}var OC={passive:!0},Ff={passive:!1},NC={passive:!1,capture:!0},LC=800,Bf="cdk-drag-placeholder",Hf=new Set(["position"]),la=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Xe(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new oe;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Wn.EMPTY;_pointerUpSubscription=Wn.EMPTY;_scrollSubscription=Wn.EMPTY;_resizeSubscription=Wn.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(o){o!==this._disabled&&(this._disabled=o,this._toggleNativeDragInteractions(),this._handles.forEach(r=>Qn(r,o)))}_disabled=!1;beforeStarted=new oe;started=new oe;released=new oe;ended=new oe;entered=new oe;exited=new oe;dropped=new oe;moved=this._moveEvents;data;constrainPosition;constructor(o,r,a,c,h,m,C){this._config=r,this._document=a,this._ngZone=c,this._viewportRuler=h,this._dragDropRegistry=m,this._renderer=C,this.withRootElement(o).withParent(r.parentDragRef||null),this._parentPositions=new jr(a),m.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(a=>Mt(a)),this._handles.forEach(a=>Qn(a,this.disabled)),this._toggleNativeDragInteractions();let r=new Set;return this._disabledHandles.forEach(a=>{this._handles.indexOf(a)>-1&&r.add(a)}),this._disabledHandles=r,this}withPreviewTemplate(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){let r=Mt(o);if(r!==this._rootElement){this._removeRootElementListeners();let a=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[a.listen(r,"mousedown",this._pointerDown,Ff),a.listen(r,"touchstart",this._pointerDown,OC),a.listen(r,"dragstart",this._nativeDragStart,Ff)]),this._initialTransform=void 0,this._rootElement=r}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?Mt(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&RC(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let o=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect(),a=0,c=0;r.left<o.left?a=o.left-r.left:r.right>o.right&&(a=o.right-r.right),r.top<o.top?c=o.top-r.top:r.bottom>o.bottom&&(c=o.bottom-r.bottom);let h=this._activeTransform.x,m=this._activeTransform.y,C=h+a,b=m+c;this._rootElement.style.transform=ki(C,b),this._activeTransform={x:C,y:b},this._passiveTransform={x:C,y:b}}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),Qn(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),Qn(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){let o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){let o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=o=>{if(this.beforeStarted.next(),this._handles.length){let r=this._getTargetHandle(o);r&&!this._disabledHandles.has(r)&&!this.disabled&&this._initializeDragSequence(r,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)};_pointerMove=o=>{let r=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging()){let c=Math.abs(r.x-this._pickupPositionOnPage.x),h=Math.abs(r.y-this._pickupPositionOnPage.y);if(c+h>=this._config.dragStartThreshold){let C=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),b=this._dropContainer;if(!C){this._endDragSequence(o);return}(!b||!b.isDragging()&&!b.isReceiving())&&(o.cancelable&&o.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(o)))}return}o.cancelable&&o.preventDefault();let a=this._getConstrainedPointerPosition(r);if(this._hasMoved=!0,this._lastKnownPointerPosition=r,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,r);else{let c=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=a.x-c.x+this._passiveTransform.x,h.y=a.y-c.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:o,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})};_pointerUp=o=>{this._endDragSequence(o)};_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:o}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let r=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(r),dropPoint:r,event:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(o){Ni(o)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let r=this._getShadowRoot(),a=this._dropContainer;if(r&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(r,"selectstart",MC,NC)}),a){let c=this._rootElement,h=c.parentNode,m=this._placeholder=this._createPlaceholderElement(),C=this._marker=this._marker||this._document.createComment("");h.insertBefore(C,c),this._initialTransform=c.style.transform||"",this._preview=new aa(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(h,r)),Nf(c,!1,Hf),this._document.body.appendChild(h.replaceChild(m,c)),this.started.next({source:this,event:o}),a.start(),this._initialContainer=a,this._initialIndex=a.getItemIndex(this)}else this.started.next({source:this,event:o}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(a?a.getScrollableParents():[])}_initializeDragSequence(o,r){this._parentDragRef&&r.stopPropagation();let a=this.isDragging(),c=Ni(r),h=!c&&r.button!==0,m=this._rootElement,C=zi(r),b=!c&&this._lastTouchEventTime&&this._lastTouchEventTime+LC>Date.now(),T=c?Bu(r):Fu(r);if(C&&C.draggable&&r.type==="mousedown"&&r.preventDefault(),a||h||b||T)return;if(this._handles.length){let V=m.style;this._rootElementTapHighlight=V.webkitTapHighlightColor||"",V.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(V=>this._updateOnScroll(V)),this._boundaryElement&&(this._boundaryRect=da(this._boundaryElement));let k=this._previewTemplate;this._pickupPositionInElement=k&&k.template&&!k.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,o,r);let ne=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(r);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:ne.x,y:ne.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,r)}_cleanupDragArtifacts(o){Nf(this._rootElement,!0,Hf),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let r=this._dropContainer,a=r.getItemIndex(this),c=this._getPointerPositionOnPage(o),h=this._getDragDistance(c),m=r._isOverContainer(c.x,c.y);this.ended.next({source:this,distance:h,dropPoint:c,event:o}),this.dropped.next({item:this,currentIndex:a,previousIndex:this._initialIndex,container:r,previousContainer:this._initialContainer,isPointerOverContainer:m,distance:h,dropPoint:c,event:o}),r.drop(this,a,this._initialIndex,this._initialContainer,m,h,c,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:r},{x:a,y:c}){let h=this._initialContainer._getSiblingContainerFromPosition(this,o,r);!h&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,r)&&(h=this._initialContainer),h&&h!==this._dropContainer&&this._ngZone.run(()=>{let m=this._dropContainer.getItemIndex(this),C=this._dropContainer.getItemAtIndex(m+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(h,this._dropContainer,C),this._dropContainer=h,this._dropContainer.enter(this,o,r,h===this._initialContainer&&h.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:h,currentIndex:h.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,c),this._dropContainer._sortItem(this,o,r,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(o,r):this._applyPreviewTransform(o-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let o=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);let r=this._preview.getTransitionDuration();return r===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(a=>{let c=C=>{(!C||this._preview&&zi(C)===this._preview.element&&C.propertyName==="transform")&&(m(),a(),clearTimeout(h))},h=setTimeout(c,r*1.5),m=this._preview.addEventListener("transitionend",c)}))}_createPlaceholderElement(){let o=this._placeholderTemplate,r=o?o.template:null,a;return r?(this._placeholderRef=o.viewContainer.createEmbeddedView(r,o.context),this._placeholderRef.detectChanges(),a=Gf(this._placeholderRef,this._document)):a=oa(this._rootElement),a.style.pointerEvents="none",a.classList.add(Bf),a}_getPointerPositionInElement(o,r,a){let c=r===this._rootElement?null:r,h=c?c.getBoundingClientRect():o,m=Ni(a)?a.targetTouches[0]:a,C=this._getViewportScrollPosition(),b=m.pageX-h.left-C.left,T=m.pageY-h.top-C.top;return{x:h.left-o.left+b,y:h.top-o.top+T}}_getPointerPositionOnPage(o){let r=this._getViewportScrollPosition(),a=Ni(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,c=a.pageX-r.left,h=a.pageY-r.top;if(this._ownerSVGElement){let m=this._ownerSVGElement.getScreenCTM();if(m){let C=this._ownerSVGElement.createSVGPoint();return C.x=c,C.y=h,C.matrixTransform(m.inverse())}}return{x:c,y:h}}_getConstrainedPointerPosition(o){let r=this._dropContainer?this._dropContainer.lockAxis:null,{x:a,y:c}=this.constrainPosition?this.constrainPosition(o,this,this._initialDomRect,this._pickupPositionInElement):o;if(this.lockAxis==="x"||r==="x"?c=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||r==="y")&&(a=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:h,y:m}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,C=this._boundaryRect,{width:b,height:T}=this._getPreviewRect(),k=C.top+m,ne=C.bottom-(T-m),V=C.left+h,kt=C.right-(b-h);a=Uf(a,V,kt),c=Uf(c,k,ne)}return{x:a,y:c}}_updatePointerDirectionDelta(o){let{x:r,y:a}=o,c=this._pointerDirectionDelta,h=this._pointerPositionAtLastDirectionChange,m=Math.abs(r-h.x),C=Math.abs(a-h.y);return m>this._config.pointerDirectionChangeThreshold&&(c.x=r>h.x?1:-1,h.x=r),C>this._config.pointerDirectionChangeThreshold&&(c.y=a>h.y?1:-1,h.y=a),c}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,Qn(this._rootElement,o))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(o=>o()),this._rootElementCleanups=void 0}_applyRootElementTransform(o,r){let a=1/this.scale,c=ki(o*a,r*a),h=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=h.transform&&h.transform!="none"?h.transform:""),h.transform=eo(c,this._initialTransform)}_applyPreviewTransform(o,r){let a=this._previewTemplate?.template?void 0:this._initialTransform,c=ki(o,r);this._preview.setTransform(eo(c,a))}_getDragDistance(o){let r=this._pickupPositionOnPage;return r?{x:o.x-r.x,y:o.y-r.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:r}=this._passiveTransform;if(o===0&&r===0||this.isDragging()||!this._boundaryElement)return;let a=this._rootElement.getBoundingClientRect(),c=this._boundaryElement.getBoundingClientRect();if(c.width===0&&c.height===0||a.width===0&&a.height===0)return;let h=c.left-a.left,m=a.right-c.right,C=c.top-a.top,b=a.bottom-c.bottom;c.width>a.width?(h>0&&(o+=h),m>0&&(o-=m)):o=0,c.height>a.height?(C>0&&(r+=C),b>0&&(r-=b)):r=0,(o!==this._passiveTransform.x||r!==this._passiveTransform.y)&&this.setFreeDragPosition({y:r,x:o})}_getDragStartDelay(o){let r=this.dragStartDelay;return typeof r=="number"?r:Ni(o)?r.touch:r?r.mouse:0}_updateOnScroll(o){let r=this._parentPositions.handleScroll(o);if(r){let a=zi(o);this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&Mi(this._boundaryRect,r.top,r.left),this._pickupPositionOnPage.x+=r.left,this._pickupPositionOnPage.y+=r.top,this._dropContainer||(this._activeTransform.x-=r.left,this._activeTransform.y-=r.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Br(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,r){let a=this._previewContainer||"global";if(a==="parent")return o;if(a==="global"){let c=this._document;return r||c.fullscreenElement||c.webkitFullscreenElement||c.mozFullScreenElement||c.msFullscreenElement||c.body}return Mt(a)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=o=>{if(this._handles.length){let r=this._getTargetHandle(o);r&&!this._disabledHandles.has(r)&&!this.disabled&&o.preventDefault()}else this.disabled||o.preventDefault()};_getTargetHandle(o){return this._handles.find(r=>o.target&&(o.target===r||r.contains(o.target)))}_conditionallyInsertAnchor(o,r,a){if(o===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(r===this._initialContainer&&r.hasAnchor){let c=this._anchor??=oa(this._placeholder);c.classList.remove(Bf),c.classList.add("cdk-drag-anchor"),c.style.transform="",a?a.before(c):Mt(r.element).appendChild(c)}}};function Uf(i,o,r){return Math.max(o,Math.min(r,i))}function Ni(i){return i.type[0]==="t"}function MC(i){i.preventDefault()}function qf(i,o,r){let a=Wf(o,i.length-1),c=Wf(r,i.length-1);if(a===c)return;let h=i[a],m=c<a?-1:1;for(let C=a;C!==c;C+=m)i[C]=i[C+m];i[c]=h}function Wf(i,o){return Math.max(0,Math.min(o,i))}var to=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(o){this._dragDropRegistry=o}_previousSwap={drag:null,delta:0,overlaps:!1};start(o){this.withItems(o)}sort(o,r,a,c){let h=this._itemPositions,m=this._getItemIndexFromPointerPosition(o,r,a,c);if(m===-1&&h.length>0)return null;let C=this.orientation==="horizontal",b=h.findIndex(P=>P.drag===o),T=h[m],k=h[b].clientRect,ne=T.clientRect,V=b>m?1:-1,kt=this._getItemOffsetPx(k,ne,V),z=this._getSiblingOffsetPx(b,h,V),S=h.slice();return qf(h,b,m),h.forEach((P,J)=>{if(S[J]===P)return;let j=P.drag===o,le=j?kt:z,Ee=j?o.getPlaceholderElement():P.drag.getRootElement();P.offset+=le;let xe=Math.round(P.offset*(1/P.drag.scale));C?(Ee.style.transform=eo(`translate3d(${xe}px, 0, 0)`,P.initialTransform),Mi(P.clientRect,0,le)):(Ee.style.transform=eo(`translate3d(0, ${xe}px, 0)`,P.initialTransform),Mi(P.clientRect,le,0))}),this._previousSwap.overlaps=sa(ne,r,a),this._previousSwap.drag=T.drag,this._previousSwap.delta=C?c.x:c.y,{previousIndex:b,currentIndex:m}}enter(o,r,a,c){let h=c==null||c<0?this._getItemIndexFromPointerPosition(o,r,a):c,m=this._activeDraggables,C=m.indexOf(o),b=o.getPlaceholderElement(),T=m[h];if(T===o&&(T=m[h+1]),!T&&(h==null||h===-1||h<m.length-1)&&this._shouldEnterAsFirstChild(r,a)&&(T=m[0]),C>-1&&m.splice(C,1),T&&!this._dragDropRegistry.isDragging(T)){let k=T.getRootElement();k.parentElement.insertBefore(b,k),m.splice(h,0,o)}else this._element.appendChild(b),m.push(o);b.style.transform="",this._cacheItemPositions()}withItems(o){this._activeDraggables=o.slice(),this._cacheItemPositions()}withSortPredicate(o){this._sortPredicate=o}reset(){this._activeDraggables?.forEach(o=>{let r=o.getRootElement();if(r){let a=this._itemPositions.find(c=>c.drag===o)?.initialTransform;r.style.transform=a||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(o){return this._getVisualItemPositions().findIndex(r=>r.drag===o)}getItemAtIndex(o){return this._getVisualItemPositions()[o]?.drag||null}updateOnScroll(o,r){this._itemPositions.forEach(({clientRect:a})=>{Mi(a,o,r)}),this._itemPositions.forEach(({drag:a})=>{this._dragDropRegistry.isDragging(a)&&a._sortFromLastPointerPosition()})}withElementContainer(o){this._element=o}_cacheItemPositions(){let o=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(r=>{let a=r.getVisibleElement();return{drag:r,offset:0,initialTransform:a.style.transform||"",clientRect:da(a)}}).sort((r,a)=>o?r.clientRect.left-a.clientRect.left:r.clientRect.top-a.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(o,r,a){let c=this.orientation==="horizontal",h=c?r.left-o.left:r.top-o.top;return a===-1&&(h+=c?r.width-o.width:r.height-o.height),h}_getSiblingOffsetPx(o,r,a){let c=this.orientation==="horizontal",h=r[o].clientRect,m=r[o+a*-1],C=h[c?"width":"height"]*a;if(m){let b=c?"left":"top",T=c?"right":"bottom";a===-1?C-=m.clientRect[b]-h[T]:C+=h[b]-m.clientRect[T]}return C}_shouldEnterAsFirstChild(o,r){if(!this._activeDraggables.length)return!1;let a=this._itemPositions,c=this.orientation==="horizontal";if(a[0].drag!==this._activeDraggables[0]){let m=a[a.length-1].clientRect;return c?o>=m.right:r>=m.bottom}else{let m=a[0].clientRect;return c?o<=m.left:r<=m.top}}_getItemIndexFromPointerPosition(o,r,a,c){let h=this.orientation==="horizontal",m=this._itemPositions.findIndex(({drag:C,clientRect:b})=>{if(C===o)return!1;if(c){let T=h?c.x:c.y;if(C===this._previousSwap.drag&&this._previousSwap.overlaps&&T===this._previousSwap.delta)return!1}return h?r>=Math.floor(b.left)&&r<Math.floor(b.right):a>=Math.floor(b.top)&&a<Math.floor(b.bottom)});return m===-1||!this._sortPredicate(m,o)?-1:m}},ca=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(o,r){this._document=o,this._dragDropRegistry=r}start(o){let r=this._element.childNodes;this._relatedNodes=[];for(let a=0;a<r.length;a++){let c=r[a];this._relatedNodes.push([c,c.nextSibling])}this.withItems(o)}sort(o,r,a,c){let h=this._getItemIndexFromPointerPosition(o,r,a),m=this._previousSwap;if(h===-1||this._activeItems[h]===o)return null;let C=this._activeItems[h];if(m.drag===C&&m.overlaps&&m.deltaX===c.x&&m.deltaY===c.y)return null;let b=this.getItemIndex(o),T=o.getPlaceholderElement(),k=C.getRootElement();h>b?k.after(T):k.before(T),qf(this._activeItems,b,h);let ne=this._getRootNode().elementFromPoint(r,a);return m.deltaX=c.x,m.deltaY=c.y,m.drag=C,m.overlaps=k===ne||k.contains(ne),{previousIndex:b,currentIndex:h}}enter(o,r,a,c){let h=this._activeItems.indexOf(o);h>-1&&this._activeItems.splice(h,1);let m=c==null||c<0?this._getItemIndexFromPointerPosition(o,r,a):c;m===-1&&(m=this._getClosestItemIndexToPointer(o,r,a));let C=this._activeItems[m];C&&!this._dragDropRegistry.isDragging(C)?(this._activeItems.splice(m,0,o),C.getRootElement().before(o.getPlaceholderElement())):(this._activeItems.push(o),this._element.appendChild(o.getPlaceholderElement()))}withItems(o){this._activeItems=o.slice()}withSortPredicate(o){this._sortPredicate=o}reset(){let o=this._element,r=this._previousSwap;for(let a=this._relatedNodes.length-1;a>-1;a--){let[c,h]=this._relatedNodes[a];c.parentNode===o&&c.nextSibling!==h&&(h===null?o.appendChild(c):h.parentNode===o&&o.insertBefore(c,h))}this._relatedNodes=[],this._activeItems=[],r.drag=null,r.deltaX=r.deltaY=0,r.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(o){return this._activeItems.indexOf(o)}getItemAtIndex(o){return this._activeItems[o]||null}updateOnScroll(){this._activeItems.forEach(o=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}withElementContainer(o){o!==this._element&&(this._element=o,this._rootNode=void 0)}_getItemIndexFromPointerPosition(o,r,a){let c=this._getRootNode().elementFromPoint(Math.floor(r),Math.floor(a)),h=c?this._activeItems.findIndex(m=>{let C=m.getRootElement();return c===C||C.contains(c)}):-1;return h===-1||!this._sortPredicate(h,o)?-1:h}_getRootNode(){return this._rootNode||(this._rootNode=Br(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(o,r,a){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let c=1/0,h=-1;for(let m=0;m<this._activeItems.length;m++){let C=this._activeItems[m];if(C!==o){let{x:b,y:T}=C.getRootElement().getBoundingClientRect(),k=Math.hypot(r-b,a-T);k<c&&(c=k,h=m)}}return h}},$f=.05,Vf=.05,tt=(function(i){return i[i.NONE=0]="NONE",i[i.UP=1]="UP",i[i.DOWN=2]="DOWN",i})(tt||{}),Oe=(function(i){return i[i.NONE=0]="NONE",i[i.LEFT=1]="LEFT",i[i.RIGHT=2]="RIGHT",i})(Oe||{}),ua=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new oe;entered=new oe;exited=new oe;dropped=new oe;sorted=new oe;receivingStarted=new oe;receivingStopped=new oe;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Wn.EMPTY;_verticalScrollDirection=tt.NONE;_horizontalScrollDirection=Oe.NONE;_scrollNode;_stopScrollTimers=new oe;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(o,r,a,c,h){this._dragDropRegistry=r,this._ngZone=c,this._viewportRuler=h;let m=this.element=Mt(o);this._document=a,this.withOrientation("vertical").withElementContainer(m),r.registerDropContainer(this),this._parentPositions=new jr(a)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,r,a,c){this._draggingStarted(),c==null&&this.sortingDisabled&&(c=this._draggables.indexOf(o)),this._sortStrategy.enter(o,r,a,c),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,r,a,c,h,m,C,b={}){this._reset(),this.dropped.next({item:o,currentIndex:r,previousIndex:a,container:this,previousContainer:c,isPointerOverContainer:h,distance:m,dropPoint:C,event:b})}withItems(o){let r=this._draggables;return this._draggables=o,o.forEach(a=>a._withDropContainer(this)),this.isDragging()&&(r.filter(c=>c.isDragging()).every(c=>o.indexOf(c)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(o){return this._direction=o,this._sortStrategy instanceof to&&(this._sortStrategy.direction=o),this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){if(o==="mixed")this._sortStrategy=new ca(this._document,this._dragDropRegistry);else{let r=new to(this._dragDropRegistry);r.direction=this._direction,r.orientation=o,this._sortStrategy=r}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((r,a)=>this.sortPredicate(r,a,this)),this}withScrollableParents(o){let r=this._container;return this._scrollableElements=o.indexOf(r)===-1?[r,...o]:o.slice(),this}withElementContainer(o){if(o===this._container)return this;let r=Mt(this.element),a=this._scrollableElements.indexOf(this._container),c=this._scrollableElements.indexOf(o);return a>-1&&this._scrollableElements.splice(a,1),c>-1&&this._scrollableElements.splice(c,1),this._sortStrategy&&this._sortStrategy.withElementContainer(o),this._cachedShadowRoot=null,this._scrollableElements.unshift(o),this._container=o,this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?this._sortStrategy.getItemIndex(o):this._draggables.indexOf(o)}getItemAtIndex(o){return this._isDragging?this._sortStrategy.getItemAtIndex(o):this._draggables[o]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,r,a,c){if(this.sortingDisabled||!this._domRect||!Of(this._domRect,$f,r,a))return;let h=this._sortStrategy.sort(o,r,a,c);h&&this.sorted.next({previousIndex:h.previousIndex,currentIndex:h.currentIndex,container:this,item:o})}_startScrollingIfNecessary(o,r){if(this.autoScrollDisabled)return;let a,c=tt.NONE,h=Oe.NONE;if(this._parentPositions.positions.forEach((m,C)=>{C===this._document||!m.clientRect||a||Of(m.clientRect,$f,o,r)&&([c,h]=kC(C,m.clientRect,this._direction,o,r),(c||h)&&(a=C))}),!c&&!h){let{width:m,height:C}=this._viewportRuler.getViewportSize(),b={width:m,height:C,top:0,right:m,bottom:C,left:0};c=Kf(b,r),h=Zf(b,o),a=window}a&&(c!==this._verticalScrollDirection||h!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=c,this._horizontalScrollDirection=h,this._scrollNode=a,(c||h)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let o=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let o=this._container.style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(r=>r._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),eu(0,Xc).pipe(Gn(this._stopScrollTimers)).subscribe(()=>{let o=this._scrollNode,r=this.autoScrollStep;this._verticalScrollDirection===tt.UP?o.scrollBy(0,-r):this._verticalScrollDirection===tt.DOWN&&o.scrollBy(0,r),this._horizontalScrollDirection===Oe.LEFT?o.scrollBy(-r,0):this._horizontalScrollDirection===Oe.RIGHT&&o.scrollBy(r,0)})};_isOverContainer(o,r){return this._domRect!=null&&sa(this._domRect,o,r)}_getSiblingContainerFromPosition(o,r,a){return this._siblings.find(c=>c._canReceive(o,r,a))}_canReceive(o,r,a){if(!this._domRect||!sa(this._domRect,r,a)||!this.enterPredicate(o,this))return!1;let c=this._getShadowRoot().elementFromPoint(r,a);return c?c===this._container||this._container.contains(c):!1}_startReceiving(o,r){let a=this._activeSiblings;!a.has(o)&&r.every(c=>this.enterPredicate(c,this)||this._draggables.indexOf(c)>-1)&&(a.add(o),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:o,receiver:this,items:r}))}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:o,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){let r=this._parentPositions.handleScroll(o);r&&this._sortStrategy.updateOnScroll(r.top,r.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let o=Br(this._container);this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let o=this._sortStrategy.getActiveItemsSnapshot().filter(r=>r.isDragging());this._siblings.forEach(r=>r._startReceiving(this,o))}};function Kf(i,o){let{top:r,bottom:a,height:c}=i,h=c*Vf;return o>=r-h&&o<=r+h?tt.UP:o>=a-h&&o<=a+h?tt.DOWN:tt.NONE}function Zf(i,o){let{left:r,right:a,width:c}=i,h=c*Vf;return o>=r-h&&o<=r+h?Oe.LEFT:o>=a-h&&o<=a+h?Oe.RIGHT:Oe.NONE}function kC(i,o,r,a,c){let h=Kf(o,c),m=Zf(o,a),C=tt.NONE,b=Oe.NONE;if(h){let T=i.scrollTop;h===tt.UP?T>0&&(C=tt.UP):i.scrollHeight-T>i.clientHeight&&(C=tt.DOWN)}if(m){let T=i.scrollLeft;r==="rtl"?m===Oe.RIGHT?T<0&&(b=Oe.RIGHT):i.scrollWidth+T>i.clientWidth&&(b=Oe.LEFT):m===Oe.LEFT?T>0&&(b=Oe.LEFT):i.scrollWidth-T>i.clientWidth&&(b=Oe.RIGHT)}return[C,b]}var Li={capture:!0},ra={passive:!1,capture:!0},FC=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275cmp=Pe({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(a,c){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
`],encapsulation:2,changeDetection:0})}return i})(),pa=(()=>{class i{_ngZone=O(Nr);_document=O(xi);_styleLoader=O(Hu);_renderer=O(Es).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new oe;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Xe([]);_globalListeners;_draggingPredicate=r=>r.isDragging();_domNodesToDirectives=null;pointerMove=new oe;pointerUp=new oe;constructor(){}registerDropContainer(r){this._dropInstances.has(r)||this._dropInstances.add(r)}registerDragItem(r){this._dragInstances.add(r),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,ra)})}removeDropContainer(r){this._dropInstances.delete(r)}removeDragItem(r){this._dragInstances.delete(r),this.stopDragging(r),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(r,a){if(!(this._activeDragInstances().indexOf(r)>-1)&&(this._styleLoader.load(FC),this._activeDragInstances.update(c=>[...c,r]),this._activeDragInstances().length===1)){let c=a.type.startsWith("touch"),h=C=>this.pointerUp.next(C),m=[["scroll",C=>this._scroll.next(C),Li],["selectstart",this._preventDefaultWhileDragging,ra]];c?m.push(["touchend",h,Li],["touchcancel",h,Li]):m.push(["mouseup",h,Li]),c||m.push(["mousemove",C=>this.pointerMove.next(C),ra]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=m.map(([C,b,T])=>this._renderer.listen(this._document,C,b,T))})}}stopDragging(r){this._activeDragInstances.update(a=>{let c=a.indexOf(r);return c>-1?(a.splice(c,1),[...a]):a}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(r){return this._activeDragInstances().indexOf(r)>-1}scrolled(r){let a=[this._scroll];return r&&r!==this._document&&a.push(new Ss(c=>this._ngZone.runOutsideAngular(()=>{let h=this._renderer.listen(r,"scroll",m=>{this._activeDragInstances().length&&c.next(m)},Li);return()=>{h()}}))),$n(...a)}registerDirectiveNode(r,a){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(r,a)}removeDirectiveNode(r){this._domNodesToDirectives?.delete(r)}getDragDirectiveForNode(r){return this._domNodesToDirectives?.get(r)||null}ngOnDestroy(){this._dragInstances.forEach(r=>this.removeDragItem(r)),this._dropInstances.forEach(r=>this.removeDropContainer(r)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=r=>{this._activeDragInstances().length>0&&r.preventDefault()};_persistentTouchmoveListener=r=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))};_clearGlobalListeners(){this._globalListeners?.forEach(r=>r()),this._globalListeners=void 0}static \u0275fac=function(a){return new(a||i)};static \u0275prov=wi({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),BC={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Yf=(()=>{class i{_document=O(xi);_ngZone=O(Nr);_viewportRuler=O(Uu);_dragDropRegistry=O(pa);_renderer=O(Es).createRenderer(null,null);constructor(){}createDrag(r,a=BC){return new la(r,a,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(r){return new ua(r,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(a){return new(a||i)};static \u0275prov=wi({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),fa=new Di("CDK_DRAG_PARENT");var Qf=new Di("CdkDragHandle"),dD=(()=>{class i{element=O(Si);_parentDrag=O(fa,{optional:!0,skipSelf:!0});_dragDropRegistry=O(pa);_stateChanges=new oe;get disabled(){return this._disabled}set disabled(r){this._disabled=r,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let r=this.element.nativeElement.parentElement;for(;r;){let a=this._dragDropRegistry.getDragDirectiveForNode(r);if(a){this._parentDrag=a,a._addHandle(this);break}r=r.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Vn({type:i,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",ht]},features:[Os([{provide:Qf,useExisting:i}])]})}return i})(),HC=new Di("CDK_DRAG_CONFIG"),UC=new Di("CdkDropList"),hD=(()=>{class i{element=O(Si);dropContainer=O(UC,{optional:!0,skipSelf:!0});_ngZone=O(Nr);_viewContainerRef=O(lu);_dir=O(Fr,{optional:!0});_changeDetectorRef=O(Zn);_selfHandle=O(Qf,{optional:!0,self:!0});_parentDrag=O(fa,{optional:!0,skipSelf:!0});_dragDropRegistry=O(pa);_destroyed=new oe;_handles=new Jc([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(r){this._disabled=r,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new lt;released=new lt;ended=new lt;entered=new lt;exited=new lt;dropped=new lt;moved=new Ss(r=>{let a=this._dragRef.moved.pipe(jc(c=>({source:this,pointerPosition:c.pointerPosition,event:c.event,delta:c.delta,distance:c.distance}))).subscribe(r);return()=>{a.unsubscribe()}});_injector=O(ou);constructor(){let r=this.dropContainer,a=O(HC,{optional:!0}),c=O(Yf);this._dragRef=c.createDrag(this.element,{dragStartThreshold:a&&a.dragStartThreshold!=null?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&a.pointerDirectionChangeThreshold!=null?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),a&&this._assignDefaults(a),r&&(r.addItem(this),r._dropListRef.beforeStarted.pipe(Gn(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(r){this._dragRef.setFreeDragPosition(r)}ngAfterViewInit(){au(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(r){let a=r.rootElementSelector,c=r.freeDragPosition;a&&!a.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,c&&!c.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(r){let a=this._handles.getValue();a.push(r),this._handles.next(a)}_removeHandle(r){let a=this._handles.getValue(),c=a.indexOf(r);c>-1&&(a.splice(c,1),this._handles.next(a))}_setPreviewTemplate(r){this._previewTemplate=r}_resetPreviewTemplate(r){r===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(r){this._placeholderTemplate=r}_resetPlaceholderTemplate(r){r===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let r=this.element.nativeElement,a=r;this.rootElementSelector&&(a=r.closest!==void 0?r.closest(this.rootElementSelector):r.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(a||r)}_getBoundaryElement(){let r=this.boundaryElement;return r?typeof r=="string"?this.element.nativeElement.closest(r):Mt(r):null}_syncInputs(r){r.beforeStarted.subscribe(()=>{if(!r.isDragging()){let a=this._dir,c=this.dragStartDelay,h=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,m=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;r.disabled=this.disabled,r.lockAxis=this.lockAxis,r.scale=this.scale,r.dragStartDelay=typeof c=="object"&&c?c:xu(c),r.constrainPosition=this.constrainPosition,r.previewClass=this.previewClass,r.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(h).withPreviewTemplate(m).withPreviewContainer(this.previewContainer||"global"),a&&r.withDirection(a.value)}}),r.beforeStarted.pipe(nu(1)).subscribe(()=>{if(this._parentDrag){r.withParent(this._parentDrag._dragRef);return}let a=this.element.nativeElement.parentElement;for(;a;){let c=this._dragDropRegistry.getDragDirectiveForNode(a);if(c){r.withParent(c._dragRef);break}a=a.parentElement}})}_handleEvents(r){r.started.subscribe(a=>{this.started.emit({source:this,event:a.event}),this._changeDetectorRef.markForCheck()}),r.released.subscribe(a=>{this.released.emit({source:this,event:a.event})}),r.ended.subscribe(a=>{this.ended.emit({source:this,distance:a.distance,dropPoint:a.dropPoint,event:a.event}),this._changeDetectorRef.markForCheck()}),r.entered.subscribe(a=>{this.entered.emit({container:a.container.data,item:this,currentIndex:a.currentIndex})}),r.exited.subscribe(a=>{this.exited.emit({container:a.container.data,item:this})}),r.dropped.subscribe(a=>{this.dropped.emit({previousIndex:a.previousIndex,currentIndex:a.currentIndex,previousContainer:a.previousContainer.data,container:a.container.data,isPointerOverContainer:a.isPointerOverContainer,item:this,distance:a.distance,dropPoint:a.dropPoint,event:a.event})})}_assignDefaults(r){let{lockAxis:a,dragStartDelay:c,constrainPosition:h,previewClass:m,boundaryElement:C,draggingDisabled:b,rootElementSelector:T,previewContainer:k}=r;this.disabled=b??!1,this.dragStartDelay=c||0,this.lockAxis=a||null,h&&(this.constrainPosition=h),m&&(this.previewClass=m),C&&(this.boundaryElement=C),T&&(this.rootElementSelector=T),k&&(this.previewContainer=k)}_setupHandlesListener(){this._handles.pipe(qn(r=>{let a=r.map(c=>c.element);this._selfHandle&&this.rootElementSelector&&a.push(this.element),this._dragRef.withHandles(a)}),Ar(r=>$n(...r.map(a=>a._stateChanges.pipe(Pr(a))))),Gn(this._destroyed)).subscribe(r=>{let a=this._dragRef,c=r.element.nativeElement;r.disabled?a.disableHandle(c):a.enableHandle(c)})}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Vn({type:i,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,c){a&2&&Ae("cdk-drag-disabled",c.disabled)("cdk-drag-dragging",c._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",ht],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Lt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Os([{provide:fa,useExisting:i}]),hn]})}return i})();var ga=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=Ot({type:i});static \u0275inj=At({providers:[Yf],imports:[Wu]})}return i})();var Jf=class i{static \u0275fac=function(r){return new(r||i)};static \u0275mod=Ot({type:i});static \u0275inj=At({imports:[Ms,Us,ks,Ws,Xr,Jr,Oi,xn,ea,Ri,Pi,Dn,ga,Ms,Us,Ws,ks,ea,Ri,Pi,xn,Dn,$u,ga]})};export{wf as a,Oi as b,Yr as c,Qr as d,Jr as e,dD as f,hD as g,zf as h,hw as i,ta as j,na as k,If as l,Xr as m,Jf as n};