@nocobase/app 1.7.0-beta.8 → 1.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/501.72b99d17.async.js +1 -0
- package/dist/client/5977.08716e4e.async.js +58 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_ant-design.47a729f3.async.js +141 -0
- package/dist/client/npm._at_budibase.b1200847.async.js +36 -0
- package/dist/client/npm._at_dnd-kit.ebb2cc42.async.js +5 -0
- package/dist/client/npm._at_formily.f71b1c62.async.js +96 -0
- package/dist/client/npm._at_rc-component.5f4cc5e2.async.js +8 -0
- package/dist/client/{npm.ahooks.4b44f0c8.async.js → npm.ahooks.c5b165dc.async.js} +1 -1
- package/dist/client/npm.antd.1b1bd213.async.js +464 -0
- package/dist/client/npm.dayjs.45ed1676.async.js +1 -0
- package/dist/client/{npm.dompurify.d5071c22.async.js → npm.dompurify.2ca7a7c6.async.js} +1 -1
- package/dist/client/{npm.highlight.js.83fe0142.async.js → npm.highlight.js.f727dfe3.async.js} +1 -1
- package/dist/client/{npm.lodash.0ff318b3.async.js → npm.lodash.5dcc1c5e.async.js} +2 -2
- package/dist/client/{npm.mermaid.721cd79c.async.js → npm.mermaid.b398414f.async.js} +114 -114
- package/dist/client/npm.rc-cascader.cf6ec555.async.js +4 -0
- package/dist/client/npm.rc-image.d550fa79.async.js +1 -0
- package/dist/client/npm.rc-menu.da4ef0ce.async.js +1 -0
- package/dist/client/npm.rc-picker.89eafb74.async.js +22 -0
- package/dist/client/npm.rc-select.44fb85b4.async.js +3 -0
- package/dist/client/npm.rc-slider.d2d511ab.async.js +1 -0
- package/dist/client/npm.rc-table.c5aa8a0d.async.js +22 -0
- package/dist/client/npm.rc-tree-select.5597dcbf.async.js +5 -0
- package/dist/client/npm.rc-tree.49888c60.async.js +1 -0
- package/dist/client/npm.sanitize-html.506a0a55.async.js +34 -0
- package/dist/client/npm.uuid.15e7bb90.async.js +1 -0
- package/dist/client/p__index.e8f58a9f.async.js +1665 -0
- package/dist/client/umi.a7d2d1d2.js +63 -0
- package/package.json +6 -6
- package/dist/client/4750.667c5051.async.js +0 -69
- package/dist/client/501.e8db2401.async.js +0 -1
- package/dist/client/npm._at_ant-design.5ba41bf5.async.js +0 -139
- package/dist/client/npm._at_budibase.4c85e362.async.js +0 -36
- package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +0 -9
- package/dist/client/npm._at_formily.07fa921d.async.js +0 -96
- package/dist/client/npm._at_rc-component.43f95f42.async.js +0 -5
- package/dist/client/npm.antd.483a9a61.async.js +0 -440
- package/dist/client/npm.dayjs.0a5fd152.async.js +0 -1
- package/dist/client/npm.rc-cascader.04b47add.async.js +0 -1
- package/dist/client/npm.rc-menu.adf5ade6.async.js +0 -1
- package/dist/client/npm.rc-picker.9e629062.async.js +0 -1
- package/dist/client/npm.rc-select.7c36e54e.async.js +0 -3
- package/dist/client/npm.rc-table.a153e021.async.js +0 -1
- package/dist/client/npm.rc-tree.f61b7d87.async.js +0 -1
- package/dist/client/npm.sanitize-html.4386b2d9.async.js +0 -34
- package/dist/client/p__index.664cb0f3.async.js +0 -1586
- package/dist/client/umi.31a3c863.js +0 -60
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5420],{86128:function(Ge,ke,s){s.d(ke,{Z:function(){return Y}});var pe=s(87462),L=s(4942),q=s(1413),Le=s(97685),Ae=s(91),O=s(67294),Z=s(93967),re=s.n(Z),fe=s(64217),u=s(27822),ee=function(t){for(var f=t.prefixCls,h=t.level,y=t.isStart,C=t.isEnd,P="".concat(f,"-indent-unit"),I=[],m=0;m<h;m+=1)I.push(O.createElement("span",{key:m,className:re()(P,(0,L.Z)((0,L.Z)({},"".concat(P,"-start"),y[m]),"".concat(P,"-end"),C[m]))}));return O.createElement("span",{"aria-hidden":"true",className:"".concat(f,"-indent")},I)},z=O.memo(ee),G=s(35381),J=s(1089),ve=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],E="open",ce="close",he="---",te=function(t){var f,h,y,C=t.eventKey,P=t.className,I=t.style,m=t.dragOver,Q=t.dragOverGapTop,de=t.dragOverGapBottom,_=t.isLeaf,X=t.isStart,ne=t.isEnd,U=t.expanded,ie=t.selected,ae=t.checked,oe=t.halfChecked,ue=t.loading,B=t.domRef,De=t.active,le=t.data,Me=t.onMouseMove,Se=t.selectable,Fe=(0,Ae.Z)(t,ve),o=O.useContext(u.k),T=O.useContext(u.y),Re=O.useRef(null),be=O.useState(!1),Oe=(0,Le.Z)(be,2),Ze=Oe[0],Te=Oe[1],Ee=!!(o.disabled||t.disabled||(f=T.nodeDisabled)!==null&&f!==void 0&&f.call(T,le)),i=O.useMemo(function(){return!o.checkable||t.checkable===!1?!1:o.checkable},[o.checkable,t.checkable]),H=function(K){Ee||o.onNodeSelect(K,(0,J.F)(t))},w=function(K){Ee||!i||t.disableCheckbox||o.onNodeCheck(K,(0,J.F)(t),!ae)},e=O.useMemo(function(){return typeof Se=="boolean"?Se:o.selectable},[Se,o.selectable]),v=function(K){o.onNodeClick(K,(0,J.F)(t)),e?H(K):w(K)},x=function(K){o.onNodeDoubleClick(K,(0,J.F)(t))},$=function(K){o.onNodeMouseEnter(K,(0,J.F)(t))},n=function(K){o.onNodeMouseLeave(K,(0,J.F)(t))},d=function(K){o.onNodeContextMenu(K,(0,J.F)(t))},a=O.useMemo(function(){return!!(o.draggable&&(!o.draggable.nodeDraggable||o.draggable.nodeDraggable(le)))},[o.draggable,le]),l=function(K){K.stopPropagation(),Te(!0),o.onNodeDragStart(K,t);try{K.dataTransfer.setData("text/plain","")}catch{}},g=function(K){K.preventDefault(),K.stopPropagation(),o.onNodeDragEnter(K,t)},k=function(K){K.preventDefault(),K.stopPropagation(),o.onNodeDragOver(K,t)},N=function(K){K.stopPropagation(),o.onNodeDragLeave(K,t)},D=function(K){K.stopPropagation(),Te(!1),o.onNodeDragEnd(K,t)},R=function(K){K.preventDefault(),K.stopPropagation(),Te(!1),o.onNodeDrop(K,t)},c=function(K){ue||o.onNodeExpand(K,(0,J.F)(t))},p=O.useMemo(function(){var W=(0,G.Z)(o.keyEntities,C)||{},K=W.children;return!!(K||[]).length},[o.keyEntities,C]),M=O.useMemo(function(){return _===!1?!1:_||!o.loadData&&!p||o.loadData&&t.loaded&&!p},[_,o.loadData,p,t.loaded]);O.useEffect(function(){ue||typeof o.loadData=="function"&&U&&!M&&!t.loaded&&o.onNodeLoad((0,J.F)(t))},[ue,o.loadData,o.onNodeLoad,U,M,t]);var S=O.useMemo(function(){var W;return(W=o.draggable)!==null&&W!==void 0&&W.icon?O.createElement("span",{className:"".concat(o.prefixCls,"-draggable-icon")},o.draggable.icon):null},[o.draggable]),b=function(K){var Ne=t.switcherIcon||o.switcherIcon;return typeof Ne=="function"?Ne((0,q.Z)((0,q.Z)({},t),{},{isLeaf:K})):Ne},j=function(){if(M){var K=b(!0);return K!==!1?O.createElement("span",{className:re()("".concat(o.prefixCls,"-switcher"),"".concat(o.prefixCls,"-switcher-noop"))},K):null}var Ne=b(!1);return Ne!==!1?O.createElement("span",{onClick:c,className:re()("".concat(o.prefixCls,"-switcher"),"".concat(o.prefixCls,"-switcher_").concat(U?E:ce))},Ne):null},F=O.useMemo(function(){if(!i)return null;var W=typeof i!="boolean"?i:null;return O.createElement("span",{className:re()("".concat(o.prefixCls,"-checkbox"),(0,L.Z)((0,L.Z)((0,L.Z)({},"".concat(o.prefixCls,"-checkbox-checked"),ae),"".concat(o.prefixCls,"-checkbox-indeterminate"),!ae&&oe),"".concat(o.prefixCls,"-checkbox-disabled"),Ee||t.disableCheckbox)),onClick:w,role:"checkbox","aria-checked":oe?"mixed":ae,"aria-disabled":Ee||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},W)},[i,ae,oe,Ee,t.disableCheckbox,t.title]),A=O.useMemo(function(){return M?null:U?E:ce},[M,U]),V=O.useMemo(function(){return O.createElement("span",{className:re()("".concat(o.prefixCls,"-iconEle"),"".concat(o.prefixCls,"-icon__").concat(A||"docu"),(0,L.Z)({},"".concat(o.prefixCls,"-icon_loading"),ue))})},[o.prefixCls,A,ue]),se=O.useMemo(function(){var W=!!o.draggable,K=!t.disabled&&W&&o.dragOverNodeKey===C;return K?o.dropIndicatorRender({dropPosition:o.dropPosition,dropLevelOffset:o.dropLevelOffset,indent:o.indent,prefixCls:o.prefixCls,direction:o.direction}):null},[o.dropPosition,o.dropLevelOffset,o.indent,o.prefixCls,o.direction,o.draggable,o.dragOverNodeKey,o.dropIndicatorRender]),Ke=O.useMemo(function(){var W=t.title,K=W===void 0?he:W,Ne="".concat(o.prefixCls,"-node-content-wrapper"),Be;if(o.showIcon){var we=t.icon||o.icon;Be=we?O.createElement("span",{className:re()("".concat(o.prefixCls,"-iconEle"),"".concat(o.prefixCls,"-icon__customize"))},typeof we=="function"?we(t):we):V}else o.loadData&&ue&&(Be=V);var $e;return typeof K=="function"?$e=K(le):o.titleRender?$e=o.titleRender(le):$e=K,O.createElement("span",{ref:Re,title:typeof K=="string"?K:"",className:re()(Ne,"".concat(Ne,"-").concat(A||"normal"),(0,L.Z)({},"".concat(o.prefixCls,"-node-selected"),!Ee&&(ie||Ze))),onMouseEnter:$,onMouseLeave:n,onContextMenu:d,onClick:v,onDoubleClick:x},Be,O.createElement("span",{className:"".concat(o.prefixCls,"-title")},$e),se)},[o.prefixCls,o.showIcon,t,o.icon,V,o.titleRender,le,A,$,n,d,v,x]),ge=(0,fe.Z)(Fe,{aria:!0,data:!0}),me=(0,G.Z)(o.keyEntities,C)||{},xe=me.level,Ce=ne[ne.length-1],Pe=!Ee&&a,We=o.draggingNodeKey===C,Ie=Se!==void 0?{"aria-selected":!!Se}:void 0;return O.createElement("div",(0,pe.Z)({ref:B,role:"treeitem","aria-expanded":_?void 0:U,className:re()(P,"".concat(o.prefixCls,"-treenode"),(y={},(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)(y,"".concat(o.prefixCls,"-treenode-disabled"),Ee),"".concat(o.prefixCls,"-treenode-switcher-").concat(U?"open":"close"),!_),"".concat(o.prefixCls,"-treenode-checkbox-checked"),ae),"".concat(o.prefixCls,"-treenode-checkbox-indeterminate"),oe),"".concat(o.prefixCls,"-treenode-selected"),ie),"".concat(o.prefixCls,"-treenode-loading"),ue),"".concat(o.prefixCls,"-treenode-active"),De),"".concat(o.prefixCls,"-treenode-leaf-last"),Ce),"".concat(o.prefixCls,"-treenode-draggable"),a),"dragging",We),(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)(y,"drop-target",o.dropTargetKey===C),"drop-container",o.dropContainerKey===C),"drag-over",!Ee&&m),"drag-over-gap-top",!Ee&&Q),"drag-over-gap-bottom",!Ee&&de),"filter-node",(h=o.filterTreeNode)===null||h===void 0?void 0:h.call(o,(0,J.F)(t))),"".concat(o.prefixCls,"-treenode-leaf"),M))),style:I,draggable:Pe,onDragStart:Pe?l:void 0,onDragEnter:a?g:void 0,onDragOver:a?k:void 0,onDragLeave:a?N:void 0,onDrop:a?R:void 0,onDragEnd:a?D:void 0,onMouseMove:Me},Ie,ge),O.createElement(z,{prefixCls:o.prefixCls,level:xe,isStart:X,isEnd:ne}),S,j(),F,Ke)};te.isTreeNode=1;var Y=te},27822:function(Ge,ke,s){s.d(ke,{k:function(){return L},y:function(){return q}});var pe=s(67294),L=pe.createContext(null),q=pe.createContext({})},99814:function(Ge,ke,s){s.d(ke,{OF:function(){return C.Z},y6:function(){return ce.y},ZP:function(){return Ee}});var pe=s(87462),L=s(71002),q=s(1413),Le=s(74902),Ae=s(15671),O=s(43144),Z=s(97326),re=s(32531),fe=s(29388),u=s(4942),ee=s(93967),z=s.n(ee),G=s(15105),J=s(64217),ve=s(80334),E=s(67294),ce=s(27822),he=function(H){var w=H.dropPosition,e=H.dropLevelOffset,v=H.indent,x={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(w){case-1:x.top=0,x.left=-e*v;break;case 1:x.bottom=0,x.left=-e*v;break;case 0:x.bottom=0,x.left=v;break}return E.createElement("div",{style:x})},te=he,Y=s(36459),r=s(97685),t=s(91),f=s(8410),h=s(85344),y=s(62874),C=s(86128);function P(i,H){var w=E.useState(!1),e=(0,r.Z)(w,2),v=e[0],x=e[1];(0,f.Z)(function(){if(v)return i(),function(){H()}},[v]),(0,f.Z)(function(){return x(!0),function(){x(!1)}},[])}var I=P,m=s(1089),Q=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],de=E.forwardRef(function(i,H){var w=i.className,e=i.style,v=i.motion,x=i.motionNodes,$=i.motionType,n=i.onMotionStart,d=i.onMotionEnd,a=i.active,l=i.treeNodeRequiredProps,g=(0,t.Z)(i,Q),k=E.useState(!0),N=(0,r.Z)(k,2),D=N[0],R=N[1],c=E.useContext(ce.k),p=c.prefixCls,M=x&&$!=="hide";(0,f.Z)(function(){x&&M!==D&&R(M)},[x]);var S=function(){x&&n()},b=E.useRef(!1),j=function(){x&&!b.current&&(b.current=!0,d())};I(S,j);var F=function(V){M===V&&j()};return x?E.createElement(y.ZP,(0,pe.Z)({ref:H,visible:D},v,{motionAppear:$==="show",onVisibleChanged:F}),function(A,V){var se=A.className,Ke=A.style;return E.createElement("div",{ref:V,className:z()("".concat(p,"-treenode-motion"),se),style:Ke},x.map(function(ge){var me=Object.assign({},((0,Y.Z)(ge.data),ge.data)),xe=ge.title,Ce=ge.key,Pe=ge.isStart,We=ge.isEnd;delete me.children;var Ie=(0,m.H8)(Ce,l);return E.createElement(C.Z,(0,pe.Z)({},me,Ie,{title:xe,active:a,data:ge.data,key:Ce,isStart:Pe,isEnd:We}))}))}):E.createElement(C.Z,(0,pe.Z)({domRef:H,className:w,style:e},g,{active:a}))}),_=de;function X(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],w=i.length,e=H.length;if(Math.abs(w-e)!==1)return{add:!1,key:null};function v(x,$){var n=new Map;x.forEach(function(a){n.set(a,!0)});var d=$.filter(function(a){return!n.has(a)});return d.length===1?d[0]:null}return w<e?{add:!0,key:v(i,H)}:{add:!1,key:v(H,i)}}function ne(i,H,w){var e=i.findIndex(function(n){return n.key===w}),v=i[e+1],x=H.findIndex(function(n){return n.key===w});if(v){var $=H.findIndex(function(n){return n.key===v.key});return H.slice(x+1,$)}return H.slice(x+1)}var U=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ie={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ae=function(){},oe="RC_TREE_MOTION_".concat(Math.random()),ue={key:oe},B={key:oe,level:0,index:0,pos:"0",node:ue,nodes:[ue]},De={parent:null,children:[],pos:B.pos,data:ue,title:null,key:oe,isStart:[],isEnd:[]};function le(i,H,w,e){return H===!1||!w?i:i.slice(0,Math.ceil(w/e)+1)}function Me(i){var H=i.key,w=i.pos;return(0,m.km)(H,w)}function Se(i){for(var H=String(i.data.key),w=i;w.parent;)w=w.parent,H="".concat(w.data.key," > ").concat(H);return H}var Fe=E.forwardRef(function(i,H){var w=i.prefixCls,e=i.data,v=i.selectable,x=i.checkable,$=i.expandedKeys,n=i.selectedKeys,d=i.checkedKeys,a=i.loadedKeys,l=i.loadingKeys,g=i.halfCheckedKeys,k=i.keyEntities,N=i.disabled,D=i.dragging,R=i.dragOverNodeKey,c=i.dropPosition,p=i.motion,M=i.height,S=i.itemHeight,b=i.virtual,j=i.scrollWidth,F=i.focusable,A=i.activeItem,V=i.focused,se=i.tabIndex,Ke=i.onKeyDown,ge=i.onFocus,me=i.onBlur,xe=i.onActiveChange,Ce=i.onListChangeStart,Pe=i.onListChangeEnd,We=(0,t.Z)(i,U),Ie=E.useRef(null),W=E.useRef(null);E.useImperativeHandle(H,function(){return{scrollTo:function(Ue){Ie.current.scrollTo(Ue)},getIndentWidth:function(){return W.current.offsetWidth}}});var K=E.useState($),Ne=(0,r.Z)(K,2),Be=Ne[0],we=Ne[1],$e=E.useState(e),Qe=(0,r.Z)($e,2),He=Qe[0],_e=Qe[1],at=E.useState(e),qe=(0,r.Z)(at,2),rt=qe[0],Ve=qe[1],ze=E.useState([]),et=(0,r.Z)(ze,2),ft=et[0],ot=et[1],vt=E.useState(null),st=(0,r.Z)(vt,2),gt=st[0],dt=st[1],ct=E.useRef(e);ct.current=e;function it(){var ye=ct.current;_e(ye),Ve(ye),ot([]),dt(null),Pe()}(0,f.Z)(function(){we($);var ye=X(Be,$);if(ye.key!==null)if(ye.add){var Ue=He.findIndex(function(Xe){var Je=Xe.key;return Je===ye.key}),je=le(ne(He,e,ye.key),b,M,S),tt=He.slice();tt.splice(Ue+1,0,De),Ve(tt),ot(je),dt("show")}else{var Ye=e.findIndex(function(Xe){var Je=Xe.key;return Je===ye.key}),lt=le(ne(e,He,ye.key),b,M,S),nt=e.slice();nt.splice(Ye+1,0,De),Ve(nt),ot(lt),dt("hide")}else He!==e&&(_e(e),Ve(e))},[$,e]),E.useEffect(function(){D||it()},[D]);var yt=p?rt:e,ut={expandedKeys:$,selectedKeys:n,loadedKeys:a,loadingKeys:l,checkedKeys:d,halfCheckedKeys:g,dragOverNodeKey:R,dropPosition:c,keyEntities:k};return E.createElement(E.Fragment,null,V&&A&&E.createElement("span",{style:ie,"aria-live":"assertive"},Se(A)),E.createElement("div",null,E.createElement("input",{style:ie,disabled:F===!1||N,tabIndex:F!==!1?se:null,onKeyDown:Ke,onFocus:ge,onBlur:me,value:"",onChange:ae,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(w,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(w,"-indent")},E.createElement("div",{ref:W,className:"".concat(w,"-indent-unit")}))),E.createElement(h.Z,(0,pe.Z)({},We,{data:yt,itemKey:Me,height:M,fullHeight:!1,virtual:b,itemHeight:S,scrollWidth:j,prefixCls:"".concat(w,"-list"),ref:Ie,role:"tree",onVisibleChange:function(Ue){Ue.every(function(je){return Me(je)!==oe})&&it()}}),function(ye){var Ue=ye.pos,je=Object.assign({},((0,Y.Z)(ye.data),ye.data)),tt=ye.title,Ye=ye.key,lt=ye.isStart,nt=ye.isEnd,Xe=(0,m.km)(Ye,Ue);delete je.key,delete je.children;var Je=(0,m.H8)(Xe,ut);return E.createElement(_,(0,pe.Z)({},je,Je,{title:tt,active:!!A&&Ye===A.key,pos:Ue,data:ye.data,isStart:lt,isEnd:nt,motion:p,motionNodes:Ye===oe?ft:null,motionType:gt,onMotionStart:Ce,onMotionEnd:it,treeNodeRequiredProps:ut,onMouseMove:function(){xe(null)}}))}))}),o=Fe,T=s(10225),Re=s(17341),be=s(35381),Oe=10,Ze=function(i){(0,re.Z)(w,i);var H=(0,fe.Z)(w);function w(){var e;(0,Ae.Z)(this,w);for(var v=arguments.length,x=new Array(v),$=0;$<v;$++)x[$]=arguments[$];return e=H.call.apply(H,[this].concat(x)),(0,u.Z)((0,Z.Z)(e),"destroyed",!1),(0,u.Z)((0,Z.Z)(e),"delayedDragEnterLogic",void 0),(0,u.Z)((0,Z.Z)(e),"loadingRetryTimes",{}),(0,u.Z)((0,Z.Z)(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,m.w$)()}),(0,u.Z)((0,Z.Z)(e),"dragStartMousePosition",null),(0,u.Z)((0,Z.Z)(e),"dragNodeProps",null),(0,u.Z)((0,Z.Z)(e),"currentMouseOverDroppableNodeKey",null),(0,u.Z)((0,Z.Z)(e),"listRef",E.createRef()),(0,u.Z)((0,Z.Z)(e),"onNodeDragStart",function(n,d){var a=e.state,l=a.expandedKeys,g=a.keyEntities,k=e.props.onDragStart,N=d.eventKey;e.dragNodeProps=d,e.dragStartMousePosition={x:n.clientX,y:n.clientY};var D=(0,T._5)(l,N);e.setState({draggingNodeKey:N,dragChildrenKeys:(0,T.wA)(N,g),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(D),window.addEventListener("dragend",e.onWindowDragEnd),k==null||k({event:n,node:(0,m.F)(d)})}),(0,u.Z)((0,Z.Z)(e),"onNodeDragEnter",function(n,d){var a=e.state,l=a.expandedKeys,g=a.keyEntities,k=a.dragChildrenKeys,N=a.flattenNodes,D=a.indent,R=e.props,c=R.onDragEnter,p=R.onExpand,M=R.allowDrop,S=R.direction,b=d.pos,j=d.eventKey;if(e.currentMouseOverDroppableNodeKey!==j&&(e.currentMouseOverDroppableNodeKey=j),!e.dragNodeProps){e.resetDragState();return}var F=(0,T.OM)(n,e.dragNodeProps,d,D,e.dragStartMousePosition,M,N,g,l,S),A=F.dropPosition,V=F.dropLevelOffset,se=F.dropTargetKey,Ke=F.dropContainerKey,ge=F.dropTargetPos,me=F.dropAllowed,xe=F.dragOverNodeKey;if(k.includes(se)||!me){e.resetDragState();return}if(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(Ce){clearTimeout(e.delayedDragEnterLogic[Ce])}),e.dragNodeProps.eventKey!==d.eventKey&&(n.persist(),e.delayedDragEnterLogic[b]=window.setTimeout(function(){if(e.state.draggingNodeKey!==null){var Ce=(0,Le.Z)(l),Pe=(0,be.Z)(g,d.eventKey);Pe&&(Pe.children||[]).length&&(Ce=(0,T.L0)(l,d.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(Ce),p==null||p(Ce,{node:(0,m.F)(d),expanded:!0,nativeEvent:n.nativeEvent})}},800)),e.dragNodeProps.eventKey===se&&V===0){e.resetDragState();return}e.setState({dragOverNodeKey:xe,dropPosition:A,dropLevelOffset:V,dropTargetKey:se,dropContainerKey:Ke,dropTargetPos:ge,dropAllowed:me}),c==null||c({event:n,node:(0,m.F)(d),expandedKeys:l})}),(0,u.Z)((0,Z.Z)(e),"onNodeDragOver",function(n,d){var a=e.state,l=a.dragChildrenKeys,g=a.flattenNodes,k=a.keyEntities,N=a.expandedKeys,D=a.indent,R=e.props,c=R.onDragOver,p=R.allowDrop,M=R.direction;if(e.dragNodeProps){var S=(0,T.OM)(n,e.dragNodeProps,d,D,e.dragStartMousePosition,p,g,k,N,M),b=S.dropPosition,j=S.dropLevelOffset,F=S.dropTargetKey,A=S.dropContainerKey,V=S.dropTargetPos,se=S.dropAllowed,Ke=S.dragOverNodeKey;l.includes(F)||!se||(e.dragNodeProps.eventKey===F&&j===0?e.state.dropPosition===null&&e.state.dropLevelOffset===null&&e.state.dropTargetKey===null&&e.state.dropContainerKey===null&&e.state.dropTargetPos===null&&e.state.dropAllowed===!1&&e.state.dragOverNodeKey===null||e.resetDragState():b===e.state.dropPosition&&j===e.state.dropLevelOffset&&F===e.state.dropTargetKey&&A===e.state.dropContainerKey&&V===e.state.dropTargetPos&&se===e.state.dropAllowed&&Ke===e.state.dragOverNodeKey||e.setState({dropPosition:b,dropLevelOffset:j,dropTargetKey:F,dropContainerKey:A,dropTargetPos:V,dropAllowed:se,dragOverNodeKey:Ke}),c==null||c({event:n,node:(0,m.F)(d)}))}}),(0,u.Z)((0,Z.Z)(e),"onNodeDragLeave",function(n,d){e.currentMouseOverDroppableNodeKey===d.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var a=e.props.onDragLeave;a==null||a({event:n,node:(0,m.F)(d)})}),(0,u.Z)((0,Z.Z)(e),"onWindowDragEnd",function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)}),(0,u.Z)((0,Z.Z)(e),"onNodeDragEnd",function(n,d){var a=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),a==null||a({event:n,node:(0,m.F)(d)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)}),(0,u.Z)((0,Z.Z)(e),"onNodeDrop",function(n,d){var a,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=e.state,k=g.dragChildrenKeys,N=g.dropPosition,D=g.dropTargetKey,R=g.dropTargetPos,c=g.dropAllowed;if(c){var p=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),D!==null){var M=(0,q.Z)((0,q.Z)({},(0,m.H8)(D,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===D,data:(0,be.Z)(e.state.keyEntities,D).node}),S=k.includes(D);(0,ve.ZP)(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var b=(0,T.yx)(R),j={event:n,node:(0,m.F)(M),dragNode:e.dragNodeProps?(0,m.F)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(k),dropToGap:N!==0,dropPosition:N+Number(b[b.length-1])};l||p==null||p(j),e.dragNodeProps=null}}}),(0,u.Z)((0,Z.Z)(e),"cleanDragState",function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),(0,u.Z)((0,Z.Z)(e),"triggerExpandActionExpand",function(n,d){var a=e.state,l=a.expandedKeys,g=a.flattenNodes,k=d.expanded,N=d.key,D=d.isLeaf;if(!(D||n.shiftKey||n.metaKey||n.ctrlKey)){var R=g.filter(function(p){return p.key===N})[0],c=(0,m.F)((0,q.Z)((0,q.Z)({},(0,m.H8)(N,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(k?(0,T._5)(l,N):(0,T.L0)(l,N)),e.onNodeExpand(n,c)}}),(0,u.Z)((0,Z.Z)(e),"onNodeClick",function(n,d){var a=e.props,l=a.onClick,g=a.expandAction;g==="click"&&e.triggerExpandActionExpand(n,d),l==null||l(n,d)}),(0,u.Z)((0,Z.Z)(e),"onNodeDoubleClick",function(n,d){var a=e.props,l=a.onDoubleClick,g=a.expandAction;g==="doubleClick"&&e.triggerExpandActionExpand(n,d),l==null||l(n,d)}),(0,u.Z)((0,Z.Z)(e),"onNodeSelect",function(n,d){var a=e.state.selectedKeys,l=e.state,g=l.keyEntities,k=l.fieldNames,N=e.props,D=N.onSelect,R=N.multiple,c=d.selected,p=d[k.key],M=!c;M?R?a=(0,T.L0)(a,p):a=[p]:a=(0,T._5)(a,p);var S=a.map(function(b){var j=(0,be.Z)(g,b);return j?j.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:a}),D==null||D(a,{event:"select",selected:M,node:d,selectedNodes:S,nativeEvent:n.nativeEvent})}),(0,u.Z)((0,Z.Z)(e),"onNodeCheck",function(n,d,a){var l=e.state,g=l.keyEntities,k=l.checkedKeys,N=l.halfCheckedKeys,D=e.props,R=D.checkStrictly,c=D.onCheck,p=d.key,M,S={event:"check",node:d,checked:a,nativeEvent:n.nativeEvent};if(R){var b=a?(0,T.L0)(k,p):(0,T._5)(k,p),j=(0,T._5)(N,p);M={checked:b,halfChecked:j},S.checkedNodes=b.map(function(ge){return(0,be.Z)(g,ge)}).filter(Boolean).map(function(ge){return ge.node}),e.setUncontrolledState({checkedKeys:b})}else{var F=(0,Re.S)([].concat((0,Le.Z)(k),[p]),!0,g),A=F.checkedKeys,V=F.halfCheckedKeys;if(!a){var se=new Set(A);se.delete(p);var Ke=(0,Re.S)(Array.from(se),{checked:!1,halfCheckedKeys:V},g);A=Ke.checkedKeys,V=Ke.halfCheckedKeys}M=A,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=V,A.forEach(function(ge){var me=(0,be.Z)(g,ge);if(me){var xe=me.node,Ce=me.pos;S.checkedNodes.push(xe),S.checkedNodesPositions.push({node:xe,pos:Ce})}}),e.setUncontrolledState({checkedKeys:A},!1,{halfCheckedKeys:V})}c==null||c(M,S)}),(0,u.Z)((0,Z.Z)(e),"onNodeLoad",function(n){var d,a=n.key,l=e.state.keyEntities,g=(0,be.Z)(l,a);if(!(g!=null&&(d=g.children)!==null&&d!==void 0&&d.length)){var k=new Promise(function(N,D){e.setState(function(R){var c=R.loadedKeys,p=c===void 0?[]:c,M=R.loadingKeys,S=M===void 0?[]:M,b=e.props,j=b.loadData,F=b.onLoad;if(!j||p.includes(a)||S.includes(a))return null;var A=j(n);return A.then(function(){var V=e.state.loadedKeys,se=(0,T.L0)(V,a);F==null||F(se,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:se}),e.setState(function(Ke){return{loadingKeys:(0,T._5)(Ke.loadingKeys,a)}}),N()}).catch(function(V){if(e.setState(function(Ke){return{loadingKeys:(0,T._5)(Ke.loadingKeys,a)}}),e.loadingRetryTimes[a]=(e.loadingRetryTimes[a]||0)+1,e.loadingRetryTimes[a]>=Oe){var se=e.state.loadedKeys;(0,ve.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,T.L0)(se,a)}),N()}D(V)}),{loadingKeys:(0,T.L0)(S,a)}})});return k.catch(function(){}),k}}),(0,u.Z)((0,Z.Z)(e),"onNodeMouseEnter",function(n,d){var a=e.props.onMouseEnter;a==null||a({event:n,node:d})}),(0,u.Z)((0,Z.Z)(e),"onNodeMouseLeave",function(n,d){var a=e.props.onMouseLeave;a==null||a({event:n,node:d})}),(0,u.Z)((0,Z.Z)(e),"onNodeContextMenu",function(n,d){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:d}))}),(0,u.Z)((0,Z.Z)(e),"onFocus",function(){var n=e.props.onFocus;e.setState({focused:!0});for(var d=arguments.length,a=new Array(d),l=0;l<d;l++)a[l]=arguments[l];n==null||n.apply(void 0,a)}),(0,u.Z)((0,Z.Z)(e),"onBlur",function(){var n=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var d=arguments.length,a=new Array(d),l=0;l<d;l++)a[l]=arguments[l];n==null||n.apply(void 0,a)}),(0,u.Z)((0,Z.Z)(e),"getTreeNodeRequiredProps",function(){var n=e.state,d=n.expandedKeys,a=n.selectedKeys,l=n.loadedKeys,g=n.loadingKeys,k=n.checkedKeys,N=n.halfCheckedKeys,D=n.dragOverNodeKey,R=n.dropPosition,c=n.keyEntities;return{expandedKeys:d||[],selectedKeys:a||[],loadedKeys:l||[],loadingKeys:g||[],checkedKeys:k||[],halfCheckedKeys:N||[],dragOverNodeKey:D,dropPosition:R,keyEntities:c}}),(0,u.Z)((0,Z.Z)(e),"setExpandedKeys",function(n){var d=e.state,a=d.treeData,l=d.fieldNames,g=(0,m.oH)(a,n,l);e.setUncontrolledState({expandedKeys:n,flattenNodes:g},!0)}),(0,u.Z)((0,Z.Z)(e),"onNodeExpand",function(n,d){var a=e.state.expandedKeys,l=e.state,g=l.listChanging,k=l.fieldNames,N=e.props,D=N.onExpand,R=N.loadData,c=d.expanded,p=d[k.key];if(!g){var M=a.includes(p),S=!c;if((0,ve.ZP)(c&&M||!c&&!M,"Expand state not sync with index check"),a=S?(0,T.L0)(a,p):(0,T._5)(a,p),e.setExpandedKeys(a),D==null||D(a,{node:d,expanded:S,nativeEvent:n.nativeEvent}),S&&R){var b=e.onNodeLoad(d);b&&b.then(function(){var j=(0,m.oH)(e.state.treeData,a,k);e.setUncontrolledState({flattenNodes:j})}).catch(function(){var j=e.state.expandedKeys,F=(0,T._5)(j,p);e.setExpandedKeys(F)})}}}),(0,u.Z)((0,Z.Z)(e),"onListChangeStart",function(){e.setUncontrolledState({listChanging:!0})}),(0,u.Z)((0,Z.Z)(e),"onListChangeEnd",function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})}),(0,u.Z)((0,Z.Z)(e),"onActiveChange",function(n){var d=e.state.activeKey,a=e.props,l=a.onActiveChange,g=a.itemScrollOffset,k=g===void 0?0:g;d!==n&&(e.setState({activeKey:n}),n!==null&&e.scrollTo({key:n,offset:k}),l==null||l(n))}),(0,u.Z)((0,Z.Z)(e),"getActiveItem",function(){var n=e.state,d=n.activeKey,a=n.flattenNodes;return d===null?null:a.find(function(l){var g=l.key;return g===d})||null}),(0,u.Z)((0,Z.Z)(e),"offsetActiveKey",function(n){var d=e.state,a=d.flattenNodes,l=d.activeKey,g=a.findIndex(function(D){var R=D.key;return R===l});g===-1&&n<0&&(g=a.length),g=(g+n+a.length)%a.length;var k=a[g];if(k){var N=k.key;e.onActiveChange(N)}else e.onActiveChange(null)}),(0,u.Z)((0,Z.Z)(e),"onKeyDown",function(n){var d=e.state,a=d.activeKey,l=d.expandedKeys,g=d.checkedKeys,k=d.fieldNames,N=e.props,D=N.onKeyDown,R=N.checkable,c=N.selectable;switch(n.which){case G.Z.UP:{e.offsetActiveKey(-1),n.preventDefault();break}case G.Z.DOWN:{e.offsetActiveKey(1),n.preventDefault();break}}var p=e.getActiveItem();if(p&&p.data){var M=e.getTreeNodeRequiredProps(),S=p.data.isLeaf===!1||!!(p.data[k.children]||[]).length,b=(0,m.F)((0,q.Z)((0,q.Z)({},(0,m.H8)(a,M)),{},{data:p.data,active:!0}));switch(n.which){case G.Z.LEFT:{S&&l.includes(a)?e.onNodeExpand({},b):p.parent&&e.onActiveChange(p.parent.key),n.preventDefault();break}case G.Z.RIGHT:{S&&!l.includes(a)?e.onNodeExpand({},b):p.children&&p.children.length&&e.onActiveChange(p.children[0].key),n.preventDefault();break}case G.Z.ENTER:case G.Z.SPACE:{R&&!b.disabled&&b.checkable!==!1&&!b.disableCheckbox?e.onNodeCheck({},b,!g.includes(a)):!R&&c&&!b.disabled&&b.selectable!==!1&&e.onNodeSelect({},b);break}}}D==null||D(n)}),(0,u.Z)((0,Z.Z)(e),"setUncontrolledState",function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var l=!1,g=!0,k={};Object.keys(n).forEach(function(N){if(e.props.hasOwnProperty(N)){g=!1;return}l=!0,k[N]=n[N]}),l&&(!d||g)&&e.setState((0,q.Z)((0,q.Z)({},k),a))}}),(0,u.Z)((0,Z.Z)(e),"scrollTo",function(n){e.listRef.current.scrollTo(n)}),e}return(0,O.Z)(w,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var v=this.props,x=v.activeKey,$=v.itemScrollOffset,n=$===void 0?0:$;x!==void 0&&x!==this.state.activeKey&&(this.setState({activeKey:x}),x!==null&&this.scrollTo({key:x,offset:n}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var v=this.state,x=v.focused,$=v.flattenNodes,n=v.keyEntities,d=v.draggingNodeKey,a=v.activeKey,l=v.dropLevelOffset,g=v.dropContainerKey,k=v.dropTargetKey,N=v.dropPosition,D=v.dragOverNodeKey,R=v.indent,c=this.props,p=c.prefixCls,M=c.className,S=c.style,b=c.showLine,j=c.focusable,F=c.tabIndex,A=F===void 0?0:F,V=c.selectable,se=c.showIcon,Ke=c.icon,ge=c.switcherIcon,me=c.draggable,xe=c.checkable,Ce=c.checkStrictly,Pe=c.disabled,We=c.motion,Ie=c.loadData,W=c.filterTreeNode,K=c.height,Ne=c.itemHeight,Be=c.scrollWidth,we=c.virtual,$e=c.titleRender,Qe=c.dropIndicatorRender,He=c.onContextMenu,_e=c.onScroll,at=c.direction,qe=c.rootClassName,rt=c.rootStyle,Ve=(0,J.Z)(this.props,{aria:!0,data:!0}),ze;me&&((0,L.Z)(me)==="object"?ze=me:typeof me=="function"?ze={nodeDraggable:me}:ze={});var et={prefixCls:p,selectable:V,showIcon:se,icon:Ke,switcherIcon:ge,draggable:ze,draggingNodeKey:d,checkable:xe,checkStrictly:Ce,disabled:Pe,keyEntities:n,dropLevelOffset:l,dropContainerKey:g,dropTargetKey:k,dropPosition:N,dragOverNodeKey:D,indent:R,direction:at,dropIndicatorRender:Qe,loadData:Ie,filterTreeNode:W,titleRender:$e,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return E.createElement(ce.k.Provider,{value:et},E.createElement("div",{className:z()(p,M,qe,(0,u.Z)((0,u.Z)((0,u.Z)({},"".concat(p,"-show-line"),b),"".concat(p,"-focused"),x),"".concat(p,"-active-focused"),a!==null)),style:rt},E.createElement(o,(0,pe.Z)({ref:this.listRef,prefixCls:p,style:S,data:$,disabled:Pe,selectable:V,checkable:!!xe,motion:We,dragging:d!==null,height:K,itemHeight:Ne,virtual:we,focusable:j,focused:x,tabIndex:A,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He,onScroll:_e,scrollWidth:Be},this.getTreeNodeRequiredProps(),Ve))))}}],[{key:"getDerivedStateFromProps",value:function(v,x){var $=x.prevProps,n={prevProps:v};function d(A){return!$&&v.hasOwnProperty(A)||$&&$[A]!==v[A]}var a,l=x.fieldNames;if(d("fieldNames")&&(l=(0,m.w$)(v.fieldNames),n.fieldNames=l),d("treeData")?a=v.treeData:d("children")&&((0,ve.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,m.zn)(v.children)),a){n.treeData=a;var g=(0,m.I8)(a,{fieldNames:l});n.keyEntities=(0,q.Z)((0,u.Z)({},oe,B),g.keyEntities)}var k=n.keyEntities||x.keyEntities;if(d("expandedKeys")||$&&d("autoExpandParent"))n.expandedKeys=v.autoExpandParent||!$&&v.defaultExpandParent?(0,T.r7)(v.expandedKeys,k):v.expandedKeys;else if(!$&&v.defaultExpandAll){var N=(0,q.Z)({},k);delete N[oe];var D=[];Object.keys(N).forEach(function(A){var V=N[A];V.children&&V.children.length&&D.push(V.key)}),n.expandedKeys=D}else!$&&v.defaultExpandedKeys&&(n.expandedKeys=v.autoExpandParent||v.defaultExpandParent?(0,T.r7)(v.defaultExpandedKeys,k):v.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var R=(0,m.oH)(a||x.treeData,n.expandedKeys||x.expandedKeys,l);n.flattenNodes=R}if(v.selectable&&(d("selectedKeys")?n.selectedKeys=(0,T.BT)(v.selectedKeys,v):!$&&v.defaultSelectedKeys&&(n.selectedKeys=(0,T.BT)(v.defaultSelectedKeys,v))),v.checkable){var c;if(d("checkedKeys")?c=(0,T.E6)(v.checkedKeys)||{}:!$&&v.defaultCheckedKeys?c=(0,T.E6)(v.defaultCheckedKeys)||{}:a&&(c=(0,T.E6)(v.checkedKeys)||{checkedKeys:x.checkedKeys,halfCheckedKeys:x.halfCheckedKeys}),c){var p=c,M=p.checkedKeys,S=M===void 0?[]:M,b=p.halfCheckedKeys,j=b===void 0?[]:b;if(!v.checkStrictly){var F=(0,Re.S)(S,!0,k);S=F.checkedKeys,j=F.halfCheckedKeys}n.checkedKeys=S,n.halfCheckedKeys=j}}return d("loadedKeys")&&(n.loadedKeys=v.loadedKeys),n}}]),w}(E.Component);(0,u.Z)(Ze,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:te,allowDrop:function(){return!0},expandAction:!1}),(0,u.Z)(Ze,"TreeNode",C.Z);var Te=Ze,Ee=Te},10225:function(Ge,ke,s){s.d(ke,{BT:function(){return E},E6:function(){return te},L0:function(){return u},OM:function(){return ve},_5:function(){return fe},r7:function(){return Y},wA:function(){return z},yx:function(){return ee}});var pe=s(74902),L=s(71002),q=s(80334),Le=s(67294),Ae=s(86128),O=s(35381),Z=s(1089),re=null;function fe(r,t){if(!r)return[];var f=r.slice(),h=f.indexOf(t);return h>=0&&f.splice(h,1),f}function u(r,t){var f=(r||[]).slice();return f.indexOf(t)===-1&&f.push(t),f}function ee(r){return r.split("-")}function z(r,t){var f=[],h=(0,O.Z)(t,r);function y(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];C.forEach(function(P){var I=P.key,m=P.children;f.push(I),y(m)})}return y(h.children),f}function G(r){if(r.parent){var t=ee(r.pos);return Number(t[t.length-1])===r.parent.children.length-1}return!1}function J(r){var t=ee(r.pos);return Number(t[t.length-1])===0}function ve(r,t,f,h,y,C,P,I,m,Q){var de,_=r.clientX,X=r.clientY,ne=r.target.getBoundingClientRect(),U=ne.top,ie=ne.height,ae=(Q==="rtl"?-1:1)*(((y==null?void 0:y.x)||0)-_),oe=(ae-12)/h,ue=m.filter(function(Ee){var i;return(i=I[Ee])===null||i===void 0||(i=i.children)===null||i===void 0?void 0:i.length}),B=(0,O.Z)(I,f.eventKey);if(X<U+ie/2){var De=P.findIndex(function(Ee){return Ee.key===B.key}),le=De<=0?0:De-1,Me=P[le].key;B=(0,O.Z)(I,Me)}var Se=B.key,Fe=B,o=B.key,T=0,Re=0;if(!ue.includes(Se))for(var be=0;be<oe&&G(B);be+=1)B=B.parent,Re+=1;var Oe=t.data,Ze=B.node,Te=!0;return J(B)&&B.level===0&&X<U+ie/2&&C({dragNode:Oe,dropNode:Ze,dropPosition:-1})&&B.key===f.eventKey?T=-1:(Fe.children||[]).length&&ue.includes(o)?C({dragNode:Oe,dropNode:Ze,dropPosition:0})?T=0:Te=!1:Re===0?oe>-1.5?C({dragNode:Oe,dropNode:Ze,dropPosition:1})?T=1:Te=!1:C({dragNode:Oe,dropNode:Ze,dropPosition:0})?T=0:C({dragNode:Oe,dropNode:Ze,dropPosition:1})?T=1:Te=!1:C({dragNode:Oe,dropNode:Ze,dropPosition:1})?T=1:Te=!1,{dropPosition:T,dropLevelOffset:Re,dropTargetKey:B.key,dropTargetPos:B.pos,dragOverNodeKey:o,dropContainerKey:T===0?null:((de=B.parent)===null||de===void 0?void 0:de.key)||null,dropAllowed:Te}}function E(r,t){if(r){var f=t.multiple;return f?r.slice():r.length?[r[0]]:r}}var ce=function(t){return t};function he(r,t){if(!r)return[];var f=t||{},h=f.processProps,y=h===void 0?ce:h,C=Array.isArray(r)?r:[r];return C.map(function(P){var I=P.children,m=_objectWithoutProperties(P,re),Q=he(I,t);return React.createElement(TreeNode,_extends({key:m.key},y(m)),Q)})}function te(r){if(!r)return null;var t;if(Array.isArray(r))t={checkedKeys:r,halfCheckedKeys:void 0};else if((0,L.Z)(r)==="object")t={checkedKeys:r.checked||void 0,halfCheckedKeys:r.halfChecked||void 0};else return(0,q.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return t}function Y(r,t){var f=new Set;function h(y){if(!f.has(y)){var C=(0,O.Z)(t,y);if(C){f.add(y);var P=C.parent,I=C.node;I.disabled||P&&h(P.key)}}}return(r||[]).forEach(function(y){h(y)}),(0,pe.Z)(f)}},17341:function(Ge,ke,s){s.d(ke,{S:function(){return Z}});var pe=s(80334),L=s(35381);function q(re,fe){var u=new Set;return re.forEach(function(ee){fe.has(ee)||u.add(ee)}),u}function Le(re){var fe=re||{},u=fe.disabled,ee=fe.disableCheckbox,z=fe.checkable;return!!(u||ee)||z===!1}function Ae(re,fe,u,ee){for(var z=new Set(re),G=new Set,J=0;J<=u;J+=1){var ve=fe.get(J)||new Set;ve.forEach(function(te){var Y=te.key,r=te.node,t=te.children,f=t===void 0?[]:t;z.has(Y)&&!ee(r)&&f.filter(function(h){return!ee(h.node)}).forEach(function(h){z.add(h.key)})})}for(var E=new Set,ce=u;ce>=0;ce-=1){var he=fe.get(ce)||new Set;he.forEach(function(te){var Y=te.parent,r=te.node;if(!(ee(r)||!te.parent||E.has(te.parent.key))){if(ee(te.parent.node)){E.add(Y.key);return}var t=!0,f=!1;(Y.children||[]).filter(function(h){return!ee(h.node)}).forEach(function(h){var y=h.key,C=z.has(y);t&&!C&&(t=!1),!f&&(C||G.has(y))&&(f=!0)}),t&&z.add(Y.key),f&&G.add(Y.key),E.add(Y.key)}})}return{checkedKeys:Array.from(z),halfCheckedKeys:Array.from(q(G,z))}}function O(re,fe,u,ee,z){for(var G=new Set(re),J=new Set(fe),ve=0;ve<=ee;ve+=1){var E=u.get(ve)||new Set;E.forEach(function(Y){var r=Y.key,t=Y.node,f=Y.children,h=f===void 0?[]:f;!G.has(r)&&!J.has(r)&&!z(t)&&h.filter(function(y){return!z(y.node)}).forEach(function(y){G.delete(y.key)})})}J=new Set;for(var ce=new Set,he=ee;he>=0;he-=1){var te=u.get(he)||new Set;te.forEach(function(Y){var r=Y.parent,t=Y.node;if(!(z(t)||!Y.parent||ce.has(Y.parent.key))){if(z(Y.parent.node)){ce.add(r.key);return}var f=!0,h=!1;(r.children||[]).filter(function(y){return!z(y.node)}).forEach(function(y){var C=y.key,P=G.has(C);f&&!P&&(f=!1),!h&&(P||J.has(C))&&(h=!0)}),f||G.delete(r.key),h&&J.add(r.key),ce.add(r.key)}})}return{checkedKeys:Array.from(G),halfCheckedKeys:Array.from(q(J,G))}}function Z(re,fe,u,ee){var z=[],G;ee?G=ee:G=Le;var J=new Set(re.filter(function(he){var te=!!(0,L.Z)(u,he);return te||z.push(he),te})),ve=new Map,E=0;Object.keys(u).forEach(function(he){var te=u[he],Y=te.level,r=ve.get(Y);r||(r=new Set,ve.set(Y,r)),r.add(te),E=Math.max(E,Y)}),(0,pe.ZP)(!z.length,"Tree missing follow keys: ".concat(z.slice(0,100).map(function(he){return"'".concat(he,"'")}).join(", ")));var ce;return fe===!0?ce=Ae(J,ve,E,G):ce=O(J,fe.halfCheckedKeys,ve,E,G),ce}},35381:function(Ge,ke,s){s.d(ke,{Z:function(){return pe}});function pe(L,q){return L[q]}},1089:function(Ge,ke,s){s.d(ke,{F:function(){return Y},H8:function(){return te},I8:function(){return he},km:function(){return z},oH:function(){return E},w$:function(){return G},zn:function(){return ve}});var pe=s(71002),L=s(74902),q=s(1413),Le=s(91),Ae=s(50344),O=s(98423),Z=s(80334),re=s(35381),fe=["children"];function u(r,t){return"".concat(r,"-").concat(t)}function ee(r){return r&&r.type&&r.type.isTreeNode}function z(r,t){return r??t}function G(r){var t=r||{},f=t.title,h=t._title,y=t.key,C=t.children,P=f||"title";return{title:P,_title:h||[P],key:y||"key",children:C||"children"}}function J(r,t){var f=new Map;function h(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(y||[]).forEach(function(P){var I=P[t.key],m=P[t.children];warning(I!=null,"Tree node must have a certain key: [".concat(C).concat(I,"]"));var Q=String(I);warning(!f.has(Q)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(Q)),f.set(Q,!0),h(m,"".concat(C).concat(Q," > "))})}h(r)}function ve(r){function t(f){var h=(0,Ae.Z)(f);return h.map(function(y){if(!ee(y))return(0,Z.ZP)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var C=y.key,P=y.props,I=P.children,m=(0,Le.Z)(P,fe),Q=(0,q.Z)({key:C},m),de=t(I);return de.length&&(Q.children=de),Q}).filter(function(y){return y})}return t(r)}function E(r,t,f){var h=G(f),y=h._title,C=h.key,P=h.children,I=new Set(t===!0?[]:t),m=[];function Q(de){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return de.map(function(X,ne){for(var U=u(_?_.pos:"0",ne),ie=z(X[C],U),ae,oe=0;oe<y.length;oe+=1){var ue=y[oe];if(X[ue]!==void 0){ae=X[ue];break}}var B=Object.assign((0,O.Z)(X,[].concat((0,L.Z)(y),[C,P])),{title:ae,key:ie,parent:_,pos:U,children:null,data:X,isStart:[].concat((0,L.Z)(_?_.isStart:[]),[ne===0]),isEnd:[].concat((0,L.Z)(_?_.isEnd:[]),[ne===de.length-1])});return m.push(B),t===!0||I.has(ie)?B.children=Q(X[P]||[],B):B.children=[],B})}return Q(r),m}function ce(r,t,f){var h={};(0,pe.Z)(f)==="object"?h=f:h={externalGetKey:f},h=h||{};var y=h,C=y.childrenPropName,P=y.externalGetKey,I=y.fieldNames,m=G(I),Q=m.key,de=m.children,_=C||de,X;P?typeof P=="string"?X=function(ie){return ie[P]}:typeof P=="function"&&(X=function(ie){return P(ie)}):X=function(ie,ae){return z(ie[Q],ae)};function ne(U,ie,ae,oe){var ue=U?U[_]:r,B=U?u(ae.pos,ie):"0",De=U?[].concat((0,L.Z)(oe),[U]):[];if(U){var le=X(U,B),Me={node:U,index:ie,pos:B,key:le,parentPos:ae.node?ae.pos:null,level:ae.level+1,nodes:De};t(Me)}ue&&ue.forEach(function(Se,Fe){ne(Se,Fe,{node:U,pos:B,level:ae?ae.level+1:-1},De)})}ne(null)}function he(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=t.initWrapper,h=t.processEntity,y=t.onProcessFinished,C=t.externalGetKey,P=t.childrenPropName,I=t.fieldNames,m=arguments.length>2?arguments[2]:void 0,Q=C||m,de={},_={},X={posEntities:de,keyEntities:_};return f&&(X=f(X)||X),ce(r,function(ne){var U=ne.node,ie=ne.index,ae=ne.pos,oe=ne.key,ue=ne.parentPos,B=ne.level,De=ne.nodes,le={node:U,nodes:De,index:ie,key:oe,pos:ae,level:B},Me=z(oe,ae);de[ae]=le,_[Me]=le,le.parent=de[ue],le.parent&&(le.parent.children=le.parent.children||[],le.parent.children.push(le)),h&&h(le,X)},{externalGetKey:Q,childrenPropName:P,fieldNames:I}),y&&y(X),X}function te(r,t){var f=t.expandedKeys,h=t.selectedKeys,y=t.loadedKeys,C=t.loadingKeys,P=t.checkedKeys,I=t.halfCheckedKeys,m=t.dragOverNodeKey,Q=t.dropPosition,de=t.keyEntities,_=(0,re.Z)(de,r),X={eventKey:r,expanded:f.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:y.indexOf(r)!==-1,loading:C.indexOf(r)!==-1,checked:P.indexOf(r)!==-1,halfChecked:I.indexOf(r)!==-1,pos:String(_?_.pos:""),dragOver:m===r&&Q===0,dragOverGapTop:m===r&&Q===-1,dragOverGapBottom:m===r&&Q===1};return X}function Y(r){var t=r.data,f=r.expanded,h=r.selected,y=r.checked,C=r.loaded,P=r.loading,I=r.halfChecked,m=r.dragOver,Q=r.dragOverGapTop,de=r.dragOverGapBottom,_=r.pos,X=r.active,ne=r.eventKey,U=(0,q.Z)((0,q.Z)({},t),{},{expanded:f,selected:h,checked:y,loaded:C,loading:P,halfChecked:I,dragOver:m,dragOverGapTop:Q,dragOverGapBottom:de,pos:_,active:X,key:ne});return"props"in U||Object.defineProperty(U,"props",{get:function(){return(0,Z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),U}}}]);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4582],{91036:function(T,U,d){const v=d(23719),A=d(63150),{isPlainObject:o}=d(10977),h=d(9996),u=d(79430),{parse:m}=d(13200),E=["img","audio","video","picture","svg","object","map","iframe","embed"],S=["script","style"];function f(i,l){i&&Object.keys(i).forEach(function(w){l(i[w],w)})}function c(i,l){return{}.hasOwnProperty.call(i,l)}function t(i,l){const w=[];return f(i,function(y){l(y)&&w.push(y)}),w}function s(i){for(const l in i)if(c(i,l))return!1;return!0}function a(i){return i.map(function(l){if(!l.url)throw new Error("URL missing");return l.url+(l.w?` ${l.w}w`:"")+(l.h?` ${l.h}h`:"")+(l.d?` ${l.d}x`:"")}).join(", ")}T.exports=r;const e=/^[^\0\t\n\f\r /<=>]+$/;function r(i,l,w){if(i==null)return"";typeof i=="number"&&(i=i.toString());let y="",C="";function g(b,M){const R=this;this.tag=b,this.attribs=M||{},this.tagPosition=y.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(W.length){const N=W[W.length-1];N.text+=R.text}},this.updateParentNodeMediaChildren=function(){W.length&&E.includes(this.tag)&&W[W.length-1].mediaChildren.push(this.tag)}}l=Object.assign({},r.defaults,l),l.parser=Object.assign({},n,l.parser);const p=function(b){return l.allowedTags===!1||(l.allowedTags||[]).indexOf(b)>-1};S.forEach(function(b){p(b)&&!l.allowVulnerableTags&&console.warn(`
|
|
2
|
+
|
|
3
|
+
\u26A0\uFE0F Your \`allowedTags\` option includes, \`${b}\`, which is inherently
|
|
4
|
+
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
5
|
+
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
6
|
+
and ensure you are accounting for this risk.
|
|
7
|
+
|
|
8
|
+
`)});const O=l.nonTextTags||["script","style","textarea","option"];let x,D;l.allowedAttributes&&(x={},D={},f(l.allowedAttributes,function(b,M){x[M]=[];const R=[];b.forEach(function(N){typeof N=="string"&&N.indexOf("*")>=0?R.push(A(N).replace(/\\\*/g,".*")):x[M].push(N)}),R.length&&(D[M]=new RegExp("^("+R.join("|")+")$"))}));const L={},P={},Z={};f(l.allowedClasses,function(b,M){if(x&&(c(x,M)||(x[M]=[]),x[M].push("class")),L[M]=b,Array.isArray(b)){const R=[];L[M]=[],Z[M]=[],b.forEach(function(N){typeof N=="string"&&N.indexOf("*")>=0?R.push(A(N).replace(/\\\*/g,".*")):N instanceof RegExp?Z[M].push(N):L[M].push(N)}),R.length&&(P[M]=new RegExp("^("+R.join("|")+")$"))}});const _={};let K;f(l.transformTags,function(b,M){let R;typeof b=="function"?R=b:typeof b=="string"&&(R=r.simpleTransform(b)),M==="*"?K=R:_[M]=R});let j,W,Q,H,$,X,I=!1;ee();const re=new v.Parser({onopentag:function(b,M){if(l.enforceHtmlBoundary&&b==="html"&&ee(),$){X++;return}const R=new g(b,M);W.push(R);let N=!1;const G=!!R.text;let V;if(c(_,b)&&(V=_[b](b,M),R.attribs=M=V.attribs,V.text!==void 0&&(R.innerText=V.text),b!==V.tagName&&(R.name=b=V.tagName,H[j]=V.tagName)),K&&(V=K(b,M),R.attribs=M=V.attribs,b!==V.tagName&&(R.name=b=V.tagName,H[j]=V.tagName)),(!p(b)||l.disallowedTagsMode==="recursiveEscape"&&!s(Q)||l.nestingLimit!=null&&j>=l.nestingLimit)&&(N=!0,Q[j]=!0,(l.disallowedTagsMode==="discard"||l.disallowedTagsMode==="completelyDiscard")&&O.indexOf(b)!==-1&&($=!0,X=1),Q[j]=!0),j++,N){if(l.disallowedTagsMode==="discard"||l.disallowedTagsMode==="completelyDiscard")return;C=y,y=""}y+="<"+b,b==="script"&&(l.allowedScriptHostnames||l.allowedScriptDomains)&&(R.innerText=""),(!x||c(x,b)||x["*"])&&f(M,function(B,k){if(!e.test(k)){delete R.attribs[k];return}if(B===""&&!l.allowedEmptyAttributes.includes(k)&&(l.nonBooleanAttributes.includes(k)||l.nonBooleanAttributes.includes("*"))){delete R.attribs[k];return}let fe=!1;if(!x||c(x,b)&&x[b].indexOf(k)!==-1||x["*"]&&x["*"].indexOf(k)!==-1||c(D,b)&&D[b].test(k)||D["*"]&&D["*"].test(k))fe=!0;else if(x&&x[b]){for(const F of x[b])if(o(F)&&F.name&&F.name===k){fe=!0;let z="";if(F.multiple===!0){const se=B.split(" ");for(const Y of se)F.values.indexOf(Y)!==-1&&(z===""?z=Y:z+=" "+Y)}else F.values.indexOf(B)>=0&&(z=B);B=z}}if(fe){if(l.allowedSchemesAppliedToAttributes.indexOf(k)!==-1&&ie(b,B)){delete R.attribs[k];return}if(b==="script"&&k==="src"){let F=!0;try{const z=oe(B);if(l.allowedScriptHostnames||l.allowedScriptDomains){const se=(l.allowedScriptHostnames||[]).find(function(J){return J===z.url.hostname}),Y=(l.allowedScriptDomains||[]).find(function(J){return z.url.hostname===J||z.url.hostname.endsWith(`.${J}`)});F=se||Y}}catch{F=!1}if(!F){delete R.attribs[k];return}}if(b==="iframe"&&k==="src"){let F=!0;try{const z=oe(B);if(z.isRelativeUrl)F=c(l,"allowIframeRelativeUrls")?l.allowIframeRelativeUrls:!l.allowedIframeHostnames&&!l.allowedIframeDomains;else if(l.allowedIframeHostnames||l.allowedIframeDomains){const se=(l.allowedIframeHostnames||[]).find(function(J){return J===z.url.hostname}),Y=(l.allowedIframeDomains||[]).find(function(J){return z.url.hostname===J||z.url.hostname.endsWith(`.${J}`)});F=se||Y}}catch{F=!1}if(!F){delete R.attribs[k];return}}if(k==="srcset")try{let F=u(B);if(F.forEach(function(z){ie("srcset",z.url)&&(z.evil=!0)}),F=t(F,function(z){return!z.evil}),F.length)B=a(t(F,function(z){return!z.evil})),R.attribs[k]=B;else{delete R.attribs[k];return}}catch{delete R.attribs[k];return}if(k==="class"){const F=L[b],z=L["*"],se=P[b],Y=Z[b],J=P["*"],ue=[se,J].concat(Y).filter(function(he){return he});if(F&&z?B=ne(B,h(F,z),ue):B=ne(B,F||z,ue),!B.length){delete R.attribs[k];return}}if(k==="style"){if(l.parseStyleAttributes)try{const F=m(b+" {"+B+"}",{map:!1}),z=le(F,l.allowedStyles);if(B=ae(z),B.length===0){delete R.attribs[k];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+b+" {"+B+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete R.attribs[k];return}else if(l.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}y+=" "+k,B&&B.length?y+='="'+te(B,!0)+'"':l.allowedEmptyAttributes.includes(k)&&(y+='=""')}else delete R.attribs[k]}),l.selfClosing.indexOf(b)!==-1?y+=" />":(y+=">",R.innerText&&!G&&!l.textFilter&&(y+=te(R.innerText),I=!0)),N&&(y=C+te(y),C="")},ontext:function(b){if($)return;const M=W[W.length-1];let R;if(M&&(R=M.tag,b=M.innerText!==void 0?M.innerText:b),l.disallowedTagsMode==="completelyDiscard"&&!p(R))b="";else if((l.disallowedTagsMode==="discard"||l.disallowedTagsMode==="completelyDiscard")&&(R==="script"||R==="style"))y+=b;else{const N=te(b,!1);l.textFilter&&!I?y+=l.textFilter(N,R):I||(y+=N)}if(W.length){const N=W[W.length-1];N.text+=b}},onclosetag:function(b,M){if($)if(X--,!X)$=!1;else return;const R=W.pop();if(!R)return;if(R.tag!==b){W.push(R);return}$=l.enforceHtmlBoundary?b==="html":!1,j--;const N=Q[j];if(N){if(delete Q[j],l.disallowedTagsMode==="discard"||l.disallowedTagsMode==="completelyDiscard"){R.updateParentNodeText();return}C=y,y=""}if(H[j]&&(b=H[j],delete H[j]),l.exclusiveFilter&&l.exclusiveFilter(R)){y=y.substr(0,R.tagPosition);return}if(R.updateParentNodeMediaChildren(),R.updateParentNodeText(),l.selfClosing.indexOf(b)!==-1||M&&!p(b)&&["escape","recursiveEscape"].indexOf(l.disallowedTagsMode)>=0){N&&(y=C,C="");return}y+="</"+b+">",N&&(y=C+te(y),C=""),I=!1}},l.parser);return re.write(i),re.end(),y;function ee(){y="",j=0,W=[],Q={},H={},$=!1,X=0}function te(b,M){return typeof b!="string"&&(b=b+""),l.parser.decodeEntities&&(b=b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),M&&(b=b.replace(/"/g,"""))),b=b.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),M&&(b=b.replace(/"/g,""")),b}function ie(b,M){for(M=M.replace(/[\x00-\x20]+/g,"");;){const G=M.indexOf("<!--");if(G===-1)break;const V=M.indexOf("-->",G+4);if(V===-1)break;M=M.substring(0,G)+M.substring(V+3)}const R=M.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!R)return M.match(/^[/\\]{2}/)?!l.allowProtocolRelative:!1;const N=R[1].toLowerCase();return c(l.allowedSchemesByTag,b)?l.allowedSchemesByTag[b].indexOf(N)===-1:!l.allowedSchemes||l.allowedSchemes.indexOf(N)===-1}function oe(b){if(b=b.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),b.startsWith("relative:"))throw new Error("relative: exploit attempt");let M="relative://relative-site";for(let G=0;G<100;G++)M+=`/${G}`;const R=new URL(b,M);return{isRelativeUrl:R&&R.hostname==="relative-site"&&R.protocol==="relative:",url:R}}function le(b,M){if(!M)return b;const R=b.nodes[0];let N;return M[R.selector]&&M["*"]?N=h(M[R.selector],M["*"]):N=M[R.selector]||M["*"],N&&(b.nodes[0].nodes=R.nodes.reduce(q(N),[])),b}function ae(b){return b.nodes[0].nodes.reduce(function(M,R){return M.push(`${R.prop}:${R.value}${R.important?" !important":""}`),M},[]).join(";")}function q(b){return function(M,R){return c(b,R.prop)&&b[R.prop].some(function(G){return G.test(R.value)})&&M.push(R),M}}function ne(b,M,R){return M?(b=b.split(/\s+/),b.filter(function(N){return M.indexOf(N)!==-1||R.some(function(G){return G.test(N)})}).join(" ")):b}}const n={decodeEntities:!0};r.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},r.simpleTransform=function(i,l,w){return w=w===void 0?!0:w,l=l||{},function(y,C){let g;if(w)for(g in l)C[g]=l[g];else C=l;return{tagName:i,attribs:C}}}},10977:function(T,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});function d(A){return Object.prototype.toString.call(A)==="[object Object]"}function v(A){var o,h;return d(A)===!1?!1:(o=A.constructor,o===void 0?!0:(h=o.prototype,!(d(h)===!1||h.hasOwnProperty("isPrototypeOf")===!1)))}U.isPlainObject=v},12650:function(T,U,d){"use strict";let v=d(66808);class A extends v{constructor(h){super(h),this.type="atrule"}append(...h){return this.proxyOf.nodes||(this.nodes=[]),super.append(...h)}prepend(...h){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...h)}}T.exports=A,A.default=A,v.registerAtRule(A)},91569:function(T,U,d){"use strict";let v=d(83454);class A extends v{constructor(h){super(h),this.type="comment"}}T.exports=A,A.default=A},66808:function(T,U,d){"use strict";let{isClean:v,my:A}=d(58999),o=d(85232),h=d(91569),u=d(83454),m,E,S,f;function c(a){return a.map(e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e))}function t(a){if(a[v]=!1,a.proxyOf.nodes)for(let e of a.proxyOf.nodes)t(e)}class s extends u{append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(l,w)=>i(l.toProxy(),w):i)):r==="every"||r==="some"?n=>e[r]((i,...l)=>n(i.toProxy(),...l)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let w of i)this.proxyOf.nodes.splice(n+1,0,w);let l;for(let w in this.indexes)l=this.indexes[w],n<l&&(this.indexes[w]=l+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,l=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let y of l)this.proxyOf.nodes.splice(n,0,y);let w;for(let y in this.indexes)w=this.indexes[y],n<=w&&(this.indexes[y]=w+l.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=c(m(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new o(e)]}else if(e.selector)e=[new E(e)];else if(e.name)e=[new S(e)];else if(e.text)e=[new h(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[A]||s.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[v]&&t(i),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(l){throw r.addToError(l)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}s.registerParse=a=>{m=a},s.registerRule=a=>{E=a},s.registerAtRule=a=>{S=a},s.registerRoot=a=>{f=a},T.exports=s,s.default=s,s.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,S.prototype):a.type==="rule"?Object.setPrototypeOf(a,E.prototype):a.type==="decl"?Object.setPrototypeOf(a,o.prototype):a.type==="comment"?Object.setPrototypeOf(a,h.prototype):a.type==="root"&&Object.setPrototypeOf(a,f.prototype),a[A]=!0,a.nodes&&a.nodes.forEach(e=>{s.rebuild(e)})}},95373:function(T,U,d){"use strict";let v=d(74241),A=d(75347);class o extends Error{constructor(u,m,E,S,f,c){super(u),this.name="CssSyntaxError",this.reason=u,f&&(this.file=f),S&&(this.source=S),c&&(this.plugin=c),typeof m<"u"&&typeof E<"u"&&(typeof m=="number"?(this.line=m,this.column=E):(this.line=m.line,this.column=m.column,this.endLine=E.line,this.endColumn=E.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(u){if(!this.source)return"";let m=this.source;u==null&&(u=v.isColorSupported),A&&u&&(m=A(m));let E=m.split(/\r?\n/),S=Math.max(this.line-3,0),f=Math.min(this.line+2,E.length),c=String(f).length,t,s;if(u){let{bold:a,gray:e,red:r}=v.createColors(!0);t=n=>a(r(n)),s=n=>e(n)}else t=s=a=>a;return E.slice(S,f).map((a,e)=>{let r=S+1+e,n=" "+(" "+r).slice(-c)+" | ";if(r===this.line){let i=s(n.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+s(n)+a+`
|
|
9
|
+
`+i+t("^")}return" "+s(n)+a}).join(`
|
|
10
|
+
`)}toString(){let u=this.showSourceCode();return u&&(u=`
|
|
11
|
+
|
|
12
|
+
`+u+`
|
|
13
|
+
`),this.name+": "+this.message+u}}T.exports=o,o.default=o},85232:function(T,U,d){"use strict";let v=d(83454);class A extends v{constructor(h){h&&typeof h.value<"u"&&typeof h.value!="string"&&(h={...h,value:String(h.value)}),super(h),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}T.exports=A,A.default=A},5991:function(T,U,d){"use strict";let v=d(66808),A,o;class h extends v{constructor(m){super({type:"document",...m}),this.nodes||(this.nodes=[])}toResult(m={}){return new A(new o,this,m).stringify()}}h.registerLazyResult=u=>{A=u},h.registerProcessor=u=>{o=u},T.exports=h,h.default=h},38853:function(T,U,d){"use strict";let v=d(85232),A=d(49470),o=d(91569),h=d(12650),u=d(62627),m=d(71283),E=d(4485);function S(f,c){if(Array.isArray(f))return f.map(a=>S(a));let{inputs:t,...s}=f;if(t){c=[];for(let a of t){let e={...a,__proto__:u.prototype};e.map&&(e.map={...e.map,__proto__:A.prototype}),c.push(e)}}if(s.nodes&&(s.nodes=f.nodes.map(a=>S(a,c))),s.source){let{inputId:a,...e}=s.source;s.source=e,a!=null&&(s.source.input=c[a])}if(s.type==="root")return new m(s);if(s.type==="decl")return new v(s);if(s.type==="rule")return new E(s);if(s.type==="comment")return new o(s);if(s.type==="atrule")return new h(s);throw new Error("Unknown node type: "+f.type)}T.exports=S,S.default=S},62627:function(T,U,d){"use strict";let{SourceMapConsumer:v,SourceMapGenerator:A}=d(59905),{fileURLToPath:o,pathToFileURL:h}=d(64604),{isAbsolute:u,resolve:m}=d(34017),{nanoid:E}=d(40170),S=d(75347),f=d(95373),c=d(49470),t=Symbol("fromOffsetCache"),s=!!(v&&A),a=!!(m&&u);class e{constructor(n,i={}){if(n===null||typeof n>"u"||typeof n=="object"&&!n.toString)throw new Error(`PostCSS received ${n} instead of CSS string`);if(this.css=n.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,i.from&&(!a||/^\w+:\/\//.test(i.from)||u(i.from)?this.file=i.from:this.file=m(i.from)),a&&s){let l=new c(this.css,i);if(l.text){this.map=l;let w=l.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+E(6)+">"),this.map&&(this.map.file=this.from)}error(n,i,l,w={}){let y,C,g;if(i&&typeof i=="object"){let O=i,x=l;if(typeof O.offset=="number"){let D=this.fromOffset(O.offset);i=D.line,l=D.col}else i=O.line,l=O.column;if(typeof x.offset=="number"){let D=this.fromOffset(x.offset);C=D.line,g=D.col}else C=x.line,g=x.column}else if(!l){let O=this.fromOffset(i);i=O.line,l=O.col}let p=this.origin(i,l,C,g);return p?y=new f(n,p.endLine===void 0?p.line:{column:p.column,line:p.line},p.endLine===void 0?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,w.plugin):y=new f(n,C===void 0?i:{column:l,line:i},C===void 0?l:{column:g,line:C},this.css,this.file,w.plugin),y.input={column:l,endColumn:g,endLine:C,line:i,source:this.css},this.file&&(h&&(y.input.url=h(this.file).toString()),y.input.file=this.file),y}fromOffset(n){let i,l;if(this[t])l=this[t];else{let y=this.css.split(`
|
|
14
|
+
`);l=new Array(y.length);let C=0;for(let g=0,p=y.length;g<p;g++)l[g]=C,C+=y[g].length+1;this[t]=l}i=l[l.length-1];let w=0;if(n>=i)w=l.length-1;else{let y=l.length-2,C;for(;w<y;)if(C=w+(y-w>>1),n<l[C])y=C-1;else if(n>=l[C+1])w=C+1;else{w=C;break}}return{col:n-l[w]+1,line:w+1}}mapResolve(n){return/^\w+:\/\//.test(n)?n:m(this.map.consumer().sourceRoot||this.map.root||".",n)}origin(n,i,l,w){if(!this.map)return!1;let y=this.map.consumer(),C=y.originalPositionFor({column:i,line:n});if(!C.source)return!1;let g;typeof l=="number"&&(g=y.originalPositionFor({column:w,line:l}));let p;u(C.source)?p=h(C.source):p=new URL(C.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let O={column:C.column,endColumn:g&&g.column,endLine:g&&g.line,line:C.line,url:p.toString()};if(p.protocol==="file:")if(o)O.file=o(p);else throw new Error("file: protocol is not available in this PostCSS build");let x=y.sourceContentFor(C.source);return x&&(O.source=x),O}toJSON(){let n={};for(let i of["hasBOM","css","file","id"])this[i]!=null&&(n[i]=this[i]);return this.map&&(n.map={...this.map},n.map.consumerCache&&(n.map.consumerCache=void 0)),n}get from(){return this.file||this.id}}T.exports=e,e.default=e,S&&S.registerInput&&S.registerInput(e)},75673:function(T,U,d){"use strict";let{isClean:v,my:A}=d(58999),o=d(40429),h=d(23179),u=d(66808),m=d(5991),E=d(84133),S=d(85296),f=d(11665),c=d(71283);const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},a={Once:!0,postcssPlugin:!0,prepare:!0},e=0;function r(C){return typeof C=="object"&&typeof C.then=="function"}function n(C){let g=!1,p=t[C.type];return C.type==="decl"?g=C.prop.toLowerCase():C.type==="atrule"&&(g=C.name.toLowerCase()),g&&C.append?[p,p+"-"+g,e,p+"Exit",p+"Exit-"+g]:g?[p,p+"-"+g,p+"Exit",p+"Exit-"+g]:C.append?[p,e,p+"Exit"]:[p,p+"Exit"]}function i(C){let g;return C.type==="document"?g=["Document",e,"DocumentExit"]:C.type==="root"?g=["Root",e,"RootExit"]:g=n(C),{eventIndex:0,events:g,iterator:0,node:C,visitorIndex:0,visitors:[]}}function l(C){return C[v]=!1,C.nodes&&C.nodes.forEach(g=>l(g)),C}let w={};class y{constructor(g,p,O){this.stringified=!1,this.processed=!1;let x;if(typeof p=="object"&&p!==null&&(p.type==="root"||p.type==="document"))x=l(p);else if(p instanceof y||p instanceof S)x=l(p.root),p.map&&(typeof O.map>"u"&&(O.map={}),O.map.inline||(O.map.inline=!1),O.map.prev=p.map);else{let D=f;O.syntax&&(D=O.syntax.parse),O.parser&&(D=O.parser),D.parse&&(D=D.parse);try{x=D(p,O)}catch(L){this.processed=!0,this.error=L}x&&!x[A]&&u.rebuild(x)}this.result=new S(g,x,O),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(D=>typeof D=="object"&&D.prepare?{...D,...D.prepare(this.result)}:D)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(g){return this.async().catch(g)}finally(g){return this.async().then(g,g)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(g,p){let O=this.result.lastPlugin;try{p&&p.addToError(g),this.error=g,g.name==="CssSyntaxError"&&!g.plugin?(g.plugin=O.postcssPlugin,g.setMessage()):O.postcssVersion}catch(x){console&&console.error&&console.error(x)}return g}prepareVisitors(){this.listeners={};let g=(p,O,x)=>{this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push([p,x])};for(let p of this.plugins)if(typeof p=="object")for(let O in p){if(!s[O]&&/^[A-Z]/.test(O))throw new Error(`Unknown event ${O} in ${p.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!a[O])if(typeof p[O]=="object")for(let x in p[O])x==="*"?g(p,O,p[O][x]):g(p,O+"-"+x.toLowerCase(),p[O][x]);else typeof p[O]=="function"&&g(p,O,p[O])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let g=0;g<this.plugins.length;g++){let p=this.plugins[g],O=this.runOnRoot(p);if(r(O))try{await O}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[v];){g[v]=!0;let p=[i(g)];for(;p.length>0;){let O=this.visitTick(p);if(r(O))try{await O}catch(x){let D=p[p.length-1].node;throw this.handleError(x,D)}}}if(this.listeners.OnceExit)for(let[p,O]of this.listeners.OnceExit){this.result.lastPlugin=p;try{if(g.type==="document"){let x=g.nodes.map(D=>O(D,this.helpers));await Promise.all(x)}else await O(g,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(g){this.result.lastPlugin=g;try{if(typeof g=="object"&&g.Once){if(this.result.root.type==="document"){let p=this.result.root.nodes.map(O=>g.Once(O,this.helpers));return r(p[0])?Promise.all(p):p}return g.Once(this.result.root,this.helpers)}else if(typeof g=="function")return g(this.result.root,this.result)}catch(p){throw this.handleError(p)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let g=this.result.opts,p=h;g.syntax&&(p=g.syntax.stringify),g.stringifier&&(p=g.stringifier),p.stringify&&(p=p.stringify);let x=new o(p,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let g of this.plugins){let p=this.runOnRoot(g);if(r(p))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[v];)g[v]=!0,this.walkSync(g);if(this.listeners.OnceExit)if(g.type==="document")for(let p of g.nodes)this.visitSync(this.listeners.OnceExit,p);else this.visitSync(this.listeners.OnceExit,g)}return this.result}then(g,p){return this.async().then(g,p)}toString(){return this.css}visitSync(g,p){for(let[O,x]of g){this.result.lastPlugin=O;let D;try{D=x(p,this.helpers)}catch(L){throw this.handleError(L,p.proxyOf)}if(p.type!=="root"&&p.type!=="document"&&!p.parent)return!0;if(r(D))throw this.getAsyncError()}}visitTick(g){let p=g[g.length-1],{node:O,visitors:x}=p;if(O.type!=="root"&&O.type!=="document"&&!O.parent){g.pop();return}if(x.length>0&&p.visitorIndex<x.length){let[L,P]=x[p.visitorIndex];p.visitorIndex+=1,p.visitorIndex===x.length&&(p.visitors=[],p.visitorIndex=0),this.result.lastPlugin=L;try{return P(O.toProxy(),this.helpers)}catch(Z){throw this.handleError(Z,O)}}if(p.iterator!==0){let L=p.iterator,P;for(;P=O.nodes[O.indexes[L]];)if(O.indexes[L]+=1,!P[v]){P[v]=!0,g.push(i(P));return}p.iterator=0,delete O.indexes[L]}let D=p.events;for(;p.eventIndex<D.length;){let L=D[p.eventIndex];if(p.eventIndex+=1,L===e){O.nodes&&O.nodes.length&&(O[v]=!0,p.iterator=O.getIterator());return}else if(this.listeners[L]){p.visitors=this.listeners[L];return}}g.pop()}walkSync(g){g[v]=!0;let p=n(g);for(let O of p)if(O===e)g.nodes&&g.each(x=>{x[v]||this.walkSync(x)});else{let x=this.listeners[O];if(x&&this.visitSync(x,g.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}y.registerPostcss=C=>{w=C},T.exports=y,y.default=y,c.registerLazyResult(y),m.registerLazyResult(y)},30416:function(T){"use strict";let U={comma(d){return U.split(d,[","],!0)},space(d){let v=[" ",`
|
|
15
|
+
`," "];return U.split(d,v)},split(d,v,A){let o=[],h="",u=!1,m=0,E=!1,S="",f=!1;for(let c of d)f?f=!1:c==="\\"?f=!0:E?c===S&&(E=!1):c==='"'||c==="'"?(E=!0,S=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&v.includes(c)&&(u=!0),u?(h!==""&&o.push(h.trim()),h="",u=!1):h+=c;return(A||h!=="")&&o.push(h.trim()),o}};T.exports=U,U.default=U},40429:function(T,U,d){"use strict";var v=d(48764).lW;let{SourceMapConsumer:A,SourceMapGenerator:o}=d(59905),{dirname:h,relative:u,resolve:m,sep:E}=d(34017),{pathToFileURL:S}=d(64604),f=d(62627),c=!!(A&&o),t=!!(h&&m&&u&&E);class s{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
|
|
16
|
+
`;this.css.includes(`\r
|
|
17
|
+
`)&&(r=`\r
|
|
18
|
+
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||h(e.file),i;this.mapOpts.sourcesContent===!1?(i=new A(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),t&&c&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=o.fromSourceMap(e)}else this.map=new o({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile()});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},l,w;this.stringify(this.root,(y,C,g)=>{if(this.css+=y,C&&g!=="end"&&(i.generated.line=e,i.generated.column=r-1,C.source&&C.source.start?(i.source=this.sourcePath(C),i.original.line=C.source.start.line,i.original.column=C.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),l=y.match(/\n/g),l?(e+=l.length,w=y.lastIndexOf(`
|
|
19
|
+
`),r=y.length-w):r+=y.length,C&&g!=="start"){let p=C.parent||{raws:{}};(!(C.type==="decl"||C.type==="atrule"&&!C.nodes)||C!==p.last||p.raws.semicolon)&&(C.source&&C.source.end?(i.source=this.sourcePath(C),i.original.line=C.source.end.line,i.original.column=C.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?h(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=h(m(n,this.mapOpts.annotation)));let i=u(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new f(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return v?v.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(S){let n=S(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;E==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}T.exports=s},42336:function(T,U,d){"use strict";let v=d(40429),A=d(23179),o=d(84133),h=d(11665);const u=d(85296);class m{constructor(S,f,c){f=f.toString(),this.stringified=!1,this._processor=S,this._css=f,this._opts=c,this._map=void 0;let t,s=A;this.result=new u(this._processor,t,this._opts),this.result.css=f;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let e=new v(s,t,this._opts,f);if(e.isMap()){let[r,n]=e.generate();r&&(this.result.css=r),n&&(this.result.map=n)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(S){return this.async().catch(S)}finally(S){return this.async().then(S,S)}sync(){if(this.error)throw this.error;return this.result}then(S,f){return this.async().then(S,f)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let S,f=h;try{S=f(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=S,S}get[Symbol.toStringTag](){return"NoWorkResult"}}T.exports=m,m.default=m},83454:function(T,U,d){"use strict";let{isClean:v,my:A}=d(58999),o=d(95373),h=d(7843),u=d(23179);function m(S,f){let c=new S.constructor;for(let t in S){if(!Object.prototype.hasOwnProperty.call(S,t)||t==="proxyCache")continue;let s=S[t],a=typeof s;t==="parent"&&a==="object"?f&&(c[t]=f):t==="source"?c[t]=s:Array.isArray(s)?c[t]=s.map(e=>m(e,c)):(a==="object"&&s!==null&&(s=m(s)),c[t]=s)}return c}class E{constructor(f={}){this.raws={},this[v]=!1,this[A]=!0;for(let c in f)if(c==="nodes"){this.nodes=[];for(let t of f[c])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[c]=f[c]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let c=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let c in f)this[c]=f[c];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let c=m(this);for(let t in f)c[t]=f[t];return c}cloneAfter(f={}){let c=this.clone(f);return this.parent.insertAfter(this,c),c}cloneBefore(f={}){let c=this.clone(f);return this.parent.insertBefore(this,c),c}error(f,c={}){if(this.source){let{end:t,start:s}=this.rangeBy(c);return this.source.input.error(f,{column:s.column,line:s.line},{column:t.column,line:t.line},c)}return new o(f)}getProxyProcessor(){return{get(f,c){return c==="proxyOf"?f:c==="root"?()=>f.root().toProxy():f[c]},set(f,c,t){return f[c]===t||(f[c]=t,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&f.markDirty()),!0}}}markDirty(){if(this[v]){this[v]=!1;let f=this;for(;f=f.parent;)f[v]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f,c){let t=this.source.start;if(f.index)t=this.positionInside(f.index,c);else if(f.word){c=this.toString();let s=c.indexOf(f.word);s!==-1&&(t=this.positionInside(s,c))}return t}positionInside(f,c){let t=c||this.toString(),s=this.source.start.column,a=this.source.start.line;for(let e=0;e<f;e++)t[e]===`
|
|
20
|
+
`?(s=1,a+=1):s+=1;return{column:s,line:a}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let c={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(f.word){let s=this.toString(),a=s.indexOf(f.word);a!==-1&&(c=this.positionInside(a,s),t=this.positionInside(a+f.word.length,s))}else f.start?c={column:f.start.column,line:f.start.line}:f.index&&(c=this.positionInside(f.index)),f.end?t={column:f.end.column,line:f.end.line}:f.endIndex?t=this.positionInside(f.endIndex):f.index&&(t=this.positionInside(f.index+1));return(t.line<c.line||t.line===c.line&&t.column<=c.column)&&(t={column:c.column+1,line:c.line}),{end:t,start:c}}raw(f,c){return new h().raw(this,f,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let c=this,t=!1;for(let s of f)s===this?t=!0:t?(this.parent.insertAfter(c,s),c=s):this.parent.insertBefore(c,s);t||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,c){let t={},s=c==null;c=c||new Map;let a=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e==="parent"||e==="proxyCache")continue;let r=this[e];if(Array.isArray(r))t[e]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON(null,c):n);else if(typeof r=="object"&&r.toJSON)t[e]=r.toJSON(null,c);else if(e==="source"){let n=c.get(r.input);n==null&&(n=a,c.set(r.input,a),a++),t[e]={end:r.end,inputId:n,start:r.start}}else t[e]=r}return s&&(t.inputs=[...c.keys()].map(e=>e.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=u){f.stringify&&(f=f.stringify);let c="";return f(this,t=>{c+=t}),c}warn(f,c,t){let s={node:this};for(let a in t)s[a]=t[a];return f.warn(c,s)}get proxyOf(){return this}}T.exports=E,E.default=E},11665:function(T,U,d){"use strict";let v=d(66808),A=d(92972),o=d(62627);function h(u,m){let E=new o(u,m),S=new A(E);try{S.parse()}catch(f){throw f}return S.root}T.exports=h,h.default=h,v.registerParse(h)},92972:function(T,U,d){"use strict";let v=d(85232),A=d(53240),o=d(91569),h=d(12650),u=d(71283),m=d(4485);const E={empty:!0,space:!0};function S(c){for(let t=c.length-1;t>=0;t--){let s=c[t],a=s[3]||s[2];if(a)return a}}class f{constructor(t){this.input=t,this.root=new u,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let s=new h;s.name=t[1].slice(1),s.name===""&&this.unnamedAtrule(s,t),this.init(s,t[2]);let a,e,r,n=!1,i=!1,l=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),a=t[0],a==="("||a==="["?w.push(a==="("?")":"]"):a==="{"&&w.length>0?w.push("}"):a===w[w.length-1]&&w.pop(),w.length===0)if(a===";"){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){i=!0;break}else if(a==="}"){if(l.length>0){for(r=l.length-1,e=l[r];e&&e[0]==="space";)e=l[--r];e&&(s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(s.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(s,"params",l),n&&(t=l[l.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),i&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){let s=this.colon(t);if(s===!1)return;let a=0,e;for(let r=s-1;r>=0&&(e=t[r],!(e[0]!=="space"&&(a+=1,a===2)));r--);throw this.input.error("Missed semicolon",e[0]==="word"?e[3]+1:e[2])}colon(t){let s=0,a,e,r;for(let[n,i]of t.entries()){if(a=i,e=a[0],e==="("&&(s+=1),e===")"&&(s-=1),s===0&&e===":")if(!r)this.doubleColon(a);else{if(r[0]==="word"&&r[1]==="progid")continue;return n}r=a}return!1}comment(t){let s=new o;this.init(s,t[2]),s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++;let a=t[1].slice(2,-2);if(/^\s*$/.test(a))s.text="",s.raws.left=a,s.raws.right="";else{let e=a.match(/^(\s*)([^]*\S)(\s*)$/);s.text=e[2],s.raws.left=e[1],s.raws.right=e[3]}}createTokenizer(){this.tokenizer=A(this.input)}decl(t,s){let a=new v;this.init(a,t[0][2]);let e=t[t.length-1];for(e[0]===";"&&(this.semicolon=!0,t.pop()),a.source.end=this.getPosition(e[3]||e[2]||S(t)),a.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),a.raws.before+=t.shift()[1];for(a.source.start=this.getPosition(t[0][2]),a.prop="";t.length;){let w=t[0][0];if(w===":"||w==="space"||w==="comment")break;a.prop+=t.shift()[1]}a.raws.between="";let r;for(;t.length;)if(r=t.shift(),r[0]===":"){a.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),a.raws.between+=r[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let n=[],i;for(;t.length&&(i=t[0][0],!(i!=="space"&&i!=="comment"));)n.push(t.shift());this.precheckMissedSemicolon(t);for(let w=t.length-1;w>=0;w--){if(r=t[w],r[1].toLowerCase()==="!important"){a.important=!0;let y=this.stringFrom(t,w);y=this.spacesFromEnd(t)+y,y!==" !important"&&(a.raws.important=y);break}else if(r[1].toLowerCase()==="important"){let y=t.slice(0),C="";for(let g=w;g>0;g--){let p=y[g][0];if(C.trim().indexOf("!")===0&&p!=="space")break;C=y.pop()[1]+C}C.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=C,t=y)}if(r[0]!=="space"&&r[0]!=="comment")break}t.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(a.raws.between+=n.map(w=>w[1]).join(""),n=[]),this.raw(a,"value",n.concat(t),s),a.value.includes(":")&&!s&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let s=new m;this.init(s,t[2]),s.selector="",s.raws.between="",this.current=s}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let s=this.input.fromOffset(t);return{column:s.col,line:s.line,offset:t}}init(t,s){this.current.push(t),t.source={input:this.input,start:this.getPosition(s)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let s=!1,a=null,e=!1,r=null,n=[],i=t[1].startsWith("--"),l=[],w=t;for(;w;){if(a=w[0],l.push(w),a==="("||a==="[")r||(r=w),n.push(a==="("?")":"]");else if(i&&e&&a==="{")r||(r=w),n.push("}");else if(n.length===0)if(a===";")if(e){this.decl(l,i);return}else break;else if(a==="{"){this.rule(l);return}else if(a==="}"){this.tokenizer.back(l.pop()),s=!0;break}else a===":"&&(e=!0);else a===n[n.length-1]&&(n.pop(),n.length===0&&(r=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),n.length>0&&this.unclosedBracket(r),s&&e){if(!i)for(;l.length&&(w=l[l.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,i)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,s,a,e){let r,n,i=a.length,l="",w=!0,y,C;for(let g=0;g<i;g+=1)r=a[g],n=r[0],n==="space"&&g===i-1&&!e?w=!1:n==="comment"?(C=a[g-1]?a[g-1][0]:"empty",y=a[g+1]?a[g+1][0]:"empty",!E[C]&&!E[y]?l.slice(-1)===","?w=!1:l+=r[1]:w=!1):l+=r[1];if(!w){let g=a.reduce((p,O)=>p+O[1],"");t.raws[s]={raw:g,value:l}}t[s]=l}rule(t){t.pop();let s=new m;this.init(s,t[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(s,"selector",t),this.current=s}spacesAndCommentsFromEnd(t){let s,a="";for(;t.length&&(s=t[t.length-1][0],!(s!=="space"&&s!=="comment"));)a=t.pop()[1]+a;return a}spacesAndCommentsFromStart(t){let s,a="";for(;t.length&&(s=t[0][0],!(s!=="space"&&s!=="comment"));)a+=t.shift()[1];return a}spacesFromEnd(t){let s,a="";for(;t.length&&(s=t[t.length-1][0],s==="space");)a=t.pop()[1]+a;return a}stringFrom(t,s){let a="";for(let e=s;e<t.length;e++)a+=t[e][1];return t.splice(s,t.length-s),a}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,s){throw this.input.error("At-rule without name",{offset:s[2]},{offset:s[2]+s[1].length})}}T.exports=f},13200:function(T,U,d){"use strict";let v=d(95373),A=d(85232),o=d(75673),h=d(66808),u=d(46580),m=d(23179),E=d(38853),S=d(5991),f=d(3061),c=d(91569),t=d(12650),s=d(85296),a=d(62627),e=d(11665),r=d(30416),n=d(4485),i=d(71283),l=d(83454);function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new u(y)}w.plugin=function(C,g){let p=!1;function O(...D){console&&console.warn&&!p&&(p=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
21
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{NODE_ENV:"production",PUBLIC_PATH:"auto"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"auto"}.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
22
|
+
https://www.w3ctech.com/topic/2226`));let L=g(...D);return L.postcssPlugin=C,L.postcssVersion=new u().version,L}let x;return Object.defineProperty(O,"postcss",{get(){return x||(x=O()),x}}),O.process=function(D,L,P){return w([O(P)]).process(D,L)},O},w.stringify=m,w.parse=e,w.fromJSON=E,w.list=r,w.comment=y=>new c(y),w.atRule=y=>new t(y),w.decl=y=>new A(y),w.rule=y=>new n(y),w.root=y=>new i(y),w.document=y=>new S(y),w.CssSyntaxError=v,w.Declaration=A,w.Container=h,w.Processor=u,w.Document=S,w.Comment=c,w.Warning=f,w.AtRule=t,w.Result=s,w.Input=a,w.Rule=n,w.Root=i,w.Node=l,o.registerPostcss(w),T.exports=w,w.default=w},49470:function(T,U,d){"use strict";var v=d(48764).lW;let{SourceMapConsumer:A,SourceMapGenerator:o}=d(59905),{existsSync:h,readFileSync:u}=d(31777),{dirname:m,join:E}=d(34017);function S(c){return v?v.from(c,"base64").toString():window.atob(c)}class f{constructor(t,s){if(s.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let a=s.map?s.map.prev:void 0,e=this.loadMap(s.from,a);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=m(this.mapFile)),e&&(this.text=e)}consumer(){return this.consumerCache||(this.consumerCache=new A(this.text)),this.consumerCache}decodeInline(t){let s=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,e=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(e.test(t)||r.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(s.test(t)||a.test(t))return S(t.substr(RegExp.lastMatch.length));let n=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let s=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!s)return;let a=t.lastIndexOf(s.pop()),e=t.indexOf("*/",a);a>-1&&e>-1&&(this.annotation=this.getAnnotationURL(t.substring(a,e)))}loadFile(t){if(this.root=m(t),h(t))return this.mapFile=t,u(t,"utf-8").toString().trim()}loadMap(t,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let a=s(t);if(a){let e=this.loadFile(a);if(!e)throw new Error("Unable to load previous source map: "+a.toString());return e}}else{if(s instanceof A)return o.fromSourceMap(s).toString();if(s instanceof o)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let a=this.annotation;return t&&(a=E(m(t),a)),this.loadFile(a)}}}startWith(t,s){return t?t.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}T.exports=f,f.default=f},46580:function(T,U,d){"use strict";let v=d(42336),A=d(75673),o=d(5991),h=d(71283);class u{constructor(E=[]){this.version="8.4.32",this.plugins=this.normalize(E)}normalize(E){let S=[];for(let f of E)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))S=S.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)S.push(f);else if(typeof f=="function")S.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return S}process(E,S={}){return this.plugins.length===0&&typeof S.parser>"u"&&typeof S.stringifier>"u"&&typeof S.syntax>"u"?new v(this,E,S):new A(this,E,S)}use(E){return this.plugins=this.plugins.concat(this.normalize([E])),this}}T.exports=u,u.default=u,h.registerProcessor(u),o.registerProcessor(u)},85296:function(T,U,d){"use strict";let v=d(3061);class A{constructor(h,u,m){this.processor=h,this.messages=[],this.root=u,this.opts=m,this.css=void 0,this.map=void 0}toString(){return this.css}warn(h,u={}){u.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(u.plugin=this.lastPlugin.postcssPlugin);let m=new v(h,u);return this.messages.push(m),m}warnings(){return this.messages.filter(h=>h.type==="warning")}get content(){return this.css}}T.exports=A,A.default=A},71283:function(T,U,d){"use strict";let v=d(66808),A,o;class h extends v{constructor(m){super(m),this.type="root",this.nodes||(this.nodes=[])}normalize(m,E,S){let f=super.normalize(m);if(E){if(S==="prepend")this.nodes.length>1?E.raws.before=this.nodes[1].raws.before:delete E.raws.before;else if(this.first!==E)for(let c of f)c.raws.before=E.raws.before}return f}removeChild(m,E){let S=this.index(m);return!E&&S===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[S].raws.before),super.removeChild(m)}toResult(m={}){return new A(new o,this,m).stringify()}}h.registerLazyResult=u=>{A=u},h.registerProcessor=u=>{o=u},T.exports=h,h.default=h,v.registerRoot(h)},4485:function(T,U,d){"use strict";let v=d(66808),A=d(30416);class o extends v{constructor(u){super(u),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return A.comma(this.selector)}set selectors(u){let m=this.selector?this.selector.match(/,\s*/):null,E=m?m[0]:","+this.raw("between","beforeOpen");this.selector=u.join(E)}}T.exports=o,o.default=o,v.registerRule(o)},7843:function(T){"use strict";const U={after:`
|
|
23
|
+
`,beforeClose:`
|
|
24
|
+
`,beforeComment:`
|
|
25
|
+
`,beforeDecl:`
|
|
26
|
+
`,beforeOpen:" ",beforeRule:`
|
|
27
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function d(A){return A[0].toUpperCase()+A.slice(1)}class v{constructor(o){this.builder=o}atrule(o,h){let u="@"+o.name,m=o.params?this.rawValue(o,"params"):"";if(typeof o.raws.afterName<"u"?u+=o.raws.afterName:m&&(u+=" "),o.nodes)this.block(o,u+m);else{let E=(o.raws.between||"")+(h?";":"");this.builder(u+m+E,o)}}beforeAfter(o,h){let u;o.type==="decl"?u=this.raw(o,null,"beforeDecl"):o.type==="comment"?u=this.raw(o,null,"beforeComment"):h==="before"?u=this.raw(o,null,"beforeRule"):u=this.raw(o,null,"beforeClose");let m=o.parent,E=0;for(;m&&m.type!=="root";)E+=1,m=m.parent;if(u.includes(`
|
|
28
|
+
`)){let S=this.raw(o,null,"indent");if(S.length)for(let f=0;f<E;f++)u+=S}return u}block(o,h){let u=this.raw(o,"between","beforeOpen");this.builder(h+u+"{",o,"start");let m;o.nodes&&o.nodes.length?(this.body(o),m=this.raw(o,"after")):m=this.raw(o,"after","emptyBody"),m&&this.builder(m),this.builder("}",o,"end")}body(o){let h=o.nodes.length-1;for(;h>0&&o.nodes[h].type==="comment";)h-=1;let u=this.raw(o,"semicolon");for(let m=0;m<o.nodes.length;m++){let E=o.nodes[m],S=this.raw(E,"before");S&&this.builder(S),this.stringify(E,h!==m||u)}}comment(o){let h=this.raw(o,"left","commentLeft"),u=this.raw(o,"right","commentRight");this.builder("/*"+h+o.text+u+"*/",o)}decl(o,h){let u=this.raw(o,"between","colon"),m=o.prop+u+this.rawValue(o,"value");o.important&&(m+=o.raws.important||" !important"),h&&(m+=";"),this.builder(m,o)}document(o){this.body(o)}raw(o,h,u){let m;if(u||(u=h),h&&(m=o.raws[h],typeof m<"u"))return m;let E=o.parent;if(u==="before"&&(!E||E.type==="root"&&E.first===o||E&&E.type==="document"))return"";if(!E)return U[u];let S=o.root();if(S.rawCache||(S.rawCache={}),typeof S.rawCache[u]<"u")return S.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(o,u);{let f="raw"+d(u);this[f]?m=this[f](S,o):S.walk(c=>{if(m=c.raws[h],typeof m<"u")return!1})}return typeof m>"u"&&(m=U[u]),S.rawCache[u]=m,m}rawBeforeClose(o){let h;return o.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return h=u.raws.after,h.includes(`
|
|
29
|
+
`)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(o,h){let u;return o.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
|
|
30
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(h,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(o,h){let u;return o.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
|
|
31
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(h,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(o){let h;return o.walk(u=>{if(u.type!=="decl"&&(h=u.raws.between,typeof h<"u"))return!1}),h}rawBeforeRule(o){let h;return o.walk(u=>{if(u.nodes&&(u.parent!==o||o.first!==u)&&typeof u.raws.before<"u")return h=u.raws.before,h.includes(`
|
|
32
|
+
`)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(o){let h;return o.walkDecls(u=>{if(typeof u.raws.between<"u")return h=u.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(o){let h;return o.walk(u=>{if(u.nodes&&u.nodes.length===0&&(h=u.raws.after,typeof h<"u"))return!1}),h}rawIndent(o){if(o.raws.indent)return o.raws.indent;let h;return o.walk(u=>{let m=u.parent;if(m&&m!==o&&m.parent&&m.parent===o&&typeof u.raws.before<"u"){let E=u.raws.before.split(`
|
|
33
|
+
`);return h=E[E.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(o){let h;return o.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(h=u.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(o,h){let u=o[h],m=o.raws[h];return m&&m.value===u?m.raw:u}root(o){this.body(o),o.raws.after&&this.builder(o.raws.after)}rule(o){this.block(o,this.rawValue(o,"selector")),o.raws.ownSemicolon&&this.builder(o.raws.ownSemicolon,o,"end")}stringify(o,h){if(!this[o.type])throw new Error("Unknown AST node type "+o.type+". Maybe you need to change PostCSS stringifier.");this[o.type](o,h)}}T.exports=v,v.default=v},23179:function(T,U,d){"use strict";let v=d(7843);function A(o,h){new v(h).stringify(o)}T.exports=A,A.default=A},58999:function(T){"use strict";T.exports.isClean=Symbol("isClean"),T.exports.my=Symbol("my")},53240:function(T){"use strict";const U="'".charCodeAt(0),d='"'.charCodeAt(0),v="\\".charCodeAt(0),A="/".charCodeAt(0),o=`
|
|
34
|
+
`.charCodeAt(0),h=" ".charCodeAt(0),u="\f".charCodeAt(0),m=" ".charCodeAt(0),E="\r".charCodeAt(0),S="[".charCodeAt(0),f="]".charCodeAt(0),c="(".charCodeAt(0),t=")".charCodeAt(0),s="{".charCodeAt(0),a="}".charCodeAt(0),e=";".charCodeAt(0),r="*".charCodeAt(0),n=":".charCodeAt(0),i="@".charCodeAt(0),l=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,C=/[\da-f]/i;T.exports=function(p,O={}){let x=p.css.valueOf(),D=O.ignoreErrors,L,P,Z,_,K,j,W,Q,H,$,X=x.length,I=0,re=[],ee=[];function te(){return I}function ie(q){throw p.error("Unclosed "+q,I)}function oe(){return ee.length===0&&I>=X}function le(q){if(ee.length)return ee.pop();if(I>=X)return;let ne=q?q.ignoreUnclosed:!1;switch(L=x.charCodeAt(I),L){case o:case h:case m:case E:case u:{P=I;do P+=1,L=x.charCodeAt(P);while(L===h||L===o||L===m||L===E||L===u);$=["space",x.slice(I,P)],I=P-1;break}case S:case f:case s:case a:case n:case e:case t:{let b=String.fromCharCode(L);$=[b,b,I];break}case c:{if(Q=re.length?re.pop()[1]:"",H=x.charCodeAt(I+1),Q==="url"&&H!==U&&H!==d&&H!==h&&H!==o&&H!==m&&H!==u&&H!==E){P=I;do{if(j=!1,P=x.indexOf(")",P+1),P===-1)if(D||ne){P=I;break}else ie("bracket");for(W=P;x.charCodeAt(W-1)===v;)W-=1,j=!j}while(j);$=["brackets",x.slice(I,P+1),I,P],I=P}else P=x.indexOf(")",I+1),_=x.slice(I,P+1),P===-1||y.test(_)?$=["(","(",I]:($=["brackets",_,I,P],I=P);break}case U:case d:{Z=L===U?"'":'"',P=I;do{if(j=!1,P=x.indexOf(Z,P+1),P===-1)if(D||ne){P=I+1;break}else ie("string");for(W=P;x.charCodeAt(W-1)===v;)W-=1,j=!j}while(j);$=["string",x.slice(I,P+1),I,P],I=P;break}case i:{l.lastIndex=I+1,l.test(x),l.lastIndex===0?P=x.length-1:P=l.lastIndex-2,$=["at-word",x.slice(I,P+1),I,P],I=P;break}case v:{for(P=I,K=!0;x.charCodeAt(P+1)===v;)P+=1,K=!K;if(L=x.charCodeAt(P+1),K&&L!==A&&L!==h&&L!==o&&L!==m&&L!==E&&L!==u&&(P+=1,C.test(x.charAt(P)))){for(;C.test(x.charAt(P+1));)P+=1;x.charCodeAt(P+1)===h&&(P+=1)}$=["word",x.slice(I,P+1),I,P],I=P;break}default:{L===A&&x.charCodeAt(I+1)===r?(P=x.indexOf("*/",I+2)+1,P===0&&(D||ne?P=x.length:ie("comment")),$=["comment",x.slice(I,P+1),I,P],I=P):(w.lastIndex=I+1,w.test(x),w.lastIndex===0?P=x.length-1:P=w.lastIndex-2,$=["word",x.slice(I,P+1),I,P],re.push($),I=P);break}}return I++,$}function ae(q){ee.push(q)}return{back:ae,endOfFile:oe,nextToken:le,position:te}}},84133:function(T){"use strict";let U={};T.exports=function(v){U[v]||(U[v]=!0,typeof console<"u"&&console.warn&&console.warn(v))}},3061:function(T){"use strict";class U{constructor(v,A={}){if(this.type="warning",this.text=v,A.node&&A.node.source){let o=A.node.rangeBy(A);this.line=o.start.line,this.column=o.start.column,this.endLine=o.end.line,this.endColumn=o.end.column}for(let o in A)this[o]=A[o]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}T.exports=U,U.default=U},40170:function(T){var U="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",d=function(o){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:21;return function(){for(var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,m="",E=u;E--;)m+=o[Math.random()*o.length|0];return m}},v=function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21,h="",u=o;u--;)h+=U[Math.random()*64|0];return h};T.exports={nanoid:v,customAlphabet:d}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[3177],{67429:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(i,"v1",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(i,"v3",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(i,"v4",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(i,"v5",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(i,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(i,"version",{enumerable:!0,get:function(){return u.default}});var y=c(m(63990)),M=c(m(8237)),U=c(m(75355)),p=c(m(83764)),o=c(m(86314)),u=c(m(58464)),d=c(m(46435)),v=c(m(73990)),w=c(m(38627));function c(_){return _&&_.__esModule?_:{default:_}}},94163:function(R,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;function m(t){if(typeof t=="string"){const g=unescape(encodeURIComponent(t));t=new Uint8Array(g.length);for(let n=0;n<g.length;++n)t[n]=g.charCodeAt(n)}return y(U(p(t),t.length*8))}function y(t){const g=[],n=t.length*32,f="0123456789abcdef";for(let e=0;e<n;e+=8){const r=t[e>>5]>>>e%32&255,a=parseInt(f.charAt(r>>>4&15)+f.charAt(r&15),16);g.push(a)}return g}function M(t){return(t+64>>>9<<4)+14+1}function U(t,g){t[g>>5]|=128<<g%32,t[M(g)-1]=g;let n=1732584193,f=-271733879,e=-1732584194,r=271733878;for(let a=0;a<t.length;a+=16){const s=n,h=f,l=e,T=r;n=v(n,f,e,r,t[a],7,-680876936),r=v(r,n,f,e,t[a+1],12,-389564586),e=v(e,r,n,f,t[a+2],17,606105819),f=v(f,e,r,n,t[a+3],22,-1044525330),n=v(n,f,e,r,t[a+4],7,-176418897),r=v(r,n,f,e,t[a+5],12,1200080426),e=v(e,r,n,f,t[a+6],17,-1473231341),f=v(f,e,r,n,t[a+7],22,-45705983),n=v(n,f,e,r,t[a+8],7,1770035416),r=v(r,n,f,e,t[a+9],12,-1958414417),e=v(e,r,n,f,t[a+10],17,-42063),f=v(f,e,r,n,t[a+11],22,-1990404162),n=v(n,f,e,r,t[a+12],7,1804603682),r=v(r,n,f,e,t[a+13],12,-40341101),e=v(e,r,n,f,t[a+14],17,-1502002290),f=v(f,e,r,n,t[a+15],22,1236535329),n=w(n,f,e,r,t[a+1],5,-165796510),r=w(r,n,f,e,t[a+6],9,-1069501632),e=w(e,r,n,f,t[a+11],14,643717713),f=w(f,e,r,n,t[a],20,-373897302),n=w(n,f,e,r,t[a+5],5,-701558691),r=w(r,n,f,e,t[a+10],9,38016083),e=w(e,r,n,f,t[a+15],14,-660478335),f=w(f,e,r,n,t[a+4],20,-405537848),n=w(n,f,e,r,t[a+9],5,568446438),r=w(r,n,f,e,t[a+14],9,-1019803690),e=w(e,r,n,f,t[a+3],14,-187363961),f=w(f,e,r,n,t[a+8],20,1163531501),n=w(n,f,e,r,t[a+13],5,-1444681467),r=w(r,n,f,e,t[a+2],9,-51403784),e=w(e,r,n,f,t[a+7],14,1735328473),f=w(f,e,r,n,t[a+12],20,-1926607734),n=c(n,f,e,r,t[a+5],4,-378558),r=c(r,n,f,e,t[a+8],11,-2022574463),e=c(e,r,n,f,t[a+11],16,1839030562),f=c(f,e,r,n,t[a+14],23,-35309556),n=c(n,f,e,r,t[a+1],4,-1530992060),r=c(r,n,f,e,t[a+4],11,1272893353),e=c(e,r,n,f,t[a+7],16,-155497632),f=c(f,e,r,n,t[a+10],23,-1094730640),n=c(n,f,e,r,t[a+13],4,681279174),r=c(r,n,f,e,t[a],11,-358537222),e=c(e,r,n,f,t[a+3],16,-722521979),f=c(f,e,r,n,t[a+6],23,76029189),n=c(n,f,e,r,t[a+9],4,-640364487),r=c(r,n,f,e,t[a+12],11,-421815835),e=c(e,r,n,f,t[a+15],16,530742520),f=c(f,e,r,n,t[a+2],23,-995338651),n=_(n,f,e,r,t[a],6,-198630844),r=_(r,n,f,e,t[a+7],10,1126891415),e=_(e,r,n,f,t[a+14],15,-1416354905),f=_(f,e,r,n,t[a+5],21,-57434055),n=_(n,f,e,r,t[a+12],6,1700485571),r=_(r,n,f,e,t[a+3],10,-1894986606),e=_(e,r,n,f,t[a+10],15,-1051523),f=_(f,e,r,n,t[a+1],21,-2054922799),n=_(n,f,e,r,t[a+8],6,1873313359),r=_(r,n,f,e,t[a+15],10,-30611744),e=_(e,r,n,f,t[a+6],15,-1560198380),f=_(f,e,r,n,t[a+13],21,1309151649),n=_(n,f,e,r,t[a+4],6,-145523070),r=_(r,n,f,e,t[a+11],10,-1120210379),e=_(e,r,n,f,t[a+2],15,718787259),f=_(f,e,r,n,t[a+9],21,-343485551),n=o(n,s),f=o(f,h),e=o(e,l),r=o(r,T)}return[n,f,e,r]}function p(t){if(t.length===0)return[];const g=t.length*8,n=new Uint32Array(M(g));for(let f=0;f<g;f+=8)n[f>>5]|=(t[f/8]&255)<<f%32;return n}function o(t,g){const n=(t&65535)+(g&65535);return(t>>16)+(g>>16)+(n>>16)<<16|n&65535}function u(t,g){return t<<g|t>>>32-g}function d(t,g,n,f,e,r){return o(u(o(o(g,t),o(f,r)),e),n)}function v(t,g,n,f,e,r,a){return d(g&n|~g&f,t,g,e,r,a)}function w(t,g,n,f,e,r,a){return d(g&f|n&~f,t,g,e,r,a)}function c(t,g,n,f,e,r,a){return d(g^n^f,t,g,e,r,a)}function _(t,g,n,f,e,r,a){return d(n^(g|~f),t,g,e,r,a)}var I=m;i.default=I},54790:function(R,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};i.default=y},86314:function(R,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var m="00000000-0000-0000-0000-000000000000";i.default=m},38627:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=M(m(46435));function M(o){return o&&o.__esModule?o:{default:o}}function U(o){if(!(0,y.default)(o))throw TypeError("Invalid UUID");let u;const d=new Uint8Array(16);return d[0]=(u=parseInt(o.slice(0,8),16))>>>24,d[1]=u>>>16&255,d[2]=u>>>8&255,d[3]=u&255,d[4]=(u=parseInt(o.slice(9,13),16))>>>8,d[5]=u&255,d[6]=(u=parseInt(o.slice(14,18),16))>>>8,d[7]=u&255,d[8]=(u=parseInt(o.slice(19,23),16))>>>8,d[9]=u&255,d[10]=(u=parseInt(o.slice(24,36),16))/1099511627776&255,d[11]=u/4294967296&255,d[12]=u>>>24&255,d[13]=u>>>16&255,d[14]=u>>>8&255,d[15]=u&255,d}var p=U;i.default=p},70058:function(R,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i.default=m},33319:function(R,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=M;let m;const y=new Uint8Array(16);function M(){if(!m&&(m=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(y)}},93757:function(R,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;function m(p,o,u,d){switch(p){case 0:return o&u^~o&d;case 1:return o^u^d;case 2:return o&u^o&d^u&d;case 3:return o^u^d}}function y(p,o){return p<<o|p>>>32-o}function M(p){const o=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof p=="string"){const c=unescape(encodeURIComponent(p));p=[];for(let _=0;_<c.length;++_)p.push(c.charCodeAt(_))}else Array.isArray(p)||(p=Array.prototype.slice.call(p));p.push(128);const d=p.length/4+2,v=Math.ceil(d/16),w=new Array(v);for(let c=0;c<v;++c){const _=new Uint32Array(16);for(let I=0;I<16;++I)_[I]=p[c*64+I*4]<<24|p[c*64+I*4+1]<<16|p[c*64+I*4+2]<<8|p[c*64+I*4+3];w[c]=_}w[v-1][14]=(p.length-1)*8/Math.pow(2,32),w[v-1][14]=Math.floor(w[v-1][14]),w[v-1][15]=(p.length-1)*8&4294967295;for(let c=0;c<v;++c){const _=new Uint32Array(80);for(let e=0;e<16;++e)_[e]=w[c][e];for(let e=16;e<80;++e)_[e]=y(_[e-3]^_[e-8]^_[e-14]^_[e-16],1);let I=u[0],t=u[1],g=u[2],n=u[3],f=u[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=y(I,5)+m(r,t,g,n)+f+o[r]+_[e]>>>0;f=n,n=g,g=y(t,30)>>>0,t=I,I=a}u[0]=u[0]+I>>>0,u[1]=u[1]+t>>>0,u[2]=u[2]+g>>>0,u[3]=u[3]+n>>>0,u[4]=u[4]+f>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var U=M;i.default=U},73990:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.unsafeStringify=p;var y=M(m(46435));function M(d){return d&&d.__esModule?d:{default:d}}const U=[];for(let d=0;d<256;++d)U.push((d+256).toString(16).slice(1));function p(d,v=0){return U[d[v+0]]+U[d[v+1]]+U[d[v+2]]+U[d[v+3]]+"-"+U[d[v+4]]+U[d[v+5]]+"-"+U[d[v+6]]+U[d[v+7]]+"-"+U[d[v+8]]+U[d[v+9]]+"-"+U[d[v+10]]+U[d[v+11]]+U[d[v+12]]+U[d[v+13]]+U[d[v+14]]+U[d[v+15]]}function o(d,v=0){const w=p(d,v);if(!(0,y.default)(w))throw TypeError("Stringified UUID is invalid");return w}var u=o;i.default=u},63990:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=U(m(33319)),M=m(73990);function U(c){return c&&c.__esModule?c:{default:c}}let p,o,u=0,d=0;function v(c,_,I){let t=_&&I||0;const g=_||new Array(16);c=c||{};let n=c.node||p,f=c.clockseq!==void 0?c.clockseq:o;if(n==null||f==null){const l=c.random||(c.rng||y.default)();n==null&&(n=p=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),f==null&&(f=o=(l[6]<<8|l[7])&16383)}let e=c.msecs!==void 0?c.msecs:Date.now(),r=c.nsecs!==void 0?c.nsecs:d+1;const a=e-u+(r-d)/1e4;if(a<0&&c.clockseq===void 0&&(f=f+1&16383),(a<0||e>u)&&c.nsecs===void 0&&(r=0),r>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=e,d=r,o=f,e+=122192928e5;const s=((e&268435455)*1e4+r)%4294967296;g[t++]=s>>>24&255,g[t++]=s>>>16&255,g[t++]=s>>>8&255,g[t++]=s&255;const h=e/4294967296*1e4&268435455;g[t++]=h>>>8&255,g[t++]=h&255,g[t++]=h>>>24&15|16,g[t++]=h>>>16&255,g[t++]=f>>>8|128,g[t++]=f&255;for(let l=0;l<6;++l)g[t+l]=n[l];return _||(0,M.unsafeStringify)(g)}var w=v;i.default=w},8237:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=U(m(17925)),M=U(m(94163));function U(u){return u&&u.__esModule?u:{default:u}}var o=(0,y.default)("v3",48,M.default);i.default=o},17925:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.URL=i.DNS=void 0,i.default=d;var y=m(73990),M=U(m(38627));function U(v){return v&&v.__esModule?v:{default:v}}function p(v){v=unescape(encodeURIComponent(v));const w=[];for(let c=0;c<v.length;++c)w.push(v.charCodeAt(c));return w}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";i.DNS=o;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";i.URL=u;function d(v,w,c){function _(I,t,g,n){var f;if(typeof I=="string"&&(I=p(I)),typeof t=="string"&&(t=(0,M.default)(t)),((f=t)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let e=new Uint8Array(16+I.length);if(e.set(t),e.set(I,t.length),e=c(e),e[6]=e[6]&15|w,e[8]=e[8]&63|128,g){n=n||0;for(let r=0;r<16;++r)g[n+r]=e[r];return g}return(0,y.unsafeStringify)(e)}try{_.name=v}catch{}return _.DNS=o,_.URL=u,_}},75355:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=p(m(54790)),M=p(m(33319)),U=m(73990);function p(d){return d&&d.__esModule?d:{default:d}}function o(d,v,w){if(y.default.randomUUID&&!v&&!d)return y.default.randomUUID();d=d||{};const c=d.random||(d.rng||M.default)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,v){w=w||0;for(let _=0;_<16;++_)v[w+_]=c[_];return v}return(0,U.unsafeStringify)(c)}var u=o;i.default=u},83764:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=U(m(17925)),M=U(m(93757));function U(u){return u&&u.__esModule?u:{default:u}}var o=(0,y.default)("v5",80,M.default);i.default=o},46435:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=M(m(70058));function M(o){return o&&o.__esModule?o:{default:o}}function U(o){return typeof o=="string"&&y.default.test(o)}var p=U;i.default=p},58464:function(R,i,m){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var y=M(m(46435));function M(o){return o&&o.__esModule?o:{default:o}}function U(o){if(!(0,y.default)(o))throw TypeError("Invalid UUID");return parseInt(o.slice(14,15),16)}var p=U;i.default=p},95999:function(R,i,m){m.d(i,{Z:function(){return a}});const y=[];for(let s=0;s<256;++s)y.push((s+256).toString(16).slice(1));function M(s,h=0){return y[s[h+0]]+y[s[h+1]]+y[s[h+2]]+y[s[h+3]]+"-"+y[s[h+4]]+y[s[h+5]]+"-"+y[s[h+6]]+y[s[h+7]]+"-"+y[s[h+8]]+y[s[h+9]]+"-"+y[s[h+10]]+y[s[h+11]]+y[s[h+12]]+y[s[h+13]]+y[s[h+14]]+y[s[h+15]]}function U(s,h=0){const l=M(s,h);if(!validate(l))throw TypeError("Stringified UUID is invalid");return l}var p=null,o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function u(s){return typeof s=="string"&&o.test(s)}var d=u;function v(s){if(!d(s))throw TypeError("Invalid UUID");let h;const l=new Uint8Array(16);return l[0]=(h=parseInt(s.slice(0,8),16))>>>24,l[1]=h>>>16&255,l[2]=h>>>8&255,l[3]=h&255,l[4]=(h=parseInt(s.slice(9,13),16))>>>8,l[5]=h&255,l[6]=(h=parseInt(s.slice(14,18),16))>>>8,l[7]=h&255,l[8]=(h=parseInt(s.slice(19,23),16))>>>8,l[9]=h&255,l[10]=(h=parseInt(s.slice(24,36),16))/1099511627776&255,l[11]=h/4294967296&255,l[12]=h>>>24&255,l[13]=h>>>16&255,l[14]=h>>>8&255,l[15]=h&255,l}var w=v;function c(s){s=unescape(encodeURIComponent(s));const h=[];for(let l=0;l<s.length;++l)h.push(s.charCodeAt(l));return h}const _="6ba7b810-9dad-11d1-80b4-00c04fd430c8",I="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function t(s,h,l){function T(x,b,D,A){var P;if(typeof x=="string"&&(x=c(x)),typeof b=="string"&&(b=w(b)),((P=b)===null||P===void 0?void 0:P.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let S=new Uint8Array(16+x.length);if(S.set(b),S.set(x,b.length),S=l(S),S[6]=S[6]&15|h,S[8]=S[8]&63|128,D){A=A||0;for(let k=0;k<16;++k)D[A+k]=S[k];return D}return M(S)}try{T.name=s}catch{}return T.DNS=_,T.URL=I,T}function g(s,h,l,T){switch(s){case 0:return h&l^~h&T;case 1:return h^l^T;case 2:return h&l^h&T^l&T;case 3:return h^l^T}}function n(s,h){return s<<h|s>>>32-h}function f(s){const h=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const D=unescape(encodeURIComponent(s));s=[];for(let A=0;A<D.length;++A)s.push(D.charCodeAt(A))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const T=s.length/4+2,x=Math.ceil(T/16),b=new Array(x);for(let D=0;D<x;++D){const A=new Uint32Array(16);for(let P=0;P<16;++P)A[P]=s[D*64+P*4]<<24|s[D*64+P*4+1]<<16|s[D*64+P*4+2]<<8|s[D*64+P*4+3];b[D]=A}b[x-1][14]=(s.length-1)*8/Math.pow(2,32),b[x-1][14]=Math.floor(b[x-1][14]),b[x-1][15]=(s.length-1)*8&4294967295;for(let D=0;D<x;++D){const A=new Uint32Array(80);for(let O=0;O<16;++O)A[O]=b[D][O];for(let O=16;O<80;++O)A[O]=n(A[O-3]^A[O-8]^A[O-14]^A[O-16],1);let P=l[0],S=l[1],k=l[2],C=l[3],N=l[4];for(let O=0;O<80;++O){const L=Math.floor(O/20),E=n(P,5)+g(L,S,k,C)+N+h[L]+A[O]>>>0;N=C,C=k,k=n(S,30)>>>0,S=P,P=E}l[0]=l[0]+P>>>0,l[1]=l[1]+S>>>0,l[2]=l[2]+k>>>0,l[3]=l[3]+C>>>0,l[4]=l[4]+N>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var e=f,a=t("v5",80,e)}}]);
|